mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 12:27:52 +00:00
3849 lines
2.6 MiB
3849 lines
2.6 MiB
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();function xb(t,e){const n=Object.create(null),i=t.split(",");for(let s=0;s<i.length;s++)n[i[s]]=!0;return e?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Jt={},Zo=[],Gi=()=>{},pM=()=>!1,_M=/^on[^a-z]/,Tu=t=>_M.test(t),Cb=t=>t.startsWith("onUpdate:"),an=Object.assign,wb=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},hM=Object.prototype.hasOwnProperty,Ut=(t,e)=>hM.call(t,e),ot=Array.isArray,Jo=t=>Fa(t)==="[object Map]",Ua=t=>Fa(t)==="[object Set]",vy=t=>Fa(t)==="[object Date]",fM=t=>Fa(t)==="[object RegExp]",vt=t=>typeof t=="function",ln=t=>typeof t=="string",zl=t=>typeof t=="symbol",Yt=t=>t!==null&&typeof t=="object",jw=t=>Yt(t)&&vt(t.then)&&vt(t.catch),Qw=Object.prototype.toString,Fa=t=>Qw.call(t),mM=t=>Fa(t).slice(8,-1),Xw=t=>Fa(t)==="[object Object]",Rb=t=>ln(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,wd=xb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xu=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},gM=/-(\w)/g,ls=xu(t=>t.replace(gM,(e,n)=>n?n.toUpperCase():"")),bM=/\B([A-Z])/g,Eo=xu(t=>t.replace(bM,"-$1").toLowerCase()),Cu=xu(t=>t.charAt(0).toUpperCase()+t.slice(1)),bp=xu(t=>t?`on${Cu(t)}`:""),Hl=(t,e)=>!Object.is(t,e),ea=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},zd=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Hd=t=>{const e=parseFloat(t);return isNaN(e)?t:e},EM=t=>{const e=ln(t)?Number(t):NaN;return isNaN(e)?t:e};let Sy;const Eg=()=>Sy||(Sy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function en(t){if(ot(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],s=ln(i)?TM(i):en(i);if(s)for(const r in s)e[r]=s[r]}return e}else{if(ln(t))return t;if(Yt(t))return t}}const yM=/;(?![^(]*\))/g,vM=/:([^]+)/,SM=/\/\*[^]*?\*\//g;function TM(t){const e={};return t.replace(SM,"").split(yM).forEach(n=>{if(n){const i=n.split(vM);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function ze(t){let e="";if(ln(t))e=t;else if(ot(t))for(let n=0;n<t.length;n++){const i=ze(t[n]);i&&(e+=i+" ")}else if(Yt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const xM="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",CM=xb(xM);function Zw(t){return!!t||t===""}function wM(t,e){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=uo(t[i],e[i]);return n}function uo(t,e){if(t===e)return!0;let n=vy(t),i=vy(e);if(n||i)return n&&i?t.getTime()===e.getTime():!1;if(n=zl(t),i=zl(e),n||i)return t===e;if(n=ot(t),i=ot(e),n||i)return n&&i?wM(t,e):!1;if(n=Yt(t),i=Yt(e),n||i){if(!n||!i)return!1;const s=Object.keys(t).length,r=Object.keys(e).length;if(s!==r)return!1;for(const o in t){const a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!uo(t[o],e[o]))return!1}}return String(t)===String(e)}function Ab(t,e){return t.findIndex(n=>uo(n,e))}const he=t=>ln(t)?t:t==null?"":ot(t)||Yt(t)&&(t.toString===Qw||!vt(t.toString))?JSON.stringify(t,Jw,2):String(t),Jw=(t,e)=>e&&e.__v_isRef?Jw(t,e.value):Jo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s])=>(n[`${i} =>`]=s,n),{})}:Ua(e)?{[`Set(${e.size})`]:[...e.values()]}:Yt(e)&&!ot(e)&&!Xw(e)?String(e):e;let ri;class eR{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ri,!e&&ri&&(this.index=(ri.scopes||(ri.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=ri;try{return ri=this,e()}finally{ri=n}}}on(){ri=this}off(){ri=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function RM(t){return new eR(t)}function AM(t,e=ri){e&&e.active&&e.effects.push(t)}function tR(){return ri}function NM(t){ri&&ri.cleanups.push(t)}const Nb=t=>{const e=new Set(t);return e.w=0,e.n=0,e},nR=t=>(t.w&wr)>0,iR=t=>(t.n&wr)>0,OM=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=wr},IM=t=>{const{deps:e}=t;if(e.length){let n=0;for(let i=0;i<e.length;i++){const s=e[i];nR(s)&&!iR(s)?s.delete(t):e[n++]=s,s.w&=~wr,s.n&=~wr}e.length=n}},qd=new WeakMap;let Tl=0,wr=1;const yg=30;let Fi;const no=Symbol(""),vg=Symbol("");class Ob{constructor(e,n=null,i){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,AM(this,i)}run(){if(!this.active)return this.fn();let e=Fi,n=yr;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Fi,Fi=this,yr=!0,wr=1<<++Tl,Tl<=yg?OM(this):Ty(this),this.fn()}finally{Tl<=yg&&IM(this),wr=1<<--Tl,Fi=this.parent,yr=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Fi===this?this.deferStop=!0:this.active&&(Ty(this),this.onStop&&this.onStop(),this.active=!1)}}function Ty(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let yr=!0;const sR=[];function Ba(){sR.push(yr),yr=!1}function Ga(){const t=sR.pop();yr=t===void 0?!0:t}function Jn(t,e,n){if(yr&&Fi){let i=qd.get(t);i||qd.set(t,i=new Map);let s=i.get(n);s||i.set(n,s=Nb()),rR(s)}}function rR(t,e){let n=!1;Tl<=yg?iR(t)||(t.n|=wr,n=!nR(t)):n=!t.has(Fi),n&&(t.add(Fi),Fi.deps.push(t))}function Vs(t,e,n,i,s,r){const o=qd.get(t);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(n==="length"&&ot(t)){const l=Number(i);o.forEach((u,d)=>{(d==="length"||d>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":ot(t)?Rb(n)&&a.push(o.get("length")):(a.push(o.get(no)),Jo(t)&&a.push(o.get(vg)));break;case"delete":ot(t)||(a.push(o.get(no)),Jo(t)&&a.push(o.get(vg)));break;case"set":Jo(t)&&a.push(o.get(no));break}if(a.length===1)a[0]&&Sg(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Sg(Nb(l))}}function Sg(t,e){const n=ot(t)?t:[...t];for(const i of n)i.computed&&xy(i);for(const i of n)i.computed||xy(i)}function xy(t,e){(t!==Fi||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function MM(t,e){var n;return(n=qd.get(t))==null?void 0:n.get(e)}const DM=xb("__proto__,__v_isRef,__isVue"),oR=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(zl)),kM=wu(),LM=wu(!1,!0),PM=wu(!0),UM=wu(!0,!0),Cy=FM();function FM(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=Lt(this);for(let r=0,o=this.length;r<o;r++)Jn(i,"get",r+"");const s=i[e](...n);return s===-1||s===!1?i[e](...n.map(Lt)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Ba();const i=Lt(this)[e].apply(this,n);return Ga(),i}}),t}function BM(t){const e=Lt(this);return Jn(e,"has",t),e.hasOwnProperty(t)}function wu(t=!1,e=!1){return function(i,s,r){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&r===(t?e?_R:pR:e?uR:dR).get(i))return i;const o=ot(i);if(!t){if(o&&Ut(Cy,s))return Reflect.get(Cy,s,r);if(s==="hasOwnProperty")return BM}const a=Reflect.get(i,s,r);return(zl(s)?oR.has(s):DM(s))||(t||Jn(i,"get",s),e)?a:fn(a)?o&&Rb(s)?a:a.value:Yt(a)?t?fR(a):ei(a):a}}const GM=aR(),VM=aR(!0);function aR(t=!1){return function(n,i,s,r){let o=n[i];if(da(o)&&fn(o)&&!fn(s))return!1;if(!t&&(!Yd(s)&&!da(s)&&(o=Lt(o),s=Lt(s)),!ot(n)&&fn(o)&&!fn(s)))return o.value=s,!0;const a=ot(n)&&Rb(i)?Number(i)<n.length:Ut(n,i),l=Reflect.set(n,i,s,r);return n===Lt(r)&&(a?Hl(s,o)&&Vs(n,"set",i,s):Vs(n,"add",i,s)),l}}function zM(t,e){const n=Ut(t,e);t[e];const i=Reflect.deleteProperty(t,e);return i&&n&&Vs(t,"delete",e,void 0),i}function HM(t,e){const n=Reflect.has(t,e);return(!zl(e)||!oR.has(e))&&Jn(t,"has",e),n}function qM(t){return Jn(t,"iterate",ot(t)?"length":no),Reflect.ownKeys(t)}const lR={get:kM,set:GM,deleteProperty:zM,has:HM,ownKeys:qM},cR={get:PM,set(t,e){return!0},deleteProperty(t,e){return!0}},YM=an({},lR,{get:LM,set:VM}),$M=an({},cR,{get:UM}),Ib=t=>t,Ru=t=>Reflect.getPrototypeOf(t);function Rc(t,e,n=!1,i=!1){t=t.__v_raw;const s=Lt(t),r=Lt(e);n||(e!==r&&Jn(s,"get",e),Jn(s,"get",r));const{has:o}=Ru(s),a=i?Ib:n?Mb:ql;if(o.call(s,e))return a(t.get(e));if(o.call(s,r))return a(t.get(r));t!==s&&t.get(e)}function Ac(t,e=!1){const n=this.__v_raw,i=Lt(n),s=Lt(t);return e||(t!==s&&Jn(i,"has",t),Jn(i,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Nc(t,e=!1){return t=t.__v_raw,!e&&Jn(Lt(t),"iterate",no),Reflect.get(t,"size",t)}function wy(t){t=Lt(t);const e=Lt(this);return Ru(e).has.call(e,t)||(e.add(t),Vs(e,"add",t,t)),this}function Ry(t,e){e=Lt(e);const n=Lt(this),{has:i,get:s}=Ru(n);let r=i.call(n,t);r||(t=Lt(t),r=i.call(n,t));const o=s.call(n,t);return n.set(t,e),r?Hl(e,o)&&Vs(n,"set",t,e):Vs(n,"add",t,e),this}function Ay(t){const e=Lt(this),{has:n,get:i}=Ru(e);let s=n.call(e,t);s||(t=Lt(t),s=n.call(e,t)),i&&i.call(e,t);const r=e.delete(t);return s&&Vs(e,"delete",t,void 0),r}function Ny(){const t=Lt(this),e=t.size!==0,n=t.clear();return e&&Vs(t,"clear",void 0,void 0),n}function Oc(t,e){return function(i,s){const r=this,o=r.__v_raw,a=Lt(o),l=e?Ib:t?Mb:ql;return!t&&Jn(a,"iterate",no),o.forEach((u,d)=>i.call(s,l(u),l(d),r))}}function Ic(t,e,n){return function(...i){const s=this.__v_raw,r=Lt(s),o=Jo(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...i),d=n?Ib:e?Mb:ql;return!e&&Jn(r,"iterate",l?vg:no),{next(){const{value:h,done:f}=u.next();return f?{value:h,done:f}:{value:a?[d(h[0]),d(h[1])]:d(h),done:f}},[Symbol.iterator](){return this}}}}function Xs(t){return function(...e){return t==="delete"?!1:this}}function WM(){const t={get(r){return Rc(this,r)},get size(){return Nc(this)},has:Ac,add:wy,set:Ry,delete:Ay,clear:Ny,forEach:Oc(!1,!1)},e={get(r){return Rc(this,r,!1,!0)},get size(){return Nc(this)},has:Ac,add:wy,set:Ry,delete:Ay,clear:Ny,forEach:Oc(!1,!0)},n={get(r){return Rc(this,r,!0)},get size(){return Nc(this,!0)},has(r){return Ac.call(this,r,!0)},add:Xs("add"),set:Xs("set"),delete:Xs("delete"),clear:Xs("clear"),forEach:Oc(!0,!1)},i={get(r){return Rc(this,r,!0,!0)},get size(){return Nc(this,!0)},has(r){return Ac.call(this,r,!0)},add:Xs("add"),set:Xs("set"),delete:Xs("delete"),clear:Xs("clear"),forEach:Oc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Ic(r,!1,!1),n[r]=Ic(r,!0,!1),e[r]=Ic(r,!1,!0),i[r]=Ic(r,!0,!0)}),[t,n,e,i]}const[KM,jM,QM,XM]=WM();function Au(t,e){const n=e?t?XM:QM:t?jM:KM;return(i,s,r)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?i:Reflect.get(Ut(n,s)&&s in i?n:i,s,r)}const ZM={get:Au(!1,!1)},JM={get:Au(!1,!0)},e2={get:Au(!0,!1)},t2={get:Au(!0,!0)},dR=new WeakMap,uR=new WeakMap,pR=new WeakMap,_R=new WeakMap;function n2(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function i2(t){return t.__v_skip||!Object.isExtensible(t)?0:n2(mM(t))}function ei(t){return da(t)?t:Nu(t,!1,lR,ZM,dR)}function hR(t){return Nu(t,!1,YM,JM,uR)}function fR(t){return Nu(t,!0,cR,e2,pR)}function s2(t){return Nu(t,!0,$M,t2,_R)}function Nu(t,e,n,i,s){if(!Yt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=s.get(t);if(r)return r;const o=i2(t);if(o===0)return t;const a=new Proxy(t,o===2?i:n);return s.set(t,a),a}function ta(t){return da(t)?ta(t.__v_raw):!!(t&&t.__v_isReactive)}function da(t){return!!(t&&t.__v_isReadonly)}function Yd(t){return!!(t&&t.__v_isShallow)}function mR(t){return ta(t)||da(t)}function Lt(t){const e=t&&t.__v_raw;return e?Lt(e):t}function dc(t){return zd(t,"__v_skip",!0),t}const ql=t=>Yt(t)?ei(t):t,Mb=t=>Yt(t)?fR(t):t;function Db(t){yr&&Fi&&(t=Lt(t),rR(t.dep||(t.dep=Nb())))}function kb(t,e){t=Lt(t);const n=t.dep;n&&Sg(n)}function fn(t){return!!(t&&t.__v_isRef===!0)}function ft(t){return gR(t,!1)}function r2(t){return gR(t,!0)}function gR(t,e){return fn(t)?t:new o2(t,e)}class o2{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Lt(e),this._value=n?e:ql(e)}get value(){return Db(this),this._value}set value(e){const n=this.__v_isShallow||Yd(e)||da(e);e=n?e:Lt(e),Hl(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:ql(e),kb(this))}}function yt(t){return fn(t)?t.value:t}const a2={get:(t,e,n)=>yt(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const s=t[e];return fn(s)&&!fn(n)?(s.value=n,!0):Reflect.set(t,e,n,i)}};function bR(t){return ta(t)?t:new Proxy(t,a2)}class l2{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=e(()=>Db(this),()=>kb(this));this._get=n,this._set=i}get value(){return this._get()}set value(e){this._set(e)}}function c2(t){return new l2(t)}function d2(t){const e=ot(t)?new Array(t.length):{};for(const n in t)e[n]=ER(t,n);return e}class u2{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return MM(Lt(this._object),this._key)}}class p2{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function $d(t,e,n){return fn(t)?t:vt(t)?new p2(t):Yt(t)&&arguments.length>1?ER(t,e,n):ft(t)}function ER(t,e,n){const i=t[e];return fn(i)?i:new u2(t,e,n)}class _2{constructor(e,n,i,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ob(e,()=>{this._dirty||(this._dirty=!0,kb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const e=Lt(this);return Db(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function h2(t,e,n=!1){let i,s;const r=vt(t);return r?(i=t,s=Gi):(i=t.get,s=t.set),new _2(i,s,r||!s,n)}function vr(t,e,n,i){let s;try{s=i?t(...i):t()}catch(r){Ou(r,e,n)}return s}function yi(t,e,n,i){if(vt(t)){const r=vr(t,e,n,i);return r&&jw(r)&&r.catch(o=>{Ou(o,e,n)}),r}const s=[];for(let r=0;r<t.length;r++)s.push(yi(t[r],e,n,i));return s}function Ou(t,e,n,i=!0){const s=e?e.vnode:null;if(e){let r=e.parent;const o=e.proxy,a=n;for(;r;){const u=r.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](t,o,a)===!1)return}r=r.parent}const l=e.appContext.config.errorHandler;if(l){vr(l,null,10,[t,o,a]);return}}f2(t,n,s,i)}function f2(t,e,n,i=!0){console.error(t)}let Yl=!1,Tg=!1;const Pn=[];let Ji=0;const na=[];let Ds=null,Wr=0;const yR=Promise.resolve();let Lb=null;function Ge(t){const e=Lb||yR;return t?e.then(this?t.bind(this):t):e}function m2(t){let e=Ji+1,n=Pn.length;for(;e<n;){const i=e+n>>>1;$l(Pn[i])<t?e=i+1:n=i}return e}function Pb(t){(!Pn.length||!Pn.includes(t,Yl&&t.allowRecurse?Ji+1:Ji))&&(t.id==null?Pn.push(t):Pn.splice(m2(t.id),0,t),vR())}function vR(){!Yl&&!Tg&&(Tg=!0,Lb=yR.then(TR))}function g2(t){const e=Pn.indexOf(t);e>Ji&&Pn.splice(e,1)}function b2(t){ot(t)?na.push(...t):(!Ds||!Ds.includes(t,t.allowRecurse?Wr+1:Wr))&&na.push(t),vR()}function Oy(t,e=Yl?Ji+1:0){for(;e<Pn.length;e++){const n=Pn[e];n&&n.pre&&(Pn.splice(e,1),e--,n())}}function SR(t){if(na.length){const e=[...new Set(na)];if(na.length=0,Ds){Ds.push(...e);return}for(Ds=e,Ds.sort((n,i)=>$l(n)-$l(i)),Wr=0;Wr<Ds.length;Wr++)Ds[Wr]();Ds=null,Wr=0}}const $l=t=>t.id==null?1/0:t.id,E2=(t,e)=>{const n=$l(t)-$l(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function TR(t){Tg=!1,Yl=!0,Pn.sort(E2);const e=Gi;try{for(Ji=0;Ji<Pn.length;Ji++){const n=Pn[Ji];n&&n.active!==!1&&vr(n,null,14)}}finally{Ji=0,Pn.length=0,SR(),Yl=!1,Lb=null,(Pn.length||na.length)&&TR()}}function y2(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||Jt;let s=n;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in i){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=i[d]||Jt;f&&(s=n.map(_=>ln(_)?_.trim():_)),h&&(s=n.map(Hd))}let a,l=i[a=bp(e)]||i[a=bp(ls(e))];!l&&r&&(l=i[a=bp(Eo(e))]),l&&yi(l,t,6,s);const u=i[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,yi(u,t,6,s)}}function xR(t,e,n=!1){const i=e.emitsCache,s=i.get(t);if(s!==void 0)return s;const r=t.emits;let o={},a=!1;if(!vt(t)){const l=u=>{const d=xR(u,e,!0);d&&(a=!0,an(o,d))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(Yt(t)&&i.set(t,null),null):(ot(r)?r.forEach(l=>o[l]=null):an(o,r),Yt(t)&&i.set(t,o),o)}function Iu(t,e){return!t||!Tu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ut(t,e[0].toLowerCase()+e.slice(1))||Ut(t,Eo(e))||Ut(t,e))}let An=null,Mu=null;function Wd(t){const e=An;return An=t,Mu=t&&t.type.__scopeId||null,e}function yo(t){Mu=t}function vo(){Mu=null}function We(t,e=An,n){if(!e||t._n)return t;const i=(...s)=>{i._d&&zy(-1);const r=Wd(e);let o;try{o=t(...s)}finally{Wd(r),i._d&&zy(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Ep(t){const{type:e,vnode:n,proxy:i,withProxy:s,props:r,propsOptions:[o],slots:a,attrs:l,emit:u,render:d,renderCache:h,data:f,setupState:_,ctx:m,inheritAttrs:E}=t;let b,g;const y=Wd(t);try{if(n.shapeFlag&4){const S=s||i;b=Xi(d.call(S,S,h,r,_,f,m)),g=l}else{const S=e;b=Xi(S.length>1?S(r,{attrs:l,slots:a,emit:u}):S(r,null)),g=e.props?l:v2(l)}}catch(S){Ol.length=0,Ou(S,t,1),b=Te(vi)}let v=b;if(g&&E!==!1){const S=Object.keys(g),{shapeFlag:C}=v;S.length&&C&7&&(o&&S.some(Cb)&&(g=S2(g,o)),v=zs(v,g))}return n.dirs&&(v=zs(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),b=v,Wd(y),b}const v2=t=>{let e;for(const n in t)(n==="class"||n==="style"||Tu(n))&&((e||(e={}))[n]=t[n]);return e},S2=(t,e)=>{const n={};for(const i in t)(!Cb(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function T2(t,e,n){const{props:i,children:s,component:r}=t,{props:o,children:a,patchFlag:l}=e,u=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Iy(i,o,u):!!o;if(l&8){const d=e.dynamicProps;for(let h=0;h<d.length;h++){const f=d[h];if(o[f]!==i[f]&&!Iu(u,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:i===o?!1:i?o?Iy(i,o,u):!0:!!o;return!1}function Iy(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let s=0;s<i.length;s++){const r=i[s];if(e[r]!==t[r]&&!Iu(n,r))return!0}return!1}function x2({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const CR=t=>t.__isSuspense;function C2(t,e){e&&e.pendingBranch?ot(t)?e.effects.push(...t):e.effects.push(t):b2(t)}const Mc={};function qn(t,e,n){return wR(t,e,n)}function wR(t,e,{immediate:n,deep:i,flush:s,onTrack:r,onTrigger:o}=Jt){var a;const l=tR()===((a=vn)==null?void 0:a.scope)?vn:null;let u,d=!1,h=!1;if(fn(t)?(u=()=>t.value,d=Yd(t)):ta(t)?(u=()=>t,i=!0):ot(t)?(h=!0,d=t.some(S=>ta(S)||Yd(S)),u=()=>t.map(S=>{if(fn(S))return S.value;if(ta(S))return Jr(S);if(vt(S))return vr(S,l,2)})):vt(t)?e?u=()=>vr(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return f&&f(),yi(t,l,3,[_])}:u=Gi,e&&i){const S=u;u=()=>Jr(S())}let f,_=S=>{f=y.onStop=()=>{vr(S,l,4)}},m;if(Ql)if(_=Gi,e?n&&yi(e,l,3,[u(),h?[]:void 0,_]):u(),s==="sync"){const S=mD();m=S.__watcherHandles||(S.__watcherHandles=[])}else return Gi;let E=h?new Array(t.length).fill(Mc):Mc;const b=()=>{if(y.active)if(e){const S=y.run();(i||d||(h?S.some((C,T)=>Hl(C,E[T])):Hl(S,E)))&&(f&&f(),yi(e,l,3,[S,E===Mc?void 0:h&&E[0]===Mc?[]:E,_]),E=S)}else y.run()};b.allowRecurse=!!e;let g;s==="sync"?g=b:s==="post"?g=()=>Rn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>Pb(b));const y=new Ob(u,g);e?n?b():E=y.run():s==="post"?Rn(y.run.bind(y),l&&l.suspense):y.run();const v=()=>{y.stop(),l&&l.scope&&wb(l.scope.effects,y)};return m&&m.push(v),v}function w2(t,e,n){const i=this.proxy,s=ln(t)?t.includes(".")?RR(i,t):()=>i[t]:t.bind(i,i);let r;vt(e)?r=e:(r=e.handler,n=e);const o=vn;pa(this);const a=wR(s,r.bind(i),n);return o?pa(o):io(),a}function RR(t,e){const n=e.split(".");return()=>{let i=t;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}function Jr(t,e){if(!Yt(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),fn(t))Jr(t.value,e);else if(ot(t))for(let n=0;n<t.length;n++)Jr(t[n],e);else if(Ua(t)||Jo(t))t.forEach(n=>{Jr(n,e)});else if(Xw(t))for(const n in t)Jr(t[n],e);return t}function G(t,e){const n=An;if(n===null)return t;const i=Fu(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[o,a,l,u=Jt]=e[r];o&&(vt(o)&&(o={mounted:o,updated:o}),o.deep&&Jr(a),s.push({dir:o,instance:i,value:a,oldValue:void 0,arg:l,modifiers:u}))}return t}function kr(t,e,n,i){const s=t.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let l=a.dir[i];l&&(Ba(),yi(l,n,8,[t.el,a,t,e]),Ga())}}function AR(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ws(()=>{t.isMounted=!0}),Va(()=>{t.isUnmounting=!0}),t}const ui=[Function,Array],NR={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ui,onEnter:ui,onAfterEnter:ui,onEnterCancelled:ui,onBeforeLeave:ui,onLeave:ui,onAfterLeave:ui,onLeaveCancelled:ui,onBeforeAppear:ui,onAppear:ui,onAfterAppear:ui,onAppearCancelled:ui},R2={name:"BaseTransition",props:NR,setup(t,{slots:e}){const n=Hb(),i=AR();let s;return()=>{const r=e.default&&Ub(e.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const E of r)if(E.type!==vi){o=E;break}}const a=Lt(t),{mode:l}=a;if(i.isLeaving)return yp(o);const u=My(o);if(!u)return yp(o);const d=Wl(u,a,i,n);ua(u,d);const h=n.subTree,f=h&&My(h);let _=!1;const{getTransitionKey:m}=u.type;if(m){const E=m();s===void 0?s=E:E!==s&&(s=E,_=!0)}if(f&&f.type!==vi&&(!mr(u,f)||_)){const E=Wl(f,a,i,n);if(ua(f,E),l==="out-in")return i.isLeaving=!0,E.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},yp(o);l==="in-out"&&u.type!==vi&&(E.delayLeave=(b,g,y)=>{const v=OR(i,f);v[String(f.key)]=f,b._leaveCb=()=>{g(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return o}}},A2=R2;function OR(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function Wl(t,e,n,i){const{appear:s,mode:r,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:_,onLeaveCancelled:m,onBeforeAppear:E,onAppear:b,onAfterAppear:g,onAppearCancelled:y}=e,v=String(t.key),S=OR(n,t),C=(k,x)=>{k&&yi(k,i,9,x)},T=(k,x)=>{const I=x[1];C(k,x),ot(k)?k.every(F=>F.length<=1)&&I():k.length<=1&&I()},O={mode:r,persisted:o,beforeEnter(k){let x=a;if(!n.isMounted)if(s)x=E||a;else return;k._leaveCb&&k._leaveCb(!0);const I=S[v];I&&mr(t,I)&&I.el._leaveCb&&I.el._leaveCb(),C(x,[k])},enter(k){let x=l,I=u,F=d;if(!n.isMounted)if(s)x=b||l,I=g||u,F=y||d;else return;let B=!1;const ne=k._enterCb=L=>{B||(B=!0,L?C(F,[k]):C(I,[k]),O.delayedLeave&&O.delayedLeave(),k._enterCb=void 0)};x?T(x,[k,ne]):ne()},leave(k,x){const I=String(t.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return x();C(h,[k]);let F=!1;const B=k._leaveCb=ne=>{F||(F=!0,x(),ne?C(m,[k]):C(_,[k]),k._leaveCb=void 0,S[I]===t&&delete S[I])};S[I]=t,f?T(f,[k,B]):B()},clone(k){return Wl(k,e,n,i)}};return O}function yp(t){if(Du(t))return t=zs(t),t.children=null,t}function My(t){return Du(t)?t.children?t.children[0]:void 0:t}function ua(t,e){t.shapeFlag&6&&t.component?ua(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 Ub(t,e=!1,n){let i=[],s=0;for(let r=0;r<t.length;r++){let o=t[r];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:r);o.type===Ye?(o.patchFlag&128&&s++,i=i.concat(Ub(o.children,e,a))):(e||o.type!==vi)&&i.push(a!=null?zs(o,{key:a}):o)}if(s>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}function _n(t,e){return vt(t)?(()=>an({name:t.name},e,{setup:t}))():t}const ia=t=>!!t.type.__asyncLoader,Du=t=>t.type.__isKeepAlive,N2={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Hb(),i=n.ctx;if(!i.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const s=new Map,r=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:h}}}=i,f=h("div");i.activate=(y,v,S,C,T)=>{const O=y.component;u(y,v,S,0,a),l(O.vnode,y,v,S,O,a,C,y.slotScopeIds,T),Rn(()=>{O.isDeactivated=!1,O.a&&ea(O.a);const k=y.props&&y.props.onVnodeMounted;k&&_i(k,O.parent,y)},a)},i.deactivate=y=>{const v=y.component;u(y,f,null,1,a),Rn(()=>{v.da&&ea(v.da);const S=y.props&&y.props.onVnodeUnmounted;S&&_i(S,v.parent,y),v.isDeactivated=!0},a)};function _(y){vp(y),d(y,n,a,!0)}function m(y){s.forEach((v,S)=>{const C=Ng(v.type);C&&(!y||!y(C))&&E(S)})}function E(y){const v=s.get(y);!o||!mr(v,o)?_(v):o&&vp(o),s.delete(y),r.delete(y)}qn(()=>[t.include,t.exclude],([y,v])=>{y&&m(S=>xl(y,S)),v&&m(S=>!xl(v,S))},{flush:"post",deep:!0});let b=null;const g=()=>{b!=null&&s.set(b,Sp(n.subTree))};return Ws(g),uc(g),Va(()=>{s.forEach(y=>{const{subTree:v,suspense:S}=n,C=Sp(v);if(y.type===C.type&&y.key===C.key){vp(C);const T=C.component.da;T&&Rn(T,S);return}_(y)})}),()=>{if(b=null,!e.default)return null;const y=e.default(),v=y[0];if(y.length>1)return o=null,y;if(!jl(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let S=Sp(v);const C=S.type,T=Ng(ia(S)?S.type.__asyncResolved||{}:C),{include:O,exclude:k,max:x}=t;if(O&&(!T||!xl(O,T))||k&&T&&xl(k,T))return o=S,v;const I=S.key==null?C:S.key,F=s.get(I);return S.el&&(S=zs(S),v.shapeFlag&128&&(v.ssContent=S)),b=I,F?(S.el=F.el,S.component=F.component,S.transition&&ua(S,S.transition),S.shapeFlag|=512,r.delete(I),r.add(I)):(r.add(I),x&&r.size>parseInt(x,10)&&E(r.values().next().value)),S.shapeFlag|=256,o=S,CR(v.type)?v:S}}},O2=N2;function xl(t,e){return ot(t)?t.some(n=>xl(n,e)):ln(t)?t.split(",").includes(e):fM(t)?t.test(e):!1}function I2(t,e){IR(t,"a",e)}function M2(t,e){IR(t,"da",e)}function IR(t,e,n=vn){const i=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(ku(e,i,n),n){let s=n.parent;for(;s&&s.parent;)Du(s.parent.vnode)&&D2(i,e,n,s),s=s.parent}}function D2(t,e,n,i){const s=ku(e,t,i,!0);MR(()=>{wb(i[e],s)},n)}function vp(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Sp(t){return t.shapeFlag&128?t.ssContent:t}function ku(t,e,n=vn,i=!1){if(n){const s=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Ba(),pa(n);const a=yi(e,n,t,o);return io(),Ga(),a});return i?s.unshift(r):s.push(r),r}}const $s=t=>(e,n=vn)=>(!Ql||t==="sp")&&ku(t,(...i)=>e(...i),n),k2=$s("bm"),Ws=$s("m"),L2=$s("bu"),uc=$s("u"),Va=$s("bum"),MR=$s("um"),P2=$s("sp"),U2=$s("rtg"),F2=$s("rtc");function B2(t,e=vn){ku("ec",t,e)}const Fb="components";function mt(t,e){return kR(Fb,t,!0,e)||t}const DR=Symbol.for("v-ndc");function Lu(t){return ln(t)?kR(Fb,t,!1)||t:t||DR}function kR(t,e,n=!0,i=!1){const s=An||vn;if(s){const r=s.type;if(t===Fb){const a=Ng(r,!1);if(a&&(a===e||a===ls(e)||a===Cu(ls(e))))return r}const o=Dy(s[t]||r[t],e)||Dy(s.appContext[t],e);return!o&&i?r:o}}function Dy(t,e){return t&&(t[e]||t[ls(e)]||t[Cu(ls(e))])}function lt(t,e,n,i){let s;const r=n&&n[i];if(ot(t)||ln(t)){s=new Array(t.length);for(let o=0,a=t.length;o<a;o++)s[o]=e(t[o],o,void 0,r&&r[o])}else if(typeof t=="number"){s=new Array(t);for(let o=0;o<t;o++)s[o]=e(o+1,o,void 0,r&&r[o])}else if(Yt(t))if(t[Symbol.iterator])s=Array.from(t,(o,a)=>e(o,a,void 0,r&&r[a]));else{const o=Object.keys(t);s=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const u=o[a];s[a]=e(t[u],u,a,r&&r[a])}}else s=[];return n&&(n[i]=s),s}function kn(t,e,n={},i,s){if(An.isCE||An.parent&&ia(An.parent)&&An.parent.isCE)return e!=="default"&&(n.name=e),Te("slot",n,i&&i());let r=t[e];r&&r._c&&(r._d=!1),w();const o=r&&LR(r(n)),a=xt(Ye,{key:n.key||o&&o.key||`_${e}`},o||(i?i():[]),o&&t._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function LR(t){return t.some(e=>jl(e)?!(e.type===vi||e.type===Ye&&!LR(e.children)):!0)?t:null}const xg=t=>t?$R(t)?Fu(t)||t.proxy:xg(t.parent):null,Nl=an(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=>xg(t.parent),$root:t=>xg(t.root),$emit:t=>t.emit,$options:t=>Bb(t),$forceUpdate:t=>t.f||(t.f=()=>Pb(t.update)),$nextTick:t=>t.n||(t.n=Ge.bind(t.proxy)),$watch:t=>w2.bind(t)}),Tp=(t,e)=>t!==Jt&&!t.__isScriptSetup&&Ut(t,e),G2={get({_:t},e){const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const _=o[e];if(_!==void 0)switch(_){case 1:return i[e];case 2:return s[e];case 4:return n[e];case 3:return r[e]}else{if(Tp(i,e))return o[e]=1,i[e];if(s!==Jt&&Ut(s,e))return o[e]=2,s[e];if((u=t.propsOptions[0])&&Ut(u,e))return o[e]=3,r[e];if(n!==Jt&&Ut(n,e))return o[e]=4,n[e];Cg&&(o[e]=0)}}const d=Nl[e];let h,f;if(d)return e==="$attrs"&&Jn(t,"get",e),d(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==Jt&&Ut(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,Ut(f,e))return f[e]},set({_:t},e,n){const{data:i,setupState:s,ctx:r}=t;return Tp(s,e)?(s[e]=n,!0):i!==Jt&&Ut(i,e)?(i[e]=n,!0):Ut(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:s,propsOptions:r}},o){let a;return!!n[o]||t!==Jt&&Ut(t,o)||Tp(e,o)||(a=r[0])&&Ut(a,o)||Ut(i,o)||Ut(Nl,o)||Ut(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ut(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function ky(t){return ot(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Cg=!0;function V2(t){const e=Bb(t),n=t.proxy,i=t.ctx;Cg=!1,e.beforeCreate&&Ly(e.beforeCreate,t,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:u,created:d,beforeMount:h,mounted:f,beforeUpdate:_,updated:m,activated:E,deactivated:b,beforeDestroy:g,beforeUnmount:y,destroyed:v,unmounted:S,render:C,renderTracked:T,renderTriggered:O,errorCaptured:k,serverPrefetch:x,expose:I,inheritAttrs:F,components:B,directives:ne,filters:L}=e;if(u&&z2(u,i,null),o)for(const U in o){const Q=o[U];vt(Q)&&(i[U]=Q.bind(n))}if(s){const U=s.call(n,n);Yt(U)&&(t.data=ei(U))}if(Cg=!0,r)for(const U in r){const Q=r[U],J=vt(Q)?Q.bind(n,n):vt(Q.get)?Q.get.bind(n,n):Gi,j=!vt(Q)&&vt(Q.set)?Q.set.bind(n):Gi,ae=st({get:J,set:j});Object.defineProperty(i,U,{enumerable:!0,configurable:!0,get:()=>ae.value,set:ve=>ae.value=ve})}if(a)for(const U in a)PR(a[U],i,n,U);if(l){const U=vt(l)?l.call(n):l;Reflect.ownKeys(U).forEach(Q=>{sa(Q,U[Q])})}d&&Ly(d,t,"c");function H(U,Q){ot(Q)?Q.forEach(J=>U(J.bind(n))):Q&&U(Q.bind(n))}if(H(k2,h),H(Ws,f),H(L2,_),H(uc,m),H(I2,E),H(M2,b),H(B2,k),H(F2,T),H(U2,O),H(Va,y),H(MR,S),H(P2,x),ot(I))if(I.length){const U=t.exposed||(t.exposed={});I.forEach(Q=>{Object.defineProperty(U,Q,{get:()=>n[Q],set:J=>n[Q]=J})})}else t.exposed||(t.exposed={});C&&t.render===Gi&&(t.render=C),F!=null&&(t.inheritAttrs=F),B&&(t.components=B),ne&&(t.directives=ne)}function z2(t,e,n=Gi){ot(t)&&(t=wg(t));for(const i in t){const s=t[i];let r;Yt(s)?"default"in s?r=Vi(s.from||i,s.default,!0):r=Vi(s.from||i):r=Vi(s),fn(r)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[i]=r}}function Ly(t,e,n){yi(ot(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function PR(t,e,n,i){const s=i.includes(".")?RR(n,i):()=>n[i];if(ln(t)){const r=e[t];vt(r)&&qn(s,r)}else if(vt(t))qn(s,t.bind(n));else if(Yt(t))if(ot(t))t.forEach(r=>PR(r,e,n,i));else{const r=vt(t.handler)?t.handler.bind(n):e[t.handler];vt(r)&&qn(s,r,t)}}function Bb(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!s.length&&!n&&!i?l=e:(l={},s.length&&s.forEach(u=>Kd(l,u,o,!0)),Kd(l,e,o)),Yt(e)&&r.set(e,l),l}function Kd(t,e,n,i=!1){const{mixins:s,extends:r}=e;r&&Kd(t,r,n,!0),s&&s.forEach(o=>Kd(t,o,n,!0));for(const o in e)if(!(i&&o==="expose")){const a=H2[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const H2={data:Py,props:Uy,emits:Uy,methods:Cl,computed:Cl,beforeCreate:Gn,created:Gn,beforeMount:Gn,mounted:Gn,beforeUpdate:Gn,updated:Gn,beforeDestroy:Gn,beforeUnmount:Gn,destroyed:Gn,unmounted:Gn,activated:Gn,deactivated:Gn,errorCaptured:Gn,serverPrefetch:Gn,components:Cl,directives:Cl,watch:Y2,provide:Py,inject:q2};function Py(t,e){return e?t?function(){return an(vt(t)?t.call(this,this):t,vt(e)?e.call(this,this):e)}:e:t}function q2(t,e){return Cl(wg(t),wg(e))}function wg(t){if(ot(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Gn(t,e){return t?[...new Set([].concat(t,e))]:e}function Cl(t,e){return t?an(Object.create(null),t,e):e}function Uy(t,e){return t?ot(t)&&ot(e)?[...new Set([...t,...e])]:an(Object.create(null),ky(t),ky(e??{})):e}function Y2(t,e){if(!t)return e;if(!e)return t;const n=an(Object.create(null),t);for(const i in e)n[i]=Gn(t[i],e[i]);return n}function UR(){return{app:null,config:{isNativeTag:pM,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 $2=0;function W2(t,e){return function(i,s=null){vt(i)||(i=an({},i)),s!=null&&!Yt(s)&&(s=null);const r=UR(),o=new Set;let a=!1;const l=r.app={_uid:$2++,_component:i,_props:s,_container:null,_context:r,_instance:null,version:gD,get config(){return r.config},set config(u){},use(u,...d){return o.has(u)||(u&&vt(u.install)?(o.add(u),u.install(l,...d)):vt(u)&&(o.add(u),u(l,...d))),l},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),l},component(u,d){return d?(r.components[u]=d,l):r.components[u]},directive(u,d){return d?(r.directives[u]=d,l):r.directives[u]},mount(u,d,h){if(!a){const f=Te(i,s);return f.appContext=r,d&&e?e(f,u):t(f,u,h),a=!0,l._container=u,u.__vue_app__=l,Fu(f.component)||f.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(u,d){return r.provides[u]=d,l},runWithContext(u){jd=l;try{return u()}finally{jd=null}}};return l}}let jd=null;function sa(t,e){if(vn){let n=vn.provides;const i=vn.parent&&vn.parent.provides;i===n&&(n=vn.provides=Object.create(i)),n[t]=e}}function Vi(t,e,n=!1){const i=vn||An;if(i||jd){const s=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:jd._context.provides;if(s&&t in s)return s[t];if(arguments.length>1)return n&&vt(e)?e.call(i&&i.proxy):e}}function K2(t,e,n,i=!1){const s={},r={};zd(r,Uu,1),t.propsDefaults=Object.create(null),FR(t,e,s,r);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=i?s:hR(s):t.type.props?t.props=s:t.props=r,t.attrs=r}function j2(t,e,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=t,a=Lt(s),[l]=t.propsOptions;let u=!1;if((i||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let h=0;h<d.length;h++){let f=d[h];if(Iu(t.emitsOptions,f))continue;const _=e[f];if(l)if(Ut(r,f))_!==r[f]&&(r[f]=_,u=!0);else{const m=ls(f);s[m]=Rg(l,a,m,_,t,!1)}else _!==r[f]&&(r[f]=_,u=!0)}}}else{FR(t,e,s,r)&&(u=!0);let d;for(const h in a)(!e||!Ut(e,h)&&((d=Eo(h))===h||!Ut(e,d)))&&(l?n&&(n[h]!==void 0||n[d]!==void 0)&&(s[h]=Rg(l,a,h,void 0,t,!0)):delete s[h]);if(r!==a)for(const h in r)(!e||!Ut(e,h))&&(delete r[h],u=!0)}u&&Vs(t,"set","$attrs")}function FR(t,e,n,i){const[s,r]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(wd(l))continue;const u=e[l];let d;s&&Ut(s,d=ls(l))?!r||!r.includes(d)?n[d]=u:(a||(a={}))[d]=u:Iu(t.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,o=!0)}if(r){const l=Lt(n),u=a||Jt;for(let d=0;d<r.length;d++){const h=r[d];n[h]=Rg(s,l,h,u[h],t,!Ut(u,h))}}return o}function Rg(t,e,n,i,s,r){const o=t[n];if(o!=null){const a=Ut(o,"default");if(a&&i===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&vt(l)){const{propsDefaults:u}=s;n in u?i=u[n]:(pa(s),i=u[n]=l.call(null,e),io())}else i=l}o[0]&&(r&&!a?i=!1:o[1]&&(i===""||i===Eo(n))&&(i=!0))}return i}function BR(t,e,n=!1){const i=e.propsCache,s=i.get(t);if(s)return s;const r=t.props,o={},a=[];let l=!1;if(!vt(t)){const d=h=>{l=!0;const[f,_]=BR(h,e,!0);an(o,f),_&&a.push(..._)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!r&&!l)return Yt(t)&&i.set(t,Zo),Zo;if(ot(r))for(let d=0;d<r.length;d++){const h=ls(r[d]);Fy(h)&&(o[h]=Jt)}else if(r)for(const d in r){const h=ls(d);if(Fy(h)){const f=r[d],_=o[h]=ot(f)||vt(f)?{type:f}:an({},f);if(_){const m=Vy(Boolean,_.type),E=Vy(String,_.type);_[0]=m>-1,_[1]=E<0||m<E,(m>-1||Ut(_,"default"))&&a.push(h)}}}const u=[o,a];return Yt(t)&&i.set(t,u),u}function Fy(t){return t[0]!=="$"}function By(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Gy(t,e){return By(t)===By(e)}function Vy(t,e){return ot(e)?e.findIndex(n=>Gy(n,t)):vt(e)&&Gy(e,t)?0:-1}const GR=t=>t[0]==="_"||t==="$stable",Gb=t=>ot(t)?t.map(Xi):[Xi(t)],Q2=(t,e,n)=>{if(e._n)return e;const i=We((...s)=>Gb(e(...s)),n);return i._c=!1,i},VR=(t,e,n)=>{const i=t._ctx;for(const s in t){if(GR(s))continue;const r=t[s];if(vt(r))e[s]=Q2(s,r,i);else if(r!=null){const o=Gb(r);e[s]=()=>o}}},zR=(t,e)=>{const n=Gb(e);t.slots.default=()=>n},X2=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Lt(e),zd(e,"_",n)):VR(e,t.slots={})}else t.slots={},e&&zR(t,e);zd(t.slots,Uu,1)},Z2=(t,e,n)=>{const{vnode:i,slots:s}=t;let r=!0,o=Jt;if(i.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:(an(s,e),!n&&a===1&&delete s._):(r=!e.$stable,VR(e,s)),o=e}else e&&(zR(t,e),o={default:1});if(r)for(const a in s)!GR(a)&&!(a in o)&&delete s[a]};function Ag(t,e,n,i,s=!1){if(ot(t)){t.forEach((f,_)=>Ag(f,e&&(ot(e)?e[_]:e),n,i,s));return}if(ia(i)&&!s)return;const r=i.shapeFlag&4?Fu(i.component)||i.component.proxy:i.el,o=s?null:r,{i:a,r:l}=t,u=e&&e.r,d=a.refs===Jt?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==l&&(ln(u)?(d[u]=null,Ut(h,u)&&(h[u]=null)):fn(u)&&(u.value=null)),vt(l))vr(l,a,12,[o,d]);else{const f=ln(l),_=fn(l);if(f||_){const m=()=>{if(t.f){const E=f?Ut(h,l)?h[l]:d[l]:l.value;s?ot(E)&&wb(E,r):ot(E)?E.includes(r)||E.push(r):f?(d[l]=[r],Ut(h,l)&&(h[l]=d[l])):(l.value=[r],t.k&&(d[t.k]=l.value))}else f?(d[l]=o,Ut(h,l)&&(h[l]=o)):_&&(l.value=o,t.k&&(d[t.k]=o))};o?(m.id=-1,Rn(m,n)):m()}}}const Rn=C2;function J2(t){return eD(t)}function eD(t,e){const n=Eg();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:a,createComment:l,setText:u,setElementText:d,parentNode:h,nextSibling:f,setScopeId:_=Gi,insertStaticContent:m}=t,E=(D,q,K,de=null,le=null,Re=null,Ie=!1,z=null,pe=!!q.dynamicChildren)=>{if(D===q)return;D&&!mr(D,q)&&(de=Z(D),ve(D,le,Re,!0),D=null),q.patchFlag===-2&&(pe=!1,q.dynamicChildren=null);const{type:re,ref:ce,shapeFlag:M}=q;switch(re){case Pu:b(D,q,K,de);break;case vi:g(D,q,K,de);break;case Rd:D==null&&y(q,K,de,Ie);break;case Ye:B(D,q,K,de,le,Re,Ie,z,pe);break;default:M&1?C(D,q,K,de,le,Re,Ie,z,pe):M&6?ne(D,q,K,de,le,Re,Ie,z,pe):(M&64||M&128)&&re.process(D,q,K,de,le,Re,Ie,z,pe,fe)}ce!=null&&le&&Ag(ce,D&&D.ref,Re,q||D,!q)},b=(D,q,K,de)=>{if(D==null)i(q.el=a(q.children),K,de);else{const le=q.el=D.el;q.children!==D.children&&u(le,q.children)}},g=(D,q,K,de)=>{D==null?i(q.el=l(q.children||""),K,de):q.el=D.el},y=(D,q,K,de)=>{[D.el,D.anchor]=m(D.children,q,K,de,D.el,D.anchor)},v=({el:D,anchor:q},K,de)=>{let le;for(;D&&D!==q;)le=f(D),i(D,K,de),D=le;i(q,K,de)},S=({el:D,anchor:q})=>{let K;for(;D&&D!==q;)K=f(D),s(D),D=K;s(q)},C=(D,q,K,de,le,Re,Ie,z,pe)=>{Ie=Ie||q.type==="svg",D==null?T(q,K,de,le,Re,Ie,z,pe):x(D,q,le,Re,Ie,z,pe)},T=(D,q,K,de,le,Re,Ie,z)=>{let pe,re;const{type:ce,props:M,shapeFlag:N,transition:W,dirs:ue}=D;if(pe=D.el=o(D.type,Re,M&&M.is,M),N&8?d(pe,D.children):N&16&&k(D.children,pe,null,de,le,Re&&ce!=="foreignObject",Ie,z),ue&&kr(D,null,de,"created"),O(pe,D,D.scopeId,Ie,de),M){for(const ie in M)ie!=="value"&&!wd(ie)&&r(pe,ie,null,M[ie],Re,D.children,de,le,Me);"value"in M&&r(pe,"value",null,M.value),(re=M.onVnodeBeforeMount)&&_i(re,de,D)}ue&&kr(D,null,de,"beforeMount");const X=(!le||le&&!le.pendingBranch)&&W&&!W.persisted;X&&W.beforeEnter(pe),i(pe,q,K),((re=M&&M.onVnodeMounted)||X||ue)&&Rn(()=>{re&&_i(re,de,D),X&&W.enter(pe),ue&&kr(D,null,de,"mounted")},le)},O=(D,q,K,de,le)=>{if(K&&_(D,K),de)for(let Re=0;Re<de.length;Re++)_(D,de[Re]);if(le){let Re=le.subTree;if(q===Re){const Ie=le.vnode;O(D,Ie,Ie.scopeId,Ie.slotScopeIds,le.parent)}}},k=(D,q,K,de,le,Re,Ie,z,pe=0)=>{for(let re=pe;re<D.length;re++){const ce=D[re]=z?lr(D[re]):Xi(D[re]);E(null,ce,q,K,de,le,Re,Ie,z)}},x=(D,q,K,de,le,Re,Ie)=>{const z=q.el=D.el;let{patchFlag:pe,dynamicChildren:re,dirs:ce}=q;pe|=D.patchFlag&16;const M=D.props||Jt,N=q.props||Jt;let W;K&&Lr(K,!1),(W=N.onVnodeBeforeUpdate)&&_i(W,K,q,D),ce&&kr(q,D,K,"beforeUpdate"),K&&Lr(K,!0);const ue=le&&q.type!=="foreignObject";if(re?I(D.dynamicChildren,re,z,K,de,ue,Re):Ie||Q(D,q,z,null,K,de,ue,Re,!1),pe>0){if(pe&16)F(z,q,M,N,K,de,le);else if(pe&2&&M.class!==N.class&&r(z,"class",null,N.class,le),pe&4&&r(z,"style",M.style,N.style,le),pe&8){const X=q.dynamicProps;for(let ie=0;ie<X.length;ie++){const Ae=X[ie],Ce=M[Ae],ke=N[Ae];(ke!==Ce||Ae==="value")&&r(z,Ae,Ce,ke,le,D.children,K,de,Me)}}pe&1&&D.children!==q.children&&d(z,q.children)}else!Ie&&re==null&&F(z,q,M,N,K,de,le);((W=N.onVnodeUpdated)||ce)&&Rn(()=>{W&&_i(W,K,q,D),ce&&kr(q,D,K,"updated")},de)},I=(D,q,K,de,le,Re,Ie)=>{for(let z=0;z<q.length;z++){const pe=D[z],re=q[z],ce=pe.el&&(pe.type===Ye||!mr(pe,re)||pe.shapeFlag&70)?h(pe.el):K;E(pe,re,ce,null,de,le,Re,Ie,!0)}},F=(D,q,K,de,le,Re,Ie)=>{if(K!==de){if(K!==Jt)for(const z in K)!wd(z)&&!(z in de)&&r(D,z,K[z],null,Ie,q.children,le,Re,Me);for(const z in de){if(wd(z))continue;const pe=de[z],re=K[z];pe!==re&&z!=="value"&&r(D,z,re,pe,Ie,q.children,le,Re,Me)}"value"in de&&r(D,"value",K.value,de.value)}},B=(D,q,K,de,le,Re,Ie,z,pe)=>{const re=q.el=D?D.el:a(""),ce=q.anchor=D?D.anchor:a("");let{patchFlag:M,dynamicChildren:N,slotScopeIds:W}=q;W&&(z=z?z.concat(W):W),D==null?(i(re,K,de),i(ce,K,de),k(q.children,K,ce,le,Re,Ie,z,pe)):M>0&&M&64&&N&&D.dynamicChildren?(I(D.dynamicChildren,N,K,le,Re,Ie,z),(q.key!=null||le&&q===le.subTree)&&HR(D,q,!0)):Q(D,q,K,ce,le,Re,Ie,z,pe)},ne=(D,q,K,de,le,Re,Ie,z,pe)=>{q.slotScopeIds=z,D==null?q.shapeFlag&512?le.ctx.activate(q,K,de,Ie,pe):L(q,K,de,le,Re,Ie,pe):$(D,q,pe)},L=(D,q,K,de,le,Re,Ie)=>{const z=D.component=cD(D,de,le);if(Du(D)&&(z.ctx.renderer=fe),dD(z),z.asyncDep){if(le&&le.registerDep(z,H),!D.el){const pe=z.subTree=Te(vi);g(null,pe,q,K)}return}H(z,D,q,K,le,Re,Ie)},$=(D,q,K)=>{const de=q.component=D.component;if(T2(D,q,K))if(de.asyncDep&&!de.asyncResolved){U(de,q,K);return}else de.next=q,g2(de.update),de.update();else q.el=D.el,de.vnode=q},H=(D,q,K,de,le,Re,Ie)=>{const z=()=>{if(D.isMounted){let{next:ce,bu:M,u:N,parent:W,vnode:ue}=D,X=ce,ie;Lr(D,!1),ce?(ce.el=ue.el,U(D,ce,Ie)):ce=ue,M&&ea(M),(ie=ce.props&&ce.props.onVnodeBeforeUpdate)&&_i(ie,W,ce,ue),Lr(D,!0);const Ae=Ep(D),Ce=D.subTree;D.subTree=Ae,E(Ce,Ae,h(Ce.el),Z(Ce),D,le,Re),ce.el=Ae.el,X===null&&x2(D,Ae.el),N&&Rn(N,le),(ie=ce.props&&ce.props.onVnodeUpdated)&&Rn(()=>_i(ie,W,ce,ue),le)}else{let ce;const{el:M,props:N}=q,{bm:W,m:ue,parent:X}=D,ie=ia(q);if(Lr(D,!1),W&&ea(W),!ie&&(ce=N&&N.onVnodeBeforeMount)&&_i(ce,X,q),Lr(D,!0),M&&Le){const Ae=()=>{D.subTree=Ep(D),Le(M,D.subTree,D,le,null)};ie?q.type.__asyncLoader().then(()=>!D.isUnmounted&&Ae()):Ae()}else{const Ae=D.subTree=Ep(D);E(null,Ae,K,de,D,le,Re),q.el=Ae.el}if(ue&&Rn(ue,le),!ie&&(ce=N&&N.onVnodeMounted)){const Ae=q;Rn(()=>_i(ce,X,Ae),le)}(q.shapeFlag&256||X&&ia(X.vnode)&&X.vnode.shapeFlag&256)&&D.a&&Rn(D.a,le),D.isMounted=!0,q=K=de=null}},pe=D.effect=new Ob(z,()=>Pb(re),D.scope),re=D.update=()=>pe.run();re.id=D.uid,Lr(D,!0),re()},U=(D,q,K)=>{q.component=D;const de=D.vnode.props;D.vnode=q,D.next=null,j2(D,q.props,de,K),Z2(D,q.children,K),Ba(),Oy(),Ga()},Q=(D,q,K,de,le,Re,Ie,z,pe=!1)=>{const re=D&&D.children,ce=D?D.shapeFlag:0,M=q.children,{patchFlag:N,shapeFlag:W}=q;if(N>0){if(N&128){j(re,M,K,de,le,Re,Ie,z,pe);return}else if(N&256){J(re,M,K,de,le,Re,Ie,z,pe);return}}W&8?(ce&16&&Me(re,le,Re),M!==re&&d(K,M)):ce&16?W&16?j(re,M,K,de,le,Re,Ie,z,pe):Me(re,le,Re,!0):(ce&8&&d(K,""),W&16&&k(M,K,de,le,Re,Ie,z,pe))},J=(D,q,K,de,le,Re,Ie,z,pe)=>{D=D||Zo,q=q||Zo;const re=D.length,ce=q.length,M=Math.min(re,ce);let N;for(N=0;N<M;N++){const W=q[N]=pe?lr(q[N]):Xi(q[N]);E(D[N],W,K,null,le,Re,Ie,z,pe)}re>ce?Me(D,le,Re,!0,!1,M):k(q,K,de,le,Re,Ie,z,pe,M)},j=(D,q,K,de,le,Re,Ie,z,pe)=>{let re=0;const ce=q.length;let M=D.length-1,N=ce-1;for(;re<=M&&re<=N;){const W=D[re],ue=q[re]=pe?lr(q[re]):Xi(q[re]);if(mr(W,ue))E(W,ue,K,null,le,Re,Ie,z,pe);else break;re++}for(;re<=M&&re<=N;){const W=D[M],ue=q[N]=pe?lr(q[N]):Xi(q[N]);if(mr(W,ue))E(W,ue,K,null,le,Re,Ie,z,pe);else break;M--,N--}if(re>M){if(re<=N){const W=N+1,ue=W<ce?q[W].el:de;for(;re<=N;)E(null,q[re]=pe?lr(q[re]):Xi(q[re]),K,ue,le,Re,Ie,z,pe),re++}}else if(re>N)for(;re<=M;)ve(D[re],le,Re,!0),re++;else{const W=re,ue=re,X=new Map;for(re=ue;re<=N;re++){const ut=q[re]=pe?lr(q[re]):Xi(q[re]);ut.key!=null&&X.set(ut.key,re)}let ie,Ae=0;const Ce=N-ue+1;let ke=!1,Qe=0;const ct=new Array(Ce);for(re=0;re<Ce;re++)ct[re]=0;for(re=W;re<=M;re++){const ut=D[re];if(Ae>=Ce){ve(ut,le,Re,!0);continue}let Je;if(ut.key!=null)Je=X.get(ut.key);else for(ie=ue;ie<=N;ie++)if(ct[ie-ue]===0&&mr(ut,q[ie])){Je=ie;break}Je===void 0?ve(ut,le,Re,!0):(ct[Je-ue]=re+1,Je>=Qe?Qe=Je:ke=!0,E(ut,q[Je],K,null,le,Re,Ie,z,pe),Ae++)}const Pe=ke?tD(ct):Zo;for(ie=Pe.length-1,re=Ce-1;re>=0;re--){const ut=ue+re,Je=q[ut],qe=ut+1<ce?q[ut+1].el:de;ct[re]===0?E(null,Je,K,qe,le,Re,Ie,z,pe):ke&&(ie<0||re!==Pe[ie]?ae(Je,K,qe,2):ie--)}}},ae=(D,q,K,de,le=null)=>{const{el:Re,type:Ie,transition:z,children:pe,shapeFlag:re}=D;if(re&6){ae(D.component.subTree,q,K,de);return}if(re&128){D.suspense.move(q,K,de);return}if(re&64){Ie.move(D,q,K,fe);return}if(Ie===Ye){i(Re,q,K);for(let M=0;M<pe.length;M++)ae(pe[M],q,K,de);i(D.anchor,q,K);return}if(Ie===Rd){v(D,q,K);return}if(de!==2&&re&1&&z)if(de===0)z.beforeEnter(Re),i(Re,q,K),Rn(()=>z.enter(Re),le);else{const{leave:M,delayLeave:N,afterLeave:W}=z,ue=()=>i(Re,q,K),X=()=>{M(Re,()=>{ue(),W&&W()})};N?N(Re,ue,X):X()}else i(Re,q,K)},ve=(D,q,K,de=!1,le=!1)=>{const{type:Re,props:Ie,ref:z,children:pe,dynamicChildren:re,shapeFlag:ce,patchFlag:M,dirs:N}=D;if(z!=null&&Ag(z,null,K,D,!0),ce&256){q.ctx.deactivate(D);return}const W=ce&1&&N,ue=!ia(D);let X;if(ue&&(X=Ie&&Ie.onVnodeBeforeUnmount)&&_i(X,q,D),ce&6)xe(D.component,K,de);else{if(ce&128){D.suspense.unmount(K,de);return}W&&kr(D,null,q,"beforeUnmount"),ce&64?D.type.remove(D,q,K,le,fe,de):re&&(Re!==Ye||M>0&&M&64)?Me(re,q,K,!1,!0):(Re===Ye&&M&384||!le&&ce&16)&&Me(pe,q,K),de&&ee(D)}(ue&&(X=Ie&&Ie.onVnodeUnmounted)||W)&&Rn(()=>{X&&_i(X,q,D),W&&kr(D,null,q,"unmounted")},K)},ee=D=>{const{type:q,el:K,anchor:de,transition:le}=D;if(q===Ye){Ee(K,de);return}if(q===Rd){S(D);return}const Re=()=>{s(K),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(D.shapeFlag&1&&le&&!le.persisted){const{leave:Ie,delayLeave:z}=le,pe=()=>Ie(K,Re);z?z(D.el,Re,pe):pe()}else Re()},Ee=(D,q)=>{let K;for(;D!==q;)K=f(D),s(D),D=K;s(q)},xe=(D,q,K)=>{const{bum:de,scope:le,update:Re,subTree:Ie,um:z}=D;de&&ea(de),le.stop(),Re&&(Re.active=!1,ve(Ie,D,q,K)),z&&Rn(z,q),Rn(()=>{D.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},Me=(D,q,K,de=!1,le=!1,Re=0)=>{for(let Ie=Re;Ie<D.length;Ie++)ve(D[Ie],q,K,de,le)},Z=D=>D.shapeFlag&6?Z(D.component.subTree):D.shapeFlag&128?D.suspense.next():f(D.anchor||D.el),ye=(D,q,K)=>{D==null?q._vnode&&ve(q._vnode,null,null,!0):E(q._vnode||null,D,q,null,null,null,K),Oy(),SR(),q._vnode=D},fe={p:E,um:ve,m:ae,r:ee,mt:L,mc:k,pc:Q,pbc:I,n:Z,o:t};let Ne,Le;return e&&([Ne,Le]=e(fe)),{render:ye,hydrate:Ne,createApp:W2(ye,Ne)}}function Lr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function HR(t,e,n=!1){const i=t.children,s=e.children;if(ot(i)&&ot(s))for(let r=0;r<i.length;r++){const o=i[r];let a=s[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[r]=lr(s[r]),a.el=o.el),n||HR(o,a)),a.type===Pu&&(a.el=o.el)}}function tD(t){const e=t.slice(),n=[0];let i,s,r,o,a;const l=t.length;for(i=0;i<l;i++){const u=t[i];if(u!==0){if(s=n[n.length-1],t[s]<u){e[i]=s,n.push(i);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,t[n[a]]<u?r=a+1:o=a;u<t[n[r]]&&(r>0&&(e[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}const nD=t=>t.__isTeleport,Ye=Symbol.for("v-fgt"),Pu=Symbol.for("v-txt"),vi=Symbol.for("v-cmt"),Rd=Symbol.for("v-stc"),Ol=[];let Bi=null;function w(t=!1){Ol.push(Bi=t?null:[])}function iD(){Ol.pop(),Bi=Ol[Ol.length-1]||null}let Kl=1;function zy(t){Kl+=t}function qR(t){return t.dynamicChildren=Kl>0?Bi||Zo:null,iD(),Kl>0&&Bi&&Bi.push(t),t}function A(t,e,n,i,s,r){return qR(c(t,e,n,i,s,r,!0))}function xt(t,e,n,i,s){return qR(Te(t,e,n,i,s,!0))}function jl(t){return t?t.__v_isVNode===!0:!1}function mr(t,e){return t.type===e.type&&t.key===e.key}const Uu="__vInternal",YR=({key:t})=>t??null,Ad=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ln(t)||fn(t)||vt(t)?{i:An,r:t,k:e,f:!!n}:t:null);function c(t,e=null,n=null,i=0,s=null,r=t===Ye?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&YR(e),ref:e&&Ad(e),scopeId:Mu,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:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:An};return a?(zb(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=ln(n)?8:16),Kl>0&&!o&&Bi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Bi.push(l),l}const Te=sD;function sD(t,e=null,n=null,i=0,s=null,r=!1){if((!t||t===DR)&&(t=vi),jl(t)){const a=zs(t,e,!0);return n&&zb(a,n),Kl>0&&!r&&Bi&&(a.shapeFlag&6?Bi[Bi.indexOf(t)]=a:Bi.push(a)),a.patchFlag|=-2,a}if(hD(t)&&(t=t.__vccOpts),e){e=rD(e);let{class:a,style:l}=e;a&&!ln(a)&&(e.class=ze(a)),Yt(l)&&(mR(l)&&!ot(l)&&(l=an({},l)),e.style=en(l))}const o=ln(t)?1:CR(t)?128:nD(t)?64:Yt(t)?4:vt(t)?2:0;return c(t,e,n,i,s,o,r,!0)}function rD(t){return t?mR(t)||Uu in t?an({},t):t:null}function zs(t,e,n=!1){const{props:i,ref:s,patchFlag:r,children:o}=t,a=e?oD(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&YR(a),ref:e&&e.ref?n&&s?ot(s)?s.concat(Ad(e)):[s,Ad(e)]:Ad(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ye?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&&zs(t.ssContent),ssFallback:t.ssFallback&&zs(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function et(t=" ",e=0){return Te(Pu,null,t,e)}function Vb(t,e){const n=Te(Rd,null,t);return n.staticCount=e,n}function V(t="",e=!1){return e?(w(),xt(vi,null,t)):Te(vi,null,t)}function Xi(t){return t==null||typeof t=="boolean"?Te(vi):ot(t)?Te(Ye,null,t.slice()):typeof t=="object"?lr(t):Te(Pu,null,String(t))}function lr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:zs(t)}function zb(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(ot(e))n=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),zb(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(Uu in e)?e._ctx=An:s===3&&An&&(An.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else vt(e)?(e={default:e,_ctx:An},n=32):(e=String(e),i&64?(n=16,e=[et(e)]):n=8);t.children=e,t.shapeFlag|=n}function oD(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const s in i)if(s==="class")e.class!==i.class&&(e.class=ze([e.class,i.class]));else if(s==="style")e.style=en([e.style,i.style]);else if(Tu(s)){const r=e[s],o=i[s];o&&r!==o&&!(ot(r)&&r.includes(o))&&(e[s]=r?[].concat(r,o):o)}else s!==""&&(e[s]=i[s])}return e}function _i(t,e,n,i=null){yi(t,e,7,[n,i])}const aD=UR();let lD=0;function cD(t,e,n){const i=t.type,s=(e?e.appContext:t.appContext)||aD,r={uid:lD++,vnode:t,type:i,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new eR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:BR(i,s),emitsOptions:xR(i,s),emit:null,emitted:null,propsDefaults:Jt,inheritAttrs:i.inheritAttrs,ctx:Jt,data:Jt,props:Jt,attrs:Jt,slots:Jt,refs:Jt,setupState:Jt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=e?e.root:r,r.emit=y2.bind(null,r),t.ce&&t.ce(r),r}let vn=null;const Hb=()=>vn||An;let qb,xo,Hy="__VUE_INSTANCE_SETTERS__";(xo=Eg()[Hy])||(xo=Eg()[Hy]=[]),xo.push(t=>vn=t),qb=t=>{xo.length>1?xo.forEach(e=>e(t)):xo[0](t)};const pa=t=>{qb(t),t.scope.on()},io=()=>{vn&&vn.scope.off(),qb(null)};function $R(t){return t.vnode.shapeFlag&4}let Ql=!1;function dD(t,e=!1){Ql=e;const{props:n,children:i}=t.vnode,s=$R(t);K2(t,n,s,e),X2(t,i);const r=s?uD(t,e):void 0;return Ql=!1,r}function uD(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=dc(new Proxy(t.ctx,G2));const{setup:i}=n;if(i){const s=t.setupContext=i.length>1?_D(t):null;pa(t),Ba();const r=vr(i,t,0,[t.props,s]);if(Ga(),io(),jw(r)){if(r.then(io,io),e)return r.then(o=>{qy(t,o,e)}).catch(o=>{Ou(o,t,0)});t.asyncDep=r}else qy(t,r,e)}else WR(t,e)}function qy(t,e,n){vt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Yt(e)&&(t.setupState=bR(e)),WR(t,n)}let Yy;function WR(t,e,n){const i=t.type;if(!t.render){if(!e&&Yy&&!i.render){const s=i.template||Bb(t).template;if(s){const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=i,u=an(an({isCustomElement:r,delimiters:a},o),l);i.render=Yy(s,u)}}t.render=i.render||Gi}pa(t),Ba(),V2(t),Ga(),io()}function pD(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Jn(t,"get","$attrs"),e[n]}}))}function _D(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return pD(t)},slots:t.slots,emit:t.emit,expose:e}}function Fu(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(bR(dc(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Nl)return Nl[n](t)},has(e,n){return n in e||n in Nl}}))}function Ng(t,e=!0){return vt(t)?t.displayName||t.name:t.name||e&&t.__name}function hD(t){return vt(t)&&"__vccOpts"in t}const st=(t,e)=>h2(t,e,Ql);function Yb(t,e,n){const i=arguments.length;return i===2?Yt(e)&&!ot(e)?jl(e)?Te(t,null,[e]):Te(t,e):Te(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&jl(n)&&(n=[n]),Te(t,e,n))}const fD=Symbol.for("v-scx"),mD=()=>Vi(fD),gD="3.3.4",bD="http://www.w3.org/2000/svg",Kr=typeof document<"u"?document:null,$y=Kr&&Kr.createElement("template"),ED={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e?Kr.createElementNS(bD,t):Kr.createElement(t,n?{is:n}:void 0);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>Kr.createTextNode(t),createComment:t=>Kr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Kr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,r){const o=n?n.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{$y.innerHTML=i?`<svg>${t}</svg>`:t;const a=$y.content;if(i){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function yD(t,e,n){const i=t._vtc;i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function vD(t,e,n){const i=t.style,s=ln(n);if(n&&!s){if(e&&!ln(e))for(const r in e)n[r]==null&&Og(i,r,"");for(const r in n)Og(i,r,n[r])}else{const r=i.display;s?e!==n&&(i.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(i.display=r)}}const Wy=/\s*!important$/;function Og(t,e,n){if(ot(n))n.forEach(i=>Og(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=SD(t,e);Wy.test(n)?t.setProperty(Eo(i),n.replace(Wy,""),"important"):t[i]=n}}const Ky=["Webkit","Moz","ms"],xp={};function SD(t,e){const n=xp[e];if(n)return n;let i=ls(e);if(i!=="filter"&&i in t)return xp[e]=i;i=Cu(i);for(let s=0;s<Ky.length;s++){const r=Ky[s]+i;if(r in t)return xp[e]=r}return e}const jy="http://www.w3.org/1999/xlink";function TD(t,e,n,i,s){if(i&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(jy,e.slice(6,e.length)):t.setAttributeNS(jy,e,n);else{const r=CM(e);n==null||r&&!Zw(n)?t.removeAttribute(e):t.setAttribute(e,r?"":n)}}function xD(t,e,n,i,s,r,o){if(e==="innerHTML"||e==="textContent"){i&&o(i,s,r),t[e]=n??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){t._value=n;const u=a==="OPTION"?t.getAttribute("value"):t.value,d=n??"";u!==d&&(t.value=d),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const u=typeof t[e];u==="boolean"?n=Zw(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function Ls(t,e,n,i){t.addEventListener(e,n,i)}function CD(t,e,n,i){t.removeEventListener(e,n,i)}function wD(t,e,n,i,s=null){const r=t._vei||(t._vei={}),o=r[e];if(i&&o)o.value=i;else{const[a,l]=RD(e);if(i){const u=r[e]=OD(i,s);Ls(t,a,u,l)}else o&&(CD(t,a,o,l),r[e]=void 0)}}const Qy=/(?:Once|Passive|Capture)$/;function RD(t){let e;if(Qy.test(t)){e={};let i;for(;i=t.match(Qy);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Eo(t.slice(2)),e]}let Cp=0;const AD=Promise.resolve(),ND=()=>Cp||(AD.then(()=>Cp=0),Cp=Date.now());function OD(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;yi(ID(i,n.value),e,5,[i])};return n.value=t,n.attached=ND(),n}function ID(t,e){if(ot(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const Xy=/^on[a-z]/,MD=(t,e,n,i,s=!1,r,o,a,l)=>{e==="class"?yD(t,i,s):e==="style"?vD(t,n,i):Tu(e)?Cb(e)||wD(t,e,n,i,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):DD(t,e,i,s))?xD(t,e,i,r,o,a,l):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),TD(t,e,i,s))};function DD(t,e,n,i){return i?!!(e==="innerHTML"||e==="textContent"||e in t&&Xy.test(e)&&vt(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Xy.test(e)&&ln(n)?!1:e in t}const Zs="transition",sl="animation",cs=(t,{slots:e})=>Yb(A2,jR(t),e);cs.displayName="Transition";const KR={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},kD=cs.props=an({},NR,KR),Pr=(t,e=[])=>{ot(t)?t.forEach(n=>n(...e)):t&&t(...e)},Zy=t=>t?ot(t)?t.some(e=>e.length>1):t.length>1:!1;function jR(t){const e={};for(const B in t)B in KR||(e[B]=t[B]);if(t.css===!1)return e;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=o,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=t,m=LD(s),E=m&&m[0],b=m&&m[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:v,onLeave:S,onLeaveCancelled:C,onBeforeAppear:T=g,onAppear:O=y,onAppearCancelled:k=v}=e,x=(B,ne,L)=>{ar(B,ne?d:a),ar(B,ne?u:o),L&&L()},I=(B,ne)=>{B._isLeaving=!1,ar(B,h),ar(B,_),ar(B,f),ne&&ne()},F=B=>(ne,L)=>{const $=B?O:y,H=()=>x(ne,B,L);Pr($,[ne,H]),Jy(()=>{ar(ne,B?l:r),Is(ne,B?d:a),Zy($)||ev(ne,i,E,H)})};return an(e,{onBeforeEnter(B){Pr(g,[B]),Is(B,r),Is(B,o)},onBeforeAppear(B){Pr(T,[B]),Is(B,l),Is(B,u)},onEnter:F(!1),onAppear:F(!0),onLeave(B,ne){B._isLeaving=!0;const L=()=>I(B,ne);Is(B,h),XR(),Is(B,f),Jy(()=>{B._isLeaving&&(ar(B,h),Is(B,_),Zy(S)||ev(B,i,b,L))}),Pr(S,[B,L])},onEnterCancelled(B){x(B,!1),Pr(v,[B])},onAppearCancelled(B){x(B,!0),Pr(k,[B])},onLeaveCancelled(B){I(B),Pr(C,[B])}})}function LD(t){if(t==null)return null;if(Yt(t))return[wp(t.enter),wp(t.leave)];{const e=wp(t);return[e,e]}}function wp(t){return EM(t)}function Is(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function ar(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Jy(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let PD=0;function ev(t,e,n,i){const s=t._endId=++PD,r=()=>{s===t._endId&&i()};if(n)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=QR(t,e);if(!o)return i();const u=o+"end";let d=0;const h=()=>{t.removeEventListener(u,f),r()},f=_=>{_.target===t&&++d>=l&&h()};setTimeout(()=>{d<l&&h()},a+1),t.addEventListener(u,f)}function QR(t,e){const n=window.getComputedStyle(t),i=m=>(n[m]||"").split(", "),s=i(`${Zs}Delay`),r=i(`${Zs}Duration`),o=tv(s,r),a=i(`${sl}Delay`),l=i(`${sl}Duration`),u=tv(a,l);let d=null,h=0,f=0;e===Zs?o>0&&(d=Zs,h=o,f=r.length):e===sl?u>0&&(d=sl,h=u,f=l.length):(h=Math.max(o,u),d=h>0?o>u?Zs:sl:null,f=d?d===Zs?r.length:l.length:0);const _=d===Zs&&/\b(transform|all)(,|$)/.test(i(`${Zs}Property`).toString());return{type:d,timeout:h,propCount:f,hasTransform:_}}function tv(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>nv(n)+nv(t[i])))}function nv(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function XR(){return document.body.offsetHeight}const ZR=new WeakMap,JR=new WeakMap,eA={name:"TransitionGroup",props:an({},kD,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Hb(),i=AR();let s,r;return uc(()=>{if(!s.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!VD(s[0].el,n.vnode.el,o))return;s.forEach(FD),s.forEach(BD);const a=s.filter(GD);XR(),a.forEach(l=>{const u=l.el,d=u.style;Is(u,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,ar(u,o))};u.addEventListener("transitionend",h)})}),()=>{const o=Lt(t),a=jR(o);let l=o.tag||Ye;s=r,r=e.default?Ub(e.default()):[];for(let u=0;u<r.length;u++){const d=r[u];d.key!=null&&ua(d,Wl(d,a,i,n))}if(s)for(let u=0;u<s.length;u++){const d=s[u];ua(d,Wl(d,a,i,n)),ZR.set(d,d.el.getBoundingClientRect())}return Te(l,null,r)}}},UD=t=>delete t.mode;eA.props;const os=eA;function FD(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function BD(t){JR.set(t,t.el.getBoundingClientRect())}function GD(t){const e=ZR.get(t),n=JR.get(t),i=e.left-n.left,s=e.top-n.top;if(i||s){const r=t.el.style;return r.transform=r.webkitTransform=`translate(${i}px,${s}px)`,r.transitionDuration="0s",t}}function VD(t,e,n){const i=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(i);const{hasTransform:r}=QR(i);return s.removeChild(i),r}const Rr=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ot(e)?n=>ea(e,n):e};function zD(t){t.target.composing=!0}function iv(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const we={created(t,{modifiers:{lazy:e,trim:n,number:i}},s){t._assign=Rr(s);const r=i||s.props&&s.props.type==="number";Ls(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),r&&(a=Hd(a)),t._assign(a)}),n&&Ls(t,"change",()=>{t.value=t.value.trim()}),e||(Ls(t,"compositionstart",zD),Ls(t,"compositionend",iv),Ls(t,"change",iv))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:i,number:s}},r){if(t._assign=Rr(r),t.composing||document.activeElement===t&&t.type!=="range"&&(n||i&&t.value.trim()===e||(s||t.type==="number")&&Hd(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},Ze={deep:!0,created(t,e,n){t._assign=Rr(n),Ls(t,"change",()=>{const i=t._modelValue,s=_a(t),r=t.checked,o=t._assign;if(ot(i)){const a=Ab(i,s),l=a!==-1;if(r&&!l)o(i.concat(s));else if(!r&&l){const u=[...i];u.splice(a,1),o(u)}}else if(Ua(i)){const a=new Set(i);r?a.add(s):a.delete(s),o(a)}else o(tA(t,r))})},mounted:sv,beforeUpdate(t,e,n){t._assign=Rr(n),sv(t,e,n)}};function sv(t,{value:e,oldValue:n},i){t._modelValue=e,ot(e)?t.checked=Ab(e,i.props.value)>-1:Ua(e)?t.checked=e.has(i.props.value):e!==n&&(t.checked=uo(e,tA(t,!0)))}const HD={created(t,{value:e},n){t.checked=uo(e,n.props.value),t._assign=Rr(n),Ls(t,"change",()=>{t._assign(_a(t))})},beforeUpdate(t,{value:e,oldValue:n},i){t._assign=Rr(i),e!==n&&(t.checked=uo(e,i.props.value))}},jt={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const s=Ua(e);Ls(t,"change",()=>{const r=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Hd(_a(o)):_a(o));t._assign(t.multiple?s?new Set(r):r:r[0])}),t._assign=Rr(i)},mounted(t,{value:e}){rv(t,e)},beforeUpdate(t,e,n){t._assign=Rr(n)},updated(t,{value:e}){rv(t,e)}};function rv(t,e){const n=t.multiple;if(!(n&&!ot(e)&&!Ua(e))){for(let i=0,s=t.options.length;i<s;i++){const r=t.options[i],o=_a(r);if(n)ot(e)?r.selected=Ab(e,o)>-1:r.selected=e.has(o);else if(uo(_a(r),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function _a(t){return"_value"in t?t._value:t.value}function tA(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const qD=["ctrl","shift","alt","meta"],YD={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)=>qD.some(n=>t[`${n}Key`]&&!e.includes(n))},be=(t,e)=>(n,...i)=>{for(let s=0;s<e.length;s++){const r=YD[e[s]];if(r&&r(n,e))return}return t(n,...i)},$D={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hs=(t,e)=>n=>{if(!("key"in n))return;const i=Eo(n.key);if(e.some(s=>s===i||$D[s]===i))return t(n)},Mt={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):rl(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),rl(t,!0),i.enter(t)):i.leave(t,()=>{rl(t,!1)}):rl(t,e))},beforeUnmount(t,{value:e}){rl(t,e)}};function rl(t,e){t.style.display=e?t._vod:"none"}const WD=an({patchProp:MD},ED);let ov;function KD(){return ov||(ov=J2(WD))}const jD=(...t)=>{const e=KD().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=QD(i);if(!s)return;const r=e._component;!vt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e};function QD(t){return ln(t)?document.querySelector(t):t}function XD(){return nA().__VUE_DEVTOOLS_GLOBAL_HOOK__}function nA(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ZD=typeof Proxy=="function",JD="devtools-plugin:setup",ek="plugin:settings:set";let Co,Ig;function tk(){var t;return Co!==void 0||(typeof window<"u"&&window.performance?(Co=!0,Ig=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(Co=!0,Ig=global.perf_hooks.performance):Co=!1),Co}function nk(){return tk()?Ig.now():Date.now()}class ik{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const i={};if(e.settings)for(const o in e.settings){const a=e.settings[o];i[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}r=o},now(){return nk()}},n&&n.on(ek,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,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(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}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 sk(t,e){const n=t,i=nA(),s=XD(),r=ZD&&n.enableEarlyProxy;if(s&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(JD,t,e);else{const o=r?new ik(n,s):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*!
|
||
* vuex v4.1.0
|
||
* (c) 2022 Evan You
|
||
* @license MIT
|
||
*/var rk="store";function za(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function iA(t){return t!==null&&typeof t=="object"}function ok(t){return t&&typeof t.then=="function"}function ak(t,e){return function(){return t(e)}}function sA(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function rA(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;Bu(t,n,[],t._modules.root,!0),$b(t,n,e)}function $b(t,e,n){var i=t._state,s=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,o={},a={},l=RM(!0);l.run(function(){za(r,function(u,d){o[d]=ak(u,t),a[d]=st(function(){return o[d]()}),Object.defineProperty(t.getters,d,{get:function(){return a[d].value},enumerable:!0})})}),t._state=ei({data:e}),t._scope=l,t.strict&&pk(t),i&&n&&t._withCommit(function(){i.data=null}),s&&s.stop()}function Bu(t,e,n,i,s){var r=!n.length,o=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=i),!r&&!s){var a=Wb(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){a[l]=i.state})}var u=i.context=lk(t,o,n);i.forEachMutation(function(d,h){var f=o+h;ck(t,f,d,u)}),i.forEachAction(function(d,h){var f=d.root?h:o+h,_=d.handler||d;dk(t,f,_,u)}),i.forEachGetter(function(d,h){var f=o+h;uk(t,f,d,u)}),i.forEachChild(function(d,h){Bu(t,e,n.concat(h),d,s)})}function lk(t,e,n){var i=e==="",s={dispatch:i?t.dispatch:function(r,o,a){var l=Qd(r,o,a),u=l.payload,d=l.options,h=l.type;return(!d||!d.root)&&(h=e+h),t.dispatch(h,u)},commit:i?t.commit:function(r,o,a){var l=Qd(r,o,a),u=l.payload,d=l.options,h=l.type;(!d||!d.root)&&(h=e+h),t.commit(h,u,d)}};return Object.defineProperties(s,{getters:{get:i?function(){return t.getters}:function(){return oA(t,e)}},state:{get:function(){return Wb(t.state,n)}}}),s}function oA(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach(function(s){if(s.slice(0,i)===e){var r=s.slice(i);Object.defineProperty(n,r,{get:function(){return t.getters[s]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function ck(t,e,n,i){var s=t._mutations[e]||(t._mutations[e]=[]);s.push(function(o){n.call(t,i.state,o)})}function dk(t,e,n,i){var s=t._actions[e]||(t._actions[e]=[]);s.push(function(o){var a=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},o);return ok(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):a})}function uk(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(r){return n(i.state,i.getters,r.state,r.getters)})}function pk(t){qn(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function Wb(t,e){return e.reduce(function(n,i){return n[i]},t)}function Qd(t,e,n){return iA(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var _k="vuex bindings",av="vuex:mutations",Rp="vuex:actions",wo="vuex",hk=0;function fk(t,e){sk({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:[_k]},function(n){n.addTimelineLayer({id:av,label:"Vuex Mutations",color:lv}),n.addTimelineLayer({id:Rp,label:"Vuex Actions",color:lv}),n.addInspector({id:wo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(i){if(i.app===t&&i.inspectorId===wo)if(i.filter){var s=[];dA(s,e._modules.root,i.filter,""),i.rootNodes=s}else i.rootNodes=[cA(e._modules.root,"")]}),n.on.getInspectorState(function(i){if(i.app===t&&i.inspectorId===wo){var s=i.nodeId;oA(e,s),i.state=bk(yk(e._modules,s),s==="root"?e.getters:e._makeLocalGettersCache,s)}}),n.on.editInspectorState(function(i){if(i.app===t&&i.inspectorId===wo){var s=i.nodeId,r=i.path;s!=="root"&&(r=s.split("/").filter(Boolean).concat(r)),e._withCommit(function(){i.set(e._state.data,r,i.state.value)})}}),e.subscribe(function(i,s){var r={};i.payload&&(r.payload=i.payload),r.state=s,n.notifyComponentUpdate(),n.sendInspectorTree(wo),n.sendInspectorState(wo),n.addTimelineEvent({layerId:av,event:{time:Date.now(),title:i.type,data:r}})}),e.subscribeAction({before:function(i,s){var r={};i.payload&&(r.payload=i.payload),i._id=hk++,i._time=Date.now(),r.state=s,n.addTimelineEvent({layerId:Rp,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:r}})},after:function(i,s){var r={},o=Date.now()-i._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},i.payload&&(r.payload=i.payload),r.state=s,n.addTimelineEvent({layerId:Rp,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:r}})}})})}var lv=8702998,mk=6710886,gk=16777215,aA={label:"namespaced",textColor:gk,backgroundColor:mk};function lA(t){return t&&t!=="root"?t.split("/").slice(-2,-1)[0]:"Root"}function cA(t,e){return{id:e||"root",label:lA(e),tags:t.namespaced?[aA]:[],children:Object.keys(t._children).map(function(n){return cA(t._children[n],e+n+"/")})}}function dA(t,e,n,i){i.includes(n)&&t.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:e.namespaced?[aA]:[]}),Object.keys(e._children).forEach(function(s){dA(t,e._children[s],n,i+s+"/")})}function bk(t,e,n){e=n==="root"?e:e[n];var i=Object.keys(e),s={state:Object.keys(t.state).map(function(o){return{key:o,editable:!0,value:t.state[o]}})};if(i.length){var r=Ek(e);s.getters=Object.keys(r).map(function(o){return{key:o.endsWith("/")?lA(o):o,editable:!1,value:Mg(function(){return r[o]})}})}return s}function Ek(t){var e={};return Object.keys(t).forEach(function(n){var i=n.split("/");if(i.length>1){var s=e,r=i.pop();i.forEach(function(o){s[o]||(s[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),s=s[o]._custom.value}),s[r]=Mg(function(){return t[n]})}else e[n]=Mg(function(){return t[n]})}),e}function yk(t,e){var n=e.split("/").filter(function(i){return i});return n.reduce(function(i,s,r){var o=i[s];if(!o)throw new Error('Missing module "'+s+'" for path "'+e+'".');return r===n.length-1?o:o._children},e==="root"?t:t.root._children)}function Mg(t){try{return t()}catch(e){return e}}var $i=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},uA={namespaced:{configurable:!0}};uA.namespaced.get=function(){return!!this._rawModule.namespaced};$i.prototype.addChild=function(e,n){this._children[e]=n};$i.prototype.removeChild=function(e){delete this._children[e]};$i.prototype.getChild=function(e){return this._children[e]};$i.prototype.hasChild=function(e){return e in this._children};$i.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)};$i.prototype.forEachChild=function(e){za(this._children,e)};$i.prototype.forEachGetter=function(e){this._rawModule.getters&&za(this._rawModule.getters,e)};$i.prototype.forEachAction=function(e){this._rawModule.actions&&za(this._rawModule.actions,e)};$i.prototype.forEachMutation=function(e){this._rawModule.mutations&&za(this._rawModule.mutations,e)};Object.defineProperties($i.prototype,uA);var So=function(e){this.register([],e,!1)};So.prototype.get=function(e){return e.reduce(function(n,i){return n.getChild(i)},this.root)};So.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(i,s){return n=n.getChild(s),i+(n.namespaced?s+"/":"")},"")};So.prototype.update=function(e){pA([],this.root,e)};So.prototype.register=function(e,n,i){var s=this;i===void 0&&(i=!0);var r=new $i(n,i);if(e.length===0)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}n.modules&&za(n.modules,function(a,l){s.register(e.concat(l),a,i)})};So.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1],s=n.getChild(i);s&&s.runtime&&n.removeChild(i)};So.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1];return n?n.hasChild(i):!1};function pA(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return;pA(t.concat(i),e.getChild(i),n.modules[i])}}function vk(t){return new ti(t)}var ti=function(e){var n=this;e===void 0&&(e={});var i=e.plugins;i===void 0&&(i=[]);var s=e.strict;s===void 0&&(s=!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 So(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(f,_){return l.call(o,f,_)},this.commit=function(f,_,m){return u.call(o,f,_,m)},this.strict=s;var d=this._modules.root.state;Bu(this,d,[],this._modules.root),$b(this,d),i.forEach(function(h){return h(n)})},Kb={state:{configurable:!0}};ti.prototype.install=function(e,n){e.provide(n||rk,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!1;i&&fk(e,this)};Kb.state.get=function(){return this._state.data};Kb.state.set=function(t){};ti.prototype.commit=function(e,n,i){var s=this,r=Qd(e,n,i),o=r.type,a=r.payload,l={type:o,payload:a},u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(h){h(a)})}),this._subscribers.slice().forEach(function(d){return d(l,s.state)}))};ti.prototype.dispatch=function(e,n){var i=this,s=Qd(e,n),r=s.type,o=s.payload,a={type:r,payload:o},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,i.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(d){return d(o)})):l[0](o);return new Promise(function(d,h){u.then(function(f){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(a,i.state)})}catch{}d(f)},function(f){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(a,i.state,f)})}catch{}h(f)})})}};ti.prototype.subscribe=function(e,n){return sA(e,this._subscribers,n)};ti.prototype.subscribeAction=function(e,n){var i=typeof e=="function"?{before:e}:e;return sA(i,this._actionSubscribers,n)};ti.prototype.watch=function(e,n,i){var s=this;return qn(function(){return e(s.state,s.getters)},n,Object.assign({},i))};ti.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})};ti.prototype.registerModule=function(e,n,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),this._modules.register(e,n),Bu(this,this.state,e,this._modules.get(e),i.preserveState),$b(this,this.state)};ti.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var i=Wb(n.state,e.slice(0,-1));delete i[e[e.length-1]]}),rA(this)};ti.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};ti.prototype.hotUpdate=function(e){this._modules.update(e),rA(this,!0)};ti.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n};Object.defineProperties(ti.prototype,Kb);var Sk=Ck(function(t,e){var n={};return Tk(e).forEach(function(i){var s=i.key,r=i.val;n[s]=function(){var a=this.$store.state,l=this.$store.getters;if(t){var u=wk(this.$store,"mapState",t);if(!u)return;a=u.context.state,l=u.context.getters}return typeof r=="function"?r.call(this,a,l):a[r]},n[s].vuex=!0}),n});function Tk(t){return xk(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 xk(t){return Array.isArray(t)||iA(t)}function Ck(t){return function(e,n){return typeof e!="string"?(n=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,n)}}function wk(t,e,n){var i=t._modulesNamespaceMap[n];return i}function _A(t,e){return function(){return t.apply(e,arguments)}}const{toString:Rk}=Object.prototype,{getPrototypeOf:jb}=Object,Gu=(t=>e=>{const n=Rk.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ps=t=>(t=t.toLowerCase(),e=>Gu(e)===t),Vu=t=>e=>typeof e===t,{isArray:Ha}=Array,Xl=Vu("undefined");function Ak(t){return t!==null&&!Xl(t)&&t.constructor!==null&&!Xl(t.constructor)&&Si(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const hA=ps("ArrayBuffer");function Nk(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&hA(t.buffer),e}const Ok=Vu("string"),Si=Vu("function"),fA=Vu("number"),zu=t=>t!==null&&typeof t=="object",Ik=t=>t===!0||t===!1,Nd=t=>{if(Gu(t)!=="object")return!1;const e=jb(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Mk=ps("Date"),Dk=ps("File"),kk=ps("Blob"),Lk=ps("FileList"),Pk=t=>zu(t)&&Si(t.pipe),Uk=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Si(t.append)&&((e=Gu(t))==="formdata"||e==="object"&&Si(t.toString)&&t.toString()==="[object FormData]"))},Fk=ps("URLSearchParams"),Bk=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pc(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Ha(t))for(i=0,s=t.length;i<s;i++)e.call(null,t[i],i,t);else{const r=n?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let a;for(i=0;i<o;i++)a=r[i],e.call(null,t[a],a,t)}}function mA(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,s;for(;i-- >0;)if(s=n[i],e===s.toLowerCase())return s;return null}const gA=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bA=t=>!Xl(t)&&t!==gA;function Dg(){const{caseless:t}=bA(this)&&this||{},e={},n=(i,s)=>{const r=t&&mA(e,s)||s;Nd(e[r])&&Nd(i)?e[r]=Dg(e[r],i):Nd(i)?e[r]=Dg({},i):Ha(i)?e[r]=i.slice():e[r]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&pc(arguments[i],n);return e}const Gk=(t,e,n,{allOwnKeys:i}={})=>(pc(e,(s,r)=>{n&&Si(s)?t[r]=_A(s,n):t[r]=s},{allOwnKeys:i}),t),Vk=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),zk=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hk=(t,e,n,i)=>{let s,r,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)o=s[r],(!i||i(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&jb(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},qk=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},Yk=t=>{if(!t)return null;if(Ha(t))return t;let e=t.length;if(!fA(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},$k=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&jb(Uint8Array)),Wk=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=i.next())&&!s.done;){const r=s.value;e.call(t,r[0],r[1])}},Kk=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},jk=ps("HTMLFormElement"),Qk=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),cv=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Xk=ps("RegExp"),EA=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};pc(n,(s,r)=>{let o;(o=e(s,r,t))!==!1&&(i[r]=o||s)}),Object.defineProperties(t,i)},Zk=t=>{EA(t,(e,n)=>{if(Si(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(Si(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jk=(t,e)=>{const n={},i=s=>{s.forEach(r=>{n[r]=!0})};return Ha(t)?i(t):i(String(t).split(e)),n},eL=()=>{},tL=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Ap="abcdefghijklmnopqrstuvwxyz",dv="0123456789",yA={DIGIT:dv,ALPHA:Ap,ALPHA_DIGIT:Ap+Ap.toUpperCase()+dv},nL=(t=16,e=yA.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function iL(t){return!!(t&&Si(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const sL=t=>{const e=new Array(10),n=(i,s)=>{if(zu(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const r=Ha(i)?[]:{};return pc(i,(o,a)=>{const l=n(o,s+1);!Xl(l)&&(r[a]=l)}),e[s]=void 0,r}}return i};return n(t,0)},rL=ps("AsyncFunction"),oL=t=>t&&(zu(t)||Si(t))&&Si(t.then)&&Si(t.catch),De={isArray:Ha,isArrayBuffer:hA,isBuffer:Ak,isFormData:Uk,isArrayBufferView:Nk,isString:Ok,isNumber:fA,isBoolean:Ik,isObject:zu,isPlainObject:Nd,isUndefined:Xl,isDate:Mk,isFile:Dk,isBlob:kk,isRegExp:Xk,isFunction:Si,isStream:Pk,isURLSearchParams:Fk,isTypedArray:$k,isFileList:Lk,forEach:pc,merge:Dg,extend:Gk,trim:Bk,stripBOM:Vk,inherits:zk,toFlatObject:Hk,kindOf:Gu,kindOfTest:ps,endsWith:qk,toArray:Yk,forEachEntry:Wk,matchAll:Kk,isHTMLForm:jk,hasOwnProperty:cv,hasOwnProp:cv,reduceDescriptors:EA,freezeMethods:Zk,toObjectSet:Jk,toCamelCase:Qk,noop:eL,toFiniteNumber:tL,findKey:mA,global:gA,isContextDefined:bA,ALPHABET:yA,generateString:nL,isSpecCompliantForm:iL,toJSONObject:sL,isAsyncFn:rL,isThenable:oL};function kt(t,e,n,i,s){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),i&&(this.request=i),s&&(this.response=s)}De.inherits(kt,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:De.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vA=kt.prototype,SA={};["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=>{SA[t]={value:t}});Object.defineProperties(kt,SA);Object.defineProperty(vA,"isAxiosError",{value:!0});kt.from=(t,e,n,i,s,r)=>{const o=Object.create(vA);return De.toFlatObject(t,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),kt.call(o,t.message,e,n,i,s),o.cause=t,o.name=t.name,r&&Object.assign(o,r),o};const aL=null;function kg(t){return De.isPlainObject(t)||De.isArray(t)}function TA(t){return De.endsWith(t,"[]")?t.slice(0,-2):t}function uv(t,e,n){return t?t.concat(e).map(function(s,r){return s=TA(s),!n&&r?"["+s+"]":s}).join(n?".":""):e}function lL(t){return De.isArray(t)&&!t.some(kg)}const cL=De.toFlatObject(De,{},null,function(e){return/^is[A-Z]/.test(e)});function Hu(t,e,n){if(!De.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=De.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,b){return!De.isUndefined(b[E])});const i=n.metaTokens,s=n.visitor||d,r=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&De.isSpecCompliantForm(e);if(!De.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(De.isDate(m))return m.toISOString();if(!l&&De.isBlob(m))throw new kt("Blob is not supported. Use a Buffer instead.");return De.isArrayBuffer(m)||De.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,E,b){let g=m;if(m&&!b&&typeof m=="object"){if(De.endsWith(E,"{}"))E=i?E:E.slice(0,-2),m=JSON.stringify(m);else if(De.isArray(m)&&lL(m)||(De.isFileList(m)||De.endsWith(E,"[]"))&&(g=De.toArray(m)))return E=TA(E),g.forEach(function(v,S){!(De.isUndefined(v)||v===null)&&e.append(o===!0?uv([E],S,r):o===null?E:E+"[]",u(v))}),!1}return kg(m)?!0:(e.append(uv(b,E,r),u(m)),!1)}const h=[],f=Object.assign(cL,{defaultVisitor:d,convertValue:u,isVisitable:kg});function _(m,E){if(!De.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(m),De.forEach(m,function(g,y){(!(De.isUndefined(g)||g===null)&&s.call(e,g,De.isString(y)?y.trim():y,E,f))===!0&&_(g,E?E.concat(y):[y])}),h.pop()}}if(!De.isObject(t))throw new TypeError("data must be an object");return _(t),e}function pv(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Qb(t,e){this._pairs=[],t&&Hu(t,this,e)}const xA=Qb.prototype;xA.append=function(e,n){this._pairs.push([e,n])};xA.toString=function(e){const n=e?function(i){return e.call(this,i,pv)}:pv;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function dL(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function CA(t,e,n){if(!e)return t;const i=n&&n.encode||dL,s=n&&n.serialize;let r;if(s?r=s(e,n):r=De.isURLSearchParams(e)?e.toString():new Qb(e,n).toString(i),r){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class uL{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){De.forEach(this.handlers,function(i){i!==null&&e(i)})}}const _v=uL,wA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pL=typeof URLSearchParams<"u"?URLSearchParams:Qb,_L=typeof FormData<"u"?FormData:null,hL=typeof Blob<"u"?Blob:null,fL={isBrowser:!0,classes:{URLSearchParams:pL,FormData:_L,Blob:hL},protocols:["http","https","file","blob","url","data"]},RA=typeof window<"u"&&typeof document<"u",mL=(t=>RA&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),gL=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:RA,hasStandardBrowserEnv:mL,hasStandardBrowserWebWorkerEnv:gL},Symbol.toStringTag,{value:"Module"})),ns={...bL,...fL};function EL(t,e){return Hu(t,new ns.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,r){return ns.isNode&&De.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function yL(t){return De.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function vL(t){const e={},n=Object.keys(t);let i;const s=n.length;let r;for(i=0;i<s;i++)r=n[i],e[r]=t[r];return e}function AA(t){function e(n,i,s,r){let o=n[r++];const a=Number.isFinite(+o),l=r>=n.length;return o=!o&&De.isArray(s)?s.length:o,l?(De.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!a):((!s[o]||!De.isObject(s[o]))&&(s[o]=[]),e(n,i,s[o],r)&&De.isArray(s[o])&&(s[o]=vL(s[o])),!a)}if(De.isFormData(t)&&De.isFunction(t.entries)){const n={};return De.forEachEntry(t,(i,s)=>{e(yL(i),s,n,0)}),n}return null}function SL(t,e,n){if(De.isString(t))try{return(e||JSON.parse)(t),De.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const Xb={transitional:wA,adapter:["xhr","http"],transformRequest:[function(e,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,r=De.isObject(e);if(r&&De.isHTMLForm(e)&&(e=new FormData(e)),De.isFormData(e))return s&&s?JSON.stringify(AA(e)):e;if(De.isArrayBuffer(e)||De.isBuffer(e)||De.isStream(e)||De.isFile(e)||De.isBlob(e))return e;if(De.isArrayBufferView(e))return e.buffer;if(De.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return EL(e,this.formSerializer).toString();if((a=De.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Hu(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return r||s?(n.setContentType("application/json",!1),SL(e)):e}],transformResponse:[function(e){const n=this.transitional||Xb.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&De.isString(e)&&(i&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?kt.from(a,kt.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:ns.classes.FormData,Blob:ns.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};De.forEach(["delete","get","head","post","put","patch"],t=>{Xb.headers[t]={}});const Zb=Xb,TL=De.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"]),xL=t=>{const e={};let n,i,s;return t&&t.split(`
|
||
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!n||e[n]&&TL[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},hv=Symbol("internals");function ol(t){return t&&String(t).trim().toLowerCase()}function Od(t){return t===!1||t==null?t:De.isArray(t)?t.map(Od):String(t)}function CL(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const wL=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Np(t,e,n,i,s){if(De.isFunction(i))return i.call(this,e,n);if(s&&(e=n),!!De.isString(e)){if(De.isString(i))return e.indexOf(i)!==-1;if(De.isRegExp(i))return i.test(e)}}function RL(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function AL(t,e){const n=De.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(s,r,o){return this[i].call(this,e,s,r,o)},configurable:!0})})}class qu{constructor(e){e&&this.set(e)}set(e,n,i){const s=this;function r(a,l,u){const d=ol(l);if(!d)throw new Error("header name must be a non-empty string");const h=De.findKey(s,d);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||l]=Od(a))}const o=(a,l)=>De.forEach(a,(u,d)=>r(u,d,l));return De.isPlainObject(e)||e instanceof this.constructor?o(e,n):De.isString(e)&&(e=e.trim())&&!wL(e)?o(xL(e),n):e!=null&&r(n,e,i),this}get(e,n){if(e=ol(e),e){const i=De.findKey(this,e);if(i){const s=this[i];if(!n)return s;if(n===!0)return CL(s);if(De.isFunction(n))return n.call(this,s,i);if(De.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ol(e),e){const i=De.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Np(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let s=!1;function r(o){if(o=ol(o),o){const a=De.findKey(i,o);a&&(!n||Np(i,i[a],a,n))&&(delete i[a],s=!0)}}return De.isArray(e)?e.forEach(r):r(e),s}clear(e){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const r=n[i];(!e||Np(this,this[r],r,e,!0))&&(delete this[r],s=!0)}return s}normalize(e){const n=this,i={};return De.forEach(this,(s,r)=>{const o=De.findKey(i,r);if(o){n[o]=Od(s),delete n[r];return}const a=e?RL(r):String(r).trim();a!==r&&delete n[r],n[a]=Od(s),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return De.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=e&&De.isArray(i)?i.join(", "):i)}),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 i=new this(e);return n.forEach(s=>i.set(s)),i}static accessor(e){const i=(this[hv]=this[hv]={accessors:{}}).accessors,s=this.prototype;function r(o){const a=ol(o);i[a]||(AL(s,o),i[a]=!0)}return De.isArray(e)?e.forEach(r):r(e),this}}qu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);De.reduceDescriptors(qu.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});De.freezeMethods(qu);const Fs=qu;function Op(t,e){const n=this||Zb,i=e||n,s=Fs.from(i.headers);let r=i.data;return De.forEach(t,function(a){r=a.call(n,r,s.normalize(),e?e.status:void 0)}),s.normalize(),r}function NA(t){return!!(t&&t.__CANCEL__)}function _c(t,e,n){kt.call(this,t??"canceled",kt.ERR_CANCELED,e,n),this.name="CanceledError"}De.inherits(_c,kt,{__CANCEL__:!0});function NL(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new kt("Request failed with status code "+n.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const OL=ns.hasStandardBrowserEnv?{write(t,e,n,i,s,r){const o=[t+"="+encodeURIComponent(e)];De.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),De.isString(i)&&o.push("path="+i),De.isString(s)&&o.push("domain="+s),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function IL(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ML(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function OA(t,e){return t&&!IL(e)?ML(t,e):e}const DL=ns.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function s(r){let o=r;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{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 i=s(window.location.href),function(o){const a=De.isString(o)?s(o):o;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}();function kL(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function LL(t,e){t=t||10;const n=new Array(t),i=new Array(t);let s=0,r=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),d=i[r];o||(o=u),n[s]=l,i[s]=u;let h=r,f=0;for(;h!==s;)f+=n[h++],h=h%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),u-o<e)return;const _=d&&u-d;return _?Math.round(f*1e3/_):void 0}}function fv(t,e){let n=0;const i=LL(50,250);return s=>{const r=s.loaded,o=s.lengthComputable?s.total:void 0,a=r-n,l=i(a),u=r<=o;n=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-r)/l:void 0,event:s};d[e?"download":"upload"]=!0,t(d)}}const PL=typeof XMLHttpRequest<"u",UL=PL&&function(t){return new Promise(function(n,i){let s=t.data;const r=Fs.from(t.headers).normalize();let{responseType:o,withXSRFToken:a}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let d;if(De.isFormData(s)){if(ns.hasStandardBrowserEnv||ns.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((d=r.getContentType())!==!1){const[E,...b]=d?d.split(";").map(g=>g.trim()).filter(Boolean):[];r.setContentType([E||"multipart/form-data",...b].join("; "))}}let h=new XMLHttpRequest;if(t.auth){const E=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(E+":"+b))}const f=OA(t.baseURL,t.url);h.open(t.method.toUpperCase(),CA(f,t.params,t.paramsSerializer),!0),h.timeout=t.timeout;function _(){if(!h)return;const E=Fs.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),g={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:t,request:h};NL(function(v){n(v),u()},function(v){i(v),u()},g),h=null}if("onloadend"in h?h.onloadend=_:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(_)},h.onabort=function(){h&&(i(new kt("Request aborted",kt.ECONNABORTED,t,h)),h=null)},h.onerror=function(){i(new kt("Network Error",kt.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let b=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const g=t.transitional||wA;t.timeoutErrorMessage&&(b=t.timeoutErrorMessage),i(new kt(b,g.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,t,h)),h=null},ns.hasStandardBrowserEnv&&(a&&De.isFunction(a)&&(a=a(t)),a||a!==!1&&DL(f))){const E=t.xsrfHeaderName&&t.xsrfCookieName&&OL.read(t.xsrfCookieName);E&&r.set(t.xsrfHeaderName,E)}s===void 0&&r.setContentType(null),"setRequestHeader"in h&&De.forEach(r.toJSON(),function(b,g){h.setRequestHeader(g,b)}),De.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),o&&o!=="json"&&(h.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&h.addEventListener("progress",fv(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",fv(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=E=>{h&&(i(!E||E.type?new _c(null,t,h):E),h.abort(),h=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const m=kL(f);if(m&&ns.protocols.indexOf(m)===-1){i(new kt("Unsupported protocol "+m+":",kt.ERR_BAD_REQUEST,t));return}h.send(s||null)})},Lg={http:aL,xhr:UL};De.forEach(Lg,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const mv=t=>`- ${t}`,FL=t=>De.isFunction(t)||t===null||t===!1,IA={getAdapter:t=>{t=De.isArray(t)?t:[t];const{length:e}=t;let n,i;const s={};for(let r=0;r<e;r++){n=t[r];let o;if(i=n,!FL(n)&&(i=Lg[(o=String(n)).toLowerCase()],i===void 0))throw new kt(`Unknown adapter '${o}'`);if(i)break;s[o||"#"+r]=i}if(!i){const r=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?r.length>1?`since :
|
||
`+r.map(mv).join(`
|
||
`):" "+mv(r[0]):"as no adapter specified";throw new kt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:Lg};function Ip(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _c(null,t)}function gv(t){return Ip(t),t.headers=Fs.from(t.headers),t.data=Op.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),IA.getAdapter(t.adapter||Zb.adapter)(t).then(function(i){return Ip(t),i.data=Op.call(t,t.transformResponse,i),i.headers=Fs.from(i.headers),i},function(i){return NA(i)||(Ip(t),i&&i.response&&(i.response.data=Op.call(t,t.transformResponse,i.response),i.response.headers=Fs.from(i.response.headers))),Promise.reject(i)})}const bv=t=>t instanceof Fs?t.toJSON():t;function ha(t,e){e=e||{};const n={};function i(u,d,h){return De.isPlainObject(u)&&De.isPlainObject(d)?De.merge.call({caseless:h},u,d):De.isPlainObject(d)?De.merge({},d):De.isArray(d)?d.slice():d}function s(u,d,h){if(De.isUndefined(d)){if(!De.isUndefined(u))return i(void 0,u,h)}else return i(u,d,h)}function r(u,d){if(!De.isUndefined(d))return i(void 0,d)}function o(u,d){if(De.isUndefined(d)){if(!De.isUndefined(u))return i(void 0,u)}else return i(void 0,d)}function a(u,d,h){if(h in e)return i(u,d);if(h in t)return i(void 0,u)}const l={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d)=>s(bv(u),bv(d),!0)};return De.forEach(Object.keys(Object.assign({},t,e)),function(d){const h=l[d]||s,f=h(t[d],e[d],d);De.isUndefined(f)&&h!==a||(n[d]=f)}),n}const MA="1.6.2",Jb={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Jb[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Ev={};Jb.transitional=function(e,n,i){function s(r,o){return"[Axios v"+MA+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,a)=>{if(e===!1)throw new kt(s(o," has been removed"+(n?" in "+n:"")),kt.ERR_DEPRECATED);return n&&!Ev[o]&&(Ev[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(r,o,a):!0}};function BL(t,e,n){if(typeof t!="object")throw new kt("options must be an object",kt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const r=i[s],o=e[r];if(o){const a=t[r],l=a===void 0||o(a,r,t);if(l!==!0)throw new kt("option "+r+" must be "+l,kt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new kt("Unknown option "+r,kt.ERR_BAD_OPTION)}}const Pg={assertOptions:BL,validators:Jb},Js=Pg.validators;class Xd{constructor(e){this.defaults=e,this.interceptors={request:new _v,response:new _v}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ha(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:r}=n;i!==void 0&&Pg.assertOptions(i,{silentJSONParsing:Js.transitional(Js.boolean),forcedJSONParsing:Js.transitional(Js.boolean),clarifyTimeoutError:Js.transitional(Js.boolean)},!1),s!=null&&(De.isFunction(s)?n.paramsSerializer={serialize:s}:Pg.assertOptions(s,{encode:Js.function,serialize:Js.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&De.merge(r.common,r[n.method]);r&&De.forEach(["delete","get","head","post","put","patch","common"],m=>{delete r[m]}),n.headers=Fs.concat(o,r);const a=[];let l=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(l=l&&E.synchronous,a.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let d,h=0,f;if(!l){const m=[gv.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,d=Promise.resolve(n);h<f;)d=d.then(m[h++],m[h++]);return d}f=a.length;let _=n;for(h=0;h<f;){const m=a[h++],E=a[h++];try{_=m(_)}catch(b){E.call(this,b);break}}try{d=gv.call(this,_)}catch(m){return Promise.reject(m)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=ha(this.defaults,e);const n=OA(e.baseURL,e.url);return CA(n,e.params,e.paramsSerializer)}}De.forEach(["delete","get","head","options"],function(e){Xd.prototype[e]=function(n,i){return this.request(ha(i||{},{method:e,url:n,data:(i||{}).data}))}});De.forEach(["post","put","patch"],function(e){function n(i){return function(r,o,a){return this.request(ha(a||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Xd.prototype[e]=n(),Xd.prototype[e+"Form"]=n(!0)});const Id=Xd;class eE{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const o=new Promise(a=>{i.subscribe(a),r=a}).then(s);return o.cancel=function(){i.unsubscribe(r)},o},e(function(r,o,a){i.reason||(i.reason=new _c(r,o,a),n(i.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 eE(function(s){e=s}),cancel:e}}}const GL=eE;function VL(t){return function(n){return t.apply(null,n)}}function zL(t){return De.isObject(t)&&t.isAxiosError===!0}const Ug={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(Ug).forEach(([t,e])=>{Ug[e]=t});const HL=Ug;function DA(t){const e=new Id(t),n=_A(Id.prototype.request,e);return De.extend(n,Id.prototype,e,{allOwnKeys:!0}),De.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return DA(ha(t,s))},n}const pn=DA(Zb);pn.Axios=Id;pn.CanceledError=_c;pn.CancelToken=GL;pn.isCancel=NA;pn.VERSION=MA;pn.toFormData=Hu;pn.AxiosError=kt;pn.Cancel=pn.CanceledError;pn.all=function(e){return Promise.all(e)};pn.spread=VL;pn.isAxiosError=zL;pn.mergeConfig=ha;pn.AxiosHeaders=Fs;pn.formToJSON=t=>AA(De.isHTMLForm(t)?new FormData(t):t);pn.getAdapter=IA.getAdapter;pn.HttpStatusCode=HL;pn.default=pn;const Se=pn;/*!
|
||
* vue-router v4.2.5
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Wo=typeof window<"u";function qL(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Vt=Object.assign;function Mp(t,e){const n={};for(const i in e){const s=e[i];n[i]=qi(s)?s.map(t):t(s)}return n}const Il=()=>{},qi=Array.isArray,YL=/\/$/,$L=t=>t.replace(YL,"");function Dp(t,e,n="/"){let i,s={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),s=t(r)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=QL(i??e,n),{fullPath:i+(r&&"?")+r+o,path:i,query:s,hash:o}}function WL(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function yv(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function KL(t,e,n){const i=e.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&fa(e.matched[i],n.matched[s])&&kA(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function fa(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function kA(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!jL(t[n],e[n]))return!1;return!0}function jL(t,e){return qi(t)?vv(t,e):qi(e)?vv(e,t):t===e}function vv(t,e){return qi(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function QL(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let r=n.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+i.slice(o-(o===i.length?1:0)).join("/")}var Zl;(function(t){t.pop="pop",t.push="push"})(Zl||(Zl={}));var Ml;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ml||(Ml={}));function XL(t){if(!t)if(Wo){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),$L(t)}const ZL=/^[^#]+#/;function JL(t,e){return t.replace(ZL,"#")+e}function eP(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const Yu=()=>({left:window.pageXOffset,top:window.pageYOffset});function tP(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=eP(s,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 Sv(t,e){return(history.state?history.state.position-e:-1)+t}const Fg=new Map;function nP(t,e){Fg.set(t,e)}function iP(t){const e=Fg.get(t);return Fg.delete(t),e}let sP=()=>location.protocol+"//"+location.host;function LA(t,e){const{pathname:n,search:i,hash:s}=e,r=t.indexOf("#");if(r>-1){let a=s.includes(t.slice(r))?t.slice(r).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),yv(l,"")}return yv(n,t)+i+s}function rP(t,e,n,i){let s=[],r=[],o=null;const a=({state:f})=>{const _=LA(t,location),m=n.value,E=e.value;let b=0;if(f){if(n.value=_,e.value=f,o&&o===m){o=null;return}b=E?f.position-E.position:0}else i(_);s.forEach(g=>{g(n.value,m,{delta:b,type:Zl.pop,direction:b?b>0?Ml.forward:Ml.back:Ml.unknown})})};function l(){o=n.value}function u(f){s.push(f);const _=()=>{const m=s.indexOf(f);m>-1&&s.splice(m,1)};return r.push(_),_}function d(){const{history:f}=window;f.state&&f.replaceState(Vt({},f.state,{scroll:Yu()}),"")}function h(){for(const f of r)f();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:u,destroy:h}}function Tv(t,e,n,i=!1,s=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:s?Yu():null}}function oP(t){const{history:e,location:n}=window,i={value:LA(t,n)},s={value:e.state};s.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,u,d){const h=t.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?t:t.slice(h))+l:sP()+t+l;try{e[d?"replaceState":"pushState"](u,"",f),s.value=u}catch(_){console.error(_),n[d?"replace":"assign"](f)}}function o(l,u){const d=Vt({},e.state,Tv(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});r(l,d,!0),i.value=l}function a(l,u){const d=Vt({},s.value,e.state,{forward:l,scroll:Yu()});r(d.current,d,!0);const h=Vt({},Tv(i.value,l,null),{position:d.position+1},u);r(l,h,!1),i.value=l}return{location:i,state:s,push:a,replace:o}}function aP(t){t=XL(t);const e=oP(t),n=rP(t,e.state,e.location,e.replace);function i(r,o=!0){o||n.pauseListeners(),history.go(r)}const s=Vt({location:"",base:t,go:i,createHref:JL.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function lP(t){return typeof t=="string"||t&&typeof t=="object"}function PA(t){return typeof t=="string"||typeof t=="symbol"}const er={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},UA=Symbol("");var xv;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(xv||(xv={}));function ma(t,e){return Vt(new Error,{type:t,[UA]:!0},e)}function xs(t,e){return t instanceof Error&&UA in t&&(e==null||!!(t.type&e))}const Cv="[^/]+?",cP={sensitive:!1,strict:!1,start:!0,end:!0},dP=/[.+*?^${}()[\]/\\]/g;function uP(t,e){const n=Vt({},cP,e),i=[];let s=n.start?"^":"";const r=[];for(const u of t){const d=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let h=0;h<u.length;h++){const f=u[h];let _=40+(n.sensitive?.25:0);if(f.type===0)h||(s+="/"),s+=f.value.replace(dP,"\\$&"),_+=40;else if(f.type===1){const{value:m,repeatable:E,optional:b,regexp:g}=f;r.push({name:m,repeatable:E,optional:b});const y=g||Cv;if(y!==Cv){_+=10;try{new RegExp(`(${y})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${m}" (${y}): `+S.message)}}let v=E?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;h||(v=b&&u.length<2?`(?:/${v})`:"/"+v),b&&(v+="?"),s+=v,_+=20,b&&(_+=-8),E&&(_+=-20),y===".*"&&(_+=-50)}d.push(_)}i.push(d)}if(n.strict&&n.end){const u=i.length-1;i[u][i[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(u){const d=u.match(o),h={};if(!d)return null;for(let f=1;f<d.length;f++){const _=d[f]||"",m=r[f-1];h[m.name]=_&&m.repeatable?_.split("/"):_}return h}function l(u){let d="",h=!1;for(const f of t){(!h||!d.endsWith("/"))&&(d+="/"),h=!1;for(const _ of f)if(_.type===0)d+=_.value;else if(_.type===1){const{value:m,repeatable:E,optional:b}=_,g=m in u?u[m]:"";if(qi(g)&&!E)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const y=qi(g)?g.join("/"):g;if(!y)if(b)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):h=!0);else throw new Error(`Missing required param "${m}"`);d+=y}}return d||"/"}return{re:o,score:i,keys:r,parse:a,stringify:l}}function pP(t,e){let n=0;for(;n<t.length&&n<e.length;){const i=e[n]-t[n];if(i)return i;n++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function _P(t,e){let n=0;const i=t.score,s=e.score;for(;n<i.length&&n<s.length;){const r=pP(i[n],s[n]);if(r)return r;n++}if(Math.abs(s.length-i.length)===1){if(wv(i))return 1;if(wv(s))return-1}return s.length-i.length}function wv(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const hP={type:0,value:""},fP=/[a-zA-Z0-9_]/;function mP(t){if(!t)return[[]];if(t==="/")return[[hP]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(_){throw new Error(`ERR (${n})/"${u}": ${_}`)}let n=0,i=n;const s=[];let r;function o(){r&&s.push(r),r=[]}let a=0,l,u="",d="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(u&&h(),o()):l===":"?(h(),n=1):f();break;case 4:f(),n=i;break;case 1:l==="("?n=2:fP.test(l)?f():(h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,d="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${u}"`),h(),o(),s}function gP(t,e,n){const i=uP(mP(t.path),n),s=Vt(i,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function bP(t,e){const n=[],i=new Map;e=Nv({strict:!1,end:!0,sensitive:!1},e);function s(d){return i.get(d)}function r(d,h,f){const _=!f,m=EP(d);m.aliasOf=f&&f.record;const E=Nv(e,d),b=[m];if("alias"in d){const v=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of v)b.push(Vt({},m,{components:f?f.record.components:m.components,path:S,aliasOf:f?f.record:m}))}let g,y;for(const v of b){const{path:S}=v;if(h&&S[0]!=="/"){const C=h.record.path,T=C[C.length-1]==="/"?"":"/";v.path=h.record.path+(S&&T+S)}if(g=gP(v,h,E),f?f.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),_&&d.name&&!Av(g)&&o(d.name)),m.children){const C=m.children;for(let T=0;T<C.length;T++)r(C[T],g,f&&f.children[T])}f=f||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&l(g)}return y?()=>{o(y)}:Il}function o(d){if(PA(d)){const h=i.get(d);h&&(i.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&i.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){let h=0;for(;h<n.length&&_P(d,n[h])>=0&&(d.record.path!==n[h].record.path||!FA(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!Av(d)&&i.set(d.record.name,d)}function u(d,h){let f,_={},m,E;if("name"in d&&d.name){if(f=i.get(d.name),!f)throw ma(1,{location:d});E=f.record.name,_=Vt(Rv(h.params,f.keys.filter(y=>!y.optional).map(y=>y.name)),d.params&&Rv(d.params,f.keys.map(y=>y.name))),m=f.stringify(_)}else if("path"in d)m=d.path,f=n.find(y=>y.re.test(m)),f&&(_=f.parse(m),E=f.record.name);else{if(f=h.name?i.get(h.name):n.find(y=>y.re.test(h.path)),!f)throw ma(1,{location:d,currentLocation:h});E=f.record.name,_=Vt({},h.params,d.params),m=f.stringify(_)}const b=[];let g=f;for(;g;)b.unshift(g.record),g=g.parent;return{name:E,path:m,params:_,matched:b,meta:vP(b)}}return t.forEach(d=>r(d)),{addRoute:r,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function Rv(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function EP(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:yP(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 yP(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]=typeof n=="object"?n[i]:n;return e}function Av(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function vP(t){return t.reduce((e,n)=>Vt(e,n.meta),{})}function Nv(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function FA(t,e){return e.children.some(n=>n===t||FA(t,n))}const BA=/#/g,SP=/&/g,TP=/\//g,xP=/=/g,CP=/\?/g,GA=/\+/g,wP=/%5B/g,RP=/%5D/g,VA=/%5E/g,AP=/%60/g,zA=/%7B/g,NP=/%7C/g,HA=/%7D/g,OP=/%20/g;function tE(t){return encodeURI(""+t).replace(NP,"|").replace(wP,"[").replace(RP,"]")}function IP(t){return tE(t).replace(zA,"{").replace(HA,"}").replace(VA,"^")}function Bg(t){return tE(t).replace(GA,"%2B").replace(OP,"+").replace(BA,"%23").replace(SP,"%26").replace(AP,"`").replace(zA,"{").replace(HA,"}").replace(VA,"^")}function MP(t){return Bg(t).replace(xP,"%3D")}function DP(t){return tE(t).replace(BA,"%23").replace(CP,"%3F")}function kP(t){return t==null?"":DP(t).replace(TP,"%2F")}function Zd(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function LP(t){const e={};if(t===""||t==="?")return e;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<i.length;++s){const r=i[s].replace(GA," "),o=r.indexOf("="),a=Zd(o<0?r:r.slice(0,o)),l=o<0?null:Zd(r.slice(o+1));if(a in e){let u=e[a];qi(u)||(u=e[a]=[u]),u.push(l)}else e[a]=l}return e}function Ov(t){let e="";for(let n in t){const i=t[n];if(n=MP(n),i==null){i!==void 0&&(e+=(e.length?"&":"")+n);continue}(qi(i)?i.map(r=>r&&Bg(r)):[i&&Bg(i)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+n,r!=null&&(e+="="+r))})}return e}function PP(t){const e={};for(const n in t){const i=t[n];i!==void 0&&(e[n]=qi(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return e}const UP=Symbol(""),Iv=Symbol(""),nE=Symbol(""),qA=Symbol(""),Gg=Symbol("");function al(){let t=[];function e(i){return t.push(i),()=>{const s=t.indexOf(i);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function cr(t,e,n,i,s){const r=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=h=>{h===!1?a(ma(4,{from:n,to:e})):h instanceof Error?a(h):lP(h)?a(ma(2,{from:e,to:h})):(r&&i.enterCallbacks[s]===r&&typeof h=="function"&&r.push(h),o())},u=t.call(i&&i.instances[s],e,n,l);let d=Promise.resolve(u);t.length<3&&(d=d.then(l)),d.catch(h=>a(h))})}function kp(t,e,n,i){const s=[];for(const r of t)for(const o in r.components){let a=r.components[o];if(!(e!=="beforeRouteEnter"&&!r.instances[o]))if(FP(a)){const u=(a.__vccOpts||a)[e];u&&s.push(cr(u,n,i,r,o))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${r.path}"`));const d=qL(u)?u.default:u;r.components[o]=d;const f=(d.__vccOpts||d)[e];return f&&cr(f,n,i,r,o)()}))}}return s}function FP(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Mv(t){const e=Vi(nE),n=Vi(qA),i=st(()=>e.resolve(yt(t.to))),s=st(()=>{const{matched:l}=i.value,{length:u}=l,d=l[u-1],h=n.matched;if(!d||!h.length)return-1;const f=h.findIndex(fa.bind(null,d));if(f>-1)return f;const _=Dv(l[u-2]);return u>1&&Dv(d)===_&&h[h.length-1].path!==_?h.findIndex(fa.bind(null,l[u-2])):f}),r=st(()=>s.value>-1&&VP(n.params,i.value.params)),o=st(()=>s.value>-1&&s.value===n.matched.length-1&&kA(n.params,i.value.params));function a(l={}){return GP(l)?e[yt(t.replace)?"replace":"push"](yt(t.to)).catch(Il):Promise.resolve()}return{route:i,href:st(()=>i.value.href),isActive:r,isExactActive:o,navigate:a}}const BP=_n({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:Mv,setup(t,{slots:e}){const n=ei(Mv(t)),{options:i}=Vi(nE),s=st(()=>({[kv(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[kv(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=e.default&&e.default(n);return t.custom?r:Yb("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}}),ks=BP;function GP(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 VP(t,e){for(const n in e){const i=e[n],s=t[n];if(typeof i=="string"){if(i!==s)return!1}else if(!qi(s)||s.length!==i.length||i.some((r,o)=>r!==s[o]))return!1}return!0}function Dv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const kv=(t,e,n)=>t??e??n,zP=_n({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=Vi(Gg),s=st(()=>t.route||i.value),r=Vi(Iv,0),o=st(()=>{let u=yt(r);const{matched:d}=s.value;let h;for(;(h=d[u])&&!h.components;)u++;return u}),a=st(()=>s.value.matched[o.value]);sa(Iv,st(()=>o.value+1)),sa(UP,a),sa(Gg,s);const l=ft();return qn(()=>[l.value,a.value,t.name],([u,d,h],[f,_,m])=>{d&&(d.instances[h]=u,_&&_!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=_.leaveGuards),d.updateGuards.size||(d.updateGuards=_.updateGuards))),u&&d&&(!_||!fa(d,_)||!f)&&(d.enterCallbacks[h]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=s.value,d=t.name,h=a.value,f=h&&h.components[d];if(!f)return Lv(n.default,{Component:f,route:u});const _=h.props[d],m=_?_===!0?u.params:typeof _=="function"?_(u):_:null,b=Yb(f,Vt({},m,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(h.instances[d]=null)},ref:l}));return Lv(n.default,{Component:b,route:u})||b}}});function Lv(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const YA=zP;function HP(t){const e=bP(t.routes,t),n=t.parseQuery||LP,i=t.stringifyQuery||Ov,s=t.history,r=al(),o=al(),a=al(),l=r2(er);let u=er;Wo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Mp.bind(null,Z=>""+Z),h=Mp.bind(null,kP),f=Mp.bind(null,Zd);function _(Z,ye){let fe,Ne;return PA(Z)?(fe=e.getRecordMatcher(Z),Ne=ye):Ne=Z,e.addRoute(Ne,fe)}function m(Z){const ye=e.getRecordMatcher(Z);ye&&e.removeRoute(ye)}function E(){return e.getRoutes().map(Z=>Z.record)}function b(Z){return!!e.getRecordMatcher(Z)}function g(Z,ye){if(ye=Vt({},ye||l.value),typeof Z=="string"){const K=Dp(n,Z,ye.path),de=e.resolve({path:K.path},ye),le=s.createHref(K.fullPath);return Vt(K,de,{params:f(de.params),hash:Zd(K.hash),redirectedFrom:void 0,href:le})}let fe;if("path"in Z)fe=Vt({},Z,{path:Dp(n,Z.path,ye.path).path});else{const K=Vt({},Z.params);for(const de in K)K[de]==null&&delete K[de];fe=Vt({},Z,{params:h(K)}),ye.params=h(ye.params)}const Ne=e.resolve(fe,ye),Le=Z.hash||"";Ne.params=d(f(Ne.params));const D=WL(i,Vt({},Z,{hash:IP(Le),path:Ne.path})),q=s.createHref(D);return Vt({fullPath:D,hash:Le,query:i===Ov?PP(Z.query):Z.query||{}},Ne,{redirectedFrom:void 0,href:q})}function y(Z){return typeof Z=="string"?Dp(n,Z,l.value.path):Vt({},Z)}function v(Z,ye){if(u!==Z)return ma(8,{from:ye,to:Z})}function S(Z){return O(Z)}function C(Z){return S(Vt(y(Z),{replace:!0}))}function T(Z){const ye=Z.matched[Z.matched.length-1];if(ye&&ye.redirect){const{redirect:fe}=ye;let Ne=typeof fe=="function"?fe(Z):fe;return typeof Ne=="string"&&(Ne=Ne.includes("?")||Ne.includes("#")?Ne=y(Ne):{path:Ne},Ne.params={}),Vt({query:Z.query,hash:Z.hash,params:"path"in Ne?{}:Z.params},Ne)}}function O(Z,ye){const fe=u=g(Z),Ne=l.value,Le=Z.state,D=Z.force,q=Z.replace===!0,K=T(fe);if(K)return O(Vt(y(K),{state:typeof K=="object"?Vt({},Le,K.state):Le,force:D,replace:q}),ye||fe);const de=fe;de.redirectedFrom=ye;let le;return!D&&KL(i,Ne,fe)&&(le=ma(16,{to:de,from:Ne}),ae(Ne,Ne,!0,!1)),(le?Promise.resolve(le):I(de,Ne)).catch(Re=>xs(Re)?xs(Re,2)?Re:j(Re):Q(Re,de,Ne)).then(Re=>{if(Re){if(xs(Re,2))return O(Vt({replace:q},y(Re.to),{state:typeof Re.to=="object"?Vt({},Le,Re.to.state):Le,force:D}),ye||de)}else Re=B(de,Ne,!0,q,Le);return F(de,Ne,Re),Re})}function k(Z,ye){const fe=v(Z,ye);return fe?Promise.reject(fe):Promise.resolve()}function x(Z){const ye=Ee.values().next().value;return ye&&typeof ye.runWithContext=="function"?ye.runWithContext(Z):Z()}function I(Z,ye){let fe;const[Ne,Le,D]=qP(Z,ye);fe=kp(Ne.reverse(),"beforeRouteLeave",Z,ye);for(const K of Ne)K.leaveGuards.forEach(de=>{fe.push(cr(de,Z,ye))});const q=k.bind(null,Z,ye);return fe.push(q),Me(fe).then(()=>{fe=[];for(const K of r.list())fe.push(cr(K,Z,ye));return fe.push(q),Me(fe)}).then(()=>{fe=kp(Le,"beforeRouteUpdate",Z,ye);for(const K of Le)K.updateGuards.forEach(de=>{fe.push(cr(de,Z,ye))});return fe.push(q),Me(fe)}).then(()=>{fe=[];for(const K of D)if(K.beforeEnter)if(qi(K.beforeEnter))for(const de of K.beforeEnter)fe.push(cr(de,Z,ye));else fe.push(cr(K.beforeEnter,Z,ye));return fe.push(q),Me(fe)}).then(()=>(Z.matched.forEach(K=>K.enterCallbacks={}),fe=kp(D,"beforeRouteEnter",Z,ye),fe.push(q),Me(fe))).then(()=>{fe=[];for(const K of o.list())fe.push(cr(K,Z,ye));return fe.push(q),Me(fe)}).catch(K=>xs(K,8)?K:Promise.reject(K))}function F(Z,ye,fe){a.list().forEach(Ne=>x(()=>Ne(Z,ye,fe)))}function B(Z,ye,fe,Ne,Le){const D=v(Z,ye);if(D)return D;const q=ye===er,K=Wo?history.state:{};fe&&(Ne||q?s.replace(Z.fullPath,Vt({scroll:q&&K&&K.scroll},Le)):s.push(Z.fullPath,Le)),l.value=Z,ae(Z,ye,fe,q),j()}let ne;function L(){ne||(ne=s.listen((Z,ye,fe)=>{if(!xe.listening)return;const Ne=g(Z),Le=T(Ne);if(Le){O(Vt(Le,{replace:!0}),Ne).catch(Il);return}u=Ne;const D=l.value;Wo&&nP(Sv(D.fullPath,fe.delta),Yu()),I(Ne,D).catch(q=>xs(q,12)?q:xs(q,2)?(O(q.to,Ne).then(K=>{xs(K,20)&&!fe.delta&&fe.type===Zl.pop&&s.go(-1,!1)}).catch(Il),Promise.reject()):(fe.delta&&s.go(-fe.delta,!1),Q(q,Ne,D))).then(q=>{q=q||B(Ne,D,!1),q&&(fe.delta&&!xs(q,8)?s.go(-fe.delta,!1):fe.type===Zl.pop&&xs(q,20)&&s.go(-1,!1)),F(Ne,D,q)}).catch(Il)}))}let $=al(),H=al(),U;function Q(Z,ye,fe){j(Z);const Ne=H.list();return Ne.length?Ne.forEach(Le=>Le(Z,ye,fe)):console.error(Z),Promise.reject(Z)}function J(){return U&&l.value!==er?Promise.resolve():new Promise((Z,ye)=>{$.add([Z,ye])})}function j(Z){return U||(U=!Z,L(),$.list().forEach(([ye,fe])=>Z?fe(Z):ye()),$.reset()),Z}function ae(Z,ye,fe,Ne){const{scrollBehavior:Le}=t;if(!Wo||!Le)return Promise.resolve();const D=!fe&&iP(Sv(Z.fullPath,0))||(Ne||!fe)&&history.state&&history.state.scroll||null;return Ge().then(()=>Le(Z,ye,D)).then(q=>q&&tP(q)).catch(q=>Q(q,Z,ye))}const ve=Z=>s.go(Z);let ee;const Ee=new Set,xe={currentRoute:l,listening:!0,addRoute:_,removeRoute:m,hasRoute:b,getRoutes:E,resolve:g,options:t,push:S,replace:C,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:H.add,isReady:J,install(Z){const ye=this;Z.component("RouterLink",ks),Z.component("RouterView",YA),Z.config.globalProperties.$router=ye,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>yt(l)}),Wo&&!ee&&l.value===er&&(ee=!0,S(s.location).catch(Le=>{}));const fe={};for(const Le in er)Object.defineProperty(fe,Le,{get:()=>l.value[Le],enumerable:!0});Z.provide(nE,ye),Z.provide(qA,hR(fe)),Z.provide(Gg,l);const Ne=Z.unmount;Ee.add(Z),Z.unmount=function(){Ee.delete(Z),Ee.size<1&&(u=er,ne&&ne(),ne=null,l.value=er,ee=!1,U=!1),Ne()}}};function Me(Z){return Z.reduce((ye,fe)=>ye.then(()=>x(fe)),Promise.resolve())}return xe}function qP(t,e){const n=[],i=[],s=[],r=Math.max(e.matched.length,t.matched.length);for(let o=0;o<r;o++){const a=e.matched[o];a&&(t.matched.find(u=>fa(u,a))?i.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(u=>fa(u,l))||s.push(l))}return[n,i,s]}const YP="modulepreload",$P=function(t){return"/"+t},Pv={},Lp=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=$P(r),r in Pv)return;Pv[r]=!0;const o=r.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!i)for(let d=s.length-1;d>=0;d--){const h=s[d];if(h.href===r&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":YP,o||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),o)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})};var WP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ar(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function KP(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),n}var $A={exports:{}};(function(t,e){(function(i,s){t.exports=s()})(typeof self<"u"?self:WP,function(){return function(n){var i={};function s(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=n,s.c=i,s.d=function(r,o,a){s.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:a})},s.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},s.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(o,"a",o),o},s.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},s.p="",s(s.s=0)}({"./dist/icons.json":function(n){n.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',table:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zM11 11V7M16 11V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":function(n,i,s){var r,o;/*!
|
||
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 u(g,y){for(var v=y.length,S=0;S<v;++S)E(g,y[S])}var d={}.hasOwnProperty;function h(g,y){g[y]=!0}function f(g,y){for(var v in y)d.call(y,v)&&(g[v]=!!y[v])}var _=/\s+/;function m(g,y){for(var v=y.split(_),S=v.length,C=0;C<S;++C)g[v[C]]=!0}function E(g,y){if(y){var v=typeof y;v==="string"?m(g,y):Array.isArray(y)?u(g,y):v==="object"?f(g,y):v==="number"&&h(g,y)}}function b(){for(var g=arguments.length,y=Array(g),v=0;v<g;v++)y[v]=arguments[v];var S=new l;u(S,y);var C=[];for(var T in S)S[T]&&C.push(T);return C.join(" ")}return b}();typeof n<"u"&&n.exports?n.exports=a:(r=[],o=(function(){return a}).apply(i,r),o!==void 0&&(n.exports=o))})()},"./node_modules/core-js/es/array/from.js":function(n,i,s){s("./node_modules/core-js/modules/es.string.iterator.js"),s("./node_modules/core-js/modules/es.array.from.js");var r=s("./node_modules/core-js/internals/path.js");n.exports=r.Array.from},"./node_modules/core-js/internals/a-function.js":function(n,i){n.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"./node_modules/core-js/internals/an-object.js":function(n,i,s){var r=s("./node_modules/core-js/internals/is-object.js");n.exports=function(o){if(!r(o))throw TypeError(String(o)+" is not an object");return o}},"./node_modules/core-js/internals/array-from.js":function(n,i,s){var r=s("./node_modules/core-js/internals/bind-context.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),l=s("./node_modules/core-js/internals/is-array-iterator-method.js"),u=s("./node_modules/core-js/internals/to-length.js"),d=s("./node_modules/core-js/internals/create-property.js"),h=s("./node_modules/core-js/internals/get-iterator-method.js");n.exports=function(_){var m=o(_),E=typeof this=="function"?this:Array,b=arguments.length,g=b>1?arguments[1]:void 0,y=g!==void 0,v=0,S=h(m),C,T,O,k;if(y&&(g=r(g,b>2?arguments[2]:void 0,2)),S!=null&&!(E==Array&&l(S)))for(k=S.call(m),T=new E;!(O=k.next()).done;v++)d(T,v,y?a(k,g,[O.value,v],!0):O.value);else for(C=u(m.length),T=new E(C);C>v;v++)d(T,v,y?g(m[v],v):m[v]);return T.length=v,T}},"./node_modules/core-js/internals/array-includes.js":function(n,i,s){var r=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(l){return function(u,d,h){var f=r(u),_=o(f.length),m=a(h,_),E;if(l&&d!=d){for(;_>m;)if(E=f[m++],E!=E)return!0}else for(;_>m;m++)if((l||m in f)&&f[m]===d)return l||m||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,i,s){var r=s("./node_modules/core-js/internals/a-function.js");n.exports=function(o,a,l){if(r(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(u){return o.call(a,u)};case 2:return function(u,d){return o.call(a,u,d)};case 3:return function(u,d,h){return o.call(a,u,d,h)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,i,s){var r=s("./node_modules/core-js/internals/an-object.js");n.exports=function(o,a,l,u){try{return u?a(r(l)[0],l[1]):a(l)}catch(h){var d=o.return;throw d!==void 0&&r(d.call(o)),h}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var l=0,u={next:function(){return{done:!!l++}},return:function(){a=!0}};u[o]=function(){return this},Array.from(u,function(){throw 2})}catch{}n.exports=function(d,h){if(!h&&!a)return!1;var f=!1;try{var _={};_[o]=function(){return{next:function(){return{done:f=!0}}}},d(_)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(n,i){var s={}.toString;n.exports=function(r){return s.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,i,s){var r=s("./node_modules/core-js/internals/classof-raw.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=r(function(){return arguments}())=="Arguments",u=function(d,h){try{return d[h]}catch{}};n.exports=function(d){var h,f,_;return d===void 0?"Undefined":d===null?"Null":typeof(f=u(h=Object(d),a))=="string"?f:l?r(h):(_=r(h))=="Object"&&typeof h.callee=="function"?"Arguments":_}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=s("./node_modules/core-js/internals/object-define-property.js");n.exports=function(u,d){for(var h=o(d),f=l.f,_=a.f,m=0;m<h.length;m++){var E=h[m];r(u,E)||f(u,E,_(d,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(n,i,s){var r=s("./node_modules/core-js/internals/fails.js");n.exports=!r(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},"./node_modules/core-js/internals/create-iterator-constructor.js":function(n,i,s){var r=s("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=s("./node_modules/core-js/internals/object-create.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/set-to-string-tag.js"),u=s("./node_modules/core-js/internals/iterators.js"),d=function(){return this};n.exports=function(h,f,_){var m=f+" Iterator";return h.prototype=o(r,{next:a(1,_)}),l(h,m,!1,!0),u[m]=d,h}},"./node_modules/core-js/internals/create-property-descriptor.js":function(n,i){n.exports=function(s,r){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:r}}},"./node_modules/core-js/internals/create-property.js":function(n,i,s){var r=s("./node_modules/core-js/internals/to-primitive.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");n.exports=function(l,u,d){var h=r(u);h in l?o.f(l,h,a(0,d)):l[h]=d}},"./node_modules/core-js/internals/define-iterator.js":function(n,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/create-iterator-constructor.js"),a=s("./node_modules/core-js/internals/object-get-prototype-of.js"),l=s("./node_modules/core-js/internals/object-set-prototype-of.js"),u=s("./node_modules/core-js/internals/set-to-string-tag.js"),d=s("./node_modules/core-js/internals/hide.js"),h=s("./node_modules/core-js/internals/redefine.js"),f=s("./node_modules/core-js/internals/well-known-symbol.js"),_=s("./node_modules/core-js/internals/is-pure.js"),m=s("./node_modules/core-js/internals/iterators.js"),E=s("./node_modules/core-js/internals/iterators-core.js"),b=E.IteratorPrototype,g=E.BUGGY_SAFARI_ITERATORS,y=f("iterator"),v="keys",S="values",C="entries",T=function(){return this};n.exports=function(O,k,x,I,F,B,ne){o(x,k,I);var L=function(Ee){if(Ee===F&&J)return J;if(!g&&Ee in U)return U[Ee];switch(Ee){case v:return function(){return new x(this,Ee)};case S:return function(){return new x(this,Ee)};case C:return function(){return new x(this,Ee)}}return function(){return new x(this)}},$=k+" Iterator",H=!1,U=O.prototype,Q=U[y]||U["@@iterator"]||F&&U[F],J=!g&&Q||L(F),j=k=="Array"&&U.entries||Q,ae,ve,ee;if(j&&(ae=a(j.call(new O)),b!==Object.prototype&&ae.next&&(!_&&a(ae)!==b&&(l?l(ae,b):typeof ae[y]!="function"&&d(ae,y,T)),u(ae,$,!0,!0),_&&(m[$]=T))),F==S&&Q&&Q.name!==S&&(H=!0,J=function(){return Q.call(this)}),(!_||ne)&&U[y]!==J&&d(U,y,J),m[k]=J,F)if(ve={values:L(S),keys:B?J:L(v),entries:L(C)},ne)for(ee in ve)(g||H||!(ee in U))&&h(U,ee,ve[ee]);else r({target:k,proto:!0,forced:g||H},ve);return ve}},"./node_modules/core-js/internals/descriptors.js":function(n,i,s){var r=s("./node_modules/core-js/internals/fails.js");n.exports=!r(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/document-create-element.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/is-object.js"),a=r.document,l=o(a)&&o(a.createElement);n.exports=function(u){return l?a.createElement(u):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":function(n,i){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/redefine.js"),u=s("./node_modules/core-js/internals/set-global.js"),d=s("./node_modules/core-js/internals/copy-constructor-properties.js"),h=s("./node_modules/core-js/internals/is-forced.js");n.exports=function(f,_){var m=f.target,E=f.global,b=f.stat,g,y,v,S,C,T;if(E?y=r:b?y=r[m]||u(m,{}):y=(r[m]||{}).prototype,y)for(v in _){if(C=_[v],f.noTargetGet?(T=o(y,v),S=T&&T.value):S=y[v],g=h(E?v:m+(b?".":"#")+v,f.forced),!g&&S!==void 0){if(typeof C==typeof S)continue;d(C,S)}(f.sham||S&&S.sham)&&a(C,"sham",!0),l(y,v,C,f)}}},"./node_modules/core-js/internals/fails.js":function(n,i){n.exports=function(s){try{return!!s()}catch{return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(n,i,s){var r=s("./node_modules/core-js/internals/shared.js");n.exports=r("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(n,i,s){var r=s("./node_modules/core-js/internals/classof.js"),o=s("./node_modules/core-js/internals/iterators.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("iterator");n.exports=function(u){if(u!=null)return u[l]||u["@@iterator"]||o[r(u)]}},"./node_modules/core-js/internals/global.js":function(n,i,s){(function(r){var o="object",a=function(l){return l&&l.Math==Math&&l};n.exports=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof r==o&&r)||Function("return this")()}).call(this,s("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(n,i){var s={}.hasOwnProperty;n.exports=function(r,o){return s.call(r,o)}},"./node_modules/core-js/internals/hidden-keys.js":function(n,i){n.exports={}},"./node_modules/core-js/internals/hide.js":function(n,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");n.exports=r?function(l,u,d){return o.f(l,u,a(1,d))}:function(l,u,d){return l[u]=d,l}},"./node_modules/core-js/internals/html.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=r.document;n.exports=o&&o.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(n,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/fails.js"),a=s("./node_modules/core-js/internals/document-create-element.js");n.exports=!r&&!o(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(n,i,s){var r=s("./node_modules/core-js/internals/fails.js"),o=s("./node_modules/core-js/internals/classof-raw.js"),a="".split;n.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(l){return o(l)=="String"?a.call(l,""):Object(l)}:Object},"./node_modules/core-js/internals/internal-state.js":function(n,i,s){var r=s("./node_modules/core-js/internals/native-weak-map.js"),o=s("./node_modules/core-js/internals/global.js"),a=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/hide.js"),u=s("./node_modules/core-js/internals/has.js"),d=s("./node_modules/core-js/internals/shared-key.js"),h=s("./node_modules/core-js/internals/hidden-keys.js"),f=o.WeakMap,_,m,E,b=function(O){return E(O)?m(O):_(O,{})},g=function(O){return function(k){var x;if(!a(k)||(x=m(k)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return x}};if(r){var y=new f,v=y.get,S=y.has,C=y.set;_=function(O,k){return C.call(y,O,k),k},m=function(O){return v.call(y,O)||{}},E=function(O){return S.call(y,O)}}else{var T=d("state");h[T]=!0,_=function(O,k){return l(O,T,k),k},m=function(O){return u(O,T)?O[T]:{}},E=function(O){return u(O,T)}}n.exports={set:_,get:m,has:E,enforce:b,getterFor:g}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(n,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=s("./node_modules/core-js/internals/iterators.js"),a=r("iterator"),l=Array.prototype;n.exports=function(u){return u!==void 0&&(o.Array===u||l[a]===u)}},"./node_modules/core-js/internals/is-forced.js":function(n,i,s){var r=s("./node_modules/core-js/internals/fails.js"),o=/#|\.prototype\./,a=function(f,_){var m=u[l(f)];return m==h?!0:m==d?!1:typeof _=="function"?r(_):!!_},l=a.normalize=function(f){return String(f).replace(o,".").toLowerCase()},u=a.data={},d=a.NATIVE="N",h=a.POLYFILL="P";n.exports=a},"./node_modules/core-js/internals/is-object.js":function(n,i){n.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},"./node_modules/core-js/internals/is-pure.js":function(n,i){n.exports=!1},"./node_modules/core-js/internals/iterators-core.js":function(n,i,s){var r=s("./node_modules/core-js/internals/object-get-prototype-of.js"),o=s("./node_modules/core-js/internals/hide.js"),a=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/well-known-symbol.js"),u=s("./node_modules/core-js/internals/is-pure.js"),d=l("iterator"),h=!1,f=function(){return this},_,m,E;[].keys&&(E=[].keys(),"next"in E?(m=r(r(E)),m!==Object.prototype&&(_=m)):h=!0),_==null&&(_={}),!u&&!a(_,d)&&o(_,d,f),n.exports={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:h}},"./node_modules/core-js/internals/iterators.js":function(n,i){n.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(n,i,s){var r=s("./node_modules/core-js/internals/fails.js");n.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/function-to-string.js"),a=r.WeakMap;n.exports=typeof a=="function"&&/native code/.test(o.call(a))},"./node_modules/core-js/internals/object-create.js":function(n,i,s){var r=s("./node_modules/core-js/internals/an-object.js"),o=s("./node_modules/core-js/internals/object-define-properties.js"),a=s("./node_modules/core-js/internals/enum-bug-keys.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),u=s("./node_modules/core-js/internals/html.js"),d=s("./node_modules/core-js/internals/document-create-element.js"),h=s("./node_modules/core-js/internals/shared-key.js"),f=h("IE_PROTO"),_="prototype",m=function(){},E=function(){var b=d("iframe"),g=a.length,y="<",v="script",S=">",C="java"+v+":",T;for(b.style.display="none",u.appendChild(b),b.src=String(C),T=b.contentWindow.document,T.open(),T.write(y+v+S+"document.F=Object"+y+"/"+v+S),T.close(),E=T.F;g--;)delete E[_][a[g]];return E()};n.exports=Object.create||function(g,y){var v;return g!==null?(m[_]=r(g),v=new m,m[_]=null,v[f]=g):v=E(),y===void 0?v:o(v,y)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-keys.js");n.exports=r?Object.defineProperties:function(d,h){a(d);for(var f=l(h),_=f.length,m=0,E;_>m;)o.f(d,E=f[m++],h[E]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(n,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/to-primitive.js"),u=Object.defineProperty;i.f=r?u:function(h,f,_){if(a(h),f=l(f,!0),a(_),o)try{return u(h,f,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(h[f]=_.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),u=s("./node_modules/core-js/internals/to-primitive.js"),d=s("./node_modules/core-js/internals/has.js"),h=s("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;i.f=r?f:function(m,E){if(m=l(m),E=u(E,!0),h)try{return f(m,E)}catch{}if(d(m,E))return a(!o.f.call(m,E),m[E])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(u){return r(u,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),l=s("./node_modules/core-js/internals/correct-prototype-getter.js"),u=a("IE_PROTO"),d=Object.prototype;n.exports=l?Object.getPrototypeOf:function(h){return h=o(h),r(h,u)?h[u]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),u=a(!1);n.exports=function(d,h){var f=o(d),_=0,m=[],E;for(E in f)!r(l,E)&&r(f,E)&&m.push(E);for(;h.length>_;)r(f,E=h[_++])&&(~u(m,E)||m.push(E));return m}},"./node_modules/core-js/internals/object-keys.js":function(n,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(l){return r(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,i,s){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);i.f=a?function(u){var d=o(this,u);return!!d&&d.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,i,s){var r=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),o=a instanceof Array}catch{}return function(d,h){return r(d,h),o?l.call(d,h):d.__proto__=h,d}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=s("./node_modules/core-js/internals/an-object.js"),u=r.Reflect;n.exports=u&&u.ownKeys||function(h){var f=o.f(l(h)),_=a.f;return _?f.concat(_(h)):f}},"./node_modules/core-js/internals/path.js":function(n,i,s){n.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/has.js"),u=s("./node_modules/core-js/internals/set-global.js"),d=s("./node_modules/core-js/internals/function-to-string.js"),h=s("./node_modules/core-js/internals/internal-state.js"),f=h.get,_=h.enforce,m=String(d).split("toString");o("inspectSource",function(E){return d.call(E)}),(n.exports=function(E,b,g,y){var v=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,C=y?!!y.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!l(g,"name")&&a(g,"name",b),_(g).source=m.join(typeof b=="string"?b:"")),E===r){S?E[b]=g:u(b,g);return}else v?!C&&E[b]&&(S=!0):delete E[b];S?E[b]=g:a(E,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,i){n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/hide.js");n.exports=function(a,l){try{o(r,a,l)}catch{r[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,i,s){var r=s("./node_modules/core-js/internals/object-define-property.js").f,o=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");n.exports=function(u,d,h){u&&!o(u=h?u:u.prototype,l)&&r(u,l,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(n,i,s){var r=s("./node_modules/core-js/internals/shared.js"),o=s("./node_modules/core-js/internals/uid.js"),a=r("keys");n.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(n,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",u=r[l]||o(l,{});(n.exports=function(d,h){return u[d]||(u[d]=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,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,l,u){var d=String(o(a)),h=r(l),f=d.length,_,m;return h<0||h>=f?u?"":void 0:(_=d.charCodeAt(h),_<55296||_>56319||h+1===f||(m=d.charCodeAt(h+1))<56320||m>57343?u?d.charAt(h):_:u?d.slice(h,h+2):(_-55296<<10)+(m-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;n.exports=function(l,u){var d=r(l);return d<0?o(d+u,0):a(d,u)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,i,s){var r=s("./node_modules/core-js/internals/indexed-object.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,i){var s=Math.ceil,r=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?r:s)(o)}},"./node_modules/core-js/internals/to-length.js":function(n,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.min;n.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,i,s){var r=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(n,i,s){var r=s("./node_modules/core-js/internals/is-object.js");n.exports=function(o,a){if(!r(o))return o;var l,u;if(a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o))||typeof(l=o.valueOf)=="function"&&!r(u=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o)))return u;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,i){var s=0,r=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,i,s){var r=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/an-object.js");n.exports=function(a,l){if(o(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,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),l=s("./node_modules/core-js/internals/native-symbol.js"),u=r.Symbol,d=o("wks");n.exports=function(h){return d[h]||(d[h]=l&&u[h]||(l?u:a)("Symbol."+h))}},"./node_modules/core-js/modules/es.array.from.js":function(n,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(u){Array.from(u)});r({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,i,s){var r=s("./node_modules/core-js/internals/string-at.js"),o=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=o.set,d=o.getterFor(l);a(String,"String",function(h){u(this,{type:l,string:String(h),index:0})},function(){var f=d(this),_=f.string,m=f.index,E;return m>=_.length?{value:void 0,done:!0}:(E=r(_,m,!0),f.index+=E.length,{value:E,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,i){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}n.exports=s},"./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,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(E){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(E[y]=g[y])}return E},o=function(){function E(b,g){for(var y=0;y<g.length;y++){var v=g[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(b,v.key,v)}}return function(b,g,y){return g&&E(b.prototype,g),y&&E(b,y),b}}(),a=s("./node_modules/classnames/dedupe.js"),l=h(a),u=s("./src/default-attrs.json"),d=h(u);function h(E){return E&&E.__esModule?E:{default:E}}function f(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}var _=function(){function E(b,g){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];f(this,E),this.name=b,this.contents=g,this.tags=y,this.attrs=r({},d.default,{class:"feather feather-"+b})}return o(E,[{key:"toSvg",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=r({},this.attrs,g,{class:(0,l.default)(this.attrs.class,g.class)});return"<svg "+m(y)+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),E}();function m(E){return Object.keys(E).map(function(b){return b+'="'+E[b]+'"'}).join(" ")}i.default=_},"./src/icons.js":function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icon.js"),o=h(r),a=s("./dist/icons.json"),l=h(a),u=s("./src/tags.json"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}i.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],d.default[f])}).reduce(function(f,_){return f[_.name]=_,f},{})},"./src/index.js":function(n,i,s){var r=s("./src/icons.js"),o=h(r),a=s("./src/to-svg.js"),l=h(a),u=s("./src/replace.js"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}n.exports={icons:o.default,toSvg:l.default,replace:d.default}},"./src/replace.js":function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(m){for(var E=1;E<arguments.length;E++){var b=arguments[E];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(m[g]=b[g])}return m},o=s("./node_modules/classnames/dedupe.js"),a=d(o),l=s("./src/icons.js"),u=d(l);function d(m){return m&&m.__esModule?m:{default:m}}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var E=document.querySelectorAll("[data-feather]");Array.from(E).forEach(function(b){return f(b,m)})}function f(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_(m),g=b["data-feather"];delete b["data-feather"];var y=u.default[g].toSvg(r({},E,b,{class:(0,a.default)(E.class,b.class)})),v=new DOMParser().parseFromString(y,"image/svg+xml"),S=v.querySelector("svg");m.parentNode.replaceChild(S,m)}function _(m){return Array.from(m.attributes).reduce(function(E,b){return E[b.name]=b.value,E},{})}i.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-buoy":["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,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icons.js"),o=a(r);function a(u){return u&&u.__esModule?u:{default:u}}function l(u){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."),!u)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[u])throw new Error("No icon matching '"+u+"'. See the complete list of icons at https://feathericons.com");return o.default[u].toSvg(d)}i.default=l},0:function(n,i,s){s("./node_modules/core-js/es/array/from.js"),n.exports=s("./src/index.js")}})})})($A);var jP=$A.exports;const He=Ar(jP);const bt=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},QP={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),Ge(()=>{He.replace()})},showToast(t,e=3,n=!0){const i=parseInt((new Date().getTime()*Math.random()).toString()).toString(),s={id:i,log_type:n,message:t,show:!0};this.toastArr.push(s),Ge(()=>{He.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=i)},e*1e3)}},watch:{}},Ni=t=>(yo("data-v-46f379e5"),t=t(),vo(),t),XP={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},ZP={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},JP={class:"flex flex-row flex-grow items-center h-auto"},eU={key:0,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"},tU=Ni(()=>c("i",{"data-feather":"x"},null,-1)),nU=Ni(()=>c("span",{class:"sr-only"},"Cross icon",-1)),iU=[tU,nU],sU={key:1,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"},rU=Ni(()=>c("i",{"data-feather":"check"},null,-1)),oU=Ni(()=>c("span",{class:"sr-only"},"Check icon",-1)),aU=[rU,oU],lU={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},cU=Ni(()=>c("i",{"data-feather":"info"},null,-1)),dU=Ni(()=>c("span",{class:"sr-only"},null,-1)),uU=[cU,dU],pU={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},_U=Ni(()=>c("i",{"data-feather":"alert-triangle"},null,-1)),hU=Ni(()=>c("span",{class:"sr-only"},null,-1)),fU=[_U,hU],mU=["title"],gU={class:"flex"},bU=["onClick"],EU=Ni(()=>c("span",{class:"sr-only"},"Copy message",-1)),yU=Ni(()=>c("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),vU=[EU,yU],SU=["onClick"],TU=Ni(()=>c("span",{class:"sr-only"},"Close",-1)),xU=Ni(()=>c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("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)),CU=[TU,xU];function wU(t,e,n,i,s,r){return w(),A("div",XP,[Te(os,{name:"toastItem",tag:"div"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.toastArr,o=>(w(),A("div",{key:o.id,class:"relative"},[c("div",ZP,[c("div",JP,[o.log_type==0?(w(),A("div",eU,iU)):V("",!0),o.log_type==1?(w(),A("div",sU,aU)):V("",!0),o.log_type==2?(w(),A("div",lU,uU)):V("",!0),o.log_type==3?(w(),A("div",pU,fU)):V("",!0),c("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},he(o.message),9,mU)]),c("div",gU,[c("button",{type:"button",onClick:be(a=>r.copyToClipBoard(o.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"},vU,8,bU),c("button",{type:"button",onClick:a=>r.close(o.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"},CU,8,SU)])])]))),128))]),_:1})])}const hc=bt(QP,[["render",wU],["__scopeId","data-v-46f379e5"]]);var Bt={};const RU="Á",AU="á",NU="Ă",OU="ă",IU="∾",MU="∿",DU="∾̳",kU="Â",LU="â",PU="´",UU="А",FU="а",BU="Æ",GU="æ",VU="",zU="𝔄",HU="𝔞",qU="À",YU="à",$U="ℵ",WU="ℵ",KU="Α",jU="α",QU="Ā",XU="ā",ZU="⨿",JU="&",eF="&",tF="⩕",nF="⩓",iF="∧",sF="⩜",rF="⩘",oF="⩚",aF="∠",lF="⦤",cF="∠",dF="⦨",uF="⦩",pF="⦪",_F="⦫",hF="⦬",fF="⦭",mF="⦮",gF="⦯",bF="∡",EF="∟",yF="⊾",vF="⦝",SF="∢",TF="Å",xF="⍼",CF="Ą",wF="ą",RF="𝔸",AF="𝕒",NF="⩯",OF="≈",IF="⩰",MF="≊",DF="≋",kF="'",LF="",PF="≈",UF="≊",FF="Å",BF="å",GF="𝒜",VF="𝒶",zF="≔",HF="*",qF="≈",YF="≍",$F="Ã",WF="ã",KF="Ä",jF="ä",QF="∳",XF="⨑",ZF="≌",JF="϶",e3="‵",t3="∽",n3="⋍",i3="∖",s3="⫧",r3="⊽",o3="⌅",a3="⌆",l3="⌅",c3="⎵",d3="⎶",u3="≌",p3="Б",_3="б",h3="„",f3="∵",m3="∵",g3="∵",b3="⦰",E3="϶",y3="ℬ",v3="ℬ",S3="Β",T3="β",x3="ℶ",C3="≬",w3="𝔅",R3="𝔟",A3="⋂",N3="◯",O3="⋃",I3="⨀",M3="⨁",D3="⨂",k3="⨆",L3="★",P3="▽",U3="△",F3="⨄",B3="⋁",G3="⋀",V3="⤍",z3="⧫",H3="▪",q3="▴",Y3="▾",$3="◂",W3="▸",K3="␣",j3="▒",Q3="░",X3="▓",Z3="█",J3="=⃥",eB="≡⃥",tB="⫭",nB="⌐",iB="𝔹",sB="𝕓",rB="⊥",oB="⊥",aB="⋈",lB="⧉",cB="┐",dB="╕",uB="╖",pB="╗",_B="┌",hB="╒",fB="╓",mB="╔",gB="─",bB="═",EB="┬",yB="╤",vB="╥",SB="╦",TB="┴",xB="╧",CB="╨",wB="╩",RB="⊟",AB="⊞",NB="⊠",OB="┘",IB="╛",MB="╜",DB="╝",kB="└",LB="╘",PB="╙",UB="╚",FB="│",BB="║",GB="┼",VB="╪",zB="╫",HB="╬",qB="┤",YB="╡",$B="╢",WB="╣",KB="├",jB="╞",QB="╟",XB="╠",ZB="‵",JB="˘",e4="˘",t4="¦",n4="𝒷",i4="ℬ",s4="⁏",r4="∽",o4="⋍",a4="⧅",l4="\\",c4="⟈",d4="•",u4="•",p4="≎",_4="⪮",h4="≏",f4="≎",m4="≏",g4="Ć",b4="ć",E4="⩄",y4="⩉",v4="⩋",S4="∩",T4="⋒",x4="⩇",C4="⩀",w4="ⅅ",R4="∩︀",A4="⁁",N4="ˇ",O4="ℭ",I4="⩍",M4="Č",D4="č",k4="Ç",L4="ç",P4="Ĉ",U4="ĉ",F4="∰",B4="⩌",G4="⩐",V4="Ċ",z4="ċ",H4="¸",q4="¸",Y4="⦲",$4="¢",W4="·",K4="·",j4="𝔠",Q4="ℭ",X4="Ч",Z4="ч",J4="✓",e5="✓",t5="Χ",n5="χ",i5="ˆ",s5="≗",r5="↺",o5="↻",a5="⊛",l5="⊚",c5="⊝",d5="⊙",u5="®",p5="Ⓢ",_5="⊖",h5="⊕",f5="⊗",m5="○",g5="⧃",b5="≗",E5="⨐",y5="⫯",v5="⧂",S5="∲",T5="”",x5="’",C5="♣",w5="♣",R5=":",A5="∷",N5="⩴",O5="≔",I5="≔",M5=",",D5="@",k5="∁",L5="∘",P5="∁",U5="ℂ",F5="≅",B5="⩭",G5="≡",V5="∮",z5="∯",H5="∮",q5="𝕔",Y5="ℂ",$5="∐",W5="∐",K5="©",j5="©",Q5="℗",X5="∳",Z5="↵",J5="✗",eG="⨯",tG="𝒞",nG="𝒸",iG="⫏",sG="⫑",rG="⫐",oG="⫒",aG="⋯",lG="⤸",cG="⤵",dG="⋞",uG="⋟",pG="↶",_G="⤽",hG="⩈",fG="⩆",mG="≍",gG="∪",bG="⋓",EG="⩊",yG="⊍",vG="⩅",SG="∪︀",TG="↷",xG="⤼",CG="⋞",wG="⋟",RG="⋎",AG="⋏",NG="¤",OG="↶",IG="↷",MG="⋎",DG="⋏",kG="∲",LG="∱",PG="⌭",UG="†",FG="‡",BG="ℸ",GG="↓",VG="↡",zG="⇓",HG="‐",qG="⫤",YG="⊣",$G="⤏",WG="˝",KG="Ď",jG="ď",QG="Д",XG="д",ZG="‡",JG="⇊",e6="ⅅ",t6="ⅆ",n6="⤑",i6="⩷",s6="°",r6="∇",o6="Δ",a6="δ",l6="⦱",c6="⥿",d6="𝔇",u6="𝔡",p6="⥥",_6="⇃",h6="⇂",f6="´",m6="˙",g6="˝",b6="`",E6="˜",y6="⋄",v6="⋄",S6="⋄",T6="♦",x6="♦",C6="¨",w6="ⅆ",R6="ϝ",A6="⋲",N6="÷",O6="÷",I6="⋇",M6="⋇",D6="Ђ",k6="ђ",L6="⌞",P6="⌍",U6="$",F6="𝔻",B6="𝕕",G6="¨",V6="˙",z6="⃜",H6="≐",q6="≑",Y6="≐",$6="∸",W6="∔",K6="⊡",j6="⌆",Q6="∯",X6="¨",Z6="⇓",J6="⇐",e9="⇔",t9="⫤",n9="⟸",i9="⟺",s9="⟹",r9="⇒",o9="⊨",a9="⇑",l9="⇕",c9="∥",d9="⤓",u9="↓",p9="↓",_9="⇓",h9="⇵",f9="̑",m9="⇊",g9="⇃",b9="⇂",E9="⥐",y9="⥞",v9="⥖",S9="↽",T9="⥟",x9="⥗",C9="⇁",w9="↧",R9="⊤",A9="⤐",N9="⌟",O9="⌌",I9="𝒟",M9="𝒹",D9="Ѕ",k9="ѕ",L9="⧶",P9="Đ",U9="đ",F9="⋱",B9="▿",G9="▾",V9="⇵",z9="⥯",H9="⦦",q9="Џ",Y9="џ",$9="⟿",W9="É",K9="é",j9="⩮",Q9="Ě",X9="ě",Z9="Ê",J9="ê",e8="≖",t8="≕",n8="Э",i8="э",s8="⩷",r8="Ė",o8="ė",a8="≑",l8="ⅇ",c8="≒",d8="𝔈",u8="𝔢",p8="⪚",_8="È",h8="è",f8="⪖",m8="⪘",g8="⪙",b8="∈",E8="⏧",y8="ℓ",v8="⪕",S8="⪗",T8="Ē",x8="ē",C8="∅",w8="∅",R8="◻",A8="∅",N8="▫",O8=" ",I8=" ",M8=" ",D8="Ŋ",k8="ŋ",L8=" ",P8="Ę",U8="ę",F8="𝔼",B8="𝕖",G8="⋕",V8="⧣",z8="⩱",H8="ε",q8="Ε",Y8="ε",$8="ϵ",W8="≖",K8="≕",j8="≂",Q8="⪖",X8="⪕",Z8="⩵",J8="=",eV="≂",tV="≟",nV="⇌",iV="≡",sV="⩸",rV="⧥",oV="⥱",aV="≓",lV="ℯ",cV="ℰ",dV="≐",uV="⩳",pV="≂",_V="Η",hV="η",fV="Ð",mV="ð",gV="Ë",bV="ë",EV="€",yV="!",vV="∃",SV="∃",TV="ℰ",xV="ⅇ",CV="ⅇ",wV="≒",RV="Ф",AV="ф",NV="♀",OV="ffi",IV="ff",MV="ffl",DV="𝔉",kV="𝔣",LV="fi",PV="◼",UV="▪",FV="fj",BV="♭",GV="fl",VV="▱",zV="ƒ",HV="𝔽",qV="𝕗",YV="∀",$V="∀",WV="⋔",KV="⫙",jV="ℱ",QV="⨍",XV="½",ZV="⅓",JV="¼",ez="⅕",tz="⅙",nz="⅛",iz="⅔",sz="⅖",rz="¾",oz="⅗",az="⅜",lz="⅘",cz="⅚",dz="⅝",uz="⅞",pz="⁄",_z="⌢",hz="𝒻",fz="ℱ",mz="ǵ",gz="Γ",bz="γ",Ez="Ϝ",yz="ϝ",vz="⪆",Sz="Ğ",Tz="ğ",xz="Ģ",Cz="Ĝ",wz="ĝ",Rz="Г",Az="г",Nz="Ġ",Oz="ġ",Iz="≥",Mz="≧",Dz="⪌",kz="⋛",Lz="≥",Pz="≧",Uz="⩾",Fz="⪩",Bz="⩾",Gz="⪀",Vz="⪂",zz="⪄",Hz="⋛︀",qz="⪔",Yz="𝔊",$z="𝔤",Wz="≫",Kz="⋙",jz="⋙",Qz="ℷ",Xz="Ѓ",Zz="ѓ",Jz="⪥",eH="≷",tH="⪒",nH="⪤",iH="⪊",sH="⪊",rH="⪈",oH="≩",aH="⪈",lH="≩",cH="⋧",dH="𝔾",uH="𝕘",pH="`",_H="≥",hH="⋛",fH="≧",mH="⪢",gH="≷",bH="⩾",EH="≳",yH="𝒢",vH="ℊ",SH="≳",TH="⪎",xH="⪐",CH="⪧",wH="⩺",RH=">",AH=">",NH="≫",OH="⋗",IH="⦕",MH="⩼",DH="⪆",kH="⥸",LH="⋗",PH="⋛",UH="⪌",FH="≷",BH="≳",GH="≩︀",VH="≩︀",zH="ˇ",HH=" ",qH="½",YH="ℋ",$H="Ъ",WH="ъ",KH="⥈",jH="↔",QH="⇔",XH="↭",ZH="^",JH="ℏ",e7="Ĥ",t7="ĥ",n7="♥",i7="♥",s7="…",r7="⊹",o7="𝔥",a7="ℌ",l7="ℋ",c7="⤥",d7="⤦",u7="⇿",p7="∻",_7="↩",h7="↪",f7="𝕙",m7="ℍ",g7="―",b7="─",E7="𝒽",y7="ℋ",v7="ℏ",S7="Ħ",T7="ħ",x7="≎",C7="≏",w7="⁃",R7="‐",A7="Í",N7="í",O7="",I7="Î",M7="î",D7="И",k7="и",L7="İ",P7="Е",U7="е",F7="¡",B7="⇔",G7="𝔦",V7="ℑ",z7="Ì",H7="ì",q7="ⅈ",Y7="⨌",$7="∭",W7="⧜",K7="℩",j7="IJ",Q7="ij",X7="Ī",Z7="ī",J7="ℑ",eq="ⅈ",tq="ℐ",nq="ℑ",iq="ı",sq="ℑ",rq="⊷",oq="Ƶ",aq="⇒",lq="℅",cq="∞",dq="⧝",uq="ı",pq="⊺",_q="∫",hq="∬",fq="ℤ",mq="∫",gq="⊺",bq="⋂",Eq="⨗",yq="⨼",vq="",Sq="",Tq="Ё",xq="ё",Cq="Į",wq="į",Rq="𝕀",Aq="𝕚",Nq="Ι",Oq="ι",Iq="⨼",Mq="¿",Dq="𝒾",kq="ℐ",Lq="∈",Pq="⋵",Uq="⋹",Fq="⋴",Bq="⋳",Gq="∈",Vq="",zq="Ĩ",Hq="ĩ",qq="І",Yq="і",$q="Ï",Wq="ï",Kq="Ĵ",jq="ĵ",Qq="Й",Xq="й",Zq="𝔍",Jq="𝔧",eY="ȷ",tY="𝕁",nY="𝕛",iY="𝒥",sY="𝒿",rY="Ј",oY="ј",aY="Є",lY="є",cY="Κ",dY="κ",uY="ϰ",pY="Ķ",_Y="ķ",hY="К",fY="к",mY="𝔎",gY="𝔨",bY="ĸ",EY="Х",yY="х",vY="Ќ",SY="ќ",TY="𝕂",xY="𝕜",CY="𝒦",wY="𝓀",RY="⇚",AY="Ĺ",NY="ĺ",OY="⦴",IY="ℒ",MY="Λ",DY="λ",kY="⟨",LY="⟪",PY="⦑",UY="⟨",FY="⪅",BY="ℒ",GY="«",VY="⇤",zY="⤟",HY="←",qY="↞",YY="⇐",$Y="⤝",WY="↩",KY="↫",jY="⤹",QY="⥳",XY="↢",ZY="⤙",JY="⤛",e$="⪫",t$="⪭",n$="⪭︀",i$="⤌",s$="⤎",r$="❲",o$="{",a$="[",l$="⦋",c$="⦏",d$="⦍",u$="Ľ",p$="ľ",_$="Ļ",h$="ļ",f$="⌈",m$="{",g$="Л",b$="л",E$="⤶",y$="“",v$="„",S$="⥧",T$="⥋",x$="↲",C$="≤",w$="≦",R$="⟨",A$="⇤",N$="←",O$="←",I$="⇐",M$="⇆",D$="↢",k$="⌈",L$="⟦",P$="⥡",U$="⥙",F$="⇃",B$="⌊",G$="↽",V$="↼",z$="⇇",H$="↔",q$="↔",Y$="⇔",$$="⇆",W$="⇋",K$="↭",j$="⥎",Q$="↤",X$="⊣",Z$="⥚",J$="⋋",eW="⧏",tW="⊲",nW="⊴",iW="⥑",sW="⥠",rW="⥘",oW="↿",aW="⥒",lW="↼",cW="⪋",dW="⋚",uW="≤",pW="≦",_W="⩽",hW="⪨",fW="⩽",mW="⩿",gW="⪁",bW="⪃",EW="⋚︀",yW="⪓",vW="⪅",SW="⋖",TW="⋚",xW="⪋",CW="⋚",wW="≦",RW="≶",AW="≶",NW="⪡",OW="≲",IW="⩽",MW="≲",DW="⥼",kW="⌊",LW="𝔏",PW="𝔩",UW="≶",FW="⪑",BW="⥢",GW="↽",VW="↼",zW="⥪",HW="▄",qW="Љ",YW="љ",$W="⇇",WW="≪",KW="⋘",jW="⌞",QW="⇚",XW="⥫",ZW="◺",JW="Ŀ",eK="ŀ",tK="⎰",nK="⎰",iK="⪉",sK="⪉",rK="⪇",oK="≨",aK="⪇",lK="≨",cK="⋦",dK="⟬",uK="⇽",pK="⟦",_K="⟵",hK="⟵",fK="⟸",mK="⟷",gK="⟷",bK="⟺",EK="⟼",yK="⟶",vK="⟶",SK="⟹",TK="↫",xK="↬",CK="⦅",wK="𝕃",RK="𝕝",AK="⨭",NK="⨴",OK="∗",IK="_",MK="↙",DK="↘",kK="◊",LK="◊",PK="⧫",UK="(",FK="⦓",BK="⇆",GK="⌟",VK="⇋",zK="⥭",HK="",qK="⊿",YK="‹",$K="𝓁",WK="ℒ",KK="↰",jK="↰",QK="≲",XK="⪍",ZK="⪏",JK="[",ej="‘",tj="‚",nj="Ł",ij="ł",sj="⪦",rj="⩹",oj="<",aj="<",lj="≪",cj="⋖",dj="⋋",uj="⋉",pj="⥶",_j="⩻",hj="◃",fj="⊴",mj="◂",gj="⦖",bj="⥊",Ej="⥦",yj="≨︀",vj="≨︀",Sj="¯",Tj="♂",xj="✠",Cj="✠",wj="↦",Rj="↦",Aj="↧",Nj="↤",Oj="↥",Ij="▮",Mj="⨩",Dj="М",kj="м",Lj="—",Pj="∺",Uj="∡",Fj=" ",Bj="ℳ",Gj="𝔐",Vj="𝔪",zj="℧",Hj="µ",qj="*",Yj="⫰",$j="∣",Wj="·",Kj="⊟",jj="−",Qj="∸",Xj="⨪",Zj="∓",Jj="⫛",eQ="…",tQ="∓",nQ="⊧",iQ="𝕄",sQ="𝕞",rQ="∓",oQ="𝓂",aQ="ℳ",lQ="∾",cQ="Μ",dQ="μ",uQ="⊸",pQ="⊸",_Q="∇",hQ="Ń",fQ="ń",mQ="∠⃒",gQ="≉",bQ="⩰̸",EQ="≋̸",yQ="ʼn",vQ="≉",SQ="♮",TQ="ℕ",xQ="♮",CQ=" ",wQ="≎̸",RQ="≏̸",AQ="⩃",NQ="Ň",OQ="ň",IQ="Ņ",MQ="ņ",DQ="≇",kQ="⩭̸",LQ="⩂",PQ="Н",UQ="н",FQ="–",BQ="⤤",GQ="↗",VQ="⇗",zQ="↗",HQ="≠",qQ="≐̸",YQ="",$Q="",WQ="",KQ="",jQ="≢",QQ="⤨",XQ="≂̸",ZQ="≫",JQ="≪",eX=`
|
||
`,tX="∄",nX="∄",iX="𝔑",sX="𝔫",rX="≧̸",oX="≱",aX="≱",lX="≧̸",cX="⩾̸",dX="⩾̸",uX="⋙̸",pX="≵",_X="≫⃒",hX="≯",fX="≯",mX="≫̸",gX="↮",bX="⇎",EX="⫲",yX="∋",vX="⋼",SX="⋺",TX="∋",xX="Њ",CX="њ",wX="↚",RX="⇍",AX="‥",NX="≦̸",OX="≰",IX="↚",MX="⇍",DX="↮",kX="⇎",LX="≰",PX="≦̸",UX="⩽̸",FX="⩽̸",BX="≮",GX="⋘̸",VX="≴",zX="≪⃒",HX="≮",qX="⋪",YX="⋬",$X="≪̸",WX="∤",KX="",jX=" ",QX="𝕟",XX="ℕ",ZX="⫬",JX="¬",eZ="≢",tZ="≭",nZ="∦",iZ="∉",sZ="≠",rZ="≂̸",oZ="∄",aZ="≯",lZ="≱",cZ="≧̸",dZ="≫̸",uZ="≹",pZ="⩾̸",_Z="≵",hZ="≎̸",fZ="≏̸",mZ="∉",gZ="⋵̸",bZ="⋹̸",EZ="∉",yZ="⋷",vZ="⋶",SZ="⧏̸",TZ="⋪",xZ="⋬",CZ="≮",wZ="≰",RZ="≸",AZ="≪̸",NZ="⩽̸",OZ="≴",IZ="⪢̸",MZ="⪡̸",DZ="∌",kZ="∌",LZ="⋾",PZ="⋽",UZ="⊀",FZ="⪯̸",BZ="⋠",GZ="∌",VZ="⧐̸",zZ="⋫",HZ="⋭",qZ="⊏̸",YZ="⋢",$Z="⊐̸",WZ="⋣",KZ="⊂⃒",jZ="⊈",QZ="⊁",XZ="⪰̸",ZZ="⋡",JZ="≿̸",eJ="⊃⃒",tJ="⊉",nJ="≁",iJ="≄",sJ="≇",rJ="≉",oJ="∤",aJ="∦",lJ="∦",cJ="⫽⃥",dJ="∂̸",uJ="⨔",pJ="⊀",_J="⋠",hJ="⊀",fJ="⪯̸",mJ="⪯̸",gJ="⤳̸",bJ="↛",EJ="⇏",yJ="↝̸",vJ="↛",SJ="⇏",TJ="⋫",xJ="⋭",CJ="⊁",wJ="⋡",RJ="⪰̸",AJ="𝒩",NJ="𝓃",OJ="∤",IJ="∦",MJ="≁",DJ="≄",kJ="≄",LJ="∤",PJ="∦",UJ="⋢",FJ="⋣",BJ="⊄",GJ="⫅̸",VJ="⊈",zJ="⊂⃒",HJ="⊈",qJ="⫅̸",YJ="⊁",$J="⪰̸",WJ="⊅",KJ="⫆̸",jJ="⊉",QJ="⊃⃒",XJ="⊉",ZJ="⫆̸",JJ="≹",eee="Ñ",tee="ñ",nee="≸",iee="⋪",see="⋬",ree="⋫",oee="⋭",aee="Ν",lee="ν",cee="#",dee="№",uee=" ",pee="≍⃒",_ee="⊬",hee="⊭",fee="⊮",mee="⊯",gee="≥⃒",bee=">⃒",Eee="⤄",yee="⧞",vee="⤂",See="≤⃒",Tee="<⃒",xee="⊴⃒",Cee="⤃",wee="⊵⃒",Ree="∼⃒",Aee="⤣",Nee="↖",Oee="⇖",Iee="↖",Mee="⤧",Dee="Ó",kee="ó",Lee="⊛",Pee="Ô",Uee="ô",Fee="⊚",Bee="О",Gee="о",Vee="⊝",zee="Ő",Hee="ő",qee="⨸",Yee="⊙",$ee="⦼",Wee="Œ",Kee="œ",jee="⦿",Qee="𝔒",Xee="𝔬",Zee="˛",Jee="Ò",ete="ò",tte="⧁",nte="⦵",ite="Ω",ste="∮",rte="↺",ote="⦾",ate="⦻",lte="‾",cte="⧀",dte="Ō",ute="ō",pte="Ω",_te="ω",hte="Ο",fte="ο",mte="⦶",gte="⊖",bte="𝕆",Ete="𝕠",yte="⦷",vte="“",Ste="‘",Tte="⦹",xte="⊕",Cte="↻",wte="⩔",Rte="∨",Ate="⩝",Nte="ℴ",Ote="ℴ",Ite="ª",Mte="º",Dte="⊶",kte="⩖",Lte="⩗",Pte="⩛",Ute="Ⓢ",Fte="𝒪",Bte="ℴ",Gte="Ø",Vte="ø",zte="⊘",Hte="Õ",qte="õ",Yte="⨶",$te="⨷",Wte="⊗",Kte="Ö",jte="ö",Qte="⌽",Xte="‾",Zte="⏞",Jte="⎴",ene="⏜",tne="¶",nne="∥",ine="∥",sne="⫳",rne="⫽",one="∂",ane="∂",lne="П",cne="п",dne="%",une=".",pne="‰",_ne="⊥",hne="‱",fne="𝔓",mne="𝔭",gne="Φ",bne="φ",Ene="ϕ",yne="ℳ",vne="☎",Sne="Π",Tne="π",xne="⋔",Cne="ϖ",wne="ℏ",Rne="ℎ",Ane="ℏ",Nne="⨣",One="⊞",Ine="⨢",Mne="+",Dne="∔",kne="⨥",Lne="⩲",Pne="±",Une="±",Fne="⨦",Bne="⨧",Gne="±",Vne="ℌ",zne="⨕",Hne="𝕡",qne="ℙ",Yne="£",$ne="⪷",Wne="⪻",Kne="≺",jne="≼",Qne="⪷",Xne="≺",Zne="≼",Jne="≺",eie="⪯",tie="≼",nie="≾",iie="⪯",sie="⪹",rie="⪵",oie="⋨",aie="⪯",lie="⪳",cie="≾",die="′",uie="″",pie="ℙ",_ie="⪹",hie="⪵",fie="⋨",mie="∏",gie="∏",bie="⌮",Eie="⌒",yie="⌓",vie="∝",Sie="∝",Tie="∷",xie="∝",Cie="≾",wie="⊰",Rie="𝒫",Aie="𝓅",Nie="Ψ",Oie="ψ",Iie=" ",Mie="𝔔",Die="𝔮",kie="⨌",Lie="𝕢",Pie="ℚ",Uie="⁗",Fie="𝒬",Bie="𝓆",Gie="ℍ",Vie="⨖",zie="?",Hie="≟",qie='"',Yie='"',$ie="⇛",Wie="∽̱",Kie="Ŕ",jie="ŕ",Qie="√",Xie="⦳",Zie="⟩",Jie="⟫",ese="⦒",tse="⦥",nse="⟩",ise="»",sse="⥵",rse="⇥",ose="⤠",ase="⤳",lse="→",cse="↠",dse="⇒",use="⤞",pse="↪",_se="↬",hse="⥅",fse="⥴",mse="⤖",gse="↣",bse="↝",Ese="⤚",yse="⤜",vse="∶",Sse="ℚ",Tse="⤍",xse="⤏",Cse="⤐",wse="❳",Rse="}",Ase="]",Nse="⦌",Ose="⦎",Ise="⦐",Mse="Ř",Dse="ř",kse="Ŗ",Lse="ŗ",Pse="⌉",Use="}",Fse="Р",Bse="р",Gse="⤷",Vse="⥩",zse="”",Hse="”",qse="↳",Yse="ℜ",$se="ℛ",Wse="ℜ",Kse="ℝ",jse="ℜ",Qse="▭",Xse="®",Zse="®",Jse="∋",ere="⇋",tre="⥯",nre="⥽",ire="⌋",sre="𝔯",rre="ℜ",ore="⥤",are="⇁",lre="⇀",cre="⥬",dre="Ρ",ure="ρ",pre="ϱ",_re="⟩",hre="⇥",fre="→",mre="→",gre="⇒",bre="⇄",Ere="↣",yre="⌉",vre="⟧",Sre="⥝",Tre="⥕",xre="⇂",Cre="⌋",wre="⇁",Rre="⇀",Are="⇄",Nre="⇌",Ore="⇉",Ire="↝",Mre="↦",Dre="⊢",kre="⥛",Lre="⋌",Pre="⧐",Ure="⊳",Fre="⊵",Bre="⥏",Gre="⥜",Vre="⥔",zre="↾",Hre="⥓",qre="⇀",Yre="˚",$re="≓",Wre="⇄",Kre="⇌",jre="",Qre="⎱",Xre="⎱",Zre="⫮",Jre="⟭",eoe="⇾",toe="⟧",noe="⦆",ioe="𝕣",soe="ℝ",roe="⨮",ooe="⨵",aoe="⥰",loe=")",coe="⦔",doe="⨒",uoe="⇉",poe="⇛",_oe="›",hoe="𝓇",foe="ℛ",moe="↱",goe="↱",boe="]",Eoe="’",yoe="’",voe="⋌",Soe="⋊",Toe="▹",xoe="⊵",Coe="▸",woe="⧎",Roe="⧴",Aoe="⥨",Noe="℞",Ooe="Ś",Ioe="ś",Moe="‚",Doe="⪸",koe="Š",Loe="š",Poe="⪼",Uoe="≻",Foe="≽",Boe="⪰",Goe="⪴",Voe="Ş",zoe="ş",Hoe="Ŝ",qoe="ŝ",Yoe="⪺",$oe="⪶",Woe="⋩",Koe="⨓",joe="≿",Qoe="С",Xoe="с",Zoe="⊡",Joe="⋅",eae="⩦",tae="⤥",nae="↘",iae="⇘",sae="↘",rae="§",oae=";",aae="⤩",lae="∖",cae="∖",dae="✶",uae="𝔖",pae="𝔰",_ae="⌢",hae="♯",fae="Щ",mae="щ",gae="Ш",bae="ш",Eae="↓",yae="←",vae="∣",Sae="∥",Tae="→",xae="↑",Cae="",wae="Σ",Rae="σ",Aae="ς",Nae="ς",Oae="∼",Iae="⩪",Mae="≃",Dae="≃",kae="⪞",Lae="⪠",Pae="⪝",Uae="⪟",Fae="≆",Bae="⨤",Gae="⥲",Vae="←",zae="∘",Hae="∖",qae="⨳",Yae="⧤",$ae="∣",Wae="⌣",Kae="⪪",jae="⪬",Qae="⪬︀",Xae="Ь",Zae="ь",Jae="⌿",ele="⧄",tle="/",nle="𝕊",ile="𝕤",sle="♠",rle="♠",ole="∥",ale="⊓",lle="⊓︀",cle="⊔",dle="⊔︀",ule="√",ple="⊏",_le="⊑",hle="⊏",fle="⊑",mle="⊐",gle="⊒",ble="⊐",Ele="⊒",yle="□",vle="□",Sle="⊓",Tle="⊏",xle="⊑",Cle="⊐",wle="⊒",Rle="⊔",Ale="▪",Nle="□",Ole="▪",Ile="→",Mle="𝒮",Dle="𝓈",kle="∖",Lle="⌣",Ple="⋆",Ule="⋆",Fle="☆",Ble="★",Gle="ϵ",Vle="ϕ",zle="¯",Hle="⊂",qle="⋐",Yle="⪽",$le="⫅",Wle="⊆",Kle="⫃",jle="⫁",Qle="⫋",Xle="⊊",Zle="⪿",Jle="⥹",ece="⊂",tce="⋐",nce="⊆",ice="⫅",sce="⊆",rce="⊊",oce="⫋",ace="⫇",lce="⫕",cce="⫓",dce="⪸",uce="≻",pce="≽",_ce="≻",hce="⪰",fce="≽",mce="≿",gce="⪰",bce="⪺",Ece="⪶",yce="⋩",vce="≿",Sce="∋",Tce="∑",xce="∑",Cce="♪",wce="¹",Rce="²",Ace="³",Nce="⊃",Oce="⋑",Ice="⪾",Mce="⫘",Dce="⫆",kce="⊇",Lce="⫄",Pce="⊃",Uce="⊇",Fce="⟉",Bce="⫗",Gce="⥻",Vce="⫂",zce="⫌",Hce="⊋",qce="⫀",Yce="⊃",$ce="⋑",Wce="⊇",Kce="⫆",jce="⊋",Qce="⫌",Xce="⫈",Zce="⫔",Jce="⫖",ede="⤦",tde="↙",nde="⇙",ide="↙",sde="⤪",rde="ß",ode=" ",ade="⌖",lde="Τ",cde="τ",dde="⎴",ude="Ť",pde="ť",_de="Ţ",hde="ţ",fde="Т",mde="т",gde="⃛",bde="⌕",Ede="𝔗",yde="𝔱",vde="∴",Sde="∴",Tde="∴",xde="Θ",Cde="θ",wde="ϑ",Rde="ϑ",Ade="≈",Nde="∼",Ode=" ",Ide=" ",Mde=" ",Dde="≈",kde="∼",Lde="Þ",Pde="þ",Ude="˜",Fde="∼",Bde="≃",Gde="≅",Vde="≈",zde="⨱",Hde="⊠",qde="×",Yde="⨰",$de="∭",Wde="⤨",Kde="⌶",jde="⫱",Qde="⊤",Xde="𝕋",Zde="𝕥",Jde="⫚",eue="⤩",tue="‴",nue="™",iue="™",sue="▵",rue="▿",oue="◃",aue="⊴",lue="≜",cue="▹",due="⊵",uue="◬",pue="≜",_ue="⨺",hue="⃛",fue="⨹",mue="⧍",gue="⨻",bue="⏢",Eue="𝒯",yue="𝓉",vue="Ц",Sue="ц",Tue="Ћ",xue="ћ",Cue="Ŧ",wue="ŧ",Rue="≬",Aue="↞",Nue="↠",Oue="Ú",Iue="ú",Mue="↑",Due="↟",kue="⇑",Lue="⥉",Pue="Ў",Uue="ў",Fue="Ŭ",Bue="ŭ",Gue="Û",Vue="û",zue="У",Hue="у",que="⇅",Yue="Ű",$ue="ű",Wue="⥮",Kue="⥾",jue="𝔘",Que="𝔲",Xue="Ù",Zue="ù",Jue="⥣",epe="↿",tpe="↾",npe="▀",ipe="⌜",spe="⌜",rpe="⌏",ope="◸",ape="Ū",lpe="ū",cpe="¨",dpe="_",upe="⏟",ppe="⎵",_pe="⏝",hpe="⋃",fpe="⊎",mpe="Ų",gpe="ų",bpe="𝕌",Epe="𝕦",ype="⤒",vpe="↑",Spe="↑",Tpe="⇑",xpe="⇅",Cpe="↕",wpe="↕",Rpe="⇕",Ape="⥮",Npe="↿",Ope="↾",Ipe="⊎",Mpe="↖",Dpe="↗",kpe="υ",Lpe="ϒ",Ppe="ϒ",Upe="Υ",Fpe="υ",Bpe="↥",Gpe="⊥",Vpe="⇈",zpe="⌝",Hpe="⌝",qpe="⌎",Ype="Ů",$pe="ů",Wpe="◹",Kpe="𝒰",jpe="𝓊",Qpe="⋰",Xpe="Ũ",Zpe="ũ",Jpe="▵",e_e="▴",t_e="⇈",n_e="Ü",i_e="ü",s_e="⦧",r_e="⦜",o_e="ϵ",a_e="ϰ",l_e="∅",c_e="ϕ",d_e="ϖ",u_e="∝",p_e="↕",__e="⇕",h_e="ϱ",f_e="ς",m_e="⊊︀",g_e="⫋︀",b_e="⊋︀",E_e="⫌︀",y_e="ϑ",v_e="⊲",S_e="⊳",T_e="⫨",x_e="⫫",C_e="⫩",w_e="В",R_e="в",A_e="⊢",N_e="⊨",O_e="⊩",I_e="⊫",M_e="⫦",D_e="⊻",k_e="∨",L_e="⋁",P_e="≚",U_e="⋮",F_e="|",B_e="‖",G_e="|",V_e="‖",z_e="∣",H_e="|",q_e="❘",Y_e="≀",$_e=" ",W_e="𝔙",K_e="𝔳",j_e="⊲",Q_e="⊂⃒",X_e="⊃⃒",Z_e="𝕍",J_e="𝕧",ehe="∝",the="⊳",nhe="𝒱",ihe="𝓋",she="⫋︀",rhe="⊊︀",ohe="⫌︀",ahe="⊋︀",lhe="⊪",che="⦚",dhe="Ŵ",uhe="ŵ",phe="⩟",_he="∧",hhe="⋀",fhe="≙",mhe="℘",ghe="𝔚",bhe="𝔴",Ehe="𝕎",yhe="𝕨",vhe="℘",She="≀",The="≀",xhe="𝒲",Che="𝓌",whe="⋂",Rhe="◯",Ahe="⋃",Nhe="▽",Ohe="𝔛",Ihe="𝔵",Mhe="⟷",Dhe="⟺",khe="Ξ",Lhe="ξ",Phe="⟵",Uhe="⟸",Fhe="⟼",Bhe="⋻",Ghe="⨀",Vhe="𝕏",zhe="𝕩",Hhe="⨁",qhe="⨂",Yhe="⟶",$he="⟹",Whe="𝒳",Khe="𝓍",jhe="⨆",Qhe="⨄",Xhe="△",Zhe="⋁",Jhe="⋀",efe="Ý",tfe="ý",nfe="Я",ife="я",sfe="Ŷ",rfe="ŷ",ofe="Ы",afe="ы",lfe="¥",cfe="𝔜",dfe="𝔶",ufe="Ї",pfe="ї",_fe="𝕐",hfe="𝕪",ffe="𝒴",mfe="𝓎",gfe="Ю",bfe="ю",Efe="ÿ",yfe="Ÿ",vfe="Ź",Sfe="ź",Tfe="Ž",xfe="ž",Cfe="З",wfe="з",Rfe="Ż",Afe="ż",Nfe="ℨ",Ofe="",Ife="Ζ",Mfe="ζ",Dfe="𝔷",kfe="ℨ",Lfe="Ж",Pfe="ж",Ufe="⇝",Ffe="𝕫",Bfe="ℤ",Gfe="𝒵",Vfe="𝓏",zfe="",Hfe="",qfe={Aacute:RU,aacute:AU,Abreve:NU,abreve:OU,ac:IU,acd:MU,acE:DU,Acirc:kU,acirc:LU,acute:PU,Acy:UU,acy:FU,AElig:BU,aelig:GU,af:VU,Afr:zU,afr:HU,Agrave:qU,agrave:YU,alefsym:$U,aleph:WU,Alpha:KU,alpha:jU,Amacr:QU,amacr:XU,amalg:ZU,amp:JU,AMP:eF,andand:tF,And:nF,and:iF,andd:sF,andslope:rF,andv:oF,ang:aF,ange:lF,angle:cF,angmsdaa:dF,angmsdab:uF,angmsdac:pF,angmsdad:_F,angmsdae:hF,angmsdaf:fF,angmsdag:mF,angmsdah:gF,angmsd:bF,angrt:EF,angrtvb:yF,angrtvbd:vF,angsph:SF,angst:TF,angzarr:xF,Aogon:CF,aogon:wF,Aopf:RF,aopf:AF,apacir:NF,ap:OF,apE:IF,ape:MF,apid:DF,apos:kF,ApplyFunction:LF,approx:PF,approxeq:UF,Aring:FF,aring:BF,Ascr:GF,ascr:VF,Assign:zF,ast:HF,asymp:qF,asympeq:YF,Atilde:$F,atilde:WF,Auml:KF,auml:jF,awconint:QF,awint:XF,backcong:ZF,backepsilon:JF,backprime:e3,backsim:t3,backsimeq:n3,Backslash:i3,Barv:s3,barvee:r3,barwed:o3,Barwed:a3,barwedge:l3,bbrk:c3,bbrktbrk:d3,bcong:u3,Bcy:p3,bcy:_3,bdquo:h3,becaus:f3,because:m3,Because:g3,bemptyv:b3,bepsi:E3,bernou:y3,Bernoullis:v3,Beta:S3,beta:T3,beth:x3,between:C3,Bfr:w3,bfr:R3,bigcap:A3,bigcirc:N3,bigcup:O3,bigodot:I3,bigoplus:M3,bigotimes:D3,bigsqcup:k3,bigstar:L3,bigtriangledown:P3,bigtriangleup:U3,biguplus:F3,bigvee:B3,bigwedge:G3,bkarow:V3,blacklozenge:z3,blacksquare:H3,blacktriangle:q3,blacktriangledown:Y3,blacktriangleleft:$3,blacktriangleright:W3,blank:K3,blk12:j3,blk14:Q3,blk34:X3,block:Z3,bne:J3,bnequiv:eB,bNot:tB,bnot:nB,Bopf:iB,bopf:sB,bot:rB,bottom:oB,bowtie:aB,boxbox:lB,boxdl:cB,boxdL:dB,boxDl:uB,boxDL:pB,boxdr:_B,boxdR:hB,boxDr:fB,boxDR:mB,boxh:gB,boxH:bB,boxhd:EB,boxHd:yB,boxhD:vB,boxHD:SB,boxhu:TB,boxHu:xB,boxhU:CB,boxHU:wB,boxminus:RB,boxplus:AB,boxtimes:NB,boxul:OB,boxuL:IB,boxUl:MB,boxUL:DB,boxur:kB,boxuR:LB,boxUr:PB,boxUR:UB,boxv:FB,boxV:BB,boxvh:GB,boxvH:VB,boxVh:zB,boxVH:HB,boxvl:qB,boxvL:YB,boxVl:$B,boxVL:WB,boxvr:KB,boxvR:jB,boxVr:QB,boxVR:XB,bprime:ZB,breve:JB,Breve:e4,brvbar:t4,bscr:n4,Bscr:i4,bsemi:s4,bsim:r4,bsime:o4,bsolb:a4,bsol:l4,bsolhsub:c4,bull:d4,bullet:u4,bump:p4,bumpE:_4,bumpe:h4,Bumpeq:f4,bumpeq:m4,Cacute:g4,cacute:b4,capand:E4,capbrcup:y4,capcap:v4,cap:S4,Cap:T4,capcup:x4,capdot:C4,CapitalDifferentialD:w4,caps:R4,caret:A4,caron:N4,Cayleys:O4,ccaps:I4,Ccaron:M4,ccaron:D4,Ccedil:k4,ccedil:L4,Ccirc:P4,ccirc:U4,Cconint:F4,ccups:B4,ccupssm:G4,Cdot:V4,cdot:z4,cedil:H4,Cedilla:q4,cemptyv:Y4,cent:$4,centerdot:W4,CenterDot:K4,cfr:j4,Cfr:Q4,CHcy:X4,chcy:Z4,check:J4,checkmark:e5,Chi:t5,chi:n5,circ:i5,circeq:s5,circlearrowleft:r5,circlearrowright:o5,circledast:a5,circledcirc:l5,circleddash:c5,CircleDot:d5,circledR:u5,circledS:p5,CircleMinus:_5,CirclePlus:h5,CircleTimes:f5,cir:m5,cirE:g5,cire:b5,cirfnint:E5,cirmid:y5,cirscir:v5,ClockwiseContourIntegral:S5,CloseCurlyDoubleQuote:T5,CloseCurlyQuote:x5,clubs:C5,clubsuit:w5,colon:R5,Colon:A5,Colone:N5,colone:O5,coloneq:I5,comma:M5,commat:D5,comp:k5,compfn:L5,complement:P5,complexes:U5,cong:F5,congdot:B5,Congruent:G5,conint:V5,Conint:z5,ContourIntegral:H5,copf:q5,Copf:Y5,coprod:$5,Coproduct:W5,copy:K5,COPY:j5,copysr:Q5,CounterClockwiseContourIntegral:X5,crarr:Z5,cross:J5,Cross:eG,Cscr:tG,cscr:nG,csub:iG,csube:sG,csup:rG,csupe:oG,ctdot:aG,cudarrl:lG,cudarrr:cG,cuepr:dG,cuesc:uG,cularr:pG,cularrp:_G,cupbrcap:hG,cupcap:fG,CupCap:mG,cup:gG,Cup:bG,cupcup:EG,cupdot:yG,cupor:vG,cups:SG,curarr:TG,curarrm:xG,curlyeqprec:CG,curlyeqsucc:wG,curlyvee:RG,curlywedge:AG,curren:NG,curvearrowleft:OG,curvearrowright:IG,cuvee:MG,cuwed:DG,cwconint:kG,cwint:LG,cylcty:PG,dagger:UG,Dagger:FG,daleth:BG,darr:GG,Darr:VG,dArr:zG,dash:HG,Dashv:qG,dashv:YG,dbkarow:$G,dblac:WG,Dcaron:KG,dcaron:jG,Dcy:QG,dcy:XG,ddagger:ZG,ddarr:JG,DD:e6,dd:t6,DDotrahd:n6,ddotseq:i6,deg:s6,Del:r6,Delta:o6,delta:a6,demptyv:l6,dfisht:c6,Dfr:d6,dfr:u6,dHar:p6,dharl:_6,dharr:h6,DiacriticalAcute:f6,DiacriticalDot:m6,DiacriticalDoubleAcute:g6,DiacriticalGrave:b6,DiacriticalTilde:E6,diam:y6,diamond:v6,Diamond:S6,diamondsuit:T6,diams:x6,die:C6,DifferentialD:w6,digamma:R6,disin:A6,div:N6,divide:O6,divideontimes:I6,divonx:M6,DJcy:D6,djcy:k6,dlcorn:L6,dlcrop:P6,dollar:U6,Dopf:F6,dopf:B6,Dot:G6,dot:V6,DotDot:z6,doteq:H6,doteqdot:q6,DotEqual:Y6,dotminus:$6,dotplus:W6,dotsquare:K6,doublebarwedge:j6,DoubleContourIntegral:Q6,DoubleDot:X6,DoubleDownArrow:Z6,DoubleLeftArrow:J6,DoubleLeftRightArrow:e9,DoubleLeftTee:t9,DoubleLongLeftArrow:n9,DoubleLongLeftRightArrow:i9,DoubleLongRightArrow:s9,DoubleRightArrow:r9,DoubleRightTee:o9,DoubleUpArrow:a9,DoubleUpDownArrow:l9,DoubleVerticalBar:c9,DownArrowBar:d9,downarrow:u9,DownArrow:p9,Downarrow:_9,DownArrowUpArrow:h9,DownBreve:f9,downdownarrows:m9,downharpoonleft:g9,downharpoonright:b9,DownLeftRightVector:E9,DownLeftTeeVector:y9,DownLeftVectorBar:v9,DownLeftVector:S9,DownRightTeeVector:T9,DownRightVectorBar:x9,DownRightVector:C9,DownTeeArrow:w9,DownTee:R9,drbkarow:A9,drcorn:N9,drcrop:O9,Dscr:I9,dscr:M9,DScy:D9,dscy:k9,dsol:L9,Dstrok:P9,dstrok:U9,dtdot:F9,dtri:B9,dtrif:G9,duarr:V9,duhar:z9,dwangle:H9,DZcy:q9,dzcy:Y9,dzigrarr:$9,Eacute:W9,eacute:K9,easter:j9,Ecaron:Q9,ecaron:X9,Ecirc:Z9,ecirc:J9,ecir:e8,ecolon:t8,Ecy:n8,ecy:i8,eDDot:s8,Edot:r8,edot:o8,eDot:a8,ee:l8,efDot:c8,Efr:d8,efr:u8,eg:p8,Egrave:_8,egrave:h8,egs:f8,egsdot:m8,el:g8,Element:b8,elinters:E8,ell:y8,els:v8,elsdot:S8,Emacr:T8,emacr:x8,empty:C8,emptyset:w8,EmptySmallSquare:R8,emptyv:A8,EmptyVerySmallSquare:N8,emsp13:O8,emsp14:I8,emsp:M8,ENG:D8,eng:k8,ensp:L8,Eogon:P8,eogon:U8,Eopf:F8,eopf:B8,epar:G8,eparsl:V8,eplus:z8,epsi:H8,Epsilon:q8,epsilon:Y8,epsiv:$8,eqcirc:W8,eqcolon:K8,eqsim:j8,eqslantgtr:Q8,eqslantless:X8,Equal:Z8,equals:J8,EqualTilde:eV,equest:tV,Equilibrium:nV,equiv:iV,equivDD:sV,eqvparsl:rV,erarr:oV,erDot:aV,escr:lV,Escr:cV,esdot:dV,Esim:uV,esim:pV,Eta:_V,eta:hV,ETH:fV,eth:mV,Euml:gV,euml:bV,euro:EV,excl:yV,exist:vV,Exists:SV,expectation:TV,exponentiale:xV,ExponentialE:CV,fallingdotseq:wV,Fcy:RV,fcy:AV,female:NV,ffilig:OV,fflig:IV,ffllig:MV,Ffr:DV,ffr:kV,filig:LV,FilledSmallSquare:PV,FilledVerySmallSquare:UV,fjlig:FV,flat:BV,fllig:GV,fltns:VV,fnof:zV,Fopf:HV,fopf:qV,forall:YV,ForAll:$V,fork:WV,forkv:KV,Fouriertrf:jV,fpartint:QV,frac12:XV,frac13:ZV,frac14:JV,frac15:ez,frac16:tz,frac18:nz,frac23:iz,frac25:sz,frac34:rz,frac35:oz,frac38:az,frac45:lz,frac56:cz,frac58:dz,frac78:uz,frasl:pz,frown:_z,fscr:hz,Fscr:fz,gacute:mz,Gamma:gz,gamma:bz,Gammad:Ez,gammad:yz,gap:vz,Gbreve:Sz,gbreve:Tz,Gcedil:xz,Gcirc:Cz,gcirc:wz,Gcy:Rz,gcy:Az,Gdot:Nz,gdot:Oz,ge:Iz,gE:Mz,gEl:Dz,gel:kz,geq:Lz,geqq:Pz,geqslant:Uz,gescc:Fz,ges:Bz,gesdot:Gz,gesdoto:Vz,gesdotol:zz,gesl:Hz,gesles:qz,Gfr:Yz,gfr:$z,gg:Wz,Gg:Kz,ggg:jz,gimel:Qz,GJcy:Xz,gjcy:Zz,gla:Jz,gl:eH,glE:tH,glj:nH,gnap:iH,gnapprox:sH,gne:rH,gnE:oH,gneq:aH,gneqq:lH,gnsim:cH,Gopf:dH,gopf:uH,grave:pH,GreaterEqual:_H,GreaterEqualLess:hH,GreaterFullEqual:fH,GreaterGreater:mH,GreaterLess:gH,GreaterSlantEqual:bH,GreaterTilde:EH,Gscr:yH,gscr:vH,gsim:SH,gsime:TH,gsiml:xH,gtcc:CH,gtcir:wH,gt:RH,GT:AH,Gt:NH,gtdot:OH,gtlPar:IH,gtquest:MH,gtrapprox:DH,gtrarr:kH,gtrdot:LH,gtreqless:PH,gtreqqless:UH,gtrless:FH,gtrsim:BH,gvertneqq:GH,gvnE:VH,Hacek:zH,hairsp:HH,half:qH,hamilt:YH,HARDcy:$H,hardcy:WH,harrcir:KH,harr:jH,hArr:QH,harrw:XH,Hat:ZH,hbar:JH,Hcirc:e7,hcirc:t7,hearts:n7,heartsuit:i7,hellip:s7,hercon:r7,hfr:o7,Hfr:a7,HilbertSpace:l7,hksearow:c7,hkswarow:d7,hoarr:u7,homtht:p7,hookleftarrow:_7,hookrightarrow:h7,hopf:f7,Hopf:m7,horbar:g7,HorizontalLine:b7,hscr:E7,Hscr:y7,hslash:v7,Hstrok:S7,hstrok:T7,HumpDownHump:x7,HumpEqual:C7,hybull:w7,hyphen:R7,Iacute:A7,iacute:N7,ic:O7,Icirc:I7,icirc:M7,Icy:D7,icy:k7,Idot:L7,IEcy:P7,iecy:U7,iexcl:F7,iff:B7,ifr:G7,Ifr:V7,Igrave:z7,igrave:H7,ii:q7,iiiint:Y7,iiint:$7,iinfin:W7,iiota:K7,IJlig:j7,ijlig:Q7,Imacr:X7,imacr:Z7,image:J7,ImaginaryI:eq,imagline:tq,imagpart:nq,imath:iq,Im:sq,imof:rq,imped:oq,Implies:aq,incare:lq,in:"∈",infin:cq,infintie:dq,inodot:uq,intcal:pq,int:_q,Int:hq,integers:fq,Integral:mq,intercal:gq,Intersection:bq,intlarhk:Eq,intprod:yq,InvisibleComma:vq,InvisibleTimes:Sq,IOcy:Tq,iocy:xq,Iogon:Cq,iogon:wq,Iopf:Rq,iopf:Aq,Iota:Nq,iota:Oq,iprod:Iq,iquest:Mq,iscr:Dq,Iscr:kq,isin:Lq,isindot:Pq,isinE:Uq,isins:Fq,isinsv:Bq,isinv:Gq,it:Vq,Itilde:zq,itilde:Hq,Iukcy:qq,iukcy:Yq,Iuml:$q,iuml:Wq,Jcirc:Kq,jcirc:jq,Jcy:Qq,jcy:Xq,Jfr:Zq,jfr:Jq,jmath:eY,Jopf:tY,jopf:nY,Jscr:iY,jscr:sY,Jsercy:rY,jsercy:oY,Jukcy:aY,jukcy:lY,Kappa:cY,kappa:dY,kappav:uY,Kcedil:pY,kcedil:_Y,Kcy:hY,kcy:fY,Kfr:mY,kfr:gY,kgreen:bY,KHcy:EY,khcy:yY,KJcy:vY,kjcy:SY,Kopf:TY,kopf:xY,Kscr:CY,kscr:wY,lAarr:RY,Lacute:AY,lacute:NY,laemptyv:OY,lagran:IY,Lambda:MY,lambda:DY,lang:kY,Lang:LY,langd:PY,langle:UY,lap:FY,Laplacetrf:BY,laquo:GY,larrb:VY,larrbfs:zY,larr:HY,Larr:qY,lArr:YY,larrfs:$Y,larrhk:WY,larrlp:KY,larrpl:jY,larrsim:QY,larrtl:XY,latail:ZY,lAtail:JY,lat:e$,late:t$,lates:n$,lbarr:i$,lBarr:s$,lbbrk:r$,lbrace:o$,lbrack:a$,lbrke:l$,lbrksld:c$,lbrkslu:d$,Lcaron:u$,lcaron:p$,Lcedil:_$,lcedil:h$,lceil:f$,lcub:m$,Lcy:g$,lcy:b$,ldca:E$,ldquo:y$,ldquor:v$,ldrdhar:S$,ldrushar:T$,ldsh:x$,le:C$,lE:w$,LeftAngleBracket:R$,LeftArrowBar:A$,leftarrow:N$,LeftArrow:O$,Leftarrow:I$,LeftArrowRightArrow:M$,leftarrowtail:D$,LeftCeiling:k$,LeftDoubleBracket:L$,LeftDownTeeVector:P$,LeftDownVectorBar:U$,LeftDownVector:F$,LeftFloor:B$,leftharpoondown:G$,leftharpoonup:V$,leftleftarrows:z$,leftrightarrow:H$,LeftRightArrow:q$,Leftrightarrow:Y$,leftrightarrows:$$,leftrightharpoons:W$,leftrightsquigarrow:K$,LeftRightVector:j$,LeftTeeArrow:Q$,LeftTee:X$,LeftTeeVector:Z$,leftthreetimes:J$,LeftTriangleBar:eW,LeftTriangle:tW,LeftTriangleEqual:nW,LeftUpDownVector:iW,LeftUpTeeVector:sW,LeftUpVectorBar:rW,LeftUpVector:oW,LeftVectorBar:aW,LeftVector:lW,lEg:cW,leg:dW,leq:uW,leqq:pW,leqslant:_W,lescc:hW,les:fW,lesdot:mW,lesdoto:gW,lesdotor:bW,lesg:EW,lesges:yW,lessapprox:vW,lessdot:SW,lesseqgtr:TW,lesseqqgtr:xW,LessEqualGreater:CW,LessFullEqual:wW,LessGreater:RW,lessgtr:AW,LessLess:NW,lesssim:OW,LessSlantEqual:IW,LessTilde:MW,lfisht:DW,lfloor:kW,Lfr:LW,lfr:PW,lg:UW,lgE:FW,lHar:BW,lhard:GW,lharu:VW,lharul:zW,lhblk:HW,LJcy:qW,ljcy:YW,llarr:$W,ll:WW,Ll:KW,llcorner:jW,Lleftarrow:QW,llhard:XW,lltri:ZW,Lmidot:JW,lmidot:eK,lmoustache:tK,lmoust:nK,lnap:iK,lnapprox:sK,lne:rK,lnE:oK,lneq:aK,lneqq:lK,lnsim:cK,loang:dK,loarr:uK,lobrk:pK,longleftarrow:_K,LongLeftArrow:hK,Longleftarrow:fK,longleftrightarrow:mK,LongLeftRightArrow:gK,Longleftrightarrow:bK,longmapsto:EK,longrightarrow:yK,LongRightArrow:vK,Longrightarrow:SK,looparrowleft:TK,looparrowright:xK,lopar:CK,Lopf:wK,lopf:RK,loplus:AK,lotimes:NK,lowast:OK,lowbar:IK,LowerLeftArrow:MK,LowerRightArrow:DK,loz:kK,lozenge:LK,lozf:PK,lpar:UK,lparlt:FK,lrarr:BK,lrcorner:GK,lrhar:VK,lrhard:zK,lrm:HK,lrtri:qK,lsaquo:YK,lscr:$K,Lscr:WK,lsh:KK,Lsh:jK,lsim:QK,lsime:XK,lsimg:ZK,lsqb:JK,lsquo:ej,lsquor:tj,Lstrok:nj,lstrok:ij,ltcc:sj,ltcir:rj,lt:oj,LT:aj,Lt:lj,ltdot:cj,lthree:dj,ltimes:uj,ltlarr:pj,ltquest:_j,ltri:hj,ltrie:fj,ltrif:mj,ltrPar:gj,lurdshar:bj,luruhar:Ej,lvertneqq:yj,lvnE:vj,macr:Sj,male:Tj,malt:xj,maltese:Cj,Map:"⤅",map:wj,mapsto:Rj,mapstodown:Aj,mapstoleft:Nj,mapstoup:Oj,marker:Ij,mcomma:Mj,Mcy:Dj,mcy:kj,mdash:Lj,mDDot:Pj,measuredangle:Uj,MediumSpace:Fj,Mellintrf:Bj,Mfr:Gj,mfr:Vj,mho:zj,micro:Hj,midast:qj,midcir:Yj,mid:$j,middot:Wj,minusb:Kj,minus:jj,minusd:Qj,minusdu:Xj,MinusPlus:Zj,mlcp:Jj,mldr:eQ,mnplus:tQ,models:nQ,Mopf:iQ,mopf:sQ,mp:rQ,mscr:oQ,Mscr:aQ,mstpos:lQ,Mu:cQ,mu:dQ,multimap:uQ,mumap:pQ,nabla:_Q,Nacute:hQ,nacute:fQ,nang:mQ,nap:gQ,napE:bQ,napid:EQ,napos:yQ,napprox:vQ,natural:SQ,naturals:TQ,natur:xQ,nbsp:CQ,nbump:wQ,nbumpe:RQ,ncap:AQ,Ncaron:NQ,ncaron:OQ,Ncedil:IQ,ncedil:MQ,ncong:DQ,ncongdot:kQ,ncup:LQ,Ncy:PQ,ncy:UQ,ndash:FQ,nearhk:BQ,nearr:GQ,neArr:VQ,nearrow:zQ,ne:HQ,nedot:qQ,NegativeMediumSpace:YQ,NegativeThickSpace:$Q,NegativeThinSpace:WQ,NegativeVeryThinSpace:KQ,nequiv:jQ,nesear:QQ,nesim:XQ,NestedGreaterGreater:ZQ,NestedLessLess:JQ,NewLine:eX,nexist:tX,nexists:nX,Nfr:iX,nfr:sX,ngE:rX,nge:oX,ngeq:aX,ngeqq:lX,ngeqslant:cX,nges:dX,nGg:uX,ngsim:pX,nGt:_X,ngt:hX,ngtr:fX,nGtv:mX,nharr:gX,nhArr:bX,nhpar:EX,ni:yX,nis:vX,nisd:SX,niv:TX,NJcy:xX,njcy:CX,nlarr:wX,nlArr:RX,nldr:AX,nlE:NX,nle:OX,nleftarrow:IX,nLeftarrow:MX,nleftrightarrow:DX,nLeftrightarrow:kX,nleq:LX,nleqq:PX,nleqslant:UX,nles:FX,nless:BX,nLl:GX,nlsim:VX,nLt:zX,nlt:HX,nltri:qX,nltrie:YX,nLtv:$X,nmid:WX,NoBreak:KX,NonBreakingSpace:jX,nopf:QX,Nopf:XX,Not:ZX,not:JX,NotCongruent:eZ,NotCupCap:tZ,NotDoubleVerticalBar:nZ,NotElement:iZ,NotEqual:sZ,NotEqualTilde:rZ,NotExists:oZ,NotGreater:aZ,NotGreaterEqual:lZ,NotGreaterFullEqual:cZ,NotGreaterGreater:dZ,NotGreaterLess:uZ,NotGreaterSlantEqual:pZ,NotGreaterTilde:_Z,NotHumpDownHump:hZ,NotHumpEqual:fZ,notin:mZ,notindot:gZ,notinE:bZ,notinva:EZ,notinvb:yZ,notinvc:vZ,NotLeftTriangleBar:SZ,NotLeftTriangle:TZ,NotLeftTriangleEqual:xZ,NotLess:CZ,NotLessEqual:wZ,NotLessGreater:RZ,NotLessLess:AZ,NotLessSlantEqual:NZ,NotLessTilde:OZ,NotNestedGreaterGreater:IZ,NotNestedLessLess:MZ,notni:DZ,notniva:kZ,notnivb:LZ,notnivc:PZ,NotPrecedes:UZ,NotPrecedesEqual:FZ,NotPrecedesSlantEqual:BZ,NotReverseElement:GZ,NotRightTriangleBar:VZ,NotRightTriangle:zZ,NotRightTriangleEqual:HZ,NotSquareSubset:qZ,NotSquareSubsetEqual:YZ,NotSquareSuperset:$Z,NotSquareSupersetEqual:WZ,NotSubset:KZ,NotSubsetEqual:jZ,NotSucceeds:QZ,NotSucceedsEqual:XZ,NotSucceedsSlantEqual:ZZ,NotSucceedsTilde:JZ,NotSuperset:eJ,NotSupersetEqual:tJ,NotTilde:nJ,NotTildeEqual:iJ,NotTildeFullEqual:sJ,NotTildeTilde:rJ,NotVerticalBar:oJ,nparallel:aJ,npar:lJ,nparsl:cJ,npart:dJ,npolint:uJ,npr:pJ,nprcue:_J,nprec:hJ,npreceq:fJ,npre:mJ,nrarrc:gJ,nrarr:bJ,nrArr:EJ,nrarrw:yJ,nrightarrow:vJ,nRightarrow:SJ,nrtri:TJ,nrtrie:xJ,nsc:CJ,nsccue:wJ,nsce:RJ,Nscr:AJ,nscr:NJ,nshortmid:OJ,nshortparallel:IJ,nsim:MJ,nsime:DJ,nsimeq:kJ,nsmid:LJ,nspar:PJ,nsqsube:UJ,nsqsupe:FJ,nsub:BJ,nsubE:GJ,nsube:VJ,nsubset:zJ,nsubseteq:HJ,nsubseteqq:qJ,nsucc:YJ,nsucceq:$J,nsup:WJ,nsupE:KJ,nsupe:jJ,nsupset:QJ,nsupseteq:XJ,nsupseteqq:ZJ,ntgl:JJ,Ntilde:eee,ntilde:tee,ntlg:nee,ntriangleleft:iee,ntrianglelefteq:see,ntriangleright:ree,ntrianglerighteq:oee,Nu:aee,nu:lee,num:cee,numero:dee,numsp:uee,nvap:pee,nvdash:_ee,nvDash:hee,nVdash:fee,nVDash:mee,nvge:gee,nvgt:bee,nvHarr:Eee,nvinfin:yee,nvlArr:vee,nvle:See,nvlt:Tee,nvltrie:xee,nvrArr:Cee,nvrtrie:wee,nvsim:Ree,nwarhk:Aee,nwarr:Nee,nwArr:Oee,nwarrow:Iee,nwnear:Mee,Oacute:Dee,oacute:kee,oast:Lee,Ocirc:Pee,ocirc:Uee,ocir:Fee,Ocy:Bee,ocy:Gee,odash:Vee,Odblac:zee,odblac:Hee,odiv:qee,odot:Yee,odsold:$ee,OElig:Wee,oelig:Kee,ofcir:jee,Ofr:Qee,ofr:Xee,ogon:Zee,Ograve:Jee,ograve:ete,ogt:tte,ohbar:nte,ohm:ite,oint:ste,olarr:rte,olcir:ote,olcross:ate,oline:lte,olt:cte,Omacr:dte,omacr:ute,Omega:pte,omega:_te,Omicron:hte,omicron:fte,omid:mte,ominus:gte,Oopf:bte,oopf:Ete,opar:yte,OpenCurlyDoubleQuote:vte,OpenCurlyQuote:Ste,operp:Tte,oplus:xte,orarr:Cte,Or:wte,or:Rte,ord:Ate,order:Nte,orderof:Ote,ordf:Ite,ordm:Mte,origof:Dte,oror:kte,orslope:Lte,orv:Pte,oS:Ute,Oscr:Fte,oscr:Bte,Oslash:Gte,oslash:Vte,osol:zte,Otilde:Hte,otilde:qte,otimesas:Yte,Otimes:$te,otimes:Wte,Ouml:Kte,ouml:jte,ovbar:Qte,OverBar:Xte,OverBrace:Zte,OverBracket:Jte,OverParenthesis:ene,para:tne,parallel:nne,par:ine,parsim:sne,parsl:rne,part:one,PartialD:ane,Pcy:lne,pcy:cne,percnt:dne,period:une,permil:pne,perp:_ne,pertenk:hne,Pfr:fne,pfr:mne,Phi:gne,phi:bne,phiv:Ene,phmmat:yne,phone:vne,Pi:Sne,pi:Tne,pitchfork:xne,piv:Cne,planck:wne,planckh:Rne,plankv:Ane,plusacir:Nne,plusb:One,pluscir:Ine,plus:Mne,plusdo:Dne,plusdu:kne,pluse:Lne,PlusMinus:Pne,plusmn:Une,plussim:Fne,plustwo:Bne,pm:Gne,Poincareplane:Vne,pointint:zne,popf:Hne,Popf:qne,pound:Yne,prap:$ne,Pr:Wne,pr:Kne,prcue:jne,precapprox:Qne,prec:Xne,preccurlyeq:Zne,Precedes:Jne,PrecedesEqual:eie,PrecedesSlantEqual:tie,PrecedesTilde:nie,preceq:iie,precnapprox:sie,precneqq:rie,precnsim:oie,pre:aie,prE:lie,precsim:cie,prime:die,Prime:uie,primes:pie,prnap:_ie,prnE:hie,prnsim:fie,prod:mie,Product:gie,profalar:bie,profline:Eie,profsurf:yie,prop:vie,Proportional:Sie,Proportion:Tie,propto:xie,prsim:Cie,prurel:wie,Pscr:Rie,pscr:Aie,Psi:Nie,psi:Oie,puncsp:Iie,Qfr:Mie,qfr:Die,qint:kie,qopf:Lie,Qopf:Pie,qprime:Uie,Qscr:Fie,qscr:Bie,quaternions:Gie,quatint:Vie,quest:zie,questeq:Hie,quot:qie,QUOT:Yie,rAarr:$ie,race:Wie,Racute:Kie,racute:jie,radic:Qie,raemptyv:Xie,rang:Zie,Rang:Jie,rangd:ese,range:tse,rangle:nse,raquo:ise,rarrap:sse,rarrb:rse,rarrbfs:ose,rarrc:ase,rarr:lse,Rarr:cse,rArr:dse,rarrfs:use,rarrhk:pse,rarrlp:_se,rarrpl:hse,rarrsim:fse,Rarrtl:mse,rarrtl:gse,rarrw:bse,ratail:Ese,rAtail:yse,ratio:vse,rationals:Sse,rbarr:Tse,rBarr:xse,RBarr:Cse,rbbrk:wse,rbrace:Rse,rbrack:Ase,rbrke:Nse,rbrksld:Ose,rbrkslu:Ise,Rcaron:Mse,rcaron:Dse,Rcedil:kse,rcedil:Lse,rceil:Pse,rcub:Use,Rcy:Fse,rcy:Bse,rdca:Gse,rdldhar:Vse,rdquo:zse,rdquor:Hse,rdsh:qse,real:Yse,realine:$se,realpart:Wse,reals:Kse,Re:jse,rect:Qse,reg:Xse,REG:Zse,ReverseElement:Jse,ReverseEquilibrium:ere,ReverseUpEquilibrium:tre,rfisht:nre,rfloor:ire,rfr:sre,Rfr:rre,rHar:ore,rhard:are,rharu:lre,rharul:cre,Rho:dre,rho:ure,rhov:pre,RightAngleBracket:_re,RightArrowBar:hre,rightarrow:fre,RightArrow:mre,Rightarrow:gre,RightArrowLeftArrow:bre,rightarrowtail:Ere,RightCeiling:yre,RightDoubleBracket:vre,RightDownTeeVector:Sre,RightDownVectorBar:Tre,RightDownVector:xre,RightFloor:Cre,rightharpoondown:wre,rightharpoonup:Rre,rightleftarrows:Are,rightleftharpoons:Nre,rightrightarrows:Ore,rightsquigarrow:Ire,RightTeeArrow:Mre,RightTee:Dre,RightTeeVector:kre,rightthreetimes:Lre,RightTriangleBar:Pre,RightTriangle:Ure,RightTriangleEqual:Fre,RightUpDownVector:Bre,RightUpTeeVector:Gre,RightUpVectorBar:Vre,RightUpVector:zre,RightVectorBar:Hre,RightVector:qre,ring:Yre,risingdotseq:$re,rlarr:Wre,rlhar:Kre,rlm:jre,rmoustache:Qre,rmoust:Xre,rnmid:Zre,roang:Jre,roarr:eoe,robrk:toe,ropar:noe,ropf:ioe,Ropf:soe,roplus:roe,rotimes:ooe,RoundImplies:aoe,rpar:loe,rpargt:coe,rppolint:doe,rrarr:uoe,Rrightarrow:poe,rsaquo:_oe,rscr:hoe,Rscr:foe,rsh:moe,Rsh:goe,rsqb:boe,rsquo:Eoe,rsquor:yoe,rthree:voe,rtimes:Soe,rtri:Toe,rtrie:xoe,rtrif:Coe,rtriltri:woe,RuleDelayed:Roe,ruluhar:Aoe,rx:Noe,Sacute:Ooe,sacute:Ioe,sbquo:Moe,scap:Doe,Scaron:koe,scaron:Loe,Sc:Poe,sc:Uoe,sccue:Foe,sce:Boe,scE:Goe,Scedil:Voe,scedil:zoe,Scirc:Hoe,scirc:qoe,scnap:Yoe,scnE:$oe,scnsim:Woe,scpolint:Koe,scsim:joe,Scy:Qoe,scy:Xoe,sdotb:Zoe,sdot:Joe,sdote:eae,searhk:tae,searr:nae,seArr:iae,searrow:sae,sect:rae,semi:oae,seswar:aae,setminus:lae,setmn:cae,sext:dae,Sfr:uae,sfr:pae,sfrown:_ae,sharp:hae,SHCHcy:fae,shchcy:mae,SHcy:gae,shcy:bae,ShortDownArrow:Eae,ShortLeftArrow:yae,shortmid:vae,shortparallel:Sae,ShortRightArrow:Tae,ShortUpArrow:xae,shy:Cae,Sigma:wae,sigma:Rae,sigmaf:Aae,sigmav:Nae,sim:Oae,simdot:Iae,sime:Mae,simeq:Dae,simg:kae,simgE:Lae,siml:Pae,simlE:Uae,simne:Fae,simplus:Bae,simrarr:Gae,slarr:Vae,SmallCircle:zae,smallsetminus:Hae,smashp:qae,smeparsl:Yae,smid:$ae,smile:Wae,smt:Kae,smte:jae,smtes:Qae,SOFTcy:Xae,softcy:Zae,solbar:Jae,solb:ele,sol:tle,Sopf:nle,sopf:ile,spades:sle,spadesuit:rle,spar:ole,sqcap:ale,sqcaps:lle,sqcup:cle,sqcups:dle,Sqrt:ule,sqsub:ple,sqsube:_le,sqsubset:hle,sqsubseteq:fle,sqsup:mle,sqsupe:gle,sqsupset:ble,sqsupseteq:Ele,square:yle,Square:vle,SquareIntersection:Sle,SquareSubset:Tle,SquareSubsetEqual:xle,SquareSuperset:Cle,SquareSupersetEqual:wle,SquareUnion:Rle,squarf:Ale,squ:Nle,squf:Ole,srarr:Ile,Sscr:Mle,sscr:Dle,ssetmn:kle,ssmile:Lle,sstarf:Ple,Star:Ule,star:Fle,starf:Ble,straightepsilon:Gle,straightphi:Vle,strns:zle,sub:Hle,Sub:qle,subdot:Yle,subE:$le,sube:Wle,subedot:Kle,submult:jle,subnE:Qle,subne:Xle,subplus:Zle,subrarr:Jle,subset:ece,Subset:tce,subseteq:nce,subseteqq:ice,SubsetEqual:sce,subsetneq:rce,subsetneqq:oce,subsim:ace,subsub:lce,subsup:cce,succapprox:dce,succ:uce,succcurlyeq:pce,Succeeds:_ce,SucceedsEqual:hce,SucceedsSlantEqual:fce,SucceedsTilde:mce,succeq:gce,succnapprox:bce,succneqq:Ece,succnsim:yce,succsim:vce,SuchThat:Sce,sum:Tce,Sum:xce,sung:Cce,sup1:wce,sup2:Rce,sup3:Ace,sup:Nce,Sup:Oce,supdot:Ice,supdsub:Mce,supE:Dce,supe:kce,supedot:Lce,Superset:Pce,SupersetEqual:Uce,suphsol:Fce,suphsub:Bce,suplarr:Gce,supmult:Vce,supnE:zce,supne:Hce,supplus:qce,supset:Yce,Supset:$ce,supseteq:Wce,supseteqq:Kce,supsetneq:jce,supsetneqq:Qce,supsim:Xce,supsub:Zce,supsup:Jce,swarhk:ede,swarr:tde,swArr:nde,swarrow:ide,swnwar:sde,szlig:rde,Tab:ode,target:ade,Tau:lde,tau:cde,tbrk:dde,Tcaron:ude,tcaron:pde,Tcedil:_de,tcedil:hde,Tcy:fde,tcy:mde,tdot:gde,telrec:bde,Tfr:Ede,tfr:yde,there4:vde,therefore:Sde,Therefore:Tde,Theta:xde,theta:Cde,thetasym:wde,thetav:Rde,thickapprox:Ade,thicksim:Nde,ThickSpace:Ode,ThinSpace:Ide,thinsp:Mde,thkap:Dde,thksim:kde,THORN:Lde,thorn:Pde,tilde:Ude,Tilde:Fde,TildeEqual:Bde,TildeFullEqual:Gde,TildeTilde:Vde,timesbar:zde,timesb:Hde,times:qde,timesd:Yde,tint:$de,toea:Wde,topbot:Kde,topcir:jde,top:Qde,Topf:Xde,topf:Zde,topfork:Jde,tosa:eue,tprime:tue,trade:nue,TRADE:iue,triangle:sue,triangledown:rue,triangleleft:oue,trianglelefteq:aue,triangleq:lue,triangleright:cue,trianglerighteq:due,tridot:uue,trie:pue,triminus:_ue,TripleDot:hue,triplus:fue,trisb:mue,tritime:gue,trpezium:bue,Tscr:Eue,tscr:yue,TScy:vue,tscy:Sue,TSHcy:Tue,tshcy:xue,Tstrok:Cue,tstrok:wue,twixt:Rue,twoheadleftarrow:Aue,twoheadrightarrow:Nue,Uacute:Oue,uacute:Iue,uarr:Mue,Uarr:Due,uArr:kue,Uarrocir:Lue,Ubrcy:Pue,ubrcy:Uue,Ubreve:Fue,ubreve:Bue,Ucirc:Gue,ucirc:Vue,Ucy:zue,ucy:Hue,udarr:que,Udblac:Yue,udblac:$ue,udhar:Wue,ufisht:Kue,Ufr:jue,ufr:Que,Ugrave:Xue,ugrave:Zue,uHar:Jue,uharl:epe,uharr:tpe,uhblk:npe,ulcorn:ipe,ulcorner:spe,ulcrop:rpe,ultri:ope,Umacr:ape,umacr:lpe,uml:cpe,UnderBar:dpe,UnderBrace:upe,UnderBracket:ppe,UnderParenthesis:_pe,Union:hpe,UnionPlus:fpe,Uogon:mpe,uogon:gpe,Uopf:bpe,uopf:Epe,UpArrowBar:ype,uparrow:vpe,UpArrow:Spe,Uparrow:Tpe,UpArrowDownArrow:xpe,updownarrow:Cpe,UpDownArrow:wpe,Updownarrow:Rpe,UpEquilibrium:Ape,upharpoonleft:Npe,upharpoonright:Ope,uplus:Ipe,UpperLeftArrow:Mpe,UpperRightArrow:Dpe,upsi:kpe,Upsi:Lpe,upsih:Ppe,Upsilon:Upe,upsilon:Fpe,UpTeeArrow:Bpe,UpTee:Gpe,upuparrows:Vpe,urcorn:zpe,urcorner:Hpe,urcrop:qpe,Uring:Ype,uring:$pe,urtri:Wpe,Uscr:Kpe,uscr:jpe,utdot:Qpe,Utilde:Xpe,utilde:Zpe,utri:Jpe,utrif:e_e,uuarr:t_e,Uuml:n_e,uuml:i_e,uwangle:s_e,vangrt:r_e,varepsilon:o_e,varkappa:a_e,varnothing:l_e,varphi:c_e,varpi:d_e,varpropto:u_e,varr:p_e,vArr:__e,varrho:h_e,varsigma:f_e,varsubsetneq:m_e,varsubsetneqq:g_e,varsupsetneq:b_e,varsupsetneqq:E_e,vartheta:y_e,vartriangleleft:v_e,vartriangleright:S_e,vBar:T_e,Vbar:x_e,vBarv:C_e,Vcy:w_e,vcy:R_e,vdash:A_e,vDash:N_e,Vdash:O_e,VDash:I_e,Vdashl:M_e,veebar:D_e,vee:k_e,Vee:L_e,veeeq:P_e,vellip:U_e,verbar:F_e,Verbar:B_e,vert:G_e,Vert:V_e,VerticalBar:z_e,VerticalLine:H_e,VerticalSeparator:q_e,VerticalTilde:Y_e,VeryThinSpace:$_e,Vfr:W_e,vfr:K_e,vltri:j_e,vnsub:Q_e,vnsup:X_e,Vopf:Z_e,vopf:J_e,vprop:ehe,vrtri:the,Vscr:nhe,vscr:ihe,vsubnE:she,vsubne:rhe,vsupnE:ohe,vsupne:ahe,Vvdash:lhe,vzigzag:che,Wcirc:dhe,wcirc:uhe,wedbar:phe,wedge:_he,Wedge:hhe,wedgeq:fhe,weierp:mhe,Wfr:ghe,wfr:bhe,Wopf:Ehe,wopf:yhe,wp:vhe,wr:She,wreath:The,Wscr:xhe,wscr:Che,xcap:whe,xcirc:Rhe,xcup:Ahe,xdtri:Nhe,Xfr:Ohe,xfr:Ihe,xharr:Mhe,xhArr:Dhe,Xi:khe,xi:Lhe,xlarr:Phe,xlArr:Uhe,xmap:Fhe,xnis:Bhe,xodot:Ghe,Xopf:Vhe,xopf:zhe,xoplus:Hhe,xotime:qhe,xrarr:Yhe,xrArr:$he,Xscr:Whe,xscr:Khe,xsqcup:jhe,xuplus:Qhe,xutri:Xhe,xvee:Zhe,xwedge:Jhe,Yacute:efe,yacute:tfe,YAcy:nfe,yacy:ife,Ycirc:sfe,ycirc:rfe,Ycy:ofe,ycy:afe,yen:lfe,Yfr:cfe,yfr:dfe,YIcy:ufe,yicy:pfe,Yopf:_fe,yopf:hfe,Yscr:ffe,yscr:mfe,YUcy:gfe,yucy:bfe,yuml:Efe,Yuml:yfe,Zacute:vfe,zacute:Sfe,Zcaron:Tfe,zcaron:xfe,Zcy:Cfe,zcy:wfe,Zdot:Rfe,zdot:Afe,zeetrf:Nfe,ZeroWidthSpace:Ofe,Zeta:Ife,zeta:Mfe,zfr:Dfe,Zfr:kfe,ZHcy:Lfe,zhcy:Pfe,zigrarr:Ufe,zopf:Ffe,Zopf:Bfe,Zscr:Gfe,zscr:Vfe,zwj:zfe,zwnj:Hfe};var WA=qfe,iE=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,qa={},Uv={};function Yfe(t){var e,n,i=Uv[t];if(i)return i;for(i=Uv[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)i[t.charCodeAt(e)]=t[e];return i}function $u(t,e,n){var i,s,r,o,a,l="";for(typeof e!="string"&&(n=e,e=$u.defaultChars),typeof n>"u"&&(n=!0),a=Yfe(e),i=0,s=t.length;i<s;i++){if(r=t.charCodeAt(i),n&&r===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(t.slice(i+1,i+3))){l+=t.slice(i,i+3),i+=2;continue}if(r<128){l+=a[r];continue}if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&i+1<s&&(o=t.charCodeAt(i+1),o>=56320&&o<=57343)){l+=encodeURIComponent(t[i]+t[i+1]),i++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(t[i])}return l}$u.defaultChars=";/?:@&=+$,-_.!~*'()#";$u.componentChars="-_.!~*'()";var $fe=$u,Fv={};function Wfe(t){var e,n,i=Fv[t];if(i)return i;for(i=Fv[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),i.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),i[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}function Wu(t,e){var n;return typeof e!="string"&&(e=Wu.defaultChars),n=Wfe(e),t.replace(/(%[a-f0-9]{2})+/gi,function(i){var s,r,o,a,l,u,d,h="";for(s=0,r=i.length;s<r;s+=3){if(o=parseInt(i.slice(s+1,s+3),16),o<128){h+=n[o];continue}if((o&224)===192&&s+3<r&&(a=parseInt(i.slice(s+4,s+6),16),(a&192)===128)){d=o<<6&1984|a&63,d<128?h+="<22><>":h+=String.fromCharCode(d),s+=3;continue}if((o&240)===224&&s+6<r&&(a=parseInt(i.slice(s+4,s+6),16),l=parseInt(i.slice(s+7,s+9),16),(a&192)===128&&(l&192)===128)){d=o<<12&61440|a<<6&4032|l&63,d<2048||d>=55296&&d<=57343?h+="<22><><EFBFBD>":h+=String.fromCharCode(d),s+=6;continue}if((o&248)===240&&s+9<r&&(a=parseInt(i.slice(s+4,s+6),16),l=parseInt(i.slice(s+7,s+9),16),u=parseInt(i.slice(s+10,s+12),16),(a&192)===128&&(l&192)===128&&(u&192)===128)){d=o<<18&1835008|a<<12&258048|l<<6&4032|u&63,d<65536||d>1114111?h+="<22><><EFBFBD><EFBFBD>":(d-=65536,h+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}h+="<22>"}return h})}Wu.defaultChars=";/?:@&=+$,#";Wu.componentChars="";var Kfe=Wu,jfe=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 Jd(){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 Qfe=/^([a-z0-9.+-]+:)/i,Xfe=/:[0-9]*$/,Zfe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Jfe=["<",">",'"',"`"," ","\r",`
|
||
`," "],eme=["{","}","|","\\","^","`"].concat(Jfe),tme=["'"].concat(eme),Bv=["%","/","?",";","#"].concat(tme),Gv=["/","?","#"],nme=255,Vv=/^[+a-z0-9A-Z_-]{0,63}$/,ime=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zv={javascript:!0,"javascript:":!0},Hv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function sme(t,e){if(t&&t instanceof Jd)return t;var n=new Jd;return n.parse(t,e),n}Jd.prototype.parse=function(t,e){var n,i,s,r,o,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=Zfe.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=Qfe.exec(a);if(u&&(u=u[0],s=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(u&&zv[u])&&(a=a.substr(2),this.slashes=!0)),!zv[u]&&(o||u&&!Hv[u])){var d=-1;for(n=0;n<Gv.length;n++)r=a.indexOf(Gv[n]),r!==-1&&(d===-1||r<d)&&(d=r);var h,f;for(d===-1?f=a.lastIndexOf("@"):f=a.lastIndexOf("@",d),f!==-1&&(h=a.slice(0,f),a=a.slice(f+1),this.auth=h),d=-1,n=0;n<Bv.length;n++)r=a.indexOf(Bv[n]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=a.length),a[d-1]===":"&&d--;var _=a.slice(0,d);a=a.slice(d),this.parseHost(_),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var E=this.hostname.split(/\./);for(n=0,i=E.length;n<i;n++){var b=E[n];if(b&&!b.match(Vv)){for(var g="",y=0,v=b.length;y<v;y++)b.charCodeAt(y)>127?g+="x":g+=b[y];if(!g.match(Vv)){var S=E.slice(0,n),C=E.slice(n+1),T=b.match(ime);T&&(S.push(T[1]),C.unshift(T[2])),C.length&&(a=C.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>nme&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var O=a.indexOf("#");O!==-1&&(this.hash=a.substr(O),a=a.slice(0,O));var k=a.indexOf("?");return k!==-1&&(this.search=a.substr(k),a=a.slice(0,k)),a&&(this.pathname=a),Hv[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Jd.prototype.parseHost=function(t){var e=Xfe.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 rme=sme;qa.encode=$fe;qa.decode=Kfe;qa.format=jfe;qa.parse=rme;var Ur={},Pp,qv;function KA(){return qv||(qv=1,Pp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Pp}var Up,Yv;function jA(){return Yv||(Yv=1,Up=/[\0-\x1F\x7F-\x9F]/),Up}var Fp,$v;function ome(){return $v||($v=1,Fp=/[\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]/),Fp}var Bp,Wv;function QA(){return Wv||(Wv=1,Bp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Bp}var Kv;function ame(){return Kv||(Kv=1,Ur.Any=KA(),Ur.Cc=jA(),Ur.Cf=ome(),Ur.P=iE,Ur.Z=QA()),Ur}(function(t){function e(L){return Object.prototype.toString.call(L)}function n(L){return e(L)==="[object String]"}var i=Object.prototype.hasOwnProperty;function s(L,$){return i.call(L,$)}function r(L){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(H){if(H){if(typeof H!="object")throw new TypeError(H+"must be object");Object.keys(H).forEach(function(U){L[U]=H[U]})}}),L}function o(L,$,H){return[].concat(L.slice(0,$),H,L.slice($+1))}function a(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function l(L){if(L>65535){L-=65536;var $=55296+(L>>10),H=56320+(L&1023);return String.fromCharCode($,H)}return String.fromCharCode(L)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(u.source+"|"+d.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,_=WA;function m(L,$){var H;return s(_,$)?_[$]:$.charCodeAt(0)===35&&f.test($)&&(H=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),a(H))?l(H):L}function E(L){return L.indexOf("\\")<0?L:L.replace(u,"$1")}function b(L){return L.indexOf("\\")<0&&L.indexOf("&")<0?L:L.replace(h,function($,H,U){return H||m($,U)})}var g=/[&<>"]/,y=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function S(L){return v[L]}function C(L){return g.test(L)?L.replace(y,S):L}var T=/[.?*+^$[\]\\(){}|-]/g;function O(L){return L.replace(T,"\\$&")}function k(L){switch(L){case 9:case 32:return!0}return!1}function x(L){if(L>=8192&&L<=8202)return!0;switch(L){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 I=iE;function F(L){return I.test(L)}function B(L){switch(L){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 ne(L){return L=L.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(L=L.replace(/ẞ/g,"ß")),L.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=qa,t.lib.ucmicro=ame(),t.assign=r,t.isString=n,t.has=s,t.unescapeMd=E,t.unescapeAll=b,t.isValidEntityCode=a,t.fromCodePoint=l,t.escapeHtml=C,t.arrayReplaceAt=o,t.isSpace=k,t.isWhiteSpace=x,t.isMdAsciiPunct=B,t.isPunctChar=F,t.escapeRE=O,t.normalizeReference=ne})(Bt);var Ku={},lme=function(e,n,i){var s,r,o,a,l=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,s=1;e.pos<u;){if(o=e.src.charCodeAt(e.pos),o===93&&(s--,s===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)s++;else if(i)return e.pos=d,-1}}return r&&(l=e.pos),e.pos=d,l},jv=Bt.unescapeAll,cme=function(e,n,i){var s,r,o=n,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<i;){if(s=e.charCodeAt(o),s===10||s===60)return a;if(s===62)return a.pos=o+1,a.str=jv(e.slice(n+1,o)),a.ok=!0,a;if(s===92&&o+1<i){o+=2;continue}o++}return a}for(r=0;o<i&&(s=e.charCodeAt(o),!(s===32||s<32||s===127));){if(s===92&&o+1<i){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(s===40&&(r++,r>32))return a;if(s===41){if(r===0)break;r--}o++}return n===o||r!==0||(a.str=jv(e.slice(n,o)),a.pos=o,a.ok=!0),a},dme=Bt.unescapeAll,ume=function(e,n,i){var s,r,o=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(a>=i||(r=e.charCodeAt(a),r!==34&&r!==39&&r!==40))return l;for(a++,r===40&&(r=41);a<i;){if(s=e.charCodeAt(a),s===r)return l.pos=a+1,l.lines=o,l.str=dme(e.slice(n+1,a)),l.ok=!0,l;if(s===40&&r===41)return l;s===10?o++:s===92&&a+1<i&&(a++,e.charCodeAt(a)===10&&o++),a++}return l};Ku.parseLinkLabel=lme;Ku.parseLinkDestination=cme;Ku.parseLinkTitle=ume;var pme=Bt.assign,_me=Bt.unescapeAll,po=Bt.escapeHtml,_s={};_s.code_inline=function(t,e,n,i,s){var r=t[e];return"<code"+s.renderAttrs(r)+">"+po(r.content)+"</code>"};_s.code_block=function(t,e,n,i,s){var r=t[e];return"<pre"+s.renderAttrs(r)+"><code>"+po(t[e].content)+`</code></pre>
|
||
`};_s.fence=function(t,e,n,i,s){var r=t[e],o=r.info?_me(r.info).trim():"",a="",l="",u,d,h,f,_;return o&&(h=o.split(/(\s+)/g),a=h[0],l=h.slice(2).join("")),n.highlight?u=n.highlight(r.content,a,l)||po(r.content):u=po(r.content),u.indexOf("<pre")===0?u+`
|
||
`:o?(d=r.attrIndex("class"),f=r.attrs?r.attrs.slice():[],d<0?f.push(["class",n.langPrefix+a]):(f[d]=f[d].slice(),f[d][1]+=" "+n.langPrefix+a),_={attrs:f},"<pre><code"+s.renderAttrs(_)+">"+u+`</code></pre>
|
||
`):"<pre><code"+s.renderAttrs(r)+">"+u+`</code></pre>
|
||
`};_s.image=function(t,e,n,i,s){var r=t[e];return r.attrs[r.attrIndex("alt")][1]=s.renderInlineAsText(r.children,n,i),s.renderToken(t,e,n)};_s.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`};_s.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`:`
|
||
`};_s.text=function(t,e){return po(t[e].content)};_s.html_block=function(t,e){return t[e].content};_s.html_inline=function(t,e){return t[e].content};function Ya(){this.rules=pme({},_s)}Ya.prototype.renderAttrs=function(e){var n,i,s;if(!e.attrs)return"";for(s="",n=0,i=e.attrs.length;n<i;n++)s+=" "+po(e.attrs[n][0])+'="'+po(e.attrs[n][1])+'"';return s};Ya.prototype.renderToken=function(e,n,i){var s,r="",o=!1,a=e[n];return a.hidden?"":(a.block&&a.nesting!==-1&&n&&e[n-1].hidden&&(r+=`
|
||
`),r+=(a.nesting===-1?"</":"<")+a.tag,r+=this.renderAttrs(a),a.nesting===0&&i.xhtmlOut&&(r+=" /"),a.block&&(o=!0,a.nesting===1&&n+1<e.length&&(s=e[n+1],(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===a.tag)&&(o=!1))),r+=o?`>
|
||
`:">",r)};Ya.prototype.renderInline=function(t,e,n){for(var i,s="",r=this.rules,o=0,a=t.length;o<a;o++)i=t[o].type,typeof r[i]<"u"?s+=r[i](t,o,e,n,this):s+=this.renderToken(t,o,e);return s};Ya.prototype.renderInlineAsText=function(t,e,n){for(var i="",s=0,r=t.length;s<r;s++)t[s].type==="text"?i+=t[s].content:t[s].type==="image"?i+=this.renderInlineAsText(t[s].children,e,n):t[s].type==="softbreak"&&(i+=`
|
||
`);return i};Ya.prototype.render=function(t,e,n){var i,s,r,o="",a=this.rules;for(i=0,s=t.length;i<s;i++)r=t[i].type,r==="inline"?o+=this.renderInline(t[i].children,e,n):typeof a[r]<"u"?o+=a[r](t,i,e,n,this):o+=this.renderToken(t,i,e,n);return o};var hme=Ya;function Wi(){this.__rules__=[],this.__cache__=null}Wi.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Wi.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(i){e.indexOf(i)<0&&e.push(i)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(i){i.enabled&&(n&&i.alt.indexOf(n)<0||t.__cache__[n].push(i.fn))})})};Wi.prototype.at=function(t,e,n){var i=this.__find__(t),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=e,this.__rules__[i].alt=s.alt||[],this.__cache__=null};Wi.prototype.before=function(t,e,n,i){var s=this.__find__(t),r=i||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null};Wi.prototype.after=function(t,e,n,i){var s=this.__find__(t),r=i||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null};Wi.prototype.push=function(t,e,n){var i=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null};Wi.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(i){var s=this.__find__(i);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[s].enabled=!0,n.push(i)},this),this.__cache__=null,n};Wi.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Wi.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(i){var s=this.__find__(i);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[s].enabled=!1,n.push(i)},this),this.__cache__=null,n};Wi.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var sE=Wi,fme=/\r\n?|\n/g,mme=/\0/g,gme=function(e){var n;n=e.src.replace(fme,`
|
||
`),n=n.replace(mme,"<22>"),e.src=n},bme=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Eme=function(e){var n=e.tokens,i,s,r;for(s=0,r=n.length;s<r;s++)i=n[s],i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)},yme=Bt.arrayReplaceAt;function vme(t){return/^<a[>\s]/i.test(t)}function Sme(t){return/^<\/a\s*>/i.test(t)}var Tme=function(e){var n,i,s,r,o,a,l,u,d,h,f,_,m,E,b,g,y=e.tokens,v;if(e.md.options.linkify){for(i=0,s=y.length;i<s;i++)if(!(y[i].type!=="inline"||!e.md.linkify.pretest(y[i].content)))for(r=y[i].children,m=0,n=r.length-1;n>=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"&&(vme(a.content)&&m>0&&m--,Sme(a.content)&&m++),!(m>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,v=e.md.linkify.match(d),l=[],_=a.level,f=0,v.length>0&&v[0].index===0&&n>0&&r[n-1].type==="text_special"&&(v=v.slice(1)),u=0;u<v.length;u++)E=v[u].url,b=e.md.normalizeLink(E),e.md.validateLink(b)&&(g=v[u].text,v[u].schema?v[u].schema==="mailto:"&&!/^mailto:/i.test(g)?g=e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):g=e.md.normalizeLinkText(g):g=e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),h=v[u].index,h>f&&(o=new e.Token("text","",0),o.content=d.slice(f,h),o.level=_,l.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=_++,o.markup="linkify",o.info="auto",l.push(o),o=new e.Token("text","",0),o.content=g,o.level=_,l.push(o),o=new e.Token("link_close","a",-1),o.level=--_,o.markup="linkify",o.info="auto",l.push(o),f=v[u].lastIndex);f<d.length&&(o=new e.Token("text","",0),o.content=d.slice(f),o.level=_,l.push(o)),y[i].children=r=yme(r,n,l)}}}},XA=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,xme=/\((c|tm|r)\)/i,Cme=/\((c|tm|r)\)/ig,wme={c:"©",r:"®",tm:"™"};function Rme(t,e){return wme[e.toLowerCase()]}function Ame(t){var e,n,i=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!i&&(n.content=n.content.replace(Cme,Rme)),n.type==="link_open"&&n.info==="auto"&&i--,n.type==="link_close"&&n.info==="auto"&&i++}function Nme(t){var e,n,i=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!i&&XA.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"&&i--,n.type==="link_close"&&n.info==="auto"&&i++}var Ome=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(xme.test(e.tokens[n].content)&&Ame(e.tokens[n].children),XA.test(e.tokens[n].content)&&Nme(e.tokens[n].children))},Qv=Bt.isWhiteSpace,Xv=Bt.isPunctChar,Zv=Bt.isMdAsciiPunct,Ime=/['"]/,Jv=/['"]/g,eS="’";function Dc(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Mme(t,e){var n,i,s,r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C,T;for(S=[],n=0;n<t.length;n++){for(i=t[n],l=t[n].level,y=S.length-1;y>=0&&!(S[y].level<=l);y--);if(S.length=y+1,i.type==="text"){s=i.content,o=0,a=s.length;e:for(;o<a&&(Jv.lastIndex=o,r=Jv.exec(s),!!r);){if(b=g=!0,o=r.index+1,v=r[0]==="'",d=32,r.index-1>=0)d=s.charCodeAt(r.index-1);else for(y=n-1;y>=0&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y--)if(t[y].content){d=t[y].content.charCodeAt(t[y].content.length-1);break}if(h=32,o<a)h=s.charCodeAt(o);else for(y=n+1;y<t.length&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y++)if(t[y].content){h=t[y].content.charCodeAt(0);break}if(f=Zv(d)||Xv(String.fromCharCode(d)),_=Zv(h)||Xv(String.fromCharCode(h)),m=Qv(d),E=Qv(h),E?b=!1:_&&(m||f||(b=!1)),m?g=!1:f&&(E||_||(g=!1)),h===34&&r[0]==='"'&&d>=48&&d<=57&&(g=b=!1),b&&g&&(b=f,g=_),!b&&!g){v&&(i.content=Dc(i.content,r.index,eS));continue}if(g){for(y=S.length-1;y>=0&&(u=S[y],!(S[y].level<l));y--)if(u.single===v&&S[y].level===l){u=S[y],v?(C=e.md.options.quotes[2],T=e.md.options.quotes[3]):(C=e.md.options.quotes[0],T=e.md.options.quotes[1]),i.content=Dc(i.content,r.index,T),t[u.token].content=Dc(t[u.token].content,u.pos,C),o+=T.length-1,u.token===n&&(o+=C.length-1),s=i.content,a=s.length,S.length=y;continue e}}b?S.push({token:n,pos:r.index,single:v,level:l}):g&&v&&(i.content=Dc(i.content,r.index,eS))}}}}var Dme=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Ime.test(e.tokens[n].content)||Mme(e.tokens[n].children,e)},kme=function(e){var n,i,s,r,o,a,l=e.tokens;for(n=0,i=l.length;n<i;n++)if(l[n].type==="inline"){for(s=l[n].children,o=s.length,r=0;r<o;r++)s[r].type==="text_special"&&(s[r].type="text");for(r=a=0;r<o;r++)s[r].type==="text"&&r+1<o&&s[r+1].type==="text"?s[r+1].content=s[r].content+s[r+1].content:(r!==a&&(s[a]=s[r]),a++);r!==a&&(s.length=a)}};function $a(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}$a.prototype.attrIndex=function(e){var n,i,s;if(!this.attrs)return-1;for(n=this.attrs,i=0,s=n.length;i<s;i++)if(n[i][0]===e)return i;return-1};$a.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};$a.prototype.attrSet=function(e,n){var i=this.attrIndex(e),s=[e,n];i<0?this.attrPush(s):this.attrs[i]=s};$a.prototype.attrGet=function(e){var n=this.attrIndex(e),i=null;return n>=0&&(i=this.attrs[n][1]),i};$a.prototype.attrJoin=function(e,n){var i=this.attrIndex(e);i<0?this.attrPush([e,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};var rE=$a,Lme=rE;function ZA(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}ZA.prototype.Token=Lme;var Pme=ZA,Ume=sE,Gp=[["normalize",gme],["block",bme],["inline",Eme],["linkify",Tme],["replacements",Ome],["smartquotes",Dme],["text_join",kme]];function oE(){this.ruler=new Ume;for(var t=0;t<Gp.length;t++)this.ruler.push(Gp[t][0],Gp[t][1])}oE.prototype.process=function(t){var e,n,i;for(i=this.ruler.getRules(""),e=0,n=i.length;e<n;e++)i[e](t)};oE.prototype.State=Pme;var Fme=oE,Vp=Bt.isSpace;function zp(t,e){var n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return t.src.slice(n,i)}function tS(t){var e=[],n=0,i=t.length,s,r=!1,o=0,a="";for(s=t.charCodeAt(n);n<i;)s===124&&(r?(a+=t.substring(o,n-1),o=n):(e.push(a+t.substring(o,n)),a="",o=n+1)),r=s===92,n++,s=t.charCodeAt(n);return e.push(a+t.substring(o)),e}var Bme=function(e,n,i,s){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C,T;if(n+2>i||(d=n+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(a=e.bMarks[d]+e.tShift[d],a>=e.eMarks[d])||(C=e.src.charCodeAt(a++),C!==124&&C!==45&&C!==58)||a>=e.eMarks[d]||(T=e.src.charCodeAt(a++),T!==124&&T!==45&&T!==58&&!Vp(T))||C===45&&Vp(T))return!1;for(;a<e.eMarks[d];){if(r=e.src.charCodeAt(a),r!==124&&r!==45&&r!==58&&!Vp(r))return!1;a++}for(o=zp(e,n+1),h=o.split("|"),m=[],l=0;l<h.length;l++){if(E=h[l].trim(),!E){if(l===0||l===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?m.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?m.push("left"):m.push("")}if(o=zp(e,n).trim(),o.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(h=tS(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),f=h.length,f===0||f!==m.length))return!1;if(s)return!0;for(y=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),_=e.push("table_open","table",1),_.map=b=[n,0],_=e.push("thead_open","thead",1),_.map=[n,n+1],_=e.push("tr_open","tr",1),_.map=[n,n+1],l=0;l<h.length;l++)_=e.push("th_open","th",1),m[l]&&(_.attrs=[["style","text-align:"+m[l]]]),_=e.push("inline","",0),_.content=h[l].trim(),_.children=[],_=e.push("th_close","th",-1);for(_=e.push("tr_close","tr",-1),_=e.push("thead_close","thead",-1),d=n+2;d<i&&!(e.sCount[d]<e.blkIndent);d++){for(v=!1,l=0,u=S.length;l<u;l++)if(S[l](e,d,i,!0)){v=!0;break}if(v||(o=zp(e,d).trim(),!o)||e.sCount[d]-e.blkIndent>=4)break;for(h=tS(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),d===n+2&&(_=e.push("tbody_open","tbody",1),_.map=g=[n+2,0]),_=e.push("tr_open","tr",1),_.map=[d,d+1],l=0;l<f;l++)_=e.push("td_open","td",1),m[l]&&(_.attrs=[["style","text-align:"+m[l]]]),_=e.push("inline","",0),_.content=h[l]?h[l].trim():"",_.children=[],_=e.push("td_close","td",-1);_=e.push("tr_close","tr",-1)}return g&&(_=e.push("tbody_close","tbody",-1),g[1]=d),_=e.push("table_close","table",-1),b[1]=d,e.parentType=y,e.line=d,!0},Gme=function(e,n,i){var s,r,o;if(e.sCount[n]-e.blkIndent<4)return!1;for(r=s=n+1;s<i;){if(e.isEmpty(s)){s++;continue}if(e.sCount[s]-e.blkIndent>=4){s++,r=s;continue}break}return e.line=r,o=e.push("code_block","code",0),o.content=e.getLines(n,r,4+e.blkIndent,!1)+`
|
||
`,o.map=[n,e.line],!0},Vme=function(e,n,i,s){var r,o,a,l,u,d,h,f=!1,_=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||_+3>m||(r=e.src.charCodeAt(_),r!==126&&r!==96)||(u=_,_=e.skipChars(_,r),o=_-u,o<3)||(h=e.src.slice(u,_),a=e.src.slice(_,m),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(s)return!0;for(l=n;l++,!(l>=i||(_=u=e.bMarks[l]+e.tShift[l],m=e.eMarks[l],_<m&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(_)===r&&!(e.sCount[l]-e.blkIndent>=4)&&(_=e.skipChars(_,r),!(_-u<o)&&(_=e.skipSpaces(_),!(_<m)))){f=!0;break}return o=e.sCount[n],e.line=l+(f?1:0),d=e.push("fence","code",0),d.info=a,d.content=e.getLines(n+1,l,o,!0),d.markup=h,d.map=[n,e.line],!0},zme=Bt.isSpace,Hme=function(e,n,i,s){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C,T,O,k,x=e.lineMax,I=e.bMarks[n]+e.tShift[n],F=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(I)!==62)return!1;if(s)return!0;for(m=[],E=[],y=[],v=[],T=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",f=n;f<i&&(k=e.sCount[f]<e.blkIndent,I=e.bMarks[f]+e.tShift[f],F=e.eMarks[f],!(I>=F));f++){if(e.src.charCodeAt(I++)===62&&!k){for(l=e.sCount[f]+1,e.src.charCodeAt(I)===32?(I++,l++,r=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[f]+l)%4===3?(I++,l++,r=!1):r=!0):S=!1,_=l,m.push(e.bMarks[f]),e.bMarks[f]=I;I<F&&(o=e.src.charCodeAt(I),zme(o));){o===9?_+=4-(_+e.bsCount[f]+(r?1:0))%4:_++;I++}d=I>=F,E.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(S?1:0),y.push(e.sCount[f]),e.sCount[f]=_-l,v.push(e.tShift[f]),e.tShift[f]=I-e.bMarks[f];continue}if(d)break;for(C=!1,a=0,u=T.length;a<u;a++)if(T[a](e,f,i,!0)){C=!0;break}if(C){e.lineMax=f,e.blkIndent!==0&&(m.push(e.bMarks[f]),E.push(e.bsCount[f]),v.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}m.push(e.bMarks[f]),E.push(e.bsCount[f]),v.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}for(b=e.blkIndent,e.blkIndent=0,O=e.push("blockquote_open","blockquote",1),O.markup=">",O.map=h=[n,0],e.md.block.tokenize(e,n,f),O=e.push("blockquote_close","blockquote",-1),O.markup=">",e.lineMax=x,e.parentType=g,h[1]=e.line,a=0;a<v.length;a++)e.bMarks[a+n]=m[a],e.tShift[a+n]=v[a],e.sCount[a+n]=y[a],e.bsCount[a+n]=E[a];return e.blkIndent=b,!0},qme=Bt.isSpace,Yme=function(e,n,i,s){var r,o,a,l,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(r=e.src.charCodeAt(u++),r!==42&&r!==45&&r!==95))return!1;for(o=1;u<d;){if(a=e.src.charCodeAt(u++),a!==r&&!qme(a))return!1;a===r&&o++}return o<3?!1:(s||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(o+1).join(String.fromCharCode(r))),!0)},JA=Bt.isSpace;function nS(t,e){var n,i,s,r;return i=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],n=t.src.charCodeAt(i++),n!==42&&n!==45&&n!==43||i<s&&(r=t.src.charCodeAt(i),!JA(r))?-1:i}function iS(t,e){var n,i=t.bMarks[e]+t.tShift[e],s=i,r=t.eMarks[e];if(s+1>=r||(n=t.src.charCodeAt(s++),n<48||n>57))return-1;for(;;){if(s>=r)return-1;if(n=t.src.charCodeAt(s++),n>=48&&n<=57){if(s-i>=10)return-1;continue}if(n===41||n===46)break;return-1}return s<r&&(n=t.src.charCodeAt(s),!JA(n))?-1:s}function $me(t,e){var n,i,s=t.level+2;for(n=e+2,i=t.tokens.length-2;n<i;n++)t.tokens[n].level===s&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Wme=function(e,n,i,s){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C,T,O,k,x,I,F,B,ne,L,$,H=n,U=!1,Q=!0;if(e.sCount[H]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[H]-e.listIndent>=4&&e.sCount[H]<e.blkIndent)return!1;if(s&&e.parentType==="paragraph"&&e.sCount[H]>=e.blkIndent&&(U=!0),(I=iS(e,H))>=0){if(h=!0,B=e.bMarks[H]+e.tShift[H],g=Number(e.src.slice(B,I-1)),U&&g!==1)return!1}else if((I=nS(e,H))>=0)h=!1;else return!1;if(U&&e.skipSpaces(I)>=e.eMarks[H])return!1;if(s)return!0;for(b=e.src.charCodeAt(I-1),E=e.tokens.length,h?($=e.push("ordered_list_open","ol",1),g!==1&&($.attrs=[["start",g]])):$=e.push("bullet_list_open","ul",1),$.map=m=[H,0],$.markup=String.fromCharCode(b),F=!1,L=e.md.block.ruler.getRules("list"),C=e.parentType,e.parentType="list";H<i;){for(x=I,y=e.eMarks[H],d=v=e.sCount[H]+I-(e.bMarks[H]+e.tShift[H]);x<y;){if(r=e.src.charCodeAt(x),r===9)v+=4-(v+e.bsCount[H])%4;else if(r===32)v++;else break;x++}if(o=x,o>=y?u=1:u=v-d,u>4&&(u=1),l=d+u,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[H,0],h&&($.info=e.src.slice(B,I-1)),k=e.tight,O=e.tShift[H],T=e.sCount[H],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[H]=o-e.bMarks[H],e.sCount[H]=v,o>=y&&e.isEmpty(H+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,H,i,!0),(!e.tight||F)&&(Q=!1),F=e.line-H>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[H]=O,e.sCount[H]=T,e.tight=k,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),H=e.line,f[1]=H,H>=i||e.sCount[H]<e.blkIndent||e.sCount[H]-e.blkIndent>=4)break;for(ne=!1,a=0,_=L.length;a<_;a++)if(L[a](e,H,i,!0)){ne=!0;break}if(ne)break;if(h){if(I=iS(e,H),I<0)break;B=e.bMarks[H]+e.tShift[H]}else if(I=nS(e,H),I<0)break;if(b!==e.src.charCodeAt(I-1))break}return h?$=e.push("ordered_list_close","ol",-1):$=e.push("bullet_list_close","ul",-1),$.markup=String.fromCharCode(b),m[1]=H,e.line=H,e.parentType=C,Q&&$me(e,E),!0},Kme=Bt.normalizeReference,kc=Bt.isSpace,jme=function(e,n,i,s){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,C=0,T=e.bMarks[n]+e.tShift[n],O=e.eMarks[n],k=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(T)!==91)return!1;for(;++T<O;)if(e.src.charCodeAt(T)===93&&e.src.charCodeAt(T-1)!==92){if(T+1===O||e.src.charCodeAt(T+1)!==58)return!1;break}for(l=e.lineMax,v=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";k<l&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3)&&!(e.sCount[k]<0)){for(y=!1,d=0,h=v.length;d<h;d++)if(v[d](e,k,l,!0)){y=!0;break}if(y)break}for(g=e.getLines(n,k,e.blkIndent,!1).trim(),O=g.length,T=1;T<O;T++){if(r=g.charCodeAt(T),r===91)return!1;if(r===93){_=T;break}else r===10?C++:r===92&&(T++,T<O&&g.charCodeAt(T)===10&&C++)}if(_<0||g.charCodeAt(_+1)!==58)return!1;for(T=_+2;T<O;T++)if(r=g.charCodeAt(T),r===10)C++;else if(!kc(r))break;if(E=e.md.helpers.parseLinkDestination(g,T,O),!E.ok||(u=e.md.normalizeLink(E.str),!e.md.validateLink(u)))return!1;for(T=E.pos,C+=E.lines,o=T,a=C,b=T;T<O;T++)if(r=g.charCodeAt(T),r===10)C++;else if(!kc(r))break;for(E=e.md.helpers.parseLinkTitle(g,T,O),T<O&&b!==T&&E.ok?(S=E.str,T=E.pos,C+=E.lines):(S="",T=o,C=a);T<O&&(r=g.charCodeAt(T),!!kc(r));)T++;if(T<O&&g.charCodeAt(T)!==10&&S)for(S="",T=o,C=a;T<O&&(r=g.charCodeAt(T),!!kc(r));)T++;return T<O&&g.charCodeAt(T)!==10||(f=Kme(g.slice(1,_)),!f)?!1:(s||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:S,href:u}),e.parentType=m,e.line=n+C+1),!0)},Qme=["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"],ju={},Xme="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zme="[^\"'=<>`\\x00-\\x20]+",Jme="'[^']*'",ege='"[^"]*"',tge="(?:"+Zme+"|"+Jme+"|"+ege+")",nge="(?:\\s+"+Xme+"(?:\\s*=\\s*"+tge+")?)",eN="<[A-Za-z][A-Za-z0-9\\-]*"+nge+"*\\s*\\/?>",tN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ige="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",sge="<[?][\\s\\S]*?[?]>",rge="<![A-Z]+\\s+[^>]*>",oge="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",age=new RegExp("^(?:"+eN+"|"+tN+"|"+ige+"|"+sge+"|"+rge+"|"+oge+")"),lge=new RegExp("^(?:"+eN+"|"+tN+")");ju.HTML_TAG_RE=age;ju.HTML_OPEN_CLOSE_TAG_RE=lge;var cge=Qme,dge=ju.HTML_OPEN_CLOSE_TAG_RE,Ro=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+cge.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(dge.source+"\\s*$"),/^$/,!1]],uge=function(e,n,i,s){var r,o,a,l,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(l=e.src.slice(u,d),r=0;r<Ro.length&&!Ro[r][0].test(l);r++);if(r===Ro.length)return!1;if(s)return Ro[r][2];if(o=n+1,!Ro[r][1].test(l)){for(;o<i&&!(e.sCount[o]<e.blkIndent);o++)if(u=e.bMarks[o]+e.tShift[o],d=e.eMarks[o],l=e.src.slice(u,d),Ro[r][1].test(l)){l.length!==0&&o++;break}}return e.line=o,a=e.push("html_block","",0),a.map=[n,o],a.content=e.getLines(n,o,e.blkIndent,!0),!0},sS=Bt.isSpace,pge=function(e,n,i,s){var r,o,a,l,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(r=e.src.charCodeAt(u),r!==35||u>=d))return!1;for(o=1,r=e.src.charCodeAt(++u);r===35&&u<d&&o<=6;)o++,r=e.src.charCodeAt(++u);return o>6||u<d&&!sS(r)?!1:(s||(d=e.skipSpacesBack(d,u),a=e.skipCharsBack(d,35,u),a>u&&sS(e.src.charCodeAt(a-1))&&(d=a),e.line=n+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[n,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,d).trim(),l.map=[n,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},_ge=function(e,n,i){var s,r,o,a,l,u,d,h,f,_=n+1,m,E=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";_<i&&!e.isEmpty(_);_++)if(!(e.sCount[_]-e.blkIndent>3)){if(e.sCount[_]>=e.blkIndent&&(u=e.bMarks[_]+e.tShift[_],d=e.eMarks[_],u<d&&(f=e.src.charCodeAt(u),(f===45||f===61)&&(u=e.skipChars(u,f),u=e.skipSpaces(u),u>=d)))){h=f===61?1:2;break}if(!(e.sCount[_]<0)){for(r=!1,o=0,a=E.length;o<a;o++)if(E[o](e,_,i,!0)){r=!0;break}if(r)break}}return h?(s=e.getLines(n,_,e.blkIndent,!1).trim(),e.line=_+1,l=e.push("heading_open","h"+String(h),1),l.markup=String.fromCharCode(f),l.map=[n,e.line],l=e.push("inline","",0),l.content=s,l.map=[n,e.line-1],l.children=[],l=e.push("heading_close","h"+String(h),-1),l.markup=String.fromCharCode(f),e.parentType=m,!0):!1},hge=function(e,n,i){var s,r,o,a,l,u,d=n+1,h=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<i&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(r=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,i,!0)){r=!0;break}if(r)break}return s=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,l=e.push("paragraph_open","p",1),l.map=[n,e.line],l=e.push("inline","",0),l.content=s,l.map=[n,e.line],l.children=[],l=e.push("paragraph_close","p",-1),e.parentType=u,!0},nN=rE,Qu=Bt.isSpace;function hs(t,e,n,i){var s,r,o,a,l,u,d,h;for(this.src=t,this.md=e,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",r=this.src,h=!1,o=a=u=d=0,l=r.length;a<l;a++){if(s=r.charCodeAt(a),!h)if(Qu(s)){u++,s===9?d+=4-d%4:d++;continue}else h=!0;(s===10||a===l-1)&&(s!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),h=!1,u=0,d=0,o=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}hs.prototype.push=function(t,e,n){var i=new nN(t,e,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i};hs.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};hs.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};hs.prototype.skipSpaces=function(e){for(var n,i=this.src.length;e<i&&(n=this.src.charCodeAt(e),!!Qu(n));e++);return e};hs.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Qu(this.src.charCodeAt(--e)))return e+1;return e};hs.prototype.skipChars=function(e,n){for(var i=this.src.length;e<i&&this.src.charCodeAt(e)===n;e++);return e};hs.prototype.skipCharsBack=function(e,n,i){if(e<=i)return e;for(;e>i;)if(n!==this.src.charCodeAt(--e))return e+1;return e};hs.prototype.getLines=function(e,n,i,s){var r,o,a,l,u,d,h,f=e;if(e>=n)return"";for(d=new Array(n-e),r=0;f<n;f++,r++){for(o=0,h=l=this.bMarks[f],f+1<n||s?u=this.eMarks[f]+1:u=this.eMarks[f];l<u&&o<i;){if(a=this.src.charCodeAt(l),Qu(a))a===9?o+=4-(o+this.bsCount[f])%4:o++;else if(l-h<this.tShift[f])o++;else break;l++}o>i?d[r]=new Array(o-i+1).join(" ")+this.src.slice(l,u):d[r]=this.src.slice(l,u)}return d.join("")};hs.prototype.Token=nN;var fge=hs,mge=sE,Lc=[["table",Bme,["paragraph","reference"]],["code",Gme],["fence",Vme,["paragraph","reference","blockquote","list"]],["blockquote",Hme,["paragraph","reference","blockquote","list"]],["hr",Yme,["paragraph","reference","blockquote","list"]],["list",Wme,["paragraph","reference","blockquote"]],["reference",jme],["html_block",uge,["paragraph","reference","blockquote"]],["heading",pge,["paragraph","reference","blockquote"]],["lheading",_ge],["paragraph",hge]];function Xu(){this.ruler=new mge;for(var t=0;t<Lc.length;t++)this.ruler.push(Lc[t][0],Lc[t][1],{alt:(Lc[t][2]||[]).slice()})}Xu.prototype.tokenize=function(t,e,n){for(var i,s,r,o=this.ruler.getRules(""),a=o.length,l=e,u=!1,d=t.md.options.maxNesting;l<n&&(t.line=l=t.skipEmptyLines(l),!(l>=n||t.sCount[l]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(r=t.line,s=0;s<a;s++)if(i=o[s](t,l,n,!1),i){if(r>=t.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),l=t.line,l<n&&t.isEmpty(l)&&(u=!0,l++,t.line=l)}};Xu.prototype.parse=function(t,e,n,i){var s;t&&(s=new this.State(t,e,n,i),this.tokenize(s,s.line,s.lineMax))};Xu.prototype.State=fge;var gge=Xu;function bge(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var Ege=function(e,n){for(var i=e.pos;i<e.posMax&&!bge(e.src.charCodeAt(i));)i++;return i===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,i)),e.pos=i,!0)},yge=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,vge=function(e,n){var i,s,r,o,a,l,u,d;return!e.md.options.linkify||e.linkLevel>0||(i=e.pos,s=e.posMax,i+3>s)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(r=e.pending.match(yge),!r)||(o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(i-o.length)),!a)||(l=a.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),u=e.md.normalizeLink(l),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-o.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],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-o.length,!0)},Sge=Bt.isSpace,Tge=function(e,n){var i,s,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(i=e.pending.length-1,s=e.posMax,!n)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(r=i-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(o++;o<s&&Sge(e.src.charCodeAt(o));)o++;return e.pos=o,!0},xge=Bt.isSpace,aE=[];for(var rS=0;rS<256;rS++)aE.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){aE[t.charCodeAt(0)]=1});var Cge=function(e,n){var i,s,r,o,a,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=u))return!1;if(i=e.src.charCodeAt(l),i===10){for(n||e.push("hardbreak","br",0),l++;l<u&&(i=e.src.charCodeAt(l),!!xge(i));)l++;return e.pos=l,!0}return o=e.src[l],i>=55296&&i<=56319&&l+1<u&&(s=e.src.charCodeAt(l+1),s>=56320&&s<=57343&&(o+=e.src[l+1],l++)),r="\\"+o,n||(a=e.push("text_special","",0),i<256&&aE[i]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=l+1,!0},wge=function(e,n){var i,s,r,o,a,l,u,d,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(i=h,h++,s=e.posMax;h<s&&e.src.charCodeAt(h)===96;)h++;if(r=e.src.slice(i,h),u=r.length,e.backticksScanned&&(e.backticks[u]||0)<=i)return n||(e.pending+=r),e.pos+=u,!0;for(l=h;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<s&&e.src.charCodeAt(l)===96;)l++;if(d=l-a,d===u)return n||(o=e.push("code_inline","code",0),o.markup=r,o.content=e.src.slice(h,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[d]=a}return e.backticksScanned=!0,n||(e.pending+=r),e.pos+=u,!0},Zu={};Zu.tokenize=function(e,n){var i,s,r,o,a,l=e.pos,u=e.src.charCodeAt(l);if(n||u!==126||(s=e.scanDelims(e.pos,!0),o=s.length,a=String.fromCharCode(u),o<2))return!1;for(o%2&&(r=e.push("text","",0),r.content=a,o--),i=0;i<o;i+=2)r=e.push("text","",0),r.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function oS(t,e){var n,i,s,r,o,a=[],l=e.length;for(n=0;n<l;n++)s=e[n],s.marker===126&&s.end!==-1&&(r=e[s.end],o=t.tokens[s.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=t.tokens[r.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="",t.tokens[r.token-1].type==="text"&&t.tokens[r.token-1].content==="~"&&a.push(r.token-1));for(;a.length;){for(n=a.pop(),i=n+1;i<t.tokens.length&&t.tokens[i].type==="s_close";)i++;i--,n!==i&&(o=t.tokens[i],t.tokens[i]=t.tokens[n],t.tokens[n]=o)}}Zu.postProcess=function(e){var n,i=e.tokens_meta,s=e.tokens_meta.length;for(oS(e,e.delimiters),n=0;n<s;n++)i[n]&&i[n].delimiters&&oS(e,i[n].delimiters)};var Ju={};Ju.tokenize=function(e,n){var i,s,r,o=e.pos,a=e.src.charCodeAt(o);if(n||a!==95&&a!==42)return!1;for(s=e.scanDelims(e.pos,a===42),i=0;i<s.length;i++)r=e.push("text","",0),r.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function aS(t,e){var n,i,s,r,o,a,l=e.length;for(n=l-1;n>=0;n--)i=e[n],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(s=e[i.end],a=n>0&&e[n-1].end===i.end+1&&e[n-1].marker===i.marker&&e[n-1].token===i.token-1&&e[i.end+1].token===s.token+1,o=String.fromCharCode(i.marker),r=t.tokens[i.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=t.tokens[s.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(t.tokens[e[n-1].token].content="",t.tokens[e[i.end+1].token].content="",n--))}Ju.postProcess=function(e){var n,i=e.tokens_meta,s=e.tokens_meta.length;for(aS(e,e.delimiters),n=0;n<s;n++)i[n]&&i[n].delimiters&&aS(e,i[n].delimiters)};var Rge=Bt.normalizeReference,Hp=Bt.isSpace,Age=function(e,n){var i,s,r,o,a,l,u,d,h,f="",_="",m=e.pos,E=e.posMax,b=e.pos,g=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,o=e.md.helpers.parseLinkLabel(e,e.pos,!0),o<0))return!1;if(l=o+1,l<E&&e.src.charCodeAt(l)===40){for(g=!1,l++;l<E&&(s=e.src.charCodeAt(l),!(!Hp(s)&&s!==10));l++);if(l>=E)return!1;if(b=l,u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),u.ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",b=l;l<E&&(s=e.src.charCodeAt(l),!(!Hp(s)&&s!==10));l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<E&&b!==l&&u.ok)for(_=u.str,l=u.pos;l<E&&(s=e.src.charCodeAt(l),!(!Hp(s)&&s!==10));l++);}(l>=E||e.src.charCodeAt(l)!==41)&&(g=!0),l++}if(g){if(typeof e.env.references>"u")return!1;if(l<E&&e.src.charCodeAt(l)===91?(b=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?r=e.src.slice(b,l++):l=o+1):l=o+1,r||(r=e.src.slice(a,o)),d=e.env.references[Rge(r)],!d)return e.pos=m,!1;f=d.href,_=d.title}return n||(e.pos=a,e.posMax=o,h=e.push("link_open","a",1),h.attrs=i=[["href",f]],_&&i.push(["title",_]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=l,e.posMax=E,!0},Nge=Bt.normalizeReference,qp=Bt.isSpace,Oge=function(e,n){var i,s,r,o,a,l,u,d,h,f,_,m,E,b="",g=e.pos,y=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(u=a+1,u<y&&e.src.charCodeAt(u)===40){for(u++;u<y&&(s=e.src.charCodeAt(u),!(!qp(s)&&s!==10));u++);if(u>=y)return!1;for(E=u,h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),h.ok&&(b=e.md.normalizeLink(h.str),e.md.validateLink(b)?u=h.pos:b=""),E=u;u<y&&(s=e.src.charCodeAt(u),!(!qp(s)&&s!==10));u++);if(h=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<y&&E!==u&&h.ok)for(f=h.str,u=h.pos;u<y&&(s=e.src.charCodeAt(u),!(!qp(s)&&s!==10));u++);else f="";if(u>=y||e.src.charCodeAt(u)!==41)return e.pos=g,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<y&&e.src.charCodeAt(u)===91?(E=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(E,u++):u=a+1):u=a+1,o||(o=e.src.slice(l,a)),d=e.env.references[Nge(o)],!d)return e.pos=g,!1;b=d.href,f=d.title}return n||(r=e.src.slice(l,a),e.md.inline.parse(r,e.md,e.env,m=[]),_=e.push("image","img",0),_.attrs=i=[["src",b],["alt",""]],_.children=m,_.content=r,f&&i.push(["title",f])),e.pos=u,e.posMax=y,!0},Ige=/^([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])?)*)$/,Mge=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Dge=function(e,n){var i,s,r,o,a,l,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++u>=l||(o=e.src.charCodeAt(u),o===60))return!1;if(o===62)break}return i=e.src.slice(a+1,u),Mge.test(i)?(s=e.md.normalizeLink(i),e.md.validateLink(s)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):Ige.test(i)?(s=e.md.normalizeLink("mailto:"+i),e.md.validateLink(s)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):!1},kge=ju.HTML_TAG_RE;function Lge(t){return/^<a[>\s]/i.test(t)}function Pge(t){return/^<\/a\s*>/i.test(t)}function Uge(t){var e=t|32;return e>=97&&e<=122}var Fge=function(e,n){var i,s,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(i=e.src.charCodeAt(a+1),i!==33&&i!==63&&i!==47&&!Uge(i))||(s=e.src.slice(a).match(kge),!s)?!1:(n||(o=e.push("html_inline","",0),o.content=s[0],Lge(o.content)&&e.linkLevel++,Pge(o.content)&&e.linkLevel--),e.pos+=s[0].length,!0)},lS=WA,Bge=Bt.has,Gge=Bt.isValidEntityCode,cS=Bt.fromCodePoint,Vge=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,zge=/^&([a-z][a-z0-9]{1,31});/i,Hge=function(e,n){var i,s,r,o,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(i=e.src.charCodeAt(a+1),i===35){if(r=e.src.slice(a).match(Vge),r)return n||(s=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=Gge(s)?cS(s):cS(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(zge),r&&Bge(lS,r[1]))return n||(o=e.push("text_special","",0),o.content=lS[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function dS(t){var e,n,i,s,r,o,a,l,u={},d=t.length;if(d){var h=0,f=-2,_=[];for(e=0;e<d;e++)if(i=t[e],_.push(0),(t[h].marker!==i.marker||f!==i.token-1)&&(h=e),f=i.token,i.length=i.length||0,!!i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),r=u[i.marker][(i.open?3:0)+i.length%3],n=h-_[h]-1,o=n;n>r;n-=_[n]+1)if(s=t[n],s.marker===i.marker&&s.open&&s.end<0&&(a=!1,(s.close||i.open)&&(s.length+i.length)%3===0&&(s.length%3!==0||i.length%3!==0)&&(a=!0),!a)){l=n>0&&!t[n-1].open?_[n-1]+1:0,_[e]=e-n+l,_[n]=l,i.open=!1,s.end=e,s.close=!1,o=-1,f=-2;break}o!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}var qge=function(e){var n,i=e.tokens_meta,s=e.tokens_meta.length;for(dS(e.delimiters),n=0;n<s;n++)i[n]&&i[n].delimiters&&dS(i[n].delimiters)},Yge=function(e){var n,i,s=0,r=e.tokens,o=e.tokens.length;for(n=i=0;n<o;n++)r[n].nesting<0&&s--,r[n].level=s,r[n].nesting>0&&s++,r[n].type==="text"&&n+1<o&&r[n+1].type==="text"?r[n+1].content=r[n].content+r[n+1].content:(n!==i&&(r[i]=r[n]),i++);n!==i&&(r.length=i)},lE=rE,uS=Bt.isWhiteSpace,pS=Bt.isPunctChar,_S=Bt.isMdAsciiPunct;function fc(t,e,n,i){this.src=t,this.env=n,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}fc.prototype.pushPending=function(){var t=new lE("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};fc.prototype.push=function(t,e,n){this.pending&&this.pushPending();var i=new lE(t,e,n),s=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(s),i};fc.prototype.scanDelims=function(t,e){var n=t,i,s,r,o,a,l,u,d,h,f=!0,_=!0,m=this.posMax,E=this.src.charCodeAt(t);for(i=t>0?this.src.charCodeAt(t-1):32;n<m&&this.src.charCodeAt(n)===E;)n++;return r=n-t,s=n<m?this.src.charCodeAt(n):32,u=_S(i)||pS(String.fromCharCode(i)),h=_S(s)||pS(String.fromCharCode(s)),l=uS(i),d=uS(s),d?f=!1:h&&(l||u||(f=!1)),l?_=!1:u&&(d||h||(_=!1)),e?(o=f,a=_):(o=f&&(!_||u),a=_&&(!f||h)),{can_open:o,can_close:a,length:r}};fc.prototype.Token=lE;var $ge=fc,hS=sE,Yp=[["text",Ege],["linkify",vge],["newline",Tge],["escape",Cge],["backticks",wge],["strikethrough",Zu.tokenize],["emphasis",Ju.tokenize],["link",Age],["image",Oge],["autolink",Dge],["html_inline",Fge],["entity",Hge]],$p=[["balance_pairs",qge],["strikethrough",Zu.postProcess],["emphasis",Ju.postProcess],["fragments_join",Yge]];function mc(){var t;for(this.ruler=new hS,t=0;t<Yp.length;t++)this.ruler.push(Yp[t][0],Yp[t][1]);for(this.ruler2=new hS,t=0;t<$p.length;t++)this.ruler2.push($p[t][0],$p[t][1])}mc.prototype.skipToken=function(t){var e,n,i=t.pos,s=this.ruler.getRules(""),r=s.length,o=t.md.options.maxNesting,a=t.cache;if(typeof a[i]<"u"){t.pos=a[i];return}if(t.level<o){for(n=0;n<r;n++)if(t.level++,e=s[n](t,!0),t.level--,e){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,a[i]=t.pos};mc.prototype.tokenize=function(t){for(var e,n,i,s=this.ruler.getRules(""),r=s.length,o=t.posMax,a=t.md.options.maxNesting;t.pos<o;){if(i=t.pos,t.level<a){for(n=0;n<r;n++)if(e=s[n](t,!1),e){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};mc.prototype.parse=function(t,e,n,i){var s,r,o,a=new this.State(t,e,n,i);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,s=0;s<o;s++)r[s](a)};mc.prototype.State=$ge;var Wge=mc,Wp,fS;function Kge(){return fS||(fS=1,Wp=function(t){var e={};t=t||{},e.src_Any=KA().source,e.src_Cc=jA().source,e.src_Z=QA().source,e.src_P=iE.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",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}),Wp}function Vg(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(i){t[i]=n[i]})}),t}function ep(t){return Object.prototype.toString.call(t)}function jge(t){return ep(t)==="[object String]"}function Qge(t){return ep(t)==="[object Object]"}function Xge(t){return ep(t)==="[object RegExp]"}function mS(t){return ep(t)==="[object Function]"}function Zge(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var iN={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Jge(t){return Object.keys(t||{}).reduce(function(e,n){return e||iN.hasOwnProperty(n)},!1)}var ebe={"http:":{validate:function(t,e,n){var i=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(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var i=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(i)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var i=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(i)?i.match(n.re.mailto)[0].length:0}}},tbe="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]",nbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ibe(t){t.__index__=-1,t.__text_cache__=""}function sbe(t){return function(e,n){var i=e.slice(n);return t.test(i)?i.match(t)[0].length:0}}function gS(){return function(t,e){e.normalize(t)}}function eu(t){var e=t.re=Kge()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(tbe),n.push(e.src_xn),e.src_tlds=n.join("|");function i(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var s=[];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 u={validate:null,link:null};if(t.__compiled__[a]=u,Qge(l)){Xge(l.validate)?u.validate=sbe(l.validate):mS(l.validate)?u.validate=l.validate:r(a,l),mS(l.normalize)?u.normalize=l.normalize:l.normalize?r(a,l):u.normalize=gS();return}if(jge(l)){s.push(a);return}r(a,l)}}),s.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:gS()};var o=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(Zge).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","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"),ibe(t)}function rbe(t,e){var n=t.__index__,i=t.__last_index__,s=t.__text_cache__.slice(n,i);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=i+e,this.raw=s,this.text=s,this.url=s}function zg(t,e){var n=new rbe(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function oi(t,e){if(!(this instanceof oi))return new oi(t,e);e||Jge(t)&&(e=t,t={}),this.__opts__=Vg({},iN,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Vg({},ebe,t),this.__compiled__={},this.__tlds__=nbe,this.__tlds_replaced__=!1,this.re={},eu(this)}oi.prototype.add=function(e,n){return this.__schemas__[e]=n,eu(this),this};oi.prototype.set=function(e){return this.__opts__=Vg(this.__opts__,e),this};oi.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,i,s,r,o,a,l,u,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:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=i.index+i[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(s=e.match(this.re.email_fuzzy))!==null&&(o=s.index+s[1].length,a=s.index+s[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};oi.prototype.pretest=function(e){return this.re.pretest.test(e)};oi.prototype.testSchemaAt=function(e,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,i,this):0};oi.prototype.match=function(e){var n=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(zg(this,n)),n=this.__last_index__);for(var s=n?e.slice(n):e;this.test(s);)i.push(zg(this,n)),s=s.slice(this.__last_index__),n+=this.__last_index__;return i.length?i:null};oi.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 i=this.testSchemaAt(e,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,zg(this,0)):null};oi.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,s,r){return i!==r[s-1]}).reverse(),eu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,eu(this),this)};oi.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};oi.prototype.onCompile=function(){};var obe=oi;const ra=2147483647,is=36,cE=1,Jl=26,abe=38,lbe=700,sN=72,rN=128,oN="-",cbe=/^xn--/,dbe=/[^\0-\x7F]/,ube=/[\x2E\u3002\uFF0E\uFF61]/g,pbe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Kp=is-cE,ss=Math.floor,jp=String.fromCharCode;function dr(t){throw new RangeError(pbe[t])}function _be(t,e){const n=[];let i=t.length;for(;i--;)n[i]=e(t[i]);return n}function aN(t,e){const n=t.split("@");let i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(ube,".");const s=t.split("."),r=_be(s,e).join(".");return i+r}function dE(t){const e=[];let n=0;const i=t.length;for(;n<i;){const s=t.charCodeAt(n++);if(s>=55296&&s<=56319&&n<i){const r=t.charCodeAt(n++);(r&64512)==56320?e.push(((s&1023)<<10)+(r&1023)+65536):(e.push(s),n--)}else e.push(s)}return e}const lN=t=>String.fromCodePoint(...t),hbe=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:is},bS=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},cN=function(t,e,n){let i=0;for(t=n?ss(t/lbe):t>>1,t+=ss(t/e);t>Kp*Jl>>1;i+=is)t=ss(t/Kp);return ss(i+(Kp+1)*t/(t+abe))},uE=function(t){const e=[],n=t.length;let i=0,s=rN,r=sN,o=t.lastIndexOf(oN);o<0&&(o=0);for(let a=0;a<o;++a)t.charCodeAt(a)>=128&&dr("not-basic"),e.push(t.charCodeAt(a));for(let a=o>0?o+1:0;a<n;){const l=i;for(let d=1,h=is;;h+=is){a>=n&&dr("invalid-input");const f=hbe(t.charCodeAt(a++));f>=is&&dr("invalid-input"),f>ss((ra-i)/d)&&dr("overflow"),i+=f*d;const _=h<=r?cE:h>=r+Jl?Jl:h-r;if(f<_)break;const m=is-_;d>ss(ra/m)&&dr("overflow"),d*=m}const u=e.length+1;r=cN(i-l,u,l==0),ss(i/u)>ra-s&&dr("overflow"),s+=ss(i/u),i%=u,e.splice(i++,0,s)}return String.fromCodePoint(...e)},pE=function(t){const e=[];t=dE(t);const n=t.length;let i=rN,s=0,r=sN;for(const l of t)l<128&&e.push(jp(l));const o=e.length;let a=o;for(o&&e.push(oN);a<n;){let l=ra;for(const d of t)d>=i&&d<l&&(l=d);const u=a+1;l-i>ss((ra-s)/u)&&dr("overflow"),s+=(l-i)*u,i=l;for(const d of t)if(d<i&&++s>ra&&dr("overflow"),d===i){let h=s;for(let f=is;;f+=is){const _=f<=r?cE:f>=r+Jl?Jl:f-r;if(h<_)break;const m=h-_,E=is-_;e.push(jp(bS(_+m%E,0))),h=ss(m/E)}e.push(jp(bS(h,0))),r=cN(s,u,a===o),s=0,++a}++s,++i}return e.join("")},dN=function(t){return aN(t,function(e){return cbe.test(e)?uE(e.slice(4).toLowerCase()):e})},uN=function(t){return aN(t,function(e){return dbe.test(e)?"xn--"+pE(e):e})},fbe={version:"2.1.0",ucs2:{decode:dE,encode:lN},decode:uE,encode:pE,toASCII:uN,toUnicode:dN},mbe=Object.freeze(Object.defineProperty({__proto__:null,decode:uE,default:fbe,encode:pE,toASCII:uN,toUnicode:dN,ucs2decode:dE,ucs2encode:lN},Symbol.toStringTag,{value:"Module"})),gbe=KP(mbe);var bbe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Ebe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ybe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Dl=Bt,vbe=Ku,Sbe=hme,Tbe=Fme,xbe=gge,Cbe=Wge,wbe=obe,eo=qa,pN=gbe,Rbe={default:bbe,zero:Ebe,commonmark:ybe},Abe=/^(vbscript|javascript|file|data):/,Nbe=/^data:image\/(gif|png|jpeg|webp);/;function Obe(t){var e=t.trim().toLowerCase();return Abe.test(e)?!!Nbe.test(e):!0}var _N=["http:","https:","mailto:"];function Ibe(t){var e=eo.parse(t,!0);if(e.hostname&&(!e.protocol||_N.indexOf(e.protocol)>=0))try{e.hostname=pN.toASCII(e.hostname)}catch{}return eo.encode(eo.format(e))}function Mbe(t){var e=eo.parse(t,!0);if(e.hostname&&(!e.protocol||_N.indexOf(e.protocol)>=0))try{e.hostname=pN.toUnicode(e.hostname)}catch{}return eo.decode(eo.format(e),eo.decode.defaultChars+"%")}function Ci(t,e){if(!(this instanceof Ci))return new Ci(t,e);e||Dl.isString(t)||(e=t||{},t="default"),this.inline=new Cbe,this.block=new xbe,this.core=new Tbe,this.renderer=new Sbe,this.linkify=new wbe,this.validateLink=Obe,this.normalizeLink=Ibe,this.normalizeLinkText=Mbe,this.utils=Dl,this.helpers=Dl.assign({},vbe),this.options={},this.configure(t),e&&this.set(e)}Ci.prototype.set=function(t){return Dl.assign(this.options,t),this};Ci.prototype.configure=function(t){var e=this,n;if(Dl.isString(t)&&(n=t,t=Rbe[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(i){t.components[i].rules&&e[i].ruler.enableOnly(t.components[i].rules),t.components[i].rules2&&e[i].ruler2.enableOnly(t.components[i].rules2)}),this};Ci.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(s){n=n.concat(this[s].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var i=t.filter(function(s){return n.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Ci.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(s){n=n.concat(this[s].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var i=t.filter(function(s){return n.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Ci.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Ci.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};Ci.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Ci.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Ci.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Dbe=Ci,kbe=Dbe;const Lbe=Ar(kbe),Pbe="😀",Ube="😃",Fbe="😄",Bbe="😁",Gbe="😆",Vbe="😆",zbe="😅",Hbe="🤣",qbe="😂",Ybe="🙂",$be="🙃",Wbe="😉",Kbe="😊",jbe="😇",Qbe="🥰",Xbe="😍",Zbe="🤩",Jbe="😘",eEe="😗",tEe="☺️",nEe="😚",iEe="😙",sEe="🥲",rEe="😋",oEe="😛",aEe="😜",lEe="🤪",cEe="😝",dEe="🤑",uEe="🤗",pEe="🤭",_Ee="🤫",hEe="🤔",fEe="🤐",mEe="🤨",gEe="😐",bEe="😑",EEe="😶",yEe="😏",vEe="😒",SEe="🙄",TEe="😬",xEe="🤥",CEe="😌",wEe="😔",REe="😪",AEe="🤤",NEe="😴",OEe="😷",IEe="🤒",MEe="🤕",DEe="🤢",kEe="🤮",LEe="🤧",PEe="🥵",UEe="🥶",FEe="🥴",BEe="😵",GEe="🤯",VEe="🤠",zEe="🥳",HEe="🥸",qEe="😎",YEe="🤓",$Ee="🧐",WEe="😕",KEe="😟",jEe="🙁",QEe="☹️",XEe="😮",ZEe="😯",JEe="😲",eye="😳",tye="🥺",nye="😦",iye="😧",sye="😨",rye="😰",oye="😥",aye="😢",lye="😭",cye="😱",dye="😖",uye="😣",pye="😞",_ye="😓",hye="😩",fye="😫",mye="🥱",gye="😤",bye="😡",Eye="😡",yye="😠",vye="🤬",Sye="😈",Tye="👿",xye="💀",Cye="☠️",wye="💩",Rye="💩",Aye="💩",Nye="🤡",Oye="👹",Iye="👺",Mye="👻",Dye="👽",kye="👾",Lye="🤖",Pye="😺",Uye="😸",Fye="😹",Bye="😻",Gye="😼",Vye="😽",zye="🙀",Hye="😿",qye="😾",Yye="🙈",$ye="🙉",Wye="🙊",Kye="💋",jye="💌",Qye="💘",Xye="💝",Zye="💖",Jye="💗",eve="💓",tve="💞",nve="💕",ive="💟",sve="❣️",rve="💔",ove="❤️",ave="🧡",lve="💛",cve="💚",dve="💙",uve="💜",pve="🤎",_ve="🖤",hve="🤍",fve="💢",mve="💥",gve="💥",bve="💫",Eve="💦",yve="💨",vve="🕳️",Sve="💣",Tve="💬",xve="👁️🗨️",Cve="🗨️",wve="🗯️",Rve="💭",Ave="💤",Nve="👋",Ove="🤚",Ive="🖐️",Mve="✋",Dve="✋",kve="🖖",Lve="👌",Pve="🤌",Uve="🤏",Fve="✌️",Bve="🤞",Gve="🤟",Vve="🤘",zve="🤙",Hve="👈",qve="👉",Yve="👆",$ve="🖕",Wve="🖕",Kve="👇",jve="☝️",Qve="👍",Xve="👎",Zve="✊",Jve="✊",eSe="👊",tSe="👊",nSe="👊",iSe="🤛",sSe="🤜",rSe="👏",oSe="🙌",aSe="👐",lSe="🤲",cSe="🤝",dSe="🙏",uSe="✍️",pSe="💅",_Se="🤳",hSe="💪",fSe="🦾",mSe="🦿",gSe="🦵",bSe="🦶",ESe="👂",ySe="🦻",vSe="👃",SSe="🧠",TSe="🫀",xSe="🫁",CSe="🦷",wSe="🦴",RSe="👀",ASe="👁️",NSe="👅",OSe="👄",ISe="👶",MSe="🧒",DSe="👦",kSe="👧",LSe="🧑",PSe="👱",USe="👨",FSe="🧔",BSe="👨🦰",GSe="👨🦱",VSe="👨🦳",zSe="👨🦲",HSe="👩",qSe="👩🦰",YSe="🧑🦰",$Se="👩🦱",WSe="🧑🦱",KSe="👩🦳",jSe="🧑🦳",QSe="👩🦲",XSe="🧑🦲",ZSe="👱♀️",JSe="👱♀️",e0e="👱♂️",t0e="🧓",n0e="👴",i0e="👵",s0e="🙍",r0e="🙍♂️",o0e="🙍♀️",a0e="🙎",l0e="🙎♂️",c0e="🙎♀️",d0e="🙅",u0e="🙅♂️",p0e="🙅♂️",_0e="🙅♀️",h0e="🙅♀️",f0e="🙆",m0e="🙆♂️",g0e="🙆♀️",b0e="💁",E0e="💁",y0e="💁♂️",v0e="💁♂️",S0e="💁♀️",T0e="💁♀️",x0e="🙋",C0e="🙋♂️",w0e="🙋♀️",R0e="🧏",A0e="🧏♂️",N0e="🧏♀️",O0e="🙇",I0e="🙇♂️",M0e="🙇♀️",D0e="🤦",k0e="🤦♂️",L0e="🤦♀️",P0e="🤷",U0e="🤷♂️",F0e="🤷♀️",B0e="🧑⚕️",G0e="👨⚕️",V0e="👩⚕️",z0e="🧑🎓",H0e="👨🎓",q0e="👩🎓",Y0e="🧑🏫",$0e="👨🏫",W0e="👩🏫",K0e="🧑⚖️",j0e="👨⚖️",Q0e="👩⚖️",X0e="🧑🌾",Z0e="👨🌾",J0e="👩🌾",eTe="🧑🍳",tTe="👨🍳",nTe="👩🍳",iTe="🧑🔧",sTe="👨🔧",rTe="👩🔧",oTe="🧑🏭",aTe="👨🏭",lTe="👩🏭",cTe="🧑💼",dTe="👨💼",uTe="👩💼",pTe="🧑🔬",_Te="👨🔬",hTe="👩🔬",fTe="🧑💻",mTe="👨💻",gTe="👩💻",bTe="🧑🎤",ETe="👨🎤",yTe="👩🎤",vTe="🧑🎨",STe="👨🎨",TTe="👩🎨",xTe="🧑✈️",CTe="👨✈️",wTe="👩✈️",RTe="🧑🚀",ATe="👨🚀",NTe="👩🚀",OTe="🧑🚒",ITe="👨🚒",MTe="👩🚒",DTe="👮",kTe="👮",LTe="👮♂️",PTe="👮♀️",UTe="🕵️",FTe="🕵️♂️",BTe="🕵️♀️",GTe="💂",VTe="💂♂️",zTe="💂♀️",HTe="🥷",qTe="👷",YTe="👷♂️",$Te="👷♀️",WTe="🤴",KTe="👸",jTe="👳",QTe="👳♂️",XTe="👳♀️",ZTe="👲",JTe="🧕",exe="🤵",txe="🤵♂️",nxe="🤵♀️",ixe="👰",sxe="👰♂️",rxe="👰♀️",oxe="👰♀️",axe="🤰",lxe="🤱",cxe="👩🍼",dxe="👨🍼",uxe="🧑🍼",pxe="👼",_xe="🎅",hxe="🤶",fxe="🧑🎄",mxe="🦸",gxe="🦸♂️",bxe="🦸♀️",Exe="🦹",yxe="🦹♂️",vxe="🦹♀️",Sxe="🧙",Txe="🧙♂️",xxe="🧙♀️",Cxe="🧚",wxe="🧚♂️",Rxe="🧚♀️",Axe="🧛",Nxe="🧛♂️",Oxe="🧛♀️",Ixe="🧜",Mxe="🧜♂️",Dxe="🧜♀️",kxe="🧝",Lxe="🧝♂️",Pxe="🧝♀️",Uxe="🧞",Fxe="🧞♂️",Bxe="🧞♀️",Gxe="🧟",Vxe="🧟♂️",zxe="🧟♀️",Hxe="💆",qxe="💆♂️",Yxe="💆♀️",$xe="💇",Wxe="💇♂️",Kxe="💇♀️",jxe="🚶",Qxe="🚶♂️",Xxe="🚶♀️",Zxe="🧍",Jxe="🧍♂️",eCe="🧍♀️",tCe="🧎",nCe="🧎♂️",iCe="🧎♀️",sCe="🧑🦯",rCe="👨🦯",oCe="👩🦯",aCe="🧑🦼",lCe="👨🦼",cCe="👩🦼",dCe="🧑🦽",uCe="👨🦽",pCe="👩🦽",_Ce="🏃",hCe="🏃",fCe="🏃♂️",mCe="🏃♀️",gCe="💃",bCe="💃",ECe="🕺",yCe="🕴️",vCe="👯",SCe="👯♂️",TCe="👯♀️",xCe="🧖",CCe="🧖♂️",wCe="🧖♀️",RCe="🧗",ACe="🧗♂️",NCe="🧗♀️",OCe="🤺",ICe="🏇",MCe="⛷️",DCe="🏂",kCe="🏌️",LCe="🏌️♂️",PCe="🏌️♀️",UCe="🏄",FCe="🏄♂️",BCe="🏄♀️",GCe="🚣",VCe="🚣♂️",zCe="🚣♀️",HCe="🏊",qCe="🏊♂️",YCe="🏊♀️",$Ce="⛹️",WCe="⛹️♂️",KCe="⛹️♂️",jCe="⛹️♀️",QCe="⛹️♀️",XCe="🏋️",ZCe="🏋️♂️",JCe="🏋️♀️",e1e="🚴",t1e="🚴♂️",n1e="🚴♀️",i1e="🚵",s1e="🚵♂️",r1e="🚵♀️",o1e="🤸",a1e="🤸♂️",l1e="🤸♀️",c1e="🤼",d1e="🤼♂️",u1e="🤼♀️",p1e="🤽",_1e="🤽♂️",h1e="🤽♀️",f1e="🤾",m1e="🤾♂️",g1e="🤾♀️",b1e="🤹",E1e="🤹♂️",y1e="🤹♀️",v1e="🧘",S1e="🧘♂️",T1e="🧘♀️",x1e="🛀",C1e="🛌",w1e="🧑🤝🧑",R1e="👭",A1e="👫",N1e="👬",O1e="💏",I1e="👩❤️💋👨",M1e="👨❤️💋👨",D1e="👩❤️💋👩",k1e="💑",L1e="👩❤️👨",P1e="👨❤️👨",U1e="👩❤️👩",F1e="👪",B1e="👨👩👦",G1e="👨👩👧",V1e="👨👩👧👦",z1e="👨👩👦👦",H1e="👨👩👧👧",q1e="👨👨👦",Y1e="👨👨👧",$1e="👨👨👧👦",W1e="👨👨👦👦",K1e="👨👨👧👧",j1e="👩👩👦",Q1e="👩👩👧",X1e="👩👩👧👦",Z1e="👩👩👦👦",J1e="👩👩👧👧",ewe="👨👦",twe="👨👦👦",nwe="👨👧",iwe="👨👧👦",swe="👨👧👧",rwe="👩👦",owe="👩👦👦",awe="👩👧",lwe="👩👧👦",cwe="👩👧👧",dwe="🗣️",uwe="👤",pwe="👥",_we="🫂",hwe="👣",fwe="🐵",mwe="🐒",gwe="🦍",bwe="🦧",Ewe="🐶",ywe="🐕",vwe="🦮",Swe="🐕🦺",Twe="🐩",xwe="🐺",Cwe="🦊",wwe="🦝",Rwe="🐱",Awe="🐈",Nwe="🐈⬛",Owe="🦁",Iwe="🐯",Mwe="🐅",Dwe="🐆",kwe="🐴",Lwe="🐎",Pwe="🦄",Uwe="🦓",Fwe="🦌",Bwe="🦬",Gwe="🐮",Vwe="🐂",zwe="🐃",Hwe="🐄",qwe="🐷",Ywe="🐖",$we="🐗",Wwe="🐽",Kwe="🐏",jwe="🐑",Qwe="🐐",Xwe="🐪",Zwe="🐫",Jwe="🦙",eRe="🦒",tRe="🐘",nRe="🦣",iRe="🦏",sRe="🦛",rRe="🐭",oRe="🐁",aRe="🐀",lRe="🐹",cRe="🐰",dRe="🐇",uRe="🐿️",pRe="🦫",_Re="🦔",hRe="🦇",fRe="🐻",mRe="🐻❄️",gRe="🐨",bRe="🐼",ERe="🦥",yRe="🦦",vRe="🦨",SRe="🦘",TRe="🦡",xRe="🐾",CRe="🐾",wRe="🦃",RRe="🐔",ARe="🐓",NRe="🐣",ORe="🐤",IRe="🐥",MRe="🐦",DRe="🐧",kRe="🕊️",LRe="🦅",PRe="🦆",URe="🦢",FRe="🦉",BRe="🦤",GRe="🪶",VRe="🦩",zRe="🦚",HRe="🦜",qRe="🐸",YRe="🐊",$Re="🐢",WRe="🦎",KRe="🐍",jRe="🐲",QRe="🐉",XRe="🦕",ZRe="🐳",JRe="🐋",eAe="🐬",tAe="🐬",nAe="🦭",iAe="🐟",sAe="🐠",rAe="🐡",oAe="🦈",aAe="🐙",lAe="🐚",cAe="🐌",dAe="🦋",uAe="🐛",pAe="🐜",_Ae="🐝",hAe="🐝",fAe="🪲",mAe="🐞",gAe="🦗",bAe="🪳",EAe="🕷️",yAe="🕸️",vAe="🦂",SAe="🦟",TAe="🪰",xAe="🪱",CAe="🦠",wAe="💐",RAe="🌸",AAe="💮",NAe="🏵️",OAe="🌹",IAe="🥀",MAe="🌺",DAe="🌻",kAe="🌼",LAe="🌷",PAe="🌱",UAe="🪴",FAe="🌲",BAe="🌳",GAe="🌴",VAe="🌵",zAe="🌾",HAe="🌿",qAe="☘️",YAe="🍀",$Ae="🍁",WAe="🍂",KAe="🍃",jAe="🍇",QAe="🍈",XAe="🍉",ZAe="🍊",JAe="🍊",eNe="🍊",tNe="🍋",nNe="🍌",iNe="🍍",sNe="🥭",rNe="🍎",oNe="🍏",aNe="🍐",lNe="🍑",cNe="🍒",dNe="🍓",uNe="🫐",pNe="🥝",_Ne="🍅",hNe="🫒",fNe="🥥",mNe="🥑",gNe="🍆",bNe="🥔",ENe="🥕",yNe="🌽",vNe="🌶️",SNe="🫑",TNe="🥒",xNe="🥬",CNe="🥦",wNe="🧄",RNe="🧅",ANe="🍄",NNe="🥜",ONe="🌰",INe="🍞",MNe="🥐",DNe="🥖",kNe="🫓",LNe="🥨",PNe="🥯",UNe="🥞",FNe="🧇",BNe="🧀",GNe="🍖",VNe="🍗",zNe="🥩",HNe="🥓",qNe="🍔",YNe="🍟",$Ne="🍕",WNe="🌭",KNe="🥪",jNe="🌮",QNe="🌯",XNe="🫔",ZNe="🥙",JNe="🧆",eOe="🥚",tOe="🍳",nOe="🥘",iOe="🍲",sOe="🫕",rOe="🥣",oOe="🥗",aOe="🍿",lOe="🧈",cOe="🧂",dOe="🥫",uOe="🍱",pOe="🍘",_Oe="🍙",hOe="🍚",fOe="🍛",mOe="🍜",gOe="🍝",bOe="🍠",EOe="🍢",yOe="🍣",vOe="🍤",SOe="🍥",TOe="🥮",xOe="🍡",COe="🥟",wOe="🥠",ROe="🥡",AOe="🦀",NOe="🦞",OOe="🦐",IOe="🦑",MOe="🦪",DOe="🍦",kOe="🍧",LOe="🍨",POe="🍩",UOe="🍪",FOe="🎂",BOe="🍰",GOe="🧁",VOe="🥧",zOe="🍫",HOe="🍬",qOe="🍭",YOe="🍮",$Oe="🍯",WOe="🍼",KOe="🥛",jOe="☕",QOe="🫖",XOe="🍵",ZOe="🍶",JOe="🍾",eIe="🍷",tIe="🍸",nIe="🍹",iIe="🍺",sIe="🍻",rIe="🥂",oIe="🥃",aIe="🥤",lIe="🧋",cIe="🧃",dIe="🧉",uIe="🧊",pIe="🥢",_Ie="🍽️",hIe="🍴",fIe="🥄",mIe="🔪",gIe="🔪",bIe="🏺",EIe="🌍",yIe="🌎",vIe="🌏",SIe="🌐",TIe="🗺️",xIe="🗾",CIe="🧭",wIe="🏔️",RIe="⛰️",AIe="🌋",NIe="🗻",OIe="🏕️",IIe="🏖️",MIe="🏜️",DIe="🏝️",kIe="🏞️",LIe="🏟️",PIe="🏛️",UIe="🏗️",FIe="🧱",BIe="🪨",GIe="🪵",VIe="🛖",zIe="🏘️",HIe="🏚️",qIe="🏠",YIe="🏡",$Ie="🏢",WIe="🏣",KIe="🏤",jIe="🏥",QIe="🏦",XIe="🏨",ZIe="🏩",JIe="🏪",eMe="🏫",tMe="🏬",nMe="🏭",iMe="🏯",sMe="🏰",rMe="💒",oMe="🗼",aMe="🗽",lMe="⛪",cMe="🕌",dMe="🛕",uMe="🕍",pMe="⛩️",_Me="🕋",hMe="⛲",fMe="⛺",mMe="🌁",gMe="🌃",bMe="🏙️",EMe="🌄",yMe="🌅",vMe="🌆",SMe="🌇",TMe="🌉",xMe="♨️",CMe="🎠",wMe="🎡",RMe="🎢",AMe="💈",NMe="🎪",OMe="🚂",IMe="🚃",MMe="🚄",DMe="🚅",kMe="🚆",LMe="🚇",PMe="🚈",UMe="🚉",FMe="🚊",BMe="🚝",GMe="🚞",VMe="🚋",zMe="🚌",HMe="🚍",qMe="🚎",YMe="🚐",$Me="🚑",WMe="🚒",KMe="🚓",jMe="🚔",QMe="🚕",XMe="🚖",ZMe="🚗",JMe="🚗",e2e="🚘",t2e="🚙",n2e="🛻",i2e="🚚",s2e="🚛",r2e="🚜",o2e="🏎️",a2e="🏍️",l2e="🛵",c2e="🦽",d2e="🦼",u2e="🛺",p2e="🚲",_2e="🛴",h2e="🛹",f2e="🛼",m2e="🚏",g2e="🛣️",b2e="🛤️",E2e="🛢️",y2e="⛽",v2e="🚨",S2e="🚥",T2e="🚦",x2e="🛑",C2e="🚧",w2e="⚓",R2e="⛵",A2e="⛵",N2e="🛶",O2e="🚤",I2e="🛳️",M2e="⛴️",D2e="🛥️",k2e="🚢",L2e="✈️",P2e="🛩️",U2e="🛫",F2e="🛬",B2e="🪂",G2e="💺",V2e="🚁",z2e="🚟",H2e="🚠",q2e="🚡",Y2e="🛰️",$2e="🚀",W2e="🛸",K2e="🛎️",j2e="🧳",Q2e="⌛",X2e="⏳",Z2e="⌚",J2e="⏰",eDe="⏱️",tDe="⏲️",nDe="🕰️",iDe="🕛",sDe="🕧",rDe="🕐",oDe="🕜",aDe="🕑",lDe="🕝",cDe="🕒",dDe="🕞",uDe="🕓",pDe="🕟",_De="🕔",hDe="🕠",fDe="🕕",mDe="🕡",gDe="🕖",bDe="🕢",EDe="🕗",yDe="🕣",vDe="🕘",SDe="🕤",TDe="🕙",xDe="🕥",CDe="🕚",wDe="🕦",RDe="🌑",ADe="🌒",NDe="🌓",ODe="🌔",IDe="🌔",MDe="🌕",DDe="🌖",kDe="🌗",LDe="🌘",PDe="🌙",UDe="🌚",FDe="🌛",BDe="🌜",GDe="🌡️",VDe="☀️",zDe="🌝",HDe="🌞",qDe="🪐",YDe="⭐",$De="🌟",WDe="🌠",KDe="🌌",jDe="☁️",QDe="⛅",XDe="⛈️",ZDe="🌤️",JDe="🌥️",eke="🌦️",tke="🌧️",nke="🌨️",ike="🌩️",ske="🌪️",rke="🌫️",oke="🌬️",ake="🌀",lke="🌈",cke="🌂",dke="☂️",uke="☔",pke="⛱️",_ke="⚡",hke="❄️",fke="☃️",mke="⛄",gke="☄️",bke="🔥",Eke="💧",yke="🌊",vke="🎃",Ske="🎄",Tke="🎆",xke="🎇",Cke="🧨",wke="✨",Rke="🎈",Ake="🎉",Nke="🎊",Oke="🎋",Ike="🎍",Mke="🎎",Dke="🎏",kke="🎐",Lke="🎑",Pke="🧧",Uke="🎀",Fke="🎁",Bke="🎗️",Gke="🎟️",Vke="🎫",zke="🎖️",Hke="🏆",qke="🏅",Yke="⚽",$ke="⚾",Wke="🥎",Kke="🏀",jke="🏐",Qke="🏈",Xke="🏉",Zke="🎾",Jke="🥏",eLe="🎳",tLe="🏏",nLe="🏑",iLe="🏒",sLe="🥍",rLe="🏓",oLe="🏸",aLe="🥊",lLe="🥋",cLe="🥅",dLe="⛳",uLe="⛸️",pLe="🎣",_Le="🤿",hLe="🎽",fLe="🎿",mLe="🛷",gLe="🥌",bLe="🎯",ELe="🪀",yLe="🪁",vLe="🔮",SLe="🪄",TLe="🧿",xLe="🎮",CLe="🕹️",wLe="🎰",RLe="🎲",ALe="🧩",NLe="🧸",OLe="🪅",ILe="🪆",MLe="♠️",DLe="♥️",kLe="♦️",LLe="♣️",PLe="♟️",ULe="🃏",FLe="🀄",BLe="🎴",GLe="🎭",VLe="🖼️",zLe="🎨",HLe="🧵",qLe="🪡",YLe="🧶",$Le="🪢",WLe="👓",KLe="🕶️",jLe="🥽",QLe="🥼",XLe="🦺",ZLe="👔",JLe="👕",ePe="👕",tPe="👖",nPe="🧣",iPe="🧤",sPe="🧥",rPe="🧦",oPe="👗",aPe="👘",lPe="🥻",cPe="🩱",dPe="🩲",uPe="🩳",pPe="👙",_Pe="👚",hPe="👛",fPe="👜",mPe="👝",gPe="🛍️",bPe="🎒",EPe="🩴",yPe="👞",vPe="👞",SPe="👟",TPe="🥾",xPe="🥿",CPe="👠",wPe="👡",RPe="🩰",APe="👢",NPe="👑",OPe="👒",IPe="🎩",MPe="🎓",DPe="🧢",kPe="🪖",LPe="⛑️",PPe="📿",UPe="💄",FPe="💍",BPe="💎",GPe="🔇",VPe="🔈",zPe="🔉",HPe="🔊",qPe="📢",YPe="📣",$Pe="📯",WPe="🔔",KPe="🔕",jPe="🎼",QPe="🎵",XPe="🎶",ZPe="🎙️",JPe="🎚️",eUe="🎛️",tUe="🎤",nUe="🎧",iUe="📻",sUe="🎷",rUe="🪗",oUe="🎸",aUe="🎹",lUe="🎺",cUe="🎻",dUe="🪕",uUe="🥁",pUe="🪘",_Ue="📱",hUe="📲",fUe="☎️",mUe="☎️",gUe="📞",bUe="📟",EUe="📠",yUe="🔋",vUe="🔌",SUe="💻",TUe="🖥️",xUe="🖨️",CUe="⌨️",wUe="🖱️",RUe="🖲️",AUe="💽",NUe="💾",OUe="💿",IUe="📀",MUe="🧮",DUe="🎥",kUe="🎞️",LUe="📽️",PUe="🎬",UUe="📺",FUe="📷",BUe="📸",GUe="📹",VUe="📼",zUe="🔍",HUe="🔎",qUe="🕯️",YUe="💡",$Ue="🔦",WUe="🏮",KUe="🏮",jUe="🪔",QUe="📔",XUe="📕",ZUe="📖",JUe="📖",eFe="📗",tFe="📘",nFe="📙",iFe="📚",sFe="📓",rFe="📒",oFe="📃",aFe="📜",lFe="📄",cFe="📰",dFe="🗞️",uFe="📑",pFe="🔖",_Fe="🏷️",hFe="💰",fFe="🪙",mFe="💴",gFe="💵",bFe="💶",EFe="💷",yFe="💸",vFe="💳",SFe="🧾",TFe="💹",xFe="✉️",CFe="📧",wFe="📨",RFe="📩",AFe="📤",NFe="📥",OFe="📫",IFe="📪",MFe="📬",DFe="📭",kFe="📮",LFe="🗳️",PFe="✏️",UFe="✒️",FFe="🖋️",BFe="🖊️",GFe="🖌️",VFe="🖍️",zFe="📝",HFe="📝",qFe="💼",YFe="📁",$Fe="📂",WFe="🗂️",KFe="📅",jFe="📆",QFe="🗒️",XFe="🗓️",ZFe="📇",JFe="📈",e3e="📉",t3e="📊",n3e="📋",i3e="📌",s3e="📍",r3e="📎",o3e="🖇️",a3e="📏",l3e="📐",c3e="✂️",d3e="🗃️",u3e="🗄️",p3e="🗑️",_3e="🔒",h3e="🔓",f3e="🔏",m3e="🔐",g3e="🔑",b3e="🗝️",E3e="🔨",y3e="🪓",v3e="⛏️",S3e="⚒️",T3e="🛠️",x3e="🗡️",C3e="⚔️",w3e="🔫",R3e="🪃",A3e="🏹",N3e="🛡️",O3e="🪚",I3e="🔧",M3e="🪛",D3e="🔩",k3e="⚙️",L3e="🗜️",P3e="⚖️",U3e="🦯",F3e="🔗",B3e="⛓️",G3e="🪝",V3e="🧰",z3e="🧲",H3e="🪜",q3e="⚗️",Y3e="🧪",$3e="🧫",W3e="🧬",K3e="🔬",j3e="🔭",Q3e="📡",X3e="💉",Z3e="🩸",J3e="💊",eBe="🩹",tBe="🩺",nBe="🚪",iBe="🛗",sBe="🪞",rBe="🪟",oBe="🛏️",aBe="🛋️",lBe="🪑",cBe="🚽",dBe="🪠",uBe="🚿",pBe="🛁",_Be="🪤",hBe="🪒",fBe="🧴",mBe="🧷",gBe="🧹",bBe="🧺",EBe="🧻",yBe="🪣",vBe="🧼",SBe="🪥",TBe="🧽",xBe="🧯",CBe="🛒",wBe="🚬",RBe="⚰️",ABe="🪦",NBe="⚱️",OBe="🗿",IBe="🪧",MBe="🏧",DBe="🚮",kBe="🚰",LBe="♿",PBe="🚹",UBe="🚺",FBe="🚻",BBe="🚼",GBe="🚾",VBe="🛂",zBe="🛃",HBe="🛄",qBe="🛅",YBe="⚠️",$Be="🚸",WBe="⛔",KBe="🚫",jBe="🚳",QBe="🚭",XBe="🚯",ZBe="🚷",JBe="📵",e4e="🔞",t4e="☢️",n4e="☣️",i4e="⬆️",s4e="↗️",r4e="➡️",o4e="↘️",a4e="⬇️",l4e="↙️",c4e="⬅️",d4e="↖️",u4e="↕️",p4e="↔️",_4e="↩️",h4e="↪️",f4e="⤴️",m4e="⤵️",g4e="🔃",b4e="🔄",E4e="🔙",y4e="🔚",v4e="🔛",S4e="🔜",T4e="🔝",x4e="🛐",C4e="⚛️",w4e="🕉️",R4e="✡️",A4e="☸️",N4e="☯️",O4e="✝️",I4e="☦️",M4e="☪️",D4e="☮️",k4e="🕎",L4e="🔯",P4e="♈",U4e="♉",F4e="♊",B4e="♋",G4e="♌",V4e="♍",z4e="♎",H4e="♏",q4e="♐",Y4e="♑",$4e="♒",W4e="♓",K4e="⛎",j4e="🔀",Q4e="🔁",X4e="🔂",Z4e="▶️",J4e="⏩",e5e="⏭️",t5e="⏯️",n5e="◀️",i5e="⏪",s5e="⏮️",r5e="🔼",o5e="⏫",a5e="🔽",l5e="⏬",c5e="⏸️",d5e="⏹️",u5e="⏺️",p5e="⏏️",_5e="🎦",h5e="🔅",f5e="🔆",m5e="📶",g5e="📳",b5e="📴",E5e="♀️",y5e="♂️",v5e="⚧️",S5e="✖️",T5e="➕",x5e="➖",C5e="➗",w5e="♾️",R5e="‼️",A5e="⁉️",N5e="❓",O5e="❔",I5e="❕",M5e="❗",D5e="❗",k5e="〰️",L5e="💱",P5e="💲",U5e="⚕️",F5e="♻️",B5e="⚜️",G5e="🔱",V5e="📛",z5e="🔰",H5e="⭕",q5e="✅",Y5e="☑️",$5e="✔️",W5e="❌",K5e="❎",j5e="➰",Q5e="➿",X5e="〽️",Z5e="✳️",J5e="✴️",eGe="❇️",tGe="©️",nGe="®️",iGe="™️",sGe="#️⃣",rGe="*️⃣",oGe="0️⃣",aGe="1️⃣",lGe="2️⃣",cGe="3️⃣",dGe="4️⃣",uGe="5️⃣",pGe="6️⃣",_Ge="7️⃣",hGe="8️⃣",fGe="9️⃣",mGe="🔟",gGe="🔠",bGe="🔡",EGe="🔣",yGe="🔤",vGe="🅰️",SGe="🆎",TGe="🅱️",xGe="🆑",CGe="🆒",wGe="🆓",RGe="ℹ️",AGe="🆔",NGe="Ⓜ️",OGe="🆖",IGe="🅾️",MGe="🆗",DGe="🅿️",kGe="🆘",LGe="🆙",PGe="🆚",UGe="🈁",FGe="🈂️",BGe="🉐",GGe="🉑",VGe="㊗️",zGe="㊙️",HGe="🈵",qGe="🔴",YGe="🟠",$Ge="🟡",WGe="🟢",KGe="🔵",jGe="🟣",QGe="🟤",XGe="⚫",ZGe="⚪",JGe="🟥",e6e="🟧",t6e="🟨",n6e="🟩",i6e="🟦",s6e="🟪",r6e="🟫",o6e="⬛",a6e="⬜",l6e="◼️",c6e="◻️",d6e="◾",u6e="◽",p6e="▪️",_6e="▫️",h6e="🔶",f6e="🔷",m6e="🔸",g6e="🔹",b6e="🔺",E6e="🔻",y6e="💠",v6e="🔘",S6e="🔳",T6e="🔲",x6e="🏁",C6e="🚩",w6e="🎌",R6e="🏴",A6e="🏳️",N6e="🏳️🌈",O6e="🏳️⚧️",I6e="🏴☠️",M6e="🇦🇨",D6e="🇦🇩",k6e="🇦🇪",L6e="🇦🇫",P6e="🇦🇬",U6e="🇦🇮",F6e="🇦🇱",B6e="🇦🇲",G6e="🇦🇴",V6e="🇦🇶",z6e="🇦🇷",H6e="🇦🇸",q6e="🇦🇹",Y6e="🇦🇺",$6e="🇦🇼",W6e="🇦🇽",K6e="🇦🇿",j6e="🇧🇦",Q6e="🇧🇧",X6e="🇧🇩",Z6e="🇧🇪",J6e="🇧🇫",e9e="🇧🇬",t9e="🇧🇭",n9e="🇧🇮",i9e="🇧🇯",s9e="🇧🇱",r9e="🇧🇲",o9e="🇧🇳",a9e="🇧🇴",l9e="🇧🇶",c9e="🇧🇷",d9e="🇧🇸",u9e="🇧🇹",p9e="🇧🇻",_9e="🇧🇼",h9e="🇧🇾",f9e="🇧🇿",m9e="🇨🇦",g9e="🇨🇨",b9e="🇨🇩",E9e="🇨🇫",y9e="🇨🇬",v9e="🇨🇭",S9e="🇨🇮",T9e="🇨🇰",x9e="🇨🇱",C9e="🇨🇲",w9e="🇨🇳",R9e="🇨🇴",A9e="🇨🇵",N9e="🇨🇷",O9e="🇨🇺",I9e="🇨🇻",M9e="🇨🇼",D9e="🇨🇽",k9e="🇨🇾",L9e="🇨🇿",P9e="🇩🇪",U9e="🇩🇬",F9e="🇩🇯",B9e="🇩🇰",G9e="🇩🇲",V9e="🇩🇴",z9e="🇩🇿",H9e="🇪🇦",q9e="🇪🇨",Y9e="🇪🇪",$9e="🇪🇬",W9e="🇪🇭",K9e="🇪🇷",j9e="🇪🇸",Q9e="🇪🇹",X9e="🇪🇺",Z9e="🇪🇺",J9e="🇫🇮",e8e="🇫🇯",t8e="🇫🇰",n8e="🇫🇲",i8e="🇫🇴",s8e="🇫🇷",r8e="🇬🇦",o8e="🇬🇧",a8e="🇬🇧",l8e="🇬🇩",c8e="🇬🇪",d8e="🇬🇫",u8e="🇬🇬",p8e="🇬🇭",_8e="🇬🇮",h8e="🇬🇱",f8e="🇬🇲",m8e="🇬🇳",g8e="🇬🇵",b8e="🇬🇶",E8e="🇬🇷",y8e="🇬🇸",v8e="🇬🇹",S8e="🇬🇺",T8e="🇬🇼",x8e="🇬🇾",C8e="🇭🇰",w8e="🇭🇲",R8e="🇭🇳",A8e="🇭🇷",N8e="🇭🇹",O8e="🇭🇺",I8e="🇮🇨",M8e="🇮🇩",D8e="🇮🇪",k8e="🇮🇱",L8e="🇮🇲",P8e="🇮🇳",U8e="🇮🇴",F8e="🇮🇶",B8e="🇮🇷",G8e="🇮🇸",V8e="🇮🇹",z8e="🇯🇪",H8e="🇯🇲",q8e="🇯🇴",Y8e="🇯🇵",$8e="🇰🇪",W8e="🇰🇬",K8e="🇰🇭",j8e="🇰🇮",Q8e="🇰🇲",X8e="🇰🇳",Z8e="🇰🇵",J8e="🇰🇷",eVe="🇰🇼",tVe="🇰🇾",nVe="🇰🇿",iVe="🇱🇦",sVe="🇱🇧",rVe="🇱🇨",oVe="🇱🇮",aVe="🇱🇰",lVe="🇱🇷",cVe="🇱🇸",dVe="🇱🇹",uVe="🇱🇺",pVe="🇱🇻",_Ve="🇱🇾",hVe="🇲🇦",fVe="🇲🇨",mVe="🇲🇩",gVe="🇲🇪",bVe="🇲🇫",EVe="🇲🇬",yVe="🇲🇭",vVe="🇲🇰",SVe="🇲🇱",TVe="🇲🇲",xVe="🇲🇳",CVe="🇲🇴",wVe="🇲🇵",RVe="🇲🇶",AVe="🇲🇷",NVe="🇲🇸",OVe="🇲🇹",IVe="🇲🇺",MVe="🇲🇻",DVe="🇲🇼",kVe="🇲🇽",LVe="🇲🇾",PVe="🇲🇿",UVe="🇳🇦",FVe="🇳🇨",BVe="🇳🇪",GVe="🇳🇫",VVe="🇳🇬",zVe="🇳🇮",HVe="🇳🇱",qVe="🇳🇴",YVe="🇳🇵",$Ve="🇳🇷",WVe="🇳🇺",KVe="🇳🇿",jVe="🇴🇲",QVe="🇵🇦",XVe="🇵🇪",ZVe="🇵🇫",JVe="🇵🇬",eze="🇵🇭",tze="🇵🇰",nze="🇵🇱",ize="🇵🇲",sze="🇵🇳",rze="🇵🇷",oze="🇵🇸",aze="🇵🇹",lze="🇵🇼",cze="🇵🇾",dze="🇶🇦",uze="🇷🇪",pze="🇷🇴",_ze="🇷🇸",hze="🇷🇺",fze="🇷🇼",mze="🇸🇦",gze="🇸🇧",bze="🇸🇨",Eze="🇸🇩",yze="🇸🇪",vze="🇸🇬",Sze="🇸🇭",Tze="🇸🇮",xze="🇸🇯",Cze="🇸🇰",wze="🇸🇱",Rze="🇸🇲",Aze="🇸🇳",Nze="🇸🇴",Oze="🇸🇷",Ize="🇸🇸",Mze="🇸🇹",Dze="🇸🇻",kze="🇸🇽",Lze="🇸🇾",Pze="🇸🇿",Uze="🇹🇦",Fze="🇹🇨",Bze="🇹🇩",Gze="🇹🇫",Vze="🇹🇬",zze="🇹🇭",Hze="🇹🇯",qze="🇹🇰",Yze="🇹🇱",$ze="🇹🇲",Wze="🇹🇳",Kze="🇹🇴",jze="🇹🇷",Qze="🇹🇹",Xze="🇹🇻",Zze="🇹🇼",Jze="🇹🇿",eHe="🇺🇦",tHe="🇺🇬",nHe="🇺🇲",iHe="🇺🇳",sHe="🇺🇸",rHe="🇺🇾",oHe="🇺🇿",aHe="🇻🇦",lHe="🇻🇨",cHe="🇻🇪",dHe="🇻🇬",uHe="🇻🇮",pHe="🇻🇳",_He="🇻🇺",hHe="🇼🇫",fHe="🇼🇸",mHe="🇽🇰",gHe="🇾🇪",bHe="🇾🇹",EHe="🇿🇦",yHe="🇿🇲",vHe="🇿🇼",SHe="🏴",THe="🏴",xHe="🏴",CHe={100:"💯",1234:"🔢",grinning:Pbe,smiley:Ube,smile:Fbe,grin:Bbe,laughing:Gbe,satisfied:Vbe,sweat_smile:zbe,rofl:Hbe,joy:qbe,slightly_smiling_face:Ybe,upside_down_face:$be,wink:Wbe,blush:Kbe,innocent:jbe,smiling_face_with_three_hearts:Qbe,heart_eyes:Xbe,star_struck:Zbe,kissing_heart:Jbe,kissing:eEe,relaxed:tEe,kissing_closed_eyes:nEe,kissing_smiling_eyes:iEe,smiling_face_with_tear:sEe,yum:rEe,stuck_out_tongue:oEe,stuck_out_tongue_winking_eye:aEe,zany_face:lEe,stuck_out_tongue_closed_eyes:cEe,money_mouth_face:dEe,hugs:uEe,hand_over_mouth:pEe,shushing_face:_Ee,thinking:hEe,zipper_mouth_face:fEe,raised_eyebrow:mEe,neutral_face:gEe,expressionless:bEe,no_mouth:EEe,smirk:yEe,unamused:vEe,roll_eyes:SEe,grimacing:TEe,lying_face:xEe,relieved:CEe,pensive:wEe,sleepy:REe,drooling_face:AEe,sleeping:NEe,mask:OEe,face_with_thermometer:IEe,face_with_head_bandage:MEe,nauseated_face:DEe,vomiting_face:kEe,sneezing_face:LEe,hot_face:PEe,cold_face:UEe,woozy_face:FEe,dizzy_face:BEe,exploding_head:GEe,cowboy_hat_face:VEe,partying_face:zEe,disguised_face:HEe,sunglasses:qEe,nerd_face:YEe,monocle_face:$Ee,confused:WEe,worried:KEe,slightly_frowning_face:jEe,frowning_face:QEe,open_mouth:XEe,hushed:ZEe,astonished:JEe,flushed:eye,pleading_face:tye,frowning:nye,anguished:iye,fearful:sye,cold_sweat:rye,disappointed_relieved:oye,cry:aye,sob:lye,scream:cye,confounded:dye,persevere:uye,disappointed:pye,sweat:_ye,weary:hye,tired_face:fye,yawning_face:mye,triumph:gye,rage:bye,pout:Eye,angry:yye,cursing_face:vye,smiling_imp:Sye,imp:Tye,skull:xye,skull_and_crossbones:Cye,hankey:wye,poop:Rye,shit:Aye,clown_face:Nye,japanese_ogre:Oye,japanese_goblin:Iye,ghost:Mye,alien:Dye,space_invader:kye,robot:Lye,smiley_cat:Pye,smile_cat:Uye,joy_cat:Fye,heart_eyes_cat:Bye,smirk_cat:Gye,kissing_cat:Vye,scream_cat:zye,crying_cat_face:Hye,pouting_cat:qye,see_no_evil:Yye,hear_no_evil:$ye,speak_no_evil:Wye,kiss:Kye,love_letter:jye,cupid:Qye,gift_heart:Xye,sparkling_heart:Zye,heartpulse:Jye,heartbeat:eve,revolving_hearts:tve,two_hearts:nve,heart_decoration:ive,heavy_heart_exclamation:sve,broken_heart:rve,heart:ove,orange_heart:ave,yellow_heart:lve,green_heart:cve,blue_heart:dve,purple_heart:uve,brown_heart:pve,black_heart:_ve,white_heart:hve,anger:fve,boom:mve,collision:gve,dizzy:bve,sweat_drops:Eve,dash:yve,hole:vve,bomb:Sve,speech_balloon:Tve,eye_speech_bubble:xve,left_speech_bubble:Cve,right_anger_bubble:wve,thought_balloon:Rve,zzz:Ave,wave:Nve,raised_back_of_hand:Ove,raised_hand_with_fingers_splayed:Ive,hand:Mve,raised_hand:Dve,vulcan_salute:kve,ok_hand:Lve,pinched_fingers:Pve,pinching_hand:Uve,v:Fve,crossed_fingers:Bve,love_you_gesture:Gve,metal:Vve,call_me_hand:zve,point_left:Hve,point_right:qve,point_up_2:Yve,middle_finger:$ve,fu:Wve,point_down:Kve,point_up:jve,"+1":"👍",thumbsup:Qve,"-1":"👎",thumbsdown:Xve,fist_raised:Zve,fist:Jve,fist_oncoming:eSe,facepunch:tSe,punch:nSe,fist_left:iSe,fist_right:sSe,clap:rSe,raised_hands:oSe,open_hands:aSe,palms_up_together:lSe,handshake:cSe,pray:dSe,writing_hand:uSe,nail_care:pSe,selfie:_Se,muscle:hSe,mechanical_arm:fSe,mechanical_leg:mSe,leg:gSe,foot:bSe,ear:ESe,ear_with_hearing_aid:ySe,nose:vSe,brain:SSe,anatomical_heart:TSe,lungs:xSe,tooth:CSe,bone:wSe,eyes:RSe,eye:ASe,tongue:NSe,lips:OSe,baby:ISe,child:MSe,boy:DSe,girl:kSe,adult:LSe,blond_haired_person:PSe,man:USe,bearded_person:FSe,red_haired_man:BSe,curly_haired_man:GSe,white_haired_man:VSe,bald_man:zSe,woman:HSe,red_haired_woman:qSe,person_red_hair:YSe,curly_haired_woman:$Se,person_curly_hair:WSe,white_haired_woman:KSe,person_white_hair:jSe,bald_woman:QSe,person_bald:XSe,blond_haired_woman:ZSe,blonde_woman:JSe,blond_haired_man:e0e,older_adult:t0e,older_man:n0e,older_woman:i0e,frowning_person:s0e,frowning_man:r0e,frowning_woman:o0e,pouting_face:a0e,pouting_man:l0e,pouting_woman:c0e,no_good:d0e,no_good_man:u0e,ng_man:p0e,no_good_woman:_0e,ng_woman:h0e,ok_person:f0e,ok_man:m0e,ok_woman:g0e,tipping_hand_person:b0e,information_desk_person:E0e,tipping_hand_man:y0e,sassy_man:v0e,tipping_hand_woman:S0e,sassy_woman:T0e,raising_hand:x0e,raising_hand_man:C0e,raising_hand_woman:w0e,deaf_person:R0e,deaf_man:A0e,deaf_woman:N0e,bow:O0e,bowing_man:I0e,bowing_woman:M0e,facepalm:D0e,man_facepalming:k0e,woman_facepalming:L0e,shrug:P0e,man_shrugging:U0e,woman_shrugging:F0e,health_worker:B0e,man_health_worker:G0e,woman_health_worker:V0e,student:z0e,man_student:H0e,woman_student:q0e,teacher:Y0e,man_teacher:$0e,woman_teacher:W0e,judge:K0e,man_judge:j0e,woman_judge:Q0e,farmer:X0e,man_farmer:Z0e,woman_farmer:J0e,cook:eTe,man_cook:tTe,woman_cook:nTe,mechanic:iTe,man_mechanic:sTe,woman_mechanic:rTe,factory_worker:oTe,man_factory_worker:aTe,woman_factory_worker:lTe,office_worker:cTe,man_office_worker:dTe,woman_office_worker:uTe,scientist:pTe,man_scientist:_Te,woman_scientist:hTe,technologist:fTe,man_technologist:mTe,woman_technologist:gTe,singer:bTe,man_singer:ETe,woman_singer:yTe,artist:vTe,man_artist:STe,woman_artist:TTe,pilot:xTe,man_pilot:CTe,woman_pilot:wTe,astronaut:RTe,man_astronaut:ATe,woman_astronaut:NTe,firefighter:OTe,man_firefighter:ITe,woman_firefighter:MTe,police_officer:DTe,cop:kTe,policeman:LTe,policewoman:PTe,detective:UTe,male_detective:FTe,female_detective:BTe,guard:GTe,guardsman:VTe,guardswoman:zTe,ninja:HTe,construction_worker:qTe,construction_worker_man:YTe,construction_worker_woman:$Te,prince:WTe,princess:KTe,person_with_turban:jTe,man_with_turban:QTe,woman_with_turban:XTe,man_with_gua_pi_mao:ZTe,woman_with_headscarf:JTe,person_in_tuxedo:exe,man_in_tuxedo:txe,woman_in_tuxedo:nxe,person_with_veil:ixe,man_with_veil:sxe,woman_with_veil:rxe,bride_with_veil:oxe,pregnant_woman:axe,breast_feeding:lxe,woman_feeding_baby:cxe,man_feeding_baby:dxe,person_feeding_baby:uxe,angel:pxe,santa:_xe,mrs_claus:hxe,mx_claus:fxe,superhero:mxe,superhero_man:gxe,superhero_woman:bxe,supervillain:Exe,supervillain_man:yxe,supervillain_woman:vxe,mage:Sxe,mage_man:Txe,mage_woman:xxe,fairy:Cxe,fairy_man:wxe,fairy_woman:Rxe,vampire:Axe,vampire_man:Nxe,vampire_woman:Oxe,merperson:Ixe,merman:Mxe,mermaid:Dxe,elf:kxe,elf_man:Lxe,elf_woman:Pxe,genie:Uxe,genie_man:Fxe,genie_woman:Bxe,zombie:Gxe,zombie_man:Vxe,zombie_woman:zxe,massage:Hxe,massage_man:qxe,massage_woman:Yxe,haircut:$xe,haircut_man:Wxe,haircut_woman:Kxe,walking:jxe,walking_man:Qxe,walking_woman:Xxe,standing_person:Zxe,standing_man:Jxe,standing_woman:eCe,kneeling_person:tCe,kneeling_man:nCe,kneeling_woman:iCe,person_with_probing_cane:sCe,man_with_probing_cane:rCe,woman_with_probing_cane:oCe,person_in_motorized_wheelchair:aCe,man_in_motorized_wheelchair:lCe,woman_in_motorized_wheelchair:cCe,person_in_manual_wheelchair:dCe,man_in_manual_wheelchair:uCe,woman_in_manual_wheelchair:pCe,runner:_Ce,running:hCe,running_man:fCe,running_woman:mCe,woman_dancing:gCe,dancer:bCe,man_dancing:ECe,business_suit_levitating:yCe,dancers:vCe,dancing_men:SCe,dancing_women:TCe,sauna_person:xCe,sauna_man:CCe,sauna_woman:wCe,climbing:RCe,climbing_man:ACe,climbing_woman:NCe,person_fencing:OCe,horse_racing:ICe,skier:MCe,snowboarder:DCe,golfing:kCe,golfing_man:LCe,golfing_woman:PCe,surfer:UCe,surfing_man:FCe,surfing_woman:BCe,rowboat:GCe,rowing_man:VCe,rowing_woman:zCe,swimmer:HCe,swimming_man:qCe,swimming_woman:YCe,bouncing_ball_person:$Ce,bouncing_ball_man:WCe,basketball_man:KCe,bouncing_ball_woman:jCe,basketball_woman:QCe,weight_lifting:XCe,weight_lifting_man:ZCe,weight_lifting_woman:JCe,bicyclist:e1e,biking_man:t1e,biking_woman:n1e,mountain_bicyclist:i1e,mountain_biking_man:s1e,mountain_biking_woman:r1e,cartwheeling:o1e,man_cartwheeling:a1e,woman_cartwheeling:l1e,wrestling:c1e,men_wrestling:d1e,women_wrestling:u1e,water_polo:p1e,man_playing_water_polo:_1e,woman_playing_water_polo:h1e,handball_person:f1e,man_playing_handball:m1e,woman_playing_handball:g1e,juggling_person:b1e,man_juggling:E1e,woman_juggling:y1e,lotus_position:v1e,lotus_position_man:S1e,lotus_position_woman:T1e,bath:x1e,sleeping_bed:C1e,people_holding_hands:w1e,two_women_holding_hands:R1e,couple:A1e,two_men_holding_hands:N1e,couplekiss:O1e,couplekiss_man_woman:I1e,couplekiss_man_man:M1e,couplekiss_woman_woman:D1e,couple_with_heart:k1e,couple_with_heart_woman_man:L1e,couple_with_heart_man_man:P1e,couple_with_heart_woman_woman:U1e,family:F1e,family_man_woman_boy:B1e,family_man_woman_girl:G1e,family_man_woman_girl_boy:V1e,family_man_woman_boy_boy:z1e,family_man_woman_girl_girl:H1e,family_man_man_boy:q1e,family_man_man_girl:Y1e,family_man_man_girl_boy:$1e,family_man_man_boy_boy:W1e,family_man_man_girl_girl:K1e,family_woman_woman_boy:j1e,family_woman_woman_girl:Q1e,family_woman_woman_girl_boy:X1e,family_woman_woman_boy_boy:Z1e,family_woman_woman_girl_girl:J1e,family_man_boy:ewe,family_man_boy_boy:twe,family_man_girl:nwe,family_man_girl_boy:iwe,family_man_girl_girl:swe,family_woman_boy:rwe,family_woman_boy_boy:owe,family_woman_girl:awe,family_woman_girl_boy:lwe,family_woman_girl_girl:cwe,speaking_head:dwe,bust_in_silhouette:uwe,busts_in_silhouette:pwe,people_hugging:_we,footprints:hwe,monkey_face:fwe,monkey:mwe,gorilla:gwe,orangutan:bwe,dog:Ewe,dog2:ywe,guide_dog:vwe,service_dog:Swe,poodle:Twe,wolf:xwe,fox_face:Cwe,raccoon:wwe,cat:Rwe,cat2:Awe,black_cat:Nwe,lion:Owe,tiger:Iwe,tiger2:Mwe,leopard:Dwe,horse:kwe,racehorse:Lwe,unicorn:Pwe,zebra:Uwe,deer:Fwe,bison:Bwe,cow:Gwe,ox:Vwe,water_buffalo:zwe,cow2:Hwe,pig:qwe,pig2:Ywe,boar:$we,pig_nose:Wwe,ram:Kwe,sheep:jwe,goat:Qwe,dromedary_camel:Xwe,camel:Zwe,llama:Jwe,giraffe:eRe,elephant:tRe,mammoth:nRe,rhinoceros:iRe,hippopotamus:sRe,mouse:rRe,mouse2:oRe,rat:aRe,hamster:lRe,rabbit:cRe,rabbit2:dRe,chipmunk:uRe,beaver:pRe,hedgehog:_Re,bat:hRe,bear:fRe,polar_bear:mRe,koala:gRe,panda_face:bRe,sloth:ERe,otter:yRe,skunk:vRe,kangaroo:SRe,badger:TRe,feet:xRe,paw_prints:CRe,turkey:wRe,chicken:RRe,rooster:ARe,hatching_chick:NRe,baby_chick:ORe,hatched_chick:IRe,bird:MRe,penguin:DRe,dove:kRe,eagle:LRe,duck:PRe,swan:URe,owl:FRe,dodo:BRe,feather:GRe,flamingo:VRe,peacock:zRe,parrot:HRe,frog:qRe,crocodile:YRe,turtle:$Re,lizard:WRe,snake:KRe,dragon_face:jRe,dragon:QRe,sauropod:XRe,"t-rex":"🦖",whale:ZRe,whale2:JRe,dolphin:eAe,flipper:tAe,seal:nAe,fish:iAe,tropical_fish:sAe,blowfish:rAe,shark:oAe,octopus:aAe,shell:lAe,snail:cAe,butterfly:dAe,bug:uAe,ant:pAe,bee:_Ae,honeybee:hAe,beetle:fAe,lady_beetle:mAe,cricket:gAe,cockroach:bAe,spider:EAe,spider_web:yAe,scorpion:vAe,mosquito:SAe,fly:TAe,worm:xAe,microbe:CAe,bouquet:wAe,cherry_blossom:RAe,white_flower:AAe,rosette:NAe,rose:OAe,wilted_flower:IAe,hibiscus:MAe,sunflower:DAe,blossom:kAe,tulip:LAe,seedling:PAe,potted_plant:UAe,evergreen_tree:FAe,deciduous_tree:BAe,palm_tree:GAe,cactus:VAe,ear_of_rice:zAe,herb:HAe,shamrock:qAe,four_leaf_clover:YAe,maple_leaf:$Ae,fallen_leaf:WAe,leaves:KAe,grapes:jAe,melon:QAe,watermelon:XAe,tangerine:ZAe,orange:JAe,mandarin:eNe,lemon:tNe,banana:nNe,pineapple:iNe,mango:sNe,apple:rNe,green_apple:oNe,pear:aNe,peach:lNe,cherries:cNe,strawberry:dNe,blueberries:uNe,kiwi_fruit:pNe,tomato:_Ne,olive:hNe,coconut:fNe,avocado:mNe,eggplant:gNe,potato:bNe,carrot:ENe,corn:yNe,hot_pepper:vNe,bell_pepper:SNe,cucumber:TNe,leafy_green:xNe,broccoli:CNe,garlic:wNe,onion:RNe,mushroom:ANe,peanuts:NNe,chestnut:ONe,bread:INe,croissant:MNe,baguette_bread:DNe,flatbread:kNe,pretzel:LNe,bagel:PNe,pancakes:UNe,waffle:FNe,cheese:BNe,meat_on_bone:GNe,poultry_leg:VNe,cut_of_meat:zNe,bacon:HNe,hamburger:qNe,fries:YNe,pizza:$Ne,hotdog:WNe,sandwich:KNe,taco:jNe,burrito:QNe,tamale:XNe,stuffed_flatbread:ZNe,falafel:JNe,egg:eOe,fried_egg:tOe,shallow_pan_of_food:nOe,stew:iOe,fondue:sOe,bowl_with_spoon:rOe,green_salad:oOe,popcorn:aOe,butter:lOe,salt:cOe,canned_food:dOe,bento:uOe,rice_cracker:pOe,rice_ball:_Oe,rice:hOe,curry:fOe,ramen:mOe,spaghetti:gOe,sweet_potato:bOe,oden:EOe,sushi:yOe,fried_shrimp:vOe,fish_cake:SOe,moon_cake:TOe,dango:xOe,dumpling:COe,fortune_cookie:wOe,takeout_box:ROe,crab:AOe,lobster:NOe,shrimp:OOe,squid:IOe,oyster:MOe,icecream:DOe,shaved_ice:kOe,ice_cream:LOe,doughnut:POe,cookie:UOe,birthday:FOe,cake:BOe,cupcake:GOe,pie:VOe,chocolate_bar:zOe,candy:HOe,lollipop:qOe,custard:YOe,honey_pot:$Oe,baby_bottle:WOe,milk_glass:KOe,coffee:jOe,teapot:QOe,tea:XOe,sake:ZOe,champagne:JOe,wine_glass:eIe,cocktail:tIe,tropical_drink:nIe,beer:iIe,beers:sIe,clinking_glasses:rIe,tumbler_glass:oIe,cup_with_straw:aIe,bubble_tea:lIe,beverage_box:cIe,mate:dIe,ice_cube:uIe,chopsticks:pIe,plate_with_cutlery:_Ie,fork_and_knife:hIe,spoon:fIe,hocho:mIe,knife:gIe,amphora:bIe,earth_africa:EIe,earth_americas:yIe,earth_asia:vIe,globe_with_meridians:SIe,world_map:TIe,japan:xIe,compass:CIe,mountain_snow:wIe,mountain:RIe,volcano:AIe,mount_fuji:NIe,camping:OIe,beach_umbrella:IIe,desert:MIe,desert_island:DIe,national_park:kIe,stadium:LIe,classical_building:PIe,building_construction:UIe,bricks:FIe,rock:BIe,wood:GIe,hut:VIe,houses:zIe,derelict_house:HIe,house:qIe,house_with_garden:YIe,office:$Ie,post_office:WIe,european_post_office:KIe,hospital:jIe,bank:QIe,hotel:XIe,love_hotel:ZIe,convenience_store:JIe,school:eMe,department_store:tMe,factory:nMe,japanese_castle:iMe,european_castle:sMe,wedding:rMe,tokyo_tower:oMe,statue_of_liberty:aMe,church:lMe,mosque:cMe,hindu_temple:dMe,synagogue:uMe,shinto_shrine:pMe,kaaba:_Me,fountain:hMe,tent:fMe,foggy:mMe,night_with_stars:gMe,cityscape:bMe,sunrise_over_mountains:EMe,sunrise:yMe,city_sunset:vMe,city_sunrise:SMe,bridge_at_night:TMe,hotsprings:xMe,carousel_horse:CMe,ferris_wheel:wMe,roller_coaster:RMe,barber:AMe,circus_tent:NMe,steam_locomotive:OMe,railway_car:IMe,bullettrain_side:MMe,bullettrain_front:DMe,train2:kMe,metro:LMe,light_rail:PMe,station:UMe,tram:FMe,monorail:BMe,mountain_railway:GMe,train:VMe,bus:zMe,oncoming_bus:HMe,trolleybus:qMe,minibus:YMe,ambulance:$Me,fire_engine:WMe,police_car:KMe,oncoming_police_car:jMe,taxi:QMe,oncoming_taxi:XMe,car:ZMe,red_car:JMe,oncoming_automobile:e2e,blue_car:t2e,pickup_truck:n2e,truck:i2e,articulated_lorry:s2e,tractor:r2e,racing_car:o2e,motorcycle:a2e,motor_scooter:l2e,manual_wheelchair:c2e,motorized_wheelchair:d2e,auto_rickshaw:u2e,bike:p2e,kick_scooter:_2e,skateboard:h2e,roller_skate:f2e,busstop:m2e,motorway:g2e,railway_track:b2e,oil_drum:E2e,fuelpump:y2e,rotating_light:v2e,traffic_light:S2e,vertical_traffic_light:T2e,stop_sign:x2e,construction:C2e,anchor:w2e,boat:R2e,sailboat:A2e,canoe:N2e,speedboat:O2e,passenger_ship:I2e,ferry:M2e,motor_boat:D2e,ship:k2e,airplane:L2e,small_airplane:P2e,flight_departure:U2e,flight_arrival:F2e,parachute:B2e,seat:G2e,helicopter:V2e,suspension_railway:z2e,mountain_cableway:H2e,aerial_tramway:q2e,artificial_satellite:Y2e,rocket:$2e,flying_saucer:W2e,bellhop_bell:K2e,luggage:j2e,hourglass:Q2e,hourglass_flowing_sand:X2e,watch:Z2e,alarm_clock:J2e,stopwatch:eDe,timer_clock:tDe,mantelpiece_clock:nDe,clock12:iDe,clock1230:sDe,clock1:rDe,clock130:oDe,clock2:aDe,clock230:lDe,clock3:cDe,clock330:dDe,clock4:uDe,clock430:pDe,clock5:_De,clock530:hDe,clock6:fDe,clock630:mDe,clock7:gDe,clock730:bDe,clock8:EDe,clock830:yDe,clock9:vDe,clock930:SDe,clock10:TDe,clock1030:xDe,clock11:CDe,clock1130:wDe,new_moon:RDe,waxing_crescent_moon:ADe,first_quarter_moon:NDe,moon:ODe,waxing_gibbous_moon:IDe,full_moon:MDe,waning_gibbous_moon:DDe,last_quarter_moon:kDe,waning_crescent_moon:LDe,crescent_moon:PDe,new_moon_with_face:UDe,first_quarter_moon_with_face:FDe,last_quarter_moon_with_face:BDe,thermometer:GDe,sunny:VDe,full_moon_with_face:zDe,sun_with_face:HDe,ringed_planet:qDe,star:YDe,star2:$De,stars:WDe,milky_way:KDe,cloud:jDe,partly_sunny:QDe,cloud_with_lightning_and_rain:XDe,sun_behind_small_cloud:ZDe,sun_behind_large_cloud:JDe,sun_behind_rain_cloud:eke,cloud_with_rain:tke,cloud_with_snow:nke,cloud_with_lightning:ike,tornado:ske,fog:rke,wind_face:oke,cyclone:ake,rainbow:lke,closed_umbrella:cke,open_umbrella:dke,umbrella:uke,parasol_on_ground:pke,zap:_ke,snowflake:hke,snowman_with_snow:fke,snowman:mke,comet:gke,fire:bke,droplet:Eke,ocean:yke,jack_o_lantern:vke,christmas_tree:Ske,fireworks:Tke,sparkler:xke,firecracker:Cke,sparkles:wke,balloon:Rke,tada:Ake,confetti_ball:Nke,tanabata_tree:Oke,bamboo:Ike,dolls:Mke,flags:Dke,wind_chime:kke,rice_scene:Lke,red_envelope:Pke,ribbon:Uke,gift:Fke,reminder_ribbon:Bke,tickets:Gke,ticket:Vke,medal_military:zke,trophy:Hke,medal_sports:qke,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:Yke,baseball:$ke,softball:Wke,basketball:Kke,volleyball:jke,football:Qke,rugby_football:Xke,tennis:Zke,flying_disc:Jke,bowling:eLe,cricket_game:tLe,field_hockey:nLe,ice_hockey:iLe,lacrosse:sLe,ping_pong:rLe,badminton:oLe,boxing_glove:aLe,martial_arts_uniform:lLe,goal_net:cLe,golf:dLe,ice_skate:uLe,fishing_pole_and_fish:pLe,diving_mask:_Le,running_shirt_with_sash:hLe,ski:fLe,sled:mLe,curling_stone:gLe,dart:bLe,yo_yo:ELe,kite:yLe,"8ball":"🎱",crystal_ball:vLe,magic_wand:SLe,nazar_amulet:TLe,video_game:xLe,joystick:CLe,slot_machine:wLe,game_die:RLe,jigsaw:ALe,teddy_bear:NLe,pinata:OLe,nesting_dolls:ILe,spades:MLe,hearts:DLe,diamonds:kLe,clubs:LLe,chess_pawn:PLe,black_joker:ULe,mahjong:FLe,flower_playing_cards:BLe,performing_arts:GLe,framed_picture:VLe,art:zLe,thread:HLe,sewing_needle:qLe,yarn:YLe,knot:$Le,eyeglasses:WLe,dark_sunglasses:KLe,goggles:jLe,lab_coat:QLe,safety_vest:XLe,necktie:ZLe,shirt:JLe,tshirt:ePe,jeans:tPe,scarf:nPe,gloves:iPe,coat:sPe,socks:rPe,dress:oPe,kimono:aPe,sari:lPe,one_piece_swimsuit:cPe,swim_brief:dPe,shorts:uPe,bikini:pPe,womans_clothes:_Pe,purse:hPe,handbag:fPe,pouch:mPe,shopping:gPe,school_satchel:bPe,thong_sandal:EPe,mans_shoe:yPe,shoe:vPe,athletic_shoe:SPe,hiking_boot:TPe,flat_shoe:xPe,high_heel:CPe,sandal:wPe,ballet_shoes:RPe,boot:APe,crown:NPe,womans_hat:OPe,tophat:IPe,mortar_board:MPe,billed_cap:DPe,military_helmet:kPe,rescue_worker_helmet:LPe,prayer_beads:PPe,lipstick:UPe,ring:FPe,gem:BPe,mute:GPe,speaker:VPe,sound:zPe,loud_sound:HPe,loudspeaker:qPe,mega:YPe,postal_horn:$Pe,bell:WPe,no_bell:KPe,musical_score:jPe,musical_note:QPe,notes:XPe,studio_microphone:ZPe,level_slider:JPe,control_knobs:eUe,microphone:tUe,headphones:nUe,radio:iUe,saxophone:sUe,accordion:rUe,guitar:oUe,musical_keyboard:aUe,trumpet:lUe,violin:cUe,banjo:dUe,drum:uUe,long_drum:pUe,iphone:_Ue,calling:hUe,phone:fUe,telephone:mUe,telephone_receiver:gUe,pager:bUe,fax:EUe,battery:yUe,electric_plug:vUe,computer:SUe,desktop_computer:TUe,printer:xUe,keyboard:CUe,computer_mouse:wUe,trackball:RUe,minidisc:AUe,floppy_disk:NUe,cd:OUe,dvd:IUe,abacus:MUe,movie_camera:DUe,film_strip:kUe,film_projector:LUe,clapper:PUe,tv:UUe,camera:FUe,camera_flash:BUe,video_camera:GUe,vhs:VUe,mag:zUe,mag_right:HUe,candle:qUe,bulb:YUe,flashlight:$Ue,izakaya_lantern:WUe,lantern:KUe,diya_lamp:jUe,notebook_with_decorative_cover:QUe,closed_book:XUe,book:ZUe,open_book:JUe,green_book:eFe,blue_book:tFe,orange_book:nFe,books:iFe,notebook:sFe,ledger:rFe,page_with_curl:oFe,scroll:aFe,page_facing_up:lFe,newspaper:cFe,newspaper_roll:dFe,bookmark_tabs:uFe,bookmark:pFe,label:_Fe,moneybag:hFe,coin:fFe,yen:mFe,dollar:gFe,euro:bFe,pound:EFe,money_with_wings:yFe,credit_card:vFe,receipt:SFe,chart:TFe,envelope:xFe,email:CFe,"e-mail":"📧",incoming_envelope:wFe,envelope_with_arrow:RFe,outbox_tray:AFe,inbox_tray:NFe,package:"📦",mailbox:OFe,mailbox_closed:IFe,mailbox_with_mail:MFe,mailbox_with_no_mail:DFe,postbox:kFe,ballot_box:LFe,pencil2:PFe,black_nib:UFe,fountain_pen:FFe,pen:BFe,paintbrush:GFe,crayon:VFe,memo:zFe,pencil:HFe,briefcase:qFe,file_folder:YFe,open_file_folder:$Fe,card_index_dividers:WFe,date:KFe,calendar:jFe,spiral_notepad:QFe,spiral_calendar:XFe,card_index:ZFe,chart_with_upwards_trend:JFe,chart_with_downwards_trend:e3e,bar_chart:t3e,clipboard:n3e,pushpin:i3e,round_pushpin:s3e,paperclip:r3e,paperclips:o3e,straight_ruler:a3e,triangular_ruler:l3e,scissors:c3e,card_file_box:d3e,file_cabinet:u3e,wastebasket:p3e,lock:_3e,unlock:h3e,lock_with_ink_pen:f3e,closed_lock_with_key:m3e,key:g3e,old_key:b3e,hammer:E3e,axe:y3e,pick:v3e,hammer_and_pick:S3e,hammer_and_wrench:T3e,dagger:x3e,crossed_swords:C3e,gun:w3e,boomerang:R3e,bow_and_arrow:A3e,shield:N3e,carpentry_saw:O3e,wrench:I3e,screwdriver:M3e,nut_and_bolt:D3e,gear:k3e,clamp:L3e,balance_scale:P3e,probing_cane:U3e,link:F3e,chains:B3e,hook:G3e,toolbox:V3e,magnet:z3e,ladder:H3e,alembic:q3e,test_tube:Y3e,petri_dish:$3e,dna:W3e,microscope:K3e,telescope:j3e,satellite:Q3e,syringe:X3e,drop_of_blood:Z3e,pill:J3e,adhesive_bandage:eBe,stethoscope:tBe,door:nBe,elevator:iBe,mirror:sBe,window:rBe,bed:oBe,couch_and_lamp:aBe,chair:lBe,toilet:cBe,plunger:dBe,shower:uBe,bathtub:pBe,mouse_trap:_Be,razor:hBe,lotion_bottle:fBe,safety_pin:mBe,broom:gBe,basket:bBe,roll_of_paper:EBe,bucket:yBe,soap:vBe,toothbrush:SBe,sponge:TBe,fire_extinguisher:xBe,shopping_cart:CBe,smoking:wBe,coffin:RBe,headstone:ABe,funeral_urn:NBe,moyai:OBe,placard:IBe,atm:MBe,put_litter_in_its_place:DBe,potable_water:kBe,wheelchair:LBe,mens:PBe,womens:UBe,restroom:FBe,baby_symbol:BBe,wc:GBe,passport_control:VBe,customs:zBe,baggage_claim:HBe,left_luggage:qBe,warning:YBe,children_crossing:$Be,no_entry:WBe,no_entry_sign:KBe,no_bicycles:jBe,no_smoking:QBe,do_not_litter:XBe,"non-potable_water":"🚱",no_pedestrians:ZBe,no_mobile_phones:JBe,underage:e4e,radioactive:t4e,biohazard:n4e,arrow_up:i4e,arrow_upper_right:s4e,arrow_right:r4e,arrow_lower_right:o4e,arrow_down:a4e,arrow_lower_left:l4e,arrow_left:c4e,arrow_upper_left:d4e,arrow_up_down:u4e,left_right_arrow:p4e,leftwards_arrow_with_hook:_4e,arrow_right_hook:h4e,arrow_heading_up:f4e,arrow_heading_down:m4e,arrows_clockwise:g4e,arrows_counterclockwise:b4e,back:E4e,end:y4e,on:v4e,soon:S4e,top:T4e,place_of_worship:x4e,atom_symbol:C4e,om:w4e,star_of_david:R4e,wheel_of_dharma:A4e,yin_yang:N4e,latin_cross:O4e,orthodox_cross:I4e,star_and_crescent:M4e,peace_symbol:D4e,menorah:k4e,six_pointed_star:L4e,aries:P4e,taurus:U4e,gemini:F4e,cancer:B4e,leo:G4e,virgo:V4e,libra:z4e,scorpius:H4e,sagittarius:q4e,capricorn:Y4e,aquarius:$4e,pisces:W4e,ophiuchus:K4e,twisted_rightwards_arrows:j4e,repeat:Q4e,repeat_one:X4e,arrow_forward:Z4e,fast_forward:J4e,next_track_button:e5e,play_or_pause_button:t5e,arrow_backward:n5e,rewind:i5e,previous_track_button:s5e,arrow_up_small:r5e,arrow_double_up:o5e,arrow_down_small:a5e,arrow_double_down:l5e,pause_button:c5e,stop_button:d5e,record_button:u5e,eject_button:p5e,cinema:_5e,low_brightness:h5e,high_brightness:f5e,signal_strength:m5e,vibration_mode:g5e,mobile_phone_off:b5e,female_sign:E5e,male_sign:y5e,transgender_symbol:v5e,heavy_multiplication_x:S5e,heavy_plus_sign:T5e,heavy_minus_sign:x5e,heavy_division_sign:C5e,infinity:w5e,bangbang:R5e,interrobang:A5e,question:N5e,grey_question:O5e,grey_exclamation:I5e,exclamation:M5e,heavy_exclamation_mark:D5e,wavy_dash:k5e,currency_exchange:L5e,heavy_dollar_sign:P5e,medical_symbol:U5e,recycle:F5e,fleur_de_lis:B5e,trident:G5e,name_badge:V5e,beginner:z5e,o:H5e,white_check_mark:q5e,ballot_box_with_check:Y5e,heavy_check_mark:$5e,x:W5e,negative_squared_cross_mark:K5e,curly_loop:j5e,loop:Q5e,part_alternation_mark:X5e,eight_spoked_asterisk:Z5e,eight_pointed_black_star:J5e,sparkle:eGe,copyright:tGe,registered:nGe,tm:iGe,hash:sGe,asterisk:rGe,zero:oGe,one:aGe,two:lGe,three:cGe,four:dGe,five:uGe,six:pGe,seven:_Ge,eight:hGe,nine:fGe,keycap_ten:mGe,capital_abcd:gGe,abcd:bGe,symbols:EGe,abc:yGe,a:vGe,ab:SGe,b:TGe,cl:xGe,cool:CGe,free:wGe,information_source:RGe,id:AGe,m:NGe,new:"🆕",ng:OGe,o2:IGe,ok:MGe,parking:DGe,sos:kGe,up:LGe,vs:PGe,koko:UGe,sa:FGe,ideograph_advantage:BGe,accept:GGe,congratulations:VGe,secret:zGe,u6e80:HGe,red_circle:qGe,orange_circle:YGe,yellow_circle:$Ge,green_circle:WGe,large_blue_circle:KGe,purple_circle:jGe,brown_circle:QGe,black_circle:XGe,white_circle:ZGe,red_square:JGe,orange_square:e6e,yellow_square:t6e,green_square:n6e,blue_square:i6e,purple_square:s6e,brown_square:r6e,black_large_square:o6e,white_large_square:a6e,black_medium_square:l6e,white_medium_square:c6e,black_medium_small_square:d6e,white_medium_small_square:u6e,black_small_square:p6e,white_small_square:_6e,large_orange_diamond:h6e,large_blue_diamond:f6e,small_orange_diamond:m6e,small_blue_diamond:g6e,small_red_triangle:b6e,small_red_triangle_down:E6e,diamond_shape_with_a_dot_inside:y6e,radio_button:v6e,white_square_button:S6e,black_square_button:T6e,checkered_flag:x6e,triangular_flag_on_post:C6e,crossed_flags:w6e,black_flag:R6e,white_flag:A6e,rainbow_flag:N6e,transgender_flag:O6e,pirate_flag:I6e,ascension_island:M6e,andorra:D6e,united_arab_emirates:k6e,afghanistan:L6e,antigua_barbuda:P6e,anguilla:U6e,albania:F6e,armenia:B6e,angola:G6e,antarctica:V6e,argentina:z6e,american_samoa:H6e,austria:q6e,australia:Y6e,aruba:$6e,aland_islands:W6e,azerbaijan:K6e,bosnia_herzegovina:j6e,barbados:Q6e,bangladesh:X6e,belgium:Z6e,burkina_faso:J6e,bulgaria:e9e,bahrain:t9e,burundi:n9e,benin:i9e,st_barthelemy:s9e,bermuda:r9e,brunei:o9e,bolivia:a9e,caribbean_netherlands:l9e,brazil:c9e,bahamas:d9e,bhutan:u9e,bouvet_island:p9e,botswana:_9e,belarus:h9e,belize:f9e,canada:m9e,cocos_islands:g9e,congo_kinshasa:b9e,central_african_republic:E9e,congo_brazzaville:y9e,switzerland:v9e,cote_divoire:S9e,cook_islands:T9e,chile:x9e,cameroon:C9e,cn:w9e,colombia:R9e,clipperton_island:A9e,costa_rica:N9e,cuba:O9e,cape_verde:I9e,curacao:M9e,christmas_island:D9e,cyprus:k9e,czech_republic:L9e,de:P9e,diego_garcia:U9e,djibouti:F9e,denmark:B9e,dominica:G9e,dominican_republic:V9e,algeria:z9e,ceuta_melilla:H9e,ecuador:q9e,estonia:Y9e,egypt:$9e,western_sahara:W9e,eritrea:K9e,es:j9e,ethiopia:Q9e,eu:X9e,european_union:Z9e,finland:J9e,fiji:e8e,falkland_islands:t8e,micronesia:n8e,faroe_islands:i8e,fr:s8e,gabon:r8e,gb:o8e,uk:a8e,grenada:l8e,georgia:c8e,french_guiana:d8e,guernsey:u8e,ghana:p8e,gibraltar:_8e,greenland:h8e,gambia:f8e,guinea:m8e,guadeloupe:g8e,equatorial_guinea:b8e,greece:E8e,south_georgia_south_sandwich_islands:y8e,guatemala:v8e,guam:S8e,guinea_bissau:T8e,guyana:x8e,hong_kong:C8e,heard_mcdonald_islands:w8e,honduras:R8e,croatia:A8e,haiti:N8e,hungary:O8e,canary_islands:I8e,indonesia:M8e,ireland:D8e,israel:k8e,isle_of_man:L8e,india:P8e,british_indian_ocean_territory:U8e,iraq:F8e,iran:B8e,iceland:G8e,it:V8e,jersey:z8e,jamaica:H8e,jordan:q8e,jp:Y8e,kenya:$8e,kyrgyzstan:W8e,cambodia:K8e,kiribati:j8e,comoros:Q8e,st_kitts_nevis:X8e,north_korea:Z8e,kr:J8e,kuwait:eVe,cayman_islands:tVe,kazakhstan:nVe,laos:iVe,lebanon:sVe,st_lucia:rVe,liechtenstein:oVe,sri_lanka:aVe,liberia:lVe,lesotho:cVe,lithuania:dVe,luxembourg:uVe,latvia:pVe,libya:_Ve,morocco:hVe,monaco:fVe,moldova:mVe,montenegro:gVe,st_martin:bVe,madagascar:EVe,marshall_islands:yVe,macedonia:vVe,mali:SVe,myanmar:TVe,mongolia:xVe,macau:CVe,northern_mariana_islands:wVe,martinique:RVe,mauritania:AVe,montserrat:NVe,malta:OVe,mauritius:IVe,maldives:MVe,malawi:DVe,mexico:kVe,malaysia:LVe,mozambique:PVe,namibia:UVe,new_caledonia:FVe,niger:BVe,norfolk_island:GVe,nigeria:VVe,nicaragua:zVe,netherlands:HVe,norway:qVe,nepal:YVe,nauru:$Ve,niue:WVe,new_zealand:KVe,oman:jVe,panama:QVe,peru:XVe,french_polynesia:ZVe,papua_new_guinea:JVe,philippines:eze,pakistan:tze,poland:nze,st_pierre_miquelon:ize,pitcairn_islands:sze,puerto_rico:rze,palestinian_territories:oze,portugal:aze,palau:lze,paraguay:cze,qatar:dze,reunion:uze,romania:pze,serbia:_ze,ru:hze,rwanda:fze,saudi_arabia:mze,solomon_islands:gze,seychelles:bze,sudan:Eze,sweden:yze,singapore:vze,st_helena:Sze,slovenia:Tze,svalbard_jan_mayen:xze,slovakia:Cze,sierra_leone:wze,san_marino:Rze,senegal:Aze,somalia:Nze,suriname:Oze,south_sudan:Ize,sao_tome_principe:Mze,el_salvador:Dze,sint_maarten:kze,syria:Lze,swaziland:Pze,tristan_da_cunha:Uze,turks_caicos_islands:Fze,chad:Bze,french_southern_territories:Gze,togo:Vze,thailand:zze,tajikistan:Hze,tokelau:qze,timor_leste:Yze,turkmenistan:$ze,tunisia:Wze,tonga:Kze,tr:jze,trinidad_tobago:Qze,tuvalu:Xze,taiwan:Zze,tanzania:Jze,ukraine:eHe,uganda:tHe,us_outlying_islands:nHe,united_nations:iHe,us:sHe,uruguay:rHe,uzbekistan:oHe,vatican_city:aHe,st_vincent_grenadines:lHe,venezuela:cHe,british_virgin_islands:dHe,us_virgin_islands:uHe,vietnam:pHe,vanuatu:_He,wallis_futuna:hHe,samoa:fHe,kosovo:mHe,yemen:gHe,mayotte:bHe,south_africa:EHe,zambia:yHe,zimbabwe:vHe,england:SHe,scotland:THe,wales:xHe};var wHe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]},RHe=function(e,n){return e[n].content},AHe=function(e,n,i,s,r){var o=e.utils.arrayReplaceAt,a=e.utils.lib.ucmicro,l=new RegExp([a.Z.source,a.P.source,a.Cc.source].join("|"));function u(d,h,f){var _,m=0,E=[];return d.replace(r,function(b,g,y){var v;if(i.hasOwnProperty(b)){if(v=i[b],g>0&&!l.test(y[g-1])||g+b.length<y.length&&!l.test(y[g+b.length]))return}else v=b.slice(1,-1);g>m&&(_=new f("text","",0),_.content=d.slice(m,g),E.push(_)),_=new f("emoji","",0),_.markup=v,_.content=n[v],E.push(_),m=g+b.length}),m<d.length&&(_=new f("text","",0),_.content=d.slice(m),E.push(_)),E}return function(h){var f,_,m,E,b,g=h.tokens,y=0;for(_=0,m=g.length;_<m;_++)if(g[_].type==="inline")for(E=g[_].children,f=E.length-1;f>=0;f--)b=E[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&s.test(b.content)&&(g[_].children=E=o(E,f,u(b.content,b.level,h.Token)))}};function NHe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var OHe=function(e){var n=e.defs,i;e.enabled.length&&(n=Object.keys(n).reduce(function(l,u){return e.enabled.indexOf(u)>=0&&(l[u]=n[u]),l},{})),i=Object.keys(e.shortcuts).reduce(function(l,u){return n[u]?Array.isArray(e.shortcuts[u])?(e.shortcuts[u].forEach(function(d){l[d]=u}),l):(l[e.shortcuts[u]]=u,l):l},{});var s=Object.keys(n),r;s.length===0?r="^$":r=s.map(function(l){return":"+l+":"}).concat(Object.keys(i)).sort().reverse().map(function(l){return NHe(l)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:n,shortcuts:i,scanRE:o,replaceRE:a}},IHe=RHe,MHe=AHe,DHe=OHe,kHe=function(e,n){var i={defs:{},shortcuts:{},enabled:[]},s=DHe(e.utils.assign({},i,n||{}));e.renderer.rules.emoji=IHe,e.core.ruler.after("linkify","emoji",MHe(e,s.defs,s.shortcuts,s.scanRE,s.replaceRE))},LHe=CHe,PHe=wHe,UHe=kHe,FHe=function(e,n){var i={defs:LHe,shortcuts:PHe,enabled:[]},s=e.utils.assign({},i,n||{});UHe(e,s)};const BHe=Ar(FHe);var ES=!1,ga={false:"push",true:"unshift",after:"push",before:"unshift"},tu={isPermalinkSymbol:!0};function Hg(t,e,n,i){var s;if(!ES){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),ES=!0}var o=[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:tu}),new n.Token("link_close","a",-1)];e.permalinkSpace&&n.tokens[i+1].children[ga[e.permalinkBefore]](Object.assign(new n.Token("text","",0),{content:" "})),(s=n.tokens[i+1].children)[ga[e.permalinkBefore]].apply(s,o)}function hN(t){return"#"+t}function fN(t){return{}}var GHe={class:"header-anchor",symbol:"#",renderHref:hN,renderAttrs:fN};function gc(t){function e(n){return n=Object.assign({},e.defaults,n),function(i,s,r,o){return t(i,n,s,r,o)}}return e.defaults=Object.assign({},GHe),e.renderPermalinkImpl=t,e}var tp=gc(function(t,e,n,i,s){var r,o=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,i)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(t,i)))}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}),new i.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";i.tokens[s+1].children[ga[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=i.tokens[s+1].children)[ga[e.placement]].apply(r,o)});Object.assign(tp.defaults,{space:!0,placement:"after",ariaHidden:!1});var Hr=gc(tp.renderPermalinkImpl);Hr.defaults=Object.assign({},tp.defaults,{ariaHidden:!0});var mN=gc(function(t,e,n,i,s){var r=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,i)]],Object.entries(e.renderAttrs(t,i)))})].concat(e.safariReaderFix?[new i.Token("span_open","span",1)]:[],i.tokens[s+1].children,e.safariReaderFix?[new i.Token("span_close","span",-1)]:[],[new i.Token("link_close","a",-1)]);i.tokens[s+1]=Object.assign(new i.Token("inline","",0),{children:r})});Object.assign(mN.defaults,{safariReaderFix:!1});var yS=gc(function(t,e,n,i,s){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 o=i.tokens[s+1].children.filter(function(h){return h.type==="text"||h.type==="code_inline"}).reduce(function(h,f){return h+f.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(t,i)]),l.push.apply(l,Object.entries(e.renderAttrs(t,i))),e.style==="visually-hidden"){if(a.push(Object.assign(new i.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new i.Token("text","",0),{content:e.assistiveText(o)}),new i.Token("span_close","span",-1)),e.space){var u=typeof e.space=="string"?e.space:" ";a[ga[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:u}))}a[ga[e.placement]](Object.assign(new i.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}),new i.Token("span_close","span",-1))}else a.push(Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:tu}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,t]);var d=[Object.assign(new i.Token("link_open","a",1),{attrs:l})].concat(a,[new i.Token("link_close","a",-1)]);(r=i.tokens).splice.apply(r,[s+3,0].concat(d)),e.wrapper&&(i.tokens.splice(s,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[0]+`
|
||
`})),i.tokens.splice(s+3+d.length+1,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[1]+`
|
||
`})))});function vS(t,e,n,i){var s=t,r=i;if(n&&Object.prototype.hasOwnProperty.call(e,s))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,s);)s=t+"-"+r,r+=1;return e[s]=!0,s}function jo(t,e){e=Object.assign({},jo.defaults,e),t.core.ruler.push("anchor",function(n){for(var i,s={},r=n.tokens,o=Array.isArray(e.level)?(i=e.level,function(h){return i.includes(h)}):function(h){return function(f){return f>=h}}(e.level),a=0;a<r.length;a++){var l=r[a];if(l.type==="heading_open"&&o(Number(l.tag.substr(1)))){var u=e.getTokensText(r[a+1].children),d=l.attrGet("id");d=d==null?vS(e.slugify(u),s,!1,e.uniqueSlugStartIndex):vS(d,s,!0,e.uniqueSlugStartIndex),l.attrSet("id",d),e.tabIndex!==!1&&l.attrSet("tabindex",""+e.tabIndex),typeof e.permalink=="function"?e.permalink(d,e,n,a):(e.permalink||e.renderPermalink&&e.renderPermalink!==Hg)&&e.renderPermalink(d,e,n,a),a=r.indexOf(l),e.callback&&e.callback(l,{slug:d,title:u})}}})}Object.assign(yS.defaults,{style:"visually-hidden",space:!0,placement:"after",wrapper:null}),jo.permalink={__proto__:null,legacy:Hg,renderHref:hN,renderAttrs:fN,makePermalink:gc,linkInsideHeader:tp,ariaHidden:Hr,headerLink:mN,linkAfterHeader:yS},jo.defaults={level:1,slugify:function(t){return encodeURIComponent(String(t).trim().toLowerCase().replace(/\s+/g,"-"))},uniqueSlugStartIndex:1,tabIndex:"-1",getTokensText:function(t){return t.filter(function(e){return["text","code_inline"].includes(e.type)}).map(function(e){return e.content}).join("")},permalink:!1,renderPermalink:Hg,permalinkClass:Hr.defaults.class,permalinkSpace:Hr.defaults.space,permalinkSymbol:"¶",permalinkBefore:Hr.defaults.placement==="before",permalinkHref:Hr.defaults.renderHref,permalinkAttrs:Hr.defaults.renderAttrs},jo.default=jo;Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(typeof t>"u"||t===null)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(!(typeof i>"u"||i===null))for(var s=Object.keys(Object(i)),r=0,o=s.length;r<o;r++){var a=s[r],l=Object.getOwnPropertyDescriptor(i,a);typeof l<"u"&&l.enumerable&&(e[a]=i[a])}}return e}});var Ao={},ll={},cl={},Fn={},SS;function gN(){if(SS)return Fn;SS=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.accents=Fn.fonts=Fn.groupings=Fn.operators=Fn.identifiers=Fn.numbers=void 0;var t={};Fn.numbers=t;var e="[0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↋①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿零一二三四五六七八九十百千万億兆京垓𥝱秭穣溝澗正載割分厘毛糸忽微繊沙塵埃꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9]",n=new RegExp(e);Object.defineProperties(t,{digitRange:{value:e},digitRE:{value:n},isdigit:{value:function(h){return h.match(n)}}});var i=["sin","cos","tan","csc","sec","cot","sinh","cosh","tanh","log","ln","det","dim","lim","mod","gcd","lcm","min","max"],s={Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Phi:"Φ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ɛ",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",oo:"∞","O/":"∅",CC:"ℂ",NN:"ℕ",QQ:"ℚ",RR:"ℝ",ZZ:"ℤ"};Fn.identifiers=s,i.forEach(function(d){s[d]=d}),Object.defineProperty(s,"contains",{value:function(h){return typeof s[h]<"u"}}),Object.defineProperty(s,"funs",{value:i}),Object.defineProperty(s,"isfun",{value:function(h){return i.indexOf(h)>=0}});var r={"*":"·","**":"∗","***":"⋆","//":"/","|":"|",":":":","'":"′","''":"″","'''":"‴","''''":"⁗",xx:"×","-:":"÷","|><":"⋉","><|":"⋊","|><|":"⋈","@":"∘","o+":"⊕",ox:"⊗","o.":"⊙","!":"!",sum:"∑",prod:"∏","^^":"∧","^^^":"⋀",vv:"∨",vvv:"⋁",nn:"∩",nnn:"⋂",uu:"∪",uuu:"⋃",int:"∫",oint:"∮",dint:"∬","+-":"±",del:"∂",grad:"∇",aleph:"ℵ","/_":"∠",diamond:"⋄",square:"□","|__":"⌊","__|":"⌋","|~":"⌈","~|":"⌉","=":"=","!=":"≠","<":"<",">":">","<=":"≤",">=":"≥","-<":"≺","-<=":"⪯",">-":"≻",">-=":"⪰",in:"∈","!in":"∉",sub:"⊂",sup:"⊃",sube:"⊆",supe:"⊇","-=":"≡","==":"≡","~=":"≅","~~":"≈",prop:"∝","<-":"←","->":"→","=>":"⇒","<=>":"⇔","|->":"↦",">->":"↣","->>":"↠",">->>":"⤖",uarr:"↑",darr:"↓",larr:"←",rarr:"→",harr:"↔",lArr:"⇐",rArr:"⇒",hArr:"⇔",iff:"⇔",",":",",":.":"∴","...":"…",cdots:"⋯",ddots:"⋱",vdots:"⋮",if:"if",otherwise:"otherwise",and:"and",or:"or",not:"¬",AA:"∀",EE:"∃","_|_":"⊥",TT:"⊤","|--":"⊢","|==":"⊨"};Fn.operators=r,Object.defineProperty(r,"contains",{value:function(h){return typeof r[h]<"u"}}),Object.defineProperty(r,"get",{value:function(h){return r[h]||h}}),Object.defineProperty(r,"regexp",{value:new RegExp("("+Object.keys(r).sort(function(d,h){return h.length-d.length}).map(o).join("|")+"|[+-<=>|~¬±×÷ϐϑϒϕϰϱϴϵ϶؆؇؈‖′″‴⁀⁄⁒-⁺-⁾₊-₎★☆♠♡♢♣♭♮♯﬩。-ィ+<=>\^|~¬←↑→↓∀-⋿⨀-⫿⟀-⟥⦀-⦂⦙-⧿⌁-⏿■-◿⬀-⯿←-⇿⟰-⟿⤀-⥿⃐-⃯])")});function o(d){return d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var a={open:{"(:":"⟨","{:":""},close:{":)":"⟩",":}":""},complex:{abs:{open:"|",close:"|"},floor:{open:"⌊",close:"⌋"},ceil:{open:"⌈",close:"⌉"},norm:{open:"∥",close:"∥"}}};Fn.groupings=a,Object.defineProperty(a.open,"regexp",{value:/([[⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗]|[({]:?)/}),Object.defineProperty(a.close,"regexp",{value:/([\]⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘]|:?[)}])/}),Object.defineProperty(a.open,"get",{value:function(h){var f=a.open[h];return typeof f=="string"?f:h}}),Object.defineProperty(a.close,"get",{value:function(h){var f=a.close[h];return typeof f=="string"?f:h}}),Object.defineProperty(a.complex,"contains",{value:function(h){return Object.keys(a.complex).indexOf(h)>=0}}),Object.defineProperty(a.complex,"get",{value:function(h){return a.complex[h]}}),Object.freeze(a.open),Object.freeze(a.close),Object.freeze(a.complex);var l={rm:"normal",bf:"bold",it:"italic",bb:"double-struck",cc:"script",tt:"monospace",fr:"fraktur",sf:"sans-serif"};Fn.fonts=l,Object.defineProperty(l,"get",{value:function(h){return l[h]}}),Object.defineProperty(l,"regexp",{value:new RegExp("("+Object.keys(l).join("|")+")")});var u={hat:{type:"over",accent:"^"},bar:{type:"over",accent:"‾"},ul:{type:"under",accent:"_"},vec:{type:"over",accent:"→"},dot:{type:"over",accent:"⋅"},ddot:{type:"over",accent:"⋅⋅"},tilde:{type:"over",accent:"˜"},cancel:{type:"enclose",attrs:{notation:"updiagonalstrike"}}};return Fn.accents=u,Object.defineProperty(u,"contains",{value:function(h){return Object.keys(u).indexOf(h)>=0}}),Object.defineProperty(u,"get",{value:function(h){return u[h]}}),Object.defineProperty(u,"regexp",{value:new RegExp("("+Object.keys(u).join("|")+")")}),Fn}var TS;function VHe(){if(TS)return cl;TS=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=void 0;var t=gN();function e(C){var T=new RegExp("^"+t.operators.regexp.source),O=T.exec(C),k=O[0];return[t.operators.get(k),C.slice(k.length)]}function n(C){var T=new RegExp("^"+t.groupings.open.regexp.source);return C.match(T)}function i(C,T){var O=new RegExp("^[0-9A-Za-z+\\-!]{2,}(\\s|".concat(T.colSep,"|").concat(T.rowSep,")"));return C.match(O)}function s(C,T,O){if(!n(C))return!1;var k=a(C)[4];if(!(k.trim().startsWith(T)||k.match(/^\s*\n/)&&n(k.trim())))return!1;for(;k&&k.trim();)if(k=(a(k)||[])[4],k&&(k.startsWith(O)||k.match(/^\s*\n/)))return!1;return!0}var r=new RegExp("("+t.identifiers.funs.concat(Object.keys(t.accents)).concat(["sqrt"]).sort(function(C,T){return C.length-T.length}).join("|")+")$");function o(C){return C.match(r)}function a(C){for(var T=new RegExp("^"+t.groupings.open.regexp.source),O=new RegExp("^"+t.groupings.close.regexp.source),k,x,I,F,B=0,ne=0;ne<C.length;){var L=C.slice(ne),$=L.match(T),H=L.match(O);if($)typeof k!="number"&&(k=ne,I=$[0]),B+=1,ne+=$[0].length;else if(H){if(B-=1,B===0){F=H[0],x=ne+(F.length-1);break}ne+=H[0].length}else ne+=1}return I?[k===0?"":C.slice(0,k),t.groupings.open.get(I),C.slice(k+I.length,F?x-(F.length-1):C.length),F?t.groupings.close.get(F):"",x?C.slice(x+1):""]:null}function l(C){if(!C.startsWith("|"))return!1;var T=u(C);return T&&T[0]===""}function u(C){function T(H,U,Q){return[H===0?"":C.slice(0,H),Q?"‖":"|",C.slice(H+(Q?2:1),U),Q?"‖":"|",C.slice(U+(Q?2:1))]}var O=C.indexOf("|"),k=O+1,x=C.slice(O+1),I=x.startsWith("|"),F=I?/\|\|/:/\|/;if(I&&(x=x.slice(1),k+=1),x.indexOf("|")===-1||x.match(/^\.?[_\^]/))return null;for(;x.length>0;){var B=a(x),ne=B?B[0]:x,L=B?B[4]:"",$=F.exec(ne);if($)return T(O,k+$.index,I);k+=B.slice(0,-1).map(d("length")).reduce(h),B[1]===""?k+=2:B[1]==="〈"&&(k+=1),B[3]===""?k+=2:B[3]==="〉"&&(k+=1),x=L}return null}function d(C){return function(T){return T[C]}}function h(C,T){return C+T}function f(C){var T=new RegExp("^("+t.fonts.regexp.source+" ?)?"+C);return function(O){return T.exec(O)}}var _=f("(`)\\w+`"),m=f('(")');function E(C){return _(C)||m(C)}function b(C){var T=_(C)||m(C),O=T&&T[2],k=T&&T[3],x=k==='"'?"mtext":k==="`"?"mi":"",I=C.indexOf(k),F=I+1+C.slice(I+1).indexOf(k),B=I>0?t.fonts.get(O):"";return{tagname:x,text:C.slice(I+1,F),font:B,rest:C.slice(F+1)}}var g=["<mi>lim</mi>","<mo>∑</mo>","<mo>∏</mo>"];function y(C){return g.indexOf(C)>=0}var v={endsInFunc:o,isgroupStart:n,isgroupable:i,isvertGroupStart:l,splitNextGroup:a,splitNextVert:u,splitNextOperator:e,ismatrixInterior:s,isfontCommand:E,splitfont:b,shouldGoUnder:y},S=v;return cl.default=S,cl}var xS;function zHe(){if(xS)return ll;xS=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var t=n(VHe()),e=gN();function n(j){return j&&j.__esModule?j:{default:j}}function i(j,ae){return o(j)||r(j,ae)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function r(j,ae){var ve=[],ee=!0,Ee=!1,xe=void 0;try{for(var Me=j[Symbol.iterator](),Z;!(ee=(Z=Me.next()).done)&&(ve.push(Z.value),!(ae&&ve.length===ae));ee=!0);}catch(ye){Ee=!0,xe=ye}finally{try{!ee&&Me.return!=null&&Me.return()}finally{if(Ee)throw xe}}return ve}function o(j){if(Array.isArray(j))return j}function a(j){return function ae(ve,ee){if(typeof ve=="object")return function(xe){return ae(xe,ve)};if(typeof ee!="object")return"<".concat(j,">").concat(ve,"</").concat(j,">");var Ee=Object.keys(ee).map(function(xe){return"".concat(xe,'="').concat(ee[xe],'"')}).join(" ");return"<".concat(j," ").concat(Ee,">").concat(ve,"</").concat(j,">")}}var l=a("mi"),u=a("mn"),d=a("mo"),h=a("mfrac"),f=a("msup"),_=a("msub"),m=a("msubsup"),E=a("munder"),b=a("mover"),g=a("munderover"),y=a("menclose"),v=a("mrow"),S=a("msqrt"),C=a("mroot"),T=a("mfenced"),O=a("mtable"),k=a("mtr"),x=a("mtd");function I(j){var ae=j.decimalMark==="."?"\\.":j.decimalMark,ve=new RegExp("^".concat(e.numbers.digitRange,"+(").concat(ae).concat(e.numbers.digitRange,"+)?")),ee=Me(j.colSep),Ee=Me(j.rowSep),xe=Me(`
|
||
`);function Me(z){return function(pe){for(var re=[],ce=0,M=0,N=0;N<pe.length;N+=1){var W=pe.slice(N),ue=pe[N];W.startsWith(z)&&!pe.slice(0,N).match(/\\(\\{2})*$/)?ce===0&&(re.push(pe.slice(M,N)),M=N+z.length):ue.match(e.groupings.open.regexp)?ce+=1:ue.match(e.groupings.close.regexp)&&(ce-=1)}return re.push(pe.slice(M)),re}}var Z=function z(pe,re,ce,M){if(!pe)return re;if(pe.match(/^\s/)){if(pe.match(/^\s+(\/[^\/]|^[^\^]|_[^_|])/))return z(pe.trim(),re);var N=pe.match(/^ +/),W=N?N[0].length:0;if(W>1){var ue='<mspace width="'.concat(W-1,'ex" />');return z(pe.trim(),re+ue)}return z(pe.trim(),re)}var X=fe(pe,M),ie=i(X,2),Ae=ie[0],Ce=ie[1];if((Ce&&Ce.trimLeft().startsWith("/")||Ce.trimLeft().startsWith("./"))&&!Ce.trimLeft().match(/^\.?\/\//)){var ke=K(Ae,Ce),Qe=i(ke,2);Ae=Qe[0],Ce=Qe[1]}return z(Ce,re+Ae)};function ye(z){if(z.trim().length===0)return"";var pe=Z(z,"",!1,!0);return pe===ne(pe)?pe:v(pe)}function fe(z,pe,re){if(!z)return["",""];var ce,M,N=z[0],W=z.slice(1),ue=N+(W.match(/^[A-Za-z]+/)||"");if(z.startsWith("sqrt")){var X=fe(z.slice(4).trim(),pe);ce=S(X[0]?B(X[0]):v("")),M=X[1]}else if(z.startsWith("root")){var ie=fe(z.slice(4).trimLeft(),pe),Ae=ie[0]?B(ie[0]):v(""),Ce=fe(ie[1].trimLeft(),pe),ke=Ce[0]?B(Ce[0]):v("");ce=C(ke+Ae),M=Ce[1]}else if(N==="\\"&&z.length>1)if(z[1].match(/[(\[]/)){var Qe=L(W);ce=d(z.slice(2,Qe)),M=z.slice(Qe+1)}else ce=d(z[1]),M=z.slice(2);else if(e.accents.contains(ue)){var ct=e.accents.get(ue),Pe=z.slice(ue.length).trimLeft(),ut=Pe.match(/^\s*\(?([ij])\)?/),Je=fe(Pe);switch(ct.type){case"over":ut?(ce=b(l(ut[1]==="i"?"ı":"ȷ")+d(ct.accent,{accent:!0})),M=Pe.slice(ut[0].length)):(ce=b(B(Je[0])+d(ct.accent,{accent:!0})),M=Je[1]);break;case"under":ce=E(B(Je[0])+d(ct.accent)),M=Je[1];break;case"enclose":ce=y(B(Je[0]),ct.attrs),M=Je[1];break;default:throw new Error("Invalid config for accent "+ue)}}else if(t.default.isfontCommand(z)){var qe=t.default.splitfont(z);ce=a(qe.tagname)(qe.text,qe.font&&{mathvariant:qe.font}),M=qe.rest}else if(e.groupings.complex.contains(ue)){var tt=e.groupings.complex.get(ue),Fe=z.slice(ue.length).trimLeft(),pt=fe(Fe);ce=T(B(pt[0]),tt),M=pt[1]}else if(t.default.isgroupStart(z)||t.default.isvertGroupStart(z)){var oe=t.default.isgroupStart(z)?t.default.splitNextGroup(z):t.default.splitNextVert(z),Ke=i(oe,5),Ue=Ke[1],Oe=Ke[2],Be=Ke[3],dt=Ke[4];M=e.groupings.open.get(dt);var Et=function(){var In=xe(Oe);return In.length>1?In:Ee(Oe)}();if(t.default.ismatrixInterior(Oe.trim(),j.colSep,j.rowSep)){Oe.trim().endsWith(j.colSep)&&(Oe=Oe.trimRight().slice(0,-1));var Qt=Ue==="{"&&Be==="",cn=le(Oe,Qt&&{columnalign:"center left"});ce=T(cn,{open:Ue,close:Be})}else if(Et.length>1)if(Et.length===2&&Ue==="("&&Be===")"){var Ct=h(Et.map(ye).join(""),{linethickness:0});ce=T(Ct,{open:Ue,close:Be})}else{var $t=Et.map(ee);U($t).length===1&&U($t)[0].match(/^\s*$/)&&($t=$t.slice(0,-1));var Sn=$t.map(function(In){return k(In.map(Q(x,ye)).join(""))}).join("");ce=T(O(Sn),{open:Ue,close:Be})}else{var bs=ee(Oe),Mr=bs.map(ye).join(""),ci={open:Ue,close:Be};j.colSep!==","&&(ci.separators=j.colSep),ce=T(Mr,ci)}}else if(!pe&&t.default.isgroupable(z,j)){var Tn=de(z);ce=ye(Tn[0]),M=Tn[1]}else if(e.numbers.isdigit(N)){var di=z.match(ve)[0];ce=u(di),M=W.slice(di.length-1)}else if(z.match(/^#`[^`]+`/)){var ji=z.match(/^#`([^`]+)`/)[1];ce=u(ji),M=z.slice(ji.length+3)}else if(z.match(new RegExp("^"+e.operators.regexp.source))&&!e.identifiers.contains(ue)){var Es=t.default.splitNextOperator(z),ys=i(Es,2),vs=ys[0],nt=ys[1],R=z.startsWith("'"),Y=H(["∂","∇"],vs),te=H(["|"],vs),ge=z.startsWith("| "),me={};R&&(me.lspace=0,me.rspace=0),Y&&(me.rspace=0),te&&(me.stretchy=!0),ge&&(me.lspace="veryverythickmathspace",me.rspace="veryverythickmathspace"),ce=d(vs,!$(me)&&me),M=nt}else if(e.identifiers.contains(ue)){var Ve=e.identifiers[ue],Xe=Ve.match(/[\u0391-\u03A9\u2100-\u214F\u2200-\u22FF]/);ce=Xe?l(Ve,{mathvariant:"normal"}):l(Ve),M=W.slice(ue.length-1)}else N==="O"&&W[0]==="/"?(ce=l(e.identifiers["O/"],{mathvariant:"normal"}),M=W.slice(1)):(ce=l(N),M=W);if(M&&M.trimLeft().match(/\.?[\^_]/)){if((!re||!re.match(/m(sup|over)/))&&M.trim().startsWith("_")&&(M.trim().length<=1||!M.trim()[1].match(/[|_]/))){var it=Ne(ce,M),at=i(it,2);ce=at[0],M=at[1]}else if(re!=="mover"&&M.trim().startsWith("._")&&(M.trim().length<=2||!M.trim()[2].match(/[|_]/))){var rt=D(ce,M),_t=i(rt,2);ce=_t[0],M=_t[1]}else if((!re||!re.match(/m(sub|under)/))&&M.trim().startsWith("^")&&(M.trim().length<=1||M.trim()[1]!=="^")){var ht=Le(ce,M),Kt=i(ht,2);ce=Kt[0],M=Kt[1]}else if(re!=="munder"&&M.trim().startsWith(".^")&&(M.trim().length<=2||M.trim()[2]!=="^")){var xn=q(ce,M),sn=i(xn,2);ce=sn[0],M=sn[1]}}return[ce,M]}function Ne(z,pe){var re=fe(pe.trim().slice(1).trim(),!0,"msub"),ce=re[0]?B(re[0]):v(""),M,N=re[1];if(N&&N.trim().startsWith("^")&&(N.trim().length<=1||!N.trim()[1]!=="^")){var W=fe(N.trim().slice(1).trim(),!0),ue=W[0]?B(W[0]):v(""),X=t.default.shouldGoUnder(z)?g:m;M=X(z+ce+ue),N=W[1]}else{var ie=t.default.shouldGoUnder(z)?E:_;M=ie(z+ce)}return[M,N]}function Le(z,pe){var re=fe(pe.trim().slice(1).trim(),!0,"msup"),ce=re[0]?B(re[0]):v(""),M,N=re[1];if(N.trim().startsWith("_")&&(N.trim().length<=1||!N.trim()[1].match(/[|_]/))){var W=fe(N.trim().slice(1).trim(),!0),ue=W[0]?B(W[0]):v(""),X=t.default.shouldGoUnder(z)?g:m;M=X(z+ue+ce),N=W[1]}else{var ie=t.default.shouldGoUnder(z)?b:f;M=ie(z+ce)}return[M,N]}function D(z,pe){var re=fe(pe.trim().slice(2).trim(),!0,"munder"),ce=re[0]?B(re[0]):v(""),M,N=re[1],W=N.match(/^(\.?\^)[^\^]/);if(W){var ue=fe(N.trim().slice(W[1].length).trim(),!0),X=ue[0]?B(ue[0]):v("");M=g(z+ce+X),N=ue[1]}else M=E(z+ce);return[M,N]}function q(z,pe){var re=fe(pe.trim().slice(2).trim(),!0,"mover"),ce=re[0]?B(re[0]):v(""),M,N=re[1],W=N.match(/^(\.?_)[^_|]/);if(W){var ue=fe(N.trim().slice(W[1].length).trim(),!0),X=ue[0]?B(ue[0]):v("");M=g(z+X+ce),N=ue[1]}else M=b(z+ce);return[M,N]}function K(z,pe){var re=pe.trim().startsWith("./"),ce=pe.trim().slice(re?2:1),M,N,W;if(ce.startsWith(" ")){var ue=ce.trim().split(" ");M=ye(ue[0]),W=ce.trimLeft().slice(ue[0].length+1)}else{var X=fe(ce),ie=i(X,2);M=ie[0],W=ie[1]}return M=M||v(""),N=h(B(z)+B(M),re&&{bevelled:!0}),W&&W.trim().startsWith("/")||W.trim().startsWith("./")?K(N,W):[N,W]}function de(z){var pe=new RegExp("(\\s|".concat(j.colSep,"|").concat(j.rowSep,"|$)")),re=z.match(pe),ce=z.slice(0,re.index),M=re[0],N=z.slice(re.index+1),W=ce,ue=M+N;if(!t.default.isgroupStart(N.trim())&&t.default.endsInFunc(ce)){var X=de(N);W+=M+X[0],ue=X[1]}else if(ce.match(/root$/)){var ie=de(N),Ae=de(ie[1].trimLeft());W+=M+ie[0]+" "+Ae[0],ue=M+Ae[1]}return[W,ue]}function le(z,pe){var re=function(){var ce=ee(z);return ce.length>1?ce:xe(z)}().map(function(ce){return ce.trim().slice(1,-1)});return O(re.map(Re).join(""),pe)}function Re(z,pe){if(pe=typeof pe=="string"?pe:"",!z||z.length===0)return k(pe);var re=Ie(z.trim(),""),ce=i(re,2),M=ce[0],N=ce[1];return Re(N.trim(),pe+M)}function Ie(z,pe){if(!z||z.length===0)return[x(pe),""];if(z[0]===j.colSep)return[x(pe),z.slice(1).trim()];var re=fe(z),ce=i(re,2),M=ce[0],N=ce[1];return Ie(N.trim(),pe+M)}return Z}function F(j){var ae=ne(j),ve=j.slice(0,j.lastIndexOf(ae));return[ve,ae]}function B(j){var ae=j.replace(/^<mfenced[^>]*>/,"").replace(/<\/mfenced>$/,"");return F(ae)[1]===ae?ae:v(ae)}function ne(j){var ae=j.match(/<\/(m[a-z]+)>$/);if(!ae){var ve=j.match(/<mspace\s*([a-z]+="[a-z]")*\s*\?>/);if(ve){var ee=ve.match[0].length;return j.slice(ee)}else return""}var Ee=ae[1],xe=j.length-(Ee.length+3),Me=0;for(xe;xe>=0;xe-=1){if(j.slice(xe).startsWith("<".concat(Ee))){if(Me===0)break;Me-=1}j.slice(xe-2).startsWith("</".concat(Ee))&&(Me+=1)}return j.slice(xe)}function L(j){for(var ae=j[0],ve=ae==="("?")":ae==="["?"]":j[0],ee=0,Ee=0,xe=0;xe<j.length;xe+=1){var Me=j[xe];if(Ee+=1,Me===ve){if(ee-=1,ee===0)break}else Me===ae&&(ee+=1)}return Ee}function $(j){return Object.keys(j).length===0}function H(j,ae){return j.indexOf(ae)>=0}function U(j){return j.slice(-1)[0]}function Q(j,ae){return function(ve){return j(ae(ve))}}I.getlastel=ne;var J=I;return ll.default=J,ll}var CS;function HHe(){if(CS)return Ao;CS=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.ascii2mathml=n,Ao.default=void 0;var t=e(zHe());function e(s){return s&&s.__esModule?s:{default:s}}function n(s,r){if(typeof s=="object")return function(h,f){var _=Object.assign({},s,f);return n(h,_)};if(r=typeof r=="object"?r:{},r.annotate=r.annotate||!1,r.bare=r.bare||!1,r.display=r.display||"inline",r.standalone=r.standalone||!1,r.dir=r.dir||"ltr",r.decimalMark=r.decimalMark||".",r.colSep=r.colSep||",",r.rowSep=r.rowSep||";",r.decimalMark===","&&r.colSep===","&&(r.colSep=";"),r.colSep===";"&&r.rowSep===";"&&(r.rowSep=";;"),r.bare){if(r.standalone)throw new Error("Can't output a valid HTML without a root <math> element");if(r.display&&r.display.toLowerCase()!=="inline")throw new Error("Can't display block without root element.");if(r.dir&&r.dir.toLowerCase()!=="ltr")throw new Error("Can't have right-to-left direction without root element.")}var o=(0,t.default)(r),a,l=r.bare?function(h){return h}:function(h){return"<math".concat(r.display!=="inline"?' display="'.concat(r.display,'"'):"").concat(r.dir!=="ltr"?' dir="'.concat(r.dir,'"'):"",">").concat(h,"</math>")};if(r.annotate){var u=o(s.trim(),""),d=u===t.default.getlastel(u)?u:"<mrow>".concat(u,"</mrow>");a=l("<semantics>"+d+'<annotation encoding="application/AsciiMath">'+s+"</annotation></semantics>")}else a=l(o(s.trim(),""));return r.standalone&&(a="<!DOCTYPE html><html><head><title>"+s+"</title></head><body>"+a+"</body></html>"),a}var i=n;return Ao.default=i,Ao}var Qp=null;function wS(t,e,n){var i=e,s,r,o,a,l,u,d,h=!0,f=!0,_=t.posMax,m=t.md.utils.isWhiteSpace;return s=e>0?t.src.charCodeAt(e-1):32,i>=_&&(a=!1),i+=n,o=i-e,r=i<_?t.src.charCodeAt(i):32,u=m(s),d=m(r),d&&(h=!1),u&&(f=!1),a=h,l=f,{can_open:a,can_close:l,delims:o}}function qHe(t,e){return function(i,s){var r,o,a,l,u,d=i.posMax,h=i.pos,f=i.src.slice(h,h+t.length);if(f!==t||s)return!1;if(a=wS(i,h,f.length),r=a.delims,!a.can_open)return i.pos+=r,i.pending+=i.src.slice(h,i.pos),!0;for(i.pos=h+t.length;i.pos<d;){if(u=i.src.slice(i.pos,i.pos+e.length),u===e&&(a=wS(i,i.pos,e.length),a.can_close)){o=!0;break}i.md.inline.skipToken(i)}return o?(i.posMax=i.pos,i.pos=h+e.length,l=i.push("math_inline","math",0),l.content=i.src.slice(i.pos,i.posMax),l.markup=t,i.pos=i.posMax+e.length,i.posMax=d,!0):(i.pos=h,!1)}}function YHe(t,e){return function(i,s,r,o){var a,l,u,d,h,f,_,m,E=!1,b=i.bMarks[s]+i.tShift[s],g=i.eMarks[s];if(b+t.length>g||(a=i.src.slice(b,b+t.length),a!==t))return!1;if(b+=t.length,f=i.src.slice(b,g),o)return!0;for(f.trim().slice(-e.length)===e&&(f=f.trim().slice(0,-e.length),E=!0),d=s;!(E||(d++,d>=r)||(b=i.bMarks[d]+i.tShift[d],g=i.eMarks[d],b<g&&i.tShift[d]<i.blkIndent));)i.src.slice(b,g).trim().slice(-e.length)===e&&(i.tShift[d]-i.blkIndent>=4||(m=i.src.slice(0,g).lastIndexOf(e),_=i.src.slice(b,m),b+=_.length+e.length,b=i.skipSpaces(b),!(b<g)&&(E=!0)));return l=i.tShift[s],i.line=d+(E?1:0),h=i.push("math_block","math",0),h.block=!0,h.content=(f&&f.trim()?f+`
|
||
`:"")+i.getLines(s+1,d,l,!0)+(_&&_.trim()?_:""),h.info=u,h.map=[s,i.line],h.markup=t,!0}}function RS(t){if(Qp===null)try{Qp=HHe().default}catch{return t&&t.display==="block"?function(i,s){return'<div class="math block">'+i[s].content+"</div>"}:function(i,s){return'<span class="math inline">'+i[s].content+"</span>"}}var e=Qp(Object.assign({},t));return t&&t.display==="block"?function(n,i){return e(n[i].content)+`
|
||
`}:function(n,i){return e(n[i].content)}}var $He=function(e,n){n=typeof n=="object"?n:{};var i=n.inlineOpen||"$$",s=n.inlineClose||"$$",r=n.blockOpen||"$$$",o=n.blockClose||"$$$",a=n.inlineRenderer?function(h,f){return n.inlineRenderer(h[f].content,h[f])}:RS(n.renderingOptions),l=n.blockRenderer?function(h,f){return n.blockRenderer(h[f].content,h[f])+`
|
||
`}:RS(Object.assign({display:"block"},n.renderingOptions)),u=qHe(i,s),d=YHe(r,o);e.inline.ruler.before("escape","math_inline",u),e.block.ruler.after("blockquote","math_block",d,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=a,e.renderer.rules.math_block=l};const WHe=Ar($He);function Ks(){this.__highest_alphabet__=0,this.__match_alphabets__={},this.__initial_state__=0,this.__accept_states__={},this.__transitions__={},this.__actions__={}}Ks.prototype.set_highest_alphabet=function(t){this.__highest_alphabet__=t};Ks.prototype.set_match_alphabets=function(t){this.__match_alphabets__=t};Ks.prototype.set_initial_state=function(t){this.__initial_state__=t};Ks.prototype.set_accept_states=function(t){for(var e=0;e<t.length;e++)this.__accept_states__[t[e]]=!0};Ks.prototype.set_transitions=function(t){this.__transitions__=t};Ks.prototype.set_actions=function(t){this.__actions__=t};Ks.prototype.update_transition=function(t,e){this.__transitions__[t]=Object.assign(this.__transitions__[t]||Object(),e)};Ks.prototype.execute=function(t,e){var n,i,s;for(n=this.__initial_state__,i=t;n&&i<e;i++){for(s=this.__highest_alphabet__;s>0&&!(n&s&&this.__match_alphabets__[s].call(this,i,n,s));s>>=4);if(this.__actions__(i,n,s),s===0)break;n=this.__transitions__[n][s]||0}return!!this.__accept_states__[n]};var KHe=Ks,jHe=KHe,QHe=function(e,n){var i={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};n=e.utils.assign({},i,n||{});function s(d,h){var f=d.bMarks[h]+d.sCount[h],_=d.bMarks[h]+d.blkIndent,m=d.skipSpacesBack(d.eMarks[h],_),E=[],b,g,y=!1,v=!1,S=0;for(b=f;b<m;b++)switch(d.src.charCodeAt(b)){case 92:y=!0;break;case 96:g=d.skipChars(b,96)-1,g>b?(v||(S===0?S=g-b:S===g-b&&(S=0)),b=g):(v||!y&&!S)&&(v=!v),y=!1;break;case 124:!v&&!y&&E.push(b),y=!1;break;default:y=!1;break}return E.length===0||(E[0]>_&&E.unshift(_-1),E[E.length-1]<m-1&&E.push(m)),E}function r(d,h,f){var _={text:null,label:null},m=d.bMarks[f]+d.sCount[f],E=d.eMarks[f],b=/^\[(.+?)\](\[([^\[\]]+)\])?\s*$/,g=d.src.slice(m,E).match(b);return g?h?!0:(_.text=g[1],!n.autolabel&&!g[2]||(_.label=g[2]||g[1],_.label=_.label.toLowerCase().replace(/\W+/g,"")),_):!1}function o(d,h,f){var _={bounds:null,multiline:null},m=s(d,f),E,b,g;return m.length<2?!1:h?!0:(_.bounds=m,n.multiline&&(E=d.bMarks[f]+d.sCount[f],b=d.eMarks[f]-1,_.multiline=d.src.charCodeAt(b)===92,_.multiline&&(g=d.eMarks[f],d.eMarks[f]=d.skipSpacesBack(b,E),_.bounds=s(d,f),d.eMarks[f]=g)),_)}function a(d,h,f){var _={aligns:[],wraps:[]},m=s(d,f),E=/^:?(-+|=+):?\+?$/,b,g,y;if(d.sCount[f]-d.blkIndent>=4||m.length===0)return!1;for(b=0;b<m.length-1;b++){if(g=d.src.slice(m[b]+1,m[b+1]).trim(),!E.test(g))return!1;switch(_.wraps.push(g.charCodeAt(g.length-1)===43),y=(g.charCodeAt(0)===58)<<4|g.charCodeAt(g.length-1-_.wraps[b])===58,y){case 0:_.aligns.push("");break;case 1:_.aligns.push("right");break;case 16:_.aligns.push("left");break;case 17:_.aligns.push("center");break}}return h?!0:_}function l(d,h,f){return d.isEmpty(f)}function u(d,h,f,_){var m=new jHe,E=16,b=-1,g,y,v,S,C,T,O=[],k,x,I,F,B,ne,L,$,H,U;if(h+2>f||(y=new d.Token("table_open","table",1),y.meta={sep:null,cap:null,tr:[]},m.set_highest_alphabet(65536),m.set_initial_state(65792),m.set_accept_states([65552,65553,0]),m.set_match_alphabets({65536:r.bind(this,d,!0),4096:a.bind(this,d,!0),256:o.bind(this,d,!0),16:o.bind(this,d,!0),1:l.bind(this,d,!0)}),m.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),n.headerless&&(m.set_initial_state(69888),m.update_transition(69888,{65536:4352,4096:65552,256:4352}),v=new d.Token("tr_placeholder","tr",0),v.meta=Object()),n.multibody||m.update_transition(65552,{65536:0,16:65552}),m.set_actions(function(j,ae,ve){switch(ve){case 65536:if(y.meta.cap)break;y.meta.cap=r(d,!1,j),y.meta.cap.map=[j,j+1],y.meta.cap.first=j===h;break;case 4096:y.meta.sep=a(d,!1,j),y.meta.sep.map=[j,j+1],v.meta.grp|=1,E=16;break;case 256:case 16:v=new d.Token("tr_open","tr",1),v.map=[j,j+1],v.meta=o(d,!1,j),v.meta.type=ve,v.meta.grp=E,E=0,y.meta.tr.push(v),n.multiline&&(v.meta.multiline&&b<0?b=y.meta.tr.length-1:!v.meta.multiline&&b>=0&&(g=y.meta.tr[b],g.meta.mbounds=y.meta.tr.slice(b).map(function(ee){return ee.meta.bounds}),g.map[1]=v.map[1],y.meta.tr=y.meta.tr.slice(0,b+1),b=-1));break;case 1:v.meta.grp|=1,E=16;break}}),m.execute(h,f)===!1)||!y.meta.tr.length)return!1;if(_)return!0;if(y.meta.tr[y.meta.tr.length-1].meta.grp|=1,y.map=k=[h,0],y.block=!0,y.level=d.level++,d.tokens.push(y),y.meta.cap){g=d.push("caption_open","caption",1),g.map=y.meta.cap.map;var Q=[],J=y.meta.cap.first?"top":"bottom";y.meta.cap.label!==null&&Q.push(["id",y.meta.cap.label]),J!=="top"&&Q.push(["style","caption-side: "+J]),g.attrs=Q,g=d.push("inline","",0),g.content=y.meta.cap.text,g.map=y.meta.cap.map,g.children=[],g=d.push("caption_close","caption",-1)}for(ne=0;ne<y.meta.tr.length;ne++){for(C=new d.Token("td_th_placeholder","",0),v=y.meta.tr[ne],v.meta.grp&16&&(I=v.meta.type===256?"thead":"tbody",g=d.push(I+"_open",I,1),g.map=x=[v.map[0],0],O=[]),v.block=!0,v.level=d.level++,d.tokens.push(v),L=0;L<v.meta.bounds.length-1;L++){if(B=[v.meta.bounds[L]+1,v.meta.bounds[L+1]],F=d.src.slice.apply(d.src,B),F===""){S=C.attrGet("colspan"),C.attrSet("colspan",S===null?2:S+1);continue}if(n.rowspan&&O[L]&&F.trim()==="^^"){T=O[L].attrGet("rowspan"),O[L].attrSet("rowspan",T===null?2:T+1),C=new d.Token("td_th_placeholder","",0);continue}if(I=v.meta.type===256?"th":"td",g=d.push(I+"_open",I,1),g.map=v.map,g.attrs=[],y.meta.sep.aligns[L]&&g.attrs.push(["style","text-align:"+y.meta.sep.aligns[L]]),y.meta.sep.wraps[L]&&g.attrs.push(["class","extend"]),C=O[L]=g,n.multiline&&v.meta.multiline&&v.meta.mbounds){for(F=new Array(v.map[0]).fill("").concat([F.trimRight()]),$=1;$<v.meta.mbounds.length;$++)L>v.meta.mbounds[$].length-2||(B=[v.meta.mbounds[$][L]+1,v.meta.mbounds[$][L+1]],F.push(d.src.slice.apply(d.src,B).trimRight()));for(U=new d.md.block.State(F.join(`
|
||
`),d.md,d.env,[]),U.level=v.level+1,d.md.block.tokenize(U,v.map[0],U.lineMax),H=0;H<U.tokens.length;H++)d.tokens.push(U.tokens[H])}else g=d.push("inline","",0),g.content=F.trim(),g.map=v.map,g.level=v.level+1,g.children=[];g=d.push(I+"_close",I,-1)}d.push("tr_close","tr",-1),v.meta.grp&1&&(I=v.meta.type===256?"thead":"tbody",g=d.push(I+"_close",I,-1),x[1]=v.map[1])}return k[1]=Math.max(x[1],y.meta.sep.map[1],y.meta.cap?y.meta.cap.map[1]:-1),g=d.push("table_close","table",-1),d.line=k[1],!0}e.block.ruler.at("table",u,{alt:["paragraph","reference"]})};const XHe=Ar(QHe);var ZHe=function(e,n){n=n||{};function i(s){for(var r=1,o=1,a=s.tokens.length;o<a-1;++o){var l=s.tokens[o];if(l.type==="inline"&&!(!l.children||l.children.length!==1&&l.children.length!==3)&&!(l.children.length===1&&l.children[0].type!=="image")&&!(l.children.length===3&&(l.children[0].type!=="link_open"||l.children[1].type!=="image"||l.children[2].type!=="link_close"))&&!(o!==0&&s.tokens[o-1].type!=="paragraph_open")&&!(o!==a-1&&s.tokens[o+1].type!=="paragraph_close")){var u=s.tokens[o-1];u.type="figure_open",u.tag="figure",s.tokens[o+1].type="figure_close",s.tokens[o+1].tag="figure",n.dataType==!0&&s.tokens[o-1].attrPush(["data-type","image"]);var d;if(n.link==!0&&l.children.length===1&&(d=l.children[0],l.children.unshift(new s.Token("link_open","a",1)),l.children[0].attrPush(["href",d.attrGet("src")]),l.children.push(new s.Token("link_close","a",-1))),d=l.children.length===1?l.children[0]:l.children[1],n.figcaption==!0&&d.children&&d.children.length&&(l.children.push(new s.Token("figcaption_open","figcaption",1)),l.children.splice(l.children.length,0,...d.children),l.children.push(new s.Token("figcaption_close","figcaption",-1)),d.children.length=0),n.copyAttrs&&d.attrs){const h=n.copyAttrs===!0?"":n.copyAttrs;u.attrs=d.attrs.filter(([f,_])=>f.match(h))}n.tabindex==!0&&(s.tokens[o-1].attrPush(["tabindex",r]),r++),n.lazyLoading==!0&&d.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",i)};const JHe=Ar(ZHe);var Nr={};Nr.getAttrs=function(t,e,n){const i=/[^\t\n\f />"'=]/,s=" ",r="=",o=".",a="#",l=[];let u="",d="",h=!0,f=!1;for(let _=e+n.leftDelimiter.length;_<t.length;_++){if(t.slice(_,_+n.rightDelimiter.length)===n.rightDelimiter){u!==""&&l.push([u,d]);break}const m=t.charAt(_);if(m===r&&h){h=!1;continue}if(m===o&&u===""){t.charAt(_+1)===o?(u="css-module",_+=1):u="class",h=!1;continue}if(m===a&&u===""){u="id",h=!1;continue}if(m==='"'&&d===""&&!f){f=!0;continue}if(m==='"'&&f){f=!1;continue}if(m===s&&!f){if(u==="")continue;l.push([u,d]),u="",d="",h=!0;continue}if(!(h&&m.search(i)===-1)){if(h){u+=m;continue}d+=m}}if(n.allowedAttributes&&n.allowedAttributes.length){const _=n.allowedAttributes;return l.filter(function(m){const E=m[0];function b(g){return E===g||g instanceof RegExp&&g.test(E)}return _.some(b)})}return l};Nr.addAttrs=function(t,e){for(let n=0,i=t.length;n<i;++n){const s=t[n][0];s==="class"?e.attrJoin("class",t[n][1]):s==="css-module"?e.attrJoin("css-module",t[n][1]):e.attrPush(t[n])}return e};Nr.hasDelimiters=function(t,e){if(!t)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(n){const i=e.leftDelimiter.length+1+e.rightDelimiter.length;if(!n||typeof n!="string"||n.length<i)return!1;function s(d){const h=d.charAt(e.leftDelimiter.length)===".",f=d.charAt(e.leftDelimiter.length)==="#";return h||f?d.length>=i+1:d.length>=i}let r,o,a,l;const u=i-e.rightDelimiter.length;switch(t){case"start":a=n.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,o=r===-1?-1:n.indexOf(e.rightDelimiter,u),l=n.charAt(o+e.rightDelimiter.length),l&&e.rightDelimiter.indexOf(l)!==-1&&(o=-1);break;case"end":r=n.lastIndexOf(e.leftDelimiter),o=r===-1?-1:n.indexOf(e.rightDelimiter,r+u),o=o===n.length-e.rightDelimiter.length?o:-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),o=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&&o!==-1&&s(n.substring(r,o+e.rightDelimiter.length))}};Nr.removeDelimiter=function(t,e){const n=qg(e.leftDelimiter),i=qg(e.rightDelimiter),s=new RegExp("[ \\n]?"+n+"[^"+n+i+"]+"+i+"$"),r=t.search(s);return r!==-1?t.slice(0,r):t};function qg(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Nr.escapeRegExp=qg;Nr.getMatchingOpeningToken=function(t,e){if(t[e].type==="softbreak")return!1;if(t[e].nesting===0)return t[e];const n=t[e].level,i=t[e].type.replace("_close","_open");for(;e>=0;--e)if(t[e].type===i&&t[e].level===n)return t[e];return!1};const e7e=/[&<>"]/,t7e=/[&<>"]/g,n7e={"&":"&","<":"<",">":">",'"':"""};function i7e(t){return n7e[t]}Nr.escapeHtml=function(t){return e7e.test(t)?t.replace(t7e,i7e):t};const At=Nr;var s7e=t=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+At.escapeRegExp(t.leftDelimiter)+"[^"+At.escapeRegExp(t.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:At.hasDelimiters("end",t)}],transform:(n,i)=>{const s=n[i],r=s.info.lastIndexOf(t.leftDelimiter),o=At.getAttrs(s.info,r,t);At.addAttrs(o,s),s.info=At.removeDelimiter(s.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:At.hasDelimiters("start",t)}]}],transform:(n,i,s)=>{const r=n[i].children[s],o=r.content.indexOf(t.rightDelimiter),a=n[i].children[s-1],l=At.getAttrs(r.content,0,t);At.addAttrs(l,a),r.content.length===o+t.rightDelimiter.length?n[i].children.splice(s,1):r.content=r.content.slice(o+t.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:At.hasDelimiters("only",t)}],transform:(n,i)=>{const s=n[i+2],r=At.getMatchingOpeningToken(n,i),o=At.getAttrs(s.content,0,t);At.addAttrs(o,r),n.splice(i+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:At.hasDelimiters("start",t)}]}],transform:(n,i,s)=>{const r=n[i].children[s],o=r.content,a=At.getAttrs(o,0,t),l=At.getMatchingOpeningToken(n[i].children,s-1);At.addAttrs(a,l),r.content=o.slice(o.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:At.hasDelimiters("only",t)}]}],transform:(n,i,s)=>{const o=n[i].children[s].content,a=At.getAttrs(o,0,t);let l=i-2;for(;n[l-1]&&n[l-1].type!=="ordered_list_open"&&n[l-1].type!=="bullet_list_open";)l--;At.addAttrs(a,n[l-1]),n[i].children=n[i].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:At.hasDelimiters("only",t),children:n=>n.length===1},{shift:3,type:"paragraph_close"}],transform:(n,i)=>{const r=n[i+2].content,o=At.getAttrs(r,0,t),a=At.getMatchingOpeningToken(n,i);At.addAttrs(o,a),n.splice(i+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:At.hasDelimiters("end",t)}]}],transform:(n,i,s)=>{const r=n[i].children[s],o=r.content,a=At.getAttrs(o,o.lastIndexOf(t.leftDelimiter),t);At.addAttrs(a,n[i-2]);const l=o.slice(0,o.lastIndexOf(t.leftDelimiter));r.content=AS(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:At.hasDelimiters("only",t)}]}],transform:(n,i,s)=>{const r=n[i].children[s],o=At.getAttrs(r.content,0,t);let a=i+1;for(;n[a+1]&&n[a+1].nesting===-1;)a++;const l=At.getMatchingOpeningToken(n,a);At.addAttrs(o,l),n[i].children=n[i].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,i)=>{const s=n[i];s.type="hr",s.tag="hr",s.nesting=0;const r=n[i+1].content,o=r.lastIndexOf(t.leftDelimiter),a=At.getAttrs(r,o,t);At.addAttrs(a,s),s.markup=r,n.splice(i+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:At.hasDelimiters("end",t),type:n=>n!=="code_inline"&&n!=="math_inline"}]}],transform:(n,i,s)=>{const r=n[i].children[s],o=r.content,a=At.getAttrs(o,o.lastIndexOf(t.leftDelimiter),t);let l=i+1;for(;n[l+1]&&n[l+1].nesting===-1;)l++;const u=At.getMatchingOpeningToken(n,l);At.addAttrs(a,u);const d=o.slice(0,o.lastIndexOf(t.leftDelimiter));r.content=AS(d)!==" "?d:d.slice(0,-1)}}]};function AS(t){return t.slice(-1)[0]}const r7e=s7e,o7e={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var a7e=function(e,n){let i=Object.assign({},o7e);i=Object.assign(i,n);const s=r7e(i);function r(o){const a=o.tokens;for(let l=0;l<a.length;l++)for(let u=0;u<s.length;u++){const d=s[u];let h=null;d.tests.every(_=>{const m=Yg(a,l,_);return m.j!==null&&(h=m.j),m.match})&&(d.transform(a,l,h),(d.name==="inline attributes"||d.name==="inline nesting 0")&&u--)}}e.core.ruler.before("linkify","curly_attributes",r)};function Yg(t,e,n){const i={match:!1,j:null},s=n.shift!==void 0?e+n.shift:n.position;if(n.shift!==void 0&&s<0)return i;const r=d7e(t,s);if(r===void 0)return i;for(const o of Object.keys(n))if(!(o==="shift"||o==="position")){if(r[o]===void 0)return i;if(o==="children"&&l7e(n.children)){if(r.children.length===0)return i;let a;const l=n.children,u=r.children;if(l.every(d=>d.position!==void 0)){if(a=l.every(d=>Yg(u,d.position,d).match),a){const d=u7e(l).position;i.j=d>=0?d:u.length+d}}else for(let d=0;d<u.length;d++)if(a=l.every(h=>Yg(u,d,h).match),a){i.j=d;break}if(a===!1)return i;continue}switch(typeof n[o]){case"boolean":case"number":case"string":if(r[o]!==n[o])return i;break;case"function":if(!n[o](r[o]))return i;break;case"object":if(c7e(n[o])){if(n[o].every(l=>l(r[o]))===!1)return i;break}default:throw new Error(`Unknown type of pattern test (key: ${o}). Test should be of type boolean, number, string, function or array of functions.`)}}return i.match=!0,i}function l7e(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="object")}function c7e(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="function")}function d7e(t,e){return e>=0?t[e]:t[t.length+e]}function u7e(t){return t.slice(-1)[0]||{}}const p7e=Ar(a7e);function bN(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],i=typeof n;(i==="object"||i==="function")&&!Object.isFrozen(n)&&bN(n)}),t}let NS=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function EN(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function gr(t,...e){const n=Object.create(null);for(const i in t)n[i]=t[i];return e.forEach(function(i){for(const s in i)n[s]=i[s]}),n}const _7e="</span>",OS=t=>!!t.scope,h7e=(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((i,s)=>`${i}${"_".repeat(s+1)}`)].join(" ")}return`${e}${t}`};class f7e{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=EN(e)}openNode(e){if(!OS(e))return;const n=h7e(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){OS(e)&&(this.buffer+=_7e)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const IS=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class _E{constructor(){this.rootNode=IS(),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=IS({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(i=>this._walk(e,i)),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=>{_E._collapse(n)}))}}class m7e extends _E{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const i=e.root;n&&(i.scope=`language:${n}`),this.add(i)}toHTML(){return new f7e(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ec(t){return t?typeof t=="string"?t:t.source:null}function yN(t){return To("(?=",t,")")}function g7e(t){return To("(?:",t,")*")}function b7e(t){return To("(?:",t,")?")}function To(...t){return t.map(n=>ec(n)).join("")}function E7e(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function hE(...t){return"("+(E7e(t).capture?"":"?:")+t.map(i=>ec(i)).join("|")+")"}function vN(t){return new RegExp(t.toString()+"|").exec("").length-1}function y7e(t,e){const n=t&&t.exec(e);return n&&n.index===0}const v7e=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function fE(t,{joinWith:e}){let n=0;return t.map(i=>{n+=1;const s=n;let r=ec(i),o="";for(;r.length>0;){const a=v7e.exec(r);if(!a){o+=r;break}o+=r.substring(0,a.index),r=r.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+s):(o+=a[0],a[0]==="("&&n++)}return o}).map(i=>`(${i})`).join(e)}const S7e=/\b\B/,SN="[a-zA-Z]\\w*",mE="[a-zA-Z_]\\w*",TN="\\b\\d+(\\.\\d+)?",xN="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",CN="\\b(0b[01]+)",T7e="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",x7e=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=To(e,/.*\b/,t.binary,/\b.*/)),gr({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,i)=>{n.index!==0&&i.ignoreMatch()}},t)},tc={begin:"\\\\[\\s\\S]",relevance:0},C7e={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[tc]},w7e={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[tc]},R7e={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/},np=function(t,e,n={}){const i=gr({scope:"comment",begin:t,end:e,contains:[]},n);i.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 s=hE("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 i.contains.push({begin:To(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},A7e=np("//","$"),N7e=np("/\\*","\\*/"),O7e=np("#","$"),I7e={scope:"number",begin:TN,relevance:0},M7e={scope:"number",begin:xN,relevance:0},D7e={scope:"number",begin:CN,relevance:0},k7e={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[tc,{begin:/\[/,end:/\]/,relevance:0,contains:[tc]}]},L7e={scope:"title",begin:SN,relevance:0},P7e={scope:"title",begin:mE,relevance:0},U7e={begin:"\\.\\s*"+mE,relevance:0},F7e=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 Pc=Object.freeze({__proto__:null,APOS_STRING_MODE:C7e,BACKSLASH_ESCAPE:tc,BINARY_NUMBER_MODE:D7e,BINARY_NUMBER_RE:CN,COMMENT:np,C_BLOCK_COMMENT_MODE:N7e,C_LINE_COMMENT_MODE:A7e,C_NUMBER_MODE:M7e,C_NUMBER_RE:xN,END_SAME_AS_BEGIN:F7e,HASH_COMMENT_MODE:O7e,IDENT_RE:SN,MATCH_NOTHING_RE:S7e,METHOD_GUARD:U7e,NUMBER_MODE:I7e,NUMBER_RE:TN,PHRASAL_WORDS_MODE:R7e,QUOTE_STRING_MODE:w7e,REGEXP_MODE:k7e,RE_STARTERS_RE:T7e,SHEBANG:x7e,TITLE_MODE:L7e,UNDERSCORE_IDENT_RE:mE,UNDERSCORE_TITLE_MODE:P7e});function B7e(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function G7e(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function V7e(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=B7e,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function z7e(t,e){Array.isArray(t.illegal)&&(t.illegal=hE(...t.illegal))}function H7e(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 q7e(t,e){t.relevance===void 0&&(t.relevance=1)}const Y7e=(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(i=>{delete t[i]}),t.keywords=n.keywords,t.begin=To(n.beforeMatch,yN(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},$7e=["of","and","for","in","not","or","if","then","parent","list","value"],W7e="keyword";function wN(t,e,n=W7e){const i=Object.create(null);return typeof t=="string"?s(n,t.split(" ")):Array.isArray(t)?s(n,t):Object.keys(t).forEach(function(r){Object.assign(i,wN(t[r],e,r))}),i;function s(r,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const l=a.split("|");i[l[0]]=[r,K7e(l[0],l[1])]})}}function K7e(t,e){return e?Number(e):j7e(t)?0:1}function j7e(t){return $7e.includes(t.toLowerCase())}const MS={},so=t=>{console.error(t)},DS=(t,...e)=>{console.log(`WARN: ${t}`,...e)},No=(t,e)=>{MS[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),MS[`${t}/${e}`]=!0)},nu=new Error;function RN(t,e,{key:n}){let i=0;const s=t[n],r={},o={};for(let a=1;a<=e.length;a++)o[a+i]=s[a],r[a+i]=!0,i+=vN(e[a-1]);t[n]=o,t[n]._emit=r,t[n]._multi=!0}function Q7e(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw so("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),nu;if(typeof t.beginScope!="object"||t.beginScope===null)throw so("beginScope must be object"),nu;RN(t,t.begin,{key:"beginScope"}),t.begin=fE(t.begin,{joinWith:""})}}function X7e(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw so("skip, excludeEnd, returnEnd not compatible with endScope: {}"),nu;if(typeof t.endScope!="object"||t.endScope===null)throw so("endScope must be object"),nu;RN(t,t.end,{key:"endScope"}),t.end=fE(t.end,{joinWith:""})}}function Z7e(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function J7e(t){Z7e(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Q7e(t),X7e(t)}function eqe(t){function e(o,a){return new RegExp(ec(o),"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+=vN(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(fE(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const u=l.findIndex((h,f)=>f>0&&h!==void 0),d=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,d)}}class i{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(([u,d])=>l.addRule(u,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 u=l.exec(a);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,u=d.exec(a)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function s(o){const a=new i;return o.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function r(o,a){const l=o;if(o.isCompiled)return l;[G7e,H7e,J7e,Y7e].forEach(d=>d(o,a)),t.compilerExtensions.forEach(d=>d(o,a)),o.__beforeBegin=null,[V7e,z7e,q7e].forEach(d=>d(o,a)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=wN(o.keywords,t.case_insensitive)),l.keywordPatternRe=e(u,!0),a&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=ec(l.end)||"",o.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(d){return tqe(d==="self"?o:d)})),o.contains.forEach(function(d){r(d,l)}),o.starts&&r(o.starts,a),l.matcher=s(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=gr(t.classNameAliases||{}),r(t)}function AN(t){return t?t.endsWithParent||AN(t.starts):!1}function tqe(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return gr(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:AN(t)?gr(t,{starts:t.starts?gr(t.starts):null}):Object.isFrozen(t)?gr(t):t}var nqe="11.9.0";class iqe extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Xp=EN,kS=gr,LS=Symbol("nomatch"),sqe=7,NN=function(t){const e=Object.create(null),n=Object.create(null),i=[];let s=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",o={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:m7e};function l(U){return a.noHighlightRe.test(U)}function u(U){let Q=U.className+" ";Q+=U.parentNode?U.parentNode.className:"";const J=a.languageDetectRe.exec(Q);if(J){const j=x(J[1]);return j||(DS(r.replace("{}",J[1])),DS("Falling back to no-highlight mode for this block.",U)),j?J[1]:"no-highlight"}return Q.split(/\s+/).find(j=>l(j)||x(j))}function d(U,Q,J){let j="",ae="";typeof Q=="object"?(j=U,J=Q.ignoreIllegals,ae=Q.language):(No("10.7.0","highlight(lang, code, ...args) has been deprecated."),No("10.7.0",`Please use highlight(code, options) instead.
|
||
https://github.com/highlightjs/highlight.js/issues/2277`),ae=U,j=Q),J===void 0&&(J=!0);const ve={code:j,language:ae};$("before:highlight",ve);const ee=ve.result?ve.result:h(ve.language,ve.code,J);return ee.code=ve.code,$("after:highlight",ee),ee}function h(U,Q,J,j){const ae=Object.create(null);function ve(X,ie){return X.keywords[ie]}function ee(){if(!z.keywords){re.addText(ce);return}let X=0;z.keywordPatternRe.lastIndex=0;let ie=z.keywordPatternRe.exec(ce),Ae="";for(;ie;){Ae+=ce.substring(X,ie.index);const Ce=le.case_insensitive?ie[0].toLowerCase():ie[0],ke=ve(z,Ce);if(ke){const[Qe,ct]=ke;if(re.addText(Ae),Ae="",ae[Ce]=(ae[Ce]||0)+1,ae[Ce]<=sqe&&(M+=ct),Qe.startsWith("_"))Ae+=ie[0];else{const Pe=le.classNameAliases[Qe]||Qe;Me(ie[0],Pe)}}else Ae+=ie[0];X=z.keywordPatternRe.lastIndex,ie=z.keywordPatternRe.exec(ce)}Ae+=ce.substring(X),re.addText(Ae)}function Ee(){if(ce==="")return;let X=null;if(typeof z.subLanguage=="string"){if(!e[z.subLanguage]){re.addText(ce);return}X=h(z.subLanguage,ce,!0,pe[z.subLanguage]),pe[z.subLanguage]=X._top}else X=_(ce,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(M+=X.relevance),re.__addSublanguage(X._emitter,X.language)}function xe(){z.subLanguage!=null?Ee():ee(),ce=""}function Me(X,ie){X!==""&&(re.startScope(ie),re.addText(X),re.endScope())}function Z(X,ie){let Ae=1;const Ce=ie.length-1;for(;Ae<=Ce;){if(!X._emit[Ae]){Ae++;continue}const ke=le.classNameAliases[X[Ae]]||X[Ae],Qe=ie[Ae];ke?Me(Qe,ke):(ce=Qe,ee(),ce=""),Ae++}}function ye(X,ie){return X.scope&&typeof X.scope=="string"&&re.openNode(le.classNameAliases[X.scope]||X.scope),X.beginScope&&(X.beginScope._wrap?(Me(ce,le.classNameAliases[X.beginScope._wrap]||X.beginScope._wrap),ce=""):X.beginScope._multi&&(Z(X.beginScope,ie),ce="")),z=Object.create(X,{parent:{value:z}}),z}function fe(X,ie,Ae){let Ce=y7e(X.endRe,Ae);if(Ce){if(X["on:end"]){const ke=new NS(X);X["on:end"](ie,ke),ke.isMatchIgnored&&(Ce=!1)}if(Ce){for(;X.endsParent&&X.parent;)X=X.parent;return X}}if(X.endsWithParent)return fe(X.parent,ie,Ae)}function Ne(X){return z.matcher.regexIndex===0?(ce+=X[0],1):(ue=!0,0)}function Le(X){const ie=X[0],Ae=X.rule,Ce=new NS(Ae),ke=[Ae.__beforeBegin,Ae["on:begin"]];for(const Qe of ke)if(Qe&&(Qe(X,Ce),Ce.isMatchIgnored))return Ne(ie);return Ae.skip?ce+=ie:(Ae.excludeBegin&&(ce+=ie),xe(),!Ae.returnBegin&&!Ae.excludeBegin&&(ce=ie)),ye(Ae,X),Ae.returnBegin?0:ie.length}function D(X){const ie=X[0],Ae=Q.substring(X.index),Ce=fe(z,X,Ae);if(!Ce)return LS;const ke=z;z.endScope&&z.endScope._wrap?(xe(),Me(ie,z.endScope._wrap)):z.endScope&&z.endScope._multi?(xe(),Z(z.endScope,X)):ke.skip?ce+=ie:(ke.returnEnd||ke.excludeEnd||(ce+=ie),xe(),ke.excludeEnd&&(ce=ie));do z.scope&&re.closeNode(),!z.skip&&!z.subLanguage&&(M+=z.relevance),z=z.parent;while(z!==Ce.parent);return Ce.starts&&ye(Ce.starts,X),ke.returnEnd?0:ie.length}function q(){const X=[];for(let ie=z;ie!==le;ie=ie.parent)ie.scope&&X.unshift(ie.scope);X.forEach(ie=>re.openNode(ie))}let K={};function de(X,ie){const Ae=ie&&ie[0];if(ce+=X,Ae==null)return xe(),0;if(K.type==="begin"&&ie.type==="end"&&K.index===ie.index&&Ae===""){if(ce+=Q.slice(ie.index,ie.index+1),!s){const Ce=new Error(`0 width match regex (${U})`);throw Ce.languageName=U,Ce.badRule=K.rule,Ce}return 1}if(K=ie,ie.type==="begin")return Le(ie);if(ie.type==="illegal"&&!J){const Ce=new Error('Illegal lexeme "'+Ae+'" for mode "'+(z.scope||"<unnamed>")+'"');throw Ce.mode=z,Ce}else if(ie.type==="end"){const Ce=D(ie);if(Ce!==LS)return Ce}if(ie.type==="illegal"&&Ae==="")return 1;if(W>1e5&&W>ie.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ce+=Ae,Ae.length}const le=x(U);if(!le)throw so(r.replace("{}",U)),new Error('Unknown language: "'+U+'"');const Re=eqe(le);let Ie="",z=j||Re;const pe={},re=new a.__emitter(a);q();let ce="",M=0,N=0,W=0,ue=!1;try{if(le.__emitTokens)le.__emitTokens(Q,re);else{for(z.matcher.considerAll();;){W++,ue?ue=!1:z.matcher.considerAll(),z.matcher.lastIndex=N;const X=z.matcher.exec(Q);if(!X)break;const ie=Q.substring(N,X.index),Ae=de(ie,X);N=X.index+Ae}de(Q.substring(N))}return re.finalize(),Ie=re.toHTML(),{language:U,value:Ie,relevance:M,illegal:!1,_emitter:re,_top:z}}catch(X){if(X.message&&X.message.includes("Illegal"))return{language:U,value:Xp(Q),illegal:!0,relevance:0,_illegalBy:{message:X.message,index:N,context:Q.slice(N-100,N+100),mode:X.mode,resultSoFar:Ie},_emitter:re};if(s)return{language:U,value:Xp(Q),illegal:!1,relevance:0,errorRaised:X,_emitter:re,_top:z};throw X}}function f(U){const Q={value:Xp(U),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return Q._emitter.addText(U),Q}function _(U,Q){Q=Q||a.languages||Object.keys(e);const J=f(U),j=Q.filter(x).filter(F).map(xe=>h(xe,U,!1));j.unshift(J);const ae=j.sort((xe,Me)=>{if(xe.relevance!==Me.relevance)return Me.relevance-xe.relevance;if(xe.language&&Me.language){if(x(xe.language).supersetOf===Me.language)return 1;if(x(Me.language).supersetOf===xe.language)return-1}return 0}),[ve,ee]=ae,Ee=ve;return Ee.secondBest=ee,Ee}function m(U,Q,J){const j=Q&&n[Q]||J;U.classList.add("hljs"),U.classList.add(`language-${j}`)}function E(U){let Q=null;const J=u(U);if(l(J))return;if($("before:highlightElement",{el:U,language:J}),U.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",U);return}if(U.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(U)),a.throwUnescapedHTML))throw new iqe("One of your code blocks includes unescaped HTML.",U.innerHTML);Q=U;const j=Q.textContent,ae=J?d(j,{language:J,ignoreIllegals:!0}):_(j);U.innerHTML=ae.value,U.dataset.highlighted="yes",m(U,J,ae.language),U.result={language:ae.language,re:ae.relevance,relevance:ae.relevance},ae.secondBest&&(U.secondBest={language:ae.secondBest.language,relevance:ae.secondBest.relevance}),$("after:highlightElement",{el:U,result:ae,text:j})}function b(U){a=kS(a,U)}const g=()=>{S(),No("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){S(),No("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let v=!1;function S(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(a.cssSelector).forEach(E)}function C(){v&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function T(U,Q){let J=null;try{J=Q(t)}catch(j){if(so("Language definition for '{}' could not be registered.".replace("{}",U)),s)so(j);else throw j;J=o}J.name||(J.name=U),e[U]=J,J.rawDefinition=Q.bind(null,t),J.aliases&&I(J.aliases,{languageName:U})}function O(U){delete e[U];for(const Q of Object.keys(n))n[Q]===U&&delete n[Q]}function k(){return Object.keys(e)}function x(U){return U=(U||"").toLowerCase(),e[U]||e[n[U]]}function I(U,{languageName:Q}){typeof U=="string"&&(U=[U]),U.forEach(J=>{n[J.toLowerCase()]=Q})}function F(U){const Q=x(U);return Q&&!Q.disableAutodetect}function B(U){U["before:highlightBlock"]&&!U["before:highlightElement"]&&(U["before:highlightElement"]=Q=>{U["before:highlightBlock"](Object.assign({block:Q.el},Q))}),U["after:highlightBlock"]&&!U["after:highlightElement"]&&(U["after:highlightElement"]=Q=>{U["after:highlightBlock"](Object.assign({block:Q.el},Q))})}function ne(U){B(U),i.push(U)}function L(U){const Q=i.indexOf(U);Q!==-1&&i.splice(Q,1)}function $(U,Q){const J=U;i.forEach(function(j){j[J]&&j[J](Q)})}function H(U){return No("10.7.0","highlightBlock will be removed entirely in v12.0"),No("10.7.0","Please use highlightElement now."),E(U)}Object.assign(t,{highlight:d,highlightAuto:_,highlightAll:S,highlightElement:E,highlightBlock:H,configure:b,initHighlighting:g,initHighlightingOnLoad:y,registerLanguage:T,unregisterLanguage:O,listLanguages:k,getLanguage:x,registerAliases:I,autoDetection:F,inherit:kS,addPlugin:ne,removePlugin:L}),t.debugMode=function(){s=!1},t.safeMode=function(){s=!0},t.versionString=nqe,t.regex={concat:To,lookahead:yN,either:hE,optional:b7e,anyNumberOfTimes:g7e};for(const U in Pc)typeof Pc[U]=="object"&&bN(Pc[U]);return Object.assign(t,Pc),t},ba=NN({});ba.newInstance=()=>NN({});var rqe=ba;ba.HighlightJS=ba;ba.default=ba;var Zp,PS;function oqe(){if(PS)return Zp;PS=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",r="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",u="разделительстраниц разделительстрок символтабуляции ",d="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",h="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",f="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",_=u+d+h+f,m="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",E="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",b="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",g="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",y="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",v="отображениевремениэлементовпланировщика ",S="типфайлаформатированногодокумента ",C="обходрезультатазапроса типзаписизапроса ",T="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",O="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",k="типизмеренияпостроителязапроса ",x="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",I="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",F="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",B="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",ne="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",L="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",$="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",H="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",U="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",Q="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",J="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",j=m+E+b+g+y+v+S+C+T+O+k+x+I+F+B+ne+L+$+H+U+Q+J,ee="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",Ee="null истина ложь неопределено",xe=e.inherit(e.NUMBER_MODE),Me={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Z={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},ye=e.inherit(e.C_LINE_COMMENT_MODE),fe={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:n,keyword:r+l},contains:[ye]},Ne={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},Le={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:n,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:n,keyword:"знач",literal:Ee},contains:[xe,Me,Z]},ye]},e.inherit(e.TITLE_MODE,{begin:n})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:n,keyword:r,built_in:_,class:j,type:ee,literal:Ee},contains:[fe,Le,ye,Ne,xe,Me,Z]}}return Zp=t,Zp}var Jp,US;function aqe(){if(US)return Jp;US=1;function t(e){const n=e.regex,i=/^[a-zA-Z][a-zA-Z0-9-]*/,s=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],r=e.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},l={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},u={scope:"symbol",match:/%[si](?=".*")/},d={scope:"attribute",match:n.concat(i,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:s,contains:[{scope:"operator",match:/=\/?/},d,r,o,a,l,u,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Jp=t,Jp}var e_,FS;function lqe(){if(FS)return e_;FS=1;function t(e){const n=e.regex,i=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:n.concat(/"/,n.either(...i)),end:/"/,keywords:i,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return e_=t,e_}var t_,BS;function cqe(){if(BS)return t_;BS=1;function t(e){const n=e.regex,i=/[a-zA-Z_$][a-zA-Z0-9_$]*/,s=n.concat(i,n.concat("(\\.",i,")*")),r=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:i,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o]},{begin:n.concat(/:\s*/,r)}]},e.METHOD_GUARD],illegal:/#/}}return t_=t,t_}var n_,GS;function dqe(){if(GS)return n_;GS=1;function t(e){const n="\\d(_|\\d)*",i="[eE][-+]?"+n,s=n+"(\\."+n+")?("+i+")?",r="\\w+",a="\\b("+(n+"#"+r+"(\\."+r+")?#("+i+")?")+"|"+s+")",l="[A-Za-z](_?[A-Za-z0-9.])*",u=`[]\\{\\}%#'"`,d=e.COMMENT("--","$"),h={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:u,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:l,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[d,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+l},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:u},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:u},h,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:u}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:u},h]}}return n_=t,n_}var i_,VS;function uqe(){if(VS)return i_;VS=1;function t(e){const n={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},i={className:"symbol",begin:"[a-zA-Z0-9_]+@"},s={className:"keyword",begin:"<",end:">",contains:[n,i]};return n.contains=[s],i.contains=[s],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},n,i,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return i_=t,i_}var s_,zS;function pqe(){if(zS)return s_;zS=1;function t(e){const n={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},s={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},r={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[s,r,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",n]},s,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return s_=t,s_}var r_,HS;function _qe(){if(HS)return r_;HS=1;function t(e){const n=e.regex,i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,i]},r=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",r]}),a=[r,o,e.HASH_COMMENT_MODE],l=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],u=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[i,e.C_NUMBER_MODE,{className:"built_in",begin:n.concat(/\b/,n.either(...u),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:n.concat(/\b/,n.either(...l),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,s]},...a],illegal:/\/\/|->|=>|\[\[/}}return r_=t,r_}var o_,qS;function hqe(){if(qS)return o_;qS=1;function t(e){const n="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},s={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},a={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,r,e.REGEXP_MODE];const l=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:l}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return o_=t,o_}var a_,YS;function fqe(){if(YS)return a_;YS=1;function t(n){const i=n.regex,s=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="<[^<>]+>",l="(?!struct)("+r+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional(a)+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+d+"|.)",end:"'",illegal:"."},n.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},_={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},n.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},s,n.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:i.optional(o)+n.IDENT_RE,relevance:0},E=i.optional(o)+n.IDENT_RE+"\\s*\\(",b=["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"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["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"],v=["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"],T={type:g,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},O={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},k=[O,_,u,s,n.C_BLOCK_COMMENT_MODE,f,h],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:k.concat([{begin:/\(/,end:/\)/,keywords:T,contains:k.concat(["self"]),relevance:0}]),relevance:0},I={className:"function",begin:"("+l+"[\\*&\\s]+)+"+E,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:T,relevance:0},{begin:E,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[s,n.C_BLOCK_COMMENT_MODE,h,f,u,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",s,n.C_BLOCK_COMMENT_MODE,h,f,u]}]},u,s,n.C_BLOCK_COMMENT_MODE,_]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:T,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,I,O,k,[_,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:T,contains:["self",u]},{begin:n.IDENT_RE+"::",keywords:T},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(n){const i={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},s=t(n),r=s.keywords;return r.type=[...r.type,...i.type],r.literal=[...r.literal,...i.literal],r.built_in=[...r.built_in,...i.built_in],r._hints=i._hints,s.name="Arduino",s.aliases=["ino"],s.supersetOf="cpp",s}return a_=e,a_}var l_,$S;function mqe(){if($S)return l_;$S=1;function t(e){const n={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},n,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return l_=t,l_}var c_,WS;function gqe(){if(WS)return c_;WS=1;function t(e){const n=e.regex,i=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,u,l,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,u,l]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(i,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:d}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return c_=t,c_}var d_,KS;function bqe(){if(KS)return d_;KS=1;function t(e){const n=e.regex,i={begin:"^'{3,}[ \\t]*$",relevance:10},s=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],r=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},l={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},l,a,...s,...r,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},i,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return d_=t,d_}var u_,jS;function Eqe(){if(jS)return u_;jS=1;function t(e){const n=e.regex,i=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],s=["get","set","args","call"];return{name:"AspectJ",keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:i.concat(s),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:i,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:i.concat(s),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:i,excludeEnd:!0,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return u_=t,u_}var p_,QS;function yqe(){if(QS)return p_;QS=1;function t(e){const n={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[n,e.inherit(e.QUOTE_STRING_MODE,{contains:[n]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return p_=t,p_}var __,XS;function vqe(){if(XS)return __;XS=1;function t(e){const n="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",i=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],s="True False And Null Not Or Default",r="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",o={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},u={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},d={className:"meta",begin:"#",end:"$",keywords:{keyword:i},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[l,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},l,o]},h={className:"symbol",begin:"@[A-z0-9_]+"},f={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,l,u]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:n,built_in:r,literal:s},contains:[o,a,l,u,d,h,f]}}return __=t,__}var h_,ZS;function Sqe(){if(ZS)return h_;ZS=1;function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return h_=t,h_}var f_,JS;function Tqe(){if(JS)return f_;JS=1;function t(e){const n={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:i},contains:[n,s,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return f_=t,f_}var m_,e0;function xqe(){if(e0)return m_;e0=1;function t(e){const n=e.UNDERSCORE_IDENT_RE,o={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,n,/\s+(extends|implements)\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}}return m_=t,m_}var g_,t0;function Cqe(){if(t0)return g_;t0=1;function t(e){const n=e.regex,i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={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,i,r]};r.contains.push(a);const l={match:/\\"/},u={className:"string",begin:/'/,end:/'/},d={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},E=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],b=["true","false"],g={match:/(\/[a-z._-]+)+/},y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],S=["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:E,literal:b,built_in:[...y,...v,"set","shopt",...S,...C]},contains:[_,e.SHEBANG(),m,h,e.HASH_COMMENT_MODE,o,g,a,l,u,d,i]}}return g_=t,g_}var b_,n0;function wqe(){if(n0)return b_;n0=1;function t(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return b_=t,b_}var E_,i0;function Rqe(){if(i0)return E_;i0=1;function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return E_=t,E_}var y_,s0;function Aqe(){if(s0)return y_;s0=1;function t(e){const n={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[n]},n]}}return y_=t,y_}var v_,r0;function Nqe(){if(r0)return v_;r0=1;function t(e){const n=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="("+s+"|"+n.optional(r)+"[a-zA-Z_]\\w*"+n.optional(o)+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u="\\\\(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)?'("+u+"|.)",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},f={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:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:n.optional(r)+e.IDENT_RE,relevance:0},m=n.optional(r)+e.IDENT_RE+"\\s*\\(",g={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"},y=[f,l,i,e.C_BLOCK_COMMENT_MODE,h,d],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:y.concat([{begin:/\(/,end:/\)/,keywords:g,contains:y.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:g,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(_,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,i,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(v,S,y,[f,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:g}}}return v_=t,v_}var S_,o0;function Oqe(){if(o0)return S_;o0=1;function t(e){const n=e.regex,i=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],s="false true",r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},u={className:"string",begin:'"',end:'"'},d={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:[o,a,e.NUMBER_MODE]},...r]},h=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],f={match:[/OBJECT/,/\s+/,n.either(...h),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:i,literal:s},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,l,u,e.NUMBER_MODE,f,d]}}return S_=t,S_}var T_,a0;function Iqe(){if(a0)return T_;a0=1;function t(e){const n=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],i=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],s=["true","false"],r={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:n,type:i,literal:s},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},r]}}return T_=t,T_}var x_,l0;function Mqe(){if(l0)return x_;l0=1;function t(e){const n=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],i=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],s=["doc","by","license","see","throws","tagged"],r={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:n,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[r]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return r.contains=o,{name:"Ceylon",keywords:{keyword:n.concat(i),meta:s},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}return x_=t,x_}var C_,c0;function Dqe(){if(c0)return C_;c0=1;function t(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return C_=t,C_}var w_,d0;function kqe(){if(d0)return w_;d0=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&'",i="[#]?["+n+"]["+n+"0-9/;:$#]*",s="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",r={$pattern:i,built_in:s+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:i,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},l={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},u={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),h={scope:"punctuation",match:/,/,relevance:0},f=e.COMMENT(";","$",{relevance:0}),_={className:"literal",begin:/\b(true|false|nil)\b/},m={begin:"\\[|(#::?"+i+")?\\{",end:"[\\]\\}]",relevance:0},E={className:"symbol",begin:"[:]{1,2}"+i},b={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},y={keywords:r,className:"name",begin:i,relevance:0,starts:g},v=[h,b,l,u,d,f,E,m,a,_,o],S={beginKeywords:s,keywords:{$pattern:i,keyword:s},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:i,relevance:0,excludeEnd:!0,endsParent:!0}].concat(v)};return b.contains=[S,y,g],g.contains=v,m.contains=v,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[h,b,l,u,d,f,E,m,a,_]}}return w_=t,w_}var R_,u0;function Lqe(){if(u0)return R_;u0=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return R_=t,R_}var A_,p0;function Pqe(){if(p0)return A_;p0=1;function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return A_=t,A_}var N_,_0;function Uqe(){if(_0)return N_;_0=1;const t=["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"],e=["true","false","null","undefined","NaN","Infinity"],n=["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"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],r=[].concat(s,n,i);function o(a){const l=["npm","print"],u=["yes","no","on","off"],d=["then","unless","until","loop","by","when","and","or","is","isnt","not"],h=["var","const","let","function","static"],f=C=>T=>!C.includes(T),_={keyword:t.concat(d).filter(f(h)),literal:e.concat(u),built_in:r.concat(l)},m="[A-Za-z$_][0-9A-Za-z$_]*",E={className:"subst",begin:/#\{/,end:/\}/,keywords:_},b=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,E]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,E]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[E,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+m},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];E.contains=b;const g=a.inherit(a.TITLE_MODE,{begin:m}),y="(\\(.*\\)\\s*)?\\B[-=]>",v={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(b)}]},S={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:_};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:_,illegal:/\/\*/,contains:[...b,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+m+"\\s*=\\s*"+y,end:"[-=]>",returnBegin:!0,contains:[g,v]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:y,end:"[-=]>",returnBegin:!0,contains:[v]}]},S,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return N_=o,N_}var O_,h0;function Fqe(){if(h0)return O_;h0=1;function t(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return O_=t,O_}var I_,f0;function Bqe(){if(f0)return I_;f0=1;function t(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return I_=t,I_}var M_,m0;function Gqe(){if(m0)return M_;m0=1;function t(e){const n=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="(?!struct)("+s+"|"+n.optional(r)+"[a-zA-Z_]\\w*"+n.optional(o)+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u="\\\\(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)?'("+u+"|.)",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},f={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:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:n.optional(r)+e.IDENT_RE,relevance:0},m=n.optional(r)+e.IDENT_RE+"\\s*\\(",E=["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"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["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"],y=["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"],C={type:b,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},T={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},O=[T,f,l,i,e.C_BLOCK_COMMENT_MODE,h,d],k={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:O.concat([{begin:/\(/,end:/\)/,keywords:C,contains:O.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:C,relevance:0},{begin:m,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,i,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(k,x,T,O,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:C,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return M_=t,M_}var D_,g0;function Vqe(){if(g0)return D_;g0=1;function t(e){const n="primitive rsc_template",i="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",s="property rsc_defaults op_defaults",r="params meta operations op rule attributes utilization",o="read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\",a="number string",l="Master Started Slave Stopped start promote demote stop monitor true false";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:r+" "+o+" "+a,literal:l},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:n,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+i.split(" ").join("|")+")\\s+",keywords:i,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:s,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return D_=t,D_}var k_,b0;function zqe(){if(b0)return k_;b0=1;function t(e){const n="(_?[ui](8|16|32|64|128))?",i="(_?f(32|64))?",s="[a-zA-Z_]\\w*[!?=]?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:s,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},u={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},d={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function h(y,v){const S=[{begin:y,end:v}];return S[0].contains=S,S}const f={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:h("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},_={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%q<",end:">",contains:h("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},m={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},E={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%r<",end:">",contains:h("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},b={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[d,f,_,E,m,b,u,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:r}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+i+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+n}],relevance:0}];return l.contains=g,d.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}return k_=t,k_}var L_,E0;function Hqe(){if(E0)return L_;E0=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"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["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"],o=["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(o),built_in:n,literal:s},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={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:'""'}]},h=e.inherit(d,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:a},_=e.inherit(f,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,_]},E={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},b=e.inherit(E,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});f.contains=[E,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],_.contains=[b,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[E,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},v=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",S={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:"</?",end:">"}]}]}),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"}},g,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,y,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,y,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:"("+v+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[g,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},S]}}return L_=t,L_}var P_,y0;function qqe(){if(y0)return P_;y0=1;function t(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return P_=t,P_}var U_,v0;function Yqe(){if(v0)return U_;v0=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"],i=["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"],s=["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 o(a){const l=a.regex,u=t(a),d={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},h="and or not only",f=/@-?\w[\w]*(-\w+)*/,_="[a-zA-Z-][a-zA-Z0-9_-]*",m=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[u.BLOCK_COMMENT,d,u.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+_,relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[u.BLOCK_COMMENT,u.HEXCOLOR,u.IMPORTANT,u.CSS_NUMBER_MODE,...m,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...m,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},u.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:n.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...m,u.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}return U_=o,U_}var F_,S0;function $qe(){if(S0)return F_;S0=1;function t(e){const n={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},i="(0|[1-9][\\d_]*)",s="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",r="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,l="([eE][+-]?"+s+")",u="("+s+"(\\.\\d*|"+l+")|\\d+\\."+s+"|\\."+i+l+"?)",d="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+s+")",h="("+i+"|"+r+"|"+a+")",f="("+d+"|"+u+")",_=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,m={className:"number",begin:"\\b"+h+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},E={className:"number",begin:"\\b("+f+"([fF]|L|i|[fF]i|Li)?|"+h+"(i|[fF]i|Li))",relevance:0},b={className:"string",begin:"'("+_+"|.)",end:"'",illegal:"."},y={className:"string",begin:'"',contains:[{begin:_,relevance:0}],end:'"[cwd]?'},v={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},S={className:"string",begin:"`",end:"`[cwd]?"},C={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},T={className:"string",begin:'q"\\{',end:'\\}"'},O={className:"meta",begin:"^#!",end:"$",relevance:5},k={className:"meta",begin:"#(line)",end:"$",relevance:5},x={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},I=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,I,C,y,v,S,T,E,m,b,O,k,x]}}return F_=t,F_}var B_,T0;function Wqe(){if(T0)return B_;T0=1;function t(e){const n=e.regex,i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={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}]},o={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+.-]*/,u={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}/}]},h={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(d,{contains:[]}),_=e.inherit(h,{contains:[]});d.contains.push(_),h.contains.push(f);let m=[i,u];return[d,h,f,_].forEach(g=>{g.contains=g.contains.concat(m)}),m=m.concat(d,h),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},i,o,d,h,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},r,s,u,a]}}return B_=t,B_}var G_,x0;function Kqe(){if(x0)return G_;x0=1;function t(e){const n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},i={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},s={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,i]}]};i.contains=[e.C_NUMBER_MODE,s];const r=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=r.map(u=>`${u}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:r.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[s,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return G_=t,G_}var V_,C0;function jqe(){if(C0)return V_;C0=1;function t(e){const n=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a={className:"string",begin:/(#\d+)+/},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},u={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[r,a,s].concat(i)},s].concat(i)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:n,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[r,a,e.NUMBER_MODE,o,l,u,s].concat(i)}}return V_=t,V_}var z_,w0;function Qqe(){if(w0)return z_;w0=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 z_=t,z_}var H_,R0;function Xqe(){if(R0)return H_;R0=1;function t(e){const n={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[n]}]}}return H_=t,H_}var q_,A0;function Zqe(){if(A0)return q_;A0=1;function t(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return q_=t,q_}var Y_,N0;function Jqe(){if(N0)return Y_;N0=1;function t(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return Y_=t,Y_}var $_,O0;function eYe(){if(O0)return $_;O0=1;function t(e){const n=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{className:"symbol",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",relevance:0}.begin,end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),n]},{className:"number",begin:"\\b\\d+",relevance:0},n]}}return $_=t,$_}var W_,I0;function tYe(){if(I0)return W_;I0=1;function t(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}return W_=t,W_}var K_,M0;function nYe(){if(M0)return K_;M0=1;function t(e){const n={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},i={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},s={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(n,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",relevance:0,begin:"<",end:">",contains:[i,r]},u={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},d={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},h={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},f={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},_={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[d,r,o,a,u,f,h,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,n,s,_,{begin:e.IDENT_RE+"::",keywords:""}]}}return K_=t,K_}var j_,D0;function iYe(){if(D0)return j_;D0=1;function t(e){const n="if eq ne lt lte gt gte select default math sep";return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:n}]}}return j_=t,j_}var Q_,k0;function sYe(){if(k0)return Q_;k0=1;function t(e){const n=e.COMMENT(/\(\*/,/\*\)/),i={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},r={begin:/=/,end:/[.;]/,contains:[n,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[n,i,r]}}return Q_=t,Q_}var X_,L0;function rYe(){if(L0)return X_;L0=1;function t(e){const n=e.regex,i="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",s="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:i,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},u={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},h={match:/\\[\s\S]/,scope:"char.escape",relevance:0},f=`[/|([{<"']`,_=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],m=T=>({scope:"char.escape",begin:n.concat(/\\/,T),relevance:0}),E={className:"string",begin:"~[a-z](?="+f+")",contains:_.map(T=>e.inherit(T,{contains:[m(T.end),h,l]}))},b={className:"string",begin:"~[A-Z](?="+f+")",contains:_.map(T=>e.inherit(T,{contains:[m(T.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+f+")",contains:_.map(T=>e.inherit(T,{end:n.concat(T.end,/[uismxfU]{0,7}/),contains:[m(T.end),h,l]}))},{begin:"~R(?="+f+")",contains:_.map(T=>e.inherit(T,{end:n.concat(T.end,/[uismxfU]{0,7}/),contains:[m(T.end)]}))}]},y={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},v={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},S=e.inherit(v,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),C=[y,g,b,E,e.HASH_COMMENT_MODE,S,v,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[y,{begin:s}],relevance:0},{className:"symbol",begin:i+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=C,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:C}}return X_=t,X_}var Z_,P0;function oYe(){if(P0)return Z_;P0=1;function t(e){const n={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n]},r={begin:/\{/,end:/\}/,contains:s.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[s,n],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[s,n],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,s,r,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"port",end:"$",keywords:"port",contains:[n]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}],illegal:/;/}}return Z_=t,Z_}var J_,U0;function aYe(){if(U0)return J_;U0=1;function t(e){const n=e.regex,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=n.concat(s,/(::\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]+"},u={begin:"#<",end:">"},d=[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},f={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]?</,end:/>/},{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]})]}]},_="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",E={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${m}))?([eE][+-]?(${m})|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"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},O=[f,{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:s,scope:"title.class"},{match:[/def/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:i}],relevance:0},E,{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(u,d),relevance:0}].concat(u,d);h.contains=O,b.contains=O;const k="[>?]>",x="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",I="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",F=[{begin:/^\s*=>/,starts:{end:"$",contains:O}},{className:"meta.prompt",begin:"^("+k+"|"+x+"|"+I+")(?=[ ])",starts:{end:"$",keywords:a,contains:O}}];return d.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(F).concat(d).concat(O)}}return J_=t,J_}var eh,F0;function lYe(){if(F0)return eh;F0=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return eh=t,eh}var th,B0;function cYe(){if(B0)return th;B0=1;function t(e){const n=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:n.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return th=t,th}var nh,G0;function dYe(){if(G0)return nh;G0=1;function t(e){const n="[a-z'][a-zA-Z0-9_']*",i="("+n+":"+n+"|"+n+")",s={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},r=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+n+"/\\d+"},l={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},u={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},h={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},f={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},_={beginKeywords:"fun receive if try case",end:"end",keywords:s};_.contains=[r,a,e.inherit(e.APOS_STRING_MODE,{className:""}),_,l,e.QUOTE_STRING_MODE,o,u,d,h,f];const m=[r,a,_,l,e.QUOTE_STRING_MODE,o,u,d,h,f];l.contains[1].contains=m,u.contains=m,f.contains[1].contains=m;const E=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],b={className:"params",begin:"\\(",end:"\\)",contains:m};return{name:"Erlang",aliases:["erl"],keywords:s,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+n+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[b,e.inherit(e.TITLE_MODE,{begin:n})],starts:{end:";|\\.",keywords:s,contains:m}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:E.map(g=>`${g}|1.5`).join(" ")},contains:[b]},o,e.QUOTE_STRING_MODE,f,d,h,u,{begin:/\.$/}]}}return nh=t,nh}var ih,V0;function uYe(){if(V0)return ih;V0=1;function t(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return ih=t,ih}var sh,z0;function pYe(){if(z0)return sh;z0=1;function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return sh=t,sh}var rh,H0;function _Ye(){if(H0)return rh;H0=1;function t(e){const n={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i={className:"string",variants:[{begin:'"',end:'"'}]},r={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,i,r,e.C_NUMBER_MODE]}}return rh=t,rh}var oh,q0;function hYe(){if(q0)return oh;q0=1;function t(e){const n=e.regex,i={className:"params",begin:"\\(",end:"\\)"},s={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},r=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,o,r)},{begin:n.concat(/\b\d+/,o,r)},{begin:n.concat(/\.\d+/,o,r)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,i]},u={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[u,l,{begin:/^C\s*=(?!=)/,relevance:0},s,a]}}return oh=t,oh}var ah,Y0;function fYe(){if(Y0)return ah;Y0=1;function t(a){return new RegExp(a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(a){return a?typeof a=="string"?a:a.source:null}function n(a){return i("(?=",a,")")}function i(...a){return a.map(u=>e(u)).join("")}function s(a){const l=a[a.length-1];return typeof l=="object"&&l.constructor===Object?(a.splice(a.length-1,1),l):{}}function r(...a){return"("+(s(a).capture?"":"?:")+a.map(d=>e(d)).join("|")+")"}function o(a){const l=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],u={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},d=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],h=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],f=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],_=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],E={keyword:l,literal:h,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":f},g={variants:[a.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),a.C_LINE_COMMENT_MODE]},y=/[a-zA-Z_](\w|')*/,v={scope:"variable",begin:/``/,end:/``/},S=/\B('|\^)/,C={scope:"symbol",variants:[{match:i(S,/``.*?``/)},{match:i(S,a.UNDERSCORE_IDENT_RE)}],relevance:0},T=function({includeEqual:xe}){let Me;xe?Me="!%&*+-/<=>@^|~?":Me="!%&*+-/<>@^|~?";const Z=Array.from(Me),ye=i("[",...Z.map(t),"]"),fe=r(ye,/\./),Ne=i(fe,n(fe)),Le=r(i(Ne,fe,"*"),i(ye,"+"));return{scope:"operator",match:r(Le,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},O=T({includeEqual:!0}),k=T({includeEqual:!1}),x=function(xe,Me){return{begin:i(xe,n(i(/\s*/,r(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:Me,end:n(r(/\n/,/=/)),relevance:0,keywords:a.inherit(E,{type:_}),contains:[g,C,a.inherit(v,{scope:null}),k]}},I=x(/:/,"operator"),F=x(/\bof\b/,"keyword"),B={begin:[/(^|\s+)/,/type/,/\s+/,y],beginScope:{2:"keyword",4:"title.class"},end:n(/\(|=|$/),keywords:E,contains:[g,a.inherit(v,{scope:null}),C,{scope:"operator",match:/<|>/},I]},ne={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},L={begin:[/^\s*/,i(/#/,r(...d)),/\b/],beginScope:{2:"meta"},end:n(/\s|$/)},$={variants:[a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]},H={scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]},U={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},a.BACKSLASH_ESCAPE]},Q={scope:"string",begin:/"""/,end:/"""/,relevance:2},J={scope:"subst",begin:/\{/,end:/\}/,keywords:E},j={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},a.BACKSLASH_ESCAPE,J]},ae={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},a.BACKSLASH_ESCAPE,J]},ve={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},J],relevance:2},ee={scope:"string",match:i(/'/,r(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return J.contains=[ae,j,U,H,ee,u,g,v,I,ne,L,$,C,O],{name:"F#",aliases:["fs","f#"],keywords:E,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[u,{variants:[ve,ae,j,Q,U,H,ee]},g,v,B,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[v,Q,U,H,ee,$]},F,I,ne,L,$,C,O]}}return ah=o,ah}var lh,$0;function mYe(){if($0)return lh;$0=1;function t(e){const n=e.regex,i={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},s={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},r={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:i,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,u={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:n.concat(l,n.anyNumberOfTimes(n.concat(/[ ]+/,l))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:i,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,u]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[u]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},s,r]},e.C_NUMBER_MODE,r]}}return lh=t,lh}var ch,W0;function gYe(){if(W0)return ch;W0=1;function t(e){const n={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},i=e.COMMENT("@","@"),s={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i]},r={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,r]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(_,m,E){const b=e.inherit({className:"function",beginKeywords:_,end:m,excludeEnd:!0,contains:[].concat(o)},E||{});return b.contains.push(a),b.contains.push(e.C_NUMBER_MODE),b.contains.push(e.C_BLOCK_COMMENT_MODE),b.contains.push(i),b},u={className:"built_in",begin:"\\b("+n.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},h={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:n,relevance:0,contains:[{beginKeywords:n.keyword},u,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:n.built_in,literal:n.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,u,h,d,"self"]};return h.contains.push(f),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:n,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,d,s,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},l("proc keyword",";"),l("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,i,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},h,r]}}return ch=t,ch}var dh,K0;function bYe(){if(K0)return dh;K0=1;function t(e){const n="[A-Z_][A-Z0-9_.]*",i="%",s={$pattern:n,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},r={className:"meta",begin:"([O])([0-9]+)"},o=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),o,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:i},r].concat(a)}}return dh=t,dh}var uh,j0;function EYe(){if(j0)return uh;j0=1;function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return uh=t,uh}var ph,Q0;function yYe(){if(Q0)return ph;Q0=1;function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return ph=t,ph}var _h,X0;function vYe(){if(X0)return _h;X0=1;function t(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return _h=t,_h}var hh,Z0;function SYe(){if(Z0)return hh;Z0=1;function t(e){const o={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:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}return hh=t,hh}var fh,J0;function TYe(){if(J0)return fh;J0=1;function t(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return fh=t,fh}var mh,eT;function xYe(){if(eT)return mh;eT=1;function t(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}return mh=t,mh}var gh,tT;function CYe(){if(tT)return gh;tT=1;function t(e){const n=e.regex,i=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(i,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return gh=t,gh}var bh,nT;function wYe(){if(nT)return bh;nT=1;function t(n,i={}){return i.variants=n,i}function e(n){const i=n.regex,s="[A-Za-z0-9_$]+",r=t([n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),o={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[n.BACKSLASH_ESCAPE]},a=t([n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]),l=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE],{className:"string"}),u={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,n.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[n.SHEBANG({binary:"groovy",relevance:10}),r,l,o,a,u,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:s+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,l,o,a,"self"]},{className:"symbol",begin:"^[ ]*"+i.lookahead(s+":"),excludeBegin:!0,end:s+":",relevance:0}],illegal:/#|<\//}}return bh=e,bh}var Eh,iT;function RYe(){if(iT)return Eh;iT=1;function t(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return Eh=t,Eh}var yh,sT;function AYe(){if(sT)return yh;sT=1;function t(e){const n=e.regex,i={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},s={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},r=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,u=/(\.|\/)/,d=n.either(r,o,a,l),h=n.concat(n.optional(/\.|\.\/|\//),d,n.anyNumberOfTimes(n.concat(u,d))),f=n.concat("(",a,"|",l,")(?==)"),_={begin:h},m=e.inherit(_,{keywords:s}),E={begin:/\(/,end:/\)/},b={className:"attr",begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,E]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},y={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,b,m,E],returnEnd:!0},v=e.inherit(_,{className:"name",keywords:i,starts:e.inherit(y,{end:/\)/})});E.contains=[v];const S=e.inherit(_,{keywords:i,className:"name",starts:e.inherit(y,{end:/\}\}/})}),C=e.inherit(_,{keywords:i,className:"name"}),T=e.inherit(_,{className:"name",keywords:i,starts:e.inherit(y,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[S],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[C]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[S]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[T]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[T]}]}}return yh=t,yh}var vh,rT;function NYe(){if(rT)return vh;rT=1;function t(e){const n="([0-9]_*)+",i="([0-9a-fA-F]_*)+",s="([01]_*)+",r="([0-7]_*)+",u="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",d={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},h={className:"meta",begin:/\{-#/,end:/#-\}/},f={className:"meta",begin:"^#",end:"$"},_={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},m={begin:"\\(",end:"\\)",illegal:'"',contains:[h,f,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),d]},E={begin:/\{/,end:/\}/,contains:m.contains},b={className:"number",relevance:0,variants:[{match:`\\b(${n})(\\.(${n}))?([eE][+-]?(${n}))?\\b`},{match:`\\b0[xX]_*(${i})(\\.(${i}))?([pP][+-]?(${n}))?\\b`},{match:`\\b0[oO](${r})\\b`},{match:`\\b0[bB](${s})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[m,d],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[m,d],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[_,m,d]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[h,_,m,E,d]},{beginKeywords:"default",end:"$",contains:[_,m,d]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,d]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[_,e.QUOTE_STRING_MODE,d]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},h,f,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,b,_,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${u}--+|--+(?!-)${u}`},d,{begin:"->|<-"}]}}return vh=t,vh}var Sh,oT;function OYe(){if(oT)return Sh;oT=1;function t(e){const n="[a-zA-Z_$][a-zA-Z0-9_$]*",i=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:i,relevance:0},{className:"variable",begin:"\\$"+n},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/new */,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return Sh=t,Sh}var Th,aT;function IYe(){if(aT)return Th;aT=1;function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return Th=t,Th}var xh,lT;function MYe(){if(lT)return xh;lT=1;function t(e){const n=e.regex,i="HTTP/([32]|1\\.[01])",s=/[A-Za-z][A-Za-z0-9-]*/,r={className:"attribute",begin:n.concat("^",s,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[r,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(r,{relevance:0})]}}return xh=t,xh}var Ch,cT;function DYe(){if(cT)return Ch;cT=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&#'",i="["+n+"]["+n+"0-9/;:]*",s={$pattern:i,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},r="[-+]?\\d+(\\.\\d+)?",o={begin:i,relevance:0},a={className:"number",begin:r,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u=e.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},h={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},f={className:"comment",begin:"\\^"+i},_=e.COMMENT("\\^\\{","\\}"),m={className:"symbol",begin:"[:]{1,2}"+i},E={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:s,begin:i,starts:b},y=[E,l,f,_,u,m,h,a,d,o];return E.contains=[e.COMMENT("comment",""),g,b],b.contains=y,h.contains=y,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),E,l,f,_,u,m,h,a,d]}}return Ch=t,Ch}var wh,dT;function kYe(){if(dT)return wh;dT=1;function t(e){const n="\\[",i="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:n,end:i}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:n,end:i,contains:["self"]}]}}return wh=t,wh}var Rh,uT;function LYe(){if(uT)return Rh;uT=1;function t(e){const n=e.regex,i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},s=e.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[s,o,r,a,i,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,h=/'[^']*'/,f=n.either(u,d,h),_=n.concat(f,"(\\s*\\.\\s*",f,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:_,className:"attr",starts:{end:/$/,contains:[s,l,o,r,a,i]}}]}}return Rh=t,Rh}var Ah,pT;function PYe(){if(pT)return Ah;pT=1;function t(e){const n=e.regex,i={className:"params",begin:"\\(",end:"\\)"},s=/(_[a-z_\d]+)?/,r=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,r,s)},{begin:n.concat(/\b\d+/,r,s)},{begin:n.concat(/\.\d+/,r,s)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,i]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}return Ah=t,Ah}var Nh,_T;function UYe(){if(_T)return Nh;_T=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",i="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",s="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",r="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE ",o="CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ",a="ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ",l="DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ",u="ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION ",d="JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ",h="ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE ",f="smHidden smMaximized smMinimized smNormal wmNo wmYes ",_="COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND ",m="COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE ",E="MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY ",b="NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY ",g="dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT ",y="CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ",v="ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME ",S="PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ",C="ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE ",T="CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ",O="STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER ",k="COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE ",x="SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID ",I="RESULT_VAR_NAME RESULT_VAR_NAME_ENG ",F="AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID ",B="SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY ",ne="SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY ",L="SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS ",$="SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS ",H="SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ",U="ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME ",Q="TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ",J="ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk ",j="EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE ",ae="cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ",ve="ISBL_SYNTAX NO_SYNTAX XML_SYNTAX ",ee="WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ",Ee="SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",xe=r+o+a+l+u+d+h+f+_+m+E+b+g+y+v+S+C+T+O+k+x+I+F+B+ne+L+$+H+U+Q+J+j+ae+ve+ee+Ee,Me="atUser atGroup atRole ",Z="aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty ",ye="apBegin apEnd ",fe="alLeft alRight ",Ne="asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways ",Le="cirCommon cirRevoked ",D="ctSignature ctEncode ctSignatureEncode ",q="clbUnchecked clbChecked clbGrayed ",K="ceISB ceAlways ceNever ",de="ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob ",le="cfInternal cfDisplay ",Re="ciUnspecified ciWrite ciRead ",Ie="ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ",z="ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton ",pe="cctDate cctInteger cctNumeric cctPick cctReference cctString cctText ",re="cltInternal cltPrimary cltGUI ",ce="dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange ",M="dssEdit dssInsert dssBrowse dssInActive ",N="dftDate dftShortDate dftDateTime dftTimeStamp ",W="dotDays dotHours dotMinutes dotSeconds ",ue="dtkndLocal dtkndUTC ",X="arNone arView arEdit arFull ",ie="ddaView ddaEdit ",Ae="emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ",Ce="ecotFile ecotProcess ",ke="eaGet eaCopy eaCreate eaCreateStandardRoute ",Qe="edltAll edltNothing edltQuery ",ct="essmText essmCard ",Pe="esvtLast esvtLastActive esvtSpecified ",ut="edsfExecutive edsfArchive ",Je="edstSQLServer edstFile ",qe="edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile ",tt="vsDefault vsDesign vsActive vsObsolete ",Fe="etNone etCertificate etPassword etCertificatePassword ",pt="ecException ecWarning ecInformation ",oe="estAll estApprovingOnly ",Ke="evtLast evtLastActive evtQuery ",Ue="fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ",Oe="ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch ",Be="grhAuto grhX1 grhX2 grhX3 ",dt="hltText hltRTF hltHTML ",Et="iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG ",Qt="im8bGrayscale im24bRGB im1bMonochrome ",cn="itBMP itJPEG itWMF itPNG ",Ct="ikhInformation ikhWarning ikhError ikhNoIcon ",$t="icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler ",Sn="isShow isHide isByUserSettings ",bs="jkJob jkNotice jkControlJob ",Mr="jtInner jtLeft jtRight jtFull jtCross ",ci="lbpAbove lbpBelow lbpLeft lbpRight ",Tn="eltPerConnection eltPerUser ",di="sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac ",ji="sfsItalic sfsStrikeout sfsNormal ",Es="ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents ",ys="mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom ",vs="vtEqual vtGreaterOrEqual vtLessOrEqual vtRange ",nt="rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth ",R="rdWindow rdFile rdPrinter ",Y="rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument ",te="reOnChange reOnChangeValues ",ge="ttGlobal ttLocal ttUser ttSystem ",me="ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal ",Ve="smSelect smLike smCard ",Xe="stNone stAuthenticating stApproving ",it="sctString sctStream ",at="sstAnsiSort sstNaturalSort ",rt="svtEqual svtContain ",_t="soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown ",ht="tarAbortByUser tarAbortByWorkflowException ",Kt="tvtAllWords tvtExactPhrase tvtAnyWord ",xn="usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp ",sn="utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected ",In="btAnd btDetailAnd btOr btNotOr btOnly ",Xt="vmView vmSelect vmNavigation ",St="vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection ",el="wfatPrevious wfatNext wfatCancel wfatFinish ",tn="wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 ",Ss="wfetQueryParameter wfetText wfetDelimiter wfetLabel ",xc="wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate ",Dr="wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal ",tl="wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal ",bn="waAll waPerformers waManual ",Ts="wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause ",nl="wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection ",Wn="wiLow wiNormal wiHigh ",il="wrtSoft wrtHard ",mp="wsInit wsRunning wsDone wsControlled wsAborted wsContinued ",Cc="wtmFull wtmFromCurrent wtmOnlyCurrent ",iM=Me+Z+ye+fe+Ne+Le+D+q+K+de+le+Re+Ie+z+pe+re+ce+M+N+W+ue+X+ie+Ae+Ce+ke+Qe+ct+Pe+ut+Je+qe+tt+Fe+pt+oe+Ke+Ue+Oe+Be+dt+Et+Qt+cn+Ct+$t+Sn+bs+Mr+ci+Tn+di+ji+Es+ys+vs+nt+R+Y+te+ge+me+Ve+Xe+it+at+rt+_t+ht+Kt+xn+sn+In+Xt+St+el+tn+Ss+xc+Dr+tl+bn+Ts+nl+Wn+il+mp+Cc,sM="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",rM="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",oM="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",aM=xe+iM,lM=rM,cM="null true false nil ",hy={className:"number",begin:e.NUMBER_RE,relevance:0},fy={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},my={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},dM={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,my]},uM={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,my]},gy={variants:[dM,uM]},wc={$pattern:n,keyword:s,built_in:aM,class:lM,literal:cM},gp={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:wc,relevance:0},by={className:"type",begin:":[ \\t]*("+oM.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Ey={className:"variable",keywords:wc,begin:n,relevance:0,contains:[by,gp]},yy=i+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:wc,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:yy,end:"\\)$",returnBegin:!0,keywords:wc,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:n,built_in:sM},begin:yy,end:"\\(",returnBegin:!0,excludeEnd:!0},gp,Ey,fy,hy,gy]},by,gp,Ey,fy,hy,gy]}}return Nh=t,Nh}var Oh,hT;function FYe(){if(hT)return Oh;hT=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",i={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 s(o,a,l){return l===-1?"":o.replace(a,u=>s(o,a,l-1))}function r(o){const a=o.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=l+s("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),m={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"]},E={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[o.BACKSLASH_ESCAPE]},o.APOS_STRING_MODE,o.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:[b,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+u+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[E,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,i,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},i,E]}}return Oh=r,Oh}var Ih,fT;function BYe(){if(fT)return Ih;fT=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"],i=["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"],s=["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"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,i,s);function l(u){const d=u.regex,h=(Z,{after:ye})=>{const fe="</"+Z[0].slice(1);return Z.input.indexOf(fe,ye)!==-1},f=t,_={begin:"<>",end:"</>"},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,E={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,ye)=>{const fe=Z[0].length+Z.index,Ne=Z.input[fe];if(Ne==="<"||Ne===","){ye.ignoreMatch();return}Ne===">"&&(h(Z,{after:fe})||ye.ignoreMatch());let Le;const D=Z.input.substring(fe);if(Le=D.match(/^\s*=/)){ye.ignoreMatch();return}if((Le=D.match(/^\s+extends\s+/))&&Le.index===0){ye.ignoreMatch();return}}},b={$pattern:t,keyword:e,literal:n,built_in:a,"variable.language":o},g="[0-9](_?[0-9])*",y=`\\.(${g})`,v="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${v})((${y})|\\.)?|(${y}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${y})\\b|\\.)?|(${y})\\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},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},T={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},O={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"css"}},k={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,C]},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:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},B=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,T,O,k,x,{match:/\$\d+/},S];C.contains=B.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(B)});const ne=[].concat(F,C.contains),L=ne.concat([{begin:/\(/,end:/\)/,keywords:b,contains:["self"].concat(ne)}]),$={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:L},H={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,d.concat(f,"(",d.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},U={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:{_:[...i,...s]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},J={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ae(Z){return d.concat("(?!",Z.join("|"),")")}const ve={match:d.concat(/\b/,ae([...r,"super","import"]),f,d.lookahead(/\(/)),className:"title.function",relevance:0},ee={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ee={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},xe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",Me={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(xe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:L,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,T,O,k,x,F,{match:/\$\d+/},S,U,{className:"attr",begin:f+d.lookahead(":"),relevance:0},Me,{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:xe,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:b,contains:L}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:m},{begin:E.begin,"on:begin":E.isTrulyOpeningTag,end:E.end}],subLanguage:"xml",contains:[{begin:E.begin,end:E.end,skip:!0,contains:["self"]}]}]},J,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,u.inherit(u.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},ee,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},ve,j,H,Ee,{match:/\$[(.]/}]}}return Ih=l,Ih}var Mh,mT;function GYe(){if(mT)return Mh;mT=1;function t(e){const i={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},s={className:"function",begin:/:[\w\-.]+/,relevance:0},r={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},o={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,o,s,r,i]}}return Mh=t,Mh}var Dh,gT;function VYe(){if(gT)return Dh;gT=1;function t(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},i={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],r={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",keywords:{literal:s},contains:[n,i,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Dh=t,Dh}var kh,bT;function zYe(){if(bT)return kh;bT=1;function t(e){const n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={$pattern:n,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},a={keywords:o,illegal:/<\//},l={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},u={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},h={className:"variable",begin:"\\$"+n},f={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},_={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],begin:"`",end:"`"},m={className:"meta",begin:"@"+n},E={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[l,u,f,_,m,E,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=a.contains,a}return kh=t,kh}var Lh,ET;function HYe(){if(ET)return Lh;ET=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return Lh=t,Lh}var Ph,yT;function qYe(){if(yT)return Ph;yT=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",i={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 s(r){const o={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+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[r.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+r.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[r.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[r.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(h);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+r.UNDERSCORE_IDENT_RE+")?"},_={className:"meta",begin:"@"+r.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[r.inherit(h,{className:"string"}),"self"]}]},m=i,E=r.COMMENT("/\\*","\\*/",{contains:[r.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:r.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},g=b;return g.variants[1].contains=[b],b.variants[1].contains=[g],{name:"Kotlin",aliases:["kt","kts"],keywords:o,contains:[r.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),r.C_LINE_COMMENT_MODE,E,a,l,f,_,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:o,relevance:5,contains:[{begin:r.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,r.C_LINE_COMMENT_MODE,E],relevance:0},r.C_LINE_COMMENT_MODE,E,f,_,h,r.C_NUMBER_MODE]},E]},{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:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,_]},h,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
||
`},m]}}return Ph=s,Ph}var Uh,vT;function YYe(){if(vT)return Uh;vT=1;function t(e){const n="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",s="\\]|\\?>",r={$pattern:n+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("<!--","-->",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},l={className:"meta",begin:"\\[/noprocess|"+i},u={className:"symbol",begin:"'"+n+"'"},d=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+n},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:n,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[u]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:r,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[o]}},a,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:r,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[o]}},a,l].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return Uh=t,Uh}var Fh,ST;function $Ye(){if(ST)return Fh;ST=1;function t(e){const i=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(F=>F+"(?![a-zA-Z@:_])")),s=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(F=>F+"(?![a-zA-Z:_])").join("|")),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:i},{endsParent:!0,begin:s},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:r}]},l={className:"params",relevance:0,begin:/#+\d?/},u={variants:o},d={className:"built_in",relevance:0,begin:/[$&^_]/},h={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},f=e.COMMENT("%","$",{relevance:0}),_=[a,l,u,d,h,f],m={begin:/\{/,end:/\}/,relevance:0,contains:["self",..._]},E=e.inherit(m,{relevance:0,endsParent:!0,contains:[m,..._]}),b={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[m,..._]},g={begin:/\s+/,relevance:0},y=[E],v=[b],S=function(F,B){return{contains:[g],starts:{relevance:0,contains:F,starts:B}}},C=function(F,B){return{begin:"\\\\"+F+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+F},relevance:0,contains:[g],starts:B}},T=function(F,B){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+F+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},S(y,B))},O=(F="string")=>e.END_SAME_AS_BEGIN({className:F,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),k=function(F){return{className:"string",end:"(?=\\\\end\\{"+F+"\\})"}},x=(F="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:F,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),I=[...["verb","lstinline"].map(F=>C(F,{contains:[O()]})),C("mint",S(y,{contains:[O()]})),C("mintinline",S(y,{contains:[x(),O()]})),C("url",{contains:[x("link"),x("link")]}),C("hyperref",{contains:[x("link")]}),C("href",S(v,{contains:[x("link")]})),...[].concat(...["","\\*"].map(F=>[T("verbatim"+F,k("verbatim"+F)),T("filecontents"+F,S(y,k("filecontents"+F))),...["","B","L"].map(B=>T(B+"Verbatim"+F,S(v,k(B+"Verbatim"+F))))])),T("minted",S(v,S(y,k("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...I,..._]}}return Fh=t,Fh}var Bh,TT;function WYe(){if(TT)return Bh;TT=1;function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return Bh=t,Bh}var Gh,xT;function KYe(){if(xT)return Gh;xT=1;function t(e){const n=/([A-Za-z_][A-Za-z_0-9]*)?/,s={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[n,/(?=\()/],scope:{1:"keyword"},contains:[s]};return s.contains.unshift(r),{name:"Leaf",contains:[{match:[/#+/,n,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[s]},{match:[/#+/,n,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return Gh=t,Gh}var Vh,CT;function jYe(){if(CT)return Vh;CT=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"],i=["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"],s=["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(),o=i.concat(s);function a(l){const u=t(l),d=o,h="and or not only",f="[\\w-]+",_="("+f+"|@\\{"+f+"\\})",m=[],E=[],b=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},g=function(F,B,ne){return{className:F,begin:B,relevance:ne}},y={$pattern:/[a-z-]+/,keyword:h,attribute:n.join(" ")},v={begin:"\\(",end:"\\)",contains:E,keywords:y,relevance:0};E.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,b("'"),b('"'),u.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},u.HEXCOLOR,v,g("variable","@@?"+f,10),g("variable","@\\{"+f+"\\}"),g("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},u.IMPORTANT,{beginKeywords:"and not"},u.FUNCTION_DISPATCH);const S=E.concat({begin:/\{/,end:/\}/,contains:m}),C={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(E)},T={begin:_+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:E}}]},O={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:y,returnEnd:!0,contains:E,relevance:0}},k={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:S}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:_,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,C,g("keyword","all\\b"),g("variable","@\\{"+f+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},u.CSS_NUMBER_MODE,g("selector-tag",_,0),g("selector-id","#"+_),g("selector-class","\\."+_,0),g("selector-tag","&",0),u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:S},{begin:"!important"},u.FUNCTION_DISPATCH]},I={begin:f+`:(:)?(${d.join("|")})`,returnBegin:!0,contains:[x]};return m.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,O,k,I,T,x,C,u.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:m}}return Vh=a,Vh}var zh,wT;function QYe(){if(wT)return zh;wT=1;function t(e){const n="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",i="\\|[^]*?\\|",s="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",r={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:s,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+s+" +"+s,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+n},h={begin:n,relevance:0},f={begin:i},m={contains:[o,a,u,d,{begin:"\\(",end:"\\)",contains:["self",r,a,o,h]},h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},E={variants:[{begin:"'"+n},{begin:"#'"+n+"(::"+n+")*"}]},b={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return b.contains=[{className:"name",variants:[{begin:n,relevance:0},{begin:i}]},g],g.contains=[m,E,b,r,o,a,l,u,d,f,h],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),r,a,l,m,E,b,h]}}return zh=t,zh}var Hh,RT;function XYe(){if(RT)return Hh;RT=1;function t(e){const n={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},i=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],s=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[n,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[n,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,s]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,s],relevance:0},{beginKeywords:"command on",end:"$",contains:[n,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,s]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,s].concat(i),illegal:";$|^\\[|^=|&|\\{"}}return Hh=t,Hh}var qh,AT;function ZYe(){if(AT)return qh;AT=1;const t=["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"],e=["true","false","null","undefined","NaN","Infinity"],n=["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"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],r=[].concat(s,n,i);function o(a){const l=["npm","print"],u=["yes","no","on","off","it","that","void"],d=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],h={keyword:t.concat(d),literal:e.concat(u),built_in:r.concat(l)},f="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",_=a.inherit(a.TITLE_MODE,{begin:f}),m={className:"subst",begin:/#\{/,end:/\}/,keywords:h},E={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:h},b=[a.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,E]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,m,E]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[m,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+f},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];m.contains=b;const g={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(b)}]},y={begin:"(#=>|=>|\\|>>|-?->|!->)"},v={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:h};return{name:"LiveScript",aliases:["ls"],keywords:h,illegal:/\/\*/,contains:b.concat([a.COMMENT("\\/\\*","\\*\\/"),a.HASH_COMMENT_MODE,y,{className:"function",contains:[_,g],returnBegin:!0,variants:[{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+f+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},v,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return qh=o,qh}var Yh,NT;function JYe(){if(NT)return Yh;NT=1;function t(e){const n=e.regex,i=/([-a-zA-Z$._][\w$.-]*)/,s={className:"type",begin:/\bi\d+(?=\s|\b)/},r={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},l={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},u={className:"variable",variants:[{begin:n.concat(/%/,i)},{begin:/%\d+/},{begin:/#\d+/}]},d={className:"title",variants:[{begin:n.concat(/@/,i)},{begin:/@\d+/},{begin:n.concat(/!/,i)},{begin:n.concat(/!\d+/,i)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[s,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,o,r,u,l,a]}}return Yh=t,Yh}var $h,OT;function e$e(){if(OT)return $h;OT=1;function t(e){const i={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},s={className:"number",relevance:0,begin:e.C_NUMBER_RE},r={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},o={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[i,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},s,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},o,r,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return $h=t,$h}var Wh,IT;function t$e(){if(IT)return Wh;IT=1;function t(e){const n="\\[=*\\[",i="\\]=*\\]",s={begin:n,end:i,contains:["self"]},r=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,i,{contains:[s],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:i,contains:[s],relevance:5}])}}return Wh=t,Wh}var Kh,MT;function n$e(){if(MT)return Kh;MT=1;function t(e){const n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n]},s={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,n,i,s,r,o,a]}}return Kh=t,Kh}var jh,DT;function i$e(){if(DT)return jh;DT=1;const t=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function e(n){const i=n.regex,s=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,o=/(\d*\.\d+|\d+\.\d*|\d+)/,a=i.either(i.concat(s,r),o),l=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,u=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,d=i.either(l,u),h=/\*\^[+-]?\d+/,_={className:"number",relevance:0,begin:i.concat(a,i.optional(d),i.optional(h))},m=/[a-zA-Z$][a-zA-Z0-9$]*/,E=new Set(t),b={variants:[{className:"builtin-symbol",begin:m,"on:begin":(O,k)=>{E.has(O[0])||k.ignoreMatch()}},{className:"symbol",relevance:0,begin:m}]},g={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},y={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},v={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},S={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},C={className:"brace",relevance:0,begin:/[[\](){}]/},T={className:"message-name",relevance:0,begin:i.concat("::",m)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[n.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),v,S,T,b,g,n.QUOTE_STRING_MODE,_,y,C]}}return jh=e,jh}var Qh,kT;function s$e(){if(kT)return Qh;kT=1;function t(e){const n="('|\\.')+",i={relevance:0,contains:[{begin:n}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:i},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+n,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:i},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:i},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:i},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return Qh=t,Qh}var Xh,LT;function r$e(){if(LT)return Xh;LT=1;function t(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return Xh=t,Xh}var Zh,PT;function o$e(){if(PT)return Zh;PT=1;function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Zh=t,Zh}var Jh,UT;function a$e(){if(UT)return Jh;UT=1;function t(e){const n={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},i=e.COMMENT("%","$"),s={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},r=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),a={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return o.contains=o.contains.slice(),o.contains.push(a),{name:"Mercury",aliases:["m","moo"],keywords:n,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},i,e.C_BLOCK_COMMENT_MODE,s,e.NUMBER_MODE,r,o,{begin:/:-/},{begin:/\.$/}]}}return Jh=t,Jh}var ef,FT;function l$e(){if(FT)return ef;FT=1;function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return ef=t,ef}var tf,BT;function c$e(){if(BT)return tf;BT=1;function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return tf=t,tf}var nf,GT;function d$e(){if(GT)return nf;GT=1;function t(e){const n=e.regex,i=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],s=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:i.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},a={begin:/->\{/,end:/\}/},l={variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},u=[e.BACKSLASH_ESCAPE,o,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(m,E,b="\\1")=>{const g=b==="\\1"?b:n.concat(b,E);return n.concat(n.concat("(?:",m,")"),E,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,b,s)},f=(m,E,b)=>n.concat(n.concat("(?:",m,")"),E,/(?:\\.|[^\\\/])*?/,b,s),_=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,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(...d,{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:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",n.either(...d,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("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 o.contains=_,a.contains=_,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:_}}return nf=t,nf}var sf,VT;function u$e(){if(VT)return sf;VT=1;function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return sf=t,sf}var rf,zT;function p$e(){if(zT)return rf;zT=1;function t(e){const n={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},i={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},s={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),i,s,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,n]}}return rf=t,rf}var of,HT;function _$e(){if(HT)return of;HT=1;function t(e){const n={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION 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 coroutine debug io math os package string table"},i="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:n},r=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];s.contains=r;const o=e.inherit(e.TITLE_MODE,{begin:i}),a="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(r)}]};return{name:"MoonScript",aliases:["moon"],keywords:n,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return of=t,of}var af,qT;function h$e(){if(qT)return af;qT=1;function t(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return af=t,af}var lf,YT;function f$e(){if(YT)return lf;YT=1;function t(e){const n={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},i={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},s={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},r={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),r,s,n,i]}}return lf=t,lf}var cf,$T;function m$e(){if($T)return cf;$T=1;function t(e){const n=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:n.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:r.contains,keywords:{section:"upstream location"}},{className:"section",begin:n.concat(e.UNDERSCORE_IDENT_RE+n.lookahead(/\s+\{/)),relevance:0},{begin:n.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return cf=t,cf}var df,WT;function g$e(){if(WT)return df;WT=1;function t(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return df=t,df}var uf,KT;function b$e(){if(KT)return uf;KT=1;function t(e){const n={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},i={className:"subst",begin:/\$\{/,end:/\}/,keywords:n},s={className:"char.escape",begin:/''\$/},r={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[s,i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,r];return i.contains=a,{name:"Nix",aliases:["nixos"],keywords:n,contains:a}}return uf=t,uf}var pf,jT;function E$e(){if(jT)return pf;jT=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return pf=t,pf}var _f,QT;function y$e(){if(QT)return _f;QT=1;function t(e){const n=e.regex,i=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],s=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],r=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],o={className:"variable.constant",begin:n.concat(/\$/,n.either(...i))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},u={className:"variable",begin:/\$+\([\w^.:!-]+\)/},d={className:"params",begin:n.either(...s)},h={className:"keyword",begin:n.concat(/!/,n.either(...r))},f={className:"char.escape",begin:/\$(\\[nrt]|\$)/},_={className:"title.function",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,o,a,l,u]},E=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],b=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],g={match:[/Function/,/\s+/,n.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},v={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:E,literal:b},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),v,g,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},m,h,a,l,u,d,_,e.NUMBER_MODE]}}return _f=t,_f}var hf,XT;function v$e(){if(XT)return hf;XT=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+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:i,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"]},u={$pattern:i,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"</",contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return hf=t,hf}var ff,ZT;function S$e(){if(ZT)return ff;ZT=1;function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return ff=t,ff}var mf,JT;function T$e(){if(JT)return mf;JT=1;function t(e){const n={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"literal",begin:"false|true|PI|undef"},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",s,r,n,i]},l={begin:"[*!#%]",relevance:0},u={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,r,n,l,u]}}return mf=t,mf}var gf,ex;function x$e(){if(ex)return gf;ex=1;function t(e){const n={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},i=e.COMMENT(/\{/,/\}/,{relevance:0}),s=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:n,contains:[r,o]},i,s]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:n,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[i,s,e.C_LINE_COMMENT_MODE,r,o,e.NUMBER_MODE,a,l]}}return gf=t,gf}var bf,tx;function C$e(){if(tx)return bf;tx=1;function t(e){const n=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[n]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return bf=t,bf}var Ef,nx;function w$e(){if(nx)return Ef;nx=1;function t(e){const n={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},i={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,n,i]}}return Ef=t,Ef}var yf,ix;function R$e(){if(ix)return yf;ix=1;function t(e){const n=e.COMMENT("--","$"),i="[a-zA-Z_][a-zA-Z_0-9$]*",s="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+i+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",l="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",u="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",d=u.trim().split(" ").map(function(b){return b.split("|")[0]}).join("|"),h="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",f="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",_="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",E="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(b){return b.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+l+a,built_in:h+f+_},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+E+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:u.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:s,end:s,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:r,relevance:10}]}}return yf=t,yf}var vf,sx;function A$e(){if(sx)return vf;sx=1;function t(e){const n=e.regex,i=/(?![A-Za-z0-9])(?![$])/,s=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,i),r=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,i),o={scope:"variable",match:"\\$+"+s},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=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)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(L,$)=>{$.data._beginMatch=L[1]||L[2]},"on:end":(L,$)=>{$.data._beginMatch!==L[1]&&$.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
|
||
]`,m={scope:"string",variants:[d,u,h,f]},E={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},b=["false","null","true"],g=["__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"],y=["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"],S={keyword:g,literal:(L=>{const $=[];return L.forEach(H=>{$.push(H),H.toLowerCase()===H?$.push(H.toUpperCase()):$.push(H.toLowerCase())}),$})(b),built_in:y},C=L=>L.map($=>$.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,n.concat(_,"+"),n.concat("(?!",C(y).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},O=n.concat(s,"\\b(?!\\()"),k={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),O],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,n.concat(/::/,n.lookahead(/(?!class\b)/)),O],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"}}]},x={scope:"attr",match:n.concat(s,n.lookahead(":"),n.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[x,o,k,e.C_BLOCK_COMMENT_MODE,m,E,T]},F={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",C(g).join("\\b|"),"|",C(y).join("\\b|"),"\\b)"),s,n.concat(_,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(F);const B=[x,k,e.C_BLOCK_COMMENT_MODE,m,E,T],ne={begin:n.concat(/#\[\s*/,r),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...B]},...B,{scope:"meta",match:r}]};return{case_insensitive:!1,keywords:S,contains:[ne,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/},o,F,k,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},T,{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:S,contains:["self",o,k,e.C_BLOCK_COMMENT_MODE,m,E]}]},{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]},m,E]}}return vf=t,vf}var Sf,rx;function N$e(){if(rx)return Sf;rx=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 Sf=t,Sf}var Tf,ox;function O$e(){if(ox)return Tf;ox=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Tf=t,Tf}var xf,ax;function I$e(){if(ax)return xf;ax=1;function t(e){const n={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},i={className:"string",begin:'"""',end:'"""',relevance:10},s={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},r={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:n,contains:[o,i,s,r,a,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return xf=t,xf}var Cf,lx;function M$e(){if(lx)return Cf;lx=1;function t(e){const n=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],i="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",s="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",r={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},l={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},u={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},h={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},f={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},_=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),m={className:"built_in",variants:[{begin:"(".concat(i,")+(-)[\\w\\d]+")}]},E={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},b={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[l]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,h,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},y={variants:[{className:"operator",begin:"(".concat(s,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},v={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(r.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},C=[S,_,a,e.NUMBER_MODE,d,h,m,l,u,v],T={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",C,{begin:"("+n.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return S.contains.unshift(T),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:r,contains:C.concat(E,b,g,y,T)}}return Cf=t,Cf}var wf,cx;function D$e(){if(cx)return wf;cx=1;function t(e){const n=e.regex,i=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],s=e.IDENT_RE,r={variants:[{match:n.concat(n.either(...i),n.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:n.concat(/\b(?!for|if|while)/,s,n.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,s],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,s],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,s]},{match:[/class/,/\s+/,s]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},u=["boolean","byte","char","color","double","float","int","long","short"],d=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...i,...d],type:u},contains:[l,o,r,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return wf=t,wf}var Rf,dx;function k$e(){if(dx)return Rf;dx=1;function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return Rf=t,Rf}var Af,ux;function L$e(){if(ux)return Af;ux=1;function t(e){const n={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},i={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},s={begin:/\(/,end:/\)/,relevance:0},r={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},l={className:"string",begin:/0'(\\'|.)/},u={className:"string",begin:/0'\\s/},h=[n,i,s,{begin:/:-/},r,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,l,u,e.C_NUMBER_MODE];return s.contains=h,r.contains=h,{name:"Prolog",contains:h.concat([{begin:/\.$/}])}}return Af=t,Af}var Nf,px;function P$e(){if(px)return Nf;px=1;function t(e){const n="[ \\t\\f]*",i="[ \\t\\f]+",s=n+"[:=]"+n,r=i,o="("+s+"|"+r+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",l={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+s},{begin:a+r}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:l},{className:"attr",begin:a+n+"$"}]}}return Nf=t,Nf}var Of,_x;function U$e(){if(_x)return Of;_x=1;function t(e){const n=["package","import","option","optional","required","repeated","group","oneof"],i=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],s={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:n,type:i,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return Of=t,Of}var If,hx;function F$e(){if(hx)return If;hx=1;function t(e){const n={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},i=e.COMMENT("#","$"),s="([A-Za-z_]|::)(\\w|::)*",r=e.inherit(e.TITLE_MODE,{begin:s}),o={className:"variable",begin:"\\$"+s},a={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[i,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[r,i]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:n,relevance:0,contains:[a,i,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}return If=t,If}var Mf,fx;function B$e(){if(fx)return Mf;fx=1;function t(e){const n={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},i={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},n,i]}}return Mf=t,Mf}var Df,mx;function G$e(){if(mx)return Df;mx=1;function t(e){const n=e.regex,i=/[\p{XID_Start}_]\p{XID_Continue}*/u,s=["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:s,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"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},h={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,h,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,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",m=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,E=`\\b|${s.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${m}))[eE][+-]?(${_})[jJ]?(?=${E})`},{begin:`(${m})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${E})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${E})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${E})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${E})`},{begin:`\\b(${_})[jJ](?=${E})`}]},g={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",u,b,f,e.HASH_COMMENT_MODE]}]};return d.contains=[f,b,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,b,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},f,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,y,f]}]}}return Df=t,Df}var kf,gx;function V$e(){if(gx)return kf;gx=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return kf=t,kf}var Lf,bx;function z$e(){if(bx)return Lf;bx=1;function t(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return Lf=t,Lf}var Pf,Ex;function H$e(){if(Ex)return Pf;Ex=1;function t(e){const n=e.regex,i={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},s="[a-zA-Z_][a-zA-Z0-9\\._]*",r={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:s,returnEnd:!1}},l={begin:s+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:s,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},u={begin:n.concat(s,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:s})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:i,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,r,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,l,u],illegal:/#/}}return Pf=t,Pf}var Uf,yx;function q$e(){if(yx)return Uf;yx=1;function t(e){const n=e.regex,i=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=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=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:i,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:i},{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,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[o,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[i,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Uf=t,Uf}var Ff,vx;function Y$e(){if(vx)return Ff;vx=1;function t(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return Ff=t,Ff}var Bf,Sx;function $$e(){if(Sx)return Bf;Sx=1;function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}return Bf=t,Bf}var Gf,Tx;function W$e(){if(Tx)return Gf;Tx=1;function t(e){const n="[a-zA-Z-_][^\\n{]+\\{",i={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+n,end:/\}/,keywords:"facet",contains:[i,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+n,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",i,e.HASH_COMMENT_MODE]},{begin:"^"+n,end:/\}/,contains:[i,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}return Gf=t,Gf}var Vf,xx;function K$e(){if(xx)return Vf;xx=1;function t(e){const n="foreach do while for if from to step else on-error and or not in",i="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",s="add remove enable disable set get print export edit find run debug error info warning",r="true false yes no nothing nil null",o="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},u={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:r,keyword:n+" :"+n.split(" ").join(" :")+" :"+i.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),l,u,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,u,a,{className:"literal",begin:"\\b("+r.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+s.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return Vf=t,Vf}var zf,Cx;function j$e(){if(Cx)return zf;Cx=1;function t(e){const n=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],i=["matrix","float","color","point","normal","vector"],s=["while","for","if","do","return","else","break","extern","continue"],r={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:s,built_in:n,type:i},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},r,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return zf=t,zf}var Hf,wx;function Q$e(){if(wx)return Hf;wx=1;function t(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return Hf=t,Hf}var qf,Rx;function X$e(){if(Rx)return qf;Rx=1;function t(e){const n=e.regex,i={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,n.lookahead(/\s*\(/))},s="([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"],o=["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!","eprintln!","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:o,built_in:a},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:a,type:l}},{className:"punctuation",begin:"->"},i]}}return qf=t,qf}var Yf,Ax;function Z$e(){if(Ax)return Yf;Ax=1;function t(e){const n=e.regex,i=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],s=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],r=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:i},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+n.either(...r)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:n.either(...s)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return Yf=t,Yf}var $f,Nx;function J$e(){if(Nx)return $f;Nx=1;function t(e){const n=e.regex,i={className:"meta",begin:"@[A-Za-z]+"},s={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},r={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,s]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[s],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},l={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a]},u={className:"function",beginKeywords:"def",end:n.lookahead(/[:={\[(\n;]/),contains:[a]},d={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},h={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],_={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,o,u,l,e.C_NUMBER_MODE,d,h,...f,_,i]}}return $f=t,$f}var Wf,Ox;function eWe(){if(Ox)return Wf;Ox=1;function t(e){const n="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(-|\\+)?\\d+([./]\\d+)?",s=i+"[+\\-]"+i+"i",r={$pattern:n,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+n+"|#\\\\.)"},a={className:"number",variants:[{begin:i,relevance:0},{begin:s,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},l=e.QUOTE_STRING_MODE,u=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:n,relevance:0},h={className:"symbol",begin:"'"+n},f={endsWithParent:!0,relevance:0},_={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,l,a,d,h]}]},m={className:"name",relevance:0,begin:n,keywords:r},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[m,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},m,f]};return f.contains=[o,a,l,d,h,_,b].concat(u),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,l,h,_,b].concat(u)}}return Wf=t,Wf}var Kf,Ix;function tWe(){if(Ix)return Kf;Ix=1;function t(e){const n=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:n},e.COMMENT("//","$")].concat(n)}}return Kf=t,Kf}var jf,Mx;function nWe(){if(Mx)return jf;Mx=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"],i=["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"],s=["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 o(a){const l=t(a),u=s,d=i,h="@[a-z-]+",f="and or not only",m={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:":(:)?("+u.join("|")+")"},m,{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,m,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:f,attribute:n.join(" ")},contains:[{begin:h,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},m,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}return jf=o,jf}var Qf,Dx;function iWe(){if(Dx)return Qf;Dx=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 Qf=t,Qf}var Xf,kx;function sWe(){if(kx)return Xf;kx=1;function t(e){const n=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],i=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+s.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+n.join("|")+")\\s"},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+i.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
|
||
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return Xf=t,Xf}var Zf,Lx;function rWe(){if(Lx)return Zf;Lx=1;function t(e){const n="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},s={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0},e.C_NUMBER_MODE,s,i,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,i,e.C_NUMBER_MODE,s]}]}}return Zf=t,Zf}var Jf,Px;function oWe(){if(Px)return Jf;Px=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Jf=t,Jf}var em,Ux;function aWe(){if(Ux)return em;Ux=1;function t(e){const n={className:"variable",begin:/\b_+[a-zA-Z]\w*/},i={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},s={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},r=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:r,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,n,i,s,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return em=t,em}var tm,Fx;function lWe(){if(Fx)return tm;Fx=1;function t(e){const n=e.regex,i=e.COMMENT("--","$"),s={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["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"],u=["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"],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"],f=["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"],_=["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"],m=h,E=[...d,...u].filter(S=>!h.includes(S)),b={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:n.concat(/\b/,n.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function v(S,{exceptions:C,when:T}={}){const O=T;return C=C||[],S.map(k=>k.match(/\|\d+$/)||C.includes(k)?k:O(k)?`${k}|0`:k)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(E,{when:S=>S.length<3}),literal:o,type:l,built_in:f},contains:[{begin:n.either(..._),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:E.concat(_),literal:o,type:l}},{className:"type",begin:n.either(...a)},y,b,s,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,g]}}return tm=t,tm}var nm,Bx;function cWe(){if(Bx)return nm;Bx=1;function t(e){const n=e.regex,i=["functions","model","data","parameters","quantities","transformed","generated"],s=["for","in","if","else","while","break","continue","return"],r=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],o=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],l=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),u={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},d=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:i,type:r,keyword:s,built_in:o},contains:[e.C_LINE_COMMENT_MODE,u,e.HASH_COMMENT_MODE,l,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:n.concat(/[<,]\s*/,n.either(...d),/\s*=/),keywords:d},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,n.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:n.concat(/\w*/,n.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,n.concat(n.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+n.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:n.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return nm=t,nm}var im,Gx;function dWe(){if(Gx)return im;Gx=1;function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r
|
||
]*?"'`},{begin:`"[^\r
|
||
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return im=t,im}var sm,Vx;function uWe(){if(Vx)return sm;Vx=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return sm=t,sm}var rm,zx;function pWe(){if(zx)return rm;zx=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"],i=["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"],s=["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 o(a){const l=t(a),u="and or not only",d={className:"variable",begin:"\\$"+a.IDENT_RE},h=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],f="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,l.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-id"},{begin:"\\b("+e.join("|")+")"+f,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+i.join("|")+")"+f},{className:"selector-pseudo",begin:"&?:(:)?("+s.join("|")+")"+f},l.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:n.join(" ")},contains:[l.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+h.join("|")+"))\\b"},d,l.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[l.HEXCOLOR,d,a.APOS_STRING_MODE,l.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE]}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b",starts:{end:/;|$/,contains:[l.HEXCOLOR,d,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,l.CSS_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},l.FUNCTION_DISPATCH]}}return rm=o,rm}var om,Hx;function _We(){if(Hx)return om;Hx=1;function t(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
|
||
(multipart)?`,end:`\\]
|
||
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return om=t,om}var am,qx;function hWe(){if(qx)return am;qx=1;function t(k){return k?typeof k=="string"?k:k.source:null}function e(k){return n("(?=",k,")")}function n(...k){return k.map(I=>t(I)).join("")}function i(k){const x=k[k.length-1];return typeof x=="object"&&x.constructor===Object?(k.splice(k.length-1,1),x):{}}function s(...k){return"("+(i(k).capture?"":"?:")+k.map(F=>t(F)).join("|")+")"}const r=k=>n(/\b/,k,/\w$/.test(k)?/\b/:/\B/),o=["Protocol","Type"].map(r),a=["init","self"].map(r),l=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","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","macro","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"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],_=["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"],m=s(/[/=\-+!*%<>&|^~?]/,/[\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]/),E=s(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=n(m,E,"*"),g=s(/[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]/),y=s(g,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=n(g,y,"*"),S=n(/[A-Z]/,y,"*"),C=["attached","autoclosure",n(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],T=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function O(k){const x={match:/\s+/,relevance:0},I=k.COMMENT("/\\*","\\*/",{contains:["self"]}),F=[k.C_LINE_COMMENT_MODE,I],B={match:[/\./,s(...o,...a)],className:{2:"keyword"}},ne={match:n(/\./,s(...u)),relevance:0},L=u.filter(qe=>typeof qe=="string").concat(["_|0"]),$=u.filter(qe=>typeof qe!="string").concat(l).map(r),H={variants:[{className:"keyword",match:s(...$,...a)}]},U={$pattern:s(/\b\w+/,/#\w+/),keyword:L.concat(f),literal:d},Q=[B,ne,H],J={match:n(/\./,s(..._)),relevance:0},j={className:"built_in",match:n(/\b/,s(..._),/(?=\()/)},ae=[J,j],ve={match:/->/,relevance:0},ee={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${E})+`}]},Ee=[ve,ee],xe="([0-9]_*)+",Me="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${xe})(\\.(${xe}))?([eE][+-]?(${xe}))?\\b`},{match:`\\b0x(${Me})(\\.(${Me}))?([pP][+-]?(${xe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ye=(qe="")=>({className:"subst",variants:[{match:n(/\\/,qe,/[0\\tnr"']/)},{match:n(/\\/,qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),fe=(qe="")=>({className:"subst",match:n(/\\/,qe,/[\t ]*(?:[\r\n]|\r\n)/)}),Ne=(qe="")=>({className:"subst",label:"interpol",begin:n(/\\/,qe,/\(/),end:/\)/}),Le=(qe="")=>({begin:n(qe,/"""/),end:n(/"""/,qe),contains:[ye(qe),fe(qe),Ne(qe)]}),D=(qe="")=>({begin:n(qe,/"/),end:n(/"/,qe),contains:[ye(qe),Ne(qe)]}),q={className:"string",variants:[Le(),Le("#"),Le("##"),Le("###"),D(),D("#"),D("##"),D("###")]},K=[k.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[k.BACKSLASH_ESCAPE]}],de={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:K},le=qe=>{const tt=n(qe,/\//),Fe=n(/\//,qe);return{begin:tt,end:Fe,contains:[...K,{scope:"comment",begin:`#(?!.*${Fe})`,end:/$/}]}},Re={scope:"regexp",variants:[le("###"),le("##"),le("#"),de]},Ie={match:n(/`/,v,/`/)},z={className:"variable",match:/\$\d+/},pe={className:"variable",match:`\\$${y}+`},re=[Ie,z,pe],ce={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:T,contains:[...Ee,Z,q]}]}},M={scope:"keyword",match:n(/@/,s(...C))},N={scope:"meta",match:n(/@/,v)},W=[ce,M,N],ue={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)/,y,"+")},{className:"type",match:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,e(S)),relevance:0}]},X={begin:/</,end:/>/,keywords:U,contains:[...F,...Q,...W,ve,ue]};ue.contains.push(X);const ie={match:n(v,/\s*:/),keywords:"_|0",relevance:0},Ae={begin:/\(/,end:/\)/,relevance:0,keywords:U,contains:["self",ie,...F,Re,...Q,...ae,...Ee,Z,q,...re,...W,ue]},Ce={begin:/</,end:/>/,keywords:"repeat each",contains:[...F,ue]},ke={begin:s(e(n(v,/\s*:/)),e(n(v,/\s+/,v,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:v}]},Qe={begin:/\(/,end:/\)/,keywords:U,contains:[ke,...F,...Q,...Ee,Z,q,...W,ue,Ae],endsParent:!0,illegal:/["']/},ct={match:[/(func|macro)/,/\s+/,s(Ie.match,v,b)],className:{1:"keyword",3:"title.function"},contains:[Ce,Qe,x],illegal:[/\[/,/%/]},Pe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ce,Qe,x],illegal:/\[|%/},ut={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},Je={begin:[/precedencegroup/,/\s+/,S],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...h,...d],end:/}/};for(const qe of q.variants){const tt=qe.contains.find(pt=>pt.label==="interpol");tt.keywords=U;const Fe=[...Q,...ae,...Ee,Z,q,...re];tt.contains=[...Fe,{begin:/\(/,end:/\)/,contains:["self",...Fe]}]}return{name:"Swift",keywords:U,contains:[...F,ct,Pe,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:U,contains:[k.inherit(k.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...Q]},ut,Je,{beginKeywords:"import",end:/$/,contains:[...F],relevance:0},Re,...Q,...ae,...Ee,Z,q,...re,...W,ue,Ae]}}return am=O,am}var lm,Yx;function fWe(){if(Yx)return lm;Yx=1;function t(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return lm=t,lm}var cm,$x;function mWe(){if($x)return cm;$x=1;function t(e){const n="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l="[0-9]{4}(-[0-9][0-9]){0,2}",u="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",d="(\\.[0-9]*)?",h="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",f={className:"number",begin:"\\b"+l+u+d+h+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},m={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},E={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},b=[s,{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+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{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}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},m,E,o],g=[...b];return g.pop(),g.push(a),_.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}return cm=t,cm}var dm,Wx;function gWe(){if(Wx)return dm;Wx=1;function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return dm=t,dm}var um,Kx;function bWe(){if(Kx)return um;Kx=1;function t(e){const n=e.regex,i=/[a-zA-Z_][a-zA-Z0-9_]*/,s={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:n.concat(/\$/,n.optional(/::/),i,"(::",i,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[s]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},s]}}return um=t,um}var pm,jx;function EWe(){if(jx)return pm;jx=1;function t(e){const n=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:n,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...n,"set","list","map"]},end:">",contains:["self"]}]}}return pm=t,pm}var _m,Qx;function yWe(){if(Qx)return _m;Qx=1;function t(e){const n={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"},s={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",n,i]},r={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",n,e.QUOTE_STRING_MODE,i]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[s,r,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return _m=t,_m}var hm,Xx;function vWe(){if(Xx)return hm;Xx=1;function t(e){const n=e.regex,i=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],s=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let r=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];r=r.concat(r.map(E=>`end${E}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},l={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},u={beginKeywords:i.join(" "),keywords:{name:i},relevance:0,contains:[l]},d={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:s}]},h=(E,{relevance:b})=>({beginScope:{1:"template-tag",3:"name"},relevance:b||2,endScope:"template-tag",begin:[/\{%/,/\s*/,n.either(...E)],end:/%\}/,keywords:"in",contains:[d,u,o,a]}),f=/[a-z_]+/,_=h(r,{relevance:2}),m=h([f],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),_,m,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",d,u,o,a]}]}}return hm=t,hm}var fm,Zx;function SWe(){if(Zx)return fm;Zx=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"],i=["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"],s=["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"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,i,s);function l(d){const h=d.regex,f=(ye,{after:fe})=>{const Ne="</"+ye[0].slice(1);return ye.input.indexOf(Ne,fe)!==-1},_=t,m={begin:"<>",end:"</>"},E=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,fe)=>{const Ne=ye[0].length+ye.index,Le=ye.input[Ne];if(Le==="<"||Le===","){fe.ignoreMatch();return}Le===">"&&(f(ye,{after:Ne})||fe.ignoreMatch());let D;const q=ye.input.substring(Ne);if(D=q.match(/^\s*=/)){fe.ignoreMatch();return}if((D=q.match(/^\s+extends\s+/))&&D.index===0){fe.ignoreMatch();return}}},g={$pattern:t,keyword:e,literal:n,built_in:a,"variable.language":o},y="[0-9](_?[0-9])*",v=`\\.(${y})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${S})((${v})|\\.)?|(${v}))[eE][+-]?(${y})\\b`},{begin:`\\b(${S})\\b((${v})\\b|\\.)?|(${v})\\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},T={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},O={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"css"}},x={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"graphql"}},I={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,T]},B={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:_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},ne=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,O,k,x,I,{match:/\$\d+/},C];T.contains=ne.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(ne)});const L=[].concat(B,T.contains),$=L.concat([{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(L)}]),H={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:$},U={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,h.concat(_,"(",h.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],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:{_:[...i,...s]}},J={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ve(ye){return h.concat("(?!",ye.join("|"),")")}const ee={match:h.concat(/\b/,ve([...r,"super","import"]),_,h.lookahead(/\(/)),className:"title.function",relevance:0},Ee={begin:h.concat(/\./,h.lookahead(h.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xe={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},Me="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(Me)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:Q},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),J,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,O,k,x,I,B,{match:/\$\d+/},C,Q,{className:"attr",begin:_+h.lookahead(":"),relevance:0},Z,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,d.REGEXP_MODE,{className:"function",begin:Me,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:g,contains:$}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:m.begin,end:m.end},{match:E},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,d.inherit(d.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},ee,ae,U,xe,{match:/\$[(.]/}]}}function u(d){const h=l(d),f=t,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],m={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[h.exports.CLASS_REFERENCE]},E={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[h.exports.CLASS_REFERENCE]},b={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],y={$pattern:t,keyword:e.concat(g),literal:n,built_in:a.concat(_),"variable.language":o},v={className:"meta",begin:"@"+f},S=(T,O,k)=>{const x=T.contains.findIndex(I=>I.label===O);if(x===-1)throw new Error("can not find mode to replace");T.contains.splice(x,1,k)};Object.assign(h.keywords,y),h.exports.PARAMS_CONTAINS.push(v),h.contains=h.contains.concat([v,m,E]),S(h,"shebang",d.SHEBANG()),S(h,"use_strict",b);const C=h.contains.find(T=>T.label==="func.def");return C.relevance=0,Object.assign(h,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),h}return fm=u,fm}var mm,Jx;function TWe(){if(Jx)return mm;Jx=1;function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return mm=t,mm}var gm,eC;function xWe(){if(eC)return gm;eC=1;function t(e){const n=e.regex,i={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\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}/,u={className:"literal",variants:[{begin:n.concat(/# */,n.either(o,r),/ *#/)},{begin:n.concat(/# */,l,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(o,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])|[%&])?/}]},h={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),_=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:[i,s,u,d,h,f,_,{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:[_]}]}}return gm=t,gm}var bm,tC;function CWe(){if(tC)return bm;tC=1;function t(e){const n=e.regex,i=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],s=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],r={begin:n.concat(n.either(...i),"\\s*\\("),relevance:0,keywords:{built_in:i}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:s,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[r,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return bm=t,bm}var Em,nC;function wWe(){if(nC)return Em;nC=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return Em=t,Em}var ym,iC;function RWe(){if(iC)return ym;iC=1;function t(e){const n=e.regex,i={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},s=["__FILE__","__LINE__"],r=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:i,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:n.concat(/`/,n.either(...s))},{scope:"meta",begin:n.concat(/`/,n.either(...r)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:r}]}}return ym=t,ym}var vm,sC;function AWe(){if(sC)return vm;sC=1;function t(e){const n="\\d(_|\\d)*",i="[eE][-+]?"+n,s=n+"(\\."+n+")?("+i+")?",r="\\w+",a="\\b("+(n+"#"+r+"(\\."+r+")?#("+i+")?")+"|"+s+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:a,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return vm=t,vm}var Sm,rC;function NWe(){if(rC)return Sm;rC=1;function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return Sm=t,Sm}var Tm,oC;function OWe(){if(oC)return Tm;oC=1;function t(e){e.regex;const n=e.COMMENT(/\(;/,/;\)/);n.contains.push("self");const i=e.COMMENT(/;;/,/$/),s=["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"}},o={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/},u={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:s},contains:[i,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,r,e.QUOTE_STRING_MODE,u,d,l]}}return Tm=t,Tm}var xm,aC;function IWe(){if(aC)return xm;aC=1;function t(e){const n=e.regex,i=/[a-zA-Z]\w*/,s=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],r=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],l=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],u={relevance:0,match:n.concat(/\b(?!(if|while|for|else|super)\b)/,i,/(?=\s*[({])/),className:"title.function"},d={match:n.concat(n.either(n.concat(/\b(?!(if|while|for|else|super)\b)/,i),n.either(...l)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:i}]}]}},h={variants:[{match:[/class\s+/,i,/\s+is\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},f={relevance:0,match:n.either(...l),className:"operator"},_={className:"string",begin:/"""/,end:/"""/},m={className:"property",begin:n.concat(/\./,n.lookahead(i)),end:i,excludeBegin:!0,relevance:0},E={relevance:0,match:n.concat(/\b_/,i),scope:"variable"},b={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},g=e.C_NUMBER_MODE,y={match:[i,/\s*/,/=/,/\s*/,/\(/,i,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},v=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),S={scope:"subst",begin:/%\(/,end:/\)/,contains:[g,b,u,E,f]},C={scope:"string",begin:/"/,end:/"/,contains:[S,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};S.contains.push(C);const T=[...s,...o,...r],O={relevance:0,match:n.concat("\\b(?!",T.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:s,"variable.language":o,literal:r},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:r},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,C,_,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,h,y,d,u,f,E,m,O]}}return xm=t,xm}var Cm,lC;function MWe(){if(lC)return Cm;lC=1;function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return Cm=t,Cm}var wm,cC;function DWe(){if(cC)return wm;cC=1;function t(e){const n=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],i=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],s=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],o={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:n,literal:["true","false","nil"],built_in:i.concat(s)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},l={className:"string",begin:"'",end:"'",illegal:"\\n"},u={className:"string",begin:"<<",end:">>"},d={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},h={beginKeywords:"import",end:"$",keywords:o,contains:[a]},f={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:o}})]};return{name:"XL",aliases:["tao"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,l,u,f,h,d,e.NUMBER_MODE]}}return wm=t,wm}var Rm,dC;function kWe(){if(dC)return Rm;dC=1;function t(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return Rm=t,Rm}var Am,uC;function LWe(){if(uC)return Am;uC=1;function t(e){const n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i=e.UNDERSCORE_TITLE_MODE,s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},r="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:r,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[i,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:["self",e.C_BLOCK_COMMENT_MODE,n,s]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},i]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[i]},{beginKeywords:"use",end:/;/,contains:[i]},{begin:/=>/},n,s]}}return Am=t,Am}var se=rqe;se.registerLanguage("1c",oqe());se.registerLanguage("abnf",aqe());se.registerLanguage("accesslog",lqe());se.registerLanguage("actionscript",cqe());se.registerLanguage("ada",dqe());se.registerLanguage("angelscript",uqe());se.registerLanguage("apache",pqe());se.registerLanguage("applescript",_qe());se.registerLanguage("arcade",hqe());se.registerLanguage("arduino",fqe());se.registerLanguage("armasm",mqe());se.registerLanguage("xml",gqe());se.registerLanguage("asciidoc",bqe());se.registerLanguage("aspectj",Eqe());se.registerLanguage("autohotkey",yqe());se.registerLanguage("autoit",vqe());se.registerLanguage("avrasm",Sqe());se.registerLanguage("awk",Tqe());se.registerLanguage("axapta",xqe());se.registerLanguage("bash",Cqe());se.registerLanguage("basic",wqe());se.registerLanguage("bnf",Rqe());se.registerLanguage("brainfuck",Aqe());se.registerLanguage("c",Nqe());se.registerLanguage("cal",Oqe());se.registerLanguage("capnproto",Iqe());se.registerLanguage("ceylon",Mqe());se.registerLanguage("clean",Dqe());se.registerLanguage("clojure",kqe());se.registerLanguage("clojure-repl",Lqe());se.registerLanguage("cmake",Pqe());se.registerLanguage("coffeescript",Uqe());se.registerLanguage("coq",Fqe());se.registerLanguage("cos",Bqe());se.registerLanguage("cpp",Gqe());se.registerLanguage("crmsh",Vqe());se.registerLanguage("crystal",zqe());se.registerLanguage("csharp",Hqe());se.registerLanguage("csp",qqe());se.registerLanguage("css",Yqe());se.registerLanguage("d",$qe());se.registerLanguage("markdown",Wqe());se.registerLanguage("dart",Kqe());se.registerLanguage("delphi",jqe());se.registerLanguage("diff",Qqe());se.registerLanguage("django",Xqe());se.registerLanguage("dns",Zqe());se.registerLanguage("dockerfile",Jqe());se.registerLanguage("dos",eYe());se.registerLanguage("dsconfig",tYe());se.registerLanguage("dts",nYe());se.registerLanguage("dust",iYe());se.registerLanguage("ebnf",sYe());se.registerLanguage("elixir",rYe());se.registerLanguage("elm",oYe());se.registerLanguage("ruby",aYe());se.registerLanguage("erb",lYe());se.registerLanguage("erlang-repl",cYe());se.registerLanguage("erlang",dYe());se.registerLanguage("excel",uYe());se.registerLanguage("fix",pYe());se.registerLanguage("flix",_Ye());se.registerLanguage("fortran",hYe());se.registerLanguage("fsharp",fYe());se.registerLanguage("gams",mYe());se.registerLanguage("gauss",gYe());se.registerLanguage("gcode",bYe());se.registerLanguage("gherkin",EYe());se.registerLanguage("glsl",yYe());se.registerLanguage("gml",vYe());se.registerLanguage("go",SYe());se.registerLanguage("golo",TYe());se.registerLanguage("gradle",xYe());se.registerLanguage("graphql",CYe());se.registerLanguage("groovy",wYe());se.registerLanguage("haml",RYe());se.registerLanguage("handlebars",AYe());se.registerLanguage("haskell",NYe());se.registerLanguage("haxe",OYe());se.registerLanguage("hsp",IYe());se.registerLanguage("http",MYe());se.registerLanguage("hy",DYe());se.registerLanguage("inform7",kYe());se.registerLanguage("ini",LYe());se.registerLanguage("irpf90",PYe());se.registerLanguage("isbl",UYe());se.registerLanguage("java",FYe());se.registerLanguage("javascript",BYe());se.registerLanguage("jboss-cli",GYe());se.registerLanguage("json",VYe());se.registerLanguage("julia",zYe());se.registerLanguage("julia-repl",HYe());se.registerLanguage("kotlin",qYe());se.registerLanguage("lasso",YYe());se.registerLanguage("latex",$Ye());se.registerLanguage("ldif",WYe());se.registerLanguage("leaf",KYe());se.registerLanguage("less",jYe());se.registerLanguage("lisp",QYe());se.registerLanguage("livecodeserver",XYe());se.registerLanguage("livescript",ZYe());se.registerLanguage("llvm",JYe());se.registerLanguage("lsl",e$e());se.registerLanguage("lua",t$e());se.registerLanguage("makefile",n$e());se.registerLanguage("mathematica",i$e());se.registerLanguage("matlab",s$e());se.registerLanguage("maxima",r$e());se.registerLanguage("mel",o$e());se.registerLanguage("mercury",a$e());se.registerLanguage("mipsasm",l$e());se.registerLanguage("mizar",c$e());se.registerLanguage("perl",d$e());se.registerLanguage("mojolicious",u$e());se.registerLanguage("monkey",p$e());se.registerLanguage("moonscript",_$e());se.registerLanguage("n1ql",h$e());se.registerLanguage("nestedtext",f$e());se.registerLanguage("nginx",m$e());se.registerLanguage("nim",g$e());se.registerLanguage("nix",b$e());se.registerLanguage("node-repl",E$e());se.registerLanguage("nsis",y$e());se.registerLanguage("objectivec",v$e());se.registerLanguage("ocaml",S$e());se.registerLanguage("openscad",T$e());se.registerLanguage("oxygene",x$e());se.registerLanguage("parser3",C$e());se.registerLanguage("pf",w$e());se.registerLanguage("pgsql",R$e());se.registerLanguage("php",A$e());se.registerLanguage("php-template",N$e());se.registerLanguage("plaintext",O$e());se.registerLanguage("pony",I$e());se.registerLanguage("powershell",M$e());se.registerLanguage("processing",D$e());se.registerLanguage("profile",k$e());se.registerLanguage("prolog",L$e());se.registerLanguage("properties",P$e());se.registerLanguage("protobuf",U$e());se.registerLanguage("puppet",F$e());se.registerLanguage("purebasic",B$e());se.registerLanguage("python",G$e());se.registerLanguage("python-repl",V$e());se.registerLanguage("q",z$e());se.registerLanguage("qml",H$e());se.registerLanguage("r",q$e());se.registerLanguage("reasonml",Y$e());se.registerLanguage("rib",$$e());se.registerLanguage("roboconf",W$e());se.registerLanguage("routeros",K$e());se.registerLanguage("rsl",j$e());se.registerLanguage("ruleslanguage",Q$e());se.registerLanguage("rust",X$e());se.registerLanguage("sas",Z$e());se.registerLanguage("scala",J$e());se.registerLanguage("scheme",eWe());se.registerLanguage("scilab",tWe());se.registerLanguage("scss",nWe());se.registerLanguage("shell",iWe());se.registerLanguage("smali",sWe());se.registerLanguage("smalltalk",rWe());se.registerLanguage("sml",oWe());se.registerLanguage("sqf",aWe());se.registerLanguage("sql",lWe());se.registerLanguage("stan",cWe());se.registerLanguage("stata",dWe());se.registerLanguage("step21",uWe());se.registerLanguage("stylus",pWe());se.registerLanguage("subunit",_We());se.registerLanguage("swift",hWe());se.registerLanguage("taggerscript",fWe());se.registerLanguage("yaml",mWe());se.registerLanguage("tap",gWe());se.registerLanguage("tcl",bWe());se.registerLanguage("thrift",EWe());se.registerLanguage("tp",yWe());se.registerLanguage("twig",vWe());se.registerLanguage("typescript",SWe());se.registerLanguage("vala",TWe());se.registerLanguage("vbnet",xWe());se.registerLanguage("vbscript",CWe());se.registerLanguage("vbscript-html",wWe());se.registerLanguage("verilog",RWe());se.registerLanguage("vhdl",AWe());se.registerLanguage("vim",NWe());se.registerLanguage("wasm",OWe());se.registerLanguage("wren",IWe());se.registerLanguage("x86asm",MWe());se.registerLanguage("xl",DWe());se.registerLanguage("xquery",kWe());se.registerLanguage("zephir",LWe());se.HighlightJS=se;se.default=se;var PWe=se;const _o=Ar(PWe),UWe="/assets/vscode_black-c05c76d9.svg",FWe="/assets/vscode-b22df1bb.svg";_o.configure({languages:[]});_o.configure({languages:["bash"]});_o.highlightAll();const BWe={props:{host:{type:String,required:!1,default:"http://localhost:9600"},language:{type:String,required:!0},client_id:{type:String,required:!0},code:{type:String,required:!0},discussion_id:{type:[String,Number],required:!0},message_id:{type:[String,Number],required:!0}},data(){return{isExecuting:!1,isCopied:!1,executionOutput:""}},mounted(){Ge(()=>{He.replace()})},computed:{highlightedCode(){let t;this.language==="vue"||this.language==="vue.js"?t="javascript":this.language==="function"?t="json":t=_o.getLanguage(this.language)?this.language:"plaintext";const e=this.code.trim(),n=e.split(`
|
||
`),i=n.length.toString().length,s=n.map((u,d)=>(d+1).toString().padStart(i," ")),r=document.createElement("div");r.classList.add("line-numbers"),r.innerHTML=s.join("<br>");const o=document.createElement("div");o.classList.add("code-container");const a=document.createElement("pre"),l=document.createElement("code");return l.classList.add("code-content"),l.innerHTML=_o.highlight(e,{language:t,ignoreIllegals:!0}).value,a.appendChild(l),o.appendChild(r),o.appendChild(a),o.outerHTML}},methods:{copyCode(){this.isCopied=!0,console.log("Copying code");const t=document.createElement("textarea");t.value=this.code,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),Ge(()=>{He.replace()})},executeCode(){this.isExecuting=!0;const t=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id?this.discussion_id:0,message_id:this.message_id?this.message_id:0,language:this.language});console.log(t),fetch(`${this.host}/execute_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:t}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},executeCode_in_new_tab(){this.isExecuting=!0;const t=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id,language:this.language});console.log(t),fetch(`${this.host}/execute_code_in_new_tab`,{method:"POST",headers:{"Content-Type":"application/json"},body:t}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},openFolderVsCode(){const t=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id});console.log(t),fetch(`${this.host}/open_code_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:t}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openVsCode(){const t=JSON.stringify({client_id:this.client_id,discussion_id:typeof this.discussion_id=="string"?parseInt(this.discussion_id):this.discussion_id,message_id:this.message_id,code:this.code});console.log(t),fetch(`${this.host}/open_folder_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:t}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openFolder(){const t=JSON.stringify({client_id:this.client_id,discussion_id:this.discussion_id});console.log(t),fetch(`${this.host}/open_discussion_folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:t}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})}}},GWe={class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},VWe={class:"flex flex-row bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},zWe={class:"text-2xl"},HWe=c("i",{"data-feather":"copy"},null,-1),qWe=[HWe],YWe=c("i",{"data-feather":"play-circle"},null,-1),$We=[YWe],WWe=c("i",{"data-feather":"airplay"},null,-1),KWe=[WWe],jWe=c("i",{"data-feather":"folder"},null,-1),QWe=[jWe],XWe=c("img",{src:UWe,width:"25",height:"25"},null,-1),ZWe=[XWe],JWe=c("img",{src:FWe,width:"25",height:"25"},null,-1),eKe=[JWe],tKe={class:"hljs p-1 rounded-md break-all grid grid-cols-1"},nKe={class:"code-container"},iKe=["innerHTML"],sKe={key:0,class:"text-2xl"},rKe={key:1,class:"hljs mt-0 p-1 rounded-md break-all grid grid-cols-1"},oKe={class:"container h-[200px] overflow-x-auto break-all 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"},aKe=["innerHTML"];function lKe(t,e,n,i,s,r){return w(),A("div",GWe,[c("div",VWe,[c("span",zWe,he(n.language),1),c("button",{onClick:e[0]||(e[0]=(...o)=>r.copyCode&&r.copyCode(...o)),title:"copy",class:ze([s.isCopied?"bg-green-500":"bg-bg-dark-tone-panel dark:bg-bg-dark-tone","px-2 py-1 ml-2 text-left p-2 text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white text-xs transition-colors duration-200"])},qWe,2),["function","python","sh","shell","bash","cmd","powershell","latex","mermaid","graphviz","dot","javascript","html","html5","svg"].includes(n.language)?(w(),A("button",{key:0,ref:"btn_code_exec",onClick:e[1]||(e[1]=(...o)=>r.executeCode&&r.executeCode(...o)),title:"execute",class:ze(["px-2 py-1 ml-2 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 text-white text-xs transition-colors duration-200",s.isExecuting?"bg-green-500":""])},$We,2)):V("",!0),["airplay","mermaid","graphviz","dot","javascript","html","html5","svg","css"].includes(n.language)?(w(),A("button",{key:1,ref:"btn_code_exec_in_new_tab",onClick:e[2]||(e[2]=(...o)=>r.executeCode_in_new_tab&&r.executeCode_in_new_tab(...o)),title:"execute",class:ze(["px-2 py-1 ml-2 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 text-white text-xs transition-colors duration-200",s.isExecuting?"bg-green-500":""])},KWe,2)):V("",!0),["python","latex","html"].includes(n.language)?(w(),A("button",{key:2,onClick:e[3]||(e[3]=(...o)=>r.openFolder&&r.openFolder(...o)),title:"open code project folder",class:"px-2 py-1 ml-2 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 text-white text-xs transition-colors duration-200"},QWe)):V("",!0),["python","latex","html"].includes(n.language)?(w(),A("button",{key:3,onClick:e[4]||(e[4]=(...o)=>r.openFolderVsCode&&r.openFolderVsCode(...o)),title:"open code project folder in vscode",class:"px-2 py-1 ml-2 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 text-white text-xs transition-colors duration-200"},ZWe)):V("",!0),["python","latex","html"].includes(n.language)?(w(),A("button",{key:4,onClick:e[5]||(e[5]=(...o)=>r.openVsCode&&r.openVsCode(...o)),title:"open code in vscode",class:"px-2 py-1 ml-2 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 text-white text-xs transition-colors duration-200"},eKe)):V("",!0)]),c("pre",tKe,[et(" "),c("div",nKe,[et(`
|
||
`),c("div",{class:"code-content overflow-x-auto break-all 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",innerHTML:r.highlightedCode,contenteditable:"true",onInput:e[6]||(e[6]=(...o)=>t.updateCode&&t.updateCode(...o))},null,40,iKe),et(`
|
||
`)]),et(`
|
||
|
||
`)]),s.executionOutput?(w(),A("span",sKe,"Execution output")):V("",!0),s.executionOutput?(w(),A("pre",rKe,[et(" "),c("div",oKe,[et(`
|
||
`),c("div",{ref:"execution_output",class:"w-full h-full 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",innerHTML:s.executionOutput},null,8,aKe),et(`
|
||
`)]),et(`
|
||
`)])):V("",!0)])}const cKe=bt(BWe,[["render",lKe]]);/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */const{entries:ON,setPrototypeOf:pC,isFrozen:dKe,getPrototypeOf:uKe,getOwnPropertyDescriptor:gE}=Object;let{freeze:$n,seal:Yi,create:IN}=Object,{apply:$g,construct:Wg}=typeof Reflect<"u"&&Reflect;$n||($n=function(e){return e});Yi||(Yi=function(e){return e});$g||($g=function(e,n,i){return e.apply(n,i)});Wg||(Wg=function(e,n){return new e(...n)});const Uc=wi(Array.prototype.forEach),_C=wi(Array.prototype.pop),dl=wi(Array.prototype.push),Md=wi(String.prototype.toLowerCase),Nm=wi(String.prototype.toString),pKe=wi(String.prototype.match),ul=wi(String.prototype.replace),_Ke=wi(String.prototype.indexOf),hKe=wi(String.prototype.trim),ni=wi(RegExp.prototype.test),pl=fKe(TypeError);function wi(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return $g(t,e,i)}}function fKe(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return Wg(t,n)}}function Nt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Md;pC&&pC(t,null);let i=e.length;for(;i--;){let s=e[i];if(typeof s=="string"){const r=n(s);r!==s&&(dKe(e)||(e[i]=r),s=r)}t[s]=!0}return t}function mKe(t){for(let e=0;e<t.length;e++)gE(t,e)===void 0&&(t[e]=null);return t}function qr(t){const e=IN(null);for(const[n,i]of ON(t))gE(t,n)!==void 0&&(Array.isArray(i)?e[n]=mKe(i):i&&typeof i=="object"&&i.constructor===Object?e[n]=qr(i):e[n]=i);return e}function Fc(t,e){for(;t!==null;){const i=gE(t,e);if(i){if(i.get)return wi(i.get);if(typeof i.value=="function")return wi(i.value)}t=uKe(t)}function n(i){return console.warn("fallback value for",i),null}return n}const hC=$n(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Om=$n(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Im=$n(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gKe=$n(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mm=$n(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bKe=$n(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fC=$n(["#text"]),mC=$n(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Dm=$n(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gC=$n(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bc=$n(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),EKe=Yi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yKe=Yi(/<%[\w\W]*|[\w\W]*%>/gm),vKe=Yi(/\${[\w\W]*}/gm),SKe=Yi(/^data-[\-\w.\u00B7-\uFFFF]/),TKe=Yi(/^aria-[\-\w]+$/),MN=Yi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xKe=Yi(/^(?:\w+script|data):/i),CKe=Yi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DN=Yi(/^html$/i);var bC=Object.freeze({__proto__:null,MUSTACHE_EXPR:EKe,ERB_EXPR:yKe,TMPLIT_EXPR:vKe,DATA_ATTR:SKe,ARIA_ATTR:TKe,IS_ALLOWED_URI:MN,IS_SCRIPT_OR_DATA:xKe,ATTR_WHITESPACE:CKe,DOCTYPE_NAME:DN});const wKe=function(){return typeof window>"u"?null:window},RKe=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(i=n.getAttribute(s));const r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function kN(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wKe();const e=nt=>kN(nt);if(e.version="3.0.8",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const i=n,s=i.currentScript,{DocumentFragment:r,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:_}=t,m=l.prototype,E=Fc(m,"cloneNode"),b=Fc(m,"nextSibling"),g=Fc(m,"childNodes"),y=Fc(m,"parentNode");if(typeof o=="function"){const nt=n.createElement("template");nt.content&&nt.content.ownerDocument&&(n=nt.content.ownerDocument)}let v,S="";const{implementation:C,createNodeIterator:T,createDocumentFragment:O,getElementsByTagName:k}=n,{importNode:x}=i;let I={};e.isSupported=typeof ON=="function"&&typeof y=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:B,TMPLIT_EXPR:ne,DATA_ATTR:L,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:U}=bC;let{IS_ALLOWED_URI:Q}=bC,J=null;const j=Nt({},[...hC,...Om,...Im,...Mm,...fC]);let ae=null;const ve=Nt({},[...mC,...Dm,...gC,...Bc]);let ee=Object.seal(IN(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,xe=null,Me=!0,Z=!0,ye=!1,fe=!0,Ne=!1,Le=!1,D=!1,q=!1,K=!1,de=!1,le=!1,Re=!0,Ie=!1;const z="user-content-";let pe=!0,re=!1,ce={},M=null;const N=Nt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let W=null;const ue=Nt({},["audio","video","img","source","image","track"]);let X=null;const ie=Nt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ae="http://www.w3.org/1998/Math/MathML",Ce="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml";let Qe=ke,ct=!1,Pe=null;const ut=Nt({},[Ae,Ce,ke],Nm);let Je=null;const qe=["application/xhtml+xml","text/html"],tt="text/html";let Fe=null,pt=null;const oe=n.createElement("form"),Ke=function(R){return R instanceof RegExp||R instanceof Function},Ue=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pt&&pt===R)){if((!R||typeof R!="object")&&(R={}),R=qr(R),Je=qe.indexOf(R.PARSER_MEDIA_TYPE)===-1?tt:R.PARSER_MEDIA_TYPE,Fe=Je==="application/xhtml+xml"?Nm:Md,J="ALLOWED_TAGS"in R?Nt({},R.ALLOWED_TAGS,Fe):j,ae="ALLOWED_ATTR"in R?Nt({},R.ALLOWED_ATTR,Fe):ve,Pe="ALLOWED_NAMESPACES"in R?Nt({},R.ALLOWED_NAMESPACES,Nm):ut,X="ADD_URI_SAFE_ATTR"in R?Nt(qr(ie),R.ADD_URI_SAFE_ATTR,Fe):ie,W="ADD_DATA_URI_TAGS"in R?Nt(qr(ue),R.ADD_DATA_URI_TAGS,Fe):ue,M="FORBID_CONTENTS"in R?Nt({},R.FORBID_CONTENTS,Fe):N,Ee="FORBID_TAGS"in R?Nt({},R.FORBID_TAGS,Fe):{},xe="FORBID_ATTR"in R?Nt({},R.FORBID_ATTR,Fe):{},ce="USE_PROFILES"in R?R.USE_PROFILES:!1,Me=R.ALLOW_ARIA_ATTR!==!1,Z=R.ALLOW_DATA_ATTR!==!1,ye=R.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=R.SAFE_FOR_TEMPLATES||!1,Le=R.WHOLE_DOCUMENT||!1,K=R.RETURN_DOM||!1,de=R.RETURN_DOM_FRAGMENT||!1,le=R.RETURN_TRUSTED_TYPE||!1,q=R.FORCE_BODY||!1,Re=R.SANITIZE_DOM!==!1,Ie=R.SANITIZE_NAMED_PROPS||!1,pe=R.KEEP_CONTENT!==!1,re=R.IN_PLACE||!1,Q=R.ALLOWED_URI_REGEXP||MN,Qe=R.NAMESPACE||ke,ee=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&Ke(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&Ke(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Z=!1),de&&(K=!0),ce&&(J=Nt({},fC),ae=[],ce.html===!0&&(Nt(J,hC),Nt(ae,mC)),ce.svg===!0&&(Nt(J,Om),Nt(ae,Dm),Nt(ae,Bc)),ce.svgFilters===!0&&(Nt(J,Im),Nt(ae,Dm),Nt(ae,Bc)),ce.mathMl===!0&&(Nt(J,Mm),Nt(ae,gC),Nt(ae,Bc))),R.ADD_TAGS&&(J===j&&(J=qr(J)),Nt(J,R.ADD_TAGS,Fe)),R.ADD_ATTR&&(ae===ve&&(ae=qr(ae)),Nt(ae,R.ADD_ATTR,Fe)),R.ADD_URI_SAFE_ATTR&&Nt(X,R.ADD_URI_SAFE_ATTR,Fe),R.FORBID_CONTENTS&&(M===N&&(M=qr(M)),Nt(M,R.FORBID_CONTENTS,Fe)),pe&&(J["#text"]=!0),Le&&Nt(J,["html","head","body"]),J.table&&(Nt(J,["tbody"]),delete Ee.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw pl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=R.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=RKe(_,s)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));$n&&$n(R),pt=R}},Oe=Nt({},["mi","mo","mn","ms","mtext"]),Be=Nt({},["foreignobject","desc","title","annotation-xml"]),dt=Nt({},["title","style","font","a","script"]),Et=Nt({},[...Om,...Im,...gKe]),Qt=Nt({},[...Mm,...bKe]),cn=function(R){let Y=y(R);(!Y||!Y.tagName)&&(Y={namespaceURI:Qe,tagName:"template"});const te=Md(R.tagName),ge=Md(Y.tagName);return Pe[R.namespaceURI]?R.namespaceURI===Ce?Y.namespaceURI===ke?te==="svg":Y.namespaceURI===Ae?te==="svg"&&(ge==="annotation-xml"||Oe[ge]):!!Et[te]:R.namespaceURI===Ae?Y.namespaceURI===ke?te==="math":Y.namespaceURI===Ce?te==="math"&&Be[ge]:!!Qt[te]:R.namespaceURI===ke?Y.namespaceURI===Ce&&!Be[ge]||Y.namespaceURI===Ae&&!Oe[ge]?!1:!Qt[te]&&(dt[te]||!Et[te]):!!(Je==="application/xhtml+xml"&&Pe[R.namespaceURI]):!1},Ct=function(R){dl(e.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},$t=function(R,Y){try{dl(e.removed,{attribute:Y.getAttributeNode(R),from:Y})}catch{dl(e.removed,{attribute:null,from:Y})}if(Y.removeAttribute(R),R==="is"&&!ae[R])if(K||de)try{Ct(Y)}catch{}else try{Y.setAttribute(R,"")}catch{}},Sn=function(R){let Y=null,te=null;if(q)R="<remove></remove>"+R;else{const Ve=pKe(R,/^[\r\n\t ]+/);te=Ve&&Ve[0]}Je==="application/xhtml+xml"&&Qe===ke&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const ge=v?v.createHTML(R):R;if(Qe===ke)try{Y=new f().parseFromString(ge,Je)}catch{}if(!Y||!Y.documentElement){Y=C.createDocument(Qe,"template",null);try{Y.documentElement.innerHTML=ct?S:ge}catch{}}const me=Y.body||Y.documentElement;return R&&te&&me.insertBefore(n.createTextNode(te),me.childNodes[0]||null),Qe===ke?k.call(Y,Le?"html":"body")[0]:Le?Y.documentElement:me},bs=function(R){return T.call(R.ownerDocument||R,R,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},Mr=function(R){return R instanceof h&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof d)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},ci=function(R){return typeof a=="function"&&R instanceof a},Tn=function(R,Y,te){I[R]&&Uc(I[R],ge=>{ge.call(e,Y,te,pt)})},di=function(R){let Y=null;if(Tn("beforeSanitizeElements",R,null),Mr(R))return Ct(R),!0;const te=Fe(R.nodeName);if(Tn("uponSanitizeElement",R,{tagName:te,allowedTags:J}),R.hasChildNodes()&&!ci(R.firstElementChild)&&ni(/<[/\w]/g,R.innerHTML)&&ni(/<[/\w]/g,R.textContent))return Ct(R),!0;if(!J[te]||Ee[te]){if(!Ee[te]&&Es(te)&&(ee.tagNameCheck instanceof RegExp&&ni(ee.tagNameCheck,te)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(te)))return!1;if(pe&&!M[te]){const ge=y(R)||R.parentNode,me=g(R)||R.childNodes;if(me&&ge){const Ve=me.length;for(let Xe=Ve-1;Xe>=0;--Xe)ge.insertBefore(E(me[Xe],!0),b(R))}}return Ct(R),!0}return R instanceof l&&!cn(R)||(te==="noscript"||te==="noembed"||te==="noframes")&&ni(/<\/no(script|embed|frames)/i,R.innerHTML)?(Ct(R),!0):(Ne&&R.nodeType===3&&(Y=R.textContent,Uc([F,B,ne],ge=>{Y=ul(Y,ge," ")}),R.textContent!==Y&&(dl(e.removed,{element:R.cloneNode()}),R.textContent=Y)),Tn("afterSanitizeElements",R,null),!1)},ji=function(R,Y,te){if(Re&&(Y==="id"||Y==="name")&&(te in n||te in oe))return!1;if(!(Z&&!xe[Y]&&ni(L,Y))){if(!(Me&&ni($,Y))){if(!ae[Y]||xe[Y]){if(!(Es(R)&&(ee.tagNameCheck instanceof RegExp&&ni(ee.tagNameCheck,R)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(R))&&(ee.attributeNameCheck instanceof RegExp&&ni(ee.attributeNameCheck,Y)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Y))||Y==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&ni(ee.tagNameCheck,te)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(te))))return!1}else if(!X[Y]){if(!ni(Q,ul(te,U,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&R!=="script"&&_Ke(te,"data:")===0&&W[R])){if(!(ye&&!ni(H,ul(te,U,"")))){if(te)return!1}}}}}}return!0},Es=function(R){return R.indexOf("-")>0},ys=function(R){Tn("beforeSanitizeAttributes",R,null);const{attributes:Y}=R;if(!Y)return;const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae};let ge=Y.length;for(;ge--;){const me=Y[ge],{name:Ve,namespaceURI:Xe,value:it}=me,at=Fe(Ve);let rt=Ve==="value"?it:hKe(it);if(te.attrName=at,te.attrValue=rt,te.keepAttr=!0,te.forceKeepAttr=void 0,Tn("uponSanitizeAttribute",R,te),rt=te.attrValue,te.forceKeepAttr||($t(Ve,R),!te.keepAttr))continue;if(!fe&&ni(/\/>/i,rt)){$t(Ve,R);continue}Ne&&Uc([F,B,ne],ht=>{rt=ul(rt,ht," ")});const _t=Fe(R.nodeName);if(ji(_t,at,rt)){if(Ie&&(at==="id"||at==="name")&&($t(Ve,R),rt=z+rt),v&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Xe)switch(_.getAttributeType(_t,at)){case"TrustedHTML":{rt=v.createHTML(rt);break}case"TrustedScriptURL":{rt=v.createScriptURL(rt);break}}try{Xe?R.setAttributeNS(Xe,Ve,rt):R.setAttribute(Ve,rt),_C(e.removed)}catch{}}}Tn("afterSanitizeAttributes",R,null)},vs=function nt(R){let Y=null;const te=bs(R);for(Tn("beforeSanitizeShadowDOM",R,null);Y=te.nextNode();)Tn("uponSanitizeShadowNode",Y,null),!di(Y)&&(Y.content instanceof r&&nt(Y.content),ys(Y));Tn("afterSanitizeShadowDOM",R,null)};return e.sanitize=function(nt){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,te=null,ge=null,me=null;if(ct=!nt,ct&&(nt="<!-->"),typeof nt!="string"&&!ci(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw pl("dirty is not a string, aborting")}else throw pl("toString is not a function");if(!e.isSupported)return nt;if(D||Ue(R),e.removed=[],typeof nt=="string"&&(re=!1),re){if(nt.nodeName){const it=Fe(nt.nodeName);if(!J[it]||Ee[it])throw pl("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof a)Y=Sn("<!---->"),te=Y.ownerDocument.importNode(nt,!0),te.nodeType===1&&te.nodeName==="BODY"||te.nodeName==="HTML"?Y=te:Y.appendChild(te);else{if(!K&&!Ne&&!Le&&nt.indexOf("<")===-1)return v&&le?v.createHTML(nt):nt;if(Y=Sn(nt),!Y)return K?null:le?S:""}Y&&q&&Ct(Y.firstChild);const Ve=bs(re?nt:Y);for(;ge=Ve.nextNode();)di(ge)||(ge.content instanceof r&&vs(ge.content),ys(ge));if(re)return nt;if(K){if(de)for(me=O.call(Y.ownerDocument);Y.firstChild;)me.appendChild(Y.firstChild);else me=Y;return(ae.shadowroot||ae.shadowrootmode)&&(me=x.call(i,me,!0)),me}let Xe=Le?Y.outerHTML:Y.innerHTML;return Le&&J["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&ni(DN,Y.ownerDocument.doctype.name)&&(Xe="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
|
||
`+Xe),Ne&&Uc([F,B,ne],it=>{Xe=ul(Xe,it," ")}),v&&le?v.createHTML(Xe):Xe},e.setConfig=function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ue(nt),D=!0},e.clearConfig=function(){pt=null,D=!1},e.isValidAttribute=function(nt,R,Y){pt||Ue({});const te=Fe(nt),ge=Fe(R);return ji(te,ge,Y)},e.addHook=function(nt,R){typeof R=="function"&&(I[nt]=I[nt]||[],dl(I[nt],R))},e.removeHook=function(nt){if(I[nt])return _C(I[nt])},e.removeHooks=function(nt){I[nt]&&(I[nt]=[])},e.removeAllHooks=function(){I={}},e}kN();function AKe(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const NKe={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},client_id:{type:String,required:!0},markdownText:{type:String,required:!0},discussion_id:{type:[String,Number],default:"0",required:!1},message_id:{value:"0",type:[String,Number],required:!1}},components:{CodeBlock:cKe},setup(t){const e=new Lbe({html:!0,highlight:(s,r)=>{const o=r&&_o.getLanguage(r)?r:"plaintext";return _o.highlight(o,s).value},renderInline:!0,breaks:!0}).use(BHe).use(jo).use(JHe,{figcaption:!0}).use(p7e).use(WHe,{inlineOpen:"$",inlineClose:"$",blockOpen:"$$",blockClose:"$$"}).use(XHe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:`
|
||
`}),n=ft([]),i=()=>{if(t.markdownText){let s=e.parse(t.markdownText,{}),r=[];n.value=[];for(let o=0;o<s.length;o++)s[o].type!=="fence"?r.push(s[o]):(r.length>0&&(n.value.push({type:"html",html:e.renderer.render(r,e.options,{})}),r=[]),n.value.push({type:"code",language:AKe(s[o].info),code:s[o].content}));r.length>0&&(n.value.push({type:"html",html:e.renderer.render(r,e.options,{})}),r=[])}else n.value=[];Ge(()=>{He.replace()})};return qn(()=>t.markdownText,i),Ws(i),{markdownItems:n}}},OKe={class:"break-all container w-full"},IKe={ref:"mdRender",class:"markdown-content"},MKe=["innerHTML"];function DKe(t,e,n,i,s,r){const o=mt("code-block");return w(),A("div",OKe,[c("div",IKe,[(w(!0),A(Ye,null,lt(i.markdownItems,(a,l)=>(w(),A("div",{key:l},[a.type==="code"?(w(),xt(o,{key:0,host:n.host,language:a.language,code:a.code,discussion_id:n.discussion_id,message_id:n.message_id,client_id:n.client_id},null,8,["host","language","code","discussion_id","message_id","client_id"])):(w(),A("div",{key:1,innerHTML:a.html},null,8,MKe))]))),128))],512)])}const ip=bt(NKe,[["render",DKe]]),kKe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:ip},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(t){this.message=t,this.has_button=!0,this.show=!0},showBlockingMessage(t){this.message=t,this.has_button=!1,this.show=!0},updateMessage(t){this.message=t,this.show=!0},hideMessage(){this.show=!1}}},LKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},PKe={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},UKe={class:"container max-h-500 overflow-y-auto"},FKe={class:"text-lg font-medium"},BKe={class:"mt-4 flex justify-center"},GKe={key:1,"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"},VKe=c("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"},null,-1),zKe=c("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"},null,-1),HKe=[VKe,zKe];function qKe(t,e,n,i,s,r){const o=mt("MarkdownRenderer");return s.show?(w(),A("div",LKe,[c("div",PKe,[c("div",UKe,[c("div",FKe,[Te(o,{ref:"mdRender",host:"","markdown-text":s.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),c("div",BKe,[s.has_button?(w(),A("button",{key:0,onClick:e[0]||(e[0]=(...a)=>r.hide&&r.hide(...a)),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 ")):V("",!0),s.has_button?V("",!0):(w(),A("svg",GKe,HKe))])])])):V("",!0)}const LN=bt(kKe,[["render",qKe]]);const YKe={props:{progress:{type:Number,required:!0}}},$Ke={class:"progress-bar-container"};function WKe(t,e,n,i,s,r){return w(),A("div",$Ke,[c("div",{class:"progress-bar",style:en({width:`${n.progress}%`})},null,4)])}const nc=bt(YKe,[["render",WKe]]),KKe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Ge(()=>{He.replace()})},methods:{btn_clicked(t){console.log(t)},hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,i){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=i||this.DenyButtonText;for(let s=0;s<t.length;s++)t[s].isHelp=!1;return new Promise(s=>{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=s,console.log("show form",this.controls_array)})}},watch:{controls_array:{deep:!0,handler(t){t.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Ge(()=>{He.replace()})}}},jKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},QKe={class:"relative w-full max-w-md"},XKe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},ZKe={class:"flex flex-row flex-grow items-center m-2 p-1"},JKe={class:"grow flex items-center"},eje=c("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),tje={class:"text-lg font-semibold select-none mr-2"},nje={class:"items-end"},ije=c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("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),sje=c("span",{class:"sr-only"},"Close form modal",-1),rje=[ije,sje],oje={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},aje={class:"px-2"},lje={key:0},cje={key:0},dje={class:"text-base font-semibold"},uje={key:0,class:"relative inline-flex"},pje=["onUpdate:modelValue"],_je=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),hje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},fje=["onUpdate:modelValue"],mje={key:1},gje={class:"text-base font-semibold"},bje={key:0,class:"relative inline-flex"},Eje=["onUpdate:modelValue"],yje=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),vje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Sje=["onUpdate:modelValue"],Tje=["value","selected"],xje={key:1},Cje={class:"",onclick:"btn_clicked(item)"},wje={key:2},Rje={key:0},Aje={class:"text-base font-semibold"},Nje={key:0,class:"relative inline-flex"},Oje=["onUpdate:modelValue"],Ije=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),Mje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Dje=["onUpdate:modelValue"],kje={key:1},Lje={class:"text-base font-semibold"},Pje={key:0,class:"relative inline-flex"},Uje=["onUpdate:modelValue"],Fje=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),Bje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Gje=["onUpdate:modelValue"],Vje=["value","selected"],zje={key:3},Hje={class:"text-base font-semibold"},qje={key:0,class:"relative inline-flex"},Yje=["onUpdate:modelValue"],$je=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),Wje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Kje=["onUpdate:modelValue"],jje=["onUpdate:modelValue","min","max"],Qje={key:4},Xje={class:"text-base font-semibold"},Zje={key:0,class:"relative inline-flex"},Jje=["onUpdate:modelValue"],eQe=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),tQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},nQe=["onUpdate:modelValue"],iQe=["onUpdate:modelValue","min","max"],sQe={key:5},rQe={class:"mb-2 relative flex items-center gap-2"},oQe={for:"default-checkbox",class:"text-base font-semibold"},aQe=["onUpdate:modelValue"],lQe={key:0,class:"relative inline-flex"},cQe=["onUpdate:modelValue"],dQe=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),uQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},pQe={key:6},_Qe={class:"text-base font-semibold"},hQe={key:0,class:"relative inline-flex"},fQe=["onUpdate:modelValue"],mQe=c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[c("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),gQe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},bQe=["onUpdate:modelValue"],EQe=c("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),yQe={class:"flex flex-row flex-grow gap-3"},vQe={class:"p-2 text-center grow"};function SQe(t,e,n,i,s,r){return s.show?(w(),A("div",jKe,[c("div",QKe,[c("div",XKe,[c("div",ZKe,[c("div",JKe,[eje,c("h3",tje,he(s.title),1)]),c("div",nje,[c("button",{type:"button",onClick:e[0]||(e[0]=be(o=>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"},rje)])]),c("div",oje,[(w(!0),A(Ye,null,lt(s.controls_array,(o,a)=>(w(),A("div",aje,[o.type=="str"||o.type=="string"?(w(),A("div",lje,[o.options?V("",!0):(w(),A("div",cje,[c("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",dje,he(o.name)+": ",1),o.help?(w(),A("label",uje,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,pje),[[Ze,o.isHelp]]),_je])):V("",!0)],2),o.isHelp?(w(),A("p",hje,he(o.help),1)):V("",!0),G(c("input",{type:"text","onUpdate:modelValue":l=>o.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,fje),[[we,o.value]])])),o.options?(w(),A("div",mje,[c("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",gje,he(o.name)+": ",1),o.help?(w(),A("label",bje,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Eje),[[Ze,o.isHelp]]),yje])):V("",!0)],2),o.isHelp?(w(),A("p",vje,he(o.help),1)):V("",!0),G(c("select",{"onUpdate:modelValue":l=>o.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"},[(w(!0),A(Ye,null,lt(o.options,l=>(w(),A("option",{value:l,selected:o.value===l},he(l),9,Tje))),256))],8,Sje),[[jt,o.value]])])):V("",!0)])):V("",!0),o.type=="btn"?(w(),A("div",xje,[c("button",Cje,he(o.name),1)])):V("",!0),o.type=="text"?(w(),A("div",wje,[o.options?V("",!0):(w(),A("div",Rje,[c("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Aje,he(o.name)+": ",1),o.help?(w(),A("label",Nje,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Oje),[[Ze,o.isHelp]]),Ije])):V("",!0)],2),o.isHelp?(w(),A("p",Mje,he(o.help),1)):V("",!0),G(c("textarea",{"onUpdate:modelValue":l=>o.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,Dje),[[we,o.value]])])),o.options?(w(),A("div",kje,[c("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Lje,he(o.name)+": ",1),o.help?(w(),A("label",Pje,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Uje),[[Ze,o.isHelp]]),Fje])):V("",!0)],2),o.isHelp?(w(),A("p",Bje,he(o.help),1)):V("",!0),G(c("select",{"onUpdate:modelValue":l=>o.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"},[(w(!0),A(Ye,null,lt(o.options,l=>(w(),A("option",{value:l,selected:o.value===l},he(l),9,Vje))),256))],8,Gje),[[jt,o.value]])])):V("",!0)])):V("",!0),o.type=="int"?(w(),A("div",zje,[c("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Hje,he(o.name)+": ",1),o.help?(w(),A("label",qje,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Yje),[[Ze,o.isHelp]]),$je])):V("",!0)],2),o.isHelp?(w(),A("p",Wje,he(o.help),1)):V("",!0),G(c("input",{type:"number","onUpdate:modelValue":l=>o.value=l,step:"1",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,Kje),[[we,o.value]]),o.min!=null&&o.max!=null?G((w(),A("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.max,step:"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,jje)),[[we,o.value]]):V("",!0)])):V("",!0),o.type=="float"?(w(),A("div",Qje,[c("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",Xje,he(o.name)+": ",1),o.help?(w(),A("label",Zje,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,Jje),[[Ze,o.isHelp]]),eQe])):V("",!0)],2),o.isHelp?(w(),A("p",tQe,he(o.help),1)):V("",!0),G(c("input",{type:"number","onUpdate:modelValue":l=>o.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,nQe),[[we,o.value]]),o.min!=null&&o.max!=null?G((w(),A("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,min:o.min,max:o.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,iQe)),[[we,o.value]]):V("",!0)])):V("",!0),o.type=="bool"?(w(),A("div",sQe,[c("div",rQe,[c("label",oQe,he(o.name)+": ",1),G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.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,aQe),[[Ze,o.value]]),o.help?(w(),A("label",lQe,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,cQe),[[Ze,o.isHelp]]),dQe])):V("",!0)]),o.isHelp?(w(),A("p",uQe,he(o.help),1)):V("",!0)])):V("",!0),o.type=="list"?(w(),A("div",pQe,[c("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[c("div",_Qe,he(o.name)+": ",1),o.help?(w(),A("label",hQe,[G(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,fQe),[[Ze,o.isHelp]]),mQe])):V("",!0)],2),o.isHelp?(w(),A("p",gQe,he(o.help),1)):V("",!0),G(c("input",{type:"text","onUpdate:modelValue":l=>o.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,bQe),[[we,o.value]])])):V("",!0),EQe]))),256)),c("div",yQe,[c("div",vQe,[c("button",{onClick:e[1]||(e[1]=be(o=>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"},he(s.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=be(o=>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-11 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"},he(s.DenyButtonText),1)])])])])])])):V("",!0)}const bc=bt(KKe,[["render",SQe]]),TQe={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(i=>{this.message=t,this.show=!0,this.resolve=i})}}},xQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},CQe={class:"relative w-full max-w-md max-h-full"},wQe={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},RQe=c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("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),AQe=c("span",{class:"sr-only"},"Close modal",-1),NQe=[RQe,AQe],OQe={class:"p-4 text-center"},IQe=c("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"},[c("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),MQe={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function DQe(t,e,n,i,s,r){return s.show?(w(),A("div",xQe,[c("div",CQe,[c("div",wQe,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>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"},NQe),c("div",OQe,[IQe,c("h3",MQe,he(s.message),1),c("button",{onClick:e[1]||(e[1]=o=>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"},he(s.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=o=>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"},he(s.DenyButtonText),1)])])])])):V("",!0)}const PN=bt(TQe,[["render",DQe]]),kQe={props:{personality:{type:Object,required:!0},config:{type:Object,required:!0}},data(){return{show:!1,title:"Add AI Agent",iconUrl:"",file:null,tempConfig:{}}},methods:{showForm(){this.showDialog=!0},hideForm(){this.showDialog=!1},selectIcon(t){t.target.files&&(this.file=t.target.files[0],this.iconUrl=URL.createObjectURL(this.file))},showPanel(){this.show=!0},hide(){this.show=!1},submitForm(){Se.post("/set_personality_config",{client_id:this.$store.state.client_id,category:this.personality.category,name:this.personality.folder,config:this.config}).then(t=>{const e=t.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(t=>{console.error(t)})}}},LQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},PQe={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},UQe={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},FQe=c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("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),BQe=c("span",{class:"sr-only"},"Close modal",-1),GQe=[FQe,BQe],VQe={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},zQe={class:"w-full flex flex-row mt-4 text-center justify-center"},HQe={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},qQe={class:"mb-4 w-full"},YQe={class:"w-full bg-bg-light dark:bg-bg-dark"},$Qe=c("td",null,[c("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1),WQe=c("td",null,[c("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1),KQe=c("td",null,[c("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1),jQe=c("td",null,[c("label",{for:"linkText"},"Link Text:")],-1),QQe=c("td",null,[c("label",{for:"welcomeMessage"},"Welcome Message:")],-1),XQe=c("td",null,[c("label",{for:"modelTemperature"},"Model Temperature:")],-1),ZQe=c("td",null,[c("label",{for:"modelTopK"},"Model Top K:")],-1),JQe=c("td",null,[c("label",{for:"modelTopP"},"Model Top P:")],-1),eXe=c("td",null,[c("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1),tXe=c("td",null,[c("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1),nXe=c("td",null,[c("label",{for:"recommendedBinding"},"Recommended Binding:")],-1),iXe=c("td",null,[c("label",{for:"recommendedModel"},"Recommended Model:")],-1),sXe=c("td",null,[c("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1),rXe=c("td",null,[c("label",{for:"antiPrompts"},"Anti Prompts:")],-1);function oXe(t,e,n,i,s,r){return s.show?(w(),A("div",LQe,[c("div",PQe,[c("div",UQe,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>r.hide()),class:"absolute top-1 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"},GQe),c("div",VQe,[c("div",zQe,[c("button",{type:"submit",onClick:e[1]||(e[1]=be((...o)=>r.submitForm&&r.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),c("button",{onClick:e[2]||(e[2]=be(o=>r.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),c("div",HQe,[c("form",qQe,[c("table",YQe,[c("tr",null,[$Qe,c("td",null,[G(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>n.config.personality_conditioning=o)},null,512),[[we,n.config.personality_conditioning]])])]),c("tr",null,[WQe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>n.config.user_message_prefix=o)},null,512),[[we,n.config.user_message_prefix]])])]),c("tr",null,[KQe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>n.config.ai_message_prefix=o)},null,512),[[we,n.config.ai_message_prefix]])])]),c("tr",null,[jQe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>n.config.link_text=o)},null,512),[[we,n.config.link_text]])])]),c("tr",null,[QQe,c("td",null,[G(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>n.config.welcome_message=o)},null,512),[[we,n.config.welcome_message]])])]),c("tr",null,[XQe,c("td",null,[G(c("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>n.config.model_temperature=o)},null,512),[[we,n.config.model_temperature]])])]),c("tr",null,[ZQe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>n.config.model_top_k=o)},null,512),[[we,n.config.model_top_k]])])]),c("tr",null,[JQe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>n.config.model_top_p=o)},null,512),[[we,n.config.model_top_p]])])]),c("tr",null,[eXe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>n.config.model_repeat_penalty=o)},null,512),[[we,n.config.model_repeat_penalty]])])]),c("tr",null,[tXe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>n.config.model_repeat_last_n=o)},null,512),[[we,n.config.model_repeat_last_n]])])]),c("tr",null,[nXe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>n.config.recommended_binding=o)},null,512),[[we,n.config.recommended_binding]])])]),c("tr",null,[iXe,c("td",null,[G(c("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>n.config.recommended_model=o)},null,512),[[we,n.config.recommended_model]])])]),c("tr",null,[sXe,c("td",null,[G(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>n.config.dependencies=o)},null,512),[[we,n.config.dependencies]])])]),c("tr",null,[rXe,c("td",null,[G(c("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>n.config.anti_prompts=o)},null,512),[[we,n.config.anti_prompts]])])])])])])])])])])):V("",!0)}const UN=bt(kQe,[["render",oXe]]);const aXe={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){Se.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},lXe=t=>(yo("data-v-d504dfc9"),t=t(),vo(),t),cXe={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},dXe={class:"popup-container"},uXe=["src"],pXe={class:"checkbox-container"},_Xe=lXe(()=>c("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1));function hXe(t,e,n,i,s,r){return w(),xt(cs,{name:"fade"},{default:We(()=>[s.showPopup?(w(),A("div",cXe,[c("div",dXe,[c("button",{onClick:e[0]||(e[0]=(...o)=>r.hide&&r.hide(...o)),class:"close-button"}," X "),c("iframe",{src:s.webpageUrl,class:"iframe-content"},null,8,uXe),c("div",pXe,[G(c("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>r.save_configuration&&r.save_configuration(...o))},null,544),[[Ze,this.$store.state.config.show_news_panel]]),_Xe])])])):V("",!0)]),_:1})}const FN=bt(aXe,[["render",hXe],["__scopeId","data-v-d504dfc9"]]),BN="/assets/fastapi-4a6542d0.png",GN="/assets/discord-6817c341.svg";const fXe={key:0,class:"container z-60 flex flex-col sm:flex-row items-center"},mXe={class:"w-full text-center"},gXe={class:"m-0 flex border-b w-full items-center justify-center flex flex-row font-medium nav-ul text-center"},bXe={name:"Navigation",data(){return{}},methods:{isRouteActive(t){try{return this.$route.name===t}catch{return console.log("routeName not found"),False}}}},VN=Object.assign(bXe,{setup(t){return(e,n)=>e.$store.state.ready?(w(),A("div",fXe,[c("div",mXe,[c("div",gXe,[Te(yt(ks),{to:{name:"discussions"},class:ze(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("discussions"),"bounce-in":e.isRouteActive("discussions")}])},{default:We(()=>[et(" Discussions ")]),_:1},8,["class"]),Te(yt(ks),{to:{name:"playground"},class:ze(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("playground"),"bounce-in":e.isRouteActive("playground")}])},{default:We(()=>[et(" Playground ")]),_:1},8,["class"]),e.$store.state.config.enable_sd_service|e.$store.state.config.active_tti_service=="autosd"?(w(),xt(yt(ks),{key:0,to:{name:"AutoSD"},class:ze(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("AutoSD"),"bounce-in":e.isRouteActive("AutoSD")}])},{default:We(()=>[et(" Auto111-SD ")]),_:1},8,["class"])):V("",!0),e.$store.state.config.enable_comfyui_service|e.$store.state.config.active_tti_service=="comfyui"?(w(),xt(yt(ks),{key:1,to:{name:"ComfyUI"},class:ze(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("ComfyUI"),"bounce-in":e.isRouteActive("ComfyUI")}])},{default:We(()=>[et(" ComfyUI ")]),_:1},8,["class"])):V("",!0),e.$store.state.config.active_tts_service!="None"&e.$store.state.config.active_stt_service!="None"?(w(),xt(yt(ks),{key:2,to:{name:"interactive"},class:ze(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("interactive"),"bounce-in":e.isRouteActive("interactive")}])},{default:We(()=>[et(" interactive ")]),_:1},8,["class"])):V("",!0),Te(yt(ks),{to:{name:"settings"},class:ze(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("settings"),"bounce-in":e.isRouteActive("settings")}])},{default:We(()=>[et(" Settings ")]),_:1},8,["class"]),Te(yt(ks),{to:{name:"help_view"},class:ze(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("help_view"),"bounce-in":e.isRouteActive("help_view")}])},{default:We(()=>[et(" Help ")]),_:1},8,["class"])])])])):V("",!0)}}),zN="/assets/static_info-b284ded1.svg",EXe="/assets/animated_info-7edcb0f9.svg",Ti="/assets/logo-023c77a1.png",HN="/assets/fun_mode-14669a57.svg",qN="/assets/normal_mode-f539f08d.svg";const yXe={class:"top-0 shadow-lg"},vXe={class:"container flex flex-col lg:flex-row item-center gap-2 pb-0"},SXe={class:"flex items-center gap-3 flex-1"},TXe=["src"],xXe=c("div",{class:"flex flex-col"},[c("p",{class:"text-2xl font-bold text-2xl drop-shadow-md align-middle"},"LoLLMS"),c("p",{class:"text-gray-400"},"One tool to rule them all")],-1),CXe={class:"flex gap-3 flex-1 items-center justify-end"},wXe={key:0,title:"Model is ok",class:"text-green-500 cursor-pointer"},RXe=c("b",{class:"text-2xl"},"M",-1),AXe=[RXe],NXe={key:1,title:"Model is not ok",class:"text-red-500 cursor-pointer"},OXe=c("b",{class:"text-2xl"},"M",-1),IXe=[OXe],MXe={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 cursor-pointer"},DXe=c("i",{"data-feather":"flag"},null,-1),kXe=[DXe],LXe={key:3,title:"Generation in progress...",class:"text-red-500 cursor-pointer"},PXe=c("i",{"data-feather":"flag"},null,-1),UXe=[PXe],FXe={key:4,title:"Connection status: Connected",class:"text-green-500 cursor-pointer"},BXe=c("i",{"data-feather":"zap"},null,-1),GXe=[BXe],VXe={key:5,title:"Connection status: Not connected",class:"text-red-500 cursor-pointer"},zXe=c("i",{"data-feather":"zap-off"},null,-1),HXe=[zXe],qXe=c("div",{class:"text-2xl hover:text-primary duration-150",title:"restart program"},[c("i",{"data-feather":"power"})],-1),YXe=[qXe],$Xe=c("div",{class:"text-2xl hover:text-primary duration-150",title:"refresh page"},[c("i",{"data-feather":"refresh-ccw"})],-1),WXe=[$Xe],KXe={href:"https://github.com/ParisNeo/lollms-webui",target:"_blank"},jXe={class:"text-2xl hover:text-primary duration-150",title:"Fast API doc"},QXe={href:"/docs",target:"_blank"},XXe=["src"],ZXe=Vb('<a href="https://github.com/ParisNeo/lollms-webui" target="_blank"><div class="text-2xl hover:text-primary duration-150" title="Visit repository page"><i data-feather="github"></i></div></a><a href="https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ" target="_blank"><div class="text-2xl hover:text-primary duration-150" title="Visit my youtube channel"><i data-feather="youtube"></i></div></a>',2),JXe={href:"https://x.com/ParisNeo_AI",target:"_blank"},eZe={class:"text-2xl hover:fill-primary dark:fill-white dark:hover:fill-primary duration-150",title:"Follow me on my twitter acount"},tZe={class:"w-10 h-10 rounded-lg object-fill dark:text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",style:{"enable-background":"new 0 0 1668.56 1221.19"},"xml:space":"preserve"},nZe=c("g",{id:"layer1",transform:"translate(52.390088,-25.058597)"},[c("path",{id:"path1009",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99\r
|
||
h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z`})],-1),iZe=[nZe],sZe={href:"https://discord.com/channels/1092918764925882418",target:"_blank"},rZe={class:"text-2xl hover:text-primary duration-150",title:"Visit my discord channel"},oZe=["src"],aZe=c("i",{"data-feather":"sun"},null,-1),lZe=[aZe],cZe=c("i",{"data-feather":"moon"},null,-1),dZe=[cZe],uZe=["src"],pZe=["src"],_Ze=["src"],hZe={class:"language-selector relative",style:{position:"relative"}},fZe={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 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",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},mZe={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},gZe=["onClick"],bZe=["onClick"],EZe={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},yZe={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},vZe={class:"text-2xl animate-pulse mt-2 text-white"},SZe={id:"app"},TZe=c("body",null,null,-1),xZe={name:"TopBar",computed:{storeLogo(){return this.$store.state.config?Ti:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Ti},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(t){return console.error("Oopsie! Looks like we hit a snag: ",t),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},components:{Toast:hc,MessageBox:LN,ProgressBar:nc,UniversalForm:bc,YesNoDialog:PN,Navigation:VN,PersonalityEditor:UN,PopupViewer:FN},watch:{"$store.state.config.fun_mode":function(t,e){console.log(`Fun mode changed from ${e} to ${t}! 🎉`)},"$store.state.isConnected":function(t,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Ge(()=>{He.replace()})}},data(){return{customLanguage:"",selectedLanguage:"",isLanguageMenuVisible:!1,static_info:zN,animated_info:EXe,normal_mode:qN,fun_mode:HN,is_first_connection:!0,discord:GN,FastAPI:BN,rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,posts_headers:{accept:"application/json","Content-Type":"application/json"}}},async mounted(){this.$store.state.toast=this.$refs.toast,this.$store.state.news=this.$refs.news,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,this.$store.state.personality_editor=this.$refs.personality_editor,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(),Ge(()=>{He.replace()}),window.addEventListener("resize",this.adjustMenuPosition)},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},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:{adjustMenuPosition(){const t=this.$refs.languageMenu,e=t.getBoundingClientRect(),n=window.innerWidth;e.right>n?(t.style.left="auto",t.style.right="0"):(t.style.left="0",t.style.right="auto")},addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},async selectLanguage(t){await this.$store.dispatch("changeLanguage",t),this.toggleLanguageMenu(),this.language=t},async deleteLanguage(t){await this.$store.dispatch("deleteLanguage",t),this.toggleLanguageMenu(),this.language=t},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},restartProgram(t){t.preventDefault(),this.$store.state.api_post_req("restart_program",this.$store.state.client_id),this.rebooting_audio.play(),this.$store.state.toast.showToast("Rebooting the app. Please wait...",410,!1),console.log("this.$store.state.api_get_req",this.$store.state.api_get_req),setTimeout(()=>{window.close()},2e3)},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(t){console.log("Input text:",t)},applyConfiguration(){this.isLoading=!0,console.log(this.$store.state.config),Se.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config},{headers:this.posts_headers}).then(t=>{this.isLoading=!1,t.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ge(()=>{He.replace()})})},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show()},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),Ge(()=>{Lp(()=>Promise.resolve({}),["assets/stackoverflow-dark-57af98f5.css"])});return}Ge(()=>{Lp(()=>Promise.resolve({}),["assets/stackoverflow-light-077a2b3c.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}Lp(()=>Promise.resolve({}),["assets/tokyo-night-dark-f9656fc4.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")}}},CZe=Object.assign(xZe,{setup(t){return(e,n)=>(w(),A(Ye,null,[c("header",yXe,[c("nav",vXe,[Te(yt(ks),{to:{name:"discussions"}},{default:We(()=>[c("div",SXe,[c("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:e.$store.state.config==null?yt(Ti):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:yt(Ti),alt:"Logo"},null,8,TXe),xXe])]),_:1}),c("div",CXe,[e.isModelOK?(w(),A("div",wXe,AXe)):V("",!0),e.isModelOK?V("",!0):(w(),A("div",NXe,IXe)),e.isGenerating?V("",!0):(w(),A("div",MXe,kXe)),e.isGenerating?(w(),A("div",LXe,UXe)):V("",!0),e.isConnected?(w(),A("div",FXe,GXe)):V("",!0),e.isConnected?V("",!0):(w(),A("div",VXe,HXe)),c("a",{href:"#",onClick:n[0]||(n[0]=(...i)=>e.restartProgram&&e.restartProgram(...i))},YXe),c("a",{href:"#",onClick:n[1]||(n[1]=(...i)=>e.refreshPage&&e.refreshPage(...i))},WXe),c("a",KXe,[c("div",jXe,[c("a",QXe,[c("img",{src:yt(BN),width:"75",height:"25"},null,8,XXe)])])]),ZXe,c("a",JXe,[c("div",eZe,[(w(),A("svg",tZe,iZe))])]),c("a",sZe,[c("div",rZe,[c("img",{src:yt(GN),width:"25",height:"25"},null,8,oZe)])]),c("div",{class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Swith to Light theme",onClick:n[2]||(n[2]=i=>e.themeSwitch())},lZe),c("div",{class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Swith to Dark theme",onClick:n[3]||(n[3]=i=>e.themeSwitch())},dZe),c("div",{class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Lollms News",onClick:n[4]||(n[4]=i=>e.showNews())},[c("img",{src:yt(zN)},null,8,uZe)]),e.is_fun_mode?(w(),A("div",{key:6,title:"fun mode is on press to turn off",class:"text-green-500 cursor-pointer",onClick:n[5]||(n[5]=i=>e.fun_mode_off())},[c("img",{class:"w-5 h-5",src:yt(HN)},null,8,pZe)])):(w(),A("div",{key:7,title:"fun mode is off press to turn on",class:"text-red-500 cursor-pointer",onClick:n[6]||(n[6]=i=>e.fun_mode_on())},[c("img",{class:"w-5 h-5",src:yt(qN)},null,8,_Ze)])),c("div",hZe,[c("button",{onClick:n[7]||(n[7]=(...i)=>e.toggleLanguageMenu&&e.toggleLanguageMenu(...i)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},he(e.$store.state.language.slice(0,2)),1),e.isLanguageMenuVisible?(w(),A("div",fZe,[c("ul",mZe,[(w(!0),A(Ye,null,lt(e.languages,i=>(w(),A("li",{key:i,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[c("button",{onClick:s=>e.deleteLanguage(i),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,gZe),c("div",{onClick:s=>e.selectLanguage(i),class:ze({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":i===e.$store.state.language,"flex-grow":!0})},he(i),11,bZe)]))),128)),c("li",EZe,[G(c("input",{type:"text","onUpdate:modelValue":n[8]||(n[8]=i=>e.customLanguage=i),onKeyup:n[9]||(n[9]=Hs(be((...i)=>e.addCustomLanguage&&e.addCustomLanguage(...i),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[we,e.customLanguage]])])])],512)):V("",!0)])])]),Te(VN),Te(hc,{ref:"toast"},null,512),Te(LN,{ref:"messageBox"},null,512),G(c("div",yZe,[Te(nc,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",vZe,he(e.loading_infos)+" ...",1)],512),[[Mt,e.progress_visibility]]),Te(bc,{ref:"universalForm",class:"z-20"},null,512),Te(PN,{ref:"yesNoDialog",class:"z-20"},null,512),Te(UN,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),c("div",SZe,[Te(FN,{ref:"news"},null,512)])]),TZe],64))}}),wZe={class:"flex overflow-hidden flex-grow w-full"},RZe={__name:"App",setup(t){return(e,n)=>(w(),A("div",{class:ze([e.currentTheme,"flex flex-col h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full dark:bg-bg-dark overflow-hidden"])},[Te(CZe),c("div",wZe,[Te(yt(YA),null,{default:We(({Component:i})=>[(w(),xt(O2,null,[(w(),xt(Lu(i)))],1024))]),_:1})])],2))}},ds=Object.create(null);ds.open="0";ds.close="1";ds.ping="2";ds.pong="3";ds.message="4";ds.upgrade="5";ds.noop="6";const Dd=Object.create(null);Object.keys(ds).forEach(t=>{Dd[ds[t]]=t});const Kg={type:"error",data:"parser error"},YN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",$N=typeof ArrayBuffer=="function",WN=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,bE=({type:t,data:e},n,i)=>YN&&e instanceof Blob?n?i(e):EC(e,i):$N&&(e instanceof ArrayBuffer||WN(e))?n?i(e):EC(new Blob([e]),i):i(ds[t]+(e||"")),EC=(t,e)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];e("b"+(i||""))},n.readAsDataURL(t)};function yC(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let km;function AZe(t,e){if(YN&&t.data instanceof Blob)return t.data.arrayBuffer().then(yC).then(e);if($N&&(t.data instanceof ArrayBuffer||WN(t.data)))return e(yC(t.data));bE(t,!1,n=>{km||(km=new TextEncoder),e(km.encode(n))})}const vC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<vC.length;t++)wl[vC.charCodeAt(t)]=t;const NZe=t=>{let e=t.length*.75,n=t.length,i,s=0,r,o,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const u=new ArrayBuffer(e),d=new Uint8Array(u);for(i=0;i<n;i+=4)r=wl[t.charCodeAt(i)],o=wl[t.charCodeAt(i+1)],a=wl[t.charCodeAt(i+2)],l=wl[t.charCodeAt(i+3)],d[s++]=r<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|l&63;return u},OZe=typeof ArrayBuffer=="function",EE=(t,e)=>{if(typeof t!="string")return{type:"message",data:KN(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:IZe(t.substring(1),e)}:Dd[n]?t.length>1?{type:Dd[n],data:t.substring(1)}:{type:Dd[n]}:Kg},IZe=(t,e)=>{if(OZe){const n=NZe(t);return KN(n,e)}else return{base64:!0,data:t}},KN=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},jN=String.fromCharCode(30),MZe=(t,e)=>{const n=t.length,i=new Array(n);let s=0;t.forEach((r,o)=>{bE(r,!1,a=>{i[o]=a,++s===n&&e(i.join(jN))})})},DZe=(t,e)=>{const n=t.split(jN),i=[];for(let s=0;s<n.length;s++){const r=EE(n[s],e);if(i.push(r),r.type==="error")break}return i};function kZe(){return new TransformStream({transform(t,e){AZe(t,n=>{const i=n.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const r=new DataView(s.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{s=new Uint8Array(9);const r=new DataView(s.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}t.data&&typeof t.data!="string"&&(s[0]|=128),e.enqueue(s),e.enqueue(n)})}})}let Lm;function Gc(t){return t.reduce((e,n)=>e+n.length,0)}function Vc(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let i=0;for(let s=0;s<e;s++)n[s]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),n}function LZe(t,e){Lm||(Lm=new TextDecoder);const n=[];let i=0,s=-1,r=!1;return new TransformStream({transform(o,a){for(n.push(o);;){if(i===0){if(Gc(n)<1)break;const l=Vc(n,1);r=(l[0]&128)===128,s=l[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(Gc(n)<2)break;const l=Vc(n,2);s=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),i=3}else if(i===2){if(Gc(n)<8)break;const l=Vc(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,53-32)-1){a.enqueue(Kg);break}s=d*Math.pow(2,32)+u.getUint32(4),i=3}else{if(Gc(n)<s)break;const l=Vc(n,s);a.enqueue(EE(r?l:Lm.decode(l),e)),i=0}if(s===0||s>t){a.enqueue(Kg);break}}}})}const QN=4;function un(t){if(t)return PZe(t)}function PZe(t){for(var e in un.prototype)t[e]=un.prototype[e];return t}un.prototype.on=un.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};un.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};un.prototype.off=un.prototype.removeListener=un.prototype.removeAllListeners=un.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var i,s=0;s<n.length;s++)if(i=n[s],i===e||i.fn===e){n.splice(s,1);break}return n.length===0&&delete this._callbacks["$"+t],this};un.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,s=n.length;i<s;++i)n[i].apply(this,e)}return this};un.prototype.emitReserved=un.prototype.emit;un.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};un.prototype.hasListeners=function(t){return!!this.listeners(t).length};const fi=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function XN(t,...e){return e.reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=t[i]),n),{})}const UZe=fi.setTimeout,FZe=fi.clearTimeout;function sp(t,e){e.useNativeTimers?(t.setTimeoutFn=UZe.bind(fi),t.clearTimeoutFn=FZe.bind(fi)):(t.setTimeoutFn=fi.setTimeout.bind(fi),t.clearTimeoutFn=fi.clearTimeout.bind(fi))}const BZe=1.33;function GZe(t){return typeof t=="string"?VZe(t):Math.ceil((t.byteLength||t.size)*BZe)}function VZe(t){let e=0,n=0;for(let i=0,s=t.length;i<s;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}function zZe(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function HZe(t){let e={},n=t.split("&");for(let i=0,s=n.length;i<s;i++){let r=n[i].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}class qZe extends Error{constructor(e,n,i){super(e),this.description=n,this.context=i,this.type="TransportError"}}class yE extends un{constructor(e){super(),this.writable=!1,sp(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,i){return super.emitReserved("error",new qZe(e,n,i)),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=EE(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=zZe(e);return n.length?"?"+n:""}}const ZN="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),jg=64,YZe={};let SC=0,zc=0,TC;function xC(t){let e="";do e=ZN[t%jg]+e,t=Math.floor(t/jg);while(t>0);return e}function JN(){const t=xC(+new Date);return t!==TC?(SC=0,TC=t):t+"."+xC(SC++)}for(;zc<jg;zc++)YZe[ZN[zc]]=zc;let eO=!1;try{eO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $Ze=eO;function tO(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||$Ze))return new XMLHttpRequest}catch{}if(!e)try{return new fi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function WZe(){}const KZe=function(){return new tO({xdomain:!1}).responseType!=null}();class jZe extends yE{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}const n=e&&e.forceBase64;this.supportsBinary=KZe&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};DZe(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,MZe(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=JN()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new oa(this.uri(),e)}doWrite(e,n){const i=this.request({method:"POST",data:e});i.on("success",n),i.on("error",(s,r)=>{this.onError("xhr post error",s,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=e}}let oa=class kd extends un{constructor(e,n){super(),sp(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=XN(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const i=this.xhr=new tO(n);try{i.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(i.timeout=this.opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this.opts.cookieJar)===null||s===void 0||s.parseCookies(i)),i.readyState===4&&(i.status===200||i.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof i.status=="number"?i.status:0)},0))},i.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=kd.requestsCount++,kd.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=WZe,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete kd.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()}};oa.requestsCount=0;oa.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",CC);else if(typeof addEventListener=="function"){const t="onpagehide"in fi?"pagehide":"unload";addEventListener(t,CC,!1)}}function CC(){for(let t in oa.requests)oa.requests.hasOwnProperty(t)&&oa.requests[t].abort()}const vE=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Hc=fi.WebSocket||fi.MozWebSocket,wC=!0,QZe="arraybuffer",RC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class XZe extends yE{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,i=RC?{}:XN(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=wC&&!RC?n?new Hc(e,n):new Hc(e):new Hc(e,n,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,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<e.length;n++){const i=e[n],s=n===e.length-1;bE(i,this.supportsBinary,r=>{const o={};try{wC&&this.ws.send(r)}catch{}s&&vE(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=JN()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!Hc}}class ZZe extends yE{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=LZe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(n).getReader(),s=kZe();s.readable.pipeTo(e.writable),this.writer=s.writable.getWriter();const r=()=>{i.read().then(({done:a,value:l})=>{a||(this.onPacket(l),r())}).catch(a=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],s=n===e.length-1;this.writer.write(i).then(()=>{s&&vE(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const JZe={websocket:XZe,webtransport:ZZe,polling:jZe},eJe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tJe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Qg(t){const e=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));let s=eJe.exec(t||""),r={},o=14;for(;o--;)r[tJe[o]]=s[o]||"";return n!=-1&&i!=-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=nJe(r,r.path),r.queryKey=iJe(r,r.query),r}function nJe(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function iJe(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,r){s&&(n[s]=r)}),n}let nO=class Ko extends un{constructor(e,n={}){super(),this.binaryType=QZe,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=Qg(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=Qg(n.host).host),sp(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","webtransport"],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:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=HZe(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=QN,n.transport=e,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new JZe[e](i)}open(){let e;if(this.opts.rememberUpgrade&&Ko.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),i=!1;Ko.priorWebsocketSuccess=!1;const s=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!i)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ko.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function r(){i||(i=!0,d(),n.close(),n=null)}const o=h=>{const f=new Error("probe error: "+h);f.transport=n.name,r(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function u(h){n&&h.name!==n.name&&r()}const d=()=>{n.removeListener("open",s),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",s),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Ko.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<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{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 i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(n+=GZe(s)),i>0&&n>this.maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}write(e,n,i){return this.sendPacket("message",e,n,i),this}send(e,n,i){return this.sendPacket("message",e,n,i),this}sendPacket(e,n,i,s){if(typeof n=="function"&&(s=n,n=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const r={type:e,data:n,options:i};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},i=()=>{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?i():e()}):this.upgrading?i():e()),this}onError(e){Ko.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 i=0;const s=e.length;for(;i<s;i++)~this.transports.indexOf(e[i])&&n.push(e[i]);return n}};nO.protocol=QN;function sJe(t,e="",n){let i=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),i=Qg(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const r=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+e,i.href=i.protocol+"://"+r+(n&&n.port===i.port?"":":"+i.port),i}const rJe=typeof ArrayBuffer=="function",oJe=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,iO=Object.prototype.toString,aJe=typeof Blob=="function"||typeof Blob<"u"&&iO.call(Blob)==="[object BlobConstructor]",lJe=typeof File=="function"||typeof File<"u"&&iO.call(File)==="[object FileConstructor]";function SE(t){return rJe&&(t instanceof ArrayBuffer||oJe(t))||aJe&&t instanceof Blob||lJe&&t instanceof File}function Ld(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if(Ld(t[n]))return!0;return!1}if(SE(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Ld(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Ld(t[n]))return!0;return!1}function cJe(t){const e=[],n=t.data,i=t;return i.data=Xg(n,e),i.attachments=e.length,{packet:i,buffers:e}}function Xg(t,e){if(!t)return t;if(SE(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=Xg(t[i],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=Xg(t[i],e));return n}return t}function dJe(t,e){return t.data=Zg(t.data,e),delete t.attachments,t}function Zg(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=Zg(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=Zg(t[n],e));return t}const uJe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],pJe=5;var Dt;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Dt||(Dt={}));class _Je{constructor(e){this.replacer=e}encode(e){return(e.type===Dt.EVENT||e.type===Dt.ACK)&&Ld(e)?this.encodeAsBinary({type:e.type===Dt.EVENT?Dt.BINARY_EVENT:Dt.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===Dt.BINARY_EVENT||e.type===Dt.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=cJe(e),i=this.encodeAsString(n.packet),s=n.buffers;return s.unshift(i),s}}function AC(t){return Object.prototype.toString.call(t)==="[object Object]"}class TE extends un{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const i=n.type===Dt.BINARY_EVENT;i||n.type===Dt.BINARY_ACK?(n.type=i?Dt.EVENT:Dt.ACK,this.reconstructor=new hJe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(SE(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const i={type:Number(e.charAt(0))};if(Dt[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Dt.BINARY_EVENT||i.type===Dt.BINARY_ACK){const r=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const o=e.substring(r,n);if(o!=Number(o)||e.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(o)}if(e.charAt(n+1)==="/"){const r=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););i.nsp=e.substring(r,n)}else i.nsp="/";const s=e.charAt(n+1);if(s!==""&&Number(s)==s){const r=n+1;for(;++n;){const o=e.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===e.length)break}i.id=Number(e.substring(r,n+1))}if(e.charAt(++n)){const r=this.tryParse(e.substr(n));if(TE.isPayloadValid(i.type,r))i.data=r;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Dt.CONNECT:return AC(n);case Dt.DISCONNECT:return n===void 0;case Dt.CONNECT_ERROR:return typeof n=="string"||AC(n);case Dt.EVENT:case Dt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&uJe.indexOf(n[0])===-1);case Dt.ACK:case Dt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class hJe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=dJe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fJe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:TE,Encoder:_Je,get PacketType(){return Dt},protocol:pJe},Symbol.toStringTag,{value:"Module"}));function Li(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const mJe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sO extends un{constructor(e,n,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Li(e,"open",this.onopen.bind(this)),Li(e,"packet",this.onpacket.bind(this)),Li(e,"error",this.onerror.bind(this)),Li(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(mJe.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const i={type:Dt.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const o=this.ids++,a=n.pop();this._registerAckCallback(o,a),i.id=o}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,n){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[e]=n;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},s);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(r),n.apply(this,[null,...o])}}emitWithAck(e,...n){const i=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,r)=>{n.push((o,a)=>i?o?r(o):s(a):s(o)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((s,...r)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),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:Dt.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 Dt.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 Dt.EVENT:case Dt.BINARY_EVENT:this.onevent(e);break;case Dt.ACK:case Dt.BINARY_ACK:this.onack(e);break;case Dt.DISCONNECT:this.ondisconnect();break;case Dt.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);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 i of n)i.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 i=!1;return function(...s){i||(i=!0,n.packet({type:Dt.ACK,id:e,data:s}))}}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:Dt.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 i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(e===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,e.data)}}}function Wa(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Wa.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};Wa.prototype.reset=function(){this.attempts=0};Wa.prototype.setMin=function(t){this.ms=t};Wa.prototype.setMax=function(t){this.max=t};Wa.prototype.setJitter=function(t){this.jitter=t};class Jg extends un{constructor(e,n){var i;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,sp(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((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Wa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const s=n.parser||fJe;this.encoder=new s.Encoder,this.decoder=new s.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 nO(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Li(n,"open",function(){i.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Li(n,"error",r);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{s(),r(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(s),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Li(e,"ping",this.onping.bind(this)),Li(e,"data",this.ondata.bind(this)),Li(e,"error",this.onerror.bind(this)),Li(e,"close",this.onclose.bind(this)),Li(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){vE(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new sO(this,e,n),this.nsps[e]=i),i}_destroy(e){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let i=0;i<n.length;i++)this.engine.write(n[i],e.options)}cleanup(){this.subs.forEach(e=>e()),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 i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(s=>{s?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",s)):e.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const _l={};function Pd(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=sJe(t,e.path||"/socket.io"),i=n.source,s=n.id,r=n.path,o=_l[s]&&r in _l[s].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let l;return a?l=new Jg(i,e):(_l[s]||(_l[s]=new Jg(i,e)),l=_l[s]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(Pd,{Manager:Jg,Socket:sO,io:Pd,connect:Pd});const rO="/";console.log(rO);const $e=new Pd(rO,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});const gJe={props:{value:String,inputType:{type:String,default:"text",validator:t=>["text","email","password","file","path","integer","float"].includes(t)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(t){console.log("Changing value to ",t),this.inputValue=t}},mounted(){Ge(()=>{He.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(t){this.inputValue=t.target.value,this.$emit("input",t.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(t){if(this.inputType==="integer"){const e=t.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",t.target.value),this.$emit("input",t.target.value)},async pasteFromClipboard(){try{const t=await navigator.clipboard.readText();this.handleClipboardData(t)}catch(t){console.error("Failed to read from clipboard:",t)}},handlePaste(t){const e=t.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(t){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(t)?t:"";break;case"password":this.inputValue=t;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(t);break;case"float":this.inputValue=this.parseFloat(t);break;default:this.inputValue=t;break}},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},parseInteger(t){const e=parseInt(t);return isNaN(e)?"":e},parseFloat(t){const e=parseFloat(t);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(t){const e=t.target.files[0];e&&(this.inputValue=e.name)}}},bJe={class:"flex items-center space-x-2"},EJe=["value","type","placeholder"],yJe=["value","min","max"],vJe=c("i",{"data-feather":"clipboard"},null,-1),SJe=[vJe],TJe=c("i",{"data-feather":"upload"},null,-1),xJe=[TJe],CJe=["accept"];function wJe(t,e,n,i,s,r){return w(),A("div",bJe,[t.useSlider?(w(),A("input",{key:1,type:"range",value:parseInt(s.inputValue),min:t.minSliderValue,max:t.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>r.handleSliderInput&&r.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,yJe)):(w(),A("input",{key:0,value:s.inputValue,type:n.inputType,placeholder:s.placeholderText,onInput:e[0]||(e[0]=(...o)=>r.handleInput&&r.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>r.handlePaste&&r.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,EJe)),c("button",{onClick:e[3]||(e[3]=(...o)=>r.pasteFromClipboard&&r.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},SJe),n.inputType==="file"?(w(),A("button",{key:2,onClick:e[4]||(e[4]=(...o)=>r.openFileInput&&r.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},xJe)):V("",!0),n.inputType==="file"?(w(),A("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:n.fileAccept,onChange:e[5]||(e[5]=(...o)=>r.handleFileInputChange&&r.handleFileInputChange(...o))},null,40,CJe)):V("",!0)])}const xE=bt(gJe,[["render",wJe]]),RJe={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},AJe={class:"w-full"},NJe={class:"break-words"},OJe={class:"break-words mt-2"},IJe={class:"mt-4"};function MJe(t,e,n,i,s,r){return w(),A("div",AJe,[c("div",NJe,[(w(!0),A(Ye,null,lt(n.namedTokens,(o,a)=>(w(),A("span",{key:a},[c("span",{class:"inline-block whitespace-pre-wrap",style:en({backgroundColor:s.colors[a%s.colors.length]})},he(o[0]),5)]))),128))]),c("div",OJe,[(w(!0),A(Ye,null,lt(n.namedTokens,(o,a)=>(w(),A("span",{key:a},[c("span",{class:"inline-block px-1 whitespace-pre-wrap",style:en({backgroundColor:s.colors[a%s.colors.length]})},he(o[1]),5)]))),128))]),c("div",IJe,[c("strong",null,"Total Tokens: "+he(n.namedTokens.length),1)])])}const DJe=bt(RJe,[["render",MJe]]);const kJe={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},LJe={key:1,class:"flex flex-wrap"},PJe={key:2,class:"mb-2"};function UJe(t,e,n,i,s,r){return w(),A(Ye,null,[s.isActive?(w(),A("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>r.toggleCard&&r.toggleCard(...o))})):V("",!0),G(c("div",{class:ze(["border-blue-300 rounded-lg shadow-lg p-2",r.cardWidthClass,"m-2",{"bg-white dark:bg-gray-800":n.is_subcard},{"bg-white dark:bg-gray-900":!n.is_subcard},{hovered:!n.disableHoverAnimation&&s.isHovered,active:s.isActive}]),onMouseenter:e[2]||(e[2]=o=>s.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>s.isHovered=!1),onClick:e[4]||(e[4]=be((...o)=>r.toggleCard&&r.toggleCard(...o),["self"])),style:en({cursor:this.disableFocus?"":"pointer"})},[n.title?(w(),A("div",{key:0,onClick:e[1]||(e[1]=o=>s.shrink=!0),class:ze([{"text-center p-2 m-2 bg-gray-200":!n.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},he(n.title),3)):V("",!0),n.isHorizontal?(w(),A("div",LJe,[kn(t.$slots,"default")])):(w(),A("div",PJe,[kn(t.$slots,"default")]))],38),[[Mt,s.shrink===!1]]),n.is_subcard?G((w(),A("div",{key:1,onClick:e[5]||(e[5]=o=>s.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},he(n.title),513)),[[Mt,s.shrink===!0]]):G((w(),A("div",{key:2,onClick:e[6]||(e[6]=o=>s.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[Mt,s.shrink===!0]])],64)}const rp=bt(kJe,[["render",UJe]]),oO="/assets/code_block-e2753d3f.svg",aO="/assets/python_block-4008a934.png",lO="/assets/javascript_block-5e59df30.svg",cO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",dO="/assets/cpp_block-109b2fbe.png",uO="/assets/html5_block-205d2852.png",pO="/assets/LaTeX_block-06b165c0.png",_O="/assets/bash_block-7ca80e4e.png",FJe="/assets/tokenize_icon-0553c60f.svg",BJe="/assets/deaf_on-7481cb29.svg",GJe="/assets/deaf_off-c2c46908.svg",VJe="/assets/rec_on-3b37b566.svg",zJe="/assets/rec_off-2c08e836.svg",hO="/assets/loading-c3bdfb0a.svg";const HJe="/";async function NC(t,e="",n=[]){return new Promise((i,s)=>{const r=document.createElement("div");r.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",n.length===0?r.innerHTML=`
|
||
<div class="bg-white p-6 rounded-md shadow-md w-80">
|
||
<h2 class="text-lg font-semibold mb-3">${t}</h2>
|
||
<textarea id="replacementInput" class="w-full h-32 border rounded p-2 mb-3">${e}</textarea>
|
||
<div class="flex justify-end">
|
||
<button id="cancelButton" class="mr-2 px-4 py-2 border rounded">Cancel</button>
|
||
<button id="okButton" class="px-4 py-2 bg-blue-500 text-white rounded">OK</button>
|
||
</div>
|
||
</div>
|
||
`:r.innerHTML=`
|
||
<div class="bg-white p-6 rounded-md shadow-md w-80">
|
||
<h2 class="text-lg font-semibold mb-3">${t}</h2>
|
||
<select id="options_selector" class="form-control w-full h-25 border rounded p-2 mb-3">
|
||
${n.map(l=>`<option value="${l}">${l}</option>`)}
|
||
</select>
|
||
<div class="flex justify-end">
|
||
<button id="cancelButton" class="mr-2 px-4 py-2 border rounded">Cancel</button>
|
||
<button id="okButton" class="px-4 py-2 bg-blue-500 text-white rounded">OK</button>
|
||
</div>
|
||
</div>
|
||
`,document.body.appendChild(r);const o=r.querySelector("#cancelButton"),a=r.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(r),i(null)}),a.addEventListener("click",()=>{if(n.length===0){const u=r.querySelector("#replacementInput").value.trim();document.body.removeChild(r),i(u)}else{const u=r.querySelector("#options_selector").value.trim();document.body.removeChild(r),i(u)}})})}function qJe(t,e){console.log(t);let n={},i=/@<([^>]+)>@/g,s=[],r;for(;(r=i.exec(t))!==null;)s.push("@<"+r[1]+">@");console.log("matches"),console.log(s),s=[...new Set(s)];async function o(l){console.log(l);let u=l.toLowerCase().substring(2,l.length-2);if(u!=="generation_placeholder")if(u.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([b,g])=>{console.log(`Key: ${b}, Value: ${g}`);function y(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const v=y(b),S=new RegExp(v,"g");u=u.replace(S,g)});let h=u.split(":"),f=h[0],_=h[1]||"",m=[];h.length>2&&(m=h.slice(1));let E=await NC(f,_,m);E!==null&&(n[l]=E)}else{let d=await NC(u);d!==null&&(n[l]=d)}}let a=Promise.resolve();s.forEach(l=>{a=a.then(()=>o(l)).then(u=>{console.log(u)})}),a.then(()=>{Object.entries(n).forEach(([l,u])=>{console.log(`Key: ${l}, Value: ${u}`);function d(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const h=d(l),f=new RegExp(h,"g");t=t.replace(f,u)}),e(t)})}const YJe={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:dO,html5_block:uO,LaTeX_block:pO,javascript_block:lO,json_block:cO,code_block:oO,python_block:aO,bash_block:_O,tokenize_icon:FJe,deaf_off:GJe,deaf_on:BJe,rec_off:zJe,rec_on:VJe,loading_icon:hO,isSynthesizingVoice:!1,audio_url:null,mdRenderHeight:300,selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,namedTokens:[],text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:hc,MarkdownRenderer:ip,ClipBoardTextInput:xE,TokensHilighter:DJe,Card:rp},mounted(){Se.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}),$e.on("text_chunk",t=>{this.appendToOutput(t.chunk)}),$e.on("text_generated",t=>{this.generating=!1}),$e.on("generation_error",t=>{console.log("generation_error:",t),this.$refs.toast.showToast(`Error: ${t}`,4,!1),this.generating=!1}),$e.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),$e.on("buzzy",t=>{console.error("Server is busy. Wait for your turn",t),this.$refs.toast.showToast(`Error: ${t.message}`,4,!1),this.generating=!1}),$e.on("generation_canceled",t=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{He.replace()}),"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser.")},created(){},watch:{audio_url(t){t&&(console.log("Audio changed url to :",t),this.$refs.audio_player.src=t)}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{triggerFileUpload(){this.$refs.fileInput.click()},handleFileUpload(t){this.file=this.$refs.fileInput.files[0],this.buttonText=this.file.name,this.uploadFile()},uploadFile(){console.log("sending file");const t=new FormData;t.append("file",this.file),Se.post("/upload_voice/",t,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{console.log(e),this.buttonText="Upload a voice"}).catch(e=>{console.error(e)})},addBlock(t){let e=this.$refs.mdTextarea.selectionStart,n=this.$refs.mdTextarea.selectionEnd;e==n?speechSynthesis==0||this.text[e-1]==`
|
||
`?(this.text=this.text.slice(0,e)+"```"+t+"\n\n```\n"+this.text.slice(e),e=e+4+t.length):(this.text=this.text.slice(0,e)+"\n```"+t+"\n\n```\n"+this.text.slice(e),e=e+3+t.length):speechSynthesis==0||this.text[e-1]==`
|
||
`?(this.text=this.text.slice(0,e)+"```"+t+`
|
||
`+this.text.slice(e,n)+"\n```\n"+this.text.slice(n),e=e+4+t.length):(this.text=this.text.slice(0,e)+"\n```"+t+`
|
||
`+this.text.slice(e,n)+"\n```\n"+this.text.slice(n),e=e+3+t.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},insertTab(t){const e=t.target,n=e.selectionStart,i=e.selectionEnd,s=e.value.substring(0,n),r=e.value.substring(i),o=s+" "+r;this.text=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4}),t.preventDefault()},mdTextarea_changed(){console.log("mdTextarea_changed"),this.cursorPosition=this.$refs.mdTextarea.selectionStart},mdTextarea_clicked(){console.log(`mdTextarea_clicked: ${this.$refs.mdTextarea.selectionStart}`),this.cursorPosition=this.$refs.mdTextarea.selectionStart},setModel(){this.selecting_model=!0,Se.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:this.selectedModel}).then(t=>{console.log(t),t.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(t=>{this.$refs.toast.showToast(`Error ${t}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){console.log("READING..."),this.isSynthesizingVoice=!0;let t=this.$refs.mdTextarea.selectionStart,e=this.$refs.mdTextarea.selectionEnd,n=this.text;t!=e&&(n=n.slice(t,e)),Se.post("./text2Audio",{text:n}).then(i=>{console.log(i.data.url);let s=i.data.url;this.audio_url=HJe+s,this.isSynthesizingVoice=!1,Ge(()=>{He.replace()})}).catch(i=>{this.$refs.toast.showToast(`Error: ${i}`,4,!1),this.isSynthesizingVoice=!1,Ge(()=>{He.replace()})})},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const n=s=>{let r=this.text.substring(s,s+e);const o=[".","!","?",`
|
||
`];let a=-1;return o.forEach(l=>{const u=r.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{const s=n(t),r=this.text.substring(t,s);this.msg.text=r,t=s+1,this.msg.onend=o=>{t<this.text.length-2?setTimeout(()=>{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",s))},this.speechSynthesis.speak(this.msg)};i()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(t){this.pre_text+=t,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let t=this.text.indexOf("@<generation_placeholder>@");if(t<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,t)+this.text.substring(t+26,this.text.length),this.pre_text=this.text.substring(0,t),this.post_text=this.text.substring(t,this.text.length);var e=this.text.substring(0,t);console.log(e),$e.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const t=await Se.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(t.data.named_tokens),this.namedTokens=t.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var t=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${t}`),$e.emit("generate_text",{prompt:t,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){$e.emit("cancel_text_generation",{})},exportText(){const t=this.text,e=document.createElement("a"),n=new Blob([t],{type:"text/plain"});e.href=URL.createObjectURL(n),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const t=document.getElementById("import-input");t&&(t.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const n=new FileReader;n.onload=()=>{this.text=n.result},n.readAsText(e.target.files[0])}else alert("Please select a file.")}),t.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=qJe(this.selectedPreset.content,t=>{console.log("Done"),console.log(t),this.text=t})},addPreset(){let t=prompt("Enter the title of the preset:");this.presets[t]={client_id:this.$store.state.client_id,name:t,content:this.text},Se.post("./add_preset",this.presets[t]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){Se.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?Se.post("/stop_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!1,this.pending=!1,console.log(t),this.text+=t.data.text,console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):Se.post("/start_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!0,this.pending=!1,console.log(t.data)}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?Se.get("/stop_recording").then(t=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=t.data.text,this.read()}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):Se.get("/start_recording").then(t=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=t=>{this.generated="";for(let e=t.resultIndex;e<t.results.length;e++)this.generated+=t.results[e][0].transcript;this.text=this.pre_text+this.generated+this.post_text,this.cursorPosition=this.pre_text.length+this.generated.length,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},$Je={class:"container w-full bg-bg-light dark:bg-bg-dark shadow-lg 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"},WJe={class:"container flex flex-row m-2 w-full"},KJe={class:"flex-grow max-w-[900px] m-2"},jJe={class:"flex gap-3 flex-1 items-center flex-grow flex-row m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4"},QJe=c("i",{"data-feather":"pen-tool"},null,-1),XJe=[QJe],ZJe=c("i",{"data-feather":"archive"},null,-1),JJe=[ZJe],eet=["src"],tet=c("span",{class:"w-80"},null,-1),net=c("i",{"data-feather":"x"},null,-1),iet=[net],set=c("i",{"data-feather":"mic"},null,-1),ret=[set],oet=c("i",{"data-feather":"volume-2"},null,-1),aet=[oet],cet=c("i",{"data-feather":"speaker"},null,-1),det=[cet],uet=["src"],pet=["src"],_et=["src"],het=["src"],fet=c("i",{"data-feather":"voicemail"},null,-1),met=[fet],get={key:1,"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"},bet=c("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"},null,-1),Eet=c("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"},null,-1),yet=[bet,Eet],vet=c("i",{"data-feather":"upload"},null,-1),Tet=[vet],xet=c("i",{"data-feather":"download"},null,-1),Cet=[xet],wet={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},Ret=c("input",{type:"file",id:"import-input",class:"hidden"},null,-1),Aet={key:0},Net={class:"flex flex-row justify-end mx-2"},Oet=["src"],Iet=["src"],Met=["src"],Det=["src"],ket=["src"],Let=["src"],Pet=["src"],Uet=["src"],Fet=c("i",{"data-feather":"copy"},null,-1),Bet=[Fet],Get=["src"],Vet={key:2},zet=["value"],Het={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},qet=c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Selecting model...")],-1),Yet=[qet],$et=["value"],Wet=c("br",null,null,-1),Ket=c("i",{"data-feather":"check"},null,-1),jet=[Ket],Qet=c("i",{"data-feather":"plus"},null,-1),Xet=[Qet],Zet=c("i",{"data-feather":"x"},null,-1),Jet=[Zet],ett=c("i",{"data-feather":"refresh-ccw"},null,-1),ttt=[ett],ntt={class:"slider-container ml-2 mr-2"},itt=c("h3",{class:"text-gray-600"},"Temperature",-1),stt={class:"slider-value text-gray-500"},rtt={class:"slider-container ml-2 mr-2"},ott=c("h3",{class:"text-gray-600"},"Top K",-1),att={class:"slider-value text-gray-500"},ltt={class:"slider-container ml-2 mr-2"},ctt=c("h3",{class:"text-gray-600"},"Top P",-1),dtt={class:"slider-value text-gray-500"},utt={class:"slider-container ml-2 mr-2"},ptt=c("h3",{class:"text-gray-600"},"Repeat Penalty",-1),_tt={class:"slider-value text-gray-500"},htt={class:"slider-container ml-2 mr-2"},ftt=c("h3",{class:"text-gray-600"},"Repeat Last N",-1),mtt={class:"slider-value text-gray-500"},gtt={class:"slider-container ml-2 mr-2"},btt=c("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1),Ett={class:"slider-value text-gray-500"},ytt={class:"slider-container ml-2 mr-2"},vtt=c("h3",{class:"text-gray-600"},"Number of tokens to generate",-1),Stt={class:"slider-value text-gray-500"},Ttt={class:"slider-container ml-2 mr-2"},xtt=c("h3",{class:"text-gray-600"},"Seed",-1),Ctt={class:"slider-value text-gray-500"};function wtt(t,e,n,i,s,r){const o=mt("tokens-hilighter"),a=mt("MarkdownRenderer"),l=mt("Card"),u=mt("Toast");return w(),A(Ye,null,[c("div",$Je,[c("div",WJe,[c("div",KJe,[c("div",jJe,[G(c("button",{id:"generate-button",title:"Generate from current cursor position",onClick:e[0]||(e[0]=(...d)=>r.generate&&r.generate(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},XJe,512),[[Mt,!s.generating]]),G(c("button",{id:"generate-next-button",title:"Generate from next place holder",onClick:e[1]||(e[1]=(...d)=>r.generate_in_placeholder&&r.generate_in_placeholder(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},JJe,512),[[Mt,!s.generating]]),G(c("button",{id:"tokenize",title:"Tokenize text",onClick:e[2]||(e[2]=(...d)=>r.tokenize_text&&r.tokenize_text(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},[c("img",{width:"25",height:"25",src:s.tokenize_icon},null,8,eet)],512),[[Mt,!s.generating]]),tet,G(c("button",{id:"stop-button",onClick:e[3]||(e[3]=(...d)=>r.stopGeneration&&r.stopGeneration(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},iet,512),[[Mt,s.generating]]),c("button",{type:"button",title:"Dictate (using your browser for transcription)",onClick:e[4]||(e[4]=(...d)=>r.startSpeechRecognition&&r.startSpeechRecognition(...d)),class:ze([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},ret,2),c("button",{title:"convert text to audio (not saved and uses your browser tts service)",onClick:e[5]||(e[5]=be(d=>r.speak(),["stop"])),class:ze([{"text-red-500":r.isTalking},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},aet,2),c("input",{type:"file",ref:"fileInput",onChange:e[6]||(e[6]=(...d)=>r.handleFileUpload&&r.handleFileUpload(...d)),style:{display:"none"},accept:".wav"},null,544),c("button",{title:"Upload a voice",onClick:e[7]||(e[7]=(...d)=>r.triggerFileUpload&&r.triggerFileUpload(...d))},det),c("button",{type:"button",title:"Start audio to audio",onClick:e[8]||(e[8]=(...d)=>r.startRecordingAndTranscribing&&r.startRecordingAndTranscribing(...d)),class:ze([{"text-green-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[s.pending?V("",!0):(w(),A("img",{key:0,src:s.is_deaf_transcribing?s.deaf_on:s.deaf_off,height:"25"},null,8,uet)),s.pending?(w(),A("img",{key:1,src:s.loading_icon,height:"25"},null,8,pet)):V("",!0)],2),c("button",{type:"button",title:"Start recording audio",onClick:e[9]||(e[9]=(...d)=>r.startRecording&&r.startRecording(...d)),class:ze([{"text-green-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[s.pending?V("",!0):(w(),A("img",{key:0,src:s.is_recording?s.rec_on:s.rec_off,height:"25"},null,8,_et)),s.pending?(w(),A("img",{key:1,src:s.loading_icon,height:"25"},null,8,het)):V("",!0)],2),s.isSynthesizingVoice?(w(),A("svg",get,yet)):(w(),A("button",{key:0,title:"generate audio from the text",onClick:e[10]||(e[10]=be(d=>r.read(),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},met)),G(c("button",{id:"export-button",onClick:e[11]||(e[11]=(...d)=>r.exportText&&r.exportText(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},Tet,512),[[Mt,!s.generating]]),G(c("button",{id:"import-button",onClick:e[12]||(e[12]=(...d)=>r.importText&&r.importText(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},Cet,512),[[Mt,!s.generating]]),c("div",wet,[c("button",{class:ze(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="source"}]),onClick:e[13]||(e[13]=d=>s.tab_id="source")}," Source ",2),c("button",{class:ze(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="render"}]),onClick:e[14]||(e[14]=d=>s.tab_id="render")}," Render ",2)]),Ret]),c("div",{class:ze(["flex-grow m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4",{"border-red-500":s.generating}])},[s.tab_id==="source"?(w(),A("div",Aet,[c("div",Net,[c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[15]||(e[15]=be(d=>r.addBlock(""),["stop"]))},[c("img",{src:s.code_block,width:"25",height:"25"},null,8,Oet)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[16]||(e[16]=be(d=>r.addBlock("python"),["stop"]))},[c("img",{src:s.python_block,width:"25",height:"25"},null,8,Iet)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add javascript block",onClick:e[17]||(e[17]=be(d=>r.addBlock("javascript"),["stop"]))},[c("img",{src:s.javascript_block,width:"25",height:"25"},null,8,Met)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add json block",onClick:e[18]||(e[18]=be(d=>r.addBlock("json"),["stop"]))},[c("img",{src:s.json_block,width:"25",height:"25"},null,8,Det)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add c++ block",onClick:e[19]||(e[19]=be(d=>r.addBlock("c++"),["stop"]))},[c("img",{src:s.cpp_block,width:"25",height:"25"},null,8,ket)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add html block",onClick:e[20]||(e[20]=be(d=>r.addBlock("html"),["stop"]))},[c("img",{src:s.html5_block,width:"25",height:"25"},null,8,Let)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add LaTex block",onClick:e[21]||(e[21]=be(d=>r.addBlock("latex"),["stop"]))},[c("img",{src:s.LaTeX_block,width:"25",height:"25"},null,8,Pet)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add bash block",onClick:e[22]||(e[22]=be(d=>r.addBlock("bash"),["stop"]))},[c("img",{src:s.bash_block,width:"25",height:"25"},null,8,Uet)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Copy message to clipboard",onClick:e[23]||(e[23]=be(d=>t.copyContentToClipboard(),["stop"]))},Bet)]),G(c("textarea",{ref:"mdTextarea",onKeydown:e[24]||(e[24]=Hs(be((...d)=>r.insertTab&&r.insertTab(...d),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full 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 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark 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",rows:4,style:en({minHeight:s.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[25]||(e[25]=d=>s.text=d),onClick:e[26]||(e[26]=be((...d)=>r.mdTextarea_clicked&&r.mdTextarea_clicked(...d),["prevent"])),onChange:e[27]||(e[27]=be((...d)=>r.mdTextarea_changed&&r.mdTextarea_changed(...d),["prevent"]))},`\r
|
||
`,36),[[we,s.text]]),c("span",null,"Cursor position "+he(s.cursorPosition),1)])):V("",!0),s.audio_url!=null?(w(),A("audio",{controls:"",key:s.audio_url},[c("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,Get),et(" Your browser does not support the audio element. ")])):V("",!0),Te(o,{namedTokens:s.namedTokens},null,8,["namedTokens"]),s.tab_id==="render"?(w(),A("div",Vet,[Te(a,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":s.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):V("",!0)],2)]),Te(l,{title:"settings",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[Te(l,{title:"Model",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[G(c("select",{"onUpdate:modelValue":e[28]||(e[28]=d=>this.$store.state.selectedModel=d),onChange:e[29]||(e[29]=(...d)=>r.setModel&&r.setModel(...d)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(w(!0),A(Ye,null,lt(r.models,d=>(w(),A("option",{key:d,value:d},he(d),9,zet))),128))],544),[[jt,this.$store.state.selectedModel]]),s.selecting_model?(w(),A("div",Het,Yet)):V("",!0)]),_:1}),Te(l,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[G(c("select",{"onUpdate:modelValue":e[30]||(e[30]=d=>s.selectedPreset=d),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(w(!0),A(Ye,null,lt(s.presets,d=>(w(),A("option",{key:d,value:d},he(d.name),9,$et))),128))],512),[[jt,s.selectedPreset]]),Wet,c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[31]||(e[31]=(...d)=>r.setPreset&&r.setPreset(...d)),title:"Use preset"},jet),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[32]||(e[32]=(...d)=>r.addPreset&&r.addPreset(...d)),title:"Add this text as a preset"},Xet),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[33]||(e[33]=(...d)=>r.removePreset&&r.removePreset(...d)),title:"Remove preset"},Jet),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[34]||(e[34]=(...d)=>r.reloadPresets&&r.reloadPresets(...d)),title:"Reload presets list"},ttt)]),_:1}),Te(l,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[c("div",ntt,[itt,G(c("input",{type:"range","onUpdate:modelValue":e[35]||(e[35]=d=>s.temperature=d),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[we,s.temperature]]),c("span",stt,"Current value: "+he(s.temperature),1)]),c("div",rtt,[ott,G(c("input",{type:"range","onUpdate:modelValue":e[36]||(e[36]=d=>s.top_k=d),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[we,s.top_k]]),c("span",att,"Current value: "+he(s.top_k),1)]),c("div",ltt,[ctt,G(c("input",{type:"range","onUpdate:modelValue":e[37]||(e[37]=d=>s.top_p=d),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[we,s.top_p]]),c("span",dtt,"Current value: "+he(s.top_p),1)]),c("div",utt,[ptt,G(c("input",{type:"range","onUpdate:modelValue":e[38]||(e[38]=d=>s.repeat_penalty=d),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[we,s.repeat_penalty]]),c("span",_tt,"Current value: "+he(s.repeat_penalty),1)]),c("div",htt,[ftt,G(c("input",{type:"range","onUpdate:modelValue":e[39]||(e[39]=d=>s.repeat_last_n=d),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[we,s.repeat_last_n]]),c("span",mtt,"Current value: "+he(s.repeat_last_n),1)]),c("div",gtt,[btt,G(c("input",{type:"number","onUpdate:modelValue":e[40]||(e[40]=d=>s.n_crop=d),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[we,s.n_crop]]),c("span",Ett,"Current value: "+he(s.n_crop),1)]),c("div",ytt,[vtt,G(c("input",{type:"number","onUpdate:modelValue":e[41]||(e[41]=d=>s.n_predicts=d),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[we,s.n_predicts]]),c("span",Stt,"Current value: "+he(s.n_predicts),1)]),c("div",Ttt,[xtt,G(c("input",{type:"number","onUpdate:modelValue":e[42]||(e[42]=d=>s.seed=d),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[we,s.seed]]),c("span",Ctt,"Current value: "+he(s.seed),1)])]),_:1})]),_:1})])]),Te(u,{ref:"toast"},null,512)],64)}const Rtt=bt(YJe,[["render",wtt]]);const Att={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(nM(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(t){this.activeExtension=t}}},Ntt={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark 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"},Ott={key:0},Itt=["onClick"],Mtt={key:0},Dtt=["src"],ktt={key:1},Ltt=c("p",null,"No extension is active. Please install and activate an extension.",-1),Ptt=[Ltt];function Utt(t,e,n,i,s,r){return w(),A("div",Ntt,[r.activeExtensions.length>0?(w(),A("div",Ott,[(w(!0),A(Ye,null,lt(r.activeExtensions,o=>(w(),A("div",{key:o.name,onClick:a=>r.showExtensionPage(o)},[c("div",{class:ze({"active-tab":o===s.activeExtension})},he(o.name),3)],8,Itt))),128)),s.activeExtension?(w(),A("div",Mtt,[c("iframe",{src:s.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,Dtt)])):V("",!0)])):(w(),A("div",ktt,Ptt))])}const Ftt=bt(Att,[["render",Utt]]),Btt={},Gtt={style:{width:"100vw",height:"100vh"}},Vtt=c("iframe",{src:"/help/index.html",class:"m-0 p-0 w-full h-full"},null,-1),ztt=[Vtt];function Htt(t,e,n,i,s,r){return w(),A("div",Gtt,ztt)}const qtt=bt(Btt,[["render",Htt]]);function rs(t,e=!0,n=1){const i=e?1e3:1024;if(Math.abs(t)<i)return t+" B";const s=e?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let r=-1;const o=10**n;do t/=i,++r;while(Math.round(Math.abs(t)*o)/o>=i&&r<s.length-1);return t.toFixed(n)+" "+s[r]}const Pi="/assets/logo-023c77a1.png";const Ytt={props:{title:{type:String,required:!1,value:"menu"},icon:{type:String,required:!1,value:"feather:menu"},commands:{type:Array,required:!0},force_position:{required:!1,value:0},execute_cmd:{type:Function,required:!1},menuIconClass:{type:String,required:!1,default:""},selected_entry:{type:String,required:!1}},data(){return{isMenuOpen:!1,menuPosition:{bottom:"auto",top:"calc(100% + 10px)"}}},methods:{handleClickOutside(t){const e=this.$refs.menu,n=this.$refs.menuButton;e&&!e.contains(t.target)&&!n.contains(t.target)&&(this.isMenuOpen=!1,window.removeEventListener("click",this.handleClickOutside))},toggleMenu(){this.positionMenu(),this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?window.addEventListener("click",this.handleClickOutside):window.removeEventListener("click",this.handleClickOutside),Ge(()=>{He.replace()})},executeCommand(t){this.isMenuOpen=!1,console.log("Selected"),console.log(t.value),typeof t.value=="function"&&(console.log("Command detected",t),t.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(t))},positionMenu(){var t;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),n=window.innerHeight;t=e.bottom>n/2}else this.force_position==1?t=!0:t=!1;this.menuPosition.top=t?"auto":"calc(100% + 10px)",this.menuPosition.bottom=t?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Ge(()=>{He.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},$tt={class:"menu-container"},Wtt=["title"],Ktt=["src"],jtt=["data-feather"],Qtt={key:2,class:"w-5 h-5"},Xtt={key:3,"data-feather":"menu"},Ztt={class:"flex-grow menu-ul"},Jtt=["onClick"],ent={key:0,"data-feather":"check"},tnt=["src","alt"],nnt=["data-feather"],int={key:3,class:"menu-icon"};function snt(t,e,n,i,s,r){return w(),A("div",$tt,[c("button",{onClick:e[0]||(e[0]=be((...o)=>r.toggleMenu&&r.toggleMenu(...o),["prevent"])),title:n.title,class:ze([n.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 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"]),ref:"menuButton"},[n.icon&&!n.icon.includes("#")&&!n.icon.includes("feather")?(w(),A("img",{key:0,src:n.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,Ktt)):n.icon&&n.icon.includes("feather")?(w(),A("i",{key:1,"data-feather":n.icon.split(":")[1],class:"w-5 h-5"},null,8,jtt)):n.icon&&n.icon.includes("#")?(w(),A("p",Qtt,he(n.icon.split("#")[1]),1)):(w(),A("i",Xtt))],10,Wtt),Te(cs,{name:"slide"},{default:We(()=>[s.isMenuOpen?(w(),A("div",{key:0,class:"menu-list flex-grow",style:en(s.menuPosition),ref:"menu"},[c("ul",Ztt,[(w(!0),A(Ye,null,lt(n.commands,(o,a)=>(w(),A("li",{key:a,onClick:be(l=>r.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[n.selected_entry==o.name?(w(),A("i",ent)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(w(),A("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,tnt)):V("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(w(),A("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,nnt)):(w(),A("span",int)),c("span",null,he(o.name),1)],8,Jtt))),128))])],4)):V("",!0)]),_:1})])}const CE=bt(Ytt,[["render",snt]]),rnt={components:{InteractiveMenu:CE},props:{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,linkNotValid:!1,selected_variant:""}},async mounted(){Ge(()=>{He.replace()})},methods:{formatFileSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(t){return rs(t)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?Pi:this.model.icon},defaultImg(t){t.target.src=Pi},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(t){if(console.log("event.target.tagName.toLowerCase()"),console.log(t.target.tagName.toLowerCase()),t.target.tagName.toLowerCase()==="button"||t.target.tagName.toLowerCase()==="svg"){t.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Ge(()=>{He.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let t=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&t.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&t.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),t},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const t=this.model.variants[0].size;return this.formatFileSize(t)}return null}},speed_computed(){return rs(this.speed)},total_size_computed(){return rs(this.total_size)},downloaded_size_computed(){return rs(this.downloaded_size)}},watch:{linkNotValid(){Ge(()=>{He.replace()})}}},ont=["title"],ant={key:0,class:"flex flex-row"},lnt={class:"max-w-[300px] overflow-x-auto"},cnt={class:"flex gap-3 items-center grow"},dnt=["href"],unt=["src"],pnt={class:"flex-1 overflow-hidden"},_nt={class:"font-bold font-large text-lg truncate"},hnt={key:1,class:"flex items-center flex-row gap-2 my-1"},fnt={class:"flex grow items-center"},mnt=c("i",{"data-feather":"box",class:"w-5"},null,-1),gnt=c("span",{class:"sr-only"},"Custom model / local model",-1),bnt=[mnt,gnt],Ent=c("span",{class:"sr-only"},"Remove",-1),ynt={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"},vnt={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Snt=c("div",{role:"status",class:"justify-center"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1),Tnt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},xnt={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Cnt={class:"flex justify-between mb-1"},wnt=c("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),Rnt={class:"text-sm font-medium text-blue-700 dark:text-white"},Ant={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Nnt={class:"flex justify-between mb-1"},Ont={class:"text-base font-medium text-blue-700 dark:text-white"},Int={class:"text-sm font-medium text-blue-700 dark:text-white"},Mnt={class:"flex flex-grow"},Dnt={class:"flex flex-row flex-grow gap-3"},knt={class:"p-2 text-center grow"},Lnt={key:3},Pnt={class:"flex flex-row items-center gap-3"},Unt=["src"],Fnt={class:"font-bold font-large text-lg truncate"},Bnt=c("div",{class:"grow"},null,-1),Gnt={class:"flex items-center flex-row-reverse gap-2 my-1"},Vnt={class:"flex flex-row items-center"},znt={key:0,class:"text-base text-red-600 flex items-center mt-1"},Hnt=c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),qnt=["title"],Ynt={class:""},$nt={class:"flex flex-row items-center"},Wnt=c("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),Knt=c("b",null,"Card: ",-1),jnt=["href","title"],Qnt=c("div",{class:"grow"},null,-1),Xnt=c("i",{"data-feather":"clipboard",class:"w-5"},null,-1),Znt=[Xnt],Jnt={class:"flex items-center"},eit=c("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),tit=c("b",null,"File size: ",-1),nit={class:"flex items-center"},iit=c("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),sit=c("b",null,"License: ",-1),rit={key:0,class:"flex items-center"},oit=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),ait=c("b",null,"quantizer: ",-1),lit=["href"],cit={class:"flex items-center"},dit=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),uit=c("b",null,"Model creator: ",-1),pit=["href"],_it={class:"flex items-center"},hit=c("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),fit=c("b",null,"Release date: ",-1),mit={class:"flex items-center"},git=c("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),bit=c("b",null,"Category: ",-1),Eit=["href"];function yit(t,e,n,i,s,r){const o=mt("InteractiveMenu");return w(),A("div",{class:ze(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",r.computed_classes]),title:n.model.name,onClick:e[10]||(e[10]=be(a=>r.toggleSelected(a),["prevent"]))},[n.model.isCustomModel?(w(),A("div",ant,[c("div",lnt,[c("div",cnt,[c("a",{href:n.model.model_creator_link,target:"_blank"},[c("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,unt)],8,dnt),c("div",pnt,[c("h3",_nt,he(n.model.name),1)])])])])):V("",!0),n.model.isCustomModel?(w(),A("div",hnt,[c("div",fnt,[c("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]=be(()=>{},["stop"]))},bnt),et(" Custom model ")]),c("div",null,[n.model.isInstalled?(w(),A("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=be((...a)=>r.uninstall&&r.uninstall(...a),["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"},[et(" Uninstall "),Ent])):V("",!0)])])):V("",!0),s.installing?(w(),A("div",ynt,[c("div",vnt,[Snt,c("div",Tnt,[c("div",xnt,[c("div",Cnt,[wnt,c("span",Rnt,he(Math.floor(s.progress))+"%",1)]),c("div",Ant,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en({width:s.progress+"%"})},null,4)]),c("div",Nnt,[c("span",Ont,"Download speed: "+he(r.speed_computed)+"/s",1),c("span",Int,he(r.downloaded_size_computed)+"/"+he(r.total_size_computed),1)])])]),c("div",Mnt,[c("div",Dnt,[c("div",knt,[c("button",{onClick:e[3]||(e[3]=be((...a)=>r.toggleCancelInstall&&r.toggleCancelInstall(...a),["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 ")])])])])])):V("",!0),n.model.isCustomModel?V("",!0):(w(),A("div",Lnt,[c("div",Pnt,[c("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=a=>r.defaultImg(a)),class:ze(["w-10 h-10 rounded-lg object-fill",s.linkNotValid?"grayscale":""])},null,42,Unt),c("h3",Fnt,he(n.model.name),1),Bnt,Te(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),c("div",Gnt,[c("div",Vnt,[s.linkNotValid?(w(),A("div",znt,[Hnt,et(" Link is not valid ")])):V("",!0)])]),c("div",{class:"",title:n.model.isInstalled?n.model.name:"Not installed"},[c("div",Ynt,[c("div",$nt,[Wnt,Knt,c("a",{href:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,target:"_blank",onClick:e[5]||(e[5]=be(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:s.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/<current binding> folder then refresh"}," View full model card ",8,jnt),Qnt,c("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[6]||(e[6]=be(a=>r.toggleCopyLink(),["stop"]))},Znt)]),c("div",Jnt,[c("div",{class:ze(["flex flex-shrink-0 items-center",s.linkNotValid?"text-red-600":""])},[eit,tit,et(" "+he(r.fileSize),1)],2)]),c("div",nit,[iit,sit,et(" "+he(n.model.license),1)]),n.model.quantizer!="None"&&n.model.type!="transformers"?(w(),A("div",rit,[oit,ait,c("a",{href:"https://huggingface.co/"+n.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=be(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},he(n.model.quantizer),9,lit)])):V("",!0),c("div",cit,[dit,uit,c("a",{href:n.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=be(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},he(n.model.model_creator),9,pit)]),c("div",_it,[hit,fit,et(" "+he(n.model.last_commit_time),1)]),c("div",mit,[git,bit,c("a",{href:"https://huggingface.co/"+n.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=be(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},he(n.model.category),9,Eit)])])],8,qnt)]))],10,ont)}const vit=bt(rnt,[["render",yit]]),Sit={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",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}}},Tit={class:"p-4"},xit={class:"flex items-center mb-4"},Cit=["src"],wit={class:"text-lg font-semibold"},Rit=c("strong",null,"Author:",-1),Ait=c("strong",null,"Description:",-1),Nit=c("strong",null,"Category:",-1),Oit={key:0},Iit=c("strong",null,"Disclaimer:",-1),Mit=c("strong",null,"Conditioning Text:",-1),Dit=c("strong",null,"AI Prefix:",-1),kit=c("strong",null,"User Prefix:",-1),Lit=c("strong",null,"Antiprompts:",-1);function Pit(t,e,n,i,s,r){return w(),A("div",Tit,[c("div",xit,[c("img",{src:s.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,Cit),c("h2",wit,he(s.personalityName),1)]),c("p",null,[Rit,et(" "+he(s.personalityAuthor),1)]),c("p",null,[Ait,et(" "+he(s.personalityDescription),1)]),c("p",null,[Nit,et(" "+he(s.personalityCategory),1)]),s.disclaimer?(w(),A("p",Oit,[Iit,et(" "+he(s.disclaimer),1)])):V("",!0),c("p",null,[Mit,et(" "+he(s.conditioningText),1)]),c("p",null,[Dit,et(" "+he(s.aiPrefix),1)]),c("p",null,[kit,et(" "+he(s.userPrefix),1)]),c("div",null,[Lit,c("ul",null,[(w(!0),A(Ye,null,lt(s.antipromptsList,o=>(w(),A("li",{key:o.id},he(o.text),1))),128))])]),c("button",{onClick:e[0]||(e[0]=o=>s.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),s.editMode?(w(),A("button",{key:1,onClick:e[1]||(e[1]=(...o)=>r.commitChanges&&r.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):V("",!0)])}const Uit=bt(Sit,[["render",Pit]]),op="/assets/logo-9d653710.svg",Fit="/",Bit={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function},components:{InteractiveMenu:CE},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let t=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?t.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):t.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Ge(()=>{He.replace()})},methods:{showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(t){this.thumbnailPosition={x:t.clientX+10,y:t.clientY+10}},getImgUrl(){return Fit+this.personality.avatar},defaultImg(t){t.target.src=op},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Ge(()=>{He.replace()})}}},Git=["title"],Vit={class:"flex flex-row items-center flex-shrink-0 gap-3"},zit=["src"],Hit=c("i",{"data-feather":"clipboard",class:"w-5"},null,-1),qit=[Hit],Yit=["src"],$it={class:""},Wit={class:""},Kit={class:"flex items-center"},jit=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Qit=c("b",null,"Author: ",-1),Xit={class:"flex items-center"},Zit=c("i",{"data-feather":"git-commit",class:"w-5 m-1"},null,-1),Jit=c("b",null,"Version: ",-1),est={key:0,class:"flex items-center"},tst=c("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),nst=c("b",null,"Languages: ",-1),ist=["selected"],sst={key:1,class:"flex items-center"},rst=c("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),ost=c("b",null,"Language: ",-1),ast={class:"flex items-center"},lst=c("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),cst=c("b",null,"Category: ",-1),dst=c("div",{class:"flex items-center"},[c("i",{"data-feather":"info",class:"w-5 m-1"}),c("b",null,"Description: "),c("br")],-1),ust=["title","innerHTML"],pst={class:"rounded bg-blue-300"},_st=c("i",{"data-feather":"check"},null,-1),hst=c("span",{class:"sr-only"},"Select",-1),fst=[_st,hst],mst=c("i",{"data-feather":"send",class:"w-5"},null,-1),gst=c("span",{class:"sr-only"},"Talk",-1),bst=[mst,gst],Est=c("i",{"data-feather":"folder",class:"w-5"},null,-1),yst=c("span",{class:"sr-only"},"Show Folder",-1),vst=[Est,yst];function Sst(t,e,n,i,s,r){const o=mt("InteractiveMenu");return w(),A("div",{class:ze(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",r.selected_computed?"border-2 border-primary-light":"border-transparent",s.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:n.personality.installed?"":"Not installed"},[c("div",{class:ze(n.personality.installed?"":"border-red-500")},[c("div",Vit,[c("img",{onClick:e[0]||(e[0]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),ref:"imgElement",src:r.getImgUrl(),onError:e[1]||(e[1]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer",onMouseover:e[2]||(e[2]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},null,40,zit),c("h3",{onClick:e[5]||(e[5]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer",onMouseover:e[6]||(e[6]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[7]||(e[7]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[8]||(e[8]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},he(n.personality.name),33),c("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]=be(a=>r.toggleCopyLink(),["stop"]))},qit),s.thumbnailVisible?(w(),A("div",{key:0,style:en({top:s.thumbnailPosition.y+"px",left:s.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[c("img",{src:r.getImgUrl(),class:"w-full h-full object-fill"},null,8,Yit)],4)):V("",!0)]),c("div",$it,[c("div",Wit,[c("div",Kit,[jit,Qit,et(" "+he(n.personality.author),1)]),c("div",Xit,[Zit,Jit,et(" "+he(n.personality.version),1)]),n.personality.languages&&n.select_language?(w(),A("div",est,[tst,nst,s.isMounted?V("",!0):G((w(),A("select",{key:0,id:"languages","onUpdate:modelValue":e[10]||(e[10]=a=>n.personality.language=a),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"},[(w(!0),A(Ye,null,lt(n.personality.languages,(a,l)=>(w(),A("option",{key:l,selected:a==n.personality.languages[0]},he(a),9,ist))),128))],512)),[[jt,n.personality.language]])])):V("",!0),n.personality.language?(w(),A("div",sst,[rst,ost,et(" "+he(n.personality.language),1)])):V("",!0),c("div",ast,[lst,cst,et(" "+he(n.personality.category),1)])]),dst,c("p",{class:"mx-1 opacity-80 h-20 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",title:n.personality.description,innerHTML:n.personality.description},null,8,ust)]),c("div",pst,[s.isMounted?(w(),A("button",{key:0,type:"button",title:"Select",onClick:[e[11]||(e[11]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),e[12]||(e[12]=be(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},fst)):V("",!0),s.isMounted?(w(),A("button",{key:1,type:"button",title:"Talk",onClick:[e[13]||(e[13]=(...a)=>r.toggleTalk&&r.toggleTalk(...a)),e[14]||(e[14]=be(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},bst)):V("",!0),c("button",{type:"button",title:"Show_folder",onClick:[e[15]||(e[15]=(...a)=>r.showFolder&&r.showFolder(...a)),e[16]||(e[16]=be(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},vst),Te(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,Git)}const fO=bt(Bit,[["render",Sst]]);const Tst={props:{code:{type:String,required:!0,default:""}},data(){return{evaluatedCode:"",componentKey:0}},watch:{code:{handler(t){console.log("Code changed"),this.evaluateScriptTags(t),this.componentKey++},immediate:!0}},methods:{evaluateScriptTags(t){const e=document.createElement("div");e.innerHTML=t,e.querySelectorAll("script").forEach(i=>{const s=document.createElement("script");s.textContent=i.textContent,document.body.appendChild(s),document.body.removeChild(s)}),this.evaluatedCode=e.innerHTML,this.$nextTick(()=>{this.componentKey++})}}},xst=["id","innerHTML"];function Cst(t,e,n,i,s,r){return w(),A("div",{id:`ui_${s.componentKey}`,class:"w-full h-auto 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",innerHTML:s.evaluatedCode,key:s.componentKey},null,8,xst)}const mO=bt(Tst,[["render",Cst]]),wst="/",Rst={components:{DynamicUIRenderer:mO},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ge(()=>{He.replace()})},methods:{copyToClipBoard(t){console.log("Copying to clipboard :",t),navigator.clipboard.writeText(t)},getImgUrl(){return wst+this.binding.icon},defaultImg(t){t.target.src=op},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(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(){Ge(()=>{He.replace()})}}},Ast=["title"],Nst={class:"flex flex-row items-center gap-3"},Ost=["src"],Ist={class:"font-bold font-large text-lg truncate"},Mst=c("div",{class:"grow"},null,-1),Dst={class:"flex-none gap-1"},kst=c("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),Lst=c("span",{class:"sr-only"},"Help",-1),Pst=[kst,Lst],Ust={class:"flex items-center flex-row-reverse gap-2 my-1"},Fst=c("span",{class:"sr-only"},"Click to install",-1),Bst=c("span",{class:"sr-only"},"Reinstall",-1),Gst=c("span",{class:"sr-only"},"UnInstall",-1),Vst=c("span",{class:"sr-only"},"Settings",-1),zst={class:""},Hst={class:""},qst={class:"flex items-center"},Yst=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),$st=c("b",null,"Author: ",-1),Wst={class:"flex items-center"},Kst=c("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),jst=c("b",null,"Folder: ",-1),Qst=c("div",{class:"grow"},null,-1),Xst=c("i",{"data-feather":"clipboard",class:"w-5"},null,-1),Zst=[Xst],Jst={class:"flex items-center"},ert=c("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),trt=c("b",null,"Version: ",-1),nrt={class:"flex items-center"},irt=c("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),srt=c("b",null,"Link: ",-1),rrt=["href"],ort=c("div",{class:"flex items-center"},[c("i",{"data-feather":"info",class:"w-5 m-1"}),c("b",null,"Description: "),c("br")],-1),art=["title","innerHTML"];function lrt(t,e,n,i,s,r){const o=mt("DynamicUIRenderer");return w(),A("div",{class:ze(["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[8]||(e[8]=be((...a)=>r.toggleSelected&&r.toggleSelected(...a),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[c("div",null,[c("div",Nst,[c("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Ost),c("h3",Ist,he(n.binding.name),1),Mst,c("div",Dst,[n.selected?(w(),A("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>r.toggleReloadBinding&&r.toggleReloadBinding(...a)),e[2]||(e[2]=be(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Pst)):V("",!0)])]),c("div",Ust,[n.binding.installed?V("",!0):(w(),A("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=be((...a)=>r.toggleInstall&&r.toggleInstall(...a),["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"},[et(" Install "),Fst])),n.binding.installed?(w(),A("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=be((...a)=>r.toggleReinstall&&r.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},[et(" Reinstall "),Bst])):V("",!0),n.binding.installed?(w(),A("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=be((...a)=>r.toggleUnInstall&&r.toggleUnInstall(...a),["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"},[et(" Uninstall "),Gst])):V("",!0),n.selected?(w(),A("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=be((...a)=>r.toggleSettings&&r.toggleSettings(...a),["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"},[et(" Settings "),Vst])):V("",!0)]),n.binding.ui?(w(),xt(o,{key:0,class:"w-full h-full",code:n.binding.ui},null,8,["code"])):V("",!0),c("div",zst,[c("div",Hst,[c("div",qst,[Yst,$st,et(" "+he(n.binding.author),1)]),c("div",Wst,[Kst,jst,et(" "+he(n.binding.folder)+" ",1),Qst,c("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[7]||(e[7]=be(a=>r.copyToClipBoard(this.binding.folder),["stop"]))},Zst)]),c("div",Jst,[ert,trt,et(" "+he(n.binding.version),1)]),c("div",nrt,[irt,srt,c("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},he(n.binding.link),9,rrt)])]),ort,c("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description,innerHTML:n.binding.description},null,8,art)])])],10,Ast)}const crt=bt(Rst,[["render",lrt]]),drt={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})}}},urt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},prt={class:"relative w-full max-w-md max-h-full"},_rt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},hrt=c("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[c("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),frt=c("span",{class:"sr-only"},"Close modal",-1),mrt=[hrt,frt],grt={class:"p-4 text-center"},brt=c("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"},[c("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),Ert={class:"p-4 text-center mx-auto mb-4"},yrt=c("label",{class:"mr-2"},"Model path",-1);function vrt(t,e,n,i,s,r){return s.show?(w(),A("div",urt,[c("div",prt,[c("div",_rt,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>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"},mrt),c("div",grt,[brt,c("div",Ert,[yrt,G(c("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>s.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[we,s.model_path]])]),c("button",{onClick:e[2]||(e[2]=o=>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 "),c("button",{onClick:e[3]||(e[3]=o=>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")])])])])):V("",!0)}const Srt=bt(drt,[["render",vrt]]);const Trt={props:{show:{type:Boolean,default:!1,required:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(t){return console.log("choice:",t),typeof t=="string"?t:t&&t.name?t.name:""},selectChoice(t){this.selectedChoice=t,this.$emit("choice-selected",t)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const t=this.newFilename.trim();t!==""&&(this.choices.push(t),this.newFilename="",this.selectChoice(t)),this.showInput=!1},removeChoice(t,e){this.choices.splice(e,1),t===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",t)}}},xrt={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},Crt={class:"bg-bg-light dark:bg-bg-dark rounded-lg p-6 w-96"},wrt={class:"text-xl font-bold text-5xl drop-shadow-md align-middle"},Rrt={class:"h-48 text-light-text-panel dark:text-dark-text-panel bg-bg-light-tone-panel dark:bg-dark-tone-panel overflow-y-auto rounded drop-shadow-md 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"},Art=["onClick"],Nrt={class:"font-bold text-dark-text-panel dark:text-light-text-panel"},Ort=c("br",null,null,-1),Irt={key:0,class:"text-xs text-gray-500"},Mrt=["onClick"],Drt={key:0,class:"flex flex-row mt-4 bg-light-tone-panel dark:bg-dark-tone-panel"},krt={class:"flex justify-end mt-4"},Lrt=["disabled"];function Prt(t,e,n,i,s,r){return w(),xt(cs,{name:"fade"},{default:We(()=>[n.show?(w(),A("div",xrt,[c("div",Crt,[c("h2",wrt,he(n.title),1),c("div",Rrt,[c("ul",null,[(w(!0),A(Ye,null,lt(n.choices,(o,a)=>(w(),A("li",{key:a,onClick:l=>r.selectChoice(o),class:ze([{"selected-choice":o===s.selectedChoice},"py-2 px-4 cursor-pointer hover:bg-accent dark:hover:bg-secondary"])},[c("span",Nrt,he(r.displayName(o)),1),Ort,o.size?(w(),A("span",Irt,he(r.formatSize(o.size)),1)):V("",!0),n.can_remove?(w(),A("button",{key:1,onClick:be(l=>r.removeChoice(o,a),["stop"]),class:"ml-2 text-red-500 hover:text-red-600"}," X ",8,Mrt)):V("",!0)],10,Art))),128))])]),s.showInput?(w(),A("div",Drt,[G(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 p-2 rounded-lg w-full"},null,512),[[we,s.newFilename]]),c("button",{onClick:e[1]||(e[1]=(...o)=>r.addNewFilename&&r.addNewFilename(...o)),class:"ml-2 grow pl-2 pr-2 bg-primary hover:bg-primary-light text-white rounded-lg transition duration-300"}," Add ")])):V("",!0),c("div",krt,[c("button",{onClick:e[2]||(e[2]=(...o)=>r.closeDialog&&r.closeDialog(...o)),class:"py-2 px-4 mr-2 bg-secondary hover:bg-accent text-white rounded-lg transition duration-300"}," Cancel "),c("button",{onClick:e[3]||(e[3]=(...o)=>r.validateChoice&&r.validateChoice(...o)),class:ze([{"bg-gray-400 cursor-not-allowed":!s.selectedChoice,"bg-primary hover:bg-primary-light":s.selectedChoice,"text-white":s.selectedChoice,"text-gray-500":!s.selectedChoice},"py-2 px-4 rounded-lg transition duration-300"]),disabled:!s.selectedChoice}," Validate ",10,Lrt),c("button",{onClick:e[4]||(e[4]=(...o)=>r.toggleInput&&r.toggleInput(...o)),class:"py-2 px-4 ml-2 bg-accent hover:bg-secondary text-white rounded-lg transition duration-300"}," Add New ")])])])):V("",!0)]),_:1})}const wE=bt(Trt,[["render",Prt]]),Urt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const t=this.radioOptions.find(e=>e.value===this.selectedValue);return t?t.label:""}},watch:{selectedValue(t,e){this.$emit("radio-selected",t)}},methods:{handleRadioChange(){}}},Frt={class:"flex space-x-4"},Brt=["value","aria-checked"],Grt={class:"text-gray-700"};function Vrt(t,e,n,i,s,r){return w(),A("div",Frt,[(w(!0),A(Ye,null,lt(n.radioOptions,(o,a)=>(w(),A("label",{key:o.value,class:"flex items-center space-x-2"},[G(c("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedValue=l),onChange:e[1]||(e[1]=(...l)=>r.handleRadioChange&&r.handleRadioChange(...l)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":s.selectedValue===o.value.toString(),role:"radio"},null,40,Brt),[[HD,s.selectedValue]]),c("span",Grt,he(o.label),1)]))),128))])}const zrt=bt(Urt,[["render",Vrt]]),Hrt="/assets/gpu-df72bf63.svg";const qrt="/";Se.defaults.baseURL="/";const Yrt={components:{AddModelDialog:Srt,ModelEntry:vit,PersonalityViewer:Uit,PersonalityEntry:fO,BindingEntry:crt,ChoiceDialog:wE,Card:rp,RadioOptions:zrt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:Pi,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Ti,binding_changed:!1,SVGGPU:Hrt,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,minconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,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,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:qrt,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){$e.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(t){this.$store.state.config.rag_databases.splice(t,1),this.settingsChanged=!0},async vectorize_folder(t){await Se.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[t]},this.posts_headers)},async select_folder(t){try{$e.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[t]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await Se.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(t){console.log("handleTemplateSelection");const e=t.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
|
||
`,this.configFile.start_user_header_id_template="!@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="!@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="lollms_simplified"?(console.log("Using lollms template"),this.configFile.start_header_id_template="@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
|
||
`,this.configFile.start_user_header_id_template="@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="llama3"?(console.log("Using llama3 template"),this.configFile.start_header_id_template="<|start_header_id|>",this.configFile.system_message_template="system",this.configFile.end_header_id_template="<|end_header_id|>",this.configFile.separator_template="<|eot_id|>",this.configFile.start_user_header_id_template="<|start_header_id|>",this.configFile.end_user_header_id_template="<|end_header_id|>",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="<|start_header_id|>",this.configFile.end_ai_header_id_template="<|end_header_id|>",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="mistral"&&(console.log("Using mistral template"),this.configFile.start_header_id_template="[INST]",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
|
||
`,this.configFile.start_user_header_id_template="[INST]",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="[/INST]",this.configFile.start_ai_header_id_template="[INST]",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="[/INST]",this.settingsChanged=!0)},install_model(){},reinstallDiffusersService(){Se.post("/install_diffusers",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},upgradeDiffusersService(){Se.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},reinstallSDService(){Se.post("/install_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},upgradeSDService(){Se.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},startSDService(){Se.post("start_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},showSD(){Se.post("show_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},reinstallComfyUIService(){Se.get("install_comfyui").then(t=>{}).catch(t=>{console.error(t)})},upgradeComfyUIService(){Se.get("upgrade_comfyui").then(t=>{}).catch(t=>{console.error(t)})},startComfyUIService(){Se.get("start_comfyui").then(t=>{}).catch(t=>{console.error(t)})},showComfyui(){Se.get("show_comfyui").then(t=>{}).catch(t=>{console.error(t)})},reinstallMotionCtrlService(){Se.get("install_motion_ctrl").then(t=>{}).catch(t=>{console.error(t)})},reinstallvLLMService(){Se.get("install_vllm").then(t=>{}).catch(t=>{console.error(t)})},startvLLMService(){Se.get("start_vllm").then(t=>{}).catch(t=>{console.error(t)})},startollamaService(){Se.get("start_ollama").then(t=>{}).catch(t=>{console.error(t)})},reinstallPetalsService(){Se.get("install_petals").then(t=>{}).catch(t=>{console.error(t)})},reinstallOLLAMAService(){Se.get("install_ollama").then(t=>{}).catch(t=>{console.error(t)})},reinstallAudioService(){Se.post("install_xtts",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},startAudioService(){Se.get("start_xtts").then(t=>{}).catch(t=>{console.error(t)})},reinstallElasticSearchService(){Se.get("install_vllm").then(t=>{}).catch(t=>{console.error(t)})},getSeviceVoices(){Se.get("list_voices").then(t=>{this.voices=t.data.voices}).catch(t=>{console.error(t)})},load_more_models(){this.models_zoo_initialLoadCount+10<this.models_zoo.length?this.models_zoo_initialLoadCount+=10:this.models_zoo_initialLoadCount=this.models_zoo.length},async modelsZooToggleCollapse(){this.mzc_collapsed=!this.mzc_collapsed,Ge(()=>{He.replace()}),this.binding_changed&&!this.mzc_collapsed&&(this.modelsZoo==null||this.modelsZoo.length==0)&&(console.log("Refreshing models"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.refreshModelsZoo(),this.binding_changed=!1)},async selectSortOption(t){this.$store.state.sort_type=t,this.updateModelsZoo(),console.log(`Selected sorting:${t}`),console.log(`models:${this.models_zoo}`)},handleRadioSelected(t){this.isLoading=!0,this.selectSortOption(t).then(()=>{this.isLoading=!1})},filter_installed(t){return console.log("filtering"),t.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(console.log("voice synthesis"),this.audioVoices=speechSynthesis.getVoices(),console.log("Voices:"+this.audioVoices),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let t=await this.api_get_req("check_update");this.has_updates=t.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(t){this.selected_variant=t},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(t){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$store.state.toast.showToast("Link is not valid, file does not exist",4,!1);return}let n="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:n},console.log("installing...",this.addModel);const i=s=>{if(console.log("received something"),s.status&&s.progress<=100){if(this.addModel=s,console.log("Progress",s),e.progress=s.progress,e.speed=s.speed,e.total_size=s.total_size,e.downloaded_size=s.downloaded_size,e.start_time=s.start_time,e.installing=!0,e.progress==100){const r=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[r].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),$e.off("install_progress",i),console.log("Installed successfully"),this.$store.state.toast.showToast(`Model:
|
||
`+e.model.name+`
|
||
installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else $e.off("install_progress",i),console.log("Install failed"),e.installing=!1,this.showProgress=!1,console.error("Installation failed:",s.error),this.$store.state.toast.showToast(`Model:
|
||
`+e.model.name+`
|
||
failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage");console.log("Here")};$e.on("install_progress",i),$e.emit("install_model",{path:n,name:e.model.name,variant_name:this.selected_variant.name,type:e.model.type}),console.log("Started installation, please wait")},resetLogo(){this.configFile.app_custom_logo="",this.settingsChanged=!0},resetAvatar(){this.configFile.user_avatar="",this.settingsChanged=!0},uploadLogo(t){const e=t.target.files[0],n=new FormData;n.append("logo",e),console.log("Uploading logo"),Se.post("/upload_logo",n).then(i=>{console.log("Logo uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const s=i.data.fileName;console.log("response",i),this.app_custom_logo=s,this.$store.state.config.app_custom_logo=s,this.settingsChanged=!0}).catch(i=>{console.error("Error uploading avatar:",i)})},uploadAvatar(t){const e=t.target.files[0],n=new FormData;n.append("avatar",e),console.log("Uploading avatar"),Se.post("/upload_avatar",n).then(i=>{console.log("Avatar uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const s=i.data.fileName;console.log("response",i),this.user_avatar=s,this.$store.state.config.user_avatar=s,this.settingsChanged=!0}).catch(i=>{console.error("Error uploading avatar:",i)})},async update_software(){console.log("Posting");const t=await this.api_post_req("update_software");console.log("Posting done"),t.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Failure!",4,!1)},async restart_software(){console.log("Posting");const t=await this.api_post_req("restart_program");console.log("Posting done"),t.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Failure!",4,!1)},on_loading_text(t){console.log("Loading text",t),this.loading_text=t},async load_everything(){for(this.isLoading=!0,Ge(()=>{He.replace()});this.isReady===!1;)await new Promise(t=>setTimeout(t,100));this.refresh(),console.log("Ready"),this.configFile.model_name&&(this.isModelSelected=!0),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities?category="+this.configFile.personality_category),console.log("category"),this.personality_category=this.configFile.personality_category,this.personalitiesFiltered=this.personalities.filter(t=>t.category===this.configFile.personality_category),this.modelsFiltered=[],this.updateModelsZoo(),this.isLoading=!1,this.isMounted=!0,console.log("READY Stuff")},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(i=>i.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[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):(n.installing=!0,n.isInstalled=!0))}}else if(t.status==="succeeded"){if(console.log("Received succeeded"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(i=>i.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];t.progress>=100&&(n.installing=!1,n.isInstalled=!0)}if(console.log("Installed successfully"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(i=>i.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];n&&(n.installing=!1,n.isInstalled=!0)}this.$store.state.toast.showToast(`Model:
|
||
`+model_object.name+`
|
||
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(i=>i.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];n&&(n.installing=!1,n.isInstalled=!1),console.error("Installation failed:",t.error),this.$store.state.toast.showToast(`Model:
|
||
`+model_object.name+`
|
||
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;$e.emit("install_model",{path:t,type:this.models_zoo[0].type},e=>{console.log("Model installation successful:",e)}),console.log(this.$refs.addmodeldialog.model_path)})},closeAddModelDialog(){this.addModelDialogVisibility=!1},collapseAll(t){this.servers_conf_collapsed=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.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",t),t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=t.language==null?t.full_path:t.full_path+":"+t.language;if(console.log("pth",e),t.isMounted&&this.configFile.personalities.includes(e)){const n=await this.select_personality(t);console.log("pers is mounted",n),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality:
|
||
`+t.name,4,!0):this.$store.state.toast.showToast(`Error on select personality:
|
||
`+t.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(t);Ge(()=>{He.replace()})}},onModelSelected(t){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}t&&(t.isInstalled?this.update_model(t.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=t.model.name,e.status?(this.$store.state.toast.showToast(`Selected model:
|
||
`+t.name,4,!0),Ge(()=>{He.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(n=>{this.$store.commit("setIsModelOk",n)})):(this.$store.state.toast.showToast(`Couldn't select model:
|
||
`+t.name,4,!1),Ge(()=>{He.replace()})),this.settingsChanged=!0,this.isModelSelected=!0}):this.$store.state.toast.showToast(`Model:
|
||
`+t.model.name+`
|
||
is not installed`,4,!1),Ge(()=>{He.replace()}))},onCopy(t){let e;t.model.isCustomModel?e=`Model name: ${t.name}
|
||
File size: ${t.fileSize}
|
||
Manually downloaded model `:e=`Model name: ${t.name}
|
||
File size: ${t.fileSize}
|
||
Download: ${"https://huggingface.co/"+t.quantizer+"/"+t.name}
|
||
License: ${t.license}
|
||
Owner: ${t.quantizer}
|
||
Website: ${"https://huggingface.co/"+t.quantizer}
|
||
Description: ${t.description}`,this.$store.state.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onCopyLink(t){this.$store.state.toast.showToast("Copied link to clipboard!",4,!0),navigator.clipboard.writeText(t.model.name)},onCopyPersonalityName(t){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},async onCopyToCustom(t){await Se.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:t.personality.category,name:t.personality.name})},async handleOpenFolder(t){await Se.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:t.personality.folder})},onCancelInstall(){const t=this.addModel;console.log("cancel install",t),this.modelDownlaodInProgress=!1,this.addModel={},$e.emit("cancel_install",{model_name:t.model_name,binding_folder:t.binding_folder,model_url:t.model_url,patreon:t.patreon?t.patreon:"None"}),this.$store.state.toast.showToast("Model installation aborted",4,!1)},onInstall(t){this.variant_choices=t.model.variants,this.currenModelToInstall=t,console.log("variant_choices"),console.log(this.variant_choices),console.log(t),this.variantSelectionDialogVisible=!0},onCreateReference(){Se.post("/add_reference_to_local_model",{path:this.reference_path}).then(t=>{t.status?(this.$store.state.toast.showToast("Reference created",4,!0),this.is_loading_zoo=!0,this.refreshModelsZoo().then(()=>{this.updateModelsZoo(),this.is_loading_zoofalse})):this.$store.state.toast.showToast("Couldn't create reference",4,!1)})},onInstallAddModel(){if(!this.addModel.url){this.$store.state.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.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),$e.off("install_progress",e),console.log("Installed successfully"),this.addModel={},this.$store.state.toast.showToast(`Model:
|
||
`+this.addModel.model_name+`
|
||
installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):($e.off("install_progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$store.state.toast.showToast(`Model:
|
||
`+this.addModel.model_name+`
|
||
failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};$e.on("install_progress",e),$e.emit("install_model",{path:t,type:this.models_zoo[0].type}),console.log("Started installation, please wait")},uploadLocalModel(){if(this.uploadData.length==0){this.$store.state.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.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),$e.off("progress",e),console.log("Installed successfully"),this.addModel={},this.$store.state.toast.showToast(`Model:
|
||
`+this.addModel.model_name+`
|
||
installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):($e.off("progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$store.state.toast.showToast(`Model:
|
||
`+this.addModel.model_name+`
|
||
failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};$e.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.$store.state.yesNoDialog.askQuestion(`Are you sure you want to delete this model?
|
||
[`+t.name+"]","Yes","Cancel").then(e=>{if(e){console.log("uninstalling model...");const n=i=>{console.log("uninstalling res",i),i.status?(console.log("uninstalling success",i),t.uninstalling=!1,$e.off("install_progress",n),this.showProgress=!1,this.is_loading_zoo=!0,this.refreshModelsZoo().then(()=>{this.updateModelsZoo(),this.is_loading_zoo=!1}),this.modelsFiltered=this.models_zoo,this.$store.state.toast.showToast(`Model:
|
||
`+t.model.name+`
|
||
was uninstalled!`,4,!0),this.$store.dispatch("refreshDiskUsage")):(console.log("uninstalling failed",i),t.uninstalling=!1,this.showProgress=!1,$e.off("uninstall_progress",n),console.error("Uninstallation failed:",i.error),this.$store.state.toast.showToast(`Model:
|
||
`+t.model.name+`
|
||
failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};$e.on("uninstall_progress",n),this.selected_variant!=null?$e.emit("uninstall_model",{path:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name+"/resolve/main/"+this.selected_variant.name,type:t.model.type}):$e.emit("uninstall_model",{path:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,type:t.model.type})}})},onBindingSelected(t){if(console.log("Binding selected"),!t.binding.installed){this.$store.state.toast.showToast(`Binding is not installed:
|
||
`+t.binding.name,4,!1);return}this.mzc_collapsed=!0,this.configFile.binding_name!=t.binding.folder&&(this.update_binding(t.binding.folder),this.binding_changed=!0),this.api_get_req("get_model_status").then(e=>{this.$store.commit("setIsModelOk",e)})},onInstallBinding(t){this.configFile.binding_name!=t.binding.folder?(this.isLoading=!0,t.disclaimer&&this.$store.state.yesNoDialog.askQuestion(t.disclaimer,"Proceed","Cancel"),Se.post("/install_binding",{name:t.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("install_binding",e),e.data.status?(this.$store.state.toast.showToast("Binding installed successfully!",4,!0),this.$store.state.messageBox.showMessage(`It is advised to reboot the application after installing a binding.
|
||
Page will refresh in 5s.`),setTimeout(()=>{window.location.href="/"},5e3)):this.$store.state.toast.showToast("Could not reinstall binding",4,!1),this.isLoading=!1,e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall binding
|
||
`+e.message,4,!1),{status:!1}))):this.update_binding(t.binding.folder)},onUnInstallBinding(t){this.isLoading=!0,Se.post("/unInstall_binding",{name:t.binding.folder}).then(e=>{if(e){if(this.isLoading=!1,console.log("unInstall_binding",e),e.data.status){const n=this.bindingsZoo.findIndex(s=>s.folder==t.binding.folder),i=this.bindingsZoo[n];i?i.installed=!0:i.installed=!1,this.settingsChanged=!0,this.binding_changed=!0,this.$store.state.toast.showToast("Binding uninstalled successfully!",4,!0)}else this.$store.state.toast.showToast("Could not uninstall binding",4,!1);return e.data}this.isLoading=!1,t.isInstalled=False}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not uninstall binding
|
||
`+e.message,4,!1),{status:!1}))},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.$store.state.toast.showToast("Binding reinstalled successfully!",4,!0),this.$store.state.messageBox.showMessage("It is advised to reboot the application after installing a binding")):this.$store.state.toast.showToast("Could not reinstall binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.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=>{console.log(e),this.isLoading=!1,e&&(console.log("binding sett",e),e.data&&Object.keys(e.data).length>0?this.$store.state.universalForm.showForm(e.data,"Binding settings - "+t.binding.name,"Save changes","Cancel").then(n=>{try{Se.post("/set_active_binding_settings",n,{headers:this.posts_headers}).then(i=>{i&&i.data?(console.log("binding set with new settings",i.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0),Se.get("/update_binding_settings").then(s=>{this.$store.state.toast.showToast("Binding settings committed successfully!",4,!0),window.location.href="/"})):(this.$store.state.toast.showToast(`Did not get binding settings responses.
|
||
`+i,4,!1),this.isLoading=!1)})}catch(i){this.$store.state.toast.showToast(`Did not get binding settings responses.
|
||
Endpoint error: `+i.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+e.message,4,!1)}},onReloadBinding(t){console.log("Reloading binding"),this.isLoading=!0,Se.post("/reload_binding",{name:t.binding.folder},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reload_binding",e),e.data.status?this.$store.state.toast.showToast("Binding reloaded successfully!",4,!0):this.$store.state.toast.showToast("Could not reload binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reload binding
|
||
`+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.$store.state.universalForm.showForm(e.data,"Personality settings - "+t.personality.name,"Save changes","Cancel").then(n=>{try{Se.post("/set_active_personality_settings",n).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get Personality settings responses.
|
||
`+i,4,!1),this.isLoading=!1)})}catch(i){this.$store.state.toast.showToast(`Did not get Personality settings responses.
|
||
Endpoint error: `+i.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Personality has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$store.state.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},onMessageBoxOk(){console.log("OK button clicked")},update_personality_category(t,e){this.personality_category=t,e()},refresh(){console.log("Refreshing"),this.$store.dispatch("refreshConfig").then(()=>{console.log(this.personality_category),this.api_get_req("list_personalities_categories").then(t=>{console.log("cats",t),this.persCatgArr=t,this.personalitiesFiltered=this.personalities.filter(e=>e.category===this.personality_category),this.personalitiesFiltered.sort()})})},toggleAccordion(){this.showAccordion=!this.showAccordion},async update_setting(t,e,n){this.isLoading=!0;const i={client_id:this.$store.state.client_id,setting_name:t,setting_value:e};console.log("Updating setting",t,":",e);let s=await Se.post("/update_setting",i,{headers:this.posts_headers});if(s)return this.isLoading=!1,console.log("update_setting",s),s.status?this.$store.state.toast.showToast(`Setting updated successfully.
|
||
`,4,!0):this.$store.state.toast.showToast(`Setting update failed.
|
||
Please view the console for more details.`,4,!1),n!==void 0&&n(s),s.data;this.isLoading=!1},async refreshModelsZoo(){this.models_zoo=[],console.log("refreshing models"),this.is_loading_zoo=!0,await this.$store.dispatch("refreshModelsZoo"),console.log("ModelsZoo refreshed"),await this.$store.dispatch("refreshModels"),console.log("Models refreshed"),this.updateModelsZoo(),console.log("Models updated"),this.is_loading_zoo=!1},async updateModelsZoo(){let t=this.$store.state.modelsZoo;if(t.length!=0){console.log(`REFRESHING models using sorting ${this.sort_type}`),t.length>1?(this.sort_type==0?(t.sort((e,n)=>{const i=new Date(e.last_commit_time);return new Date(n.last_commit_time)-i}),console.log("Sorted")):this.sort_type==1?t.sort((e,n)=>n.rank-e.rank):this.sort_type==2?t.sort((e,n)=>e.name.localeCompare(n.name)):this.sort_type==3&&t.sort((e,n)=>e.name.localeCompare(n.name)),console.log("Sorted")):console.log("No sorting needed"),t.forEach(e=>{e.name==this.$store.state.config.model_name?e.selected=!0:e.selected=!1}),console.log("Selected models");for(let e=0;e<this.$store.state.modelsArr.length;e++){const n=this.$store.state.modelsArr[e];let i=t.findIndex(s=>s.name==n);if(i==-1)for(let s=0;s<t.length;s++){let r=t[s].variants;if(r!=null&&(i=r.findIndex(o=>o.name==n),i!=-1)){i=s,console.log(`Found ${n} at index ${i}`);break}}if(i==-1){let s={};s.name=n,s.icon=this.imgBinding,s.isCustomModel=!0,s.isInstalled=!0,t.push(s)}else t[i].isInstalled=!0}console.log("Determined models"),t.sort((e,n)=>e.isInstalled&&!n.isInstalled?-1:!e.isInstalled&&n.isInstalled?1:0),console.log("Done"),this.models_zoo=this.$store.state.modelsZoo}},update_binding(t){this.isLoading=!0,this.$store.state.modelsZoo=[],this.configFile.model_name=null,this.$store.state.config.model_name=null,console.log("updating binding_name"),this.update_setting("binding_name",t,async e=>{console.log("updated binding_name"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.mzc_collapsed=!0;const n=this.bindingsZoo.findIndex(s=>s.folder==t),i=this.bindingsZoo[n];i?i.installed=!0:i.installed=!1,this.settingsChanged=!0,this.isLoading=!1,Ge(()=>{He.replace()}),console.log("updating model"),this.update_model(null).then(()=>{}),Ge(()=>{He.replace()})}),Ge(()=>{He.replace()})},async update_model(t){t||(this.isModelSelected=!1),this.isLoading=!0;let e=await this.update_setting("model_name",t);return this.isLoading=!1,Ge(()=>{He.replace()}),e},async cancelConfiguration(){await this.$store.dispatch("refreshConfig"),this.settingsChanged=!1},applyConfiguration(){this.isLoading=!0,Se.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.configFile},{headers:this.posts_headers}).then(t=>{this.isLoading=!1,t.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ge(()=>{He.replace()})})},save_configuration(){this.showConfirmation=!1,Se.post("/save_settings",{},{headers:this.posts_headers}).then(t=>{if(t)return t.status||this.$store.state.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t.message,"save_configuration"),this.$store.state.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},reset_configuration(){this.$store.state.yesNoDialog.askQuestion(`Are you sure?
|
||
This will delete all your configurations and get back to default configuration.`).then(t=>{t&&Se.post("/reset_settings",{},{headers:this.posts_headers}).then(e=>{if(e)return e.status?this.$store.state.messageBox.showMessage("Settings have been reset correctly"):this.$store.state.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this.$store.state.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}},async api_post_req(t){try{const e=await Se.post("/"+t,{client_id:this.$store.state.client_id});if(e)return e.data}catch(e){console.log(e.message,"api_post_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.state.config,n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i],o=t[s].map(a=>{const l=e.personalities.includes(s+"/"+a.folder);let u={};return u=a,u.category=s,u.language="",u.full_path=s+"/"+a.folder,u.isMounted=l,u});this.personalities.length==0?this.personalities=o:this.personalities=this.personalities.concat(o)}this.personalities.sort((i,s)=>i.name.localeCompare(s.name)),this.personalitiesFiltered=this.personalities.filter(i=>i.category===this.configFile.personality_category),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),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),this.personalitiesFiltered.sort()),this.searchPersonalityInProgress=!1},async filterModels(){const t=this.searchModel.toLowerCase();this.is_loading_zoo=!0,console.log("filtering models"),console.log(this.models_zoo);const e=this.models_zoo.filter(n=>{if(n.name&&n.name.toLowerCase().includes(t)||n.description&&n.description.toLowerCase().includes(t)||n.category&&n.category.toLowerCase().includes(t))return n});this.is_loading_zoo=!1,e.length>0?this.modelsFiltered=e:this.modelsFiltered=[],this.searchModelInProgress=!1},computedFileSize(t){return rs(t)},async mount_personality(t){if(!t)return{status:!1,error:"no personality - mount_personality"};try{const e={client_id:this.$store.state.client_id,language:t.language?t.language:"",category:t.category?t.category:"",folder:t.folder?t.folder:""},n=await Se.post("/mount_personality",e,{headers:this.posts_headers});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={client_id:this.$store.state.client_id,language:t.language,category:t.category,folder:t.folder};try{const n=await Se.post("/unmount_personality",e,{headers:this.posts_headers});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"};let e=t.language==null?t.full_path:t.full_path+":"+t.language;console.log("pth",e);const n=this.configFile.personalities.findIndex(s=>s===e),i={client_id:this.$store.state.client_id,id:n};try{const s=await Se.post("/select_personality",i,{headers:this.posts_headers});if(s)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").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.personality.disclaimer!=""&&this.$store.state.messageBox.showMessage(t.personality.disclaimer),!t)return;if(this.configFile.personalities.includes(t.personality.full_path)){this.isLoading=!1,this.$store.state.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.$store.state.toast.showToast("Personality mounted",4,!0),t.isMounted=!0,(await this.select_personality(t.personality)).status&&this.$store.state.toast.showToast(`Selected personality:
|
||
`+t.personality.name,4,!0),this.$store.dispatch("refreshMountedPersonalities")):(t.isMounted=!1,this.$store.state.toast.showToast(`Could not mount personality
|
||
Error: `+e.error+`
|
||
Response:
|
||
`+e,4,!1)),this.isLoading=!1},async unmountAll(){await Se.post("/unmount_all_personalities",{client_id:this.$store.state.client_id},{headers:this.posts_headers}),this.$store.dispatch("refreshMountedPersonalities"),this.$store.dispatch("refreshConfig"),this.$store.state.toast.showToast("All personas unmounted",4,!0)},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.$store.state.toast.showToast("Personality unmounted",4,!0);const n=this.personalities.findIndex(a=>a.full_path==t.full_path),i=this.personalitiesFiltered.findIndex(a=>a.full_path==t.full_path),s=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path);console.log("ppp",this.personalities[n]),this.personalities[n].isMounted=!1,i>-1&&(this.personalitiesFiltered[i].isMounted=!1),s>-1&&(this.$refs.personalitiesZoo[s].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.$store.state.toast.showToast(`Selected personality:
|
||
`+r.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality
|
||
Error: `+e.error,4,!1);this.isLoading=!1},editPersonality(t){t=t.personality,Se.post("/get_personality_config",{client_id:this.$store.state.client_id,category:t.category,name:t.folder}).then(e=>{const n=e.data;console.log("Done"),n.status?(this.$store.state.currentPersonConfig=n.config,this.$store.state.showPersonalityEditor=!0,this.$store.state.personality_editor.showPanel(),this.$store.state.selectedPersonality=t):console.error(n.error)}).catch(e=>{console.error(e)})},copyToCustom(t){t=t.personality,Se.post("/copy_to_custom_personas",{category:t.category,name:t.folder}).then(e=>{e.status?(this.$store.state.messageBox.showMessage(`Personality copied to the custom personalities folder:
|
||
Now it's up to you to modify it, enhance it, and maybe even share it.
|
||
Feel free to add your name as an author, but please remember to keep the original creator's name as well.
|
||
You have the freedom to give, sell, or keep the personas you create for yourself.
|
||
The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder:
|
||
Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder:
|
||
`,4,!1),console.error(e)})},async remountPersonality(t){await this.unmountPersonality(t),await this.mountPersonality(t)},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,console.log("Personality path:",t.personality.path),Se.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:t.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality
|
||
`+e.message,4,!1),{status:!1}))},personalityImgPlacehodler(t){t.target.src=Ti},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){this.filterModels()}},async mounted(){console.log("Getting voices"),this.getVoices(),console.log("Constructing"),this.load_everything(),this.getSeviceVoices();try{console.log("Loading input devices list");const t=await Se.get("/get_snd_input_devices");this.snd_input_devices=t.data.device_names,this.snd_input_devices_indexes=t.data.device_indexes}catch{console.log("Couldin't list input devices")}try{console.log("Loading output devices list");const t=await Se.get("/get_snd_output_devices");this.snd_output_devices=t.data.device_names,this.snd_output_devices_indexes=t.data.device_indexes}catch{console.log("Couldin't list output devices")}},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(`
|
||
`,"<br>")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(t=>t.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(t=>t.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return Pi;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Pi}}},imgModel:{get(){try{let t=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return t>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[t].icon}`),this.$store.state.modelsZoo[t].icon):Pi}catch{console.log("error")}if(!this.isMounted)return Pi;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Pi}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(t){this.$store.state.config.audio_out_voice=t}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},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 this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:Ti},set(t){this.$store.state.config.user_avatar=t}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(t){this.$store.state.config.hardware_mode=t}},auto_update:{get(){return this.$store.state.config.auto_update},set(t){this.$store.state.config.auto_update=t}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(t){this.$store.state.config.auto_speak=t}},auto_read:{get(){return this.$store.state.config.auto_read},set(t){this.$store.state.config.auto_read=t}},xtts_enable:{get(){return this.$store.state.config.xtts_enable},set(t){this.$store.state.config.xtts_enable=t}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(t){console.log("Current xtts voice set to ",t),this.$store.state.config.xtts_current_language=t}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(t){t=="main_voice"||t===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",t),this.$store.state.config.xtts_current_voice=t)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(t){this.$store.state.config.audio_pitch=t}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(t){this.$store.state.config.audio_in_language=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}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(t){this.$store.state.config.discussion_db_name=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)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(t){this.$store.commit("setbindingsZoo",t)}},modelsArr:{get(){return this.$store.state.modelsArr},set(t){this.$store.commit("setModelsArr",t)}},models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},installed_models:{get(){return this.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)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return;const t=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);if(t>-1)return this.bindingsZoo[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 rs(this.addModel.speed)},total_size_computed(){return rs(this.addModel.total_size)},downloaded_size_computed(){return rs(this.addModel.downloaded_size)}},watch:{xtts_enable(t){t||(this.configFile.auto_read=!1)},bec_collapsed(){Ge(()=>{He.replace()})},pc_collapsed(){Ge(()=>{He.replace()})},mc_collapsed(){Ge(()=>{He.replace()})},sc_collapsed(){Ge(()=>{He.replace()})},showConfirmation(){Ge(()=>{He.replace()})},mzl_collapsed(){Ge(()=>{He.replace()})},pzl_collapsed(){Ge(()=>{He.replace()})},ezl_collapsed(){Ge(()=>{He.replace()})},bzl_collapsed(){Ge(()=>{He.replace()})},all_collapsed(t){this.collapseAll(t),Ge(()=>{He.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,Ge(()=>{He.replace()})},isLoading(){Ge(()=>{He.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},mzdc_collapsed(){Ge(()=>{He.replace()})}},async beforeRouteLeave(t){if(await this.$router.isReady(),this.settingsChanged)return await this.$store.state.yesNoDialog.askQuestion(`Did You forget to apply changes?
|
||
You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},P=t=>(yo("data-v-39a73106"),t=t(),vo(),t),$rt={class:"container overflow-y-scroll flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark 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"},Wrt={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"},Krt={key:0,class:"flex gap-3 flex-1 items-center duration-75"},jrt=P(()=>c("i",{"data-feather":"x"},null,-1)),Qrt=[jrt],Xrt=P(()=>c("i",{"data-feather":"check"},null,-1)),Zrt=[Xrt],Jrt={key:1,class:"flex gap-3 flex-1 items-center"},eot=P(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),tot=[eot],not=P(()=>c("i",{"data-feather":"list"},null,-1)),iot=[not],sot={class:"flex gap-3 flex-1 items-center justify-end"},rot=P(()=>c("i",{"data-feather":"trash-2"},null,-1)),oot=[rot],aot=P(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),lot=[aot],cot=P(()=>c("i",{"data-feather":"arrow-up-circle"},null,-1)),dot=P(()=>c("i",{"data-feather":"alert-circle"},null,-1)),uot={class:"flex gap-3 items-center"},pot={key:0,class:"flex gap-3 items-center"},_ot=P(()=>c("div",{class:"flex flex-row"},[c("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),c("i",{"data-feather":"check"})],-1)),hot=[_ot],fot=P(()=>c("div",{class:"flex flex-row"},[c("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),c("i",{"data-feather":"x"})],-1)),mot=[fot],got={key:1,role:"status"},bot=P(()=>c("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"},[c("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"}),c("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)),Eot=P(()=>c("span",{class:"sr-only"},"Loading...",-1)),yot={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"},vot={class:"flex flex-row p-3"},Sot=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Tot=[Sot],xot=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Cot=[xot],wot=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),Rot=P(()=>c("div",{class:"mr-2"},"|",-1)),Aot={class:"text-base font-semibold cursor-pointer select-none items-center"},Not={class:"flex gap-2 items-center"},Oot={key:0},Iot=["src"],Mot={class:"font-bold font-large text-lg"},Dot={key:1},kot={class:"flex gap-2 items-center"},Lot=["src"],Pot={class:"font-bold font-large text-lg"},Uot=P(()=>c("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Fot={class:"font-bold font-large text-lg"},Bot=P(()=>c("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Got={class:"font-bold font-large text-lg"},Vot={class:"mb-2"},zot=P(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[c("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"})]),et(" CPU Ram usage: ")],-1)),Hot={class:"flex flex-col mx-2"},qot=P(()=>c("b",null,"Avaliable ram: ",-1)),Yot=P(()=>c("b",null,"Ram usage: ",-1)),$ot={class:"p-2"},Wot={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Kot={class:"mb-2"},jot=P(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),et(" Disk usage: ")],-1)),Qot={class:"flex flex-col mx-2"},Xot=P(()=>c("b",null,"Avaliable disk space: ",-1)),Zot=P(()=>c("b",null,"Disk usage: ",-1)),Jot={class:"p-2"},eat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},tat={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},nat=["src"],iat={class:"flex flex-col mx-2"},sat=P(()=>c("b",null,"Model: ",-1)),rat=P(()=>c("b",null,"Avaliable vram: ",-1)),oat=P(()=>c("b",null,"GPU usage: ",-1)),aat={class:"p-2"},lat={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},cat={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"},dat={class:"flex flex-row p-3"},uat=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),pat=[uat],_at=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),hat=[_at],fat=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),mat={class:"flex flex-col mb-2 px-3 pb-2"},gat={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block 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"},bat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),Eat={for:"logo-upload"},yat=["src"],vat={style:{width:"10%"}},Sat=P(()=>c("i",{"data-feather":"x"},null,-1)),Tat=[Sat],xat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),Cat={class:"text-center items-center"},wat={class:"flex flex-row"},Rat=P(()=>c("option",{value:"cpu"},"CPU",-1)),Aat=P(()=>c("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),Nat=P(()=>c("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),Oat=P(()=>c("option",{value:"nvidia"},"NVIDIA",-1)),Iat=P(()=>c("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),Mat=P(()=>c("option",{value:"amd"},"AMD",-1)),Dat=P(()=>c("option",{value:"apple-intel"},"Apple Intel",-1)),kat=P(()=>c("option",{value:"apple-silicon"},"Apple Silicon",-1)),Lat=[Rat,Aat,Nat,Oat,Iat,Mat,Dat,kat],Pat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),Uat={style:{width:"100%"}},Fat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"copy_to_clipboard_add_all_details",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Add details to messages copied to clipboard:")],-1)),Bat={class:"flex flex-row"},Gat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),Vat={class:"flex flex-row"},zat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),Hat={class:"flex flex-row"},qat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),Yat={class:"flex flex-row"},$at=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),Wat={class:"flex flex-row"},Kat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),jat={class:"flex flex-row"},Qat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),Xat={class:"flex flex-row"},Zat=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),Jat={class:"flex flex-row"},elt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),tlt={class:"flex flex-row"},nlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),ilt={class:"flex flex-row"},slt={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"},rlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),olt=P(()=>c("option",{value:"lollms"},"Lollms communication template",-1)),alt=P(()=>c("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1)),llt=P(()=>c("option",{value:"llama3"},"LLama3 communication template",-1)),clt=P(()=>c("option",{value:"mistral"},"Mistral communication template",-1)),dlt=[olt,alt,llt,clt],ult=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),plt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),_lt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),hlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),flt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),mlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),glt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),blt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),Elt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),ylt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),vlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),Slt=["innerHTML"],Tlt={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"},xlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),Clt={style:{width:"100%"}},wlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),Rlt={style:{width:"100%"}},Alt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),Nlt={style:{width:"100%"}},Olt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),Ilt={style:{width:"100%"}},Mlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),Dlt={for:"avatar-upload"},klt=["src"],Llt={style:{width:"10%"}},Plt=P(()=>c("i",{"data-feather":"x"},null,-1)),Ult=[Plt],Flt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),Blt={class:"flex flex-row"},Glt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Maximum number of output tokens space (forces the model to have more space to speak):")],-1)),Vlt={style:{width:"100%"}},zlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),Hlt={style:{width:"100%"}},qlt={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"},Ylt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),$lt={style:{width:"100%"}},Wlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_code_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code validation (very recommended for security reasons):")],-1)),Klt={style:{width:"100%"}},jlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_setting_update_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on apply settings validation (very recommended for security reasons):")],-1)),Qlt={style:{width:"100%"}},Xlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),Zlt={style:{width:"100%"}},Jlt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),ect={style:{width:"100%"}},tct={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"},nct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),ict={class:"flex flex-row"},sct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),rct={style:{width:"100%"}},oct={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"},act=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),lct={class:"flex flex-row"},cct={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"},dct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),uct={class:"flex flex-row"},pct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),_ct={class:"flex flex-row"},hct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),fct={class:"flex flex-row"},mct={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"},gct={class:"flex flex-row p-3"},bct=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Ect=[bct],yct=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),vct=[yct],Sct=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1)),Tct={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"},xct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),Cct={style:{width:"100%"}},wct=["onUpdate:modelValue"],Rct=["onClick"],Act=["onClick"],Nct=["onClick"],Oct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),Ict=P(()=>c("option",{value:"bert"},"Bert Vectorizer",-1)),Mct=P(()=>c("option",{value:"tfidf"},"TFIDF Vectorizer",-1)),Dct=P(()=>c("option",{value:"word2vec"},"Word2Vec Vectorizer",-1)),kct=[Ict,Mct,Dct],Lct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),Pct=P(()=>c("option",{value:"bert-base-nli-mean-tokens"},"bert-base-nli-mean-tokens",-1)),Uct=[Pct],Fct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),Bct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),Gct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),Vct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),zct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),Hct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),qct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),Yct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_activate_multi_hops",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate multi hops RAG:")],-1)),$ct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"contextual_summary",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use contextual summary instead of rag (consumes alot of tokens and may be very slow but efficient, useful for summary and global questions that RAG can't do):")],-1)),Wct={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"},Kct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),jct={class:"flex flex-row"},Qct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),Xct={class:"flex flex-row"},Zct=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),Jct={class:"flex flex-row"},edt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_force_first_chunk",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force adding the first chunk of the file to the context:")],-1)),tdt={class:"flex flex-row"},ndt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),idt={class:"flex flex-row"},sdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),rdt=P(()=>c("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),odt=P(()=>c("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1)),adt=P(()=>c("option",{value:"model_embedding"},"Model Embedding",-1)),ldt=P(()=>c("option",{value:"sentense_transformer"},"Sentense Transformer",-1)),cdt=[rdt,odt,adt,ldt],ddt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),udt={style:{width:"100%"}},pdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),_dt=P(()=>c("option",{value:"PCA"},"PCA",-1)),hdt=P(()=>c("option",{value:"TSNE"},"TSNE",-1)),fdt=[_dt,hdt],mdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),gdt={class:"flex flex-row"},bdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),Edt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),ydt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),vdt={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"},Sdt={class:"flex flex-row p-3"},Tdt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),xdt=[Tdt],Cdt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),wdt=[Cdt],Rdt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1)),Adt={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"},Ndt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet search:")],-1)),Odt={class:"flex flex-row"},Idt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),Mdt={class:"flex flex-row"},Ddt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),kdt={class:"flex flex-row"},Ldt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),Pdt={class:"flex flex-row"},Udt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),Fdt={class:"flex flex-col"},Bdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),Gdt={class:"flex flex-col"},Vdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),zdt={class:"flex flex-col"},Hdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),qdt={class:"flex flex-col"},Ydt={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"},$dt={class:"flex flex-row p-3"},Wdt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Kdt=[Wdt],jdt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Qdt=[jdt],Xdt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1)),Zdt={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"},Jdt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),eut={style:{width:"100%"}},tut=P(()=>c("option",{value:"None"},"None",-1)),nut=P(()=>c("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1)),iut=P(()=>c("option",{value:"xtts"},"XTTS",-1)),sut=P(()=>c("option",{value:"openai_tts"},"Open AI TTS",-1)),rut=[tut,nut,iut,sut],out=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),aut={style:{width:"100%"}},lut=P(()=>c("option",{value:"None"},"None",-1)),cut=P(()=>c("option",{value:"whisper"},"Whisper",-1)),dut=P(()=>c("option",{value:"openai_whisper"},"Open AI Whisper",-1)),uut=[lut,cut,dut],put=P(()=>c("tr",null,null,-1)),_ut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),hut={style:{width:"100%"}},fut=P(()=>c("option",{value:"None"},"None",-1)),mut=P(()=>c("option",{value:"diffusers"},"Diffusers",-1)),gut=P(()=>c("option",{value:"autosd"},"AUTO1111's SD",-1)),but=P(()=>c("option",{value:"dall-e"},"Open AI DALL-E",-1)),Eut=P(()=>c("option",{value:"midjourney"},"Midjourney",-1)),yut=P(()=>c("option",{value:"comfyui"},"Comfyui",-1)),vut=P(()=>c("option",{value:"fooocus"},"Fooocus",-1)),Sut=[fut,mut,gut,but,Eut,yut,vut],Tut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),xut={style:{width:"100%"}},Cut=P(()=>c("option",{value:"None"},"None",-1)),wut=P(()=>c("option",{value:"musicgen"},"Music Gen",-1)),Rut=[Cut,wut],Aut={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"},Nut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),Out={class:"flex flex-row"},Iut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),Mut={class:"flex flex-row"},Dut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),kut={class:"flex flex-row"},Lut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),Put={class:"flex flex-row"},Uut={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"},Fut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),But={style:{width:"100%"}},Gut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),Vut={style:{width:"100%"}},zut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_sound_threshold_percentage",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"stt_sound_threshold_percentage"},"Minimum sound percentage in recorded segment:")],-1)),Hut={style:{width:"100%"}},qut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),Yut={style:{width:"100%"}},$ut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),Wut={style:{width:"100%"}},Kut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),jut={style:{width:"100%"}},Qut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),Xut={style:{width:"100%"}},Zut=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),Jut={class:"flex flex-row"},ept=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),tpt={class:"flex flex-row"},npt={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"},ipt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),spt={style:{width:"100%"}},rpt=["value"],opt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),apt={style:{width:"100%"}},lpt=["value"],cpt={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"},dpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),upt={style:{width:"100%"}},ppt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys (coma separated, if empty, anyone can use the server without authentication):")],-1)),_pt={style:{width:"100%"}},hpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),fpt={style:{width:"100%"}},mpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode (deactivates all code exectuion to protect the PC from attacks):")],-1)),gpt={style:{width:"100%"}},bpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),Ept={style:{width:"100%"}},ypt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),vpt={style:{width:"100%"}},Spt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),Tpt={style:{width:"100%"}},xpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),Cpt={style:{width:"100%"}},wpt={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"},Rpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),Apt={class:"flex flex-row"},Npt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),Opt={class:"flex flex-row"},Ipt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),Mpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),Dpt=["value"],kpt={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"},Lpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),Ppt={class:"flex flex-row"},Upt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Fpt={class:"flex flex-row"},Bpt=["value"],Gpt={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"},Vpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),zpt={class:"flex flex-row"},Hpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),qpt={class:"flex flex-row"},Ypt=["value"],$pt={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"},Wpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),Kpt={class:"flex flex-row"},jpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),Qpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),Xpt=["value"],Zpt={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"},Jpt=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_enable",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable voice service:")],-1)),e_t={class:"flex flex-row"},t_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_xtts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xTTS service:")],-1)),n_t={class:"flex flex-row"},i_t=["href"],s_t=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/xtts-api-server/blob/main/LICENSE",target:"_blank"},"licence",-1)),r_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts base url:")],-1)),o_t={class:"flex flex-row"},a_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l_t={class:"flex flex-row"},c_t=["disabled"],d_t=["value"],u_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),p_t={class:"flex flex-row"},__t=["disabled"],h_t=["value"],f_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_use_deepspeed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable deepspeed:")],-1)),m_t={class:"flex flex-row"},g_t=["disabled"],b_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_use_streaming_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable streaming mode:")],-1)),E_t={class:"flex flex-row"},y_t=["disabled"],v_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),S_t={class:"flex flex-row"},T_t=["disabled"],x_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),C_t={class:"flex flex-row"},w_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),R_t={class:"flex flex-row"},A_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),N_t={class:"flex flex-row"},O_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),I_t={class:"flex flex-row"},M_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),D_t={class:"flex flex-row"},k_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),L_t={class:"flex flex-row"},P_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),U_t={class:"flex flex-row"},F_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),B_t={class:"flex flex-row"},G_t={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"},V_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),z_t={class:"flex flex-row"},H_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),q_t={class:"flex flex-row"},Y_t=P(()=>c("option",null," tts-1 ",-1)),$_t=P(()=>c("option",null," tts-2 ",-1)),W_t=[Y_t,$_t],K_t=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),j_t={class:"flex flex-row"},Q_t=P(()=>c("option",null," alloy ",-1)),X_t=P(()=>c("option",null," echo ",-1)),Z_t=P(()=>c("option",null," fable ",-1)),J_t=P(()=>c("option",null," nova ",-1)),eht=P(()=>c("option",null," shimmer ",-1)),tht=[Q_t,X_t,Z_t,J_t,eht],nht={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"},iht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),sht={class:"flex flex-row"},rht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),oht=[rht],aht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),lht={class:"flex flex-row"},cht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1)),dht={class:"flex flex-row"},uht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),pht={class:"flex flex-row"},_ht={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"},hht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),fht={class:"flex flex-row"},mht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1)),ght=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),bht={class:"flex flex-row"},Eht=P(()=>c("td",null,null,-1)),yht={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"},vht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),Sht={class:"flex flex-row"},Tht={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"},xht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),Cht={class:"flex flex-row"},wht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),Rht={class:"flex flex-row"},Aht=P(()=>c("option",null," dall-e-2 ",-1)),Nht=P(()=>c("option",null," dall-e-3 ",-1)),Oht=[Aht,Nht],Iht={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"},Mht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),Dht={class:"flex flex-row"},kht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Lht=[kht],Pht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),Uht={class:"flex flex-row"},Fht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Bht=[Fht],Ght=P(()=>c("td",{style:{"min-width":"200px"}},null,-1)),Vht={class:"flex flex-row"},zht=P(()=>c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1)),Hht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),qht={class:"flex flex-row"},Yht={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"},$ht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),Wht={class:"flex flex-row"},Kht=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),jht=[Kht],Qht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),Xht={class:"flex flex-row"},Zht=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),Jht={class:"flex flex-row"},eft={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"},tft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),nft={class:"flex flex-row"},ift=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),sft=[ift],rft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),oft={class:"flex flex-row"},aft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),lft={class:"flex flex-row"},cft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),dft={class:"flex flex-col align-bottom"},uft={class:"relative"},pft=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),_ft={class:"absolute right-0"},hft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),fft={class:"flex flex-row"},mft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),gft={class:"flex flex-row"},bft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),Eft={class:"flex flex-row"},yft={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"},vft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),Sft={class:"flex flex-row"},Tft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),xft=[Tft],Cft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),wft={class:"flex flex-row"},Rft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),Aft={class:"flex flex-row"},Nft={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"},Oft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Motion Ctrl service:")],-1)),Ift={class:"flex flex-row"},Mft=P(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Dft=[Mft],kft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Motion Ctrl service:")],-1)),Lft={class:"flex flex-row"},Pft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),Uft={class:"flex flex-row"},Fft={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"},Bft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_enable",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),Gft={class:"flex flex-row"},Vft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),zft={class:"flex flex-row"},Hft=P(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),qft={class:"flex flex-row"},Yft={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"},$ft={class:"flex flex-row p-3"},Wft=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Kft=[Wft],jft=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Qft=[jft],Xft=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),Zft={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Jft=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),emt={key:1,class:"mr-2"},tmt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},nmt={class:"flex gap-1 items-center"},imt=["src"],smt={class:"font-bold font-large text-lg line-clamp-1"},rmt={key:0,class:"mb-2"},omt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},amt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),lmt=[amt],cmt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),dmt=[cmt],umt={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"},pmt={class:"flex flex-row p-3"},_mt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),hmt=[_mt],fmt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),mmt=[fmt],gmt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),bmt={class:"flex flex-row items-center"},Emt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},ymt=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),vmt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Smt=P(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Tmt={key:2,class:"mr-2"},xmt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Cmt={class:"flex gap-1 items-center"},wmt=["src"],Rmt={class:"font-bold font-large text-lg line-clamp-1"},Amt={class:"mx-2 mb-4"},Nmt={class:"relative"},Omt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Imt={key:0},Mmt=P(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Dmt=[Mmt],kmt={key:1},Lmt=P(()=>c("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"},[c("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)),Pmt=[Lmt],Umt=P(()=>c("label",{for:"only_installed"},"Show only installed models",-1)),Fmt=P(()=>c("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),Bmt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Gmt=P(()=>c("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("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"}),c("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)),Vmt=P(()=>c("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),zmt=[Gmt,Vmt],Hmt={key:1,class:"mb-2"},qmt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Ymt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),$mt=[Ymt],Wmt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Kmt=[Wmt],jmt={class:"mb-2"},Qmt={class:"p-2"},Xmt={class:"mb-3"},Zmt=P(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),Jmt={key:0},egt={class:"mb-3"},tgt=P(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),ngt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},igt=P(()=>c("div",{role:"status",class:"justify-center"},null,-1)),sgt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},rgt={class:"w-full p-2"},ogt={class:"flex justify-between mb-1"},agt=Vb('<span class="flex flex-row items-center gap-2 text-base font-medium text-blue-700 dark:text-white" data-v-39a73106> Downloading <svg aria-hidden="true" class="w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-secondary" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-39a73106><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" data-v-39a73106></path><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" data-v-39a73106></path></svg><span class="sr-only" data-v-39a73106>Loading...</span></span>',1),lgt={class:"text-sm font-medium text-blue-700 dark:text-white"},cgt=["title"],dgt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},ugt={class:"flex justify-between mb-1"},pgt={class:"text-base font-medium text-blue-700 dark:text-white"},_gt={class:"text-sm font-medium text-blue-700 dark:text-white"},hgt={class:"flex flex-grow"},fgt={class:"flex flex-row flex-grow gap-3"},mgt={class:"p-2 text-center grow"},ggt={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"},bgt={class:"flex flex-row p-3 items-center"},Egt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),ygt=[Egt],vgt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Sgt=[vgt],Tgt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),xgt={key:0,class:"mr-2"},Cgt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},wgt={key:1,class:"mr-2"},Rgt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},Agt={key:0,class:"flex -space-x-4 items-center"},Ngt={class:"group items-center flex flex-row"},Ogt=["onClick"],Igt=["src","title"],Mgt=["onClick"],Dgt=P(()=>c("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[c("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"},[c("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)),kgt=[Dgt],Lgt=P(()=>c("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"},[c("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)),Pgt=[Lgt],Ugt={class:"mx-2 mb-4"},Fgt=P(()=>c("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Bgt={class:"relative"},Ggt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Vgt={key:0},zgt=P(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Hgt=[zgt],qgt={key:1},Ygt=P(()=>c("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"},[c("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)),$gt=[Ygt],Wgt={key:0,class:"mx-2 mb-4"},Kgt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},jgt=["selected"],Qgt={key:0,class:"mb-2"},Xgt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Zgt=P(()=>c("i",{"data-feather":"chevron-up"},null,-1)),Jgt=[Zgt],ebt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),tbt=[ebt],nbt={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"},ibt={class:"flex flex-row"},sbt=P(()=>c("i",{"data-feather":"chevron-right"},null,-1)),rbt=[sbt],obt=P(()=>c("i",{"data-feather":"chevron-down"},null,-1)),abt=[obt],lbt=P(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),cbt={class:"m-2"},dbt={class:"flex flex-row gap-2 items-center"},ubt=P(()=>c("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),pbt={class:"m-2"},_bt=P(()=>c("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),hbt={class:"m-2"},fbt={class:"flex flex-col align-bottom"},mbt={class:"relative"},gbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),bbt={class:"absolute right-0"},Ebt={class:"m-2"},ybt={class:"flex flex-col align-bottom"},vbt={class:"relative"},Sbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),Tbt={class:"absolute right-0"},xbt={class:"m-2"},Cbt={class:"flex flex-col align-bottom"},wbt={class:"relative"},Rbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),Abt={class:"absolute right-0"},Nbt={class:"m-2"},Obt={class:"flex flex-col align-bottom"},Ibt={class:"relative"},Mbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),Dbt={class:"absolute right-0"},kbt={class:"m-2"},Lbt={class:"flex flex-col align-bottom"},Pbt={class:"relative"},Ubt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),Fbt={class:"absolute right-0"},Bbt={class:"m-2"},Gbt={class:"flex flex-col align-bottom"},Vbt={class:"relative"},zbt=P(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Hbt={class:"absolute right-0"};function qbt(t,e,n,i,s,r){const o=mt("Card"),a=mt("BindingEntry"),l=mt("RadioOptions"),u=mt("model-entry"),d=mt("personality-entry"),h=mt("AddModelDialog"),f=mt("ChoiceDialog");return w(),A(Ye,null,[c("div",$rt,[c("div",Wrt,[s.showConfirmation?(w(),A("div",Krt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=be(_=>s.showConfirmation=!1,["stop"]))},Qrt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=be(_=>r.save_configuration(),["stop"]))},Zrt)])):V("",!0),s.showConfirmation?V("",!0):(w(),A("div",Jrt,[c("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=_=>r.reset_configuration())},tot),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=be(_=>s.all_collapsed=!s.all_collapsed,["stop"]))},iot)])),c("div",sot,[c("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=_=>r.api_get_req("clear_uploads").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},oot),c("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=_=>r.api_post_req("restart_program").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},lot),s.has_updates?(w(),A("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=_=>r.api_post_req("update_software").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[cot,dot,et(" = ")])):V("",!0),c("div",uot,[s.settingsChanged?(w(),A("div",pot,[s.isLoading?V("",!0):(w(),A("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=be(_=>r.applyConfiguration(),["stop"]))},hot)),s.isLoading?V("",!0):(w(),A("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=be(_=>r.cancelConfiguration(),["stop"]))},mot))])):V("",!0),s.isLoading?(w(),A("div",got,[c("p",null,he(s.loading_text),1),bot,Eot])):V("",!0)])])]),c("div",{class:ze(s.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[c("div",yot,[c("div",vot,[c("button",{onClick:e[9]||(e[9]=be(_=>s.sc_collapsed=!s.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Tot,512),[[Mt,s.sc_collapsed]]),G(c("div",null,Cot,512),[[Mt,!s.sc_collapsed]]),wot,Rot,c("div",Aot,[c("div",Not,[c("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(w(),A("div",Oot,[(w(!0),A(Ye,null,lt(r.vramUsage.gpus,_=>(w(),A("div",{class:"flex gap-2 items-center",key:_},[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Iot),c("h3",Mot,[c("div",null,he(r.computedFileSize(_.used_vram))+" / "+he(r.computedFileSize(_.total_vram))+" ("+he(_.percentage)+"%) ",1)])]))),128))])):V("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(w(),A("div",Dot,[c("div",kot,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Lot),c("h3",Pot,[c("div",null,he(r.vramUsage.gpus.length)+"x ",1)])])])):V("",!0)]),Uot,c("h3",Fot,[c("div",null,he(r.ram_usage)+" / "+he(r.ram_total_space)+" ("+he(r.ram_percent_usage)+"%)",1)]),Bot,c("h3",Got,[c("div",null,he(r.disk_binding_models_usage)+" / "+he(r.disk_total_space)+" ("+he(r.disk_percent_usage)+"%)",1)])])])])]),c("div",{class:ze([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Vot,[zot,c("div",Hot,[c("div",null,[qot,et(he(r.ram_available_space),1)]),c("div",null,[Yot,et(" "+he(r.ram_usage)+" / "+he(r.ram_total_space)+" ("+he(r.ram_percent_usage)+")% ",1)])]),c("div",$ot,[c("div",Wot,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+r.ram_percent_usage+"%;")},null,4)])])]),c("div",Kot,[jot,c("div",Qot,[c("div",null,[Xot,et(he(r.disk_available_space),1)]),c("div",null,[Zot,et(" "+he(r.disk_binding_models_usage)+" / "+he(r.disk_total_space)+" ("+he(r.disk_percent_usage)+"%)",1)])]),c("div",Jot,[c("div",eat,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(w(!0),A(Ye,null,lt(r.vramUsage.gpus,_=>(w(),A("div",{class:"mb-2",key:_},[c("label",tat,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,nat),et(" GPU usage: ")]),c("div",iat,[c("div",null,[sat,et(he(_.gpu_model),1)]),c("div",null,[rat,et(he(this.computedFileSize(_.available_space)),1)]),c("div",null,[oat,et(" "+he(this.computedFileSize(_.used_vram))+" / "+he(this.computedFileSize(_.total_vram))+" ("+he(_.percentage)+"%)",1)])]),c("div",aat,[c("div",lat,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en("width: "+_.percentage+"%;")},null,4)])])]))),128))],2)]),c("div",cat,[c("div",dat,[c("button",{onClick:e[10]||(e[10]=be(_=>s.minconf_collapsed=!s.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,pat,512),[[Mt,s.minconf_collapsed]]),G(c("div",null,hat,512),[[Mt,!s.minconf_collapsed]]),fat])]),c("div",{class:ze([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",mat,[Te(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",gat,[c("tr",null,[bat,c("td",null,[c("label",Eat,[c("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,yat)]),c("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[11]||(e[11]=(..._)=>r.uploadLogo&&r.uploadLogo(..._))},null,32)]),c("td",vat,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[12]||(e[12]=be(_=>r.resetLogo(),["stop"]))},Tat)])]),c("tr",null,[xat,c("td",Cat,[c("div",wat,[G(c("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[13]||(e[13]=_=>r.configFile.hardware_mode=_),onChange:e[14]||(e[14]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},Lat,544),[[jt,r.configFile.hardware_mode]])])])]),c("tr",null,[Pat,c("td",Uat,[G(c("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[15]||(e[15]=_=>r.configFile.discussion_db_name=_),onChange:e[16]||(e[16]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.discussion_db_name]])])]),c("tr",null,[Fat,c("td",null,[c("div",Bat,[G(c("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[17]||(e[17]=_=>r.configFile.copy_to_clipboard_add_all_details=_),onChange:e[18]||(e[18]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.copy_to_clipboard_add_all_details]])])])]),c("tr",null,[Gat,c("td",null,[c("div",Vat,[G(c("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[19]||(e[19]=_=>r.configFile.auto_show_browser=_),onChange:e[20]||(e[20]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.auto_show_browser]])])])]),c("tr",null,[zat,c("td",null,[c("div",Hat,[G(c("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[21]||(e[21]=_=>r.configFile.debug=_),onChange:e[22]||(e[22]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.debug]])])])]),c("tr",null,[qat,c("td",null,[c("div",Yat,[G(c("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[23]||(e[23]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[24]||(e[24]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.debug_show_final_full_prompt]])])])]),c("tr",null,[$at,c("td",null,[c("div",Wat,[G(c("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[25]||(e[25]=_=>r.configFile.debug_show_chunks=_),onChange:e[26]||(e[26]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.debug_show_chunks]])])])]),c("tr",null,[Kat,c("td",null,[c("div",jat,[G(c("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[27]||(e[27]=_=>r.configFile.debug_log_file_path=_),onChange:e[28]||(e[28]=_=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.debug_log_file_path]])])])]),c("tr",null,[Qat,c("td",null,[c("div",Xat,[G(c("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[29]||(e[29]=_=>r.configFile.show_news_panel=_),onChange:e[30]||(e[30]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.show_news_panel]])])])]),c("tr",null,[Zat,c("td",null,[c("div",Jat,[G(c("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[31]||(e[31]=_=>r.configFile.auto_save=_),onChange:e[32]||(e[32]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.auto_save]])])])]),c("tr",null,[elt,c("td",null,[c("div",tlt,[G(c("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[33]||(e[33]=_=>r.configFile.auto_update=_),onChange:e[34]||(e[34]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.auto_update]])])])]),c("tr",null,[nlt,c("td",null,[c("div",ilt,[G(c("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[35]||(e[35]=_=>r.configFile.auto_title=_),onChange:e[36]||(e[36]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.auto_title]])])])])])]),_:1}),Te(o,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",slt,[c("tr",null,[rlt,c("td",null,[c("select",{onChange:e[37]||(e[37]=(..._)=>r.handleTemplateSelection&&r.handleTemplateSelection(..._))},dlt,32)])]),c("tr",null,[ult,c("td",null,[G(c("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[38]||(e[38]=_=>r.configFile.start_header_id_template=_),onChange:e[39]||(e[39]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_header_id_template]])])]),c("tr",null,[plt,c("td",null,[G(c("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[40]||(e[40]=_=>r.configFile.end_header_id_template=_),onChange:e[41]||(e[41]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_header_id_template]])])]),c("tr",null,[_lt,c("td",null,[G(c("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[42]||(e[42]=_=>r.configFile.start_user_header_id_template=_),onChange:e[43]||(e[43]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_user_header_id_template]])])]),c("tr",null,[hlt,c("td",null,[G(c("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[44]||(e[44]=_=>r.configFile.end_user_header_id_template=_),onChange:e[45]||(e[45]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_user_header_id_template]])])]),c("tr",null,[flt,c("td",null,[G(c("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[46]||(e[46]=_=>r.configFile.end_user_message_id_template=_),onChange:e[47]||(e[47]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_user_message_id_template]])])]),c("tr",null,[mlt,c("td",null,[G(c("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[48]||(e[48]=_=>r.configFile.start_ai_header_id_template=_),onChange:e[49]||(e[49]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.start_ai_header_id_template]])])]),c("tr",null,[glt,c("td",null,[G(c("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[50]||(e[50]=_=>r.configFile.end_ai_header_id_template=_),onChange:e[51]||(e[51]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_ai_header_id_template]])])]),c("tr",null,[blt,c("td",null,[G(c("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[52]||(e[52]=_=>r.configFile.end_ai_message_id_template=_),onChange:e[53]||(e[53]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.end_ai_message_id_template]])])]),c("tr",null,[Elt,c("td",null,[G(c("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[54]||(e[54]=_=>r.configFile.separator_template=_),onChange:e[55]||(e[55]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.separator_template]])])]),c("tr",null,[ylt,c("td",null,[G(c("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[56]||(e[56]=_=>r.configFile.system_message_template=_),onChange:e[57]||(e[57]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.system_message_template]])])]),c("tr",null,[vlt,c("td",null,[c("div",{innerHTML:r.full_template},null,8,Slt)])])])]),_:1}),Te(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tlt,[c("tr",null,[xlt,c("td",Clt,[G(c("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[58]||(e[58]=_=>r.configFile.user_name=_),onChange:e[59]||(e[59]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.user_name]])])]),c("tr",null,[wlt,c("td",Rlt,[G(c("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[60]||(e[60]=_=>r.configFile.user_description=_),onChange:e[61]||(e[61]=_=>s.settingsChanged=!0),class:"min-h-[500px] w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.user_description]])])]),c("tr",null,[Alt,c("td",Nlt,[G(c("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[62]||(e[62]=_=>r.configFile.use_user_informations_in_discussion=_),onChange:e[63]||(e[63]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.use_user_informations_in_discussion]])])]),c("tr",null,[Olt,c("td",Ilt,[G(c("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[64]||(e[64]=_=>r.configFile.use_model_name_in_discussions=_),onChange:e[65]||(e[65]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.use_model_name_in_discussions]])])]),c("tr",null,[Mlt,c("td",null,[c("label",Dlt,[c("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,klt)]),c("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[66]||(e[66]=(..._)=>r.uploadAvatar&&r.uploadAvatar(..._))},null,32)]),c("td",Llt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[67]||(e[67]=be(_=>r.resetAvatar(),["stop"]))},Ult)])]),c("tr",null,[Flt,c("td",null,[c("div",Blt,[G(c("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[68]||(e[68]=_=>r.configFile.use_user_name_in_discussions=_),onChange:e[69]||(e[69]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.use_user_name_in_discussions]])])])]),c("tr",null,[Glt,c("td",Vlt,[G(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[70]||(e[70]=_=>r.configFile.max_n_predict=_),onChange:e[71]||(e[71]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.max_n_predict]])])]),c("tr",null,[zlt,c("td",Hlt,[G(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[72]||(e[72]=_=>r.configFile.max_n_predict=_),onChange:e[73]||(e[73]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.max_n_predict]])])])])]),_:1}),Te(o,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",qlt,[c("tr",null,[Ylt,c("td",$lt,[G(c("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[74]||(e[74]=_=>r.configFile.turn_on_code_execution=_),onChange:e[75]||(e[75]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.turn_on_code_execution]])])]),c("tr",null,[Wlt,c("td",Klt,[G(c("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[76]||(e[76]=_=>r.configFile.turn_on_code_validation=_),onChange:e[77]||(e[77]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.turn_on_code_validation]])])]),c("tr",null,[jlt,c("td",Qlt,[G(c("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[78]||(e[78]=_=>r.configFile.turn_on_setting_update_validation=_),onChange:e[79]||(e[79]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.turn_on_setting_update_validation]])])]),c("tr",null,[Xlt,c("td",Zlt,[G(c("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[80]||(e[80]=_=>r.configFile.turn_on_open_file_validation=_),onChange:e[81]||(e[81]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.turn_on_open_file_validation]])])]),c("tr",null,[Jlt,c("td",ect,[G(c("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[82]||(e[82]=_=>r.configFile.turn_on_send_file_validation=_),onChange:e[83]||(e[83]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),Te(o,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",tct,[c("tr",null,[nct,c("td",null,[c("div",ict,[G(c("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[84]||(e[84]=_=>r.configFile.activate_skills_lib=_),onChange:e[85]||(e[85]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_skills_lib]])])])]),c("tr",null,[sct,c("td",rct,[G(c("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[86]||(e[86]=_=>r.configFile.skills_lib_database_name=_),onChange:e[87]||(e[87]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.skills_lib_database_name]])])])])]),_:1}),Te(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",oct,[c("tr",null,[act,c("td",null,[c("div",lct,[G(c("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[88]||(e[88]=_=>r.configFile.pdf_latex_path=_),onChange:e[89]||(e[89]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.pdf_latex_path]])])])])])]),_:1}),Te(o,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",cct,[c("tr",null,[dct,c("td",null,[c("div",uct,[G(c("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[90]||(e[90]=_=>r.configFile.positive_boost=_),onChange:e[91]||(e[91]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.positive_boost]])])])]),c("tr",null,[pct,c("td",null,[c("div",_ct,[G(c("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[92]||(e[92]=_=>r.configFile.negative_boost=_),onChange:e[93]||(e[93]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.negative_boost]])])])]),c("tr",null,[hct,c("td",null,[c("div",fct,[G(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[94]||(e[94]=_=>r.configFile.fun_mode=_),onChange:e[95]||(e[95]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),c("div",mct,[c("div",gct,[c("button",{onClick:e[96]||(e[96]=be(_=>s.data_conf_collapsed=!s.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Ect,512),[[Mt,s.data_conf_collapsed]]),G(c("div",null,vct,512),[[Mt,!s.data_conf_collapsed]]),Sct])]),c("div",{class:ze([{hidden:s.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tct,[c("tr",null,[xct,c("td",Cct,[(w(!0),A(Ye,null,lt(r.configFile.rag_databases,(_,m)=>(w(),A("div",{key:m,class:"flex items-center mb-2"},[G(c("input",{type:"text","onUpdate:modelValue":E=>r.configFile.rag_databases[m]=E,onChange:e[97]||(e[97]=E=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,wct),[[we,r.configFile.rag_databases[m]]]),c("button",{onClick:E=>r.vectorize_folder(m),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,Rct),c("button",{onClick:E=>r.select_folder(m),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,Act),c("button",{onClick:E=>r.removeDataSource(m),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,Nct)]))),128)),c("button",{onClick:e[98]||(e[98]=(..._)=>r.addDataSource&&r.addDataSource(..._)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),c("tr",null,[Oct,c("td",null,[G(c("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[99]||(e[99]=_=>r.configFile.rag_vectorizer=_),onChange:e[100]||(e[100]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},kct,544),[[jt,r.configFile.rag_vectorizer]])])]),c("tr",null,[Lct,c("td",null,[G(c("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[101]||(e[101]=_=>r.configFile.rag_vectorizer_model=_),onChange:e[102]||(e[102]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Uct,544),[[jt,r.configFile.rag_vectorizer_model]])])]),c("tr",null,[Fct,c("td",null,[G(c("input",{id:"rag_chunk_size","onUpdate:modelValue":e[103]||(e[103]=_=>r.configFile.rag_chunk_size=_),onChange:e[104]||(e[104]=_=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",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),[[we,r.configFile.rag_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[105]||(e[105]=_=>r.configFile.rag_chunk_size=_),type:"number",onChange:e[106]||(e[106]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_chunk_size]])])]),c("tr",null,[Bct,c("td",null,[G(c("input",{id:"rag_overlap","onUpdate:modelValue":e[107]||(e[107]=_=>r.configFile.rag_overlap=_),onChange:e[108]||(e[108]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[we,r.configFile.rag_overlap]]),G(c("input",{"onUpdate:modelValue":e[109]||(e[109]=_=>r.configFile.rag_overlap=_),type:"number",onChange:e[110]||(e[110]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_overlap]])])]),c("tr",null,[Gct,c("td",null,[G(c("input",{id:"rag_n_chunks","onUpdate:modelValue":e[111]||(e[111]=_=>r.configFile.rag_n_chunks=_),onChange:e[112]||(e[112]=_=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",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),[[we,r.configFile.rag_n_chunks]]),G(c("input",{"onUpdate:modelValue":e[113]||(e[113]=_=>r.configFile.rag_n_chunks=_),type:"number",onChange:e[114]||(e[114]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.rag_n_chunks]])])]),c("tr",null,[Vct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[115]||(e[115]=_=>r.configFile.rag_clean_chunks=_),type:"checkbox",onChange:e[116]||(e[116]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.rag_clean_chunks]])])]),c("tr",null,[zct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[117]||(e[117]=_=>r.configFile.rag_follow_subfolders=_),type:"checkbox",onChange:e[118]||(e[118]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.rag_follow_subfolders]])])]),c("tr",null,[Hct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[119]||(e[119]=_=>r.configFile.rag_check_new_files_at_startup=_),type:"checkbox",onChange:e[120]||(e[120]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.rag_check_new_files_at_startup]])])]),c("tr",null,[qct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[121]||(e[121]=_=>r.configFile.rag_preprocess_chunks=_),type:"checkbox",onChange:e[122]||(e[122]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.rag_preprocess_chunks]])])]),c("tr",null,[Yct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[123]||(e[123]=_=>r.configFile.rag_activate_multi_hops=_),type:"checkbox",onChange:e[124]||(e[124]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.rag_activate_multi_hops]])])]),c("tr",null,[$ct,c("td",null,[G(c("input",{"onUpdate:modelValue":e[125]||(e[125]=_=>r.configFile.contextual_summary=_),type:"checkbox",onChange:e[126]||(e[126]=_=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.contextual_summary]])])])])]),_:1}),Te(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Wct,[c("tr",null,[Kct,c("td",null,[c("div",jct,[G(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[127]||(e[127]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[128]||(e[128]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[Qct,c("td",null,[c("div",Xct,[G(c("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[129]||(e[129]=_=>r.configFile.data_vectorization_visualize_on_vectorization=_),onChange:e[130]||(e[130]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),c("tr",null,[Zct,c("td",null,[c("div",Jct,[G(c("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[131]||(e[131]=_=>r.configFile.data_vectorization_build_keys_words=_),onChange:e[132]||(e[132]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.data_vectorization_build_keys_words]])])])]),c("tr",null,[edt,c("td",null,[c("div",tdt,[G(c("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[133]||(e[133]=_=>r.configFile.data_vectorization_force_first_chunk=_),onChange:e[134]||(e[134]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.data_vectorization_force_first_chunk]])])])]),c("tr",null,[ndt,c("td",null,[c("div",idt,[G(c("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[135]||(e[135]=_=>r.configFile.data_vectorization_put_chunk_informations_into_context=_),onChange:e[136]||(e[136]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),c("tr",null,[sdt,c("td",null,[G(c("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[137]||(e[137]=_=>r.configFile.data_vectorization_method=_),onChange:e[138]||(e[138]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},cdt,544),[[jt,r.configFile.data_vectorization_method]])])]),c("tr",null,[ddt,c("td",udt,[G(c("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[139]||(e[139]=_=>r.configFile.data_vectorization_sentense_transformer_model=_),onChange:e[140]||(e[140]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_sentense_transformer_model]])])]),c("tr",null,[pdt,c("td",null,[G(c("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[141]||(e[141]=_=>r.configFile.data_visualization_method=_),onChange:e[142]||(e[142]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},fdt,544),[[jt,r.configFile.data_visualization_method]])])]),c("tr",null,[mdt,c("td",null,[c("div",gdt,[G(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[143]||(e[143]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[144]||(e[144]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[bdt,c("td",null,[G(c("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[145]||(e[145]=_=>r.configFile.data_vectorization_chunk_size=_),onChange:e[146]||(e[146]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[we,r.configFile.data_vectorization_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[147]||(e[147]=_=>r.configFile.data_vectorization_chunk_size=_),type:"number",onChange:e[148]||(e[148]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_chunk_size]])])]),c("tr",null,[Edt,c("td",null,[G(c("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[149]||(e[149]=_=>r.configFile.data_vectorization_overlap_size=_),onChange:e[150]||(e[150]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[we,r.configFile.data_vectorization_overlap_size]]),G(c("input",{"onUpdate:modelValue":e[151]||(e[151]=_=>r.configFile.data_vectorization_overlap_size=_),type:"number",onChange:e[152]||(e[152]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_overlap_size]])])]),c("tr",null,[ydt,c("td",null,[G(c("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[153]||(e[153]=_=>r.configFile.data_vectorization_nb_chunks=_),onChange:e[154]||(e[154]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",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),[[we,r.configFile.data_vectorization_nb_chunks]]),G(c("input",{"onUpdate:modelValue":e[155]||(e[155]=_=>r.configFile.data_vectorization_nb_chunks=_),type:"number",onChange:e[156]||(e[156]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),c("div",vdt,[c("div",Sdt,[c("button",{onClick:e[157]||(e[157]=be(_=>s.internet_conf_collapsed=!s.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,xdt,512),[[Mt,s.internet_conf_collapsed]]),G(c("div",null,wdt,512),[[Mt,!s.internet_conf_collapsed]]),Rdt])]),c("div",{class:ze([{hidden:s.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Adt,[c("tr",null,[Ndt,c("td",null,[c("div",Odt,[G(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[158]||(e[158]=_=>r.configFile.activate_internet_search=_),onChange:e[159]||(e[159]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_internet_search]])])])]),c("tr",null,[Idt,c("td",null,[c("div",Mdt,[G(c("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[160]||(e[160]=_=>r.configFile.activate_internet_pages_judgement=_),onChange:e[161]||(e[161]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_internet_pages_judgement]])])])]),c("tr",null,[Ddt,c("td",null,[c("div",kdt,[G(c("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[162]||(e[162]=_=>r.configFile.internet_quick_search=_),onChange:e[163]||(e[163]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.internet_quick_search]])])])]),c("tr",null,[Ldt,c("td",null,[c("div",Pdt,[G(c("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[164]||(e[164]=_=>r.configFile.internet_activate_search_decision=_),onChange:e[165]||(e[165]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.internet_activate_search_decision]])])])]),c("tr",null,[Udt,c("td",null,[c("div",Fdt,[G(c("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[166]||(e[166]=_=>r.configFile.internet_vectorization_chunk_size=_),onChange:e[167]||(e[167]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",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),[[we,r.configFile.internet_vectorization_chunk_size]]),G(c("input",{"onUpdate:modelValue":e[168]||(e[168]=_=>r.configFile.internet_vectorization_chunk_size=_),type:"number",onChange:e[169]||(e[169]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_chunk_size]])])])]),c("tr",null,[Bdt,c("td",null,[c("div",Gdt,[G(c("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[170]||(e[170]=_=>r.configFile.internet_vectorization_overlap_size=_),onChange:e[171]||(e[171]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",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),[[we,r.configFile.internet_vectorization_overlap_size]]),G(c("input",{"onUpdate:modelValue":e[172]||(e[172]=_=>r.configFile.internet_vectorization_overlap_size=_),type:"number",onChange:e[173]||(e[173]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_overlap_size]])])])]),c("tr",null,[Vdt,c("td",null,[c("div",zdt,[G(c("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[174]||(e[174]=_=>r.configFile.internet_vectorization_nb_chunks=_),onChange:e[175]||(e[175]=_=>s.settingsChanged=!0),type:"range",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),[[we,r.configFile.internet_vectorization_nb_chunks]]),G(c("input",{"onUpdate:modelValue":e[176]||(e[176]=_=>r.configFile.internet_vectorization_nb_chunks=_),type:"number",onChange:e[177]||(e[177]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_vectorization_nb_chunks]])])])]),c("tr",null,[Hdt,c("td",null,[c("div",qdt,[G(c("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[178]||(e[178]=_=>r.configFile.internet_nb_search_pages=_),onChange:e[179]||(e[179]=_=>s.settingsChanged=!0),type:"range",min:"1",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),[[we,r.configFile.internet_nb_search_pages]]),G(c("input",{"onUpdate:modelValue":e[180]||(e[180]=_=>r.configFile.internet_nb_search_pages=_),type:"number",onChange:e[181]||(e[181]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),c("div",Ydt,[c("div",$dt,[c("button",{onClick:e[182]||(e[182]=be(_=>s.servers_conf_collapsed=!s.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Kdt,512),[[Mt,s.servers_conf_collapsed]]),G(c("div",null,Qdt,512),[[Mt,!s.servers_conf_collapsed]]),Xdt])]),c("div",{class:ze([{hidden:s.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Te(o,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Zdt,[c("tr",null,[Jdt,c("td",eut,[G(c("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[183]||(e[183]=_=>r.configFile.active_tts_service=_),onChange:e[184]||(e[184]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},rut,544),[[jt,r.configFile.active_tts_service]])])]),c("tr",null,[out,c("td",aut,[G(c("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[185]||(e[185]=_=>r.configFile.active_stt_service=_),onChange:e[186]||(e[186]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},uut,544),[[jt,r.configFile.active_stt_service]])])]),put,c("tr",null,[_ut,c("td",hut,[G(c("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[187]||(e[187]=_=>r.configFile.active_tti_service=_),onChange:e[188]||(e[188]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Sut,544),[[jt,r.configFile.active_tti_service]])])]),c("tr",null,[Tut,c("td",xut,[G(c("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[189]||(e[189]=_=>r.configFile.active_ttm_service=_),onChange:e[190]||(e[190]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Rut,544),[[jt,r.configFile.active_ttm_service]])])])])]),_:1}),Te(o,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Aut,[c("tr",null,[Nut,c("td",null,[c("div",Out,[G(c("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[191]||(e[191]=_=>r.configFile.use_negative_prompt=_),onChange:e[192]||(e[192]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.use_negative_prompt]])])])]),c("tr",null,[Iut,c("td",null,[c("div",Mut,[G(c("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[193]||(e[193]=_=>r.configFile.use_ai_generated_negative_prompt=_),onChange:e[194]||(e[194]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.use_ai_generated_negative_prompt]])])])]),c("tr",null,[Dut,c("td",null,[c("div",kut,[G(c("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[195]||(e[195]=_=>r.configFile.negative_prompt_generation_prompt=_),onChange:e[196]||(e[196]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.negative_prompt_generation_prompt]])])])]),c("tr",null,[Lut,c("td",null,[c("div",Put,[G(c("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[197]||(e[197]=_=>r.configFile.default_negative_prompt=_),onChange:e[198]||(e[198]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.default_negative_prompt]])])])])])]),_:1}),Te(o,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Uut,[c("tr",null,[Fut,c("td",But,[G(c("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[199]||(e[199]=_=>r.configFile.stt_listening_threshold=_),onChange:e[200]||(e[200]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_listening_threshold]])])]),c("tr",null,[Gut,c("td",Vut,[G(c("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[201]||(e[201]=_=>r.configFile.stt_silence_duration=_),onChange:e[202]||(e[202]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_silence_duration]])])]),c("tr",null,[zut,c("td",Hut,[G(c("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[203]||(e[203]=_=>r.configFile.stt_sound_threshold_percentage=_),onChange:e[204]||(e[204]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_sound_threshold_percentage]])])]),c("tr",null,[qut,c("td",Yut,[G(c("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[205]||(e[205]=_=>r.configFile.stt_gain=_),onChange:e[206]||(e[206]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_gain]])])]),c("tr",null,[$ut,c("td",Wut,[G(c("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[207]||(e[207]=_=>r.configFile.stt_rate=_),onChange:e[208]||(e[208]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_rate]])])]),c("tr",null,[Kut,c("td",jut,[G(c("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[209]||(e[209]=_=>r.configFile.stt_channels=_),onChange:e[210]||(e[210]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_channels]])])]),c("tr",null,[Qut,c("td",Xut,[G(c("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[211]||(e[211]=_=>r.configFile.stt_buffer_size=_),onChange:e[212]||(e[212]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.stt_buffer_size]])])]),c("tr",null,[Zut,c("td",null,[c("div",Jut,[G(c("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[213]||(e[213]=_=>r.configFile.stt_activate_word_detection=_),onChange:e[214]||(e[214]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.stt_activate_word_detection]])])])]),c("tr",null,[ept,c("td",null,[c("div",tpt,[G(c("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[215]||(e[215]=_=>r.configFile.stt_word_detection_file=_),onChange:e[216]||(e[216]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.stt_word_detection_file]])])])])])]),_:1}),Te(o,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",npt,[c("tr",null,[ipt,c("td",spt,[G(c("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[217]||(e[217]=_=>r.configFile.stt_input_device=_),onChange:e[218]||(e[218]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.snd_input_devices,(_,m)=>(w(),A("option",{key:_,value:s.snd_input_devices_indexes[m]},he(_),9,rpt))),128))],544),[[jt,r.configFile.stt_input_device]])])]),c("tr",null,[opt,c("td",apt,[G(c("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[219]||(e[219]=_=>r.configFile.tts_output_device=_),onChange:e[220]||(e[220]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.snd_output_devices,(_,m)=>(w(),A("option",{key:_,value:s.snd_output_devices_indexes[m]},he(_),9,lpt))),128))],544),[[jt,r.configFile.tts_output_device]])])])])]),_:1}),Te(o,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",cpt,[c("tr",null,[dpt,c("td",upt,[G(c("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[221]||(e[221]=_=>r.configFile.host=_),onChange:e[222]||(e[222]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.host]])])]),c("tr",null,[ppt,c("td",_pt,[G(c("input",{type:"text",id:"lollms_access_keys",required:"","onUpdate:modelValue":e[223]||(e[223]=_=>r.configFile.lollms_access_keys=_),onChange:e[224]||(e[224]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.lollms_access_keys]])])]),c("tr",null,[hpt,c("td",fpt,[G(c("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[225]||(e[225]=_=>r.configFile.port=_),onChange:e[226]||(e[226]=_=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[we,r.configFile.port]])])]),c("tr",null,[mpt,c("td",gpt,[G(c("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[227]||(e[227]=_=>r.configFile.headless_server_mode=_),onChange:e[228]||(e[228]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,r.configFile.headless_server_mode]])])]),c("tr",null,[bpt,c("td",Ept,[G(c("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[229]||(e[229]=_=>r.configFile.activate_lollms_server=_),onChange:e[230]||(e[230]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_lollms_server]])])]),c("tr",null,[ypt,c("td",vpt,[G(c("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[231]||(e[231]=_=>r.configFile.activate_ollama_emulator=_),onChange:e[232]||(e[232]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_ollama_emulator]])])]),c("tr",null,[Spt,c("td",Tpt,[G(c("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[233]||(e[233]=_=>r.configFile.activate_openai_emulator=_),onChange:e[234]||(e[234]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_openai_emulator]])])]),c("tr",null,[xpt,c("td",Cpt,[G(c("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[235]||(e[235]=_=>r.configFile.activate_mistralai_emulator=_),onChange:e[236]||(e[236]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),Te(o,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",wpt,[c("tr",null,[Rpt,c("td",null,[c("div",Apt,[G(c("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[237]||(e[237]=_=>r.configFile.activate_audio_infos=_),onChange:e[238]||(e[238]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.activate_audio_infos]])])])]),c("tr",null,[Npt,c("td",null,[c("div",Opt,[G(c("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[239]||(e[239]=_=>r.configFile.audio_auto_send_input=_),onChange:e[240]||(e[240]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.audio_auto_send_input]])])])]),c("tr",null,[Ipt,c("td",null,[G(c("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[241]||(e[241]=_=>r.configFile.audio_silenceTimer=_),onChange:e[242]||(e[242]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"10000",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),[[we,r.configFile.audio_silenceTimer]]),G(c("input",{"onUpdate:modelValue":e[243]||(e[243]=_=>r.configFile.audio_silenceTimer=_),onChange:e[244]||(e[244]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.audio_silenceTimer]])])]),c("tr",null,[Mpt,c("td",null,[G(c("select",{id:"audio_in_language","onUpdate:modelValue":e[245]||(e[245]=_=>r.configFile.audio_in_language=_),onChange:e[246]||(e[246]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.audioLanguages,_=>(w(),A("option",{key:_.code,value:_.code},he(_.name),9,Dpt))),128))],544),[[jt,r.configFile.audio_in_language]])])])])]),_:1}),Te(o,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",kpt,[c("tr",null,[Lpt,c("td",null,[c("div",Ppt,[G(c("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[247]||(e[247]=_=>r.configFile.whisper_activate=_),onChange:e[248]||(e[248]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.whisper_activate]])])])]),c("tr",null,[Upt,c("td",null,[c("div",Fpt,[G(c("select",{id:"whisper_model","onUpdate:modelValue":e[249]||(e[249]=_=>r.configFile.whisper_model=_),onChange:e[250]||(e[250]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.whisperModels,_=>(w(),A("option",{key:_,value:_},he(_),9,Bpt))),128))],544),[[jt,r.configFile.whisper_model]])])])])])]),_:1}),Te(o,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Gpt,[c("tr",null,[Vpt,c("td",null,[c("div",zpt,[G(c("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[251]||(e[251]=_=>r.configFile.openai_whisper_key=_),onChange:e[252]||(e[252]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.openai_whisper_key]])])])]),c("tr",null,[Hpt,c("td",null,[c("div",qpt,[G(c("select",{id:"openai_whisper_model","onUpdate:modelValue":e[253]||(e[253]=_=>r.configFile.openai_whisper_model=_),onChange:e[254]||(e[254]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(r.openaiWhisperModels,_=>(w(),A("option",{key:_,value:_},he(_),9,Ypt))),128))],544),[[jt,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",$pt,[c("tr",null,[Wpt,c("td",null,[c("div",Kpt,[G(c("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[255]||(e[255]=_=>r.configFile.auto_speak=_),onChange:e[256]||(e[256]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.auto_speak]])])])]),c("tr",null,[jpt,c("td",null,[G(c("input",{id:"audio_pitch","onUpdate:modelValue":e[257]||(e[257]=_=>r.configFile.audio_pitch=_),onChange:e[258]||(e[258]=_=>s.settingsChanged=!0),type:"range",min:"0",max:"10",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),[[we,r.configFile.audio_pitch]]),G(c("input",{"onUpdate:modelValue":e[259]||(e[259]=_=>r.configFile.audio_pitch=_),onChange:e[260]||(e[260]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.audio_pitch]])])]),c("tr",null,[Qpt,c("td",null,[G(c("select",{id:"audio_out_voice","onUpdate:modelValue":e[261]||(e[261]=_=>r.configFile.audio_out_voice=_),onChange:e[262]||(e[262]=_=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(w(!0),A(Ye,null,lt(s.audioVoices,_=>(w(),A("option",{key:_.name,value:_.name},he(_.name),9,Xpt))),128))],544),[[jt,r.configFile.audio_out_voice]])])])])]),_:1}),Te(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Zpt,[c("tr",null,[Jpt,c("td",null,[c("div",e_t,[G(c("input",{type:"checkbox",id:"xtts_enable",required:"","onUpdate:modelValue":e[263]||(e[263]=_=>r.configFile.xtts_enable=_),onChange:e[264]||(e[264]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.xtts_enable]])])])]),c("tr",null,[t_t,c("td",null,[c("div",n_t,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[265]||(e[265]=(..._)=>r.reinstallAudioService&&r.reinstallAudioService(..._))},"install xtts service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[266]||(e[266]=(..._)=>r.startAudioService&&r.startAudioService(..._))},"start xtts service"),c("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:this.$store.state.config.xtts_base_url+"/docs",target:"_blank"},"show xtts service entries",8,i_t),s_t])])]),c("tr",null,[r_t,c("td",null,[c("div",o_t,[G(c("input",{type:"text",id:"xtts_base_url",required:"","onUpdate:modelValue":e[267]||(e[267]=_=>r.configFile.xtts_base_url=_),onChange:e[268]||(e[268]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_base_url]])])])]),c("tr",null,[a_t,c("td",null,[c("div",l_t,[G(c("select",{"onUpdate:modelValue":e[269]||(e[269]=_=>r.xtts_current_language=_),onChange:e[270]||(e[270]=_=>s.settingsChanged=!0),disabled:!r.xtts_enable},[(w(!0),A(Ye,null,lt(s.voice_languages,(_,m)=>(w(),A("option",{key:m,value:_},he(m),9,d_t))),128))],40,c_t),[[jt,r.xtts_current_language]])])])]),c("tr",null,[u_t,c("td",null,[c("div",p_t,[G(c("select",{"onUpdate:modelValue":e[271]||(e[271]=_=>r.xtts_current_voice=_),onChange:e[272]||(e[272]=_=>s.settingsChanged=!0),disabled:!r.xtts_enable},[(w(!0),A(Ye,null,lt(s.voices,_=>(w(),A("option",{key:_,value:_},he(_),9,h_t))),128))],40,__t),[[jt,r.xtts_current_voice]])])])]),c("tr",null,[f_t,c("td",null,[c("div",m_t,[G(c("input",{type:"checkbox",id:"xtts_use_deepspeed",required:"","onUpdate:modelValue":e[273]||(e[273]=_=>r.configFile.xtts_use_deepspeed=_),onChange:e[274]||(e[274]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,g_t),[[Ze,r.configFile.xtts_use_deepspeed]])])])]),c("tr",null,[b_t,c("td",null,[c("div",E_t,[G(c("input",{type:"checkbox",id:"xtts_use_streaming_mode",required:"","onUpdate:modelValue":e[275]||(e[275]=_=>r.configFile.xtts_use_streaming_mode=_),onChange:e[276]||(e[276]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,y_t),[[Ze,r.configFile.xtts_use_streaming_mode]])])])]),c("tr",null,[v_t,c("td",null,[c("div",S_t,[G(c("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[277]||(e[277]=_=>r.configFile.auto_read=_),onChange:e[278]||(e[278]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.xtts_enable},null,40,T_t),[[Ze,r.configFile.auto_read]])])])]),c("tr",null,[x_t,c("td",null,[c("div",C_t,[G(c("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[279]||(e[279]=_=>r.configFile.xtts_stream_chunk_size=_),onChange:e[280]||(e[280]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_stream_chunk_size]])])])]),c("tr",null,[w_t,c("td",null,[c("div",R_t,[G(c("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[281]||(e[281]=_=>r.configFile.xtts_temperature=_),onChange:e[282]||(e[282]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[we,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),c("tr",null,[A_t,c("td",null,[c("div",N_t,[G(c("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[283]||(e[283]=_=>r.configFile.xtts_length_penalty=_),onChange:e[284]||(e[284]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),c("tr",null,[O_t,c("td",null,[c("div",I_t,[G(c("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[285]||(e[285]=_=>r.configFile.xtts_repetition_penalty=_),onChange:e[286]||(e[286]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),c("tr",null,[M_t,c("td",null,[c("div",D_t,[G(c("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[287]||(e[287]=_=>r.configFile.xtts_top_k=_),onChange:e[288]||(e[288]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),c("tr",null,[k_t,c("td",null,[c("div",L_t,[G(c("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[289]||(e[289]=_=>r.configFile.xtts_top_p=_),onChange:e[290]||(e[290]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),c("tr",null,[P_t,c("td",null,[c("div",U_t,[G(c("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[291]||(e[291]=_=>r.configFile.xtts_speed=_),onChange:e[292]||(e[292]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[we,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),c("tr",null,[F_t,c("td",null,[c("div",B_t,[G(c("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[293]||(e[293]=_=>r.configFile.enable_text_splitting=_),onChange:e[294]||(e[294]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.enable_text_splitting]])])])])])]),_:1}),Te(o,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",G_t,[c("tr",null,[V_t,c("td",null,[c("div",z_t,[G(c("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[295]||(e[295]=_=>r.configFile.openai_tts_key=_),onChange:e[296]||(e[296]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.openai_tts_key]])])])]),c("tr",null,[H_t,c("td",null,[c("div",q_t,[G(c("select",{"onUpdate:modelValue":e[297]||(e[297]=_=>r.configFile.openai_tts_model=_),onChange:e[298]||(e[298]=_=>s.settingsChanged=!0)},W_t,544),[[jt,r.configFile.openai_tts_model]])])])]),c("tr",null,[K_t,c("td",null,[c("div",j_t,[G(c("select",{"onUpdate:modelValue":e[299]||(e[299]=_=>r.configFile.openai_tts_voice=_),onChange:e[300]||(e[300]=_=>s.settingsChanged=!0)},tht,544),[[jt,r.configFile.openai_tts_voice]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",nht,[c("tr",null,[iht,c("td",null,[c("div",sht,[G(c("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[301]||(e[301]=_=>r.configFile.enable_sd_service=_),onChange:e[302]||(e[302]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.enable_sd_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[303]||(e[303]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},oht)])]),c("tr",null,[aht,c("td",null,[c("div",lht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[304]||(e[304]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[305]||(e[305]=(..._)=>r.upgradeSDService&&r.upgradeSDService(..._))},"upgrade sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[306]||(e[306]=(..._)=>r.startSDService&&r.startSDService(..._))},"start sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[307]||(e[307]=(..._)=>r.showSD&&r.showSD(..._))},"show sd ui"),cht])]),c("td",null,[c("div",dht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[308]||(e[308]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service")])])]),c("tr",null,[uht,c("td",null,[c("div",pht,[G(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[309]||(e[309]=_=>r.configFile.sd_base_url=_),onChange:e[310]||(e[310]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.sd_base_url]])])])])])]),_:1}),Te(o,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",_ht,[c("tr",null,[hht,c("td",null,[c("div",fht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[311]||(e[311]=(..._)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(..._))},"install diffusers service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[312]||(e[312]=(..._)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(..._))},"upgrade diffusers service"),mht])])]),c("tr",null,[ght,c("td",null,[c("div",bht,[G(c("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[313]||(e[313]=_=>r.configFile.diffusers_model=_),onChange:e[314]||(e[314]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.diffusers_model]])])]),Eht])])]),_:1}),Te(o,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",yht,[c("tr",null,[vht,c("td",null,[c("div",Sht,[G(c("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[315]||(e[315]=_=>r.configFile.midjourney_key=_),onChange:e[316]||(e[316]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.midjourney_key]])])])])])]),_:1}),Te(o,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Tht,[c("tr",null,[xht,c("td",null,[c("div",Cht,[G(c("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[317]||(e[317]=_=>r.configFile.dall_e_key=_),onChange:e[318]||(e[318]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.dall_e_key]])])])]),c("tr",null,[wht,c("td",null,[c("div",Rht,[G(c("select",{"onUpdate:modelValue":e[319]||(e[319]=_=>r.configFile.dall_e_generation_engine=_),onChange:e[320]||(e[320]=_=>s.settingsChanged=!0)},Oht,544),[[jt,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),Te(o,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Iht,[c("tr",null,[Mht,c("td",null,[c("div",Dht,[G(c("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[321]||(e[321]=_=>r.configFile.enable_comfyui_service=_),onChange:e[322]||(e[322]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.enable_comfyui_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[323]||(e[323]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Lht)])]),c("tr",null,[Pht,c("td",null,[c("div",Uht,[G(c("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[324]||(e[324]=_=>r.configFile.comfyui_model=_),onChange:e[325]||(e[325]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.comfyui_model]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[326]||(e[326]=_=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Bht)])]),c("tr",null,[Ght,c("td",null,[c("div",Vht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[327]||(e[327]=(..._)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(..._))},"install comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[328]||(e[328]=(..._)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(..._))},"upgrade comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[329]||(e[329]=(..._)=>r.startComfyUIService&&r.startComfyUIService(..._))},"start comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[330]||(e[330]=(..._)=>r.showComfyui&&r.showComfyui(..._))},"show comfyui"),zht])])]),c("tr",null,[Hht,c("td",null,[c("div",qht,[G(c("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[331]||(e[331]=_=>r.configFile.comfyui_base_url=_),onChange:e[332]||(e[332]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),Te(o,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Yht,[c("tr",null,[$ht,c("td",null,[c("div",Wht,[G(c("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[333]||(e[333]=_=>r.configFile.enable_ollama_service=_),onChange:e[334]||(e[334]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.enable_ollama_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[335]||(e[335]=_=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding.
|
||
If you are using windows, this uses wsl which requires you to have it installed or at least activated.
|
||
If You are using windows, this will install wsl so you need to activate it.
|
||
<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},jht)])]),c("tr",null,[Qht,c("td",null,[c("div",Xht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[336]||(e[336]=(..._)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(..._))},"install ollama service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[337]||(e[337]=(..._)=>r.startollamaService&&r.startollamaService(..._))},"start ollama service")])])]),c("tr",null,[Zht,c("td",null,[c("div",Jht,[G(c("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[338]||(e[338]=_=>r.configFile.ollama_base_url=_),onChange:e[339]||(e[339]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.ollama_base_url]])])])])])]),_:1}),Te(o,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",eft,[c("tr",null,[tft,c("td",null,[c("div",nft,[G(c("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[340]||(e[340]=_=>r.configFile.enable_vllm_service=_),onChange:e[341]||(e[341]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.enable_vllm_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=_=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding.
|
||
If you are using windows, this uses wsl which requires you to have it installed or at least activated.
|
||
If You are using windows, this will install wsl so you need to activate it.
|
||
<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},sft)])]),c("tr",null,[rft,c("td",null,[c("div",oft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[343]||(e[343]=(..._)=>r.reinstallvLLMService&&r.reinstallvLLMService(..._))},"install vLLM service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[344]||(e[344]=(..._)=>r.startvLLMService&&r.startvLLMService(..._))},"start vllm service")])])]),c("tr",null,[aft,c("td",null,[c("div",lft,[G(c("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[345]||(e[345]=_=>r.configFile.vllm_url=_),onChange:e[346]||(e[346]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_url]])])])]),c("tr",null,[cft,c("td",null,[c("div",dft,[c("div",uft,[pft,c("p",_ft,[G(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[347]||(e[347]=_=>r.configFile.vllm_gpu_memory_utilization=_),onChange:e[348]||(e[348]=_=>s.settingsChanged=!0),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,544),[[we,r.configFile.vllm_gpu_memory_utilization]])])]),G(c("input",{id:"vllm_gpu_memory_utilization",onChange:e[349]||(e[349]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[350]||(e[350]=_=>r.configFile.vllm_gpu_memory_utilization=_),min:"0.10",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),[[we,r.configFile.vllm_gpu_memory_utilization]])])])]),c("tr",null,[hft,c("td",null,[c("div",fft,[G(c("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[351]||(e[351]=_=>r.configFile.vllm_max_num_seqs=_),onChange:e[352]||(e[352]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_max_num_seqs]])])])]),c("tr",null,[mft,c("td",null,[c("div",gft,[G(c("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[353]||(e[353]=_=>r.configFile.vllm_max_model_len=_),onChange:e[354]||(e[354]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_max_model_len]])])])]),c("tr",null,[bft,c("td",null,[c("div",Eft,[G(c("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[355]||(e[355]=_=>r.configFile.vllm_model_path=_),onChange:e[356]||(e[356]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.vllm_model_path]])])])])])]),_:1}),Te(o,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",yft,[c("tr",null,[vft,c("td",null,[c("div",Sft,[G(c("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[357]||(e[357]=_=>r.configFile.enable_petals_service=_),onChange:e[358]||(e[358]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.enable_petals_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[359]||(e[359]=_=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network.
|
||
If You are using windows, this will install wsl so you need to activate it.
|
||
<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},xft)])]),c("tr",null,[Cft,c("td",null,[c("div",wft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[360]||(e[360]=(..._)=>r.reinstallPetalsService&&r.reinstallPetalsService(..._))},"install petals service")])])]),c("tr",null,[Rft,c("td",null,[c("div",Aft,[G(c("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[361]||(e[361]=_=>r.configFile.petals_base_url=_),onChange:e[362]||(e[362]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),Te(o,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[Te(o,{title:"Motion Ctrl service",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Nft,[c("tr",null,[Oft,c("td",null,[c("div",Ift,[G(c("input",{type:"checkbox",id:"enable_motion_ctrl_service",required:"","onUpdate:modelValue":e[363]||(e[363]=_=>r.configFile.enable_motion_ctrl_service=_),onChange:e[364]||(e[364]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.enable_motion_ctrl_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[365]||(e[365]=_=>this.$store.state.messageBox.showMessage("Activates Motion ctrl service. The service will be automatically loaded at startup alowing you to use the motoin control endpoint to generate videos"))},Dft)])]),c("tr",null,[kft,c("td",null,[c("div",Lft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[366]||(e[366]=(..._)=>r.reinstallMotionCtrlService&&r.reinstallMotionCtrlService(..._))},"install Motion Ctrl service")])])]),c("tr",null,[Pft,c("td",null,[c("div",Uft,[G(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[367]||(e[367]=_=>r.configFile.sd_base_url=_),onChange:e[368]||(e[368]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.sd_base_url]])])])])])]),_:1}),Te(o,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:We(()=>[c("table",Fft,[c("tr",null,[Bft,c("td",null,[c("div",Gft,[G(c("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[369]||(e[369]=_=>r.configFile.elastic_search_service=_),onChange:e[370]||(e[370]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ze,r.configFile.elastic_search_service]])])])]),c("tr",null,[Vft,c("td",null,[c("div",zft,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[371]||(e[371]=(..._)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(..._))},"install ElasticSearch service")])])]),c("tr",null,[Hft,c("td",null,[c("div",qft,[G(c("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[372]||(e[372]=_=>r.configFile.elastic_search_url=_),onChange:e[373]||(e[373]=_=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[we,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),c("div",Yft,[c("div",$ft,[c("button",{onClick:e[374]||(e[374]=be(_=>s.bzc_collapsed=!s.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[G(c("div",null,Kft,512),[[Mt,s.bzc_collapsed]]),G(c("div",null,Qft,512),[[Mt,!s.bzc_collapsed]]),Xft,r.configFile.binding_name?V("",!0):(w(),A("div",Zft,[Jft,et(" No binding selected! ")])),r.configFile.binding_name?(w(),A("div",emt,"|")):V("",!0),r.configFile.binding_name?(w(),A("div",tmt,[c("div",nmt,[c("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,imt),c("h3",smt,he(r.binding_name),1)])])):V("",!0)])]),c("div",{class:ze([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(w(),A("div",rmt,[c("label",omt," Bindings: ("+he(r.bindingsZoo.length)+") ",1),c("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.bzl_collapsed?"":"max-h-96"])},[Te(os,{name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.bindingsZoo,(_,m)=>(w(),xt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+m+"-"+_.folder,binding:_,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:_.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):V("",!0),s.bzl_collapsed?(w(),A("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[375]||(e[375]=_=>s.bzl_collapsed=!s.bzl_collapsed)},lmt)):(w(),A("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[376]||(e[376]=_=>s.bzl_collapsed=!s.bzl_collapsed)},dmt))],2)]),c("div",umt,[c("div",pmt,[c("button",{onClick:e[377]||(e[377]=be(_=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[G(c("div",null,hmt,512),[[Mt,s.mzc_collapsed]]),G(c("div",null,mmt,512),[[Mt,!s.mzc_collapsed]]),gmt,c("div",bmt,[r.configFile.binding_name?V("",!0):(w(),A("div",Emt,[ymt,et(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(w(),A("div",vmt,[Smt,et(" No model selected! ")])):V("",!0),r.configFile.model_name?(w(),A("div",Tmt,"|")):V("",!0),r.configFile.model_name?(w(),A("div",xmt,[c("div",Cmt,[c("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,wmt),c("h3",Rmt,he(r.configFile.model_name),1)])])):V("",!0)])])]),c("div",{class:ze([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Amt,[c("div",Nmt,[c("div",Omt,[s.searchModelInProgress?(w(),A("div",Imt,Dmt)):V("",!0),s.searchModelInProgress?V("",!0):(w(),A("div",kmt,Pmt))]),G(c("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[378]||(e[378]=_=>s.searchModel=_),onKeyup:e[379]||(e[379]=Hs((..._)=>r.searchModel_func&&r.searchModel_func(..._),["enter"]))},null,544),[[we,s.searchModel]]),s.searchModel?(w(),A("button",{key:0,onClick:e[380]||(e[380]=be(_=>s.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")):V("",!0)])]),c("div",null,[G(c("input",{"onUpdate:modelValue":e[381]||(e[381]=_=>s.show_only_installed_models=_),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[Ze,s.show_only_installed_models]]),Umt]),c("div",null,[Te(l,{radioOptions:s.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Fmt,s.is_loading_zoo?(w(),A("div",Bmt,zmt)):V("",!0),s.models_zoo&&s.models_zoo.length>0?(w(),A("div",Hmt,[c("label",qmt," Models: ("+he(s.models_zoo.length)+") ",1),c("div",{class:ze(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full dark:bg-bg-dark 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",s.mzl_collapsed?"":"max-h-96"])},[Te(os,{name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.rendered_models_zoo,(_,m)=>(w(),xt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+_.name,model:_,"is-installed":_.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:_.name===r.configFile.model_name,model_type:_.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),c("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[382]||(e[382]=(..._)=>r.load_more_models&&r.load_more_models(..._))},"Load more models",512)]),_:1})],2)])):V("",!0),s.mzl_collapsed?(w(),A("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[383]||(e[383]=(..._)=>r.open_mzl&&r.open_mzl(..._))},$mt)):(w(),A("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[384]||(e[384]=(..._)=>r.open_mzl&&r.open_mzl(..._))},Kmt)),c("div",jmt,[c("div",Qmt,[c("div",null,[c("div",Xmt,[Zmt,G(c("input",{type:"text","onUpdate:modelValue":e[385]||(e[385]=_=>s.reference_path=_),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 Path ...",required:""},null,512),[[we,s.reference_path]])]),c("button",{type:"button",onClick:e[386]||(e[386]=be(_=>r.onCreateReference(),["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"},"Add reference")]),s.modelDownlaodInProgress?V("",!0):(w(),A("div",Jmt,[c("div",egt,[tgt,G(c("input",{type:"text","onUpdate:modelValue":e[387]||(e[387]=_=>s.addModel.url=_),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),[[we,s.addModel.url]])]),c("button",{type:"button",onClick:e[388]||(e[388]=be(_=>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")])),s.modelDownlaodInProgress?(w(),A("div",ngt,[igt,c("div",sgt,[c("div",rgt,[c("div",ogt,[agt,c("span",lgt,he(Math.floor(s.addModel.progress))+"%",1)]),c("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},he(s.addModel.url),9,cgt),c("div",dgt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:en({width:s.addModel.progress+"%"})},null,4)]),c("div",ugt,[c("span",pgt,"Download speed: "+he(r.speed_computed)+"/s",1),c("span",_gt,he(r.downloaded_size_computed)+"/"+he(r.total_size_computed),1)])])]),c("div",hgt,[c("div",fgt,[c("div",mgt,[c("button",{onClick:e[389]||(e[389]=be((..._)=>r.onCancelInstall&&r.onCancelInstall(..._),["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 ")])])])])):V("",!0)])])],2)]),c("div",ggt,[c("div",bgt,[c("button",{onClick:e[392]||(e[392]=be(_=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[G(c("div",null,ygt,512),[[Mt,s.pzc_collapsed]]),G(c("div",null,Sgt,512),[[Mt,!s.pzc_collapsed]]),Tgt,r.configFile.personalities?(w(),A("div",xgt,"|")):V("",!0),c("div",Cgt,he(r.active_pesonality),1),r.configFile.personalities?(w(),A("div",wgt,"|")):V("",!0),r.configFile.personalities?(w(),A("div",Rgt,[r.mountedPersArr.length>0?(w(),A("div",Agt,[(w(!0),A(Ye,null,lt(r.mountedPersArr,(_,m)=>(w(),A("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:m+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[c("div",Ngt,[c("button",{onClick:be(E=>r.onPersonalitySelected(_),["stop"])},[c("img",{src:s.bUrl+_.avatar,onError:e[390]||(e[390]=(...E)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...E)),class:ze(["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(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,Igt)],8,Ogt),c("button",{onClick:be(E=>r.unmountPersonality(_),["stop"])},kgt,8,Mgt)])]))),128))])):V("",!0)])):V("",!0),c("button",{onClick:e[391]||(e[391]=be(_=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},Pgt)])]),c("div",{class:ze([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Ugt,[Fgt,c("div",Bgt,[c("div",Ggt,[s.searchPersonalityInProgress?(w(),A("div",Vgt,Hgt)):V("",!0),s.searchPersonalityInProgress?V("",!0):(w(),A("div",qgt,$gt))]),G(c("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[393]||(e[393]=_=>s.searchPersonality=_),onKeyup:e[394]||(e[394]=be((..._)=>r.searchPersonality_func&&r.searchPersonality_func(..._),["stop"]))},null,544),[[we,s.searchPersonality]]),s.searchPersonality?(w(),A("button",{key:0,onClick:e[395]||(e[395]=be(_=>s.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")):V("",!0)])]),s.searchPersonality?V("",!0):(w(),A("div",Wgt,[c("label",Kgt," Personalities Category: ("+he(s.persCatgArr.length)+") ",1),c("select",{id:"persCat",onChange:e[396]||(e[396]=_=>r.update_personality_category(_.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"},[(w(!0),A(Ye,null,lt(s.persCatgArr,(_,m)=>(w(),A("option",{key:m,selected:_==this.configFile.personality_category},he(_),9,jgt))),128))],32)])),c("div",null,[s.personalitiesFiltered.length>0?(w(),A("div",Qgt,[c("label",Xgt,he(s.searchPersonality?"Search results":"Personalities")+": ("+he(s.personalitiesFiltered.length)+") ",1),c("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.pzl_collapsed?"":"max-h-96"])},[Te(os,{name:"bounce"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.personalitiesFiltered,(_,m)=>(w(),xt(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+m+"-"+_.name,personality:_,select_language:!0,full_path:_.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(E=>E===_.full_path||E===_.full_path+":"+_.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})],2)])):V("",!0)]),s.pzl_collapsed?(w(),A("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[397]||(e[397]=_=>s.pzl_collapsed=!s.pzl_collapsed)},Jgt)):(w(),A("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[398]||(e[398]=_=>s.pzl_collapsed=!s.pzl_collapsed)},tbt))],2)]),c("div",nbt,[c("div",ibt,[c("button",{onClick:e[399]||(e[399]=be(_=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[G(c("div",null,rbt,512),[[Mt,s.mc_collapsed]]),G(c("div",null,abt,512),[[Mt,!s.mc_collapsed]]),lbt])]),c("div",{class:ze([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[c("div",cbt,[c("div",dbt,[G(c("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[400]||(e[400]=be(()=>{},["stop"])),"onUpdate:modelValue":e[401]||(e[401]=_=>r.configFile.override_personality_model_parameters=_),onChange:e[402]||(e[402]=_=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[Ze,r.configFile.override_personality_model_parameters]]),ubt])]),c("div",{class:ze(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[c("div",pbt,[_bt,G(c("input",{type:"text",id:"seed","onUpdate:modelValue":e[403]||(e[403]=_=>r.configFile.seed=_),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),[[we,r.configFile.seed]])]),c("div",hbt,[c("div",fbt,[c("div",mbt,[gbt,c("p",bbt,[G(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[404]||(e[404]=_=>r.configFile.temperature=_),onChange:e[405]||(e[405]=_=>s.settingsChanged=!0),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,544),[[we,r.configFile.temperature]])])]),G(c("input",{id:"temperature",onChange:e[406]||(e[406]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[407]||(e[407]=_=>r.configFile.temperature=_),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),[[we,r.configFile.temperature]])])]),c("div",Ebt,[c("div",ybt,[c("div",vbt,[Sbt,c("p",Tbt,[G(c("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[408]||(e[408]=_=>r.configFile.n_predict=_),onChange:e[409]||(e[409]=_=>s.settingsChanged=!0),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,544),[[we,r.configFile.n_predict]])])]),G(c("input",{id:"predict",type:"range",onChange:e[410]||(e[410]=_=>s.settingsChanged=!0),"onUpdate:modelValue":e[411]||(e[411]=_=>r.configFile.n_predict=_),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),[[we,r.configFile.n_predict]])])]),c("div",xbt,[c("div",Cbt,[c("div",wbt,[Rbt,c("p",Abt,[G(c("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[412]||(e[412]=_=>r.configFile.top_k=_),onChange:e[413]||(e[413]=_=>s.settingsChanged=!0),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,544),[[we,r.configFile.top_k]])])]),G(c("input",{id:"top_k",type:"range",onChange:e[414]||(e[414]=_=>s.settingsChanged=!0),"onUpdate:modelValue":e[415]||(e[415]=_=>r.configFile.top_k=_),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),[[we,r.configFile.top_k]])])]),c("div",Nbt,[c("div",Obt,[c("div",Ibt,[Mbt,c("p",Dbt,[G(c("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[416]||(e[416]=_=>r.configFile.top_p=_),onChange:e[417]||(e[417]=_=>s.settingsChanged=!0),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,544),[[we,r.configFile.top_p]])])]),G(c("input",{id:"top_p",type:"range","onUpdate:modelValue":e[418]||(e[418]=_=>r.configFile.top_p=_),min:"0",max:"1",step:"0.01",onChange:e[419]||(e[419]=_=>s.settingsChanged=!0),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),[[we,r.configFile.top_p]])])]),c("div",kbt,[c("div",Lbt,[c("div",Pbt,[Ubt,c("p",Fbt,[G(c("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[420]||(e[420]=_=>r.configFile.repeat_penalty=_),onChange:e[421]||(e[421]=_=>s.settingsChanged=!0),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,544),[[we,r.configFile.repeat_penalty]])])]),G(c("input",{id:"repeat_penalty",onChange:e[422]||(e[422]=_=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[423]||(e[423]=_=>r.configFile.repeat_penalty=_),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),[[we,r.configFile.repeat_penalty]])])]),c("div",Bbt,[c("div",Gbt,[c("div",Vbt,[zbt,c("p",Hbt,[G(c("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[424]||(e[424]=_=>r.configFile.repeat_last_n=_),onChange:e[425]||(e[425]=_=>s.settingsChanged=!0),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,544),[[we,r.configFile.repeat_last_n]])])]),G(c("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[426]||(e[426]=_=>r.configFile.repeat_last_n=_),min:"0",max:"100",step:"1",onChange:e[427]||(e[427]=_=>s.settingsChanged=!0),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),[[we,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),Te(h,{ref:"addmodeldialog"},null,512),Te(f,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Ybt=bt(Yrt,[["render",qbt],["__scopeId","data-v-39a73106"]]),$bt={components:{ClipBoardTextInput:xE,Card:rp},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};Se.post("/start_training",t).then(e=>{})},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)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},Wbt={key:0,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"},Kbt={class:"mb-4"},jbt=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Qbt=["value"],Xbt={class:"mb-4"},Zbt=c("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Jbt={class:"mb-4"},eEt=c("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),tEt={class:"mb-4"},nEt=c("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),iEt={class:"mb-4"},sEt=c("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),rEt={class:"mb-4"},oEt=c("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),aEt={class:"mb-4"},lEt=c("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),cEt=c("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),dEt={key:1};function uEt(t,e,n,i,s,r){const o=mt("Card"),a=mt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(w(),A("div",Wbt,[c("form",{onSubmit:e[2]||(e[2]=be((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:""},[Te(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[Te(o,{title:"Model",class:"",isHorizontal:!1},{default:We(()=>[c("div",Kbt,[jbt,G(c("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>t.setModel&&t.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(w(!0),A(Ye,null,lt(r.models,l=>(w(),A("option",{key:l,value:l},he(l),9,Qbt))),128))],544),[[jt,r.selectedModel]])])]),_:1}),Te(o,{title:"Data",isHorizontal:!1},{default:We(()=>[c("div",Xbt,[Zbt,Te(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),Te(o,{title:"Training",isHorizontal:!1},{default:We(()=>[c("div",Jbt,[eEt,Te(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),c("div",tEt,[nEt,Te(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),c("div",iEt,[sEt,Te(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),c("div",rEt,[oEt,Te(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),Te(o,{title:"Output",isHorizontal:!1},{default:We(()=>[c("div",aEt,[lEt,Te(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),Te(o,{disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[cEt]),_:1})],32)])):(w(),A("div",dEt,[Te(o,{title:"Info",class:"",isHorizontal:!1},{default:We(()=>[et(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const pEt=bt($bt,[["render",uEt]]),_Et={components:{ClipBoardTextInput:xE,Card:rp},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)}}},hEt={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"},fEt={class:"mb-4"},mEt=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),gEt={class:"mb-4"},bEt=c("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),EEt=c("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function yEt(t,e,n,i,s,r){const o=mt("ClipBoardTextInput"),a=mt("Card");return w(),A("div",hEt,[c("form",{onSubmit:e[0]||(e[0]=be((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[Te(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[Te(a,{title:"Model",class:"",isHorizontal:!1},{default:We(()=>[c("div",fEt,[mEt,Te(o,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),c("div",gEt,[bEt,Te(o,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),Te(a,{disableHoverAnimation:!0,disableFocus:!0},{default:We(()=>[EEt]),_:1})],32)])}const vEt=bt(_Et,[["render",yEt]]),SEt={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,Ge(()=>{He.replace()})},watch:{showConfirmation(){Ge(()=>{He.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&Ge(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&Ge(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},TEt=["id"],xEt={class:"flex flex-row items-center gap-2"},CEt={key:0},wEt={class:"flex flex-row items-center w-full"},REt=["title"],AEt=["value"],NEt={class:"flex items-center flex-1 max-h-6"},OEt={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},IEt=c("i",{"data-feather":"x"},null,-1),MEt=[IEt],DEt=c("i",{"data-feather":"check"},null,-1),kEt=[DEt],LEt={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},PEt=c("i",{"data-feather":"folder"},null,-1),UEt=[PEt],FEt=c("i",{"data-feather":"type"},null,-1),BEt=[FEt],GEt=c("i",{"data-feather":"edit-2"},null,-1),VEt=[GEt],zEt=c("i",{"data-feather":"trash"},null,-1),HEt=[zEt];function qEt(t,e,n,i,s,r){return w(),A("div",{class:ze([n.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md min-w-[23rem] max-w-[23rem]":" min-w-[23rem] max-w-[23rem]","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]=be(o=>r.selectEvent(),["stop"]))},[c("div",xEt,[n.isCheckbox?(w(),A("div",CEt,[G(c("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]=be(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>s.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,n.id))},null,544),[[Ze,s.checkBoxValue_local]])])):V("",!0),n.selected?(w(),A("div",{key:1,class:ze(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):V("",!0),n.selected?V("",!0):(w(),A("div",{key:2,class:ze(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),c("div",wEt,[s.editTitle?V("",!0):(w(),A("p",{key:0,title:n.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},he(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,REt)),s.editTitle?(w(),A("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]=Hs(be(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Hs(be(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=be(()=>{},["stop"]))},null,40,AEt)):V("",!0),c("div",NEt,[s.showConfirmation?(w(),A("div",OEt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=be(o=>r.cancel(),["stop"]))},MEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=be(o=>s.editTitleMode?r.editTitleEvent():s.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},kEt)])):V("",!0),s.showConfirmation?V("",!0):(w(),A("div",LEt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=be(o=>r.openFolderEvent(),["stop"]))},UEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=be(o=>s.makeTitleMode=!0,["stop"]))},BEt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=be(o=>s.editTitleMode=!0,["stop"]))},VEt),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=be(o=>s.deleteMode=!0,["stop"]))},HEt)]))])])],10,TEt)}const RE=bt(SEt,[["render",qEt]]),YEt={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(t){this.prompt=t}}},$Et={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},WEt={class:"bg-white p-8 rounded"},KEt={class:"text-xl font-bold mb-4"};function jEt(t,e,n,i,s,r){return w(),A("div",null,[s.show?(w(),A("div",$Et,[c("div",WEt,[c("h2",KEt,he(n.promptText),1),G(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[we,s.inputText]]),c("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),c("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):V("",!0)])}const gO=bt(YEt,[["render",jEt]]),QEt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:RE,MarkdownRenderer:ip},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){Se.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(t=>{this.categories=t.data.categories}).catch(t=>{console.error("Error fetching categories:",t)})},fetchTitles(){console.log("Fetching categories"),Se.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(t=>{this.titles=t.data.titles,console.log("titles recovered")}).catch(t=>{console.error("Error fetching titles:",t)})},fetchContent(t){Se.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:t}).then(e=>{const n=e.data.contents[0];this.id=n.id,this.content=n.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(t){console.log("Delete category")},editCategory(t){console.log("Edit category")},checkUncheckCategory(t){console.log("Unchecked category")},deleteSkill(t){console.log("Delete skill ",t),Se.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:t}).then(()=>{this.fetchTitles()})},editTitle(t){Se.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:t,title:t}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(t){console.log("Make title")},checkUncheckTitle(t){},searchSkills(){}}},XEt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},ZEt={class:"min-w-[23rem] max-w-[23rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},JEt={class:"search p-4"},eyt={classclass:"absolute flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},tyt=c("h2",{class:"text-xl font-bold m-4"},"Titles",-1),nyt={class:"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"},iyt=c("h2",{class:"text-xl font-bold m-4"},"Content",-1);function syt(t,e,n,i,s,r){const o=mt("Discussion"),a=mt("MarkdownRenderer");return w(),A("div",{class:ze([{hidden:!s.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[c("div",XEt,[c("div",ZEt,[c("div",JEt,[G(c("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=l=>s.searchQuery=l),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[we,s.searchQuery]]),c("button",{onClick:e[1]||(e[1]=(...l)=>r.searchSkills&&r.searchSkills(...l)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),c("div",eyt,[tyt,s.titles.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(s.titles,l=>(w(),xt(o,{key:l.id,id:l.id,title:l.title,selected:r.fetchContent(l.id),loading:s.loading,isCheckbox:s.isCheckbox,checkBoxValue:!1,onSelect:u=>r.fetchContent(l.id),onDelete:u=>r.deleteSkill(l.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):V("",!0)])]),c("div",nyt,[iyt,Te(a,{host:n.host,"markdown-text":s.content,message_id:s.id,discussion_id:s.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),c("button",{onClick:e[2]||(e[2]=(...l)=>r.closeComponent&&r.closeComponent(...l)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const bO=bt(QEt,[["render",syt]]),ryt={props:{htmlContent:{type:String,required:!0}}},oyt=["innerHTML"];function ayt(t,e,n,i,s,r){return w(),A("div",{class:"w-full h-full 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",innerHTML:n.htmlContent},null,8,oyt)}const lyt=bt(ryt,[["render",ayt]]);const cyt={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"<br>"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"<br>")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},dyt={key:0},uyt={class:"toggle-icon mr-1"},pyt={key:0,class:"fas fa-plus-circle text-gray-600"},_yt={key:1,class:"fas fa-minus-circle text-gray-600"},hyt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},fyt={key:0,class:"fas fa-plus-circle text-gray-600"},myt={key:1,class:"fas fa-minus-circle text-gray-600"},gyt=["innerHTML"];function byt(t,e,n,i,s,r){return r.isContentPresent?(w(),A("div",dyt,[c("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>r.toggleCollapsible&&r.toggleCollapsible(...o))},[c("span",uyt,[s.collapsed?(w(),A("i",pyt)):(w(),A("i",_yt))]),et(" "+he(n.jsonFormText),1)]),G(c("div",null,[c("div",hyt,[r.isObject?(w(),A("span",{key:0,onClick:e[1]||(e[1]=(...o)=>r.toggleCollapsed&&r.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[s.collapsed?(w(),A("i",fyt)):(w(),A("i",myt))])):V("",!0),c("pre",{innerHTML:r.formattedJson},null,8,gyt)])],512),[[Mt,!s.collapsed]])])):V("",!0)}const Eyt=bt(cyt,[["render",byt]]),yyt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0},step_type:{type:String,required:!1,default:"start_end"}}},vyt={class:"flex items-start"},Syt={class:"step flex items-center mb-4"},Tyt={key:0,class:"flex items-center justify-center w-6 h-6 mr-2"},xyt={key:0},Cyt=c("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),wyt=[Cyt],Ryt={key:1},Ayt=c("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),Nyt=[Ayt],Oyt={key:2},Iyt=c("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Myt=[Iyt],Dyt={key:1,role:"status",class:"m-15"},kyt=c("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"},[c("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"}),c("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),Lyt=[kyt],Pyt={class:"text-sm ml-6"};function Uyt(t,e,n,i,s,r){return w(),A("div",vyt,[c("div",Syt,[n.step_type=="start_end"?(w(),A("div",Tyt,[n.done?V("",!0):(w(),A("div",xyt,wyt)),n.done&&n.status?(w(),A("div",Ryt,Nyt)):V("",!0),n.done&&!n.status?(w(),A("div",Oyt,Myt)):V("",!0)])):V("",!0),n.done?V("",!0):(w(),A("div",Dyt,Lyt)),c("h3",Pyt,he(n.message),1)])])}const Fyt=bt(yyt,[["render",Uyt]]),Byt="/assets/process-61f7a21b.svg",Gyt="/assets/ok-a0b56451.svg",Vyt="/assets/failed-183609e7.svg",EO="/assets/send_globe-305330b9.svg";const zyt="/",Hyt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:ip,Step:Fyt,RenderHTMLJS:lyt,JsonViewer:Eyt,DynamicUIRenderer:mO},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{isSynthesizingVoice:!1,cpp_block:dO,html5_block:uO,LaTeX_block:pO,json_block:cO,javascript_block:lO,process_svg:Byt,ok_svg:Gyt,failed_svg:Vyt,loading_svg:hO,sendGlobe:EO,code_block:oO,python_block:aO,bash_block:_O,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Ge(()=>{He.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let t of this.message.metadata)Object.prototype.hasOwnProperty.call(t,"audio_url")&&t.audio_url!=null&&(this.audio_url=t.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{computeTimeDiff(t,e){let n=e.getTime()-t.getTime();const i=Math.floor(n/(1e3*60*60));n-=i*(1e3*60*60);const s=Math.floor(n/(1e3*60));n-=s*(1e3*60);const r=Math.floor(n/1e3);return n-=r*1e3,[i,s,r]},insertTab(t){const e=t.target,n=e.selectionStart,i=e.selectionEnd,s=t.shiftKey;if(n===i)if(s){if(e.value.substring(n-4,n)==" "){const r=e.value.substring(0,n-4),o=e.value.substring(i),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n-4})}}else{const r=e.value.substring(0,n),o=e.value.substring(i),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4})}else{const o=e.value.substring(n,i).split(`
|
||
`).map(d=>d.trim()===""?d:s?d.startsWith(" ")?d.substring(4):d:" "+d),a=e.value.substring(0,n),l=e.value.substring(i),u=a+o.join(`
|
||
`)+l;this.message.content=u,this.$nextTick(()=>{e.selectionStart=n,e.selectionEnd=i+o.length*4})}t.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.isSynthesizingVoice=!1,this.$refs.audio_player.pause()):(this.isSynthesizingVoice=!0,Se.post("./text2wav",{text:this.message.content}).then(t=>{this.isSynthesizingVoice=!1;let e=t.data.url;console.log(e),this.audio_url=e,this.message.metadata||(this.message.metadata=[]);let n=!1;for(let i of this.message.metadata)Object.prototype.hasOwnProperty.call(i,"audio_url")&&(i.audio_url=this.audio_url,n=!0);n||this.message.metadata.push({audio_url:this.audio_url}),this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url)}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSynthesizingVoice=!1}))},speak(){if(this.$store.state.config.active_tts_service!="browser"&&this.$store.state.config.active_tts_service!="None")this.isSpeaking=!0,Se.post("./text2Audio",{text:this.message.content}).then(t=>{this.isSpeaking=!1}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSpeaking=!1});else{if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.message.content,this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const n=s=>{let r=this.message.content.substring(s,s+e);const o=[".","!","?",`
|
||
`];let a=-1;return o.forEach(l=>{const u=r.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{if(this.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const s=n(t),r=this.message.content.substring(t,s);this.msg.text=r,t=s+1,this.msg.onend=o=>{t<this.message.content.length-2?setTimeout(()=>{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",s))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{i()},1)};console.log("Speaking chunk"),i()}},toggleModel(){this.expanded=!this.expanded},addBlock(t){let e=this.$refs.mdTextarea.selectionStart,n=this.$refs.mdTextarea.selectionEnd;e==n?speechSynthesis==0||this.message.content[e-1]==`
|
||
`?(this.message.content=this.message.content.slice(0,e)+"```"+t+"\n\n```\n"+this.message.content.slice(e),e=e+4+t.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+t+"\n\n```\n"+this.message.content.slice(e),e=e+3+t.length):speechSynthesis==0||this.message.content[e-1]==`
|
||
`?(this.message.content=this.message.content.slice(0,e)+"```"+t+`
|
||
`+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),e=e+4+t.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+t+`
|
||
`+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),p=p+3+t.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},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.message.content,this.audio_url),this.editMsgMode=!1},resendMessage(t){this.$emit("resendMessage",this.message.id,this.message.content,t)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?zyt+this.avatar:(console.log("No avatar found"),Ti)},defaultImg(t){t.target.src=Ti},parseDate(t){let e=new Date(Date.parse(t)),i=Math.floor((new Date-e)/1e3);return i<=1?"just now":i<20?i+" seconds ago":i<40?"half a minute ago":i<60?"less than a minute ago":i<=90?"one minute ago":i<=3540?Math.round(i/60)+" minutes ago":i<=5400?"1 hour ago":i<=86400?Math.round(i/3600)+" hours ago":i<=129600?"1 day ago":i<604800?Math.round(i/86400)+" days ago":i<=777600?"1 week ago":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,i=Math.floor(n/86400);if(!(isNaN(i)||i<0||i>=31))return i==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")||i==1&&"Yesterday"||i<7&&i+" days ago"||i<31&&Math.ceil(i/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(t){t&&(this.$refs.audio_player.src=t)},"message.content":function(t){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(t){console.log("ui changed")},showConfirmation(){Ge(()=>{He.replace()})},deleteMsgMode(){Ge(()=>{He.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(t){this.message.open=t,this.editMsgMode_=t,Ge(()=>{He.replace()})}},isTalking:{get(){return this.isSpeaking}},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.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!t.getTime()||!e.getTime())return;let[i,s,r]=this.computeTimeDiff(t,e);function o(l){return l<10&&(l="0"+l),l}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},warmup_duration(){const t=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",t," -> ",e),e.getTime()===t.getTime())return 0;if(!t.getTime()||!e.getTime())return;let i,s,r;[i,s,r]=this.computeTimeDiff(t,e);function o(l){return l<10&&(l="0"+l),l}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},generation_rate(){const t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),n=this.message.nb_tokens;if(e.getTime()===t.getTime()||!n||!t.getTime()||!e.getTime())return;let s=e.getTime()-t.getTime();const r=Math.floor(s/1e3),o=n/r;return Math.round(o)+" t/s"}}},qyt={class:"relative w-full 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"},Yyt={class:"flex flex-row gap-2"},$yt={class:"flex-shrink-0"},Wyt={class:"group/avatar"},Kyt=["src","data-popover-target"],jyt={class:"flex flex-col w-full flex-grow-0"},Qyt={class:"flex flex-row flex-grow items-start"},Xyt={class:"flex flex-col mb-2"},Zyt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Jyt=["title"],evt=c("div",{class:"flex-grow"},null,-1),tvt={class:"flex-row justify-end mx-2"},nvt={class:"invisible group-hover:visible flex flex-row"},ivt={key:0,class:"flex items-center duration-75"},svt=c("i",{"data-feather":"x"},null,-1),rvt=[svt],ovt=c("i",{"data-feather":"check"},null,-1),avt=[ovt],lvt=c("i",{"data-feather":"edit"},null,-1),cvt=[lvt],dvt=["src"],uvt=["src"],pvt=["src"],_vt=["src"],hvt=["src"],fvt=["src"],mvt=["src"],gvt=["src"],bvt=c("i",{"data-feather":"copy"},null,-1),Evt=[bvt],yvt=c("i",{"data-feather":"send"},null,-1),vvt=[yvt],Svt=["src"],Tvt=c("i",{"data-feather":"send"},null,-1),xvt=[Tvt],Cvt=c("i",{"data-feather":"fast-forward"},null,-1),wvt=[Cvt],Rvt={key:14,class:"flex items-center duration-75"},Avt=c("i",{"data-feather":"x"},null,-1),Nvt=[Avt],Ovt=c("i",{"data-feather":"check"},null,-1),Ivt=[Ovt],Mvt=c("i",{"data-feather":"trash"},null,-1),Dvt=[Mvt],kvt=c("i",{"data-feather":"thumbs-up"},null,-1),Lvt=[kvt],Pvt={class:"flex flex-row items-center"},Uvt=c("i",{"data-feather":"thumbs-down"},null,-1),Fvt=[Uvt],Bvt={class:"flex flex-row items-center"},Gvt=c("i",{"data-feather":"volume-2"},null,-1),Vvt=[Gvt],zvt={key:16,class:"flex flex-row items-center"},Hvt=c("i",{"data-feather":"voicemail"},null,-1),qvt=[Hvt],Yvt=["src"],$vt={class:"overflow-x-auto w-full 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"},Wvt={class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full"},Kvt={class:"grid min-w-72 select-none grid-cols-[40px,1fr] items-center gap-2.5 p-2"},jvt={class:"relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-300 dark:bg-gray-200"},Qvt=["src"],Xvt=["src"],Zvt=["src"],Jvt={class:"leading-4"},eSt=c("dd",{class:"text-sm"},"Processing infos",-1),tSt={class:"flex items-center gap-1 truncate whitespace-nowrap text-[.82rem] text-gray-400"},nSt={class:"content px-5 pb-5 pt-4"},iSt={class:"list-none"},sSt=c("div",{class:"flex flex-col items-start w-full"},null,-1),rSt={class:"flex flex-col items-start w-full 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"},oSt={key:1},aSt=["src"],lSt={class:"text-sm text-gray-400 mt-2"},cSt={class:"flex flex-row items-center gap-2"},dSt={key:0},uSt={class:"font-thin"},pSt={key:1},_St={class:"font-thin"},hSt={key:2},fSt={class:"font-thin"},mSt={key:3},gSt=["title"],bSt={key:4},ESt=["title"],ySt={key:5},vSt=["title"],SSt={key:6},TSt=["title"];function xSt(t,e,n,i,s,r){var h;const o=mt("Step"),a=mt("RenderHTMLJS"),l=mt("MarkdownRenderer"),u=mt("JsonViewer"),d=mt("DynamicUIRenderer");return w(),A("div",qyt,[c("div",Yyt,[c("div",$yt,[c("div",Wyt,[c("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=f=>r.defaultImg(f)),"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,Kyt)])]),c("div",jyt,[c("div",Qyt,[c("div",Xyt,[c("div",Zyt,he(n.message.sender)+" ",1),n.message.created_at?(w(),A("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},he(r.created_at),9,Jyt)):V("",!0)]),evt,c("div",tvt,[c("div",nvt,[r.editMsgMode?(w(),A("div",ivt,[c("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]=be(f=>r.editMsgMode=!1,["stop"]))},rvt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=be((...f)=>r.updateMessage&&r.updateMessage(...f),["stop"]))},avt)])):V("",!0),r.editMsgMode?V("",!0):(w(),A("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Edit message",onClick:e[3]||(e[3]=be(f=>r.editMsgMode=!0,["stop"]))},cvt)),r.editMsgMode?(w(),A("div",{key:2,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[4]||(e[4]=be(f=>r.addBlock(""),["stop"]))},[c("img",{src:s.code_block,width:"25",height:"25"},null,8,dvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[5]||(e[5]=be(f=>r.addBlock("python"),["stop"]))},[c("img",{src:s.python_block,width:"25",height:"25"},null,8,uvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:4,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add javascript block",onClick:e[6]||(e[6]=be(f=>r.addBlock("javascript"),["stop"]))},[c("img",{src:s.javascript_block,width:"25",height:"25"},null,8,pvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:5,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add json block",onClick:e[7]||(e[7]=be(f=>r.addBlock("json"),["stop"]))},[c("img",{src:s.json_block,width:"25",height:"25"},null,8,_vt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:6,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add c++ block",onClick:e[8]||(e[8]=be(f=>r.addBlock("c++"),["stop"]))},[c("img",{src:s.cpp_block,width:"25",height:"25"},null,8,hvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:7,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add html block",onClick:e[9]||(e[9]=be(f=>r.addBlock("html"),["stop"]))},[c("img",{src:s.html5_block,width:"25",height:"25"},null,8,fvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:8,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add LaTex block",onClick:e[10]||(e[10]=be(f=>r.addBlock("latex"),["stop"]))},[c("img",{src:s.LaTeX_block,width:"25",height:"25"},null,8,mvt)])):V("",!0),r.editMsgMode?(w(),A("div",{key:9,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add bash block",onClick:e[11]||(e[11]=be(f=>r.addBlock("bash"),["stop"]))},[c("img",{src:s.bash_block,width:"25",height:"25"},null,8,gvt)])):V("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Copy message to clipboard",onClick:e[12]||(e[12]=be(f=>r.copyContentToClipboard(),["stop"]))},Evt),!r.editMsgMode&&n.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:10,class:ze(["text-lg text-red-500 hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message with full context",onClick:e[13]||(e[13]=be(f=>r.resendMessage("full_context"),["stop"]))},vvt,2)):V("",!0),!r.editMsgMode&&n.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:11,class:ze(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[14]||(e[14]=be(f=>r.resendMessage("full_context_with_internet"),["stop"]))},[c("img",{src:s.sendGlobe,width:"25",height:"25"},null,8,Svt)],2)):V("",!0),!r.editMsgMode&&n.message.sender!=this.$store.state.mountedPers.name?(w(),A("div",{key:12,class:ze(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[15]||(e[15]=be(f=>r.resendMessage("simple_question"),["stop"]))},xvt,2)):V("",!0),!r.editMsgMode&&n.message.sender==this.$store.state.mountedPers.name?(w(),A("div",{key:13,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Resend message",onClick:e[16]||(e[16]=be(f=>r.continueMessage(),["stop"]))},wvt)):V("",!0),s.deleteMsgMode?(w(),A("div",Rvt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[17]||(e[17]=be(f=>s.deleteMsgMode=!1,["stop"]))},Nvt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[18]||(e[18]=be(f=>r.deleteMsg(),["stop"]))},Ivt)])):V("",!0),!r.editMsgMode&&!s.deleteMsgMode?(w(),A("div",{key:15,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[19]||(e[19]=f=>s.deleteMsgMode=!0)},Dvt)):V("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[20]||(e[20]=be(f=>r.rankUp(),["stop"]))},Lvt),c("div",Pvt,[c("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[21]||(e[21]=be(f=>r.rankDown(),["stop"]))},Fvt),n.message.rank!=0?(w(),A("div",{key:0,class:ze(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},he(n.message.rank),3)):V("",!0)]),c("div",Bvt,[this.$store.state.config.active_tts_service!="None"?(w(),A("div",{key:0,class:ze(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[22]||(e[22]=be(f=>r.speak(),["stop"]))},Vvt,2)):V("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(w(),A("div",zvt,[s.isSynthesizingVoice?(w(),A("img",{key:1,src:s.loading_svg},null,8,Yvt)):(w(),A("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[23]||(e[23]=be(f=>r.read(),["stop"]))},qvt))])):V("",!0)])])]),c("div",$vt,[G(c("details",Wvt,[c("summary",Kvt,[c("div",jvt,[n.message.status_message!="Done"&n.message.status_message!="Generation canceled"?(w(),A("img",{key:0,src:s.loading_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,Qvt)):V("",!0),n.message.status_message=="Generation canceled"?(w(),A("img",{key:1,src:s.failed_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,Xvt)):V("",!0),n.message.status_message=="Done"?(w(),A("img",{key:2,src:s.ok_svg,class:"w-50 h-50 absolute m-2 w-6 inset-0 text-geen-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,Zvt)):V("",!0)]),c("dl",Jvt,[eSt,c("dt",tSt,he(n.message==null?"":n.message.status_message),1)])]),c("div",nSt,[c("ol",iSt,[(w(!0),A(Ye,null,lt(n.message.steps,(f,_)=>(w(),A("div",{key:"step-"+n.message.id+"-"+_,class:"group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800",style:en({backgroundColor:f.done?"transparent":"inherit"})},[Te(o,{done:f.done,message:f.message,status:f.status,step_type:f.type},null,8,["done","message","status","step_type"])],4))),128))])])],512),[[Mt,n.message!=null&&n.message.steps!=null&&n.message.steps.length>0]]),sSt,c("div",rSt,[(w(!0),A(Ye,null,lt(n.message.html_js_s,(f,_)=>(w(),A("div",{key:"htmljs-"+n.message.id+"-"+_,class:"htmljs font-bold",style:en({backgroundColor:t.step.done?"transparent":"inherit"})},[Te(a,{htmlContent:f},null,8,["htmlContent"])],4))),128))]),r.editMsgMode?V("",!0):(w(),xt(l,{key:0,ref:"mdRender",host:n.host,"markdown-text":n.message.content,message_id:n.message.id,discussion_id:n.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),c("div",null,[n.message.open?G((w(),A("textarea",{key:0,ref:"mdTextarea",onKeydown:e[24]||(e[24]=Hs(be((...f)=>r.insertTab&&r.insertTab(...f),["prevent"]),["tab"])),class:"block min-h-[900px] p-2.5 w-full 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 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark 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",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[25]||(e[25]=f=>n.message.content=f)},`\r
|
||
`,544)),[[we,n.message.content]]):V("",!0)]),n.message.metadata!==null?(w(),A("div",oSt,[(w(!0),A(Ye,null,lt(((h=n.message.metadata)==null?void 0:h.filter(f=>f!=null&&f.hasOwnProperty("title")&&f.hasOwnProperty("content")))||[],(f,_)=>(w(),A("div",{key:"json-"+n.message.id+"-"+_,class:"json font-bold"},[Te(u,{jsonFormText:f.title,jsonData:f.content},null,8,["jsonFormText","jsonData"])]))),128))])):V("",!0),Te(d,{class:"w-full",code:n.message.ui},null,8,["code"]),s.audio_url!=null?(w(),A("audio",{controls:"",key:s.audio_url},[c("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,aSt),et(" Your browser does not support the audio element. ")])):V("",!0)]),c("div",lSt,[c("div",cSt,[n.message.binding?(w(),A("p",dSt,[et("Binding: "),c("span",uSt,he(n.message.binding),1)])):V("",!0),n.message.model?(w(),A("p",pSt,[et("Model: "),c("span",_St,he(n.message.model),1)])):V("",!0),n.message.seed?(w(),A("p",hSt,[et("Seed: "),c("span",fSt,he(n.message.seed),1)])):V("",!0),n.message.nb_tokens?(w(),A("p",mSt,[et("Number of tokens: "),c("span",{class:"font-thin",title:"Number of Tokens: "+n.message.nb_tokens},he(n.message.nb_tokens),9,gSt)])):V("",!0),r.warmup_duration?(w(),A("p",bSt,[et("Warmup duration: "),c("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},he(r.warmup_duration),9,ESt)])):V("",!0),r.time_spent?(w(),A("p",ySt,[et("Generation duration: "),c("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},he(r.time_spent),9,vSt)])):V("",!0),r.generation_rate?(w(),A("p",SSt,[et("Rate: "),c("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},he(r.generation_rate),9,TSt)])):V("",!0)])])])])])}const yO=bt(Hyt,[["render",xSt]]),CSt="/";Se.defaults.baseURL="/";const wSt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:hc,UniversalForm:bc},data(){return{bUrl:CSt,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:{async handleOnTalk(){const t=this.mountedPers;console.log("pers:",t),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await Se.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(s=>s===t.full_path),i={client_id:this.$store.state.client_id,id:n};e=await Se.post("/select_personality",i),console.log("Generating message from ",e.data.status),$e.emit("generate_msg_from",{id:-1})}},async remount_personality(){const t=this.mountedPers;if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await Se.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},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.name,"Save changes","Cancel").then(n=>{try{Se.post("/set_active_personality_settings",n).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses.
|
||
`+i,4,!1)})}catch(i){this.$refs.toast.showToast(`Did not get Personality settings responses.
|
||
Endpoint error: `+i.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(Ge(()=>{He.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=op}}},RSt={class:"w-fit flex select-none"},ASt={class:"w-fit flex select-none"},NSt={class:"w-8 h-8 group relative"},OSt=["src","title"],ISt={class:"opacity-0 group-hover:opacity-100"},MSt=c("span",{title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-0 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1),DSt=[MSt],kSt=c("span",{title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1),LSt=[kSt];function PSt(t,e,n,i,s,r){const o=mt("UniversalForm");return w(),A(Ye,null,[c("div",RSt,[c("div",ASt,[c("div",NSt,[c("img",{src:s.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 hover:scale-150 active:scale-90 hover:z-50 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name,onClick:e[1]||(e[1]=a=>r.onSettingsPersonality(r.mountedPers))},null,40,OSt),c("div",ISt,[t.personalityHoveredIndex===t.index?(w(),A("button",{key:0,class:"z-50 -top-1 group-hover:translate-x-5 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[2]||(e[2]=be(a=>r.remount_personality(),["prevent"]))},DSt)):V("",!0),t.personalityHoveredIndex===t.index?(w(),A("button",{key:1,class:"-top-1 group-hover:-translate-x-12 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[3]||(e[3]=be(a=>r.handleOnTalk(),["prevent"]))},LSt)):V("",!0),c("div",{class:"top-0 group-hover:-translate-x-8 group-hover:-translate-y-8 left-0 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-500 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[4]||(e[4]=be((...a)=>r.toggleShowPersList&&r.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+he(r.mountedPersArr.length-1),1)])])])]),Te(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const USt=bt(wSt,[["render",PSt]]);const FSt="/";Se.defaults.baseURL="/";const BSt={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:fO,Toast:hc,UniversalForm:bc},name:"MountedPersonalitiesList",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},bUrl:FSt,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:{async onCopyToCustom(t){await Se.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:t.personality.category,name:t.personality.name})},onCopyPersonalityName(t){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},toggleShowPersList(){this.onShowPersList()},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=op},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}))},editPersonality(t){t=t.personality,Se.post("/get_personality_config",{client_id:this.$store.state.client_id,category:t.category,name:t.folder}).then(e=>{const n=e.data;console.log("Done"),n.status?(this.$store.state.currentPersonConfig=n.config,this.$store.state.showPersonalityEditor=!0,this.$store.state.personality_editor.showPanel(),this.$store.state.selectedPersonality=t):console.error(n.error)}).catch(e=>{console.error(e)})},onPersonalityMounted(t){this.mountPersonality(t)},onPersonalityUnMounted(t){this.unmountPersonality(t)},onPersonalityRemount(t){this.reMountPersonality(t)},async handleOpenFolder(t){const e={client_id:this.$store.state.client_id,personality_folder:t.personality.folder};console.log(e),await Se.post("/open_personality_folder",e)},async handleOnTalk(t){if(He.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(He.replace(),console.log("Selected personality : ",JSON.stringify(t.personality)),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(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses.
|
||
`+i,4,!1)})}catch(i){this.$refs.toast.showToast(`Did not get Personality settings responses.
|
||
Endpoint error: `+i.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async mount_personality(t){if(!t)return{status:!1,error:"no personality - mount_personality"};try{const e={category:t.category,folder:t.folder,language:t.language},n=await Se.post("/mount_personality",e);if(n)return n.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async remount_personality(t){if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await Se.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={client_id:this.$store.state.client_id,language:t.language,category:t.category,folder:t.folder};try{const n=await Se.post("/unmount_personality",e,{headers:this.posts_headers});if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async select_personality(t){if(!t||!t.personality)return{status:!1,error:"no personality - select_personality"};let e=-1;if(console.log("Personality full path : ",t.full_path),console.log("Personality language : ",t.personality.language),t.personality.language!=null&&t.personality.language!=null?(console.log("Mounting a localized version of personality"),console.log("Mounted personalities :",JSON.stringify(this.configFile.personalities)),console.log("Personality to select: ",t.full_path+":"+t.personality.language),e=this.configFile.personalities.findIndex(n=>n===t.full_path+":"+t.personality.language)):(console.log("Mounted personalities :",JSON.stringify(this.configFile.personalities)),e=this.configFile.personalities.findIndex(n=>n===t.full_path)),e>-1){console.log("Selecting personality with id:",JSON.stringify(e));const n={client_id:this.$store.state.client_id,id:e};try{const i=await Se.post("/select_personality",n);if(i)return this.$store.dispatch("refreshConfig").then(()=>{console.log("recovered config",this.configFile.active_personality_id),this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),i.data}catch(i){console.log(i,"select_personality - settings");return}}else return console.log("Personality id is wrong"),this.$refs.toast.showToast("Personality id is wrong!",4,!1),{status:!1,error:"Personality id is wrong"}},async mountPersonality(t){if(console.log("mount pers",t),!t)return;if(this.configFile.personalities.includes(t.personality.full_path)){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.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality mounted",4,!0),t.isMounted=!0,this.onMounted(this),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality:
|
||
`+t.personality.name,4,!0),this.getMountedPersonalities()):(t.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality
|
||
Error: `+e.error,4,!1))},async reMountPersonality(t){if(console.log("remount pers",t),!t)return;if(!this.configFile.personalities.includes(t.personality.full_path)){this.$refs.toast.showToast("Personality not mounted",4,!1);return}const e=await this.remount_personality(t.personality);console.log("remount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality remounted",4,!0),t.isMounted=!0,this.onMounted(this),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality:
|
||
`+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;console.log(`Unmounting ${JSON.stringify(t.personality)}`);const e=await this.unmount_personality(t.personality);if(e.status){console.log("unmount response",e),this.configFile.active_personality_id=e.active_personality_id,this.configFile.personalities=e.personalities;const n=this.configFile.personalities[this.configFile.active_personality_id],i=this.personalities.findIndex(a=>a.full_path==n),s=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path),r=this.personalities[i];r.isMounted=!1,r.selected=!0,this.$refs.personalitiesZoo[s].isMounted=!1,this.getMountedPersonalities(),(await this.select_personality(r)).status&&He.replace(),this.$refs.toast.showToast("Personality unmounted",4,!0),this.onUnMounted(this)}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;e<this.configFile.personalities.length;e++){const n=this.configFile.personalities[e],i=this.personalities.findIndex(r=>r.full_path==n),s=this.personalities[i];if(s)console.log("adding from config"),t.push(s);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),o=this.personalities[r];t.push(o)}}if(this.mountedPersArr=[],this.mountedPersArr=t,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;e<this.discussionPersonalities.length;e++){const n=this.discussionPersonalities[e];console.log("discussionPersonalities - per",n);const i=this.mountedPersArr.findIndex(s=>s.full_path==n);if(console.log("discussionPersonalities -includes",i),console.log("discussionPersonalities -mounted list",this.mountedPersArr),i==-1){const s=this.personalities.findIndex(o=>o.full_path==n),r=this.personalities[s];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)}}},AE=t=>(yo("data-v-de7bc8fe"),t=t(),vo(),t),GSt={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"},VSt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},zSt=AE(()=>c("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"},[c("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"}),c("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)),HSt=AE(()=>c("span",{class:"sr-only"},"Loading...",-1)),qSt=[zSt,HSt],YSt=AE(()=>c("i",{"data-feather":"chevron-down"},null,-1)),$St=[YSt],WSt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},KSt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function jSt(t,e,n,i,s,r){const o=mt("personality-entry"),a=mt("Toast"),l=mt("UniversalForm");return w(),A("div",GSt,[s.isLoading?(w(),A("div",VSt,qSt)):V("",!0),c("div",null,[r.mountedPersArr.length>0?(w(),A("div",{key:0,class:ze(s.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[c("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]=be((...u)=>r.toggleShowPersList&&r.toggleShowPersList(...u),["stop"]))},$St),c("label",WSt," Mounted Personalities: ("+he(r.mountedPersArr.length)+") ",1),c("div",KSt,[Te(os,{name:"bounce"},{default:We(()=>[(w(!0),A(Ye,null,lt(this.$store.state.mountedPersArr,(u,d)=>(w(),xt(o,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+d+"-"+u.name,personality:u,full_path:u.full_path,select_language:!1,selected:r.configFile.personalities[r.configFile.active_personality_id]===u.full_path||r.configFile.personalities[r.configFile.active_personality_id]===u.full_path+":"+u.language,"on-selected":r.onPersonalitySelected,"on-mount":r.onPersonalityMounted,"on-edit":r.editPersonality,"on-un-mount":r.onPersonalityUnMounted,"on-remount":r.onPersonalityRemount,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-edit","on-un-mount","on-remount","on-settings","on-reinstall","on-talk","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})])],2)):V("",!0)]),Te(a,{ref:"toast"},null,512),Te(l,{ref:"universalForm",class:"z-20"},null,512)])}const QSt=bt(BSt,[["render",jSt],["__scopeId","data-v-de7bc8fe"]]);const XSt={components:{InteractiveMenu:CE},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),Ge(()=>{He.replace()})},methods:{isHTML(t){const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.childNodes).some(i=>i.nodeType===Node.ELEMENT_NODE)},selectFile(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.onchange=i=>{this.selectedFile=i.target.files[0],console.log("File selected"),e()},n.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const n={filename:this.selectedFile.name,fileData:e.result};$e.on("file_received",i=>{i.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file
|
||
`+i.error,4,!1),this.loading=!1,$e.off("file_received")}),$e.emit("send_file",n)},e.readAsDataURL(this.selectedFile)},async constructor(){Ge(()=>{He.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(t.hasOwnProperty("file_types")?t.file_types:"*",()=>{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)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},ZSt=t=>(yo("data-v-1a32c141"),t=t(),vo(),t),JSt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},e0t=ZSt(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),t0t=[e0t];function n0t(t,e,n,i,s,r){const o=mt("InteractiveMenu");return s.loading?(w(),A("div",JSt,t0t)):(w(),xt(o,{key:1,commands:n.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const i0t=bt(XSt,[["render",n0t],["__scopeId","data-v-1a32c141"]]),s0t="/assets/loader_v0-16906488.svg";console.log("modelImgPlaceholder:",Pi);const r0t="/",o0t={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{UniversalForm:bc,MountedPersonalities:USt,MountedPersonalitiesList:QSt,PersonalitiesCommands:i0t},setup(){},data(){return{is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:s0t,sendGlobe:EO,modelImgPlaceholder:Pi,bUrl:r0t,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const t=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const n=e.split("::");console.log("extracted",n[0]);const s=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",s),{name:n[0],value:n[0]||"default_value",icon:s,help:"mounts the database"}});return console.log("formatted data sources",t),t},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},installedBindings(){return this.$store.state.installedBindings},installedModels(){return this.$store.state.installedModels},mountedPersonalities(){return this.$store.state.mountedPersArr},binding_name(){return this.$store.state.config.binding_name},model_name(){return this.$store.state.config.model_name},personality_name(){return this.$store.state.config.active_personality_id},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<this.discussionList.length;e++)!t.includes(this.discussionList[e].personality)&&!this.discussionList[e].personality==""&&t.push(this.discussionList[e].personality);return console.log("conputer pers",t),console.log("dis conputer pers",this.discussionList),t}return null}},methods:{handlePaste(t){const e=(t.clipboardData||t.originalEvent.clipboardData).items;let n=[];for(let i of e)if(i.type.indexOf("image")!==-1){const s=i.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([s],o,{type:s.type});this.addFiles([a])}else if(i.kind==="file"){const s=i.getAsFile();n.push(s)}n.length>0&&this.addFiles(n)},toggleSwitch(){this.$store.state.config.activate_internet_search=!this.$store.state.config.activate_internet_search,this.isLoading=!0,Se.post("/apply_settings",{config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.data.status?(this.$store.state.config.activate_internet_search?this.$store.state.toast.showToast("Websearch activated.",4,!0):this.$store.state.toast.showToast("Websearch deactivated.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ge(()=>{He.replace()})})},showModelConfig(){try{this.isLoading=!0,Se.get("/get_active_binding_settings").then(t=>{this.isLoading=!1,t&&(console.log("binding sett",t),t.data&&Object.keys(t.data).length>0?this.$refs.universalForm.showForm(t.data,"Binding settings ","Save changes","Cancel").then(e=>{try{Se.post("/set_active_binding_settings",e).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses.
|
||
`+n,4,!1),this.isLoading=!1)})}catch(n){this.$store.state.toast.showToast(`Did not get binding settings responses.
|
||
Endpoint error: `+n.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(t){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+t.message,4,!1)}},async remount_personality(t){if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await Se.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},async unmountPersonality(t){if(console.log("Unmounting personality:",t),!t)return;const e=await this.unmount_personality(t.personality||t);if(console.log(e),e.status){this.$store.state.config.personalities=e.personalities,this.$store.state.toast.showToast("Personality unmounted",4,!0),this.$store.dispatch("refreshMountedPersonalities");const n=this.$store.state.mountedPersArr[this.$store.state.mountedPersArr.length-1];console.log(n,this.$store.state.mountedPersArr.length),(await this.select_personality(t.personality)).status&&this.$store.state.toast.showToast(`Selected personality:
|
||
`+n.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality
|
||
Error: `+e.error,4,!1)},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={client_id:this.$store.state.client_id,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 showBindingHoveredIn(t){this.bindingHoveredIndex=t},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(t){this.modelHoveredIndex=t},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(t){this.personalityHoveredIndex=t},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(t){if(t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=t.language===null?t.full_path:t.full_path+":"+t.language;if(console.log("pers_path",e),console.log("this.$store.state.config.personalities",this.$store.state.config.personalities),this.$store.state.config.personalities.includes(e)){const n=await this.select_personality(t);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshMountedPersonalities"),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage"),await this.$store.dispatch("fetchisRTOn"),console.log("pers is mounted",n),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality:
|
||
`+t.name,4,!0):this.$store.state.toast.showToast(`Error on select personality:
|
||
`+t.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Ge(()=>{He.replace()})}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};const e=t.language===null?t.full_path:t.full_path+":"+t.language;console.log("Selecting personality ",e);const n=this.$store.state.config.personalities.findIndex(s=>s===e),i={client_id:this.$store.state.client_id,id:n};try{const s=await Se.post("/select_personality",i);if(s)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),s.data}catch(s){console.log(s.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(t){t.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const n=new MouseEvent("click");e.dispatchEvent(n)},setBinding(t){console.log("Setting binding to "+t.name),this.selecting_binding=!0,this.selectedBinding=t,this.$store.state.messageBox.showBlockingMessage("Loading binding"),Se.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"binding_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,!0),this.selecting_binding=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_binding=!1})},setModel(t){console.log("Setting model to "+t.name),this.selecting_model=!0,this.selectedModel=t,this.$store.state.messageBox.showBlockingMessage("Loading model"),Se.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},download_files(){Se.get("/download_files")},remove_file(t){Se.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t}).then(e=>{console.log(e)})},clear_files(){Se.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{console.log(t),t.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(t,e){console.log("Send file triggered");const n=new FileReader,i=24*1024;let s=0,r=0;n.onloadend=()=>{if(n.error){console.error("Error reading file:",n.error);return}const a=n.result,l=s+a.byteLength>=t.size;$e.emit("send_file_chunk",{filename:t.name,chunk:a,offset:s,isLastChunk:l,chunkIndex:r}),s+=a.byteLength,r++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=t.slice(s,s+i);n.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),$e.emit("start_bidirectional_audio_stream"),Ge(()=>{He.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),$e.emit("stop_bidirectional_audio_stream"),Ge(()=>{He.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=t=>{let e="";for(let n=t.resultIndex;n<t.results.length;n++)e+=t.results[n][0].transcript;this.message=e,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(t){this.showPersonalities=!this.showPersonalities},handleOnTalk(t){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${t.name} is Talking`,4,!0),this.onTalk(t)},onMountFun(t){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(t){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(t){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(t){return Ge(()=>{He.replace()}),rs(t)},removeItem(t){console.log("Removing ",t.name),Se.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=t)}),console.log(this.filesList)},sendMessageEvent(t,e="no_internet"){this.$emit("messageSentEvent",t,e)},sendCMDEvent(t){this.$emit("sendCMDEvent",t)},async mountDB(t){await Se.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:t}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const t=document.createElement("input");t.type="file",t.style.display="none",t.multiple=!0,document.body.appendChild(t),t.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(t.files),document.body.removeChild(t)}),t.click()},takePicture(){$e.emit("take_picture"),$e.on("picture_taken",()=>{Se.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{this.filesList=t.data.files,this.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(t){this.loading||t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(t){console.log("Adding files");const e=[...t];let n=0;const i=()=>{if(n>=e.length){console.log(`Files_list: ${this.filesList}`);return}const s=e[n];this.filesList.push(s),this.isFileSentList.push(!1),this.send_file(s,()=>{n++,i()})};i()}},watch:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},model_name:{immediate:!0,handler(t){this.$nextTick(()=>{this.model_name=t})}},showfilesList(){Ge(()=>{He.replace()})},loading(t,e){Ge(()=>{He.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let i=0;i<t.length;i++)n=n+parseInt(t[i].size);this.totalSize=rs(n,!0),console.log("filesList changed")},deep:!0},discussionList(t){console.log("discussion arr",t)}},mounted(){this.emitloaded(),Ge(()=>{He.replace()}),console.log("Chatbar mounted"),$e.on("rtcom_status_changed",t=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",t.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){Ge(()=>{He.replace()})}},Pt=t=>(yo("data-v-2c705e91"),t=t(),vo(),t),a0t={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},l0t={key:0,class:"items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},c0t={class:"flex"},d0t=["title"],u0t=Pt(()=>c("i",{"data-feather":"list"},null,-1)),p0t=[u0t],_0t={key:0},h0t={class:"flex flex-col max-h-64"},f0t=["title"],m0t={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},g0t={key:0,filesList:"",role:"status"},b0t=Pt(()=>c("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"},[c("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"}),c("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)),E0t=Pt(()=>c("span",{class:"sr-only"},"Loading...",-1)),y0t=[b0t,E0t],v0t=Pt(()=>c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),S0t=Pt(()=>c("div",{class:"grow"},null,-1)),T0t={class:"flex flex-row items-center"},x0t={class:"whitespace-nowrap"},C0t=["onClick"],w0t=Pt(()=>c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),R0t=[w0t],A0t={key:1,class:"flex mx-1 w-500"},N0t={class:"whitespace-nowrap flex flex-row gap-2"},O0t=Pt(()=>c("p",{class:"font-bold"}," Total size: ",-1)),I0t=Pt(()=>c("div",{class:"grow"},null,-1)),M0t=Pt(()=>c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),D0t=[M0t],k0t=Pt(()=>c("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)),L0t=[k0t],P0t={key:2,class:"mx-1"},U0t={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end bg-primary"},F0t={role:"status"},B0t=["src"],G0t=Pt(()=>c("span",{class:"sr-only"},"Selecting model...",-1)),V0t={class:"flex w-fit relative grow w-full"},z0t={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},H0t={key:0,title:"Waiting for reply"},q0t=["src"],Y0t=Pt(()=>c("div",{role:"status"},[c("span",{class:"sr-only"},"Loading...")],-1)),$0t={key:1,class:"w-fit group relative"},W0t={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},K0t={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},j0t=["onMouseover"],Q0t={class:"relative"},X0t=["onClick"],Z0t=["src","title"],J0t={class:"group items-center flex flex-row"},eTt=["src","title"],tTt={key:2,class:"w-fit group relative"},nTt={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},iTt={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},sTt=["onMouseover"],rTt={class:"relative"},oTt=["onClick"],aTt=["src","title"],lTt={class:"group items-center flex flex-row"},cTt=["src","title"],dTt={key:3,class:"w-fit group relative"},uTt={class:"top-50 hide opacity-0 group-hover:bottom-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},pTt={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},_Tt=["onMouseover"],hTt={class:"relative"},fTt=["onClick"],mTt=["src","title"],gTt=["onClick"],bTt=Pt(()=>c("span",{class:"-top-6 -right-6 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Unmount personality"},[c("svg",{"aria-hidden":"true",class:"top-1 left-1 relative w-5 h-5 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20","stroke-width":"1",xmlns:"http://www.w3.org/2000/svg"},[c("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)),ETt=[bTt],yTt=["onClick"],vTt=Pt(()=>c("span",{class:"-top-9 left-2 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1)),STt=[vTt],TTt=["onClick"],xTt=Pt(()=>c("span",{class:"-top-6 -left-6 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1)),CTt=[xTt],wTt={class:"w-fit"},RTt={class:"w-fit"},ATt={class:"relative grow"},NTt={class:"group relative w-max"},OTt=Pt(()=>c("i",{"data-feather":"send"},null,-1)),ITt=[OTt],MTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI.")],-1)),DTt={class:"group relative w-max"},kTt=["src"],LTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI with internet search.")],-1)),PTt={class:"group relative w-max"},UTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),FTt=[UTt],BTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Press and talk.")],-1)),GTt={key:5,class:"group relative w-max"},VTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),zTt=[VTt],HTt=Pt(()=>c("i",{"data-feather":"mic"},null,-1)),qTt=[HTt],YTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Real time bidirectional audio mode.")],-1)),$Tt={key:6,class:"group relative w-max"},WTt=Pt(()=>c("i",{"data-feather":"file-plus"},null,-1)),KTt=[WTt],jTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Send File to the AI.")],-1)),QTt={class:"group relative w-max"},XTt=Pt(()=>c("i",{"data-feather":"camera"},null,-1)),ZTt=[XTt],JTt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Take a shot from webcam.")],-1)),ext={class:"group relative w-max"},txt=Pt(()=>c("i",{"data-feather":"globe"},null,-1)),nxt=[txt],ixt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Add a weblink to the discussion.")],-1)),sxt={class:"group relative w-max"},rxt=Pt(()=>c("i",{"data-feather":"message-square"},null,-1)),oxt=[rxt],axt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty User message.")],-1)),lxt={class:"group relative w-max"},cxt=Pt(()=>c("i",{"data-feather":"message-square"},null,-1)),dxt=[cxt],uxt=Pt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty ai message.")],-1)),pxt=Pt(()=>c("div",{class:"ml-auto gap-2"},null,-1));function _xt(t,e,n,i,s,r){const o=mt("MountedPersonalitiesList"),a=mt("MountedPersonalities"),l=mt("PersonalitiesCommands"),u=mt("UniversalForm");return w(),A(Ye,null,[c("form",null,[c("div",a0t,[s.filesList.length>0||s.showPersonalities?(w(),A("div",l0t,[c("div",c0t,[c("button",{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:s.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=be(d=>s.showfilesList=!s.showfilesList,["stop"]))},p0t,8,d0t)]),s.filesList.length>0&&s.showfilesList==!0?(w(),A("div",_0t,[c("div",h0t,[Te(os,{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:We(()=>[(w(!0),A(Ye,null,lt(s.filesList,(d,h)=>(w(),A("div",{key:h+"-"+d.name},[c("div",{class:"m-1",title:d.name},[c("div",m0t,[s.isFileSentList[h]?V("",!0):(w(),A("div",g0t,y0t)),v0t,c("div",{class:ze(["line-clamp-1 w-3/5",s.isFileSentList[h]?"text-green-500":"text-red-200"])},he(d.name),3),S0t,c("div",T0t,[c("p",x0t,he(r.computedFileSize(d.size)),1),c("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(d)},R0t,8,C0t)])])],8,f0t)]))),128))]),_:1})])])):V("",!0),s.filesList.length>0?(w(),A("div",A0t,[c("div",N0t,[O0t,et(" "+he(s.totalSize)+" ("+he(s.filesList.length)+") ",1)]),I0t,c("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[1]||(e[1]=(...d)=>r.clear_files&&r.clear_files(...d))},D0t),c("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...d)=>r.download_files&&r.download_files(...d))},L0t)])):V("",!0),s.showPersonalities?(w(),A("div",P0t,[Te(o,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mounted":r.onMountFun,"on-un-mounted":r.onUnmountFun,"on-remounted":t.onRemountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):V("",!0)])):V("",!0),s.selecting_model||s.selecting_binding?(w(),A("div",U0t,[c("div",F0t,[c("img",{src:s.loader_v0,class:"w-50 h-50"},null,8,B0t),G0t])])):V("",!0),c("div",V0t,[c("div",z0t,[n.loading?(w(),A("div",H0t,[c("img",{src:s.loader_v0},null,8,q0t),Y0t])):V("",!0),n.loading?V("",!0):(w(),A("div",$0t,[c("div",W0t,[c("div",K0t,[(w(!0),A(Ye,null,lt(r.installedBindings,(d,h)=>(w(),A("div",{class:"w-fit h-fit inset-0 opacity-100",key:h+"-"+d.name,ref_for:!0,ref:"installedBindings",onMouseover:f=>r.showBindingHoveredIn(h),onMouseleave:e[4]||(e[4]=f=>r.showBindingHoveredOut())},[h!=r.binding_name?(w(),A("div",{key:0,class:ze(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",s.bindingHoveredIndex===h?"scale-150":""])},[c("div",Q0t,[c("button",{onClick:be(f=>r.setBinding(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:d.icon?d.icon:s.modelImgPlaceholder,onError:e[3]||(e[3]=(...f)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(...f)),class:ze(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",s.bindingHoveredIndex===h?"scale-150 ":""+d.name==r.binding_name?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,Z0t)],8,X0t)])],2)):V("",!0)],40,j0t))),128))])]),c("div",J0t,[c("button",{onClick:e[5]||(e[5]=be(d=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentBindingIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:r.currentBinding?r.currentBinding.name:"unknown"},null,8,eTt)])])])),n.loading?V("",!0):(w(),A("div",tTt,[c("div",nTt,[c("div",iTt,[(w(!0),A(Ye,null,lt(r.installedModels,(d,h)=>(w(),A("div",{class:"w-fit h-fit",key:h+"-"+d.name,ref_for:!0,ref:"installedModels",onMouseover:f=>r.showModelHoveredIn(h),onMouseleave:e[7]||(e[7]=f=>r.showModelHoveredOut())},[h!=r.model_name?(w(),A("div",{key:0,class:ze(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",s.modelHoveredIndex===h?"scale-150":""])},[c("div",rTt,[c("button",{onClick:be(f=>r.setModel(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:d.icon?d.icon:s.modelImgPlaceholder,onError:e[6]||(e[6]=(...f)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...f)),class:ze(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",s.modelHoveredIndex===h?"scale-150 ":""+d.name==r.model_name?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,aTt)],8,oTt)])],2)):V("",!0)],40,sTt))),128))])]),c("div",lTt,[c("button",{onClick:e[8]||(e[8]=be(d=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentModelIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:r.currentModel?r.currentModel.name:"unknown"},null,8,cTt)])])])),n.loading?V("",!0):(w(),A("div",dTt,[c("div",uTt,[c("div",pTt,[(w(!0),A(Ye,null,lt(r.mountedPersonalities,(d,h)=>(w(),A("div",{class:"w-fit h-fit inset-0 opacity-100",key:h+"-"+d.name,ref_for:!0,ref:"mountedPersonalities",onMouseover:f=>r.showPersonalityHoveredIn(h),onMouseleave:e[10]||(e[10]=f=>r.showPersonalityHoveredOut())},[h!=r.personality_name?(w(),A("div",{key:0,class:ze(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",s.personalityHoveredIndex===h?"scale-150":""])},[c("div",hTt,[c("button",{onClick:be(f=>r.onPersonalitySelected(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:s.bUrl+d.avatar,onError:e[9]||(e[9]=(...f)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...f)),class:ze(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",s.personalityHoveredIndex===h?"scale-150 ":""+this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(d.full_path)?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,mTt)],8,fTt),s.personalityHoveredIndex===h?(w(),A("button",{key:0,onClick:be(f=>r.unmountPersonality(d),["prevent"])},ETt,8,gTt)):V("",!0),s.personalityHoveredIndex===h?(w(),A("button",{key:1,onClick:be(f=>r.remount_personality(d),["prevent"])},STt,8,yTt)):V("",!0),s.personalityHoveredIndex===h?(w(),A("button",{key:2,onClick:be(f=>r.handleOnTalk(d),["prevent"])},CTt,8,TTt)):V("",!0)])],2)):V("",!0)],40,_Tt))),128))])]),Te(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])])),c("div",wTt,[s.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(w(),xt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):V("",!0)]),c("div",RTt,[r.isDataSourceNamesValid?(w(),xt(l,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":n.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):V("",!0)]),c("div",ATt,[G(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[11]||(e[11]=d=>s.message=d),title:"Hold SHIFT + ENTER to add new line",onPaste:e[12]||(e[12]=(...d)=>r.handlePaste&&r.handlePaste(...d)),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[13]||(e[13]=Hs(be(d=>r.submitOnEnter(d),["exact"]),["enter"]))},`\r
|
||
`,544),[[we,s.message]])]),n.loading?(w(),A("button",{key:4,type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 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[14]||(e[14]=be((...d)=>r.stopGenerating&&r.stopGenerating(...d),["stop"]))}," Stop generating ")):V("",!0),c("div",NTt,[n.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[15]||(e[15]=(...d)=>r.submit&&r.submit(...d)),title:"Send",class:"w-6 text-panel hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},ITt)),MTt]),c("div",DTt,[n.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[16]||(e[16]=(...d)=>r.submitWithInternetSearch&&r.submitWithInternetSearch(...d)),title:"Send With internet",class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},[c("img",{src:s.sendGlobe,width:"50",height:"50",style:{stroke:"currentColor",fill:"currentColor"}},null,8,kTt)])),LTt]),c("div",PTt,[n.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[17]||(e[17]=(...d)=>r.startSpeechRecognition&&r.startSpeechRecognition(...d)),class:ze([{"text-red-500":s.isListeningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"])},FTt,2)),BTt]),t.$store.state.config.active_tts_service!="None"?(w(),A("div",GTt,[s.is_rt?(w(),A("button",{key:0,type:"button",onClick:e[18]||(e[18]=(...d)=>r.stopRTCom&&r.stopRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-red-500 border borderred700 rounded-md"},zTt)):(w(),A("button",{key:1,type:"button",onClick:e[19]||(e[19]=(...d)=>r.startRTCom&&r.startRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-green-500 border border-green-700 rounded-md"},qTt)),YTt])):V("",!0),n.loading?V("",!0):(w(),A("div",$Tt,[c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[20]||(e[20]=(...d)=>r.addFiles&&r.addFiles(...d)),multiple:""},null,544),c("button",{type:"button",onClick:e[21]||(e[21]=be((...d)=>r.add_file&&r.add_file(...d),["prevent"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},KTt),jTt])),c("div",QTt,[n.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[22]||(e[22]=be((...d)=>r.takePicture&&r.takePicture(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},ZTt)),JTt]),c("div",ext,[n.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[23]||(e[23]=be((...d)=>r.addWebLink&&r.addWebLink(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},nxt)),ixt]),c("div",sxt,[n.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[24]||(e[24]=be((...d)=>r.makeAnEmptyUserMessage&&r.makeAnEmptyUserMessage(...d),["stop"])),class:"w-6 text-gray-800 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},oxt)),axt]),c("div",lxt,[n.loading?V("",!0):(w(),A("button",{key:0,type:"button",onClick:e[25]||(e[25]=be((...d)=>r.makeAnEmptyAIMessage&&r.makeAnEmptyAIMessage(...d),["stop"])),class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},dxt)),uxt])]),pxt])])]),Te(u,{ref:"universalForm",class:"z-20"},null,512)],64)}const vO=bt(o0t,[["render",_xt],["__scopeId","data-v-2c705e91"]]),hxt={name:"WelcomeComponent",computed:{storeLogo(){return this.$store.state.config?Ti:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Ti}},data(){},setup(){return{}}},fxt={class:"flex flex-col text-center w-full h-full"},mxt={class:"flex flex-col text-center items-center"},gxt={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},bxt=["src"],Ext=c("div",{class:"flex flex-col items-start"},[c("p",{class:"text-2xl"},"LoLLMS"),c("p",{class:"text-gray-400 text-base"},"One tool to rule them all")],-1),yxt=c("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"},null,-1),vxt=c("p",{class:"text-2xl"},"Welcome",-1),Sxt=c("p",{class:"text-lg"},"Please create a new discussion or select existing one to start",-1);function Txt(t,e,n,i,s,r){return w(),A("div",fxt,[c("div",mxt,[c("div",gxt,[c("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:t.$store.state.config==null?r.storeLogo:t.$store.state.config.app_custom_logo!=""?"/user_infos/"+t.$store.state.config.app_custom_logo:r.storeLogo,alt:"Logo"},null,8,bxt),Ext]),yxt,vxt,Sxt])])}const SO=bt(hxt,[["render",Txt]]);var xxt=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}(),iu=globalThis&&globalThis.__assign||function(){return iu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},iu.apply(this,arguments)},su={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},TO=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=su),this._items=e,this._options=iu(iu({},su),n),this._init()}return t.prototype._init=function(){var e=this;this._items.length&&this._items.map(function(n){n.active&&e.open(n.id),n.triggerEl.addEventListener("click",function(){e.toggle(n.id)})})},t.prototype.getItem=function(e){return this._items.filter(function(n){return n.id===e})[0]},t.prototype.open=function(e){var n,i,s=this,r=this.getItem(e);this._options.alwaysOpen||this._items.map(function(o){var a,l;o!==r&&((a=o.triggerEl.classList).remove.apply(a,s._options.activeClasses.split(" ")),(l=o.triggerEl.classList).add.apply(l,s._options.inactiveClasses.split(" ")),o.targetEl.classList.add("hidden"),o.triggerEl.setAttribute("aria-expanded","false"),o.active=!1,o.iconEl&&o.iconEl.classList.remove("rotate-180"))}),(n=r.triggerEl.classList).add.apply(n,this._options.activeClasses.split(" ")),(i=r.triggerEl.classList).remove.apply(i,this._options.inactiveClasses.split(" ")),r.triggerEl.setAttribute("aria-expanded","true"),r.targetEl.classList.remove("hidden"),r.active=!0,r.iconEl&&r.iconEl.classList.add("rotate-180"),this._options.onOpen(this,r)},t.prototype.toggle=function(e){var n=this.getItem(e);n.active?this.close(e):this.open(e),this._options.onToggle(this,n)},t.prototype.close=function(e){var n,i,s=this.getItem(e);(n=s.triggerEl.classList).remove.apply(n,this._options.activeClasses.split(" ")),(i=s.triggerEl.classList).add.apply(i,this._options.inactiveClasses.split(" ")),s.targetEl.classList.add("hidden"),s.triggerEl.setAttribute("aria-expanded","false"),s.active=!1,s.iconEl&&s.iconEl.classList.remove("rotate-180"),this._options.onClose(this,s)},t}();function NE(){document.querySelectorAll("[data-accordion]").forEach(function(t){var e=t.getAttribute("data-accordion"),n=t.getAttribute("data-active-classes"),i=t.getAttribute("data-inactive-classes"),s=[];t.querySelectorAll("[data-accordion-target]").forEach(function(r){if(r.closest("[data-accordion]")===t){var o={id:r.getAttribute("data-accordion-target"),triggerEl:r,targetEl:document.querySelector(r.getAttribute("data-accordion-target")),iconEl:r.querySelector("[data-accordion-icon]"),active:r.getAttribute("aria-expanded")==="true"};s.push(o)}}),new TO(s,{alwaysOpen:e==="open",activeClasses:n||su.activeClasses,inactiveClasses:i||su.inactiveClasses})})}typeof window<"u"&&(window.Accordion=TO,window.initAccordions=NE);var ru=globalThis&&globalThis.__assign||function(){return ru=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},ru.apply(this,arguments)},OC={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},xO=function(){function t(e,n,i){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=OC),this._targetEl=e,this._triggerEl=n,this._options=ru(ru({},OC),i),this._visible=!1,this._init()}return t.prototype._init=function(){var e=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){e.toggle()}))},t.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},t.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},t.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},t}();function OE(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var e=t.getAttribute("data-collapse-toggle"),n=document.getElementById(e);n?new xO(n,t):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=xO,window.initCollapses=OE);var jr=globalThis&&globalThis.__assign||function(){return jr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},jr.apply(this,arguments)},Ud={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},CO=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=Ud),this._items=e,this._options=jr(jr(jr({},Ud),n),{indicators:jr(jr({},Ud.indicators),n.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return t.prototype._init=function(){var e=this;this._items.map(function(n){n.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(n,i){n.el.addEventListener("click",function(){e.slideTo(i)})})},t.prototype.getItem=function(e){return this._items[e]},t.prototype.slideTo=function(e){var n=this._items[e],i={left:n.position===0?this._items[this._items.length-1]:this._items[n.position-1],middle:n,right:n.position===this._items.length-1?this._items[0]:this._items[n.position+1]};this._rotate(i),this._setActiveItem(n),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},t.prototype.next=function(){var e=this._getActiveItem(),n=null;e.position===this._items.length-1?n=this._items[0]:n=this._items[e.position+1],this.slideTo(n.position),this._options.onNext(this)},t.prototype.prev=function(){var e=this._getActiveItem(),n=null;e.position===0?n=this._items[this._items.length-1]:n=this._items[e.position-1],this.slideTo(n.position),this._options.onPrev(this)},t.prototype._rotate=function(e){this._items.map(function(n){n.el.classList.add("hidden")}),e.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.left.el.classList.add("-translate-x-full","z-10"),e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-20"),e.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.right.el.classList.add("translate-x-full","z-10")},t.prototype.cycle=function(){var e=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){e.next()},this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype._getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(e){var n,i,s=this;this._activeItem=e;var r=e.position;this._indicators.length&&(this._indicators.map(function(o){var a,l;o.el.setAttribute("aria-current","false"),(a=o.el.classList).remove.apply(a,s._options.indicators.activeClasses.split(" ")),(l=o.el.classList).add.apply(l,s._options.indicators.inactiveClasses.split(" "))}),(n=this._indicators[r].el.classList).add.apply(n,this._options.indicators.activeClasses.split(" ")),(i=this._indicators[r].el.classList).remove.apply(i,this._options.indicators.inactiveClasses.split(" ")),this._indicators[r].el.setAttribute("aria-current","true"))},t}();function IE(){document.querySelectorAll("[data-carousel]").forEach(function(t){var e=t.getAttribute("data-carousel-interval"),n=t.getAttribute("data-carousel")==="slide",i=[],s=0;t.querySelectorAll("[data-carousel-item]").length&&Array.from(t.querySelectorAll("[data-carousel-item]")).map(function(u,d){i.push({position:d,el:u}),u.getAttribute("data-carousel-item")==="active"&&(s=d)});var r=[];t.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(t.querySelectorAll("[data-carousel-slide-to]")).map(function(u){r.push({position:parseInt(u.getAttribute("data-carousel-slide-to")),el:u})});var o=new CO(i,{defaultPosition:s,indicators:{items:r},interval:e||Ud.interval});n&&o.cycle();var a=t.querySelector("[data-carousel-next]"),l=t.querySelector("[data-carousel-prev]");a&&a.addEventListener("click",function(){o.next()}),l&&l.addEventListener("click",function(){o.prev()})})}typeof window<"u"&&(window.Carousel=CO,window.initCarousels=IE);var ou=globalThis&&globalThis.__assign||function(){return ou=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},ou.apply(this,arguments)},IC={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},wO=function(){function t(e,n,i){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=IC),this._targetEl=e,this._triggerEl=n,this._options=ou(ou({},IC),i),this._init()}return t.prototype._init=function(){var e=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){e.hide()})},t.prototype.hide=function(){var e=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){e._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},t}();function ME(){document.querySelectorAll("[data-dismiss-target]").forEach(function(t){var e=t.getAttribute("data-dismiss-target"),n=document.querySelector(e);n?new wO(n,t):console.error('The dismiss element with id "'.concat(e,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=wO,window.initDismisses=ME);var Qn="top",Ri="bottom",Ai="right",Xn="left",DE="auto",Ec=[Qn,Ri,Ai,Xn],Ea="start",ic="end",Cxt="clippingParents",RO="viewport",hl="popper",wxt="reference",MC=Ec.reduce(function(t,e){return t.concat([e+"-"+Ea,e+"-"+ic])},[]),AO=[].concat(Ec,[DE]).reduce(function(t,e){return t.concat([e,e+"-"+Ea,e+"-"+ic])},[]),Rxt="beforeRead",Axt="read",Nxt="afterRead",Oxt="beforeMain",Ixt="main",Mxt="afterMain",Dxt="beforeWrite",kxt="write",Lxt="afterWrite",Pxt=[Rxt,Axt,Nxt,Oxt,Ixt,Mxt,Dxt,kxt,Lxt];function us(t){return t?(t.nodeName||"").toLowerCase():null}function ai(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ho(t){var e=ai(t).Element;return t instanceof e||t instanceof Element}function xi(t){var e=ai(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function kE(t){if(typeof ShadowRoot>"u")return!1;var e=ai(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Uxt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},s=e.attributes[n]||{},r=e.elements[n];!xi(r)||!us(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function Fxt(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(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),a=o.reduce(function(l,u){return l[u]="",l},{});!xi(s)||!us(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const Bxt={name:"applyStyles",enabled:!0,phase:"write",fn:Uxt,effect:Fxt,requires:["computeStyles"]};function as(t){return t.split("-")[0]}var ro=Math.max,au=Math.min,ya=Math.round;function eb(){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 NO(){return!/^((?!chrome|android).)*safari/i.test(eb())}function va(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),s=1,r=1;e&&xi(t)&&(s=t.offsetWidth>0&&ya(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&ya(i.height)/t.offsetHeight||1);var o=ho(t)?ai(t):window,a=o.visualViewport,l=!NO()&&n,u=(i.left+(l&&a?a.offsetLeft:0))/s,d=(i.top+(l&&a?a.offsetTop:0))/r,h=i.width/s,f=i.height/r;return{width:h,height:f,top:d,right:u+h,bottom:d+f,left:u,x:u,y:d}}function LE(t){var e=va(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function OO(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&kE(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function qs(t){return ai(t).getComputedStyle(t)}function Gxt(t){return["table","td","th"].indexOf(us(t))>=0}function Or(t){return((ho(t)?t.ownerDocument:t.document)||window.document).documentElement}function ap(t){return us(t)==="html"?t:t.assignedSlot||t.parentNode||(kE(t)?t.host:null)||Or(t)}function DC(t){return!xi(t)||qs(t).position==="fixed"?null:t.offsetParent}function Vxt(t){var e=/firefox/i.test(eb()),n=/Trident/i.test(eb());if(n&&xi(t)){var i=qs(t);if(i.position==="fixed")return null}var s=ap(t);for(kE(s)&&(s=s.host);xi(s)&&["html","body"].indexOf(us(s))<0;){var r=qs(s);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 s;s=s.parentNode}return null}function yc(t){for(var e=ai(t),n=DC(t);n&&Gxt(n)&&qs(n).position==="static";)n=DC(n);return n&&(us(n)==="html"||us(n)==="body"&&qs(n).position==="static")?e:n||Vxt(t)||e}function PE(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kl(t,e,n){return ro(t,au(e,n))}function zxt(t,e,n){var i=kl(t,e,n);return i>n?n:i}function IO(){return{top:0,right:0,bottom:0,left:0}}function MO(t){return Object.assign({},IO(),t)}function DO(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}var Hxt=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,MO(typeof e!="number"?e:DO(e,Ec))};function qxt(t){var e,n=t.state,i=t.name,s=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=as(n.placement),l=PE(a),u=[Xn,Ai].indexOf(a)>=0,d=u?"height":"width";if(!(!r||!o)){var h=Hxt(s.padding,n),f=LE(r),_=l==="y"?Qn:Xn,m=l==="y"?Ri:Ai,E=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],g=yc(r),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=E/2-b/2,S=h[_],C=y-f[d]-h[m],T=y/2-f[d]/2+v,O=kl(S,T,C),k=l;n.modifiersData[i]=(e={},e[k]=O,e.centerOffset=O-T,e)}}function Yxt(t){var e=t.state,n=t.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||OO(e.elements.popper,s)&&(e.elements.arrow=s))}const $xt={name:"arrow",enabled:!0,phase:"main",fn:qxt,effect:Yxt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sa(t){return t.split("-")[1]}var Wxt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kxt(t,e){var n=t.x,i=t.y,s=e.devicePixelRatio||1;return{x:ya(n*s)/s||0,y:ya(i*s)/s||0}}function kC(t){var e,n=t.popper,i=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,h=t.isFixed,f=o.x,_=f===void 0?0:f,m=o.y,E=m===void 0?0:m,b=typeof d=="function"?d({x:_,y:E}):{x:_,y:E};_=b.x,E=b.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=Xn,S=Qn,C=window;if(u){var T=yc(n),O="clientHeight",k="clientWidth";if(T===ai(n)&&(T=Or(n),qs(T).position!=="static"&&a==="absolute"&&(O="scrollHeight",k="scrollWidth")),T=T,s===Qn||(s===Xn||s===Ai)&&r===ic){S=Ri;var x=h&&T===C&&C.visualViewport?C.visualViewport.height:T[O];E-=x-i.height,E*=l?1:-1}if(s===Xn||(s===Qn||s===Ri)&&r===ic){v=Ai;var I=h&&T===C&&C.visualViewport?C.visualViewport.width:T[k];_-=I-i.width,_*=l?1:-1}}var F=Object.assign({position:a},u&&Wxt),B=d===!0?Kxt({x:_,y:E},ai(n)):{x:_,y:E};if(_=B.x,E=B.y,l){var ne;return Object.assign({},F,(ne={},ne[S]=y?"0":"",ne[v]=g?"0":"",ne.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",ne))}return Object.assign({},F,(e={},e[S]=y?E+"px":"",e[v]=g?_+"px":"",e.transform="",e))}function jxt(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=i===void 0?!0:i,r=n.adaptive,o=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:as(e.placement),variation:Sa(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kC(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kC(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Qxt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jxt,data:{}};var qc={passive:!0};function Xxt(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,l=ai(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(d){d.addEventListener("scroll",n.update,qc)}),a&&l.addEventListener("resize",n.update,qc),function(){r&&u.forEach(function(d){d.removeEventListener("scroll",n.update,qc)}),a&&l.removeEventListener("resize",n.update,qc)}}const Zxt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xxt,data:{}};var Jxt={left:"right",right:"left",bottom:"top",top:"bottom"};function Fd(t){return t.replace(/left|right|bottom|top/g,function(e){return Jxt[e]})}var eCt={start:"end",end:"start"};function LC(t){return t.replace(/start|end/g,function(e){return eCt[e]})}function UE(t){var e=ai(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function FE(t){return va(Or(t)).left+UE(t).scrollLeft}function tCt(t,e){var n=ai(t),i=Or(t),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var u=NO();(u||!u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+FE(t),y:l}}function nCt(t){var e,n=Or(t),i=UE(t),s=(e=t.ownerDocument)==null?void 0:e.body,r=ro(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ro(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+FE(t),l=-i.scrollTop;return qs(s||n).direction==="rtl"&&(a+=ro(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function BE(t){var e=qs(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function kO(t){return["html","body","#document"].indexOf(us(t))>=0?t.ownerDocument.body:xi(t)&&BE(t)?t:kO(ap(t))}function Ll(t,e){var n;e===void 0&&(e=[]);var i=kO(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),r=ai(i),o=s?[r].concat(r.visualViewport||[],BE(i)?i:[]):i,a=e.concat(o);return s?a:a.concat(Ll(ap(o)))}function tb(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function iCt(t,e){var n=va(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 PC(t,e,n){return e===RO?tb(tCt(t,n)):ho(e)?iCt(e,n):tb(nCt(Or(t)))}function sCt(t){var e=Ll(ap(t)),n=["absolute","fixed"].indexOf(qs(t).position)>=0,i=n&&xi(t)?yc(t):t;return ho(i)?e.filter(function(s){return ho(s)&&OO(s,i)&&us(s)!=="body"}):[]}function rCt(t,e,n,i){var s=e==="clippingParents"?sCt(t):[].concat(e),r=[].concat(s,[n]),o=r[0],a=r.reduce(function(l,u){var d=PC(t,u,i);return l.top=ro(d.top,l.top),l.right=au(d.right,l.right),l.bottom=au(d.bottom,l.bottom),l.left=ro(d.left,l.left),l},PC(t,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function LO(t){var e=t.reference,n=t.element,i=t.placement,s=i?as(i):null,r=i?Sa(i):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(s){case Qn:l={x:o,y:e.y-n.height};break;case Ri:l={x:o,y:e.y+e.height};break;case Ai:l={x:e.x+e.width,y:a};break;case Xn:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=s?PE(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(r){case Ea:l[u]=l[u]-(e[d]/2-n[d]/2);break;case ic:l[u]=l[u]+(e[d]/2-n[d]/2);break}}return l}function sc(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=i===void 0?t.placement:i,r=n.strategy,o=r===void 0?t.strategy:r,a=n.boundary,l=a===void 0?Cxt:a,u=n.rootBoundary,d=u===void 0?RO:u,h=n.elementContext,f=h===void 0?hl:h,_=n.altBoundary,m=_===void 0?!1:_,E=n.padding,b=E===void 0?0:E,g=MO(typeof b!="number"?b:DO(b,Ec)),y=f===hl?wxt:hl,v=t.rects.popper,S=t.elements[m?y:f],C=rCt(ho(S)?S:S.contextElement||Or(t.elements.popper),l,d,o),T=va(t.elements.reference),O=LO({reference:T,element:v,strategy:"absolute",placement:s}),k=tb(Object.assign({},v,O)),x=f===hl?k:T,I={top:C.top-x.top+g.top,bottom:x.bottom-C.bottom+g.bottom,left:C.left-x.left+g.left,right:x.right-C.right+g.right},F=t.modifiersData.offset;if(f===hl&&F){var B=F[s];Object.keys(I).forEach(function(ne){var L=[Ai,Ri].indexOf(ne)>=0?1:-1,$=[Qn,Ri].indexOf(ne)>=0?"y":"x";I[ne]+=B[$]*L})}return I}function oCt(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?AO:l,d=Sa(i),h=d?a?MC:MC.filter(function(m){return Sa(m)===d}):Ec,f=h.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=h);var _=f.reduce(function(m,E){return m[E]=sc(t,{placement:E,boundary:s,rootBoundary:r,padding:o})[as(E)],m},{});return Object.keys(_).sort(function(m,E){return _[m]-_[E]})}function aCt(t){if(as(t)===DE)return[];var e=Fd(t);return[LC(t),e,LC(e)]}function lCt(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,d=n.boundary,h=n.rootBoundary,f=n.altBoundary,_=n.flipVariations,m=_===void 0?!0:_,E=n.allowedAutoPlacements,b=e.options.placement,g=as(b),y=g===b,v=l||(y||!m?[Fd(b)]:aCt(b)),S=[b].concat(v).reduce(function(Ee,xe){return Ee.concat(as(xe)===DE?oCt(e,{placement:xe,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:E}):xe)},[]),C=e.rects.reference,T=e.rects.popper,O=new Map,k=!0,x=S[0],I=0;I<S.length;I++){var F=S[I],B=as(F),ne=Sa(F)===Ea,L=[Qn,Ri].indexOf(B)>=0,$=L?"width":"height",H=sc(e,{placement:F,boundary:d,rootBoundary:h,altBoundary:f,padding:u}),U=L?ne?Ai:Xn:ne?Ri:Qn;C[$]>T[$]&&(U=Fd(U));var Q=Fd(U),J=[];if(r&&J.push(H[B]<=0),a&&J.push(H[U]<=0,H[Q]<=0),J.every(function(Ee){return Ee})){x=F,k=!1;break}O.set(F,J)}if(k)for(var j=m?3:1,ae=function(xe){var Me=S.find(function(Z){var ye=O.get(Z);if(ye)return ye.slice(0,xe).every(function(fe){return fe})});if(Me)return x=Me,"break"},ve=j;ve>0;ve--){var ee=ae(ve);if(ee==="break")break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}}const cCt={name:"flip",enabled:!0,phase:"main",fn:lCt,requiresIfExists:["offset"],data:{_skip:!1}};function UC(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 FC(t){return[Qn,Ai,Ri,Xn].some(function(e){return t[e]>=0})}function dCt(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=sc(e,{elementContext:"reference"}),a=sc(e,{altBoundary:!0}),l=UC(o,i),u=UC(a,s,r),d=FC(l),h=FC(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const uCt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dCt};function pCt(t,e,n){var i=as(t),s=[Xn,Qn].indexOf(i)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Xn,Ai].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function _Ct(t){var e=t.state,n=t.options,i=t.name,s=n.offset,r=s===void 0?[0,0]:s,o=AO.reduce(function(d,h){return d[h]=pCt(h,e.rects,r),d},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=o}const hCt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_Ct};function fCt(t){var e=t.state,n=t.name;e.modifiersData[n]=LO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const mCt={name:"popperOffsets",enabled:!0,phase:"read",fn:fCt,data:{}};function gCt(t){return t==="x"?"y":"x"}function bCt(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.padding,f=n.tether,_=f===void 0?!0:f,m=n.tetherOffset,E=m===void 0?0:m,b=sc(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:d}),g=as(e.placement),y=Sa(e.placement),v=!y,S=PE(g),C=gCt(S),T=e.modifiersData.popperOffsets,O=e.rects.reference,k=e.rects.popper,x=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,I=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(T){if(r){var ne,L=S==="y"?Qn:Xn,$=S==="y"?Ri:Ai,H=S==="y"?"height":"width",U=T[S],Q=U+b[L],J=U-b[$],j=_?-k[H]/2:0,ae=y===Ea?O[H]:k[H],ve=y===Ea?-k[H]:-O[H],ee=e.elements.arrow,Ee=_&&ee?LE(ee):{width:0,height:0},xe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:IO(),Me=xe[L],Z=xe[$],ye=kl(0,O[H],Ee[H]),fe=v?O[H]/2-j-ye-Me-I.mainAxis:ae-ye-Me-I.mainAxis,Ne=v?-O[H]/2+j+ye+Z+I.mainAxis:ve+ye+Z+I.mainAxis,Le=e.elements.arrow&&yc(e.elements.arrow),D=Le?S==="y"?Le.clientTop||0:Le.clientLeft||0:0,q=(ne=F==null?void 0:F[S])!=null?ne:0,K=U+fe-q-D,de=U+Ne-q,le=kl(_?au(Q,K):Q,U,_?ro(J,de):J);T[S]=le,B[S]=le-U}if(a){var Re,Ie=S==="x"?Qn:Xn,z=S==="x"?Ri:Ai,pe=T[C],re=C==="y"?"height":"width",ce=pe+b[Ie],M=pe-b[z],N=[Qn,Xn].indexOf(g)!==-1,W=(Re=F==null?void 0:F[C])!=null?Re:0,ue=N?ce:pe-O[re]-k[re]-W+I.altAxis,X=N?pe+O[re]+k[re]-W-I.altAxis:M,ie=_&&N?zxt(ue,pe,X):kl(_?ue:ce,pe,_?X:M);T[C]=ie,B[C]=ie-pe}e.modifiersData[i]=B}}const ECt={name:"preventOverflow",enabled:!0,phase:"main",fn:bCt,requiresIfExists:["offset"]};function yCt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vCt(t){return t===ai(t)||!xi(t)?UE(t):yCt(t)}function SCt(t){var e=t.getBoundingClientRect(),n=ya(e.width)/t.offsetWidth||1,i=ya(e.height)/t.offsetHeight||1;return n!==1||i!==1}function TCt(t,e,n){n===void 0&&(n=!1);var i=xi(e),s=xi(e)&&SCt(e),r=Or(e),o=va(t,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((us(e)!=="body"||BE(r))&&(a=vCt(e)),xi(e)?(l=va(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=FE(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function xCt(t){var e=new Map,n=new Set,i=[];t.forEach(function(r){e.set(r.name,r)});function s(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&s(l)}}),i.push(r)}return t.forEach(function(r){n.has(r.name)||s(r)}),i}function CCt(t){var e=xCt(t);return Pxt.reduce(function(n,i){return n.concat(e.filter(function(s){return s.phase===i}))},[])}function wCt(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function RCt(t){var e=t.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var BC={placement:"bottom",modifiers:[],strategy:"absolute"};function GC(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function ACt(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,s=e.defaultOptions,r=s===void 0?BC:s;return function(a,l,u){u===void 0&&(u=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},BC,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],f=!1,_={state:d,setOptions:function(g){var y=typeof g=="function"?g(d.options):g;E(),d.options=Object.assign({},r,d.options,y),d.scrollParents={reference:ho(a)?Ll(a):a.contextElement?Ll(a.contextElement):[],popper:Ll(l)};var v=CCt(RCt([].concat(i,d.options.modifiers)));return d.orderedModifiers=v.filter(function(S){return S.enabled}),m(),_.update()},forceUpdate:function(){if(!f){var g=d.elements,y=g.reference,v=g.popper;if(GC(y,v)){d.rects={reference:TCt(y,yc(v),d.options.strategy==="fixed"),popper:LE(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var C=d.orderedModifiers[S],T=C.fn,O=C.options,k=O===void 0?{}:O,x=C.name;typeof T=="function"&&(d=T({state:d,options:k,name:x,instance:_})||d)}}}},update:wCt(function(){return new Promise(function(b){_.forceUpdate(),b(d)})}),destroy:function(){E(),f=!0}};if(!GC(a,l))return _;_.setOptions(u).then(function(b){!f&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var g=b.name,y=b.options,v=y===void 0?{}:y,S=b.effect;if(typeof S=="function"){var C=S({state:d,name:g,instance:_,options:v}),T=function(){};h.push(C||T)}})}function E(){h.forEach(function(b){return b()}),h=[]}return _}}var NCt=[Zxt,mCt,Qxt,Bxt,hCt,cCt,ECt,$xt,uCt],GE=ACt({defaultModifiers:NCt}),ur=globalThis&&globalThis.__assign||function(){return ur=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},ur.apply(this,arguments)},Yc=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},pr={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},PO=function(){function t(e,n,i){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=pr),this._targetEl=e,this._triggerEl=n,this._options=ur(ur({},pr),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var e=this,n=this._getTriggerEvents();this._options.triggerType==="click"&&n.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.toggle()})}),this._options.triggerType==="hover"&&(n.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){i==="click"?e.toggle():setTimeout(function(){e.show()},e._options.delay)}),e._targetEl.addEventListener(i,function(){e.show()})}),n.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},e._options.delay)}),e._targetEl.addEventListener(i,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},e._options.delay)})}))},t.prototype._createPopperInstance=function(){return GE(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(n){e._handleClickOutside(n,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,n){var i=e.target,s=this._options.ignoreClickOutsideClass,r=!1;if(s){var o=document.querySelectorAll(".".concat(s));o.forEach(function(a){if(a.contains(i)){r=!0;return}})}i!==n&&!n.contains(i)&&!this._triggerEl.contains(i)&&!r&&this.isVisible()&&this.hide()},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.isVisible=function(){return this._visible},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(e){return ur(ur({},e),{modifiers:Yc(Yc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(e){return ur(ur({},e),{modifiers:Yc(Yc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function VE(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var e=t.getAttribute("data-dropdown-toggle"),n=document.getElementById(e);if(n){var i=t.getAttribute("data-dropdown-placement"),s=t.getAttribute("data-dropdown-offset-skidding"),r=t.getAttribute("data-dropdown-offset-distance"),o=t.getAttribute("data-dropdown-trigger"),a=t.getAttribute("data-dropdown-delay"),l=t.getAttribute("data-dropdown-ignore-click-outside-class");new PO(n,t,{placement:i||pr.placement,triggerType:o||pr.triggerType,offsetSkidding:s?parseInt(s):pr.offsetSkidding,offsetDistance:r?parseInt(r):pr.offsetDistance,delay:a?parseInt(a):pr.delay,ignoreClickOutsideClass:l||pr.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=PO,window.initDropdowns=VE);var lu=globalThis&&globalThis.__assign||function(){return lu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},lu.apply(this,arguments)},Qo={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},nb=function(){function t(e,n){e===void 0&&(e=null),n===void 0&&(n=Qo),this._targetEl=e,this._options=lu(lu({},Qo),n),this._isHidden=!0,this._backdropEl=null,this._init()}return t.prototype._init=function(){var e=this;this._targetEl&&this._getPlacementClasses().map(function(n){e._targetEl.classList.add(n)})},t.prototype._createBackdrop=function(){var e;if(this._isHidden){var n=document.createElement("div");n.setAttribute("modal-backdrop",""),(e=n.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(n),this._backdropEl=n}},t.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},t.prototype._setupModalCloseEventListeners=function(){var e=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(n){e._handleOutsideClick(n.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(n){n.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._handleOutsideClick=function(e){(e===this._targetEl||e===this._backdropEl&&this.isVisible())&&this.hide()},t.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},t.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},t.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._options.closable&&this._setupModalCloseEventListeners(),this._options.onShow(this))},t.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},t.prototype.isVisible=function(){return!this._isHidden},t.prototype.isHidden=function(){return this._isHidden},t}(),$c=function(t,e){return e.some(function(n){return n.id===t})?e.find(function(n){return n.id===t}):null};function zE(){var t=[];document.querySelectorAll("[data-modal-target]").forEach(function(e){var n=e.getAttribute("data-modal-target"),i=document.getElementById(n);if(i){var s=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop");$c(n,t)||t.push({id:n,object:new nb(i,{placement:s||Qo.placement,backdrop:r||Qo.backdrop})})}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var n=e.getAttribute("data-modal-toggle"),i=document.getElementById(n);if(i){var s=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop"),o=$c(n,t);o||(o={id:n,object:new nb(i,{placement:s||Qo.placement,backdrop:r||Qo.backdrop})},t.push(o)),e.addEventListener("click",function(){o.object.toggle()})}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var n=e.getAttribute("data-modal-show"),i=document.getElementById(n);if(i){var s=$c(n,t);s?e.addEventListener("click",function(){s.object.isHidden&&s.object.show()}):console.error("Modal with id ".concat(n," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var n=e.getAttribute("data-modal-hide"),i=document.getElementById(n);if(i){var s=$c(n,t);s?e.addEventListener("click",function(){s.object.isVisible&&s.object.hide()}):console.error("Modal with id ".concat(n," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(n," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=nb,window.initModals=zE);var cu=globalThis&&globalThis.__assign||function(){return cu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},cu.apply(this,arguments)},Qr={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},UO=function(){function t(e,n){e===void 0&&(e=null),n===void 0&&(n=Qr),this._targetEl=e,this._options=cu(cu({},Qr),n),this._visible=!1,this._init()}return t.prototype._init=function(){var e=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(n){e._targetEl.classList.add(n)}),document.addEventListener("keydown",function(n){n.key==="Escape"&&e.isVisible()&&e.hide()})},t.prototype.hide=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(n){e._targetEl.classList.remove(n)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(n){e._targetEl.classList.add(n)})):(this._getPlacementClasses(this._options.placement).active.map(function(n){e._targetEl.classList.remove(n)}),this._getPlacementClasses(this._options.placement).inactive.map(function(n){e._targetEl.classList.add(n)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(n){e._targetEl.classList.add(n)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(n){e._targetEl.classList.remove(n)})):(this._getPlacementClasses(this._options.placement).active.map(function(n){e._targetEl.classList.add(n)}),this._getPlacementClasses(this._options.placement).inactive.map(function(n){e._targetEl.classList.remove(n)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype._createBackdrop=function(){var e,n=this;if(!this._visible){var i=document.createElement("div");i.setAttribute("drawer-backdrop",""),(e=i.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),i.addEventListener("click",function(){n.hide()})}},t.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},t.prototype._getPlacementClasses=function(e){switch(e){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t}(),Wc=function(t,e){if(e.some(function(n){return n.id===t}))return e.find(function(n){return n.id===t})};function HE(){var t=[];document.querySelectorAll("[data-drawer-target]").forEach(function(e){var n=e.getAttribute("data-drawer-target"),i=document.getElementById(n);if(i){var s=e.getAttribute("data-drawer-placement"),r=e.getAttribute("data-drawer-body-scrolling"),o=e.getAttribute("data-drawer-backdrop"),a=e.getAttribute("data-drawer-edge"),l=e.getAttribute("data-drawer-edge-offset");Wc(n,t)||t.push({id:n,object:new UO(i,{placement:s||Qr.placement,bodyScrolling:r?r==="true":Qr.bodyScrolling,backdrop:o?o==="true":Qr.backdrop,edge:a?a==="true":Qr.edge,edgeOffset:l||Qr.edgeOffset})})}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var n=e.getAttribute("data-drawer-toggle"),i=document.getElementById(n);if(i){var s=Wc(n,t);s?e.addEventListener("click",function(){s.object.toggle()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var n=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide"),i=document.getElementById(n);if(i){var s=Wc(n,t);s?e.addEventListener("click",function(){s.object.hide()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var n=e.getAttribute("data-drawer-show"),i=document.getElementById(n);if(i){var s=Wc(n,t);s?e.addEventListener("click",function(){s.object.show()}):console.error("Drawer with id ".concat(n," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(n," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=UO,window.initDrawers=HE);var du=globalThis&&globalThis.__assign||function(){return du=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},du.apply(this,arguments)},VC={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},FO=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=VC),this._items=e,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=du(du({},VC),n),this._init()}return t.prototype._init=function(){var e=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(n){n.triggerEl.addEventListener("click",function(){e.show(n.id)})}))},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype._setActiveTab=function(e){this._activeTab=e},t.prototype.getTab=function(e){return this._items.filter(function(n){return n.id===e})[0]},t.prototype.show=function(e,n){var i,s,r=this;n===void 0&&(n=!1);var o=this.getTab(e);o===this._activeTab&&!n||(this._items.map(function(a){var l,u;a!==o&&((l=a.triggerEl.classList).remove.apply(l,r._options.activeClasses.split(" ")),(u=a.triggerEl.classList).add.apply(u,r._options.inactiveClasses.split(" ")),a.targetEl.classList.add("hidden"),a.triggerEl.setAttribute("aria-selected","false"))}),(i=o.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(s=o.triggerEl.classList).remove.apply(s,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-selected","true"),o.targetEl.classList.remove("hidden"),this._setActiveTab(o),this._options.onShow(this,o))},t}();function qE(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var e=[],n=null;t.querySelectorAll('[role="tab"]').forEach(function(i){var s=i.getAttribute("aria-selected")==="true",r={id:i.getAttribute("data-tabs-target"),triggerEl:i,targetEl:document.querySelector(i.getAttribute("data-tabs-target"))};e.push(r),s&&(n=r.id)}),new FO(e,{defaultTabId:n})})}typeof window<"u"&&(window.Tabs=FO,window.initTabs=qE);var _r=globalThis&&globalThis.__assign||function(){return _r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},_r.apply(this,arguments)},Kc=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},uu={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},BO=function(){function t(e,n,i){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=uu),this._targetEl=e,this._triggerEl=n,this._options=_r(_r({},uu),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var e=this,n=this._getTriggerEvents();n.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()})}),n.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.hide()})})},t.prototype._createPopperInstance=function(){return GE(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(n){n.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(n){e._handleClickOutside(n,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,n){var i=e.target;i!==n&&!n.contains(i)&&!this._triggerEl.contains(i)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return _r(_r({},e),{modifiers:Kc(Kc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return _r(_r({},e),{modifiers:Kc(Kc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function YE(){document.querySelectorAll("[data-tooltip-target]").forEach(function(t){var e=t.getAttribute("data-tooltip-target"),n=document.getElementById(e);if(n){var i=t.getAttribute("data-tooltip-trigger"),s=t.getAttribute("data-tooltip-placement");new BO(n,t,{placement:s||uu.placement,triggerType:i||uu.triggerType})}else console.error('The tooltip element with id "'.concat(e,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=BO,window.initTooltips=YE);var hr=globalThis&&globalThis.__assign||function(){return hr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},hr.apply(this,arguments)},jc=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},Pl={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},GO=function(){function t(e,n,i){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=Pl),this._targetEl=e,this._triggerEl=n,this._options=hr(hr({},Pl),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var e=this,n=this._getTriggerEvents();n.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()}),e._targetEl.addEventListener(i,function(){e.show()})}),n.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},100)}),e._targetEl.addEventListener(i,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},100)})})},t.prototype._createPopperInstance=function(){return GE(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(n){n.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(n){e._handleClickOutside(n,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,n){var i=e.target;i!==n&&!n.contains(i)&&!this._triggerEl.contains(i)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return hr(hr({},e),{modifiers:jc(jc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return hr(hr({},e),{modifiers:jc(jc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t}();function $E(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var e=t.getAttribute("data-popover-target"),n=document.getElementById(e);if(n){var i=t.getAttribute("data-popover-trigger"),s=t.getAttribute("data-popover-placement"),r=t.getAttribute("data-popover-offset");new GO(n,t,{placement:s||Pl.placement,offset:r?parseInt(r):Pl.offset,triggerType:i||Pl.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=GO,window.initPopovers=$E);var pu=globalThis&&globalThis.__assign||function(){return pu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},pu.apply(this,arguments)},ib={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},VO=function(){function t(e,n,i,s){e===void 0&&(e=null),n===void 0&&(n=null),i===void 0&&(i=null),s===void 0&&(s=ib),this._parentEl=e,this._triggerEl=n,this._targetEl=i,this._options=pu(pu({},ib),s),this._visible=!1,this._init()}return t.prototype._init=function(){var e=this;if(this._triggerEl){var n=this._getTriggerEventTypes(this._options.triggerType);n.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()}),e._targetEl.addEventListener(i,function(){e.show()})}),n.hideEvents.forEach(function(i){e._parentEl.addEventListener(i,function(){e._parentEl.matches(":hover")||e.hide()})})}},t.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this._visible?this.hide():this.show()},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype._getTriggerEventTypes=function(e){switch(e){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},t}();function WE(){document.querySelectorAll("[data-dial-init]").forEach(function(t){var e=t.querySelector("[data-dial-toggle]");if(e){var n=e.getAttribute("data-dial-toggle"),i=document.getElementById(n);if(i){var s=e.getAttribute("data-dial-trigger");new VO(t,e,i,{triggerType:s||ib.triggerType})}else console.error("Dial with id ".concat(n," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(t.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=VO,window.initDials=WE);function zO(){NE(),OE(),IE(),ME(),VE(),zE(),HE(),qE(),YE(),$E(),WE()}typeof window<"u"&&(window.initFlowbite=zO);var OCt=new xxt("load",[NE,OE,IE,ME,VE,zE,HE,qE,YE,$E,WE]);OCt.init();const ICt="/assets/memory_icon-c56ac42c.svg",MCt="/assets/active-80ac3366.svg",DCt="/assets/inactive-36ac9976.svg",kCt="/assets/registry-382fcf02.svg";const Ft=t=>(yo("data-v-b8e854ae"),t=t(),vo(),t),LCt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},PCt={class:"flex flex-col text-center"},UCt={class:"flex flex-col text-center items-center"},FCt={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},BCt=Ft(()=>c("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Ti,alt:"Logo"},null,-1)),GCt={class:"flex flex-col items-start"},VCt={class:"text-2xl font-bold text-5xl drop-shadow-md align-middle"},zCt=Ft(()=>c("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),HCt=Ft(()=>c("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),qCt=Ft(()=>c("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"},null,-1)),YCt=Ft(()=>c("p",{class:"text-2xl mb-10 font-bold drop-shadow-md"},"Welcome",-1)),$Ct={role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},WCt={class:"text-2xl animate-pulse mt-2"},KCt=Ft(()=>c("i",{"data-feather":"chevron-right"},null,-1)),jCt=[KCt],QCt=Ft(()=>c("i",{"data-feather":"chevron-left"},null,-1)),XCt=[QCt],ZCt={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"},JCt={class:"text-light-text-panel dark:text-dark-text-panel bg-bg-light-panel sticky z-10 top-0 dark:bg-bg-dark-tone shadow-md"},e1t={class:"flex-row p-4 flex items-center gap-3 flex-0"},t1t=Ft(()=>c("i",{"data-feather":"plus"},null,-1)),n1t=[t1t],i1t=Ft(()=>c("i",{"data-feather":"check-square"},null,-1)),s1t=[i1t],r1t={class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},o1t=Ft(()=>c("i",{"data-feather":"database"},null,-1)),a1t=[o1t],l1t=Ft(()=>c("i",{"data-feather":"log-in"},null,-1)),c1t=[l1t],d1t=Ft(()=>c("i",{"data-feather":"folder"},null,-1)),u1t=[d1t],p1t={key:1,class:"dropdown"},_1t=Ft(()=>c("i",{"data-feather":"search"},null,-1)),h1t=[_1t],f1t={key:2,class:"flex gap-3 flex-1 items-center duration-75"},m1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),g1t=[m1t],b1t=Ft(()=>c("i",{"data-feather":"check"},null,-1)),E1t=[b1t],y1t=Ft(()=>c("i",{"data-feather":"hard-drive"},null,-1)),v1t=[y1t],S1t=Ft(()=>c("i",{"data-feather":"check-circle"},null,-1)),T1t=[S1t],x1t=Ft(()=>c("i",{"data-feather":"x-octagon"},null,-1)),C1t=[x1t],w1t=Ft(()=>c("i",{"data-feather":"book"},null,-1)),R1t=[w1t],A1t={key:7,title:"Loading..",class:"flex flex-row flex-grow justify-end"},N1t=Ft(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),O1t=[N1t],I1t={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},M1t={class:"p-4 pt-2"},D1t={class:"relative"},k1t=Ft(()=>c("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[c("div",{class:"scale-75"},[c("i",{"data-feather":"search"})])],-1)),L1t={class:"absolute inset-y-0 right-0 flex items-center pr-3"},P1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),U1t=[P1t],F1t={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},B1t={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},G1t={class:"flex flex-row flex-grow"},V1t={key:0},z1t={class:"flex flex-row"},H1t={key:0,class:"flex gap-3"},q1t=Ft(()=>c("i",{"data-feather":"trash"},null,-1)),Y1t=[q1t],$1t={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},W1t=Ft(()=>c("i",{"data-feather":"check"},null,-1)),K1t=[W1t],j1t=Ft(()=>c("i",{"data-feather":"x"},null,-1)),Q1t=[j1t],X1t={class:"flex gap-3"},Z1t=Ft(()=>c("i",{"data-feather":"codepen"},null,-1)),J1t=[Z1t],ewt=Ft(()=>c("i",{"data-feather":"folder"},null,-1)),twt=[ewt],nwt=Ft(()=>c("i",{"data-feather":"bookmark"},null,-1)),iwt=[nwt],swt=Ft(()=>c("i",{"data-feather":"list"},null,-1)),rwt=[swt],owt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},awt={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"},lwt=Ft(()=>c("p",{class:"px-3"},"No discussions are found",-1)),cwt=[lwt],dwt=Ft(()=>c("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)),uwt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},pwt={key:1,class:"relative flex flex-col flex-grow w-full"},_wt={class:"container pt-4 pb-50 mb-50 w-full"},hwt=Ft(()=>c("div",null,[c("br"),c("br"),c("br"),c("br"),c("br"),c("br"),c("br")],-1)),fwt=Ft(()=>c("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)),mwt={key:0,class:"flex flex-row items-center justify-center h-10"},gwt={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},bwt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},Ewt={setup(){},data(){return{memory_icon:ICt,active_skills:MCt,inactive_skills:DCt,skillsRegistry:kCt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,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,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1,discussion_id:0}},methods:{add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},addWebpage(){Se.post("/add_webpage",{client_id:this.client_id,url:this.$refs.web_url_input_box.inputText},{headers:this.posts_headers}).then(t=>{t&&t.status&&(console.log("Done"),this.recoverFiles())})},show_progress(t){this.progress_visibility_val=!0},hide_progress(t){this.progress_visibility_val=!1},update_progress(t){console.log("Progress update"),this.progress_value=t.value},onSettingsBinding(){try{this.isLoading=!0,Se.get("/get_active_binding_settings").then(t=>{this.isLoading=!1,t&&(t.data&&Object.keys(t.data).length>0?this.$store.state.universalForm.showForm(t.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{Se.post("/set_active_binding_settings",e).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses.
|
||
`+n,4,!1),this.isLoading=!1)})}catch(n){this.$store.state.toast.showToast(`Did not get binding settings responses.
|
||
Endpoint error: `+n.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(t){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+t.message,4,!1)}},showDatabaseSelector(){this.database_selectorDialogVisible=!0},async ondatabase_selectorDialogSelected(t){console.log("Selected:",t)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(t){if(this.database_selectorDialogVisible=!1,(await Se.post("/select_database",{client_id:this.client_id,name:t},{headers:this.posts_headers})).status){console.log("Selected database"),this.$store.state.config=await Se.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let n=await Se.get("/list_databases").data;console.log("New list of database: ",n),this.$store.state.databases=n,console.log("New list of database: ",this.$store.state.databases),location.reload()}},async addDiscussion2SkillsLibrary(){(await Se.post("/add_discussion_to_skills_library",{client_id:this.client_id},{headers:this.posts_headers})).status&&console.log("done")},async toggleSkillsLib(){this.$store.state.config.activate_skills_lib=!this.$store.state.config.activate_skills_lib,await this.applyConfiguration()},async showSkillsLib(){this.$refs.skills_lib.showSkillsLibrary()},async applyConfiguration(){this.loading=!0;const t=await Se.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config});this.loading=!1,t.data.status?this.$store.state.toast.showToast("Configuration changed successfully.",4,!0):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ge(()=>{He.replace()})},save_configuration(){this.showConfirmation=!1,Se.post("/save_settings",{}).then(t=>{if(t)return t.status?this.$store.state.toast.showToast("Settings saved!",4,!0):this.$store.state.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t.message,"save_configuration"),this.$store.state.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},showToastMessage(t,e,n){console.log("sending",t),this.$store.state.toast.showToast(t,e,n)},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),[]}},load_discussion(t,e){t&&(console.log("Loading discussion",t),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(t,this.loading),$e.on("discussion",n=>{console.log("Discussion recovered"),this.loading=!1,this.setDiscussionLoading(t,this.loading),n&&(this.discussionArr=n.filter(i=>i.message_type==this.msgTypes.MSG_TYPE_CHUNK||i.message_type==this.msgTypes.MSG_TYPE_FULL||i.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI||i.message_type==this.msgTypes.MSG_TYPE_CODE||i.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS||i.message_type==this.msgTypes.MSG_TYPE_UI),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),$e.off("discussion")}),$e.emit("load_discussion",{id:t}),console.log("here"))},recoverFiles(){console.log("Recovering files"),Se.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{this.$refs.chatBox.filesList=t.data.files,this.$refs.chatBox.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.$refs.chatBox.filesList}`)})},new_discussion(t){try{this.loading=!0,$e.on("discussion_created",e=>{$e.off("discussion_created"),this.list_discussions().then(()=>{const n=this.list.findIndex(s=>s.id==e.id),i=this.list[n];this.selectDiscussion(i),this.load_discussion(e.id,()=>{this.loading=!1,this.recoverFiles(),Ge(()=>{const s=document.getElementById("dis-"+e.id);this.scrollToElement(s),console.log("Scrolling tp "+s)})})})}),console.log("new_discussion ",t),$e.emit("new_discussion",{title:t})}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",{client_id:this.client_id,id:t},{headers:this.posts_headers}),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",{client_id:this.client_id,id:t,title:e},{headers:this.posts_headers});if(this.loading=!1,this.setDiscussionLoading(t,this.loading),n.status==200){const i=this.list.findIndex(r=>r.id==t),s=this.list[i];s.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 make_title(t){try{if(t){this.loading=!0,this.setDiscussionLoading(t,this.loading);const e=await Se.post("/make_title",{client_id:this.client_id,id:t},{headers:this.posts_headers});if(console.log("Making title:",e),this.loading=!1,this.setDiscussionLoading(t,this.loading),e.status==200){const n=this.list.findIndex(s=>s.id==t),i=this.list[n];i.title=e.data.title,this.tempList=this.list}}}catch(e){console.log("Error: Could not edit title",e.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async delete_message(t){try{console.log(typeof t),console.log(typeof this.client_id),console.log(t),console.log(this.client_id);const e=await Se.post("/delete_message",{client_id:this.client_id,id:t},{headers:this.posts_headers});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(this.discussionArr.length>0){const t=this.discussionArr[this.discussionArr.length-1];t.status_message="Generation canceled"}if($e.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.post("/message_rank_up",{client_id:this.client_id,id:t},{headers:this.posts_headers});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.post("/message_rank_down",{client_id:this.client_id,id:t},{headers:this.posts_headers});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async edit_message(t,e,n){try{console.log(typeof this.client_id),console.log(typeof t),console.log(typeof e),console.log(typeof{audio_url:n});const i=await Se.post("/edit_message",{client_id:this.client_id,id:t,message:e,metadata:[{audio_url:n}]},{headers:this.posts_headers});if(i)return i.data}catch(i){return console.log("Error: Could not update message",i.message),{}}},async export_multiple_discussions(t,e){try{if(t.length>0){const n=await Se.post("/export_multiple_discussions",{client_id:this.$store.state.client_id,discussion_ids:t,export_format:e},{headers:this.posts_headers});if(n)return n.data}}catch(n){return console.log("Error: Could not export multiple discussions",n.message),{}}},async import_multiple_discussions(t){try{if(t.length>0){console.log("sending import",t);const e=await Se.post("/import_multiple_discussions",{client_id:this.$store.state.client_id,jArray:t},{headers:this.posts_headers});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){if(this.isGenerating){this.$store.state.toast.showToast("You are currently generating a text. Please wait for text generation to finish or stop it before trying to select another discussion",4,!1);return}t&&(this.currentDiscussion===void 0?(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),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.recoverFiles())})):this.currentDiscussion.id!=t.id&&(console.log("item",t),console.log("this.currentDiscussion",this.currentDiscussion),this.currentDiscussion=t,console.log("this.currentDiscussion",this.currentDiscussion),this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),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.recoverFiles()})),Ge(()=>{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{console.log("error")}},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:[],html_js_s:[],status_message:"Warming up"};this.discussionArr.push(e),Ge(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},updateLastUserMsg(t){const e=this.discussionArr.indexOf(i=>i.id=t.user_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_id,model:t.model,personality:t.personality,sender:t.user,steps:[]};e!==-1&&(this.discussionArr[e]=n)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.state.isConnected=!0,this.$store.state.client_id=$e.id,!0},socketIODisconnected(){return console.log("socketIOConnected"),this.currentDiscussion=null,this.$store.dispatch("refreshModels"),this.$store.state.isConnected=!1,!0},new_message(t){t.sender_type==this.SENDER_TYPES_AI&&(this.isGenerating=!0),console.log("Making a new message"),console.log("New message",t);let e={sender:t.sender,message_type:t.message_type,sender_type:t.sender_type,content:t.content,id:t.id,discussion_id:t.discussion_id,parent_id:t.parent_id,binding:t.binding,model:t.model,personality:t.personality,created_at:t.created_at,finished_generating_at:t.finished_generating_at,rank:0,ui:t.ui,steps:[],parameters:t.parameters,metadata:t.metadata,open:t.open};e.status_message="Warming up",console.log(e),this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,t.message),console.log("infos",t)},async talk(t){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await Se.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(s=>s===t.full_path),i={client_id:this.$store.state.client_id,id:n};e=await Se.post("/select_personality",i),console.log("Generating message from ",e.data.status),$e.emit("generate_msg_from",{id:-1})}},createEmptyUserMessage(t){$e.emit("create_empty_message",{type:0,message:t})},createEmptyAIMessage(){$e.emit("create_empty_message",{type:1})},sendMsg(t,e){if(!t){this.$store.state.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(n=>{if(n)if(n.data.status)console.log("Already generating");else{e=="internet"?$e.emit("generate_msg_with_internet",{prompt:t}):$e.emit("generate_msg",{prompt:t});let i=0;this.discussionArr.length>0&&(i=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let s={message:t,id:i,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.msgTypes.MSG_TYPE_FULL,sender_type:this.senderTypes.SENDER_TYPES_USER,content:t,id:i,discussion_id:this.discussion_id,parent_id:i,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(s)}}).catch(n=>{console.log("Error: Could not get generation status",n)})},sendCmd(t){this.isGenerating=!0,$e.emit("execute_command",{command:t,parameters:[]})},notify(t){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Ge(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),t.display_type==0?this.$store.state.toast.showToast(t.content,t.duration,t.notification_type):t.display_type==1?this.$store.state.messageBox.showMessage(t.content):t.display_type==2?(this.$store.state.messageBox.hideMessage(),this.$store.state.yesNoDialog.askQuestion(t.content,"Yes","No").then(e=>{$e.emit("yesNoRes",{yesRes:e})})):t.display_type==3?this.$store.state.messageBox.showBlockingMessage(t.content):t.display_type==4&&this.$store.state.messageBox.hideMessage(),this.chime.play()},streamMessageContent(t){if(this.discussion_id=t.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(i=>i.id==t.id),n=this.discussionArr[e];if(n&&(t.message_type==this.msgTypes.MSG_TYPE_FULL||t.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))this.isGenerating=!0,n.content=t.content,n.created_at=t.created_at,n.started_generating_at=t.started_generating_at,n.nb_tokens=t.nb_tokens,n.finished_generating_at=t.finished_generating_at;else if(n&&t.message_type==this.msgTypes.MSG_TYPE_CHUNK)this.isGenerating=!0,n.content+=t.content,n.created_at=t.created_at,n.started_generating_at=t.started_generating_at,n.nb_tokens=t.nb_tokens,n.finished_generating_at=t.finished_generating_at;else if(t.message_type==this.msgTypes.MSG_TYPE_STEP)n.status_message=t.content,n.steps.push({message:t.content,done:!0,status:!0,type:"instantanious"});else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_START)n.status_message=t.content,n.steps.push({message:t.content,done:!1,status:!0,type:"start_end"});else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_END){console.log("received step end",t);try{n.steps.forEach(i=>{if(i.message===t.content){i.done=!0;try{console.log(t.parameters);const s=t.parameters;s!==void 0&&(i.status=s.status,console.log(s))}catch(s){console.error("Error parsing JSON:",s.message)}}})}catch{console.log("error")}}else t.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(t.metadata),n.metadata=t.metadata):t.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),n.ui=t.ui,console.log(n.ui)):t.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$store.state.toast.showToast(t.content,5,!1)}this.$nextTick(()=>{He.replace()})},async changeTitleUsingUserMSG(t,e){const n=this.list.findIndex(s=>s.id==t),i=this.list[n];e&&(i.title=e,this.tempList=this.list,await this.edit_title(t,e))},async createNewDiscussion(){this.new_discussion(null)},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(i=>i.id==t),n=this.list[e];n&&this.selectDiscussion(n)}},onCopyPersonalityName(t){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},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;e<t.length;e++){const n=t[e];await this.delete_discussion(n.id),this.currentDiscussion.id==n.id&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(i=>i.id==n.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$store.state.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.$store.state.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async openFolder(t){const e=JSON.stringify({client_id:this.$store.state.client_id,discussion_id:t.id});console.log(e),await Se.post("/open_discussion_folder",e,{method:"POST",headers:{"Content-Type":"application/json"}})},async editTitle(t){const e=this.list.findIndex(i=>i.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},async makeTitle(t){this.list.findIndex(e=>e.id==t.id),await this.make_title(t.id)},checkUncheckDiscussion(t,e){const n=this.list.findIndex(s=>s.id==e),i=this.list[n];i.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<this.tempList.length;t++)this.tempList[t].checkBoxValue=!this.isSelectAll;this.tempList=this.list,this.isSelectAll=!this.isSelectAll},createDiscussionList(t){if(t){const e=t.map(n=>({id:n.id,title:n.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(n,i){return i.id-n.id});this.list=e,this.tempList=e}},setDiscussionLoading(t,e){try{const n=this.list.findIndex(s=>s.id==t),i=this.list[n];i.loading=e}catch{console.log("Error setting discussion loading")}},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(i=>i.id==t)];n.rank=e.new_rank}).catch(()=>{this.$store.state.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(i=>i.id==t)];n.rank=e.new_rank}).catch(()=>{this.$store.state.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(t,e,n){await this.edit_message(t,e,n).then(()=>{const i=this.discussionArr[this.discussionArr.findIndex(s=>s.id==t)];i.content=e}).catch(()=>{this.$store.state.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(t,e,n){Ge(()=>{He.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(i=>{i&&(i.data.status?(this.$store.state.toast.showToast("The server is busy. Wait",4,!1),console.log("Already generating")):$e.emit("generate_msg_from",{prompt:e,id:t,msg_type:n}))}).catch(i=>{console.log("Error: Could not get generation status",i)})},continueMessage(t,e){Ge(()=>{He.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(n=>{n&&(n.data.status?console.log("Already generating"):$e.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"),Ge(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},finalMsgEvent(t){let e=0;this.discussion_id=t.discussion_id,this.currentDiscussion.id==this.discussion_id&&(e=this.discussionArr.findIndex(i=>i.id==t.id),this.discussionArr[e].content=t.content,this.discussionArr[e].finished_generating_at=t.finished_generating_at),Ge(()=>{const i=document.getElementById("messages-list");this.scrollBottom(i),this.recoverFiles()}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play(),e=this.discussionArr.findIndex(i=>i.id==t.id);const n=this.discussionArr[e];if(n.status_message="Done",console.log("final",t),this.$store.state.config.auto_speak&&this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode){e=this.discussionArr.findIndex(s=>s.id==t.id);let i=this.$refs["msg-"+t.id][0];console.log(i),i.speak()}},copyToClipBoard(t){let e="";if(t.message.content&&(e=t.message.content),this.$store.state.config.copy_to_clipboard_add_all_details){let n="";t.message.binding&&(n=`Binding: ${t.message.binding}`);let i="";t.message.personality&&(i=`
|
||
Personality: ${t.message.personality}`);let s="";t.created_at_parsed&&(s=`
|
||
Created: ${t.created_at_parsed}`);let r="";t.message.model&&(r=`Model: ${t.message.model}`);let o="";t.message.seed&&(o=`Seed: ${t.message.seed}`);let a="";t.time_spent&&(a=`
|
||
Time spent: ${t.time_spent}`);let l="";l=`${n} ${r} ${o} ${a}`.trim();const u=`${t.message.sender}${i}${s}
|
||
|
||
${e}
|
||
|
||
${l}`;navigator.clipboard.writeText(u)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Ge(()=>{He.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)},saveMarkdowntoFile(t,e){e=e||"data.md";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([t],{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.$store.state.toast.showToast(`Could not parse JSON.
|
||
`+e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const i=new FileReader;i.onload=s=>e(this.parseJsonObj(s.target.result)),i.onerror=s=>n(s),i.readAsText(t)})},async exportDiscussionsAsMarkdown(){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(),i=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),u="discussions_export_"+(n+"."+i+"."+s+"."+r+o+a)+".md";this.loading=!0;const d=await this.export_multiple_discussions(t,"markdown");d?(this.saveMarkdowntoFile(d,u),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){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(),i=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),u="discussions_export_"+(n+"."+i+"."+s+"."+r+o+a)+".json";this.loading=!0;const d=await this.export_multiple_discussions(t,"json");d?(this.saveJSONtoFile(d,u),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(t){},async importDiscussions(t){const e=await this.parseJsonFile(t.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.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){if(t.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(i=>i.name===t),n=this.personalityAvatars[e];if(n)return console.log("Avatar",n.avatar),n.avatar},setFileListChat(t){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox
|
||
`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(t){if(t.length>1){this.$store.state.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.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){const e=(await Se.get("/get_versionID")).data.versionId;for(this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{He.replace()}),$e.on("disucssion_renamed",n=>{console.log("Received new title",n.discussion_id,n.title);const i=this.list.findIndex(r=>r.id==n.discussion_id),s=this.list[i];s.title=n.title}),$e.onclose=n=>{console.log("WebSocket connection closed:",n.code,n.reason),this.socketIODisconnected()},$e.on("connect_error",n=>{n.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",n),this.$store.state.isConnected=!1}),$e.onerror=n=>{console.log("WebSocket connection error:",n.code,n.reason),this.socketIODisconnected(),$e.disconnect()},$e.on("connected",this.socketIOConnected),$e.on("disconnected",this.socketIODisconnected),console.log("Added events"),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),$e.on("show_progress",this.show_progress),$e.on("hide_progress",this.hide_progress),$e.on("update_progress",this.update_progress),$e.on("notification",this.notify),$e.on("new_message",this.new_message),$e.on("update_message",this.streamMessageContent),$e.on("close_message",this.finalMsgEvent),$e.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.isCreated=!0},async mounted(){$e.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{He.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ge(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:RE,Message:yO,ChatBox:vO,WelcomeComponent:SO,ChoiceDialog:wE,ProgressBar:nc,InputBox:gO,SkillsLibraryViewer:bO},watch:{progress_visibility_val(t){console.log("progress_visibility changed")},filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){Ge(()=>{He.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){Ge(()=>{He.replace()})},isSearch(){Ge(()=>{He.replace()})}},computed:{...Sk({versionId:t=>t.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+this.$store.state.version:""}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(t){this.$store.state.isModelOk=t}},isGenerating:{get(){return this.$store.state.isGenerating},set(t){this.$store.state.isGenerating=t}},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady:{get(){return this.$store.state.ready}},databases(){return this.$store.state.databases},client_id(){return $e.id},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 Ge(()=>{He.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},ywt=Object.assign(Ewt,{__name:"DiscussionsView",setup(t){return Ws(()=>{zO()}),Se.defaults.baseURL="/",(e,n)=>(w(),A(Ye,null,[Te(cs,{name:"fade-and-fly"},{default:We(()=>[e.isReady?V("",!0):(w(),A("div",LCt,[c("div",PCt,[c("div",UCt,[c("div",FCt,[BCt,c("div",GCt,[c("p",VCt,"LoLLMS "+he(e.version_info),1),zCt,HCt])]),qCt,YCt,c("div",$Ct,[Te(nc,{ref:"loading_progress",progress:e.loading_progress},null,8,["progress"]),c("p",WCt,he(e.loading_infos)+" ...",1)])])])]))]),_:1}),e.isReady?(w(),A("button",{key:0,onClick:n[0]||(n[0]=(...i)=>e.togglePanel&&e.togglePanel(...i)),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"},[G(c("div",null,jCt,512),[[Mt,e.panelCollapsed]]),G(c("div",null,XCt,512),[[Mt,!e.panelCollapsed]])])):V("",!0),Te(cs,{name:"slide-right"},{default:We(()=>[e.showPanel?(w(),A("div",ZCt,[c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[28]||(n[28]=be(i=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",JCt,[c("div",e1t,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[1]||(n[1]=i=>e.createNewDiscussion())},n1t),c("button",{class:ze(["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]=i=>e.isCheckbox=!e.isCheckbox)},s1t,2),c("button",r1t,[c("i",{"data-feather":"trash-2",onClick:n[3]||(n[3]=be(()=>{},["stop"]))})]),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:n[4]||(n[4]=be(i=>e.database_selectorDialogVisible=!0,["stop"]))},a1t),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[5]||(n[5]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},null,544),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[6]||(n[6]=be(i=>e.$refs.fileDialog.click(),["stop"]))},c1t),c("input",{type:"file",ref:"bundleLoadingDialog",style:{display:"none"},onChange:n[7]||(n[7]=(...i)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...i))},null,544),e.showSaveConfirmation?V("",!0):(w(),A("button",{key:0,title:"Import discussion bundle",onClick:n[8]||(n[8]=be(i=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-2xl hover:text-secondary duration-75 active:scale-90"},u1t)),e.isOpen?(w(),A("div",p1t,[c("button",{onClick:n[9]||(n[9]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},"LOLLMS"),c("button",{onClick:n[10]||(n[10]=(...i)=>e.importChatGPT&&e.importChatGPT(...i))},"ChatGPT")])):V("",!0),c("button",{class:ze(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[11]||(n[11]=i=>e.isSearch=!e.isSearch)},h1t,2),e.showSaveConfirmation?(w(),A("div",f1t,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:n[12]||(n[12]=be(i=>e.showSaveConfirmation=!1,["stop"]))},g1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:n[13]||(n[13]=be(i=>e.save_configuration(),["stop"]))},E1t)])):V("",!0),e.loading?V("",!0):(w(),A("button",{key:3,type:"button",onClick:n[14]||(n[14]=be((...i)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...i),["stop"])),title:"Add this discussion content to skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},v1t)),!e.loading&&e.$store.state.config.activate_skills_lib?(w(),A("button",{key:4,type:"button",onClick:n[15]||(n[15]=be((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is activated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},T1t)):V("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(w(),A("button",{key:5,type:"button",onClick:n[16]||(n[16]=be((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is deactivated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},C1t)):V("",!0),e.loading?V("",!0):(w(),A("button",{key:6,type:"button",onClick:n[17]||(n[17]=be((...i)=>e.showSkillsLib&&e.showSkillsLib(...i),["stop"])),title:"Show Skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},R1t)),e.loading?(w(),A("div",A1t,O1t)):V("",!0)]),e.isSearch?(w(),A("div",I1t,[c("div",M1t,[c("div",D1t,[k1t,c("div",L1t,[c("div",{class:ze(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[18]||(n[18]=i=>e.filterTitle="")},U1t,2)]),G(c("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[19]||(n[19]=i=>e.filterTitle=i),onInput:n[20]||(n[20]=i=>e.filterDiscussions())},null,544),[[we,e.filterTitle]])])])])):V("",!0),e.isCheckbox?(w(),A("hr",F1t)):V("",!0),e.isCheckbox?(w(),A("div",B1t,[c("div",G1t,[e.selectedDiscussions.length>0?(w(),A("p",V1t,"Selected: "+he(e.selectedDiscussions.length),1)):V("",!0)]),c("div",z1t,[e.selectedDiscussions.length>0?(w(),A("div",H1t,[e.showConfirmation?V("",!0):(w(),A("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[21]||(n[21]=be(i=>e.showConfirmation=!0,["stop"]))},Y1t)),e.showConfirmation?(w(),A("div",$1t,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[22]||(n[22]=be((...i)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...i),["stop"]))},K1t),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[23]||(n[23]=be(i=>e.showConfirmation=!1,["stop"]))},Q1t)])):V("",!0)])):V("",!0),c("div",X1t,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:n[24]||(n[24]=be((...i)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...i),["stop"]))},J1t),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[25]||(n[25]=be((...i)=>e.exportDiscussions&&e.exportDiscussions(...i),["stop"]))},twt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[26]||(n[26]=be((...i)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...i),["stop"]))},iwt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[27]||(n[27]=be((...i)=>e.selectAllDiscussions&&e.selectAllDiscussions(...i),["stop"]))},rwt)])])])):V("",!0)]),c("div",owt,[c("div",{class:ze(["mx-4 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:ze([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full"])},[e.list.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(e.list,(i,s)=>(w(),xt(RE,{key:i.id,id:i.id,title:i.title,selected:e.currentDiscussion.id==i.id,loading:i.loading,isCheckbox:e.isCheckbox,checkBoxValue:i.checkBoxValue,onSelect:r=>e.selectDiscussion(i),onDelete:r=>e.deleteDiscussion(i.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):V("",!0),e.list.length<1?(w(),A("div",awt,cwt)):V("",!0),dwt],2)],2)])],32),c("div",{class:"absolute h-15 bottom-0 left-0 w-full bg-bg-light-panel dark:bg-bg-dark-tone light-text-panel py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:n[29]||(n[29]=(...i)=>e.showDatabaseSelector&&e.showDatabaseSelector(...i))},[c("p",uwt,he(e.formatted_database_name.replace("_"," ")),1)])])):V("",!0)]),_:1}),e.isReady?(w(),A("div",pwt,[c("div",{id:"messages-list",class:ze(["w-full 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":""])},[c("div",_wt,[e.discussionArr.length>0?(w(),xt(os,{key:0,name:"list"},{default:We(()=>[(w(!0),A(Ye,null,lt(e.discussionArr,(i,s)=>(w(),xt(yO,{key:i.id,message:i,id:"msg-"+i.id,ref_for:!0,ref:"msg-"+i.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(i.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):V("",!0),e.currentDiscussion.id?V("",!0):(w(),xt(SO,{key:1})),hwt]),fwt],2),e.currentDiscussion.id?(w(),A("div",mwt,[Te(vO,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):V("",!0)])):V("",!0),Te(wE,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"]),G(c("div",gwt,[Te(nc,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",bwt,he(e.loading_infos)+" ...",1)],512),[[Mt,e.progress_visibility]]),Te(gO,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),Te(bO,{ref:"skills_lib"},null,512)],64))}}),vwt=bt(ywt,[["__scopeId","data-v-b8e854ae"]]);/**
|
||
* @license
|
||
* Copyright 2010-2023 Three.js Authors
|
||
* SPDX-License-Identifier: MIT
|
||
*/const KE="159",Swt=0,zC=1,Twt=2,HO=1,xwt=2,Ms=3,Ys=0,Zn=1,es=2,Sr=0,aa=1,HC=2,qC=3,YC=4,Cwt=5,Xr=100,wwt=101,Rwt=102,$C=103,WC=104,Awt=200,Nwt=201,Owt=202,Iwt=203,sb=204,rb=205,Mwt=206,Dwt=207,kwt=208,Lwt=209,Pwt=210,Uwt=211,Fwt=212,Bwt=213,Gwt=214,Vwt=0,zwt=1,Hwt=2,_u=3,qwt=4,Ywt=5,$wt=6,Wwt=7,jE=0,Kwt=1,jwt=2,Tr=0,Qwt=1,Xwt=2,Zwt=3,Jwt=4,eRt=5,KC="attached",tRt="detached",qO=300,Ta=301,xa=302,ob=303,ab=304,lp=306,Ca=1e3,mi=1001,hu=1002,yn=1003,lb=1004,Bd=1005,jn=1006,YO=1007,fo=1008,xr=1009,nRt=1010,iRt=1011,QE=1012,$O=1013,br=1014,Ps=1015,rc=1016,WO=1017,KO=1018,oo=1020,sRt=1021,gi=1023,rRt=1024,oRt=1025,ao=1026,wa=1027,aRt=1028,jO=1029,lRt=1030,QO=1031,XO=1033,Pm=33776,Um=33777,Fm=33778,Bm=33779,jC=35840,QC=35841,XC=35842,ZC=35843,ZO=36196,JC=37492,e1=37496,t1=37808,n1=37809,i1=37810,s1=37811,r1=37812,o1=37813,a1=37814,l1=37815,c1=37816,d1=37817,u1=37818,p1=37819,_1=37820,h1=37821,Gm=36492,f1=36494,m1=36495,cRt=36283,g1=36284,b1=36285,E1=36286,oc=2300,Ra=2301,Vm=2302,y1=2400,v1=2401,S1=2402,dRt=2500,uRt=0,JO=1,cb=2,eI=3e3,lo=3001,pRt=3200,_Rt=3201,XE=0,hRt=1,bi="",on="srgb",On="srgb-linear",ZE="display-p3",cp="display-p3-linear",fu="linear",Zt="srgb",mu="rec709",gu="p3",Oo=7680,T1=519,fRt=512,mRt=513,gRt=514,tI=515,bRt=516,ERt=517,yRt=518,vRt=519,db=35044,x1="300 es",ub=1035,Us=2e3,bu=2001;class Ka{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(n)===-1&&i[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const s=this._listeners[e];if(s!==void 0){const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const s=i.slice(0);for(let r=0,o=s.length;r<o;r++)s[r].call(this,e);e.target=null}}}const Mn=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let C1=1234567;const Ul=Math.PI/180,Aa=180/Math.PI;function zi(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(Mn[t&255]+Mn[t>>8&255]+Mn[t>>16&255]+Mn[t>>24&255]+"-"+Mn[e&255]+Mn[e>>8&255]+"-"+Mn[e>>16&15|64]+Mn[e>>24&255]+"-"+Mn[n&63|128]+Mn[n>>8&255]+"-"+Mn[n>>16&255]+Mn[n>>24&255]+Mn[i&255]+Mn[i>>8&255]+Mn[i>>16&255]+Mn[i>>24&255]).toLowerCase()}function Ln(t,e,n){return Math.max(e,Math.min(n,t))}function JE(t,e){return(t%e+e)%e}function SRt(t,e,n,i,s){return i+(t-e)*(s-i)/(n-e)}function TRt(t,e,n){return t!==e?(n-t)/(e-t):0}function Fl(t,e,n){return(1-n)*t+n*e}function xRt(t,e,n,i){return Fl(t,e,1-Math.exp(-n*i))}function CRt(t,e=1){return e-Math.abs(JE(t,e*2)-e)}function wRt(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function RRt(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function ARt(t,e){return t+Math.floor(Math.random()*(e-t+1))}function NRt(t,e){return t+Math.random()*(e-t)}function ORt(t){return t*(.5-Math.random())}function IRt(t){t!==void 0&&(C1=t);let e=C1+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function MRt(t){return t*Ul}function DRt(t){return t*Aa}function pb(t){return(t&t-1)===0&&t!==0}function kRt(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Eu(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function LRt(t,e,n,i,s){const r=Math.cos,o=Math.sin,a=r(n/2),l=o(n/2),u=r((e+i)/2),d=o((e+i)/2),h=r((e-i)/2),f=o((e-i)/2),_=r((i-e)/2),m=o((i-e)/2);switch(s){case"XYX":t.set(a*d,l*h,l*f,a*u);break;case"YZY":t.set(l*f,a*d,l*h,a*u);break;case"ZXZ":t.set(l*h,l*f,a*d,a*u);break;case"XZX":t.set(a*d,l*m,l*_,a*u);break;case"YXY":t.set(l*_,a*d,l*m,a*u);break;case"ZYZ":t.set(l*m,l*_,a*d,a*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function ts(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Ht(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const PRt={DEG2RAD:Ul,RAD2DEG:Aa,generateUUID:zi,clamp:Ln,euclideanModulo:JE,mapLinear:SRt,inverseLerp:TRt,lerp:Fl,damp:xRt,pingpong:CRt,smoothstep:wRt,smootherstep:RRt,randInt:ARt,randFloat:NRt,randFloatSpread:ORt,seededRandom:IRt,degToRad:MRt,radToDeg:DRt,isPowerOfTwo:pb,ceilPowerOfTwo:kRt,floorPowerOfTwo:Eu,setQuaternionFromProperEuler:LRt,normalize:Ht,denormalize:ts};class It{constructor(e=0,n=0){It.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,i=this.y,s=e.elements;return this.x=s[0]*n+s[3]*i+s[6],this.y=s[1]*n+s[4]*i+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(Ln(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y;return n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const i=Math.cos(n),s=Math.sin(n),r=this.x-e.x,o=this.y-e.y;return this.x=r*i-o*s+e.x,this.y=r*s+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class wt{constructor(e,n,i,s,r,o,a,l,u){wt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,i,s,r,o,a,l,u)}set(e,n,i,s,r,o,a,l,u){const d=this.elements;return d[0]=e,d[1]=s,d[2]=a,d[3]=n,d[4]=r,d[5]=l,d[6]=i,d[7]=o,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],this}extractBasis(e,n,i){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,s=n.elements,r=this.elements,o=i[0],a=i[3],l=i[6],u=i[1],d=i[4],h=i[7],f=i[2],_=i[5],m=i[8],E=s[0],b=s[3],g=s[6],y=s[1],v=s[4],S=s[7],C=s[2],T=s[5],O=s[8];return r[0]=o*E+a*y+l*C,r[3]=o*b+a*v+l*T,r[6]=o*g+a*S+l*O,r[1]=u*E+d*y+h*C,r[4]=u*b+d*v+h*T,r[7]=u*g+d*S+h*O,r[2]=f*E+_*y+m*C,r[5]=f*b+_*v+m*T,r[8]=f*g+_*S+m*O,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8];return n*o*d-n*a*u-i*r*d+i*a*l+s*r*u-s*o*l}invert(){const e=this.elements,n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=d*o-a*u,f=a*l-d*r,_=u*r-o*l,m=n*h+i*f+s*_;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const E=1/m;return e[0]=h*E,e[1]=(s*u-d*i)*E,e[2]=(a*i-s*o)*E,e[3]=f*E,e[4]=(d*n-s*l)*E,e[5]=(s*r-a*n)*E,e[6]=_*E,e[7]=(i*l-u*n)*E,e[8]=(o*n-i*r)*E,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,i,s,r,o,a){const l=Math.cos(r),u=Math.sin(r);return this.set(i*l,i*u,-i*(l*o+u*a)+o+e,-s*u,s*l,-s*(-u*o+l*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(zm.makeScale(e,n)),this}rotate(e){return this.premultiply(zm.makeRotation(-e)),this}translate(e,n){return this.premultiply(zm.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,i,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,i=e.elements;for(let s=0;s<9;s++)if(n[s]!==i[s])return!1;return!0}fromArray(e,n=0){for(let i=0;i<9;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const zm=new wt;function nI(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function ac(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function URt(){const t=ac("canvas");return t.style.display="block",t}const w1={};function Bl(t){t in w1||(w1[t]=!0,console.warn(t))}const R1=new wt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),A1=new wt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Qc={[On]:{transfer:fu,primaries:mu,toReference:t=>t,fromReference:t=>t},[on]:{transfer:Zt,primaries:mu,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[cp]:{transfer:fu,primaries:gu,toReference:t=>t.applyMatrix3(A1),fromReference:t=>t.applyMatrix3(R1)},[ZE]:{transfer:Zt,primaries:gu,toReference:t=>t.convertSRGBToLinear().applyMatrix3(A1),fromReference:t=>t.applyMatrix3(R1).convertLinearToSRGB()}},FRt=new Set([On,cp]),Gt={enabled:!0,_workingColorSpace:On,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!FRt.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const i=Qc[e].toReference,s=Qc[n].fromReference;return s(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Qc[t].primaries},getTransfer:function(t){return t===bi?fu:Qc[t].transfer}};function la(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function Hm(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let Io;class iI{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Io===void 0&&(Io=ac("canvas")),Io.width=e.width,Io.height=e.height;const i=Io.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),n=Io}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=ac("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),r=s.data;for(let o=0;o<r.length;o++)r[o]=la(r[o]/255)*255;return i.putImageData(s,0,0),n}else if(e.data){const n=e.data.slice(0);for(let i=0;i<n.length;i++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[i]=Math.floor(la(n[i]/255)*255):n[i]=la(n[i]);return{data:n,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let BRt=0;class sI{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:BRt++}),this.uuid=zi(),this.data=e,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const i={uuid:this.uuid,url:""},s=this.data;if(s!==null){let r;if(Array.isArray(s)){r=[];for(let o=0,a=s.length;o<a;o++)s[o].isDataTexture?r.push(qm(s[o].image)):r.push(qm(s[o]))}else r=qm(s);i.url=r}return n||(e.images[this.uuid]=i),i}}function qm(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?iI.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let GRt=0;class Nn extends Ka{constructor(e=Nn.DEFAULT_IMAGE,n=Nn.DEFAULT_MAPPING,i=mi,s=mi,r=jn,o=fo,a=gi,l=xr,u=Nn.DEFAULT_ANISOTROPY,d=bi){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:GRt++}),this.uuid=zi(),this.name="",this.source=new sI(e),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=i,this.wrapT=s,this.magFilter=r,this.minFilter=o,this.anisotropy=u,this.format=a,this.internalFormat=null,this.type=l,this.offset=new It(0,0),this.repeat=new It(1,1),this.center=new It(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new wt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,typeof d=="string"?this.colorSpace=d:(Bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=d===lo?on:bi),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),n||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==qO)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ca:e.x=e.x-Math.floor(e.x);break;case mi:e.x=e.x<0?0:1;break;case hu:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Ca:e.y=e.y-Math.floor(e.y);break;case mi:e.y=e.y<0?0:1;break;case hu:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===on?lo:eI}set encoding(e){Bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===lo?on:bi}}Nn.DEFAULT_IMAGE=null;Nn.DEFAULT_MAPPING=qO;Nn.DEFAULT_ANISOTROPY=1;class Wt{constructor(e=0,n=0,i=0,s=1){Wt.prototype.isVector4=!0,this.x=e,this.y=n,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,i,s){return this.x=e,this.y=n,this.z=i,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,i=this.y,s=this.z,r=this.w,o=e.elements;return this.x=o[0]*n+o[4]*i+o[8]*s+o[12]*r,this.y=o[1]*n+o[5]*i+o[9]*s+o[13]*r,this.z=o[2]*n+o[6]*i+o[10]*s+o[14]*r,this.w=o[3]*n+o[7]*i+o[11]*s+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,i,s,r;const l=e.elements,u=l[0],d=l[4],h=l[8],f=l[1],_=l[5],m=l[9],E=l[2],b=l[6],g=l[10];if(Math.abs(d-f)<.01&&Math.abs(h-E)<.01&&Math.abs(m-b)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+E)<.1&&Math.abs(m+b)<.1&&Math.abs(u+_+g-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const v=(u+1)/2,S=(_+1)/2,C=(g+1)/2,T=(d+f)/4,O=(h+E)/4,k=(m+b)/4;return v>S&&v>C?v<.01?(i=0,s=.707106781,r=.707106781):(i=Math.sqrt(v),s=T/i,r=O/i):S>C?S<.01?(i=.707106781,s=0,r=.707106781):(s=Math.sqrt(S),i=T/s,r=k/s):C<.01?(i=.707106781,s=.707106781,r=0):(r=Math.sqrt(C),i=O/r,s=k/r),this.set(i,s,r,n),this}let y=Math.sqrt((b-m)*(b-m)+(h-E)*(h-E)+(f-d)*(f-d));return Math.abs(y)<.001&&(y=1),this.x=(b-m)/y,this.y=(h-E)/y,this.z=(f-d)/y,this.w=Math.acos((u+_+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this.w=e.w+(n.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class VRt extends Ka{constructor(e=1,n=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new Wt(0,0,e,n),this.scissorTest=!1,this.viewport=new Wt(0,0,e,n);const s={width:e,height:n,depth:1};i.encoding!==void 0&&(Bl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===lo?on:bi),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:jn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new Nn(s,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,n,i=1){(this.width!==e||this.height!==n||this.depth!==i)&&(this.width=e,this.height=n,this.depth=i,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const n=Object.assign({},e.texture.image);return this.texture.source=new sI(n),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class mo extends VRt{constructor(e=1,n=1,i={}){super(e,n,i),this.isWebGLRenderTarget=!0}}class rI extends Nn{constructor(e=null,n=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:i,depth:s},this.magFilter=yn,this.minFilter=yn,this.wrapR=mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class zRt extends Nn{constructor(e=null,n=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:i,depth:s},this.magFilter=yn,this.minFilter=yn,this.wrapR=mi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ir{constructor(e=0,n=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=i,this._w=s}static slerpFlat(e,n,i,s,r,o,a){let l=i[s+0],u=i[s+1],d=i[s+2],h=i[s+3];const f=r[o+0],_=r[o+1],m=r[o+2],E=r[o+3];if(a===0){e[n+0]=l,e[n+1]=u,e[n+2]=d,e[n+3]=h;return}if(a===1){e[n+0]=f,e[n+1]=_,e[n+2]=m,e[n+3]=E;return}if(h!==E||l!==f||u!==_||d!==m){let b=1-a;const g=l*f+u*_+d*m+h*E,y=g>=0?1:-1,v=1-g*g;if(v>Number.EPSILON){const C=Math.sqrt(v),T=Math.atan2(C,g*y);b=Math.sin(b*T)/C,a=Math.sin(a*T)/C}const S=a*y;if(l=l*b+f*S,u=u*b+_*S,d=d*b+m*S,h=h*b+E*S,b===1-a){const C=1/Math.sqrt(l*l+u*u+d*d+h*h);l*=C,u*=C,d*=C,h*=C}}e[n]=l,e[n+1]=u,e[n+2]=d,e[n+3]=h}static multiplyQuaternionsFlat(e,n,i,s,r,o){const a=i[s],l=i[s+1],u=i[s+2],d=i[s+3],h=r[o],f=r[o+1],_=r[o+2],m=r[o+3];return e[n]=a*m+d*h+l*_-u*f,e[n+1]=l*m+d*f+u*h-a*_,e[n+2]=u*m+d*_+a*f-l*h,e[n+3]=d*m-a*h-l*f-u*_,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,i,s){return this._x=e,this._y=n,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n){const i=e._x,s=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,u=a(i/2),d=a(s/2),h=a(r/2),f=l(i/2),_=l(s/2),m=l(r/2);switch(o){case"XYZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"YXZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"ZXY":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"ZYX":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"YZX":this._x=f*d*h+u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h-f*_*m;break;case"XZY":this._x=f*d*h-u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h+f*_*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const i=n/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,i=n[0],s=n[4],r=n[8],o=n[1],a=n[5],l=n[9],u=n[2],d=n[6],h=n[10],f=i+a+h;if(f>0){const _=.5/Math.sqrt(f+1);this._w=.25/_,this._x=(d-l)*_,this._y=(r-u)*_,this._z=(o-s)*_}else if(i>a&&i>h){const _=2*Math.sqrt(1+i-a-h);this._w=(d-l)/_,this._x=.25*_,this._y=(s+o)/_,this._z=(r+u)/_}else if(a>h){const _=2*Math.sqrt(1+a-i-h);this._w=(r-u)/_,this._x=(s+o)/_,this._y=.25*_,this._z=(l+d)/_}else{const _=2*Math.sqrt(1+h-i-a);this._w=(o-s)/_,this._x=(r+u)/_,this._y=(l+d)/_,this._z=.25*_}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let i=e.dot(n)+1;return i<Number.EPSILON?(i=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Ln(this.dot(e),-1,1)))}rotateTowards(e,n){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,n/i);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const i=e._x,s=e._y,r=e._z,o=e._w,a=n._x,l=n._y,u=n._z,d=n._w;return this._x=i*d+o*a+s*u-r*l,this._y=s*d+o*l+r*a-i*u,this._z=r*d+o*u+i*l-s*a,this._w=o*d-i*a-s*l-r*u,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const i=this._x,s=this._y,r=this._z,o=this._w;let a=o*e._w+i*e._x+s*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=i,this._y=s,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const _=1-n;return this._w=_*o+n*this._w,this._x=_*i+n*this._x,this._y=_*s+n*this._y,this._z=_*r+n*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(l),d=Math.atan2(u,a),h=Math.sin((1-n)*d)/u,f=Math.sin(n*d)/u;return this._w=o*h+this._w*f,this._x=i*h+this._x*f,this._y=s*h+this._y*f,this._z=r*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,i){return this.copy(e).slerp(n,i)}random(){const e=Math.random(),n=Math.sqrt(1-e),i=Math.sqrt(e),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(n*Math.cos(s),i*Math.sin(r),i*Math.cos(r),n*Math.sin(s))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class _e{constructor(e=0,n=0,i=0){_e.prototype.isVector3=!0,this.x=e,this.y=n,this.z=i}set(e,n,i){return i===void 0&&(i=this.z),this.x=e,this.y=n,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(N1.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(N1.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*n+r[3]*i+r[6]*s,this.y=r[1]*n+r[4]*i+r[7]*s,this.z=r[2]*n+r[5]*i+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,i=this.y,s=this.z,r=e.elements,o=1/(r[3]*n+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*n+r[4]*i+r[8]*s+r[12])*o,this.y=(r[1]*n+r[5]*i+r[9]*s+r[13])*o,this.z=(r[2]*n+r[6]*i+r[10]*s+r[14])*o,this}applyQuaternion(e){const n=this.x,i=this.y,s=this.z,r=e.x,o=e.y,a=e.z,l=e.w,u=2*(o*s-a*i),d=2*(a*n-r*s),h=2*(r*i-o*n);return this.x=n+l*u+o*h-a*d,this.y=i+l*d+a*u-r*h,this.z=s+l*h+r*d-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*n+r[4]*i+r[8]*s,this.y=r[1]*n+r[5]*i+r[9]*s,this.z=r[2]*n+r[6]*i+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const i=e.x,s=e.y,r=e.z,o=n.x,a=n.y,l=n.z;return this.x=s*l-r*a,this.y=r*o-i*l,this.z=i*a-s*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const i=e.dot(this)/n;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Ym.copy(this).projectOnVector(e),this.sub(Ym)}reflect(e){return this.sub(Ym.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(Ln(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return n*n+i*i+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,i){const s=Math.sin(n)*e;return this.x=s*Math.sin(i),this.y=Math.cos(n)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,i){return this.x=e*Math.sin(n),this.y=i,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=i,this.z=s,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(n),this.y=i*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Ym=new _e,N1=new Ir;class js{constructor(e=new _e(1/0,1/0,1/0),n=new _e(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,i=e.length;n<i;n+=3)this.expandByPoint(Ii.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,i=e.count;n<i;n++)this.expandByPoint(Ii.fromBufferAttribute(e,n));return this}setFromPoints(e){this.makeEmpty();for(let n=0,i=e.length;n<i;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const i=Ii.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}setFromObject(e,n=!1){return this.makeEmpty(),this.expandByObject(e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,n=!1){e.updateWorldMatrix(!1,!1);const i=e.geometry;if(i!==void 0){const r=i.getAttribute("position");if(n===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let o=0,a=r.count;o<a;o++)e.isMesh===!0?e.getVertexPosition(o,Ii):Ii.fromBufferAttribute(r,o),Ii.applyMatrix4(e.matrixWorld),this.expandByPoint(Ii);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),Xc.copy(e.boundingBox)):(i.boundingBox===null&&i.computeBoundingBox(),Xc.copy(i.boundingBox)),Xc.applyMatrix4(e.matrixWorld),this.union(Xc)}const s=e.children;for(let r=0,o=s.length;r<o;r++)this.expandByObject(s[r],n);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ii),Ii.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,i;return e.normal.x>0?(n=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),n<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(fl),Zc.subVectors(this.max,fl),Mo.subVectors(e.a,fl),Do.subVectors(e.b,fl),ko.subVectors(e.c,fl),tr.subVectors(Do,Mo),nr.subVectors(ko,Do),Fr.subVectors(Mo,ko);let n=[0,-tr.z,tr.y,0,-nr.z,nr.y,0,-Fr.z,Fr.y,tr.z,0,-tr.x,nr.z,0,-nr.x,Fr.z,0,-Fr.x,-tr.y,tr.x,0,-nr.y,nr.x,0,-Fr.y,Fr.x,0];return!$m(n,Mo,Do,ko,Zc)||(n=[1,0,0,0,1,0,0,0,1],!$m(n,Mo,Do,ko,Zc))?!1:(Jc.crossVectors(tr,nr),n=[Jc.x,Jc.y,Jc.z],$m(n,Mo,Do,ko,Zc))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ii).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ii).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Cs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Cs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Cs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Cs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Cs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Cs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Cs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Cs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Cs),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Cs=[new _e,new _e,new _e,new _e,new _e,new _e,new _e,new _e],Ii=new _e,Xc=new js,Mo=new _e,Do=new _e,ko=new _e,tr=new _e,nr=new _e,Fr=new _e,fl=new _e,Zc=new _e,Jc=new _e,Br=new _e;function $m(t,e,n,i,s){for(let r=0,o=t.length-3;r<=o;r+=3){Br.fromArray(t,r);const a=s.x*Math.abs(Br.x)+s.y*Math.abs(Br.y)+s.z*Math.abs(Br.z),l=e.dot(Br),u=n.dot(Br),d=i.dot(Br);if(Math.max(-Math.max(l,u,d),Math.min(l,u,d))>a)return!1}return!0}const HRt=new js,ml=new _e,Wm=new _e;class fs{constructor(e=new _e,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const i=this.center;n!==void 0?i.copy(n):HRt.setFromPoints(e).getCenter(i);let s=0;for(let r=0,o=e.length;r<o;r++)s=Math.max(s,i.distanceToSquared(e[r]));return this.radius=Math.sqrt(s),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const n=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=n*n}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,n){const i=this.center.distanceToSquared(e);return n.copy(e),i>this.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ml.subVectors(e,this.center);const n=ml.lengthSq();if(n>this.radius*this.radius){const i=Math.sqrt(n),s=(i-this.radius)*.5;this.center.addScaledVector(ml,s/i),this.radius+=s}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Wm.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ml.copy(e.center).add(Wm)),this.expandByPoint(ml.copy(e.center).sub(Wm))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ws=new _e,Km=new _e,ed=new _e,ir=new _e,jm=new _e,td=new _e,Qm=new _e;class dp{constructor(e=new _e,n=new _e(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ws)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=ws.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(ws.copy(this.origin).addScaledVector(this.direction,n),ws.distanceToSquared(e))}distanceSqToSegment(e,n,i,s){Km.copy(e).add(n).multiplyScalar(.5),ed.copy(n).sub(e).normalize(),ir.copy(this.origin).sub(Km);const r=e.distanceTo(n)*.5,o=-this.direction.dot(ed),a=ir.dot(this.direction),l=-ir.dot(ed),u=ir.lengthSq(),d=Math.abs(1-o*o);let h,f,_,m;if(d>0)if(h=o*l-a,f=o*a-l,m=r*d,h>=0)if(f>=-m)if(f<=m){const E=1/d;h*=E,f*=E,_=h*(h+o*f+2*a)+f*(o*h+f+2*l)+u}else f=r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f=-r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f<=-m?(h=Math.max(0,-(-o*r+a)),f=h>0?-r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u):f<=m?(h=0,f=Math.min(Math.max(-r,-l),r),_=f*(f+2*l)+u):(h=Math.max(0,-(o*r+a)),f=h>0?r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u);else f=o>0?-r:r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;return i&&i.copy(this.origin).addScaledVector(this.direction,h),s&&s.copy(Km).addScaledVector(ed,f),_}intersectSphere(e,n){ws.subVectors(e.center,this.origin);const i=ws.dot(this.direction),s=ws.dot(ws)-i*i,r=e.radius*e.radius;if(s>r)return null;const o=Math.sqrt(r-s),a=i-o,l=i+o;return l<0?null:a<0?this.at(l,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/n;return i>=0?i:null}intersectPlane(e,n){const i=this.distanceToPlane(e);return i===null?null:this.at(i,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let i,s,r,o,a,l;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(i=(e.min.x-f.x)*u,s=(e.max.x-f.x)*u):(i=(e.max.x-f.x)*u,s=(e.min.x-f.x)*u),d>=0?(r=(e.min.y-f.y)*d,o=(e.max.y-f.y)*d):(r=(e.max.y-f.y)*d,o=(e.min.y-f.y)*d),i>o||r>s||((r>i||isNaN(i))&&(i=r),(o<s||isNaN(s))&&(s=o),h>=0?(a=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(a=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),i>l||a>s)||((a>i||i!==i)&&(i=a),(l<s||s!==s)&&(s=l),s<0)?null:this.at(i>=0?i:s,n)}intersectsBox(e){return this.intersectBox(e,ws)!==null}intersectTriangle(e,n,i,s,r){jm.subVectors(n,e),td.subVectors(i,e),Qm.crossVectors(jm,td);let o=this.direction.dot(Qm),a;if(o>0){if(s)return null;a=1}else if(o<0)a=-1,o=-o;else return null;ir.subVectors(this.origin,e);const l=a*this.direction.dot(td.crossVectors(ir,td));if(l<0)return null;const u=a*this.direction.dot(jm.cross(ir));if(u<0||l+u>o)return null;const d=-a*ir.dot(Qm);return d<0?null:this.at(d/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Rt{constructor(e,n,i,s,r,o,a,l,u,d,h,f,_,m,E,b){Rt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,n,i,s,r,o,a,l,u,d,h,f,_,m,E,b)}set(e,n,i,s,r,o,a,l,u,d,h,f,_,m,E,b){const g=this.elements;return g[0]=e,g[4]=n,g[8]=i,g[12]=s,g[1]=r,g[5]=o,g[9]=a,g[13]=l,g[2]=u,g[6]=d,g[10]=h,g[14]=f,g[3]=_,g[7]=m,g[11]=E,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Rt().fromArray(this.elements)}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this}copyPosition(e){const n=this.elements,i=e.elements;return n[12]=i[12],n[13]=i[13],n[14]=i[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,i){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,n,i){return this.set(e.x,n.x,i.x,0,e.y,n.y,i.y,0,e.z,n.z,i.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,i=e.elements,s=1/Lo.setFromMatrixColumn(e,0).length(),r=1/Lo.setFromMatrixColumn(e,1).length(),o=1/Lo.setFromMatrixColumn(e,2).length();return n[0]=i[0]*s,n[1]=i[1]*s,n[2]=i[2]*s,n[3]=0,n[4]=i[4]*r,n[5]=i[5]*r,n[6]=i[6]*r,n[7]=0,n[8]=i[8]*o,n[9]=i[9]*o,n[10]=i[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,i=e.x,s=e.y,r=e.z,o=Math.cos(i),a=Math.sin(i),l=Math.cos(s),u=Math.sin(s),d=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const f=o*d,_=o*h,m=a*d,E=a*h;n[0]=l*d,n[4]=-l*h,n[8]=u,n[1]=_+m*u,n[5]=f-E*u,n[9]=-a*l,n[2]=E-f*u,n[6]=m+_*u,n[10]=o*l}else if(e.order==="YXZ"){const f=l*d,_=l*h,m=u*d,E=u*h;n[0]=f+E*a,n[4]=m*a-_,n[8]=o*u,n[1]=o*h,n[5]=o*d,n[9]=-a,n[2]=_*a-m,n[6]=E+f*a,n[10]=o*l}else if(e.order==="ZXY"){const f=l*d,_=l*h,m=u*d,E=u*h;n[0]=f-E*a,n[4]=-o*h,n[8]=m+_*a,n[1]=_+m*a,n[5]=o*d,n[9]=E-f*a,n[2]=-o*u,n[6]=a,n[10]=o*l}else if(e.order==="ZYX"){const f=o*d,_=o*h,m=a*d,E=a*h;n[0]=l*d,n[4]=m*u-_,n[8]=f*u+E,n[1]=l*h,n[5]=E*u+f,n[9]=_*u-m,n[2]=-u,n[6]=a*l,n[10]=o*l}else if(e.order==="YZX"){const f=o*l,_=o*u,m=a*l,E=a*u;n[0]=l*d,n[4]=E-f*h,n[8]=m*h+_,n[1]=h,n[5]=o*d,n[9]=-a*d,n[2]=-u*d,n[6]=_*h+m,n[10]=f-E*h}else if(e.order==="XZY"){const f=o*l,_=o*u,m=a*l,E=a*u;n[0]=l*d,n[4]=-h,n[8]=u*d,n[1]=f*h+E,n[5]=o*d,n[9]=_*h-m,n[2]=m*h-_,n[6]=a*d,n[10]=E*h+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(qRt,e,YRt)}lookAt(e,n,i){const s=this.elements;return ii.subVectors(e,n),ii.lengthSq()===0&&(ii.z=1),ii.normalize(),sr.crossVectors(i,ii),sr.lengthSq()===0&&(Math.abs(i.z)===1?ii.x+=1e-4:ii.z+=1e-4,ii.normalize(),sr.crossVectors(i,ii)),sr.normalize(),nd.crossVectors(ii,sr),s[0]=sr.x,s[4]=nd.x,s[8]=ii.x,s[1]=sr.y,s[5]=nd.y,s[9]=ii.y,s[2]=sr.z,s[6]=nd.z,s[10]=ii.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,s=n.elements,r=this.elements,o=i[0],a=i[4],l=i[8],u=i[12],d=i[1],h=i[5],f=i[9],_=i[13],m=i[2],E=i[6],b=i[10],g=i[14],y=i[3],v=i[7],S=i[11],C=i[15],T=s[0],O=s[4],k=s[8],x=s[12],I=s[1],F=s[5],B=s[9],ne=s[13],L=s[2],$=s[6],H=s[10],U=s[14],Q=s[3],J=s[7],j=s[11],ae=s[15];return r[0]=o*T+a*I+l*L+u*Q,r[4]=o*O+a*F+l*$+u*J,r[8]=o*k+a*B+l*H+u*j,r[12]=o*x+a*ne+l*U+u*ae,r[1]=d*T+h*I+f*L+_*Q,r[5]=d*O+h*F+f*$+_*J,r[9]=d*k+h*B+f*H+_*j,r[13]=d*x+h*ne+f*U+_*ae,r[2]=m*T+E*I+b*L+g*Q,r[6]=m*O+E*F+b*$+g*J,r[10]=m*k+E*B+b*H+g*j,r[14]=m*x+E*ne+b*U+g*ae,r[3]=y*T+v*I+S*L+C*Q,r[7]=y*O+v*F+S*$+C*J,r[11]=y*k+v*B+S*H+C*j,r[15]=y*x+v*ne+S*U+C*ae,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[4],s=e[8],r=e[12],o=e[1],a=e[5],l=e[9],u=e[13],d=e[2],h=e[6],f=e[10],_=e[14],m=e[3],E=e[7],b=e[11],g=e[15];return m*(+r*l*h-s*u*h-r*a*f+i*u*f+s*a*_-i*l*_)+E*(+n*l*_-n*u*f+r*o*f-s*o*_+s*u*d-r*l*d)+b*(+n*u*h-n*a*_-r*o*h+i*o*_+r*a*d-i*u*d)+g*(-s*a*d-n*l*h+n*a*f+s*o*h-i*o*f+i*l*d)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=n,s[14]=i),this}invert(){const e=this.elements,n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=e[9],f=e[10],_=e[11],m=e[12],E=e[13],b=e[14],g=e[15],y=h*b*u-E*f*u+E*l*_-a*b*_-h*l*g+a*f*g,v=m*f*u-d*b*u-m*l*_+o*b*_+d*l*g-o*f*g,S=d*E*u-m*h*u+m*a*_-o*E*_-d*a*g+o*h*g,C=m*h*l-d*E*l-m*a*f+o*E*f+d*a*b-o*h*b,T=n*y+i*v+s*S+r*C;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const O=1/T;return e[0]=y*O,e[1]=(E*f*r-h*b*r-E*s*_+i*b*_+h*s*g-i*f*g)*O,e[2]=(a*b*r-E*l*r+E*s*u-i*b*u-a*s*g+i*l*g)*O,e[3]=(h*l*r-a*f*r-h*s*u+i*f*u+a*s*_-i*l*_)*O,e[4]=v*O,e[5]=(d*b*r-m*f*r+m*s*_-n*b*_-d*s*g+n*f*g)*O,e[6]=(m*l*r-o*b*r-m*s*u+n*b*u+o*s*g-n*l*g)*O,e[7]=(o*f*r-d*l*r+d*s*u-n*f*u-o*s*_+n*l*_)*O,e[8]=S*O,e[9]=(m*h*r-d*E*r-m*i*_+n*E*_+d*i*g-n*h*g)*O,e[10]=(o*E*r-m*a*r+m*i*u-n*E*u-o*i*g+n*a*g)*O,e[11]=(d*a*r-o*h*r-d*i*u+n*h*u+o*i*_-n*a*_)*O,e[12]=C*O,e[13]=(d*E*s-m*h*s+m*i*f-n*E*f-d*i*b+n*h*b)*O,e[14]=(m*a*s-o*E*s-m*i*l+n*E*l+o*i*b-n*a*b)*O,e[15]=(o*h*s-d*a*s+d*i*l-n*h*l-o*i*f+n*a*f)*O,this}scale(e){const n=this.elements,i=e.x,s=e.y,r=e.z;return n[0]*=i,n[4]*=s,n[8]*=r,n[1]*=i,n[5]*=s,n[9]*=r,n[2]*=i,n[6]*=s,n[10]*=r,n[3]*=i,n[7]*=s,n[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,i,s))}makeTranslation(e,n,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const i=Math.cos(n),s=Math.sin(n),r=1-i,o=e.x,a=e.y,l=e.z,u=r*o,d=r*a;return this.set(u*o+i,u*a-s*l,u*l+s*a,0,u*a+s*l,d*a+i,d*l-s*o,0,u*l-s*a,d*l+s*o,r*l*l+i,0,0,0,0,1),this}makeScale(e,n,i){return this.set(e,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,n,i,s,r,o){return this.set(1,i,r,0,e,1,o,0,n,s,1,0,0,0,0,1),this}compose(e,n,i){const s=this.elements,r=n._x,o=n._y,a=n._z,l=n._w,u=r+r,d=o+o,h=a+a,f=r*u,_=r*d,m=r*h,E=o*d,b=o*h,g=a*h,y=l*u,v=l*d,S=l*h,C=i.x,T=i.y,O=i.z;return s[0]=(1-(E+g))*C,s[1]=(_+S)*C,s[2]=(m-v)*C,s[3]=0,s[4]=(_-S)*T,s[5]=(1-(f+g))*T,s[6]=(b+y)*T,s[7]=0,s[8]=(m+v)*O,s[9]=(b-y)*O,s[10]=(1-(f+E))*O,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,n,i){const s=this.elements;let r=Lo.set(s[0],s[1],s[2]).length();const o=Lo.set(s[4],s[5],s[6]).length(),a=Lo.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],Mi.copy(this);const u=1/r,d=1/o,h=1/a;return Mi.elements[0]*=u,Mi.elements[1]*=u,Mi.elements[2]*=u,Mi.elements[4]*=d,Mi.elements[5]*=d,Mi.elements[6]*=d,Mi.elements[8]*=h,Mi.elements[9]*=h,Mi.elements[10]*=h,n.setFromRotationMatrix(Mi),i.x=r,i.y=o,i.z=a,this}makePerspective(e,n,i,s,r,o,a=Us){const l=this.elements,u=2*r/(n-e),d=2*r/(i-s),h=(n+e)/(n-e),f=(i+s)/(i-s);let _,m;if(a===Us)_=-(o+r)/(o-r),m=-2*o*r/(o-r);else if(a===bu)_=-o/(o-r),m=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=_,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,i,s,r,o,a=Us){const l=this.elements,u=1/(n-e),d=1/(i-s),h=1/(o-r),f=(n+e)*u,_=(i+s)*d;let m,E;if(a===Us)m=(o+r)*h,E=-2*h;else if(a===bu)m=r*h,E=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-_,l[2]=0,l[6]=0,l[10]=E,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,i=e.elements;for(let s=0;s<16;s++)if(n[s]!==i[s])return!1;return!0}fromArray(e,n=0){for(let i=0;i<16;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e[n+9]=i[9],e[n+10]=i[10],e[n+11]=i[11],e[n+12]=i[12],e[n+13]=i[13],e[n+14]=i[14],e[n+15]=i[15],e}}const Lo=new _e,Mi=new Rt,qRt=new _e(0,0,0),YRt=new _e(1,1,1),sr=new _e,nd=new _e,ii=new _e,O1=new Rt,I1=new Ir;class up{constructor(e=0,n=0,i=0,s=up.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=i,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,i,s=this._order){return this._x=e,this._y=n,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,i=!0){const s=e.elements,r=s[0],o=s[4],a=s[8],l=s[1],u=s[5],d=s[9],h=s[2],f=s[6],_=s[10];switch(n){case"XYZ":this._y=Math.asin(Ln(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,_),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Ln(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,_),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Ln(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,_),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Ln(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,_),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(Ln(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,_));break;case"XZY":this._z=Math.asin(-Ln(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-d,_),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,i){return O1.makeRotationFromQuaternion(e),this.setFromRotationMatrix(O1,n,i)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return I1.setFromEuler(this),this.setFromQuaternion(I1,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}up.DEFAULT_ORDER="XYZ";class oI{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let $Rt=0;const M1=new _e,Po=new Ir,Rs=new Rt,id=new _e,gl=new _e,WRt=new _e,KRt=new Ir,D1=new _e(1,0,0),k1=new _e(0,1,0),L1=new _e(0,0,1),jRt={type:"added"},QRt={type:"removed"};class rn extends Ka{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:$Rt++}),this.uuid=zi(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=rn.DEFAULT_UP.clone();const e=new _e,n=new up,i=new Ir,s=new _e(1,1,1);function r(){i.setFromEuler(n,!1)}function o(){n.setFromQuaternion(i,void 0,!1)}n._onChange(r),i._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:s},modelViewMatrix:{value:new Rt},normalMatrix:{value:new wt}}),this.matrix=new Rt,this.matrixWorld=new Rt,this.matrixAutoUpdate=rn.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=rn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new oI,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return Po.setFromAxisAngle(e,n),this.quaternion.multiply(Po),this}rotateOnWorldAxis(e,n){return Po.setFromAxisAngle(e,n),this.quaternion.premultiply(Po),this}rotateX(e){return this.rotateOnAxis(D1,e)}rotateY(e){return this.rotateOnAxis(k1,e)}rotateZ(e){return this.rotateOnAxis(L1,e)}translateOnAxis(e,n){return M1.copy(e).applyQuaternion(this.quaternion),this.position.add(M1.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(D1,e)}translateY(e){return this.translateOnAxis(k1,e)}translateZ(e){return this.translateOnAxis(L1,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Rs.copy(this.matrixWorld).invert())}lookAt(e,n,i){e.isVector3?id.copy(e):id.set(e,n,i);const s=this.parent;this.updateWorldMatrix(!0,!1),gl.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Rs.lookAt(gl,id,this.up):Rs.lookAt(id,gl,this.up),this.quaternion.setFromRotationMatrix(Rs),s&&(Rs.extractRotation(s.matrixWorld),Po.setFromRotationMatrix(Rs),this.quaternion.premultiply(Po.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(jRt)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(QRt)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),Rs.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),Rs.multiply(e.parent.matrixWorld)),e.applyMatrix4(Rs),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,n){if(this[e]===n)return this;for(let i=0,s=this.children.length;i<s;i++){const o=this.children[i].getObjectByProperty(e,n);if(o!==void 0)return o}}getObjectsByProperty(e,n,i=[]){this[e]===n&&i.push(this);const s=this.children;for(let r=0,o=s.length;r<o;r++)s[r].getObjectsByProperty(e,n,i);return i}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(gl,e,WRt),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(gl,KRt,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(e){e(this);const n=this.children;for(let i=0,s=n.length;i<s;i++)n[i].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let i=0,s=n.length;i<s;i++)n[i].traverseVisible(e)}traverseAncestors(e){const n=this.parent;n!==null&&(e(n),n.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const n=this.children;for(let i=0,s=n.length;i<s;i++){const r=n[i];(r.matrixWorldAutoUpdate===!0||e===!0)&&r.updateMatrixWorld(e)}}updateWorldMatrix(e,n){const i=this.parent;if(e===!0&&i!==null&&i.matrixWorldAutoUpdate===!0&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),n===!0){const s=this.children;for(let r=0,o=s.length;r<o;r++){const a=s[r];a.matrixWorldAutoUpdate===!0&&a.updateWorldMatrix(!1,!0)}}}toJSON(e){const n=e===void 0||typeof e=="string",i={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const s={};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.castShadow===!0&&(s.castShadow=!0),this.receiveShadow===!0&&(s.receiveShadow=!0),this.visible===!1&&(s.visible=!1),this.frustumCulled===!1&&(s.frustumCulled=!1),this.renderOrder!==0&&(s.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let u=0,d=l.length;u<d;u++){const h=l[u];r(e.shapes,h)}else r(e.shapes,l)}}if(this.isSkinnedMesh&&(s.bindMode=this.bindMode,s.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(r(e.skeletons,this.skeleton),s.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let l=0,u=this.material.length;l<u;l++)a.push(r(e.materials,this.material[l]));s.material=a}else s.material=r(e.materials,this.material);if(this.children.length>0){s.children=[];for(let a=0;a<this.children.length;a++)s.children.push(this.children[a].toJSON(e).object)}if(this.animations.length>0){s.animations=[];for(let a=0;a<this.animations.length;a++){const l=this.animations[a];s.animations.push(r(e.animations,l))}}if(n){const a=o(e.geometries),l=o(e.materials),u=o(e.textures),d=o(e.images),h=o(e.shapes),f=o(e.skeletons),_=o(e.animations),m=o(e.nodes);a.length>0&&(i.geometries=a),l.length>0&&(i.materials=l),u.length>0&&(i.textures=u),d.length>0&&(i.images=d),h.length>0&&(i.shapes=h),f.length>0&&(i.skeletons=f),_.length>0&&(i.animations=_),m.length>0&&(i.nodes=m)}return i.object=s,i;function o(a){const l=[];for(const u in a){const d=a[u];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let i=0;i<e.children.length;i++){const s=e.children[i];this.add(s.clone())}return this}}rn.DEFAULT_UP=new _e(0,1,0);rn.DEFAULT_MATRIX_AUTO_UPDATE=!0;rn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Di=new _e,As=new _e,Xm=new _e,Ns=new _e,Uo=new _e,Fo=new _e,P1=new _e,Zm=new _e,Jm=new _e,eg=new _e;let sd=!1;class Ui{constructor(e=new _e,n=new _e,i=new _e){this.a=e,this.b=n,this.c=i}static getNormal(e,n,i,s){s.subVectors(i,n),Di.subVectors(e,n),s.cross(Di);const r=s.lengthSq();return r>0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,n,i,s,r){Di.subVectors(s,n),As.subVectors(i,n),Xm.subVectors(e,n);const o=Di.dot(Di),a=Di.dot(As),l=Di.dot(Xm),u=As.dot(As),d=As.dot(Xm),h=o*u-a*a;if(h===0)return r.set(-2,-1,-1);const f=1/h,_=(u*l-a*d)*f,m=(o*d-a*l)*f;return r.set(1-_-m,m,_)}static containsPoint(e,n,i,s){return this.getBarycoord(e,n,i,s,Ns),Ns.x>=0&&Ns.y>=0&&Ns.x+Ns.y<=1}static getUV(e,n,i,s,r,o,a,l){return sd===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),sd=!0),this.getInterpolation(e,n,i,s,r,o,a,l)}static getInterpolation(e,n,i,s,r,o,a,l){return this.getBarycoord(e,n,i,s,Ns),l.setScalar(0),l.addScaledVector(r,Ns.x),l.addScaledVector(o,Ns.y),l.addScaledVector(a,Ns.z),l}static isFrontFacing(e,n,i,s){return Di.subVectors(i,n),As.subVectors(e,n),Di.cross(As).dot(s)<0}set(e,n,i){return this.a.copy(e),this.b.copy(n),this.c.copy(i),this}setFromPointsAndIndices(e,n,i,s){return this.a.copy(e[n]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,n,i,s){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Di.subVectors(this.c,this.b),As.subVectors(this.a,this.b),Di.cross(As).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Ui.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return Ui.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,i,s,r){return sd===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),sd=!0),Ui.getInterpolation(e,this.a,this.b,this.c,n,i,s,r)}getInterpolation(e,n,i,s,r){return Ui.getInterpolation(e,this.a,this.b,this.c,n,i,s,r)}containsPoint(e){return Ui.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Ui.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const i=this.a,s=this.b,r=this.c;let o,a;Uo.subVectors(s,i),Fo.subVectors(r,i),Zm.subVectors(e,i);const l=Uo.dot(Zm),u=Fo.dot(Zm);if(l<=0&&u<=0)return n.copy(i);Jm.subVectors(e,s);const d=Uo.dot(Jm),h=Fo.dot(Jm);if(d>=0&&h<=d)return n.copy(s);const f=l*h-d*u;if(f<=0&&l>=0&&d<=0)return o=l/(l-d),n.copy(i).addScaledVector(Uo,o);eg.subVectors(e,r);const _=Uo.dot(eg),m=Fo.dot(eg);if(m>=0&&_<=m)return n.copy(r);const E=_*u-l*m;if(E<=0&&u>=0&&m<=0)return a=u/(u-m),n.copy(i).addScaledVector(Fo,a);const b=d*m-_*h;if(b<=0&&h-d>=0&&_-m>=0)return P1.subVectors(r,s),a=(h-d)/(h-d+(_-m)),n.copy(s).addScaledVector(P1,a);const g=1/(b+E+f);return o=E*g,a=f*g,n.copy(i).addScaledVector(Uo,o).addScaledVector(Fo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const aI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},rr={h:0,s:0,l:0},rd={h:0,s:0,l:0};function tg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class gt{constructor(e,n,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,i)}set(e,n,i){if(n===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,n,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=on){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Gt.toWorkingColorSpace(this,n),this}setRGB(e,n,i,s=Gt.workingColorSpace){return this.r=e,this.g=n,this.b=i,Gt.toWorkingColorSpace(this,s),this}setHSL(e,n,i,s=Gt.workingColorSpace){if(e=JE(e,1),n=Ln(n,0,1),i=Ln(i,0,1),n===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+n):i+n-i*n,o=2*i-r;this.r=tg(o,r,e+1/3),this.g=tg(o,r,e),this.b=tg(o,r,e-1/3)}return Gt.toWorkingColorSpace(this,s),this}setStyle(e,n=on){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=s[1],a=s[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,n);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,n);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,n);if(o===6)return this.setHex(parseInt(r,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=on){const i=aI[e.toLowerCase()];return i!==void 0?this.setHex(i,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=la(e.r),this.g=la(e.g),this.b=la(e.b),this}copyLinearToSRGB(e){return this.r=Hm(e.r),this.g=Hm(e.g),this.b=Hm(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=on){return Gt.fromWorkingColorSpace(Dn.copy(this),e),Math.round(Ln(Dn.r*255,0,255))*65536+Math.round(Ln(Dn.g*255,0,255))*256+Math.round(Ln(Dn.b*255,0,255))}getHexString(e=on){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=Gt.workingColorSpace){Gt.fromWorkingColorSpace(Dn.copy(this),n);const i=Dn.r,s=Dn.g,r=Dn.b,o=Math.max(i,s,r),a=Math.min(i,s,r);let l,u;const d=(a+o)/2;if(a===o)l=0,u=0;else{const h=o-a;switch(u=d<=.5?h/(o+a):h/(2-o-a),o){case i:l=(s-r)/h+(s<r?6:0);break;case s:l=(r-i)/h+2;break;case r:l=(i-s)/h+4;break}l/=6}return e.h=l,e.s=u,e.l=d,e}getRGB(e,n=Gt.workingColorSpace){return Gt.fromWorkingColorSpace(Dn.copy(this),n),e.r=Dn.r,e.g=Dn.g,e.b=Dn.b,e}getStyle(e=on){Gt.fromWorkingColorSpace(Dn.copy(this),e);const n=Dn.r,i=Dn.g,s=Dn.b;return e!==on?`color(${e} ${n.toFixed(3)} ${i.toFixed(3)} ${s.toFixed(3)})`:`rgb(${Math.round(n*255)},${Math.round(i*255)},${Math.round(s*255)})`}offsetHSL(e,n,i){return this.getHSL(rr),this.setHSL(rr.h+e,rr.s+n,rr.l+i)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,i){return this.r=e.r+(n.r-e.r)*i,this.g=e.g+(n.g-e.g)*i,this.b=e.b+(n.b-e.b)*i,this}lerpHSL(e,n){this.getHSL(rr),e.getHSL(rd);const i=Fl(rr.h,rd.h,n),s=Fl(rr.s,rd.s,n),r=Fl(rr.l,rd.l,n);return this.setHSL(i,s,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const n=this.r,i=this.g,s=this.b,r=e.elements;return this.r=r[0]*n+r[3]*i+r[6]*s,this.g=r[1]*n+r[4]*i+r[7]*s,this.b=r[2]*n+r[5]*i+r[8]*s,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Dn=new gt;gt.NAMES=aI;let XRt=0;class Hi extends Ka{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:XRt++}),this.uuid=zi(),this.name="",this.type="Material",this.blending=aa,this.side=Ys,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=sb,this.blendDst=rb,this.blendEquation=Xr,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new gt(0,0,0),this.blendAlpha=0,this.depthFunc=_u,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=T1,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Oo,this.stencilZFail=Oo,this.stencilZPass=Oo,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const i=e[n];if(i===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const s=this[n];if(s===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[n]=i}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==aa&&(i.blending=this.blending),this.side!==Ys&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==sb&&(i.blendSrc=this.blendSrc),this.blendDst!==rb&&(i.blendDst=this.blendDst),this.blendEquation!==Xr&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==_u&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==T1&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Oo&&(i.stencilFail=this.stencilFail),this.stencilZFail!==Oo&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==Oo&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(n){const r=s(e.textures),o=s(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let i=null;if(n!==null){const s=n.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=n[r].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class Er extends Hi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new gt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=jE,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const dn=new _e,od=new It;class Yn{constructor(e,n,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=i,this.usage=db,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ps,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,n,i){e*=this.itemSize,i*=n.itemSize;for(let s=0,r=this.itemSize;s<r;s++)this.array[e+s]=n.array[i+s];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let n=0,i=this.count;n<i;n++)od.fromBufferAttribute(this,n),od.applyMatrix3(e),this.setXY(n,od.x,od.y);else if(this.itemSize===3)for(let n=0,i=this.count;n<i;n++)dn.fromBufferAttribute(this,n),dn.applyMatrix3(e),this.setXYZ(n,dn.x,dn.y,dn.z);return this}applyMatrix4(e){for(let n=0,i=this.count;n<i;n++)dn.fromBufferAttribute(this,n),dn.applyMatrix4(e),this.setXYZ(n,dn.x,dn.y,dn.z);return this}applyNormalMatrix(e){for(let n=0,i=this.count;n<i;n++)dn.fromBufferAttribute(this,n),dn.applyNormalMatrix(e),this.setXYZ(n,dn.x,dn.y,dn.z);return this}transformDirection(e){for(let n=0,i=this.count;n<i;n++)dn.fromBufferAttribute(this,n),dn.transformDirection(e),this.setXYZ(n,dn.x,dn.y,dn.z);return this}set(e,n=0){return this.array.set(e,n),this}getComponent(e,n){let i=this.array[e*this.itemSize+n];return this.normalized&&(i=ts(i,this.array)),i}setComponent(e,n,i){return this.normalized&&(i=Ht(i,this.array)),this.array[e*this.itemSize+n]=i,this}getX(e){let n=this.array[e*this.itemSize];return this.normalized&&(n=ts(n,this.array)),n}setX(e,n){return this.normalized&&(n=Ht(n,this.array)),this.array[e*this.itemSize]=n,this}getY(e){let n=this.array[e*this.itemSize+1];return this.normalized&&(n=ts(n,this.array)),n}setY(e,n){return this.normalized&&(n=Ht(n,this.array)),this.array[e*this.itemSize+1]=n,this}getZ(e){let n=this.array[e*this.itemSize+2];return this.normalized&&(n=ts(n,this.array)),n}setZ(e,n){return this.normalized&&(n=Ht(n,this.array)),this.array[e*this.itemSize+2]=n,this}getW(e){let n=this.array[e*this.itemSize+3];return this.normalized&&(n=ts(n,this.array)),n}setW(e,n){return this.normalized&&(n=Ht(n,this.array)),this.array[e*this.itemSize+3]=n,this}setXY(e,n,i){return e*=this.itemSize,this.normalized&&(n=Ht(n,this.array),i=Ht(i,this.array)),this.array[e+0]=n,this.array[e+1]=i,this}setXYZ(e,n,i,s){return e*=this.itemSize,this.normalized&&(n=Ht(n,this.array),i=Ht(i,this.array),s=Ht(s,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=s,this}setXYZW(e,n,i,s,r){return e*=this.itemSize,this.normalized&&(n=Ht(n,this.array),i=Ht(i,this.array),s=Ht(s,this.array),r=Ht(r,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=s,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==db&&(e.usage=this.usage),e}}class lI extends Yn{constructor(e,n,i){super(new Uint16Array(e),n,i)}}class cI extends Yn{constructor(e,n,i){super(new Uint32Array(e),n,i)}}class Bs extends Yn{constructor(e,n,i){super(new Float32Array(e),n,i)}}let ZRt=0;const pi=new Rt,ng=new rn,Bo=new _e,si=new js,bl=new js,En=new _e;class ms extends Ka{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:ZRt++}),this.uuid=zi(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(nI(e)?cI:lI)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,n){return this.attributes[e]=n,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,n,i=0){this.groups.push({start:e,count:n,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}applyMatrix4(e){const n=this.attributes.position;n!==void 0&&(n.applyMatrix4(e),n.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const r=new wt().getNormalMatrix(e);i.applyNormalMatrix(r),i.needsUpdate=!0}const s=this.attributes.tangent;return s!==void 0&&(s.transformDirection(e),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return pi.makeRotationFromQuaternion(e),this.applyMatrix4(pi),this}rotateX(e){return pi.makeRotationX(e),this.applyMatrix4(pi),this}rotateY(e){return pi.makeRotationY(e),this.applyMatrix4(pi),this}rotateZ(e){return pi.makeRotationZ(e),this.applyMatrix4(pi),this}translate(e,n,i){return pi.makeTranslation(e,n,i),this.applyMatrix4(pi),this}scale(e,n,i){return pi.makeScale(e,n,i),this.applyMatrix4(pi),this}lookAt(e){return ng.lookAt(e),ng.updateMatrix(),this.applyMatrix4(ng.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Bo).negate(),this.translate(Bo.x,Bo.y,Bo.z),this}setFromPoints(e){const n=[];for(let i=0,s=e.length;i<s;i++){const r=e[i];n.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new Bs(n,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new js);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingBox.set(new _e(-1/0,-1/0,-1/0),new _e(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),n)for(let i=0,s=n.length;i<s;i++){const r=n[i];si.setFromBufferAttribute(r),this.morphTargetsRelative?(En.addVectors(this.boundingBox.min,si.min),this.boundingBox.expandByPoint(En),En.addVectors(this.boundingBox.max,si.max),this.boundingBox.expandByPoint(En)):(this.boundingBox.expandByPoint(si.min),this.boundingBox.expandByPoint(si.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new fs);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingSphere.set(new _e,1/0);return}if(e){const i=this.boundingSphere.center;if(si.setFromBufferAttribute(e),n)for(let r=0,o=n.length;r<o;r++){const a=n[r];bl.setFromBufferAttribute(a),this.morphTargetsRelative?(En.addVectors(si.min,bl.min),si.expandByPoint(En),En.addVectors(si.max,bl.max),si.expandByPoint(En)):(si.expandByPoint(bl.min),si.expandByPoint(bl.max))}si.getCenter(i);let s=0;for(let r=0,o=e.count;r<o;r++)En.fromBufferAttribute(e,r),s=Math.max(s,i.distanceToSquared(En));if(n)for(let r=0,o=n.length;r<o;r++){const a=n[r],l=this.morphTargetsRelative;for(let u=0,d=a.count;u<d;u++)En.fromBufferAttribute(a,u),l&&(Bo.fromBufferAttribute(e,u),En.add(Bo)),s=Math.max(s,i.distanceToSquared(En))}this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,n=this.attributes;if(e===null||n.position===void 0||n.normal===void 0||n.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=e.array,s=n.position.array,r=n.normal.array,o=n.uv.array,a=s.length/3;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new Yn(new Float32Array(4*a),4));const l=this.getAttribute("tangent").array,u=[],d=[];for(let I=0;I<a;I++)u[I]=new _e,d[I]=new _e;const h=new _e,f=new _e,_=new _e,m=new It,E=new It,b=new It,g=new _e,y=new _e;function v(I,F,B){h.fromArray(s,I*3),f.fromArray(s,F*3),_.fromArray(s,B*3),m.fromArray(o,I*2),E.fromArray(o,F*2),b.fromArray(o,B*2),f.sub(h),_.sub(h),E.sub(m),b.sub(m);const ne=1/(E.x*b.y-b.x*E.y);isFinite(ne)&&(g.copy(f).multiplyScalar(b.y).addScaledVector(_,-E.y).multiplyScalar(ne),y.copy(_).multiplyScalar(E.x).addScaledVector(f,-b.x).multiplyScalar(ne),u[I].add(g),u[F].add(g),u[B].add(g),d[I].add(y),d[F].add(y),d[B].add(y))}let S=this.groups;S.length===0&&(S=[{start:0,count:i.length}]);for(let I=0,F=S.length;I<F;++I){const B=S[I],ne=B.start,L=B.count;for(let $=ne,H=ne+L;$<H;$+=3)v(i[$+0],i[$+1],i[$+2])}const C=new _e,T=new _e,O=new _e,k=new _e;function x(I){O.fromArray(r,I*3),k.copy(O);const F=u[I];C.copy(F),C.sub(O.multiplyScalar(O.dot(F))).normalize(),T.crossVectors(k,F);const ne=T.dot(d[I])<0?-1:1;l[I*4]=C.x,l[I*4+1]=C.y,l[I*4+2]=C.z,l[I*4+3]=ne}for(let I=0,F=S.length;I<F;++I){const B=S[I],ne=B.start,L=B.count;for(let $=ne,H=ne+L;$<H;$+=3)x(i[$+0]),x(i[$+1]),x(i[$+2])}}computeVertexNormals(){const e=this.index,n=this.getAttribute("position");if(n!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new Yn(new Float32Array(n.count*3),3),this.setAttribute("normal",i);else for(let f=0,_=i.count;f<_;f++)i.setXYZ(f,0,0,0);const s=new _e,r=new _e,o=new _e,a=new _e,l=new _e,u=new _e,d=new _e,h=new _e;if(e)for(let f=0,_=e.count;f<_;f+=3){const m=e.getX(f+0),E=e.getX(f+1),b=e.getX(f+2);s.fromBufferAttribute(n,m),r.fromBufferAttribute(n,E),o.fromBufferAttribute(n,b),d.subVectors(o,r),h.subVectors(s,r),d.cross(h),a.fromBufferAttribute(i,m),l.fromBufferAttribute(i,E),u.fromBufferAttribute(i,b),a.add(d),l.add(d),u.add(d),i.setXYZ(m,a.x,a.y,a.z),i.setXYZ(E,l.x,l.y,l.z),i.setXYZ(b,u.x,u.y,u.z)}else for(let f=0,_=n.count;f<_;f+=3)s.fromBufferAttribute(n,f+0),r.fromBufferAttribute(n,f+1),o.fromBufferAttribute(n,f+2),d.subVectors(o,r),h.subVectors(s,r),d.cross(h),i.setXYZ(f+0,d.x,d.y,d.z),i.setXYZ(f+1,d.x,d.y,d.z),i.setXYZ(f+2,d.x,d.y,d.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let n=0,i=e.count;n<i;n++)En.fromBufferAttribute(e,n),En.normalize(),e.setXYZ(n,En.x,En.y,En.z)}toNonIndexed(){function e(a,l){const u=a.array,d=a.itemSize,h=a.normalized,f=new u.constructor(l.length*d);let _=0,m=0;for(let E=0,b=l.length;E<b;E++){a.isInterleavedBufferAttribute?_=l[E]*a.data.stride+a.offset:_=l[E]*d;for(let g=0;g<d;g++)f[m++]=u[_++]}return new Yn(f,d,h)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new ms,i=this.index.array,s=this.attributes;for(const a in s){const l=s[a],u=e(l,i);n.setAttribute(a,u)}const r=this.morphAttributes;for(const a in r){const l=[],u=r[a];for(let d=0,h=u.length;d<h;d++){const f=u[d],_=e(f,i);l.push(_)}n.morphAttributes[a]=l}n.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,l=o.length;a<l;a++){const u=o[a];n.addGroup(u.start,u.count,u.materialIndex)}return n}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const i=this.attributes;for(const l in i){const u=i[l];e.data.attributes[l]=u.toJSON(e.data)}const s={};let r=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],d=[];for(let h=0,f=u.length;h<f;h++){const _=u[h];d.push(_.toJSON(e.data))}d.length>0&&(s[l]=d,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(n));const s=e.attributes;for(const u in s){const d=s[u];this.setAttribute(u,d.clone(n))}const r=e.morphAttributes;for(const u in r){const d=[],h=r[u];for(let f=0,_=h.length;f<_;f++)d.push(h[f].clone(n));this.morphAttributes[u]=d}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let u=0,d=o.length;u<d;u++){const h=o[u];this.addGroup(h.start,h.count,h.materialIndex)}const a=e.boundingBox;a!==null&&(this.boundingBox=a.clone());const l=e.boundingSphere;return l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const U1=new Rt,Gr=new dp,ad=new fs,F1=new _e,Go=new _e,Vo=new _e,zo=new _e,ig=new _e,ld=new _e,cd=new It,dd=new It,ud=new It,B1=new _e,G1=new _e,V1=new _e,pd=new _e,_d=new _e;class Hn extends rn{constructor(e=new ms,n=new Er){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const s=n[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}getVertexPosition(e,n){const i=this.geometry,s=i.attributes.position,r=i.morphAttributes.position,o=i.morphTargetsRelative;n.fromBufferAttribute(s,e);const a=this.morphTargetInfluences;if(r&&a){ld.set(0,0,0);for(let l=0,u=r.length;l<u;l++){const d=a[l],h=r[l];d!==0&&(ig.fromBufferAttribute(h,e),o?ld.addScaledVector(ig,d):ld.addScaledVector(ig.sub(n),d))}n.add(ld)}return n}raycast(e,n){const i=this.geometry,s=this.material,r=this.matrixWorld;s!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),ad.copy(i.boundingSphere),ad.applyMatrix4(r),Gr.copy(e.ray).recast(e.near),!(ad.containsPoint(Gr.origin)===!1&&(Gr.intersectSphere(ad,F1)===null||Gr.origin.distanceToSquared(F1)>(e.far-e.near)**2))&&(U1.copy(r).invert(),Gr.copy(e.ray).applyMatrix4(U1),!(i.boundingBox!==null&&Gr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,n,Gr)))}_computeIntersections(e,n,i){let s;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,u=r.attributes.uv,d=r.attributes.uv1,h=r.attributes.normal,f=r.groups,_=r.drawRange;if(a!==null)if(Array.isArray(o))for(let m=0,E=f.length;m<E;m++){const b=f[m],g=o[b.materialIndex],y=Math.max(b.start,_.start),v=Math.min(a.count,Math.min(b.start+b.count,_.start+_.count));for(let S=y,C=v;S<C;S+=3){const T=a.getX(S),O=a.getX(S+1),k=a.getX(S+2);s=hd(this,g,e,i,u,d,h,T,O,k),s&&(s.faceIndex=Math.floor(S/3),s.face.materialIndex=b.materialIndex,n.push(s))}}else{const m=Math.max(0,_.start),E=Math.min(a.count,_.start+_.count);for(let b=m,g=E;b<g;b+=3){const y=a.getX(b),v=a.getX(b+1),S=a.getX(b+2);s=hd(this,o,e,i,u,d,h,y,v,S),s&&(s.faceIndex=Math.floor(b/3),n.push(s))}}else if(l!==void 0)if(Array.isArray(o))for(let m=0,E=f.length;m<E;m++){const b=f[m],g=o[b.materialIndex],y=Math.max(b.start,_.start),v=Math.min(l.count,Math.min(b.start+b.count,_.start+_.count));for(let S=y,C=v;S<C;S+=3){const T=S,O=S+1,k=S+2;s=hd(this,g,e,i,u,d,h,T,O,k),s&&(s.faceIndex=Math.floor(S/3),s.face.materialIndex=b.materialIndex,n.push(s))}}else{const m=Math.max(0,_.start),E=Math.min(l.count,_.start+_.count);for(let b=m,g=E;b<g;b+=3){const y=b,v=b+1,S=b+2;s=hd(this,o,e,i,u,d,h,y,v,S),s&&(s.faceIndex=Math.floor(b/3),n.push(s))}}}}function JRt(t,e,n,i,s,r,o,a){let l;if(e.side===Zn?l=i.intersectTriangle(o,r,s,!0,a):l=i.intersectTriangle(s,r,o,e.side===Ys,a),l===null)return null;_d.copy(a),_d.applyMatrix4(t.matrixWorld);const u=n.ray.origin.distanceTo(_d);return u<n.near||u>n.far?null:{distance:u,point:_d.clone(),object:t}}function hd(t,e,n,i,s,r,o,a,l,u){t.getVertexPosition(a,Go),t.getVertexPosition(l,Vo),t.getVertexPosition(u,zo);const d=JRt(t,e,n,i,Go,Vo,zo,pd);if(d){s&&(cd.fromBufferAttribute(s,a),dd.fromBufferAttribute(s,l),ud.fromBufferAttribute(s,u),d.uv=Ui.getInterpolation(pd,Go,Vo,zo,cd,dd,ud,new It)),r&&(cd.fromBufferAttribute(r,a),dd.fromBufferAttribute(r,l),ud.fromBufferAttribute(r,u),d.uv1=Ui.getInterpolation(pd,Go,Vo,zo,cd,dd,ud,new It),d.uv2=d.uv1),o&&(B1.fromBufferAttribute(o,a),G1.fromBufferAttribute(o,l),V1.fromBufferAttribute(o,u),d.normal=Ui.getInterpolation(pd,Go,Vo,zo,B1,G1,V1,new _e),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const h={a,b:l,c:u,normal:new _e,materialIndex:0};Ui.getNormal(Go,Vo,zo,h.normal),d.face=h}return d}class Cr extends ms{constructor(e=1,n=1,i=1,s=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:i,widthSegments:s,heightSegments:r,depthSegments:o};const a=this;s=Math.floor(s),r=Math.floor(r),o=Math.floor(o);const l=[],u=[],d=[],h=[];let f=0,_=0;m("z","y","x",-1,-1,i,n,e,o,r,0),m("z","y","x",1,-1,i,n,-e,o,r,1),m("x","z","y",1,1,e,i,n,s,o,2),m("x","z","y",1,-1,e,i,-n,s,o,3),m("x","y","z",1,-1,e,n,i,s,r,4),m("x","y","z",-1,-1,e,n,-i,s,r,5),this.setIndex(l),this.setAttribute("position",new Bs(u,3)),this.setAttribute("normal",new Bs(d,3)),this.setAttribute("uv",new Bs(h,2));function m(E,b,g,y,v,S,C,T,O,k,x){const I=S/O,F=C/k,B=S/2,ne=C/2,L=T/2,$=O+1,H=k+1;let U=0,Q=0;const J=new _e;for(let j=0;j<H;j++){const ae=j*F-ne;for(let ve=0;ve<$;ve++){const ee=ve*I-B;J[E]=ee*y,J[b]=ae*v,J[g]=L,u.push(J.x,J.y,J.z),J[E]=0,J[b]=0,J[g]=T>0?1:-1,d.push(J.x,J.y,J.z),h.push(ve/O),h.push(1-j/k),U+=1}}for(let j=0;j<k;j++)for(let ae=0;ae<O;ae++){const ve=f+ae+$*j,ee=f+ae+$*(j+1),Ee=f+(ae+1)+$*(j+1),xe=f+(ae+1)+$*j;l.push(ve,ee,xe),l.push(ee,Ee,xe),Q+=6}a.addGroup(_,Q,x),_+=Q,f+=U}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Cr(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Na(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const s=t[n][i];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture||s.isQuaternion)?s.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][i]=null):e[n][i]=s.clone():Array.isArray(s)?e[n][i]=s.slice():e[n][i]=s}}return e}function Vn(t){const e={};for(let n=0;n<t.length;n++){const i=Na(t[n]);for(const s in i)e[s]=i[s]}return e}function eAt(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].clone());return e}function dI(t){return t.getRenderTarget()===null?t.outputColorSpace:Gt.workingColorSpace}const tAt={clone:Na,merge:Vn};var nAt=`void main() {
|
||
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
||
}`,iAt=`void main() {
|
||
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
||
}`;class go extends Hi{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=nAt,this.fragmentShader=iAt,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Na(e.uniforms),this.uniformsGroups=eAt(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const s in this.uniforms){const o=this.uniforms[s].value;o&&o.isTexture?n.uniforms[s]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?n.uniforms[s]={type:"c",value:o.getHex()}:o&&o.isVector2?n.uniforms[s]={type:"v2",value:o.toArray()}:o&&o.isVector3?n.uniforms[s]={type:"v3",value:o.toArray()}:o&&o.isVector4?n.uniforms[s]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?n.uniforms[s]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?n.uniforms[s]={type:"m4",value:o.toArray()}:n.uniforms[s]={value:o}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const i={};for(const s in this.extensions)this.extensions[s]===!0&&(i[s]=!0);return Object.keys(i).length>0&&(n.extensions=i),n}}class uI extends rn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Rt,this.projectionMatrix=new Rt,this.projectionMatrixInverse=new Rt,this.coordinateSystem=Us}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class zn extends uI{constructor(e=50,n=1,i=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=s,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=Aa*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ul*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Aa*2*Math.atan(Math.tan(Ul*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,n,i,s,r,o){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(Ul*.5*this.fov)/this.zoom,i=2*n,s=this.aspect*i,r=-.5*s;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,u=o.fullHeight;r+=o.offsetX*s/l,n-=o.offsetY*i/u,s*=o.width/l,i*=o.height/u}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+s,n,n-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const Ho=-90,qo=1;class sAt extends rn{constructor(e,n,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const s=new zn(Ho,qo,e,n);s.layers=this.layers,this.add(s);const r=new zn(Ho,qo,e,n);r.layers=this.layers,this.add(r);const o=new zn(Ho,qo,e,n);o.layers=this.layers,this.add(o);const a=new zn(Ho,qo,e,n);a.layers=this.layers,this.add(a);const l=new zn(Ho,qo,e,n);l.layers=this.layers,this.add(l);const u=new zn(Ho,qo,e,n);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[i,s,r,o,a,l]=n;for(const u of n)this.remove(u);if(e===Us)i.up.set(0,1,0),i.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===bu)i.up.set(0,-1,0),i.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of n)this.add(u),u.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:s}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,l,u,d]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),_=e.getActiveMipmapLevel(),m=e.xr.enabled;e.xr.enabled=!1;const E=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,s),e.render(n,r),e.setRenderTarget(i,1,s),e.render(n,o),e.setRenderTarget(i,2,s),e.render(n,a),e.setRenderTarget(i,3,s),e.render(n,l),e.setRenderTarget(i,4,s),e.render(n,u),i.texture.generateMipmaps=E,e.setRenderTarget(i,5,s),e.render(n,d),e.setRenderTarget(h,f,_),e.xr.enabled=m,i.texture.needsPMREMUpdate=!0}}class pI extends Nn{constructor(e,n,i,s,r,o,a,l,u,d){e=e!==void 0?e:[],n=n!==void 0?n:Ta,super(e,n,i,s,r,o,a,l,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class rAt extends mo{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},s=[i,i,i,i,i,i];n.encoding!==void 0&&(Bl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===lo?on:bi),this.texture=new pI(s,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:jn}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`
|
||
|
||
varying vec3 vWorldDirection;
|
||
|
||
vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
|
||
|
||
return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
|
||
|
||
}
|
||
|
||
void main() {
|
||
|
||
vWorldDirection = transformDirection( position, modelMatrix );
|
||
|
||
#include <begin_vertex>
|
||
#include <project_vertex>
|
||
|
||
}
|
||
`,fragmentShader:`
|
||
|
||
uniform sampler2D tEquirect;
|
||
|
||
varying vec3 vWorldDirection;
|
||
|
||
#include <common>
|
||
|
||
void main() {
|
||
|
||
vec3 direction = normalize( vWorldDirection );
|
||
|
||
vec2 sampleUV = equirectUv( direction );
|
||
|
||
gl_FragColor = texture2D( tEquirect, sampleUV );
|
||
|
||
}
|
||
`},s=new Cr(5,5,5),r=new go({name:"CubemapFromEquirect",uniforms:Na(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Zn,blending:Sr});r.uniforms.tEquirect.value=n;const o=new Hn(s,r),a=n.minFilter;return n.minFilter===fo&&(n.minFilter=jn),new sAt(1,10,this).update(e,o),n.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,n,i,s){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(n,i,s);e.setRenderTarget(r)}}const sg=new _e,oAt=new _e,aAt=new wt;class Yr{constructor(e=new _e(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,i,s){return this.normal.set(e,n,i),this.constant=s,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,i){const s=sg.subVectors(i,n).cross(oAt.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(s,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const i=e.delta(sg),s=this.normal.dot(i);if(s===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/s;return r<0||r>1?null:n.copy(e.start).addScaledVector(i,r)}intersectsLine(e){const n=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return n<0&&i>0||i<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const i=n||aAt.getNormalMatrix(e),s=this.coplanarPoint(sg).applyMatrix4(e),r=this.normal.applyMatrix3(i).normalize();return this.constant=-s.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Vr=new fs,fd=new _e;class ey{constructor(e=new Yr,n=new Yr,i=new Yr,s=new Yr,r=new Yr,o=new Yr){this.planes=[e,n,i,s,r,o]}set(e,n,i,s,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(i),a[3].copy(s),a[4].copy(r),a[5].copy(o),this}copy(e){const n=this.planes;for(let i=0;i<6;i++)n[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,n=Us){const i=this.planes,s=e.elements,r=s[0],o=s[1],a=s[2],l=s[3],u=s[4],d=s[5],h=s[6],f=s[7],_=s[8],m=s[9],E=s[10],b=s[11],g=s[12],y=s[13],v=s[14],S=s[15];if(i[0].setComponents(l-r,f-u,b-_,S-g).normalize(),i[1].setComponents(l+r,f+u,b+_,S+g).normalize(),i[2].setComponents(l+o,f+d,b+m,S+y).normalize(),i[3].setComponents(l-o,f-d,b-m,S-y).normalize(),i[4].setComponents(l-a,f-h,b-E,S-v).normalize(),n===Us)i[5].setComponents(l+a,f+h,b+E,S+v).normalize();else if(n===bu)i[5].setComponents(a,h,E,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Vr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Vr.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Vr)}intersectsSprite(e){return Vr.center.set(0,0,0),Vr.radius=.7071067811865476,Vr.applyMatrix4(e.matrixWorld),this.intersectsSphere(Vr)}intersectsSphere(e){const n=this.planes,i=e.center,s=-e.radius;for(let r=0;r<6;r++)if(n[r].distanceToPoint(i)<s)return!1;return!0}intersectsBox(e){const n=this.planes;for(let i=0;i<6;i++){const s=n[i];if(fd.x=s.normal.x>0?e.max.x:e.min.x,fd.y=s.normal.y>0?e.max.y:e.min.y,fd.z=s.normal.z>0?e.max.z:e.min.z,s.distanceToPoint(fd)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let i=0;i<6;i++)if(n[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function _I(){let t=null,e=!1,n=null,i=null;function s(r,o){n(r,o),i=t.requestAnimationFrame(s)}return{start:function(){e!==!0&&n!==null&&(i=t.requestAnimationFrame(s),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(r){n=r},setContext:function(r){t=r}}}function lAt(t,e){const n=e.isWebGL2,i=new WeakMap;function s(u,d){const h=u.array,f=u.usage,_=h.byteLength,m=t.createBuffer();t.bindBuffer(d,m),t.bufferData(d,h,f),u.onUploadCallback();let E;if(h instanceof Float32Array)E=t.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(n)E=t.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else E=t.UNSIGNED_SHORT;else if(h instanceof Int16Array)E=t.SHORT;else if(h instanceof Uint32Array)E=t.UNSIGNED_INT;else if(h instanceof Int32Array)E=t.INT;else if(h instanceof Int8Array)E=t.BYTE;else if(h instanceof Uint8Array)E=t.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)E=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:m,type:E,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:_}}function r(u,d,h){const f=d.array,_=d._updateRange,m=d.updateRanges;if(t.bindBuffer(h,u),_.count===-1&&m.length===0&&t.bufferSubData(h,0,f),m.length!==0){for(let E=0,b=m.length;E<b;E++){const g=m[E];n?t.bufferSubData(h,g.start*f.BYTES_PER_ELEMENT,f,g.start,g.count):t.bufferSubData(h,g.start*f.BYTES_PER_ELEMENT,f.subarray(g.start,g.start+g.count))}d.clearUpdateRanges()}_.count!==-1&&(n?t.bufferSubData(h,_.offset*f.BYTES_PER_ELEMENT,f,_.offset,_.count):t.bufferSubData(h,_.offset*f.BYTES_PER_ELEMENT,f.subarray(_.offset,_.offset+_.count)),_.count=-1),d.onUploadCallback()}function o(u){return u.isInterleavedBufferAttribute&&(u=u.data),i.get(u)}function a(u){u.isInterleavedBufferAttribute&&(u=u.data);const d=i.get(u);d&&(t.deleteBuffer(d.buffer),i.delete(u))}function l(u,d){if(u.isGLBufferAttribute){const f=i.get(u);(!f||f.version<u.version)&&i.set(u,{buffer:u.buffer,type:u.type,bytesPerElement:u.elementSize,version:u.version});return}u.isInterleavedBufferAttribute&&(u=u.data);const h=i.get(u);if(h===void 0)i.set(u,s(u,d));else if(h.version<u.version){if(h.size!==u.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");r(h.buffer,u,d),h.version=u.version}}return{get:o,remove:a,update:l}}class ty extends ms{constructor(e=1,n=1,i=1,s=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:i,heightSegments:s};const r=e/2,o=n/2,a=Math.floor(i),l=Math.floor(s),u=a+1,d=l+1,h=e/a,f=n/l,_=[],m=[],E=[],b=[];for(let g=0;g<d;g++){const y=g*f-o;for(let v=0;v<u;v++){const S=v*h-r;m.push(S,-y,0),E.push(0,0,1),b.push(v/a),b.push(1-g/l)}}for(let g=0;g<l;g++)for(let y=0;y<a;y++){const v=y+u*g,S=y+u*(g+1),C=y+1+u*(g+1),T=y+1+u*g;_.push(v,S,T),_.push(S,C,T)}this.setIndex(_),this.setAttribute("position",new Bs(m,3)),this.setAttribute("normal",new Bs(E,3)),this.setAttribute("uv",new Bs(b,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new ty(e.width,e.height,e.widthSegments,e.heightSegments)}}var cAt=`#ifdef USE_ALPHAHASH
|
||
if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
|
||
#endif`,dAt=`#ifdef USE_ALPHAHASH
|
||
const float ALPHA_HASH_SCALE = 0.05;
|
||
float hash2D( vec2 value ) {
|
||
return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
|
||
}
|
||
float hash3D( vec3 value ) {
|
||
return hash2D( vec2( hash2D( value.xy ), value.z ) );
|
||
}
|
||
float getAlphaHashThreshold( vec3 position ) {
|
||
float maxDeriv = max(
|
||
length( dFdx( position.xyz ) ),
|
||
length( dFdy( position.xyz ) )
|
||
);
|
||
float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
|
||
vec2 pixScales = vec2(
|
||
exp2( floor( log2( pixScale ) ) ),
|
||
exp2( ceil( log2( pixScale ) ) )
|
||
);
|
||
vec2 alpha = vec2(
|
||
hash3D( floor( pixScales.x * position.xyz ) ),
|
||
hash3D( floor( pixScales.y * position.xyz ) )
|
||
);
|
||
float lerpFactor = fract( log2( pixScale ) );
|
||
float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
|
||
float a = min( lerpFactor, 1.0 - lerpFactor );
|
||
vec3 cases = vec3(
|
||
x * x / ( 2.0 * a * ( 1.0 - a ) ),
|
||
( x - 0.5 * a ) / ( 1.0 - a ),
|
||
1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
|
||
);
|
||
float threshold = ( x < ( 1.0 - a ) )
|
||
? ( ( x < a ) ? cases.x : cases.y )
|
||
: cases.z;
|
||
return clamp( threshold , 1.0e-6, 1.0 );
|
||
}
|
||
#endif`,uAt=`#ifdef USE_ALPHAMAP
|
||
diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
|
||
#endif`,pAt=`#ifdef USE_ALPHAMAP
|
||
uniform sampler2D alphaMap;
|
||
#endif`,_At=`#ifdef USE_ALPHATEST
|
||
if ( diffuseColor.a < alphaTest ) discard;
|
||
#endif`,hAt=`#ifdef USE_ALPHATEST
|
||
uniform float alphaTest;
|
||
#endif`,fAt=`#ifdef USE_AOMAP
|
||
float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
|
||
reflectedLight.indirectDiffuse *= ambientOcclusion;
|
||
#if defined( USE_CLEARCOAT )
|
||
clearcoatSpecularIndirect *= ambientOcclusion;
|
||
#endif
|
||
#if defined( USE_SHEEN )
|
||
sheenSpecularIndirect *= ambientOcclusion;
|
||
#endif
|
||
#if defined( USE_ENVMAP ) && defined( STANDARD )
|
||
float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
|
||
reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
|
||
#endif
|
||
#endif`,mAt=`#ifdef USE_AOMAP
|
||
uniform sampler2D aoMap;
|
||
uniform float aoMapIntensity;
|
||
#endif`,gAt=`#ifdef USE_BATCHING
|
||
attribute float batchId;
|
||
uniform highp sampler2D batchingTexture;
|
||
mat4 getBatchingMatrix( const in float i ) {
|
||
int size = textureSize( batchingTexture, 0 ).x;
|
||
int j = int( i ) * 4;
|
||
int x = j % size;
|
||
int y = j / size;
|
||
vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
|
||
vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
|
||
vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
|
||
vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
|
||
return mat4( v1, v2, v3, v4 );
|
||
}
|
||
#endif`,bAt=`#ifdef USE_BATCHING
|
||
mat4 batchingMatrix = getBatchingMatrix( batchId );
|
||
#endif`,EAt=`vec3 transformed = vec3( position );
|
||
#ifdef USE_ALPHAHASH
|
||
vPosition = vec3( position );
|
||
#endif`,yAt=`vec3 objectNormal = vec3( normal );
|
||
#ifdef USE_TANGENT
|
||
vec3 objectTangent = vec3( tangent.xyz );
|
||
#endif`,vAt=`float G_BlinnPhong_Implicit( ) {
|
||
return 0.25;
|
||
}
|
||
float D_BlinnPhong( const in float shininess, const in float dotNH ) {
|
||
return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
|
||
}
|
||
vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
|
||
vec3 halfDir = normalize( lightDir + viewDir );
|
||
float dotNH = saturate( dot( normal, halfDir ) );
|
||
float dotVH = saturate( dot( viewDir, halfDir ) );
|
||
vec3 F = F_Schlick( specularColor, 1.0, dotVH );
|
||
float G = G_BlinnPhong_Implicit( );
|
||
float D = D_BlinnPhong( shininess, dotNH );
|
||
return F * ( G * D );
|
||
} // validated`,SAt=`#ifdef USE_IRIDESCENCE
|
||
const mat3 XYZ_TO_REC709 = mat3(
|
||
3.2404542, -0.9692660, 0.0556434,
|
||
-1.5371385, 1.8760108, -0.2040259,
|
||
-0.4985314, 0.0415560, 1.0572252
|
||
);
|
||
vec3 Fresnel0ToIor( vec3 fresnel0 ) {
|
||
vec3 sqrtF0 = sqrt( fresnel0 );
|
||
return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
|
||
}
|
||
vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
|
||
return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
|
||
}
|
||
float IorToFresnel0( float transmittedIor, float incidentIor ) {
|
||
return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
|
||
}
|
||
vec3 evalSensitivity( float OPD, vec3 shift ) {
|
||
float phase = 2.0 * PI * OPD * 1.0e-9;
|
||
vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
|
||
vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
|
||
vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
|
||
vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
|
||
xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );
|
||
xyz /= 1.0685e-7;
|
||
vec3 rgb = XYZ_TO_REC709 * xyz;
|
||
return rgb;
|
||
}
|
||
vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
|
||
vec3 I;
|
||
float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
|
||
float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
|
||
float cosTheta2Sq = 1.0 - sinTheta2Sq;
|
||
if ( cosTheta2Sq < 0.0 ) {
|
||
return vec3( 1.0 );
|
||
}
|
||
float cosTheta2 = sqrt( cosTheta2Sq );
|
||
float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
|
||
float R12 = F_Schlick( R0, 1.0, cosTheta1 );
|
||
float T121 = 1.0 - R12;
|
||
float phi12 = 0.0;
|
||
if ( iridescenceIOR < outsideIOR ) phi12 = PI;
|
||
float phi21 = PI - phi12;
|
||
vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
|
||
vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
|
||
vec3 phi23 = vec3( 0.0 );
|
||
if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
|
||
if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
|
||
if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
|
||
float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
|
||
vec3 phi = vec3( phi21 ) + phi23;
|
||
vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
|
||
vec3 r123 = sqrt( R123 );
|
||
vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
|
||
vec3 C0 = R12 + Rs;
|
||
I = C0;
|
||
vec3 Cm = Rs - T121;
|
||
for ( int m = 1; m <= 2; ++ m ) {
|
||
Cm *= r123;
|
||
vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
|
||
I += Cm * Sm;
|
||
}
|
||
return max( I, vec3( 0.0 ) );
|
||
}
|
||
#endif`,TAt=`#ifdef USE_BUMPMAP
|
||
uniform sampler2D bumpMap;
|
||
uniform float bumpScale;
|
||
vec2 dHdxy_fwd() {
|
||
vec2 dSTdx = dFdx( vBumpMapUv );
|
||
vec2 dSTdy = dFdy( vBumpMapUv );
|
||
float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
|
||
float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
|
||
float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
|
||
return vec2( dBx, dBy );
|
||
}
|
||
vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
|
||
vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );
|
||
vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );
|
||
vec3 vN = surf_norm;
|
||
vec3 R1 = cross( vSigmaY, vN );
|
||
vec3 R2 = cross( vN, vSigmaX );
|
||
float fDet = dot( vSigmaX, R1 ) * faceDirection;
|
||
vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
|
||
return normalize( abs( fDet ) * surf_norm - vGrad );
|
||
}
|
||
#endif`,xAt=`#if NUM_CLIPPING_PLANES > 0
|
||
vec4 plane;
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
|
||
plane = clippingPlanes[ i ];
|
||
if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
|
||
}
|
||
#pragma unroll_loop_end
|
||
#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
|
||
bool clipped = true;
|
||
#pragma unroll_loop_start
|
||
for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
|
||
plane = clippingPlanes[ i ];
|
||
clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
|
||
}
|
||
#pragma unroll_loop_end
|
||
if ( clipped ) discard;
|
||
#endif
|
||
#endif`,CAt=`#if NUM_CLIPPING_PLANES > 0
|
||
varying vec3 vClipPosition;
|
||
uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
|
||
#endif`,wAt=`#if NUM_CLIPPING_PLANES > 0
|
||
varying vec3 vClipPosition;
|
||
#endif`,RAt=`#if NUM_CLIPPING_PLANES > 0
|
||
vClipPosition = - mvPosition.xyz;
|
||
#endif`,AAt=`#if defined( USE_COLOR_ALPHA )
|
||
diffuseColor *= vColor;
|
||
#elif defined( USE_COLOR )
|
||
diffuseColor.rgb *= vColor;
|
||
#endif`,NAt=`#if defined( USE_COLOR_ALPHA )
|
||
varying vec4 vColor;
|
||
#elif defined( USE_COLOR )
|
||
varying vec3 vColor;
|
||
#endif`,OAt=`#if defined( USE_COLOR_ALPHA )
|
||
varying vec4 vColor;
|
||
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
|
||
varying vec3 vColor;
|
||
#endif`,IAt=`#if defined( USE_COLOR_ALPHA )
|
||
vColor = vec4( 1.0 );
|
||
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
|
||
vColor = vec3( 1.0 );
|
||
#endif
|
||
#ifdef USE_COLOR
|
||
vColor *= color;
|
||
#endif
|
||
#ifdef USE_INSTANCING_COLOR
|
||
vColor.xyz *= instanceColor.xyz;
|
||
#endif`,MAt=`#define PI 3.141592653589793
|
||
#define PI2 6.283185307179586
|
||
#define PI_HALF 1.5707963267948966
|
||
#define RECIPROCAL_PI 0.3183098861837907
|
||
#define RECIPROCAL_PI2 0.15915494309189535
|
||
#define EPSILON 1e-6
|
||
#ifndef saturate
|
||
#define saturate( a ) clamp( a, 0.0, 1.0 )
|
||
#endif
|
||
#define whiteComplement( a ) ( 1.0 - saturate( a ) )
|
||
float pow2( const in float x ) { return x*x; }
|
||
vec3 pow2( const in vec3 x ) { return x*x; }
|
||
float pow3( const in float x ) { return x*x*x; }
|
||
float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
|
||
float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
|
||
float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
|
||
highp float rand( const in vec2 uv ) {
|
||
const highp float a = 12.9898, b = 78.233, c = 43758.5453;
|
||
highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
|
||
return fract( sin( sn ) * c );
|
||
}
|
||
#ifdef HIGH_PRECISION
|
||
float precisionSafeLength( vec3 v ) { return length( v ); }
|
||
#else
|
||
float precisionSafeLength( vec3 v ) {
|
||
float maxComponent = max3( abs( v ) );
|
||
return length( v / maxComponent ) * maxComponent;
|
||
}
|
||
#endif
|
||
struct IncidentLight {
|
||
vec3 color;
|
||
vec3 direction;
|
||
bool visible;
|
||
};
|
||
struct ReflectedLight {
|
||
vec3 directDiffuse;
|
||
vec3 directSpecular;
|
||
vec3 indirectDiffuse;
|
||
vec3 indirectSpecular;
|
||
};
|
||
#ifdef USE_ALPHAHASH
|
||
varying vec3 vPosition;
|
||
#endif
|
||
vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
|
||
return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
|
||
}
|
||
vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
|
||
return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
|
||
}
|
||
mat3 transposeMat3( const in mat3 m ) {
|
||
mat3 tmp;
|
||
tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
|
||
tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
|
||
tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
|
||
return tmp;
|
||
}
|
||
float luminance( const in vec3 rgb ) {
|
||
const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );
|
||
return dot( weights, rgb );
|
||
}
|
||
bool isPerspectiveMatrix( mat4 m ) {
|
||
return m[ 2 ][ 3 ] == - 1.0;
|
||
}
|
||
vec2 equirectUv( in vec3 dir ) {
|
||
float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
|
||
float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
|
||
return vec2( u, v );
|
||
}
|
||
vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
|
||
return RECIPROCAL_PI * diffuseColor;
|
||
}
|
||
vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
|
||
float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
|
||
return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
|
||
}
|
||
float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
|
||
float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
|
||
return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
|
||
} // validated`,DAt=`#ifdef ENVMAP_TYPE_CUBE_UV
|
||
#define cubeUV_minMipLevel 4.0
|
||
#define cubeUV_minTileSize 16.0
|
||
float getFace( vec3 direction ) {
|
||
vec3 absDirection = abs( direction );
|
||
float face = - 1.0;
|
||
if ( absDirection.x > absDirection.z ) {
|
||
if ( absDirection.x > absDirection.y )
|
||
face = direction.x > 0.0 ? 0.0 : 3.0;
|
||
else
|
||
face = direction.y > 0.0 ? 1.0 : 4.0;
|
||
} else {
|
||
if ( absDirection.z > absDirection.y )
|
||
face = direction.z > 0.0 ? 2.0 : 5.0;
|
||
else
|
||
face = direction.y > 0.0 ? 1.0 : 4.0;
|
||
}
|
||
return face;
|
||
}
|
||
vec2 getUV( vec3 direction, float face ) {
|
||
vec2 uv;
|
||
if ( face == 0.0 ) {
|
||
uv = vec2( direction.z, direction.y ) / abs( direction.x );
|
||
} else if ( face == 1.0 ) {
|
||
uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
|
||
} else if ( face == 2.0 ) {
|
||
uv = vec2( - direction.x, direction.y ) / abs( direction.z );
|
||
} else if ( face == 3.0 ) {
|
||
uv = vec2( - direction.z, direction.y ) / abs( direction.x );
|
||
} else if ( face == 4.0 ) {
|
||
uv = vec2( - direction.x, direction.z ) / abs( direction.y );
|
||
} else {
|
||
uv = vec2( direction.x, direction.y ) / abs( direction.z );
|
||
}
|
||
return 0.5 * ( uv + 1.0 );
|
||
}
|
||
vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
|
||
float face = getFace( direction );
|
||
float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
|
||
mipInt = max( mipInt, cubeUV_minMipLevel );
|
||
float faceSize = exp2( mipInt );
|
||
highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;
|
||
if ( face > 2.0 ) {
|
||
uv.y += faceSize;
|
||
face -= 3.0;
|
||
}
|
||
uv.x += face * faceSize;
|
||
uv.x += filterInt * 3.0 * cubeUV_minTileSize;
|
||
uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
|
||
uv.x *= CUBEUV_TEXEL_WIDTH;
|
||
uv.y *= CUBEUV_TEXEL_HEIGHT;
|
||
#ifdef texture2DGradEXT
|
||
return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
|
||
#else
|
||
return texture2D( envMap, uv ).rgb;
|
||
#endif
|
||
}
|
||
#define cubeUV_r0 1.0
|
||
#define cubeUV_v0 0.339
|
||
#define cubeUV_m0 - 2.0
|
||
#define cubeUV_r1 0.8
|
||
#define cubeUV_v1 0.276
|
||
#define cubeUV_m1 - 1.0
|
||
#define cubeUV_r4 0.4
|
||
#define cubeUV_v4 0.046
|
||
#define cubeUV_m4 2.0
|
||
#define cubeUV_r5 0.305
|
||
#define cubeUV_v5 0.016
|
||
#define cubeUV_m5 3.0
|
||
#define cubeUV_r6 0.21
|
||
#define cubeUV_v6 0.0038
|
||
#define cubeUV_m6 4.0
|
||
float roughnessToMip( float roughness ) {
|
||
float mip = 0.0;
|
||
if ( roughness >= cubeUV_r1 ) {
|
||
mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;
|
||
} else if ( roughness >= cubeUV_r4 ) {
|
||
mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;
|
||
} else if ( roughness >= cubeUV_r5 ) {
|
||
mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;
|
||
} else if ( roughness >= cubeUV_r6 ) {
|
||
mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;
|
||
} else {
|
||
mip = - 2.0 * log2( 1.16 * roughness ); }
|
||
return mip;
|
||
}
|
||
vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
|
||
float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );
|
||
float mipF = fract( mip );
|
||
float mipInt = floor( mip );
|
||
vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
|
||
if ( mipF == 0.0 ) {
|
||
return vec4( color0, 1.0 );
|
||
} else {
|
||
vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
|
||
return vec4( mix( color0, color1, mipF ), 1.0 );
|
||
}
|
||
}
|
||
#endif`,kAt=`vec3 transformedNormal = objectNormal;
|
||
#ifdef USE_TANGENT
|
||
vec3 transformedTangent = objectTangent;
|
||
#endif
|
||
#ifdef USE_BATCHING
|
||
mat3 bm = mat3( batchingMatrix );
|
||
transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );
|
||
transformedNormal = bm * transformedNormal;
|
||
#ifdef USE_TANGENT
|
||
transformedTangent = bm * transformedTangent;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_INSTANCING
|
||
mat3 im = mat3( instanceMatrix );
|
||
transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );
|
||
transformedNormal = im * transformedNormal;
|
||
#ifdef USE_TANGENT
|
||
transformedTangent = im * transformedTangent;
|
||
#endif
|
||
#endif
|
||
transformedNormal = normalMatrix * transformedNormal;
|
||
#ifdef FLIP_SIDED
|
||
transformedNormal = - transformedNormal;
|
||
#endif
|
||
#ifdef USE_TANGENT
|
||
transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;
|
||
#ifdef FLIP_SIDED
|
||
transformedTangent = - transformedTangent;
|
||
#endif
|
||
#endif`,LAt=`#ifdef USE_DISPLACEMENTMAP
|
||
uniform sampler2D displacementMap;
|
||
uniform float displacementScale;
|
||
uniform float displacementBias;
|
||
#endif`,PAt=`#ifdef USE_DISPLACEMENTMAP
|
||
transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
|
||
#endif`,UAt=`#ifdef USE_EMISSIVEMAP
|
||
vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
|
||
totalEmissiveRadiance *= emissiveColor.rgb;
|
||
#endif`,FAt=`#ifdef USE_EMISSIVEMAP
|
||
uniform sampler2D emissiveMap;
|
||
#endif`,BAt="gl_FragColor = linearToOutputTexel( gl_FragColor );",GAt=`
|
||
const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(
|
||
vec3( 0.8224621, 0.177538, 0.0 ),
|
||
vec3( 0.0331941, 0.9668058, 0.0 ),
|
||
vec3( 0.0170827, 0.0723974, 0.9105199 )
|
||
);
|
||
const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(
|
||
vec3( 1.2249401, - 0.2249404, 0.0 ),
|
||
vec3( - 0.0420569, 1.0420571, 0.0 ),
|
||
vec3( - 0.0196376, - 0.0786361, 1.0982735 )
|
||
);
|
||
vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {
|
||
return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );
|
||
}
|
||
vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {
|
||
return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );
|
||
}
|
||
vec4 LinearTransferOETF( in vec4 value ) {
|
||
return value;
|
||
}
|
||
vec4 sRGBTransferOETF( in vec4 value ) {
|
||
return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
|
||
}
|
||
vec4 LinearToLinear( in vec4 value ) {
|
||
return value;
|
||
}
|
||
vec4 LinearTosRGB( in vec4 value ) {
|
||
return sRGBTransferOETF( value );
|
||
}`,VAt=`#ifdef USE_ENVMAP
|
||
#ifdef ENV_WORLDPOS
|
||
vec3 cameraToFrag;
|
||
if ( isOrthographic ) {
|
||
cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
|
||
} else {
|
||
cameraToFrag = normalize( vWorldPosition - cameraPosition );
|
||
}
|
||
vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
|
||
#ifdef ENVMAP_MODE_REFLECTION
|
||
vec3 reflectVec = reflect( cameraToFrag, worldNormal );
|
||
#else
|
||
vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
|
||
#endif
|
||
#else
|
||
vec3 reflectVec = vReflect;
|
||
#endif
|
||
#ifdef ENVMAP_TYPE_CUBE
|
||
vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
|
||
#else
|
||
vec4 envColor = vec4( 0.0 );
|
||
#endif
|
||
#ifdef ENVMAP_BLENDING_MULTIPLY
|
||
outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
|
||
#elif defined( ENVMAP_BLENDING_MIX )
|
||
outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
|
||
#elif defined( ENVMAP_BLENDING_ADD )
|
||
outgoingLight += envColor.xyz * specularStrength * reflectivity;
|
||
#endif
|
||
#endif`,zAt=`#ifdef USE_ENVMAP
|
||
uniform float envMapIntensity;
|
||
uniform float flipEnvMap;
|
||
#ifdef ENVMAP_TYPE_CUBE
|
||
uniform samplerCube envMap;
|
||
#else
|
||
uniform sampler2D envMap;
|
||
#endif
|
||
|
||
#endif`,HAt=`#ifdef USE_ENVMAP
|
||
uniform float reflectivity;
|
||
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
|
||
#define ENV_WORLDPOS
|
||
#endif
|
||
#ifdef ENV_WORLDPOS
|
||
varying vec3 vWorldPosition;
|
||
uniform float refractionRatio;
|
||
#else
|
||
varying vec3 vReflect;
|
||
#endif
|
||
#endif`,qAt=`#ifdef USE_ENVMAP
|
||
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
|
||
#define ENV_WORLDPOS
|
||
#endif
|
||
#ifdef ENV_WORLDPOS
|
||
|
||
varying vec3 vWorldPosition;
|
||
#else
|
||
varying vec3 vReflect;
|
||
uniform float refractionRatio;
|
||
#endif
|
||
#endif`,YAt=`#ifdef USE_ENVMAP
|
||
#ifdef ENV_WORLDPOS
|
||
vWorldPosition = worldPosition.xyz;
|
||
#else
|
||
vec3 cameraToVertex;
|
||
if ( isOrthographic ) {
|
||
cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
|
||
} else {
|
||
cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
|
||
}
|
||
vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
|
||
#ifdef ENVMAP_MODE_REFLECTION
|
||
vReflect = reflect( cameraToVertex, worldNormal );
|
||
#else
|
||
vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
|
||
#endif
|
||
#endif
|
||
#endif`,$At=`#ifdef USE_FOG
|
||
vFogDepth = - mvPosition.z;
|
||
#endif`,WAt=`#ifdef USE_FOG
|
||
varying float vFogDepth;
|
||
#endif`,KAt=`#ifdef USE_FOG
|
||
#ifdef FOG_EXP2
|
||
float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
|
||
#else
|
||
float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
|
||
#endif
|
||
gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
|
||
#endif`,jAt=`#ifdef USE_FOG
|
||
uniform vec3 fogColor;
|
||
varying float vFogDepth;
|
||
#ifdef FOG_EXP2
|
||
uniform float fogDensity;
|
||
#else
|
||
uniform float fogNear;
|
||
uniform float fogFar;
|
||
#endif
|
||
#endif`,QAt=`#ifdef USE_GRADIENTMAP
|
||
uniform sampler2D gradientMap;
|
||
#endif
|
||
vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
|
||
float dotNL = dot( normal, lightDirection );
|
||
vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
|
||
#ifdef USE_GRADIENTMAP
|
||
return vec3( texture2D( gradientMap, coord ).r );
|
||
#else
|
||
vec2 fw = fwidth( coord ) * 0.5;
|
||
return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
|
||
#endif
|
||
}`,XAt=`#ifdef USE_LIGHTMAP
|
||
vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
|
||
vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
|
||
reflectedLight.indirectDiffuse += lightMapIrradiance;
|
||
#endif`,ZAt=`#ifdef USE_LIGHTMAP
|
||
uniform sampler2D lightMap;
|
||
uniform float lightMapIntensity;
|
||
#endif`,JAt=`LambertMaterial material;
|
||
material.diffuseColor = diffuseColor.rgb;
|
||
material.specularStrength = specularStrength;`,eNt=`varying vec3 vViewPosition;
|
||
struct LambertMaterial {
|
||
vec3 diffuseColor;
|
||
float specularStrength;
|
||
};
|
||
void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
|
||
float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
|
||
vec3 irradiance = dotNL * directLight.color;
|
||
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
}
|
||
void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
|
||
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
}
|
||
#define RE_Direct RE_Direct_Lambert
|
||
#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,tNt=`uniform bool receiveShadow;
|
||
uniform vec3 ambientLightColor;
|
||
#if defined( USE_LIGHT_PROBES )
|
||
uniform vec3 lightProbe[ 9 ];
|
||
#endif
|
||
vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
|
||
float x = normal.x, y = normal.y, z = normal.z;
|
||
vec3 result = shCoefficients[ 0 ] * 0.886227;
|
||
result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
|
||
result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
|
||
result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
|
||
result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
|
||
result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
|
||
result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
|
||
result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
|
||
result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
|
||
return result;
|
||
}
|
||
vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
|
||
vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
|
||
vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
|
||
return irradiance;
|
||
}
|
||
vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
|
||
vec3 irradiance = ambientLightColor;
|
||
return irradiance;
|
||
}
|
||
float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
|
||
#if defined ( LEGACY_LIGHTS )
|
||
if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {
|
||
return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );
|
||
}
|
||
return 1.0;
|
||
#else
|
||
float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
|
||
if ( cutoffDistance > 0.0 ) {
|
||
distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
|
||
}
|
||
return distanceFalloff;
|
||
#endif
|
||
}
|
||
float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
|
||
return smoothstep( coneCosine, penumbraCosine, angleCosine );
|
||
}
|
||
#if NUM_DIR_LIGHTS > 0
|
||
struct DirectionalLight {
|
||
vec3 direction;
|
||
vec3 color;
|
||
};
|
||
uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
|
||
void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {
|
||
light.color = directionalLight.color;
|
||
light.direction = directionalLight.direction;
|
||
light.visible = true;
|
||
}
|
||
#endif
|
||
#if NUM_POINT_LIGHTS > 0
|
||
struct PointLight {
|
||
vec3 position;
|
||
vec3 color;
|
||
float distance;
|
||
float decay;
|
||
};
|
||
uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
|
||
void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {
|
||
vec3 lVector = pointLight.position - geometryPosition;
|
||
light.direction = normalize( lVector );
|
||
float lightDistance = length( lVector );
|
||
light.color = pointLight.color;
|
||
light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
|
||
light.visible = ( light.color != vec3( 0.0 ) );
|
||
}
|
||
#endif
|
||
#if NUM_SPOT_LIGHTS > 0
|
||
struct SpotLight {
|
||
vec3 position;
|
||
vec3 direction;
|
||
vec3 color;
|
||
float distance;
|
||
float decay;
|
||
float coneCos;
|
||
float penumbraCos;
|
||
};
|
||
uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
|
||
void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {
|
||
vec3 lVector = spotLight.position - geometryPosition;
|
||
light.direction = normalize( lVector );
|
||
float angleCos = dot( light.direction, spotLight.direction );
|
||
float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
|
||
if ( spotAttenuation > 0.0 ) {
|
||
float lightDistance = length( lVector );
|
||
light.color = spotLight.color * spotAttenuation;
|
||
light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
|
||
light.visible = ( light.color != vec3( 0.0 ) );
|
||
} else {
|
||
light.color = vec3( 0.0 );
|
||
light.visible = false;
|
||
}
|
||
}
|
||
#endif
|
||
#if NUM_RECT_AREA_LIGHTS > 0
|
||
struct RectAreaLight {
|
||
vec3 color;
|
||
vec3 position;
|
||
vec3 halfWidth;
|
||
vec3 halfHeight;
|
||
};
|
||
uniform sampler2D ltc_1; uniform sampler2D ltc_2;
|
||
uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
|
||
#endif
|
||
#if NUM_HEMI_LIGHTS > 0
|
||
struct HemisphereLight {
|
||
vec3 direction;
|
||
vec3 skyColor;
|
||
vec3 groundColor;
|
||
};
|
||
uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
|
||
vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
|
||
float dotNL = dot( normal, hemiLight.direction );
|
||
float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
|
||
vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
|
||
return irradiance;
|
||
}
|
||
#endif`,nNt=`#ifdef USE_ENVMAP
|
||
vec3 getIBLIrradiance( const in vec3 normal ) {
|
||
#ifdef ENVMAP_TYPE_CUBE_UV
|
||
vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
|
||
vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );
|
||
return PI * envMapColor.rgb * envMapIntensity;
|
||
#else
|
||
return vec3( 0.0 );
|
||
#endif
|
||
}
|
||
vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
|
||
#ifdef ENVMAP_TYPE_CUBE_UV
|
||
vec3 reflectVec = reflect( - viewDir, normal );
|
||
reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
|
||
reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
|
||
vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );
|
||
return envMapColor.rgb * envMapIntensity;
|
||
#else
|
||
return vec3( 0.0 );
|
||
#endif
|
||
}
|
||
#ifdef USE_ANISOTROPY
|
||
vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
|
||
#ifdef ENVMAP_TYPE_CUBE_UV
|
||
vec3 bentNormal = cross( bitangent, viewDir );
|
||
bentNormal = normalize( cross( bentNormal, bitangent ) );
|
||
bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
|
||
return getIBLRadiance( viewDir, bentNormal, roughness );
|
||
#else
|
||
return vec3( 0.0 );
|
||
#endif
|
||
}
|
||
#endif
|
||
#endif`,iNt=`ToonMaterial material;
|
||
material.diffuseColor = diffuseColor.rgb;`,sNt=`varying vec3 vViewPosition;
|
||
struct ToonMaterial {
|
||
vec3 diffuseColor;
|
||
};
|
||
void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
|
||
vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;
|
||
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
}
|
||
void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
|
||
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
}
|
||
#define RE_Direct RE_Direct_Toon
|
||
#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,rNt=`BlinnPhongMaterial material;
|
||
material.diffuseColor = diffuseColor.rgb;
|
||
material.specularColor = specular;
|
||
material.specularShininess = shininess;
|
||
material.specularStrength = specularStrength;`,oNt=`varying vec3 vViewPosition;
|
||
struct BlinnPhongMaterial {
|
||
vec3 diffuseColor;
|
||
vec3 specularColor;
|
||
float specularShininess;
|
||
float specularStrength;
|
||
};
|
||
void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
|
||
float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
|
||
vec3 irradiance = dotNL * directLight.color;
|
||
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;
|
||
}
|
||
void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
|
||
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
}
|
||
#define RE_Direct RE_Direct_BlinnPhong
|
||
#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,aNt=`PhysicalMaterial material;
|
||
material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
|
||
vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
|
||
float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
|
||
material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
|
||
material.roughness = min( material.roughness, 1.0 );
|
||
#ifdef IOR
|
||
material.ior = ior;
|
||
#ifdef USE_SPECULAR
|
||
float specularIntensityFactor = specularIntensity;
|
||
vec3 specularColorFactor = specularColor;
|
||
#ifdef USE_SPECULAR_COLORMAP
|
||
specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
|
||
#endif
|
||
#ifdef USE_SPECULAR_INTENSITYMAP
|
||
specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
|
||
#endif
|
||
material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
|
||
#else
|
||
float specularIntensityFactor = 1.0;
|
||
vec3 specularColorFactor = vec3( 1.0 );
|
||
material.specularF90 = 1.0;
|
||
#endif
|
||
material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );
|
||
#else
|
||
material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
|
||
material.specularF90 = 1.0;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT
|
||
material.clearcoat = clearcoat;
|
||
material.clearcoatRoughness = clearcoatRoughness;
|
||
material.clearcoatF0 = vec3( 0.04 );
|
||
material.clearcoatF90 = 1.0;
|
||
#ifdef USE_CLEARCOATMAP
|
||
material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
|
||
material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
|
||
#endif
|
||
material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
|
||
material.clearcoatRoughness += geometryRoughness;
|
||
material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE
|
||
material.iridescence = iridescence;
|
||
material.iridescenceIOR = iridescenceIOR;
|
||
#ifdef USE_IRIDESCENCEMAP
|
||
material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE_THICKNESSMAP
|
||
material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
|
||
#else
|
||
material.iridescenceThickness = iridescenceThicknessMaximum;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_SHEEN
|
||
material.sheenColor = sheenColor;
|
||
#ifdef USE_SHEEN_COLORMAP
|
||
material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
|
||
#endif
|
||
material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );
|
||
#ifdef USE_SHEEN_ROUGHNESSMAP
|
||
material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_ANISOTROPY
|
||
#ifdef USE_ANISOTROPYMAP
|
||
mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
|
||
vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
|
||
vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
|
||
#else
|
||
vec2 anisotropyV = anisotropyVector;
|
||
#endif
|
||
material.anisotropy = length( anisotropyV );
|
||
if( material.anisotropy == 0.0 ) {
|
||
anisotropyV = vec2( 1.0, 0.0 );
|
||
} else {
|
||
anisotropyV /= material.anisotropy;
|
||
material.anisotropy = saturate( material.anisotropy );
|
||
}
|
||
material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
|
||
material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
|
||
material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
|
||
#endif`,lNt=`struct PhysicalMaterial {
|
||
vec3 diffuseColor;
|
||
float roughness;
|
||
vec3 specularColor;
|
||
float specularF90;
|
||
#ifdef USE_CLEARCOAT
|
||
float clearcoat;
|
||
float clearcoatRoughness;
|
||
vec3 clearcoatF0;
|
||
float clearcoatF90;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE
|
||
float iridescence;
|
||
float iridescenceIOR;
|
||
float iridescenceThickness;
|
||
vec3 iridescenceFresnel;
|
||
vec3 iridescenceF0;
|
||
#endif
|
||
#ifdef USE_SHEEN
|
||
vec3 sheenColor;
|
||
float sheenRoughness;
|
||
#endif
|
||
#ifdef IOR
|
||
float ior;
|
||
#endif
|
||
#ifdef USE_TRANSMISSION
|
||
float transmission;
|
||
float transmissionAlpha;
|
||
float thickness;
|
||
float attenuationDistance;
|
||
vec3 attenuationColor;
|
||
#endif
|
||
#ifdef USE_ANISOTROPY
|
||
float anisotropy;
|
||
float alphaT;
|
||
vec3 anisotropyT;
|
||
vec3 anisotropyB;
|
||
#endif
|
||
};
|
||
vec3 clearcoatSpecularDirect = vec3( 0.0 );
|
||
vec3 clearcoatSpecularIndirect = vec3( 0.0 );
|
||
vec3 sheenSpecularDirect = vec3( 0.0 );
|
||
vec3 sheenSpecularIndirect = vec3(0.0 );
|
||
vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
|
||
float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
|
||
float x2 = x * x;
|
||
float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
|
||
return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
|
||
}
|
||
float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
|
||
float a2 = pow2( alpha );
|
||
float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
|
||
float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
|
||
return 0.5 / max( gv + gl, EPSILON );
|
||
}
|
||
float D_GGX( const in float alpha, const in float dotNH ) {
|
||
float a2 = pow2( alpha );
|
||
float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
|
||
return RECIPROCAL_PI * a2 / pow2( denom );
|
||
}
|
||
#ifdef USE_ANISOTROPY
|
||
float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {
|
||
float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
|
||
float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
|
||
float v = 0.5 / ( gv + gl );
|
||
return saturate(v);
|
||
}
|
||
float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
|
||
float a2 = alphaT * alphaB;
|
||
highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
|
||
highp float v2 = dot( v, v );
|
||
float w2 = a2 / v2;
|
||
return RECIPROCAL_PI * a2 * pow2 ( w2 );
|
||
}
|
||
#endif
|
||
#ifdef USE_CLEARCOAT
|
||
vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
|
||
vec3 f0 = material.clearcoatF0;
|
||
float f90 = material.clearcoatF90;
|
||
float roughness = material.clearcoatRoughness;
|
||
float alpha = pow2( roughness );
|
||
vec3 halfDir = normalize( lightDir + viewDir );
|
||
float dotNL = saturate( dot( normal, lightDir ) );
|
||
float dotNV = saturate( dot( normal, viewDir ) );
|
||
float dotNH = saturate( dot( normal, halfDir ) );
|
||
float dotVH = saturate( dot( viewDir, halfDir ) );
|
||
vec3 F = F_Schlick( f0, f90, dotVH );
|
||
float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
|
||
float D = D_GGX( alpha, dotNH );
|
||
return F * ( V * D );
|
||
}
|
||
#endif
|
||
vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
|
||
vec3 f0 = material.specularColor;
|
||
float f90 = material.specularF90;
|
||
float roughness = material.roughness;
|
||
float alpha = pow2( roughness );
|
||
vec3 halfDir = normalize( lightDir + viewDir );
|
||
float dotNL = saturate( dot( normal, lightDir ) );
|
||
float dotNV = saturate( dot( normal, viewDir ) );
|
||
float dotNH = saturate( dot( normal, halfDir ) );
|
||
float dotVH = saturate( dot( viewDir, halfDir ) );
|
||
vec3 F = F_Schlick( f0, f90, dotVH );
|
||
#ifdef USE_IRIDESCENCE
|
||
F = mix( F, material.iridescenceFresnel, material.iridescence );
|
||
#endif
|
||
#ifdef USE_ANISOTROPY
|
||
float dotTL = dot( material.anisotropyT, lightDir );
|
||
float dotTV = dot( material.anisotropyT, viewDir );
|
||
float dotTH = dot( material.anisotropyT, halfDir );
|
||
float dotBL = dot( material.anisotropyB, lightDir );
|
||
float dotBV = dot( material.anisotropyB, viewDir );
|
||
float dotBH = dot( material.anisotropyB, halfDir );
|
||
float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
|
||
float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );
|
||
#else
|
||
float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
|
||
float D = D_GGX( alpha, dotNH );
|
||
#endif
|
||
return F * ( V * D );
|
||
}
|
||
vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
|
||
const float LUT_SIZE = 64.0;
|
||
const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
|
||
const float LUT_BIAS = 0.5 / LUT_SIZE;
|
||
float dotNV = saturate( dot( N, V ) );
|
||
vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
|
||
uv = uv * LUT_SCALE + LUT_BIAS;
|
||
return uv;
|
||
}
|
||
float LTC_ClippedSphereFormFactor( const in vec3 f ) {
|
||
float l = length( f );
|
||
return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
|
||
}
|
||
vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
|
||
float x = dot( v1, v2 );
|
||
float y = abs( x );
|
||
float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
|
||
float b = 3.4175940 + ( 4.1616724 + y ) * y;
|
||
float v = a / b;
|
||
float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
|
||
return cross( v1, v2 ) * theta_sintheta;
|
||
}
|
||
vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
|
||
vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
|
||
vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
|
||
vec3 lightNormal = cross( v1, v2 );
|
||
if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
|
||
vec3 T1, T2;
|
||
T1 = normalize( V - N * dot( V, N ) );
|
||
T2 = - cross( N, T1 );
|
||
mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
|
||
vec3 coords[ 4 ];
|
||
coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
|
||
coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
|
||
coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
|
||
coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
|
||
coords[ 0 ] = normalize( coords[ 0 ] );
|
||
coords[ 1 ] = normalize( coords[ 1 ] );
|
||
coords[ 2 ] = normalize( coords[ 2 ] );
|
||
coords[ 3 ] = normalize( coords[ 3 ] );
|
||
vec3 vectorFormFactor = vec3( 0.0 );
|
||
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
|
||
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
|
||
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
|
||
vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
|
||
float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
|
||
return vec3( result );
|
||
}
|
||
#if defined( USE_SHEEN )
|
||
float D_Charlie( float roughness, float dotNH ) {
|
||
float alpha = pow2( roughness );
|
||
float invAlpha = 1.0 / alpha;
|
||
float cos2h = dotNH * dotNH;
|
||
float sin2h = max( 1.0 - cos2h, 0.0078125 );
|
||
return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
|
||
}
|
||
float V_Neubelt( float dotNV, float dotNL ) {
|
||
return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
|
||
}
|
||
vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
|
||
vec3 halfDir = normalize( lightDir + viewDir );
|
||
float dotNL = saturate( dot( normal, lightDir ) );
|
||
float dotNV = saturate( dot( normal, viewDir ) );
|
||
float dotNH = saturate( dot( normal, halfDir ) );
|
||
float D = D_Charlie( sheenRoughness, dotNH );
|
||
float V = V_Neubelt( dotNV, dotNL );
|
||
return sheenColor * ( D * V );
|
||
}
|
||
#endif
|
||
float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
|
||
float dotNV = saturate( dot( normal, viewDir ) );
|
||
float r2 = roughness * roughness;
|
||
float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;
|
||
float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;
|
||
float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );
|
||
return saturate( DG * RECIPROCAL_PI );
|
||
}
|
||
vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
|
||
float dotNV = saturate( dot( normal, viewDir ) );
|
||
const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
|
||
const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
|
||
vec4 r = roughness * c0 + c1;
|
||
float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;
|
||
vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;
|
||
return fab;
|
||
}
|
||
vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
|
||
vec2 fab = DFGApprox( normal, viewDir, roughness );
|
||
return specularColor * fab.x + specularF90 * fab.y;
|
||
}
|
||
#ifdef USE_IRIDESCENCE
|
||
void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
|
||
#else
|
||
void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
|
||
#endif
|
||
vec2 fab = DFGApprox( normal, viewDir, roughness );
|
||
#ifdef USE_IRIDESCENCE
|
||
vec3 Fr = mix( specularColor, iridescenceF0, iridescence );
|
||
#else
|
||
vec3 Fr = specularColor;
|
||
#endif
|
||
vec3 FssEss = Fr * fab.x + specularF90 * fab.y;
|
||
float Ess = fab.x + fab.y;
|
||
float Ems = 1.0 - Ess;
|
||
vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
|
||
singleScatter += FssEss;
|
||
multiScatter += Fms * Ems;
|
||
}
|
||
#if NUM_RECT_AREA_LIGHTS > 0
|
||
void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
|
||
vec3 normal = geometryNormal;
|
||
vec3 viewDir = geometryViewDir;
|
||
vec3 position = geometryPosition;
|
||
vec3 lightPos = rectAreaLight.position;
|
||
vec3 halfWidth = rectAreaLight.halfWidth;
|
||
vec3 halfHeight = rectAreaLight.halfHeight;
|
||
vec3 lightColor = rectAreaLight.color;
|
||
float roughness = material.roughness;
|
||
vec3 rectCoords[ 4 ];
|
||
rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
|
||
rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
|
||
rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
|
||
vec2 uv = LTC_Uv( normal, viewDir, roughness );
|
||
vec4 t1 = texture2D( ltc_1, uv );
|
||
vec4 t2 = texture2D( ltc_2, uv );
|
||
mat3 mInv = mat3(
|
||
vec3( t1.x, 0, t1.y ),
|
||
vec3( 0, 1, 0 ),
|
||
vec3( t1.z, 0, t1.w )
|
||
);
|
||
vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
|
||
reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
|
||
reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
|
||
}
|
||
#endif
|
||
void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
|
||
float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
|
||
vec3 irradiance = dotNL * directLight.color;
|
||
#ifdef USE_CLEARCOAT
|
||
float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );
|
||
vec3 ccIrradiance = dotNLcc * directLight.color;
|
||
clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );
|
||
#endif
|
||
#ifdef USE_SHEEN
|
||
sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );
|
||
#endif
|
||
reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );
|
||
reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
}
|
||
void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
|
||
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
|
||
}
|
||
void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
|
||
#ifdef USE_CLEARCOAT
|
||
clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
|
||
#endif
|
||
#ifdef USE_SHEEN
|
||
sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
|
||
#endif
|
||
vec3 singleScattering = vec3( 0.0 );
|
||
vec3 multiScattering = vec3( 0.0 );
|
||
vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
|
||
#ifdef USE_IRIDESCENCE
|
||
computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );
|
||
#else
|
||
computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );
|
||
#endif
|
||
vec3 totalScattering = singleScattering + multiScattering;
|
||
vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );
|
||
reflectedLight.indirectSpecular += radiance * singleScattering;
|
||
reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
|
||
reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
|
||
}
|
||
#define RE_Direct RE_Direct_Physical
|
||
#define RE_Direct_RectArea RE_Direct_RectArea_Physical
|
||
#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical
|
||
#define RE_IndirectSpecular RE_IndirectSpecular_Physical
|
||
float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
|
||
return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
|
||
}`,cNt=`
|
||
vec3 geometryPosition = - vViewPosition;
|
||
vec3 geometryNormal = normal;
|
||
vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
|
||
vec3 geometryClearcoatNormal = vec3( 0.0 );
|
||
#ifdef USE_CLEARCOAT
|
||
geometryClearcoatNormal = clearcoatNormal;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE
|
||
float dotNVi = saturate( dot( normal, geometryViewDir ) );
|
||
if ( material.iridescenceThickness == 0.0 ) {
|
||
material.iridescence = 0.0;
|
||
} else {
|
||
material.iridescence = saturate( material.iridescence );
|
||
}
|
||
if ( material.iridescence > 0.0 ) {
|
||
material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
|
||
material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );
|
||
}
|
||
#endif
|
||
IncidentLight directLight;
|
||
#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
|
||
PointLight pointLight;
|
||
#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
|
||
PointLightShadow pointLightShadow;
|
||
#endif
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
|
||
pointLight = pointLights[ i ];
|
||
getPointLightInfo( pointLight, geometryPosition, directLight );
|
||
#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )
|
||
pointLightShadow = pointLightShadows[ i ];
|
||
directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
|
||
#endif
|
||
RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
|
||
SpotLight spotLight;
|
||
vec4 spotColor;
|
||
vec3 spotLightCoord;
|
||
bool inSpotLightMap;
|
||
#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
|
||
SpotLightShadow spotLightShadow;
|
||
#endif
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
|
||
spotLight = spotLights[ i ];
|
||
getSpotLightInfo( spotLight, geometryPosition, directLight );
|
||
#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
|
||
#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
|
||
#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
|
||
#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
|
||
#else
|
||
#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
|
||
#endif
|
||
#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
|
||
spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
|
||
inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
|
||
spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
|
||
directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
|
||
#endif
|
||
#undef SPOT_LIGHT_MAP_INDEX
|
||
#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
|
||
spotLightShadow = spotLightShadows[ i ];
|
||
directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
|
||
#endif
|
||
RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
|
||
DirectionalLight directionalLight;
|
||
#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
|
||
DirectionalLightShadow directionalLightShadow;
|
||
#endif
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
|
||
directionalLight = directionalLights[ i ];
|
||
getDirectionalLightInfo( directionalLight, directLight );
|
||
#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
|
||
directionalLightShadow = directionalLightShadows[ i ];
|
||
directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
|
||
#endif
|
||
RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
|
||
RectAreaLight rectAreaLight;
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
|
||
rectAreaLight = rectAreaLights[ i ];
|
||
RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#if defined( RE_IndirectDiffuse )
|
||
vec3 iblIrradiance = vec3( 0.0 );
|
||
vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
|
||
#if defined( USE_LIGHT_PROBES )
|
||
irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );
|
||
#endif
|
||
#if ( NUM_HEMI_LIGHTS > 0 )
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
|
||
irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#endif
|
||
#if defined( RE_IndirectSpecular )
|
||
vec3 radiance = vec3( 0.0 );
|
||
vec3 clearcoatRadiance = vec3( 0.0 );
|
||
#endif`,dNt=`#if defined( RE_IndirectDiffuse )
|
||
#ifdef USE_LIGHTMAP
|
||
vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
|
||
vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
|
||
irradiance += lightMapIrradiance;
|
||
#endif
|
||
#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
|
||
iblIrradiance += getIBLIrradiance( geometryNormal );
|
||
#endif
|
||
#endif
|
||
#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
|
||
#ifdef USE_ANISOTROPY
|
||
radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
|
||
#else
|
||
radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );
|
||
#endif
|
||
#ifdef USE_CLEARCOAT
|
||
clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
|
||
#endif
|
||
#endif`,uNt=`#if defined( RE_IndirectDiffuse )
|
||
RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
|
||
#endif
|
||
#if defined( RE_IndirectSpecular )
|
||
RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
|
||
#endif`,pNt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
|
||
gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
|
||
#endif`,_Nt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
|
||
uniform float logDepthBufFC;
|
||
varying float vFragDepth;
|
||
varying float vIsPerspective;
|
||
#endif`,hNt=`#ifdef USE_LOGDEPTHBUF
|
||
#ifdef USE_LOGDEPTHBUF_EXT
|
||
varying float vFragDepth;
|
||
varying float vIsPerspective;
|
||
#else
|
||
uniform float logDepthBufFC;
|
||
#endif
|
||
#endif`,fNt=`#ifdef USE_LOGDEPTHBUF
|
||
#ifdef USE_LOGDEPTHBUF_EXT
|
||
vFragDepth = 1.0 + gl_Position.w;
|
||
vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
|
||
#else
|
||
if ( isPerspectiveMatrix( projectionMatrix ) ) {
|
||
gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;
|
||
gl_Position.z *= gl_Position.w;
|
||
}
|
||
#endif
|
||
#endif`,mNt=`#ifdef USE_MAP
|
||
vec4 sampledDiffuseColor = texture2D( map, vMapUv );
|
||
#ifdef DECODE_VIDEO_TEXTURE
|
||
sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );
|
||
|
||
#endif
|
||
diffuseColor *= sampledDiffuseColor;
|
||
#endif`,gNt=`#ifdef USE_MAP
|
||
uniform sampler2D map;
|
||
#endif`,bNt=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
|
||
#if defined( USE_POINTS_UV )
|
||
vec2 uv = vUv;
|
||
#else
|
||
vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_MAP
|
||
diffuseColor *= texture2D( map, uv );
|
||
#endif
|
||
#ifdef USE_ALPHAMAP
|
||
diffuseColor.a *= texture2D( alphaMap, uv ).g;
|
||
#endif`,ENt=`#if defined( USE_POINTS_UV )
|
||
varying vec2 vUv;
|
||
#else
|
||
#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
|
||
uniform mat3 uvTransform;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_MAP
|
||
uniform sampler2D map;
|
||
#endif
|
||
#ifdef USE_ALPHAMAP
|
||
uniform sampler2D alphaMap;
|
||
#endif`,yNt=`float metalnessFactor = metalness;
|
||
#ifdef USE_METALNESSMAP
|
||
vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
|
||
metalnessFactor *= texelMetalness.b;
|
||
#endif`,vNt=`#ifdef USE_METALNESSMAP
|
||
uniform sampler2D metalnessMap;
|
||
#endif`,SNt=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
|
||
vColor *= morphTargetBaseInfluence;
|
||
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
|
||
#if defined( USE_COLOR_ALPHA )
|
||
if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
|
||
#elif defined( USE_COLOR )
|
||
if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
|
||
#endif
|
||
}
|
||
#endif`,TNt=`#ifdef USE_MORPHNORMALS
|
||
objectNormal *= morphTargetBaseInfluence;
|
||
#ifdef MORPHTARGETS_TEXTURE
|
||
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
|
||
if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
|
||
}
|
||
#else
|
||
objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];
|
||
objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];
|
||
objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
|
||
objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
|
||
#endif
|
||
#endif`,xNt=`#ifdef USE_MORPHTARGETS
|
||
uniform float morphTargetBaseInfluence;
|
||
#ifdef MORPHTARGETS_TEXTURE
|
||
uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
|
||
uniform sampler2DArray morphTargetsTexture;
|
||
uniform ivec2 morphTargetsTextureSize;
|
||
vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
|
||
int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
|
||
int y = texelIndex / morphTargetsTextureSize.x;
|
||
int x = texelIndex - y * morphTargetsTextureSize.x;
|
||
ivec3 morphUV = ivec3( x, y, morphTargetIndex );
|
||
return texelFetch( morphTargetsTexture, morphUV, 0 );
|
||
}
|
||
#else
|
||
#ifndef USE_MORPHNORMALS
|
||
uniform float morphTargetInfluences[ 8 ];
|
||
#else
|
||
uniform float morphTargetInfluences[ 4 ];
|
||
#endif
|
||
#endif
|
||
#endif`,CNt=`#ifdef USE_MORPHTARGETS
|
||
transformed *= morphTargetBaseInfluence;
|
||
#ifdef MORPHTARGETS_TEXTURE
|
||
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
|
||
if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
|
||
}
|
||
#else
|
||
transformed += morphTarget0 * morphTargetInfluences[ 0 ];
|
||
transformed += morphTarget1 * morphTargetInfluences[ 1 ];
|
||
transformed += morphTarget2 * morphTargetInfluences[ 2 ];
|
||
transformed += morphTarget3 * morphTargetInfluences[ 3 ];
|
||
#ifndef USE_MORPHNORMALS
|
||
transformed += morphTarget4 * morphTargetInfluences[ 4 ];
|
||
transformed += morphTarget5 * morphTargetInfluences[ 5 ];
|
||
transformed += morphTarget6 * morphTargetInfluences[ 6 ];
|
||
transformed += morphTarget7 * morphTargetInfluences[ 7 ];
|
||
#endif
|
||
#endif
|
||
#endif`,wNt=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
|
||
#ifdef FLAT_SHADED
|
||
vec3 fdx = dFdx( vViewPosition );
|
||
vec3 fdy = dFdy( vViewPosition );
|
||
vec3 normal = normalize( cross( fdx, fdy ) );
|
||
#else
|
||
vec3 normal = normalize( vNormal );
|
||
#ifdef DOUBLE_SIDED
|
||
normal *= faceDirection;
|
||
#endif
|
||
#endif
|
||
#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
|
||
#ifdef USE_TANGENT
|
||
mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
|
||
#else
|
||
mat3 tbn = getTangentFrame( - vViewPosition, normal,
|
||
#if defined( USE_NORMALMAP )
|
||
vNormalMapUv
|
||
#elif defined( USE_CLEARCOAT_NORMALMAP )
|
||
vClearcoatNormalMapUv
|
||
#else
|
||
vUv
|
||
#endif
|
||
);
|
||
#endif
|
||
#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
|
||
tbn[0] *= faceDirection;
|
||
tbn[1] *= faceDirection;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_NORMALMAP
|
||
#ifdef USE_TANGENT
|
||
mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
|
||
#else
|
||
mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
|
||
#endif
|
||
#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
|
||
tbn2[0] *= faceDirection;
|
||
tbn2[1] *= faceDirection;
|
||
#endif
|
||
#endif
|
||
vec3 nonPerturbedNormal = normal;`,RNt=`#ifdef USE_NORMALMAP_OBJECTSPACE
|
||
normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
|
||
#ifdef FLIP_SIDED
|
||
normal = - normal;
|
||
#endif
|
||
#ifdef DOUBLE_SIDED
|
||
normal = normal * faceDirection;
|
||
#endif
|
||
normal = normalize( normalMatrix * normal );
|
||
#elif defined( USE_NORMALMAP_TANGENTSPACE )
|
||
vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
|
||
mapN.xy *= normalScale;
|
||
normal = normalize( tbn * mapN );
|
||
#elif defined( USE_BUMPMAP )
|
||
normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
|
||
#endif`,ANt=`#ifndef FLAT_SHADED
|
||
varying vec3 vNormal;
|
||
#ifdef USE_TANGENT
|
||
varying vec3 vTangent;
|
||
varying vec3 vBitangent;
|
||
#endif
|
||
#endif`,NNt=`#ifndef FLAT_SHADED
|
||
varying vec3 vNormal;
|
||
#ifdef USE_TANGENT
|
||
varying vec3 vTangent;
|
||
varying vec3 vBitangent;
|
||
#endif
|
||
#endif`,ONt=`#ifndef FLAT_SHADED
|
||
vNormal = normalize( transformedNormal );
|
||
#ifdef USE_TANGENT
|
||
vTangent = normalize( transformedTangent );
|
||
vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
|
||
#endif
|
||
#endif`,INt=`#ifdef USE_NORMALMAP
|
||
uniform sampler2D normalMap;
|
||
uniform vec2 normalScale;
|
||
#endif
|
||
#ifdef USE_NORMALMAP_OBJECTSPACE
|
||
uniform mat3 normalMatrix;
|
||
#endif
|
||
#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )
|
||
mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {
|
||
vec3 q0 = dFdx( eye_pos.xyz );
|
||
vec3 q1 = dFdy( eye_pos.xyz );
|
||
vec2 st0 = dFdx( uv.st );
|
||
vec2 st1 = dFdy( uv.st );
|
||
vec3 N = surf_norm;
|
||
vec3 q1perp = cross( q1, N );
|
||
vec3 q0perp = cross( N, q0 );
|
||
vec3 T = q1perp * st0.x + q0perp * st1.x;
|
||
vec3 B = q1perp * st0.y + q0perp * st1.y;
|
||
float det = max( dot( T, T ), dot( B, B ) );
|
||
float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
|
||
return mat3( T * scale, B * scale, N );
|
||
}
|
||
#endif`,MNt=`#ifdef USE_CLEARCOAT
|
||
vec3 clearcoatNormal = nonPerturbedNormal;
|
||
#endif`,DNt=`#ifdef USE_CLEARCOAT_NORMALMAP
|
||
vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
|
||
clearcoatMapN.xy *= clearcoatNormalScale;
|
||
clearcoatNormal = normalize( tbn2 * clearcoatMapN );
|
||
#endif`,kNt=`#ifdef USE_CLEARCOATMAP
|
||
uniform sampler2D clearcoatMap;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_NORMALMAP
|
||
uniform sampler2D clearcoatNormalMap;
|
||
uniform vec2 clearcoatNormalScale;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
|
||
uniform sampler2D clearcoatRoughnessMap;
|
||
#endif`,LNt=`#ifdef USE_IRIDESCENCEMAP
|
||
uniform sampler2D iridescenceMap;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE_THICKNESSMAP
|
||
uniform sampler2D iridescenceThicknessMap;
|
||
#endif`,PNt=`#ifdef OPAQUE
|
||
diffuseColor.a = 1.0;
|
||
#endif
|
||
#ifdef USE_TRANSMISSION
|
||
diffuseColor.a *= material.transmissionAlpha;
|
||
#endif
|
||
gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,UNt=`vec3 packNormalToRGB( const in vec3 normal ) {
|
||
return normalize( normal ) * 0.5 + 0.5;
|
||
}
|
||
vec3 unpackRGBToNormal( const in vec3 rgb ) {
|
||
return 2.0 * rgb.xyz - 1.0;
|
||
}
|
||
const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;
|
||
const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );
|
||
const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );
|
||
const float ShiftRight8 = 1. / 256.;
|
||
vec4 packDepthToRGBA( const in float v ) {
|
||
vec4 r = vec4( fract( v * PackFactors ), v );
|
||
r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale;
|
||
}
|
||
float unpackRGBAToDepth( const in vec4 v ) {
|
||
return dot( v, UnpackFactors );
|
||
}
|
||
vec2 packDepthToRG( in highp float v ) {
|
||
return packDepthToRGBA( v ).yx;
|
||
}
|
||
float unpackRGToDepth( const in highp vec2 v ) {
|
||
return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );
|
||
}
|
||
vec4 pack2HalfToRGBA( vec2 v ) {
|
||
vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
|
||
return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
|
||
}
|
||
vec2 unpackRGBATo2Half( vec4 v ) {
|
||
return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
|
||
}
|
||
float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
|
||
return ( viewZ + near ) / ( near - far );
|
||
}
|
||
float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {
|
||
return depth * ( near - far ) - near;
|
||
}
|
||
float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
|
||
return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
|
||
}
|
||
float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
|
||
return ( near * far ) / ( ( far - near ) * depth - far );
|
||
}`,FNt=`#ifdef PREMULTIPLIED_ALPHA
|
||
gl_FragColor.rgb *= gl_FragColor.a;
|
||
#endif`,BNt=`vec4 mvPosition = vec4( transformed, 1.0 );
|
||
#ifdef USE_BATCHING
|
||
mvPosition = batchingMatrix * mvPosition;
|
||
#endif
|
||
#ifdef USE_INSTANCING
|
||
mvPosition = instanceMatrix * mvPosition;
|
||
#endif
|
||
mvPosition = modelViewMatrix * mvPosition;
|
||
gl_Position = projectionMatrix * mvPosition;`,GNt=`#ifdef DITHERING
|
||
gl_FragColor.rgb = dithering( gl_FragColor.rgb );
|
||
#endif`,VNt=`#ifdef DITHERING
|
||
vec3 dithering( vec3 color ) {
|
||
float grid_position = rand( gl_FragCoord.xy );
|
||
vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
|
||
dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
|
||
return color + dither_shift_RGB;
|
||
}
|
||
#endif`,zNt=`float roughnessFactor = roughness;
|
||
#ifdef USE_ROUGHNESSMAP
|
||
vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
|
||
roughnessFactor *= texelRoughness.g;
|
||
#endif`,HNt=`#ifdef USE_ROUGHNESSMAP
|
||
uniform sampler2D roughnessMap;
|
||
#endif`,qNt=`#if NUM_SPOT_LIGHT_COORDS > 0
|
||
varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
|
||
#endif
|
||
#if NUM_SPOT_LIGHT_MAPS > 0
|
||
uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
|
||
#endif
|
||
#ifdef USE_SHADOWMAP
|
||
#if NUM_DIR_LIGHT_SHADOWS > 0
|
||
uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
|
||
varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
|
||
struct DirectionalLightShadow {
|
||
float shadowBias;
|
||
float shadowNormalBias;
|
||
float shadowRadius;
|
||
vec2 shadowMapSize;
|
||
};
|
||
uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
|
||
#endif
|
||
#if NUM_SPOT_LIGHT_SHADOWS > 0
|
||
uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
|
||
struct SpotLightShadow {
|
||
float shadowBias;
|
||
float shadowNormalBias;
|
||
float shadowRadius;
|
||
vec2 shadowMapSize;
|
||
};
|
||
uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
|
||
#endif
|
||
#if NUM_POINT_LIGHT_SHADOWS > 0
|
||
uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
|
||
varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
|
||
struct PointLightShadow {
|
||
float shadowBias;
|
||
float shadowNormalBias;
|
||
float shadowRadius;
|
||
vec2 shadowMapSize;
|
||
float shadowCameraNear;
|
||
float shadowCameraFar;
|
||
};
|
||
uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
|
||
#endif
|
||
float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
|
||
return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
|
||
}
|
||
vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
|
||
return unpackRGBATo2Half( texture2D( shadow, uv ) );
|
||
}
|
||
float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
|
||
float occlusion = 1.0;
|
||
vec2 distribution = texture2DDistribution( shadow, uv );
|
||
float hard_shadow = step( compare , distribution.x );
|
||
if (hard_shadow != 1.0 ) {
|
||
float distance = compare - distribution.x ;
|
||
float variance = max( 0.00000, distribution.y * distribution.y );
|
||
float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );
|
||
}
|
||
return occlusion;
|
||
}
|
||
float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
|
||
float shadow = 1.0;
|
||
shadowCoord.xyz /= shadowCoord.w;
|
||
shadowCoord.z += shadowBias;
|
||
bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
|
||
bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
|
||
if ( frustumTest ) {
|
||
#if defined( SHADOWMAP_TYPE_PCF )
|
||
vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
|
||
float dx0 = - texelSize.x * shadowRadius;
|
||
float dy0 = - texelSize.y * shadowRadius;
|
||
float dx1 = + texelSize.x * shadowRadius;
|
||
float dy1 = + texelSize.y * shadowRadius;
|
||
float dx2 = dx0 / 2.0;
|
||
float dy2 = dy0 / 2.0;
|
||
float dx3 = dx1 / 2.0;
|
||
float dy3 = dy1 / 2.0;
|
||
shadow = (
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )
|
||
) * ( 1.0 / 17.0 );
|
||
#elif defined( SHADOWMAP_TYPE_PCF_SOFT )
|
||
vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
|
||
float dx = texelSize.x;
|
||
float dy = texelSize.y;
|
||
vec2 uv = shadowCoord.xy;
|
||
vec2 f = fract( uv * shadowMapSize + 0.5 );
|
||
uv -= f * texelSize;
|
||
shadow = (
|
||
texture2DCompare( shadowMap, uv, shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +
|
||
texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +
|
||
mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),
|
||
texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),
|
||
f.x ) +
|
||
mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),
|
||
texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),
|
||
f.x ) +
|
||
mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),
|
||
texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),
|
||
f.y ) +
|
||
mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),
|
||
texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),
|
||
f.y ) +
|
||
mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),
|
||
texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
|
||
f.x ),
|
||
mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),
|
||
texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),
|
||
f.x ),
|
||
f.y )
|
||
) * ( 1.0 / 9.0 );
|
||
#elif defined( SHADOWMAP_TYPE_VSM )
|
||
shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );
|
||
#else
|
||
shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );
|
||
#endif
|
||
}
|
||
return shadow;
|
||
}
|
||
vec2 cubeToUV( vec3 v, float texelSizeY ) {
|
||
vec3 absV = abs( v );
|
||
float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );
|
||
absV *= scaleToCube;
|
||
v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );
|
||
vec2 planar = v.xy;
|
||
float almostATexel = 1.5 * texelSizeY;
|
||
float almostOne = 1.0 - almostATexel;
|
||
if ( absV.z >= almostOne ) {
|
||
if ( v.z > 0.0 )
|
||
planar.x = 4.0 - v.x;
|
||
} else if ( absV.x >= almostOne ) {
|
||
float signX = sign( v.x );
|
||
planar.x = v.z * signX + 2.0 * signX;
|
||
} else if ( absV.y >= almostOne ) {
|
||
float signY = sign( v.y );
|
||
planar.x = v.x + 2.0 * signY + 2.0;
|
||
planar.y = v.z * signY - 2.0;
|
||
}
|
||
return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
|
||
}
|
||
float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
|
||
vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
|
||
vec3 lightToPosition = shadowCoord.xyz;
|
||
float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;
|
||
vec3 bd3D = normalize( lightToPosition );
|
||
#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
|
||
vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
|
||
return (
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
|
||
texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
|
||
) * ( 1.0 / 9.0 );
|
||
#else
|
||
return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
|
||
#endif
|
||
}
|
||
#endif`,YNt=`#if NUM_SPOT_LIGHT_COORDS > 0
|
||
uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
|
||
varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
|
||
#endif
|
||
#ifdef USE_SHADOWMAP
|
||
#if NUM_DIR_LIGHT_SHADOWS > 0
|
||
uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
|
||
varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
|
||
struct DirectionalLightShadow {
|
||
float shadowBias;
|
||
float shadowNormalBias;
|
||
float shadowRadius;
|
||
vec2 shadowMapSize;
|
||
};
|
||
uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
|
||
#endif
|
||
#if NUM_SPOT_LIGHT_SHADOWS > 0
|
||
struct SpotLightShadow {
|
||
float shadowBias;
|
||
float shadowNormalBias;
|
||
float shadowRadius;
|
||
vec2 shadowMapSize;
|
||
};
|
||
uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
|
||
#endif
|
||
#if NUM_POINT_LIGHT_SHADOWS > 0
|
||
uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
|
||
varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
|
||
struct PointLightShadow {
|
||
float shadowBias;
|
||
float shadowNormalBias;
|
||
float shadowRadius;
|
||
vec2 shadowMapSize;
|
||
float shadowCameraNear;
|
||
float shadowCameraFar;
|
||
};
|
||
uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
|
||
#endif
|
||
#endif`,$Nt=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
|
||
vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
|
||
vec4 shadowWorldPosition;
|
||
#endif
|
||
#if defined( USE_SHADOWMAP )
|
||
#if NUM_DIR_LIGHT_SHADOWS > 0
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
|
||
shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
|
||
vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#if NUM_POINT_LIGHT_SHADOWS > 0
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
|
||
shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
|
||
vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#endif
|
||
#if NUM_SPOT_LIGHT_COORDS > 0
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
|
||
shadowWorldPosition = worldPosition;
|
||
#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
|
||
shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;
|
||
#endif
|
||
vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif`,WNt=`float getShadowMask() {
|
||
float shadow = 1.0;
|
||
#ifdef USE_SHADOWMAP
|
||
#if NUM_DIR_LIGHT_SHADOWS > 0
|
||
DirectionalLightShadow directionalLight;
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
|
||
directionalLight = directionalLightShadows[ i ];
|
||
shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#if NUM_SPOT_LIGHT_SHADOWS > 0
|
||
SpotLightShadow spotLight;
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
|
||
spotLight = spotLightShadows[ i ];
|
||
shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#if NUM_POINT_LIGHT_SHADOWS > 0
|
||
PointLightShadow pointLight;
|
||
#pragma unroll_loop_start
|
||
for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
|
||
pointLight = pointLightShadows[ i ];
|
||
shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
|
||
}
|
||
#pragma unroll_loop_end
|
||
#endif
|
||
#endif
|
||
return shadow;
|
||
}`,KNt=`#ifdef USE_SKINNING
|
||
mat4 boneMatX = getBoneMatrix( skinIndex.x );
|
||
mat4 boneMatY = getBoneMatrix( skinIndex.y );
|
||
mat4 boneMatZ = getBoneMatrix( skinIndex.z );
|
||
mat4 boneMatW = getBoneMatrix( skinIndex.w );
|
||
#endif`,jNt=`#ifdef USE_SKINNING
|
||
uniform mat4 bindMatrix;
|
||
uniform mat4 bindMatrixInverse;
|
||
uniform highp sampler2D boneTexture;
|
||
mat4 getBoneMatrix( const in float i ) {
|
||
int size = textureSize( boneTexture, 0 ).x;
|
||
int j = int( i ) * 4;
|
||
int x = j % size;
|
||
int y = j / size;
|
||
vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );
|
||
vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );
|
||
vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );
|
||
vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
|
||
return mat4( v1, v2, v3, v4 );
|
||
}
|
||
#endif`,QNt=`#ifdef USE_SKINNING
|
||
vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
|
||
vec4 skinned = vec4( 0.0 );
|
||
skinned += boneMatX * skinVertex * skinWeight.x;
|
||
skinned += boneMatY * skinVertex * skinWeight.y;
|
||
skinned += boneMatZ * skinVertex * skinWeight.z;
|
||
skinned += boneMatW * skinVertex * skinWeight.w;
|
||
transformed = ( bindMatrixInverse * skinned ).xyz;
|
||
#endif`,XNt=`#ifdef USE_SKINNING
|
||
mat4 skinMatrix = mat4( 0.0 );
|
||
skinMatrix += skinWeight.x * boneMatX;
|
||
skinMatrix += skinWeight.y * boneMatY;
|
||
skinMatrix += skinWeight.z * boneMatZ;
|
||
skinMatrix += skinWeight.w * boneMatW;
|
||
skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
|
||
objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
|
||
#ifdef USE_TANGENT
|
||
objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
|
||
#endif
|
||
#endif`,ZNt=`float specularStrength;
|
||
#ifdef USE_SPECULARMAP
|
||
vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
|
||
specularStrength = texelSpecular.r;
|
||
#else
|
||
specularStrength = 1.0;
|
||
#endif`,JNt=`#ifdef USE_SPECULARMAP
|
||
uniform sampler2D specularMap;
|
||
#endif`,eOt=`#if defined( TONE_MAPPING )
|
||
gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
|
||
#endif`,tOt=`#ifndef saturate
|
||
#define saturate( a ) clamp( a, 0.0, 1.0 )
|
||
#endif
|
||
uniform float toneMappingExposure;
|
||
vec3 LinearToneMapping( vec3 color ) {
|
||
return saturate( toneMappingExposure * color );
|
||
}
|
||
vec3 ReinhardToneMapping( vec3 color ) {
|
||
color *= toneMappingExposure;
|
||
return saturate( color / ( vec3( 1.0 ) + color ) );
|
||
}
|
||
vec3 OptimizedCineonToneMapping( vec3 color ) {
|
||
color *= toneMappingExposure;
|
||
color = max( vec3( 0.0 ), color - 0.004 );
|
||
return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
|
||
}
|
||
vec3 RRTAndODTFit( vec3 v ) {
|
||
vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
|
||
vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
|
||
return a / b;
|
||
}
|
||
vec3 ACESFilmicToneMapping( vec3 color ) {
|
||
const mat3 ACESInputMat = mat3(
|
||
vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),
|
||
vec3( 0.04823, 0.01566, 0.83777 )
|
||
);
|
||
const mat3 ACESOutputMat = mat3(
|
||
vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),
|
||
vec3( -0.07367, -0.00605, 1.07602 )
|
||
);
|
||
color *= toneMappingExposure / 0.6;
|
||
color = ACESInputMat * color;
|
||
color = RRTAndODTFit( color );
|
||
color = ACESOutputMat * color;
|
||
return saturate( color );
|
||
}
|
||
vec3 CustomToneMapping( vec3 color ) { return color; }`,nOt=`#ifdef USE_TRANSMISSION
|
||
material.transmission = transmission;
|
||
material.transmissionAlpha = 1.0;
|
||
material.thickness = thickness;
|
||
material.attenuationDistance = attenuationDistance;
|
||
material.attenuationColor = attenuationColor;
|
||
#ifdef USE_TRANSMISSIONMAP
|
||
material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
|
||
#endif
|
||
#ifdef USE_THICKNESSMAP
|
||
material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
|
||
#endif
|
||
vec3 pos = vWorldPosition;
|
||
vec3 v = normalize( cameraPosition - pos );
|
||
vec3 n = inverseTransformDirection( normal, viewMatrix );
|
||
vec4 transmitted = getIBLVolumeRefraction(
|
||
n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,
|
||
pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,
|
||
material.attenuationColor, material.attenuationDistance );
|
||
material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
|
||
totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
|
||
#endif`,iOt=`#ifdef USE_TRANSMISSION
|
||
uniform float transmission;
|
||
uniform float thickness;
|
||
uniform float attenuationDistance;
|
||
uniform vec3 attenuationColor;
|
||
#ifdef USE_TRANSMISSIONMAP
|
||
uniform sampler2D transmissionMap;
|
||
#endif
|
||
#ifdef USE_THICKNESSMAP
|
||
uniform sampler2D thicknessMap;
|
||
#endif
|
||
uniform vec2 transmissionSamplerSize;
|
||
uniform sampler2D transmissionSamplerMap;
|
||
uniform mat4 modelMatrix;
|
||
uniform mat4 projectionMatrix;
|
||
varying vec3 vWorldPosition;
|
||
float w0( float a ) {
|
||
return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
|
||
}
|
||
float w1( float a ) {
|
||
return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );
|
||
}
|
||
float w2( float a ){
|
||
return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
|
||
}
|
||
float w3( float a ) {
|
||
return ( 1.0 / 6.0 ) * ( a * a * a );
|
||
}
|
||
float g0( float a ) {
|
||
return w0( a ) + w1( a );
|
||
}
|
||
float g1( float a ) {
|
||
return w2( a ) + w3( a );
|
||
}
|
||
float h0( float a ) {
|
||
return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
|
||
}
|
||
float h1( float a ) {
|
||
return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
|
||
}
|
||
vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
|
||
uv = uv * texelSize.zw + 0.5;
|
||
vec2 iuv = floor( uv );
|
||
vec2 fuv = fract( uv );
|
||
float g0x = g0( fuv.x );
|
||
float g1x = g1( fuv.x );
|
||
float h0x = h0( fuv.x );
|
||
float h1x = h1( fuv.x );
|
||
float h0y = h0( fuv.y );
|
||
float h1y = h1( fuv.y );
|
||
vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
|
||
vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
|
||
vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
|
||
vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
|
||
return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
|
||
g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
|
||
}
|
||
vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
|
||
vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
|
||
vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
|
||
vec2 fLodSizeInv = 1.0 / fLodSize;
|
||
vec2 cLodSizeInv = 1.0 / cLodSize;
|
||
vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
|
||
vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
|
||
return mix( fSample, cSample, fract( lod ) );
|
||
}
|
||
vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
|
||
vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
|
||
vec3 modelScale;
|
||
modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
|
||
modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
|
||
modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
|
||
return normalize( refractionVector ) * thickness * modelScale;
|
||
}
|
||
float applyIorToRoughness( const in float roughness, const in float ior ) {
|
||
return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
|
||
}
|
||
vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
|
||
float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
|
||
return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
|
||
}
|
||
vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
|
||
if ( isinf( attenuationDistance ) ) {
|
||
return vec3( 1.0 );
|
||
} else {
|
||
vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
|
||
vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance;
|
||
}
|
||
}
|
||
vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
|
||
const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
|
||
const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,
|
||
const in vec3 attenuationColor, const in float attenuationDistance ) {
|
||
vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
|
||
vec3 refractedRayExit = position + transmissionRay;
|
||
vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
|
||
vec2 refractionCoords = ndcPos.xy / ndcPos.w;
|
||
refractionCoords += 1.0;
|
||
refractionCoords /= 2.0;
|
||
vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
|
||
vec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
|
||
vec3 attenuatedColor = transmittance * transmittedLight.rgb;
|
||
vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
|
||
float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
|
||
return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
|
||
}
|
||
#endif`,sOt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
|
||
varying vec2 vUv;
|
||
#endif
|
||
#ifdef USE_MAP
|
||
varying vec2 vMapUv;
|
||
#endif
|
||
#ifdef USE_ALPHAMAP
|
||
varying vec2 vAlphaMapUv;
|
||
#endif
|
||
#ifdef USE_LIGHTMAP
|
||
varying vec2 vLightMapUv;
|
||
#endif
|
||
#ifdef USE_AOMAP
|
||
varying vec2 vAoMapUv;
|
||
#endif
|
||
#ifdef USE_BUMPMAP
|
||
varying vec2 vBumpMapUv;
|
||
#endif
|
||
#ifdef USE_NORMALMAP
|
||
varying vec2 vNormalMapUv;
|
||
#endif
|
||
#ifdef USE_EMISSIVEMAP
|
||
varying vec2 vEmissiveMapUv;
|
||
#endif
|
||
#ifdef USE_METALNESSMAP
|
||
varying vec2 vMetalnessMapUv;
|
||
#endif
|
||
#ifdef USE_ROUGHNESSMAP
|
||
varying vec2 vRoughnessMapUv;
|
||
#endif
|
||
#ifdef USE_ANISOTROPYMAP
|
||
varying vec2 vAnisotropyMapUv;
|
||
#endif
|
||
#ifdef USE_CLEARCOATMAP
|
||
varying vec2 vClearcoatMapUv;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_NORMALMAP
|
||
varying vec2 vClearcoatNormalMapUv;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
|
||
varying vec2 vClearcoatRoughnessMapUv;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCEMAP
|
||
varying vec2 vIridescenceMapUv;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE_THICKNESSMAP
|
||
varying vec2 vIridescenceThicknessMapUv;
|
||
#endif
|
||
#ifdef USE_SHEEN_COLORMAP
|
||
varying vec2 vSheenColorMapUv;
|
||
#endif
|
||
#ifdef USE_SHEEN_ROUGHNESSMAP
|
||
varying vec2 vSheenRoughnessMapUv;
|
||
#endif
|
||
#ifdef USE_SPECULARMAP
|
||
varying vec2 vSpecularMapUv;
|
||
#endif
|
||
#ifdef USE_SPECULAR_COLORMAP
|
||
varying vec2 vSpecularColorMapUv;
|
||
#endif
|
||
#ifdef USE_SPECULAR_INTENSITYMAP
|
||
varying vec2 vSpecularIntensityMapUv;
|
||
#endif
|
||
#ifdef USE_TRANSMISSIONMAP
|
||
uniform mat3 transmissionMapTransform;
|
||
varying vec2 vTransmissionMapUv;
|
||
#endif
|
||
#ifdef USE_THICKNESSMAP
|
||
uniform mat3 thicknessMapTransform;
|
||
varying vec2 vThicknessMapUv;
|
||
#endif`,rOt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
|
||
varying vec2 vUv;
|
||
#endif
|
||
#ifdef USE_MAP
|
||
uniform mat3 mapTransform;
|
||
varying vec2 vMapUv;
|
||
#endif
|
||
#ifdef USE_ALPHAMAP
|
||
uniform mat3 alphaMapTransform;
|
||
varying vec2 vAlphaMapUv;
|
||
#endif
|
||
#ifdef USE_LIGHTMAP
|
||
uniform mat3 lightMapTransform;
|
||
varying vec2 vLightMapUv;
|
||
#endif
|
||
#ifdef USE_AOMAP
|
||
uniform mat3 aoMapTransform;
|
||
varying vec2 vAoMapUv;
|
||
#endif
|
||
#ifdef USE_BUMPMAP
|
||
uniform mat3 bumpMapTransform;
|
||
varying vec2 vBumpMapUv;
|
||
#endif
|
||
#ifdef USE_NORMALMAP
|
||
uniform mat3 normalMapTransform;
|
||
varying vec2 vNormalMapUv;
|
||
#endif
|
||
#ifdef USE_DISPLACEMENTMAP
|
||
uniform mat3 displacementMapTransform;
|
||
varying vec2 vDisplacementMapUv;
|
||
#endif
|
||
#ifdef USE_EMISSIVEMAP
|
||
uniform mat3 emissiveMapTransform;
|
||
varying vec2 vEmissiveMapUv;
|
||
#endif
|
||
#ifdef USE_METALNESSMAP
|
||
uniform mat3 metalnessMapTransform;
|
||
varying vec2 vMetalnessMapUv;
|
||
#endif
|
||
#ifdef USE_ROUGHNESSMAP
|
||
uniform mat3 roughnessMapTransform;
|
||
varying vec2 vRoughnessMapUv;
|
||
#endif
|
||
#ifdef USE_ANISOTROPYMAP
|
||
uniform mat3 anisotropyMapTransform;
|
||
varying vec2 vAnisotropyMapUv;
|
||
#endif
|
||
#ifdef USE_CLEARCOATMAP
|
||
uniform mat3 clearcoatMapTransform;
|
||
varying vec2 vClearcoatMapUv;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_NORMALMAP
|
||
uniform mat3 clearcoatNormalMapTransform;
|
||
varying vec2 vClearcoatNormalMapUv;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
|
||
uniform mat3 clearcoatRoughnessMapTransform;
|
||
varying vec2 vClearcoatRoughnessMapUv;
|
||
#endif
|
||
#ifdef USE_SHEEN_COLORMAP
|
||
uniform mat3 sheenColorMapTransform;
|
||
varying vec2 vSheenColorMapUv;
|
||
#endif
|
||
#ifdef USE_SHEEN_ROUGHNESSMAP
|
||
uniform mat3 sheenRoughnessMapTransform;
|
||
varying vec2 vSheenRoughnessMapUv;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCEMAP
|
||
uniform mat3 iridescenceMapTransform;
|
||
varying vec2 vIridescenceMapUv;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE_THICKNESSMAP
|
||
uniform mat3 iridescenceThicknessMapTransform;
|
||
varying vec2 vIridescenceThicknessMapUv;
|
||
#endif
|
||
#ifdef USE_SPECULARMAP
|
||
uniform mat3 specularMapTransform;
|
||
varying vec2 vSpecularMapUv;
|
||
#endif
|
||
#ifdef USE_SPECULAR_COLORMAP
|
||
uniform mat3 specularColorMapTransform;
|
||
varying vec2 vSpecularColorMapUv;
|
||
#endif
|
||
#ifdef USE_SPECULAR_INTENSITYMAP
|
||
uniform mat3 specularIntensityMapTransform;
|
||
varying vec2 vSpecularIntensityMapUv;
|
||
#endif
|
||
#ifdef USE_TRANSMISSIONMAP
|
||
uniform mat3 transmissionMapTransform;
|
||
varying vec2 vTransmissionMapUv;
|
||
#endif
|
||
#ifdef USE_THICKNESSMAP
|
||
uniform mat3 thicknessMapTransform;
|
||
varying vec2 vThicknessMapUv;
|
||
#endif`,oOt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
|
||
vUv = vec3( uv, 1 ).xy;
|
||
#endif
|
||
#ifdef USE_MAP
|
||
vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_ALPHAMAP
|
||
vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_LIGHTMAP
|
||
vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_AOMAP
|
||
vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_BUMPMAP
|
||
vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_NORMALMAP
|
||
vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_DISPLACEMENTMAP
|
||
vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_EMISSIVEMAP
|
||
vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_METALNESSMAP
|
||
vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_ROUGHNESSMAP
|
||
vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_ANISOTROPYMAP
|
||
vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_CLEARCOATMAP
|
||
vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_NORMALMAP
|
||
vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
|
||
vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCEMAP
|
||
vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE_THICKNESSMAP
|
||
vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_SHEEN_COLORMAP
|
||
vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_SHEEN_ROUGHNESSMAP
|
||
vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_SPECULARMAP
|
||
vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_SPECULAR_COLORMAP
|
||
vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_SPECULAR_INTENSITYMAP
|
||
vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_TRANSMISSIONMAP
|
||
vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;
|
||
#endif
|
||
#ifdef USE_THICKNESSMAP
|
||
vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
|
||
#endif`,aOt=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
|
||
vec4 worldPosition = vec4( transformed, 1.0 );
|
||
#ifdef USE_BATCHING
|
||
worldPosition = batchingMatrix * worldPosition;
|
||
#endif
|
||
#ifdef USE_INSTANCING
|
||
worldPosition = instanceMatrix * worldPosition;
|
||
#endif
|
||
worldPosition = modelMatrix * worldPosition;
|
||
#endif`;const lOt=`varying vec2 vUv;
|
||
uniform mat3 uvTransform;
|
||
void main() {
|
||
vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
|
||
gl_Position = vec4( position.xy, 1.0, 1.0 );
|
||
}`,cOt=`uniform sampler2D t2D;
|
||
uniform float backgroundIntensity;
|
||
varying vec2 vUv;
|
||
void main() {
|
||
vec4 texColor = texture2D( t2D, vUv );
|
||
#ifdef DECODE_VIDEO_TEXTURE
|
||
texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );
|
||
#endif
|
||
texColor.rgb *= backgroundIntensity;
|
||
gl_FragColor = texColor;
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
}`,dOt=`varying vec3 vWorldDirection;
|
||
#include <common>
|
||
void main() {
|
||
vWorldDirection = transformDirection( position, modelMatrix );
|
||
#include <begin_vertex>
|
||
#include <project_vertex>
|
||
gl_Position.z = gl_Position.w;
|
||
}`,uOt=`#ifdef ENVMAP_TYPE_CUBE
|
||
uniform samplerCube envMap;
|
||
#elif defined( ENVMAP_TYPE_CUBE_UV )
|
||
uniform sampler2D envMap;
|
||
#endif
|
||
uniform float flipEnvMap;
|
||
uniform float backgroundBlurriness;
|
||
uniform float backgroundIntensity;
|
||
varying vec3 vWorldDirection;
|
||
#include <cube_uv_reflection_fragment>
|
||
void main() {
|
||
#ifdef ENVMAP_TYPE_CUBE
|
||
vec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );
|
||
#elif defined( ENVMAP_TYPE_CUBE_UV )
|
||
vec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );
|
||
#else
|
||
vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );
|
||
#endif
|
||
texColor.rgb *= backgroundIntensity;
|
||
gl_FragColor = texColor;
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
}`,pOt=`varying vec3 vWorldDirection;
|
||
#include <common>
|
||
void main() {
|
||
vWorldDirection = transformDirection( position, modelMatrix );
|
||
#include <begin_vertex>
|
||
#include <project_vertex>
|
||
gl_Position.z = gl_Position.w;
|
||
}`,_Ot=`uniform samplerCube tCube;
|
||
uniform float tFlip;
|
||
uniform float opacity;
|
||
varying vec3 vWorldDirection;
|
||
void main() {
|
||
vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
|
||
gl_FragColor = texColor;
|
||
gl_FragColor.a *= opacity;
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
}`,hOt=`#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
varying vec2 vHighPrecisionZW;
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <batching_vertex>
|
||
#include <skinbase_vertex>
|
||
#ifdef USE_DISPLACEMENTMAP
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinnormal_vertex>
|
||
#endif
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
vHighPrecisionZW = gl_Position.zw;
|
||
}`,fOt=`#if DEPTH_PACKING == 3200
|
||
uniform float opacity;
|
||
#endif
|
||
#include <common>
|
||
#include <packing>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
varying vec2 vHighPrecisionZW;
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( 1.0 );
|
||
#if DEPTH_PACKING == 3200
|
||
diffuseColor.a = opacity;
|
||
#endif
|
||
#include <map_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
#include <logdepthbuf_fragment>
|
||
float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;
|
||
#if DEPTH_PACKING == 3200
|
||
gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
|
||
#elif DEPTH_PACKING == 3201
|
||
gl_FragColor = packDepthToRGBA( fragCoordZ );
|
||
#endif
|
||
}`,mOt=`#define DISTANCE
|
||
varying vec3 vWorldPosition;
|
||
#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <batching_vertex>
|
||
#include <skinbase_vertex>
|
||
#ifdef USE_DISPLACEMENTMAP
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinnormal_vertex>
|
||
#endif
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <worldpos_vertex>
|
||
#include <clipping_planes_vertex>
|
||
vWorldPosition = worldPosition.xyz;
|
||
}`,gOt=`#define DISTANCE
|
||
uniform vec3 referencePosition;
|
||
uniform float nearDistance;
|
||
uniform float farDistance;
|
||
varying vec3 vWorldPosition;
|
||
#include <common>
|
||
#include <packing>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main () {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( 1.0 );
|
||
#include <map_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
float dist = length( vWorldPosition - referencePosition );
|
||
dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
|
||
dist = saturate( dist );
|
||
gl_FragColor = packDepthToRGBA( dist );
|
||
}`,bOt=`varying vec3 vWorldDirection;
|
||
#include <common>
|
||
void main() {
|
||
vWorldDirection = transformDirection( position, modelMatrix );
|
||
#include <begin_vertex>
|
||
#include <project_vertex>
|
||
}`,EOt=`uniform sampler2D tEquirect;
|
||
varying vec3 vWorldDirection;
|
||
#include <common>
|
||
void main() {
|
||
vec3 direction = normalize( vWorldDirection );
|
||
vec2 sampleUV = equirectUv( direction );
|
||
gl_FragColor = texture2D( tEquirect, sampleUV );
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
}`,yOt=`uniform float scale;
|
||
attribute float lineDistance;
|
||
varying float vLineDistance;
|
||
#include <common>
|
||
#include <uv_pars_vertex>
|
||
#include <color_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
vLineDistance = scale * lineDistance;
|
||
#include <uv_vertex>
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
#include <fog_vertex>
|
||
}`,vOt=`uniform vec3 diffuse;
|
||
uniform float opacity;
|
||
uniform float dashSize;
|
||
uniform float totalSize;
|
||
varying float vLineDistance;
|
||
#include <common>
|
||
#include <color_pars_fragment>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
if ( mod( vLineDistance, totalSize ) > dashSize ) {
|
||
discard;
|
||
}
|
||
vec3 outgoingLight = vec3( 0.0 );
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <color_fragment>
|
||
outgoingLight = diffuseColor.rgb;
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
}`,SOt=`#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <envmap_pars_vertex>
|
||
#include <color_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <batching_vertex>
|
||
#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#endif
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
#include <worldpos_vertex>
|
||
#include <envmap_vertex>
|
||
#include <fog_vertex>
|
||
}`,TOt=`uniform vec3 diffuse;
|
||
uniform float opacity;
|
||
#ifndef FLAT_SHADED
|
||
varying vec3 vNormal;
|
||
#endif
|
||
#include <common>
|
||
#include <dithering_pars_fragment>
|
||
#include <color_pars_fragment>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <aomap_pars_fragment>
|
||
#include <lightmap_pars_fragment>
|
||
#include <envmap_common_pars_fragment>
|
||
#include <envmap_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <specularmap_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <color_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
#include <specularmap_fragment>
|
||
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
|
||
#ifdef USE_LIGHTMAP
|
||
vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
|
||
reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
|
||
#else
|
||
reflectedLight.indirectDiffuse += vec3( 1.0 );
|
||
#endif
|
||
#include <aomap_fragment>
|
||
reflectedLight.indirectDiffuse *= diffuseColor.rgb;
|
||
vec3 outgoingLight = reflectedLight.indirectDiffuse;
|
||
#include <envmap_fragment>
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
#include <dithering_fragment>
|
||
}`,xOt=`#define LAMBERT
|
||
varying vec3 vViewPosition;
|
||
#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <envmap_pars_vertex>
|
||
#include <color_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <normal_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <shadowmap_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <batching_vertex>
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#include <normal_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
vViewPosition = - mvPosition.xyz;
|
||
#include <worldpos_vertex>
|
||
#include <envmap_vertex>
|
||
#include <shadowmap_vertex>
|
||
#include <fog_vertex>
|
||
}`,COt=`#define LAMBERT
|
||
uniform vec3 diffuse;
|
||
uniform vec3 emissive;
|
||
uniform float opacity;
|
||
#include <common>
|
||
#include <packing>
|
||
#include <dithering_pars_fragment>
|
||
#include <color_pars_fragment>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <aomap_pars_fragment>
|
||
#include <lightmap_pars_fragment>
|
||
#include <emissivemap_pars_fragment>
|
||
#include <envmap_common_pars_fragment>
|
||
#include <envmap_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <bsdfs>
|
||
#include <lights_pars_begin>
|
||
#include <normal_pars_fragment>
|
||
#include <lights_lambert_pars_fragment>
|
||
#include <shadowmap_pars_fragment>
|
||
#include <bumpmap_pars_fragment>
|
||
#include <normalmap_pars_fragment>
|
||
#include <specularmap_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
|
||
vec3 totalEmissiveRadiance = emissive;
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <color_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
#include <specularmap_fragment>
|
||
#include <normal_fragment_begin>
|
||
#include <normal_fragment_maps>
|
||
#include <emissivemap_fragment>
|
||
#include <lights_lambert_fragment>
|
||
#include <lights_fragment_begin>
|
||
#include <lights_fragment_maps>
|
||
#include <lights_fragment_end>
|
||
#include <aomap_fragment>
|
||
vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
|
||
#include <envmap_fragment>
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
#include <dithering_fragment>
|
||
}`,wOt=`#define MATCAP
|
||
varying vec3 vViewPosition;
|
||
#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <color_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <normal_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <batching_vertex>
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#include <normal_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
#include <fog_vertex>
|
||
vViewPosition = - mvPosition.xyz;
|
||
}`,ROt=`#define MATCAP
|
||
uniform vec3 diffuse;
|
||
uniform float opacity;
|
||
uniform sampler2D matcap;
|
||
varying vec3 vViewPosition;
|
||
#include <common>
|
||
#include <dithering_pars_fragment>
|
||
#include <color_pars_fragment>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <normal_pars_fragment>
|
||
#include <bumpmap_pars_fragment>
|
||
#include <normalmap_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <color_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
#include <normal_fragment_begin>
|
||
#include <normal_fragment_maps>
|
||
vec3 viewDir = normalize( vViewPosition );
|
||
vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
|
||
vec3 y = cross( viewDir, x );
|
||
vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
|
||
#ifdef USE_MATCAP
|
||
vec4 matcapColor = texture2D( matcap, uv );
|
||
#else
|
||
vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
|
||
#endif
|
||
vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
#include <dithering_fragment>
|
||
}`,AOt=`#define NORMAL
|
||
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
|
||
varying vec3 vViewPosition;
|
||
#endif
|
||
#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <normal_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <batching_vertex>
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#include <normal_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
|
||
vViewPosition = - mvPosition.xyz;
|
||
#endif
|
||
}`,NOt=`#define NORMAL
|
||
uniform float opacity;
|
||
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
|
||
varying vec3 vViewPosition;
|
||
#endif
|
||
#include <packing>
|
||
#include <uv_pars_fragment>
|
||
#include <normal_pars_fragment>
|
||
#include <bumpmap_pars_fragment>
|
||
#include <normalmap_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
#include <logdepthbuf_fragment>
|
||
#include <normal_fragment_begin>
|
||
#include <normal_fragment_maps>
|
||
gl_FragColor = vec4( packNormalToRGB( normal ), opacity );
|
||
#ifdef OPAQUE
|
||
gl_FragColor.a = 1.0;
|
||
#endif
|
||
}`,OOt=`#define PHONG
|
||
varying vec3 vViewPosition;
|
||
#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <envmap_pars_vertex>
|
||
#include <color_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <normal_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <shadowmap_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <batching_vertex>
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#include <normal_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
vViewPosition = - mvPosition.xyz;
|
||
#include <worldpos_vertex>
|
||
#include <envmap_vertex>
|
||
#include <shadowmap_vertex>
|
||
#include <fog_vertex>
|
||
}`,IOt=`#define PHONG
|
||
uniform vec3 diffuse;
|
||
uniform vec3 emissive;
|
||
uniform vec3 specular;
|
||
uniform float shininess;
|
||
uniform float opacity;
|
||
#include <common>
|
||
#include <packing>
|
||
#include <dithering_pars_fragment>
|
||
#include <color_pars_fragment>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <aomap_pars_fragment>
|
||
#include <lightmap_pars_fragment>
|
||
#include <emissivemap_pars_fragment>
|
||
#include <envmap_common_pars_fragment>
|
||
#include <envmap_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <bsdfs>
|
||
#include <lights_pars_begin>
|
||
#include <normal_pars_fragment>
|
||
#include <lights_phong_pars_fragment>
|
||
#include <shadowmap_pars_fragment>
|
||
#include <bumpmap_pars_fragment>
|
||
#include <normalmap_pars_fragment>
|
||
#include <specularmap_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
|
||
vec3 totalEmissiveRadiance = emissive;
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <color_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
#include <specularmap_fragment>
|
||
#include <normal_fragment_begin>
|
||
#include <normal_fragment_maps>
|
||
#include <emissivemap_fragment>
|
||
#include <lights_phong_fragment>
|
||
#include <lights_fragment_begin>
|
||
#include <lights_fragment_maps>
|
||
#include <lights_fragment_end>
|
||
#include <aomap_fragment>
|
||
vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
|
||
#include <envmap_fragment>
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
#include <dithering_fragment>
|
||
}`,MOt=`#define STANDARD
|
||
varying vec3 vViewPosition;
|
||
#ifdef USE_TRANSMISSION
|
||
varying vec3 vWorldPosition;
|
||
#endif
|
||
#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <color_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <normal_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <shadowmap_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <batching_vertex>
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#include <normal_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
vViewPosition = - mvPosition.xyz;
|
||
#include <worldpos_vertex>
|
||
#include <shadowmap_vertex>
|
||
#include <fog_vertex>
|
||
#ifdef USE_TRANSMISSION
|
||
vWorldPosition = worldPosition.xyz;
|
||
#endif
|
||
}`,DOt=`#define STANDARD
|
||
#ifdef PHYSICAL
|
||
#define IOR
|
||
#define USE_SPECULAR
|
||
#endif
|
||
uniform vec3 diffuse;
|
||
uniform vec3 emissive;
|
||
uniform float roughness;
|
||
uniform float metalness;
|
||
uniform float opacity;
|
||
#ifdef IOR
|
||
uniform float ior;
|
||
#endif
|
||
#ifdef USE_SPECULAR
|
||
uniform float specularIntensity;
|
||
uniform vec3 specularColor;
|
||
#ifdef USE_SPECULAR_COLORMAP
|
||
uniform sampler2D specularColorMap;
|
||
#endif
|
||
#ifdef USE_SPECULAR_INTENSITYMAP
|
||
uniform sampler2D specularIntensityMap;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_CLEARCOAT
|
||
uniform float clearcoat;
|
||
uniform float clearcoatRoughness;
|
||
#endif
|
||
#ifdef USE_IRIDESCENCE
|
||
uniform float iridescence;
|
||
uniform float iridescenceIOR;
|
||
uniform float iridescenceThicknessMinimum;
|
||
uniform float iridescenceThicknessMaximum;
|
||
#endif
|
||
#ifdef USE_SHEEN
|
||
uniform vec3 sheenColor;
|
||
uniform float sheenRoughness;
|
||
#ifdef USE_SHEEN_COLORMAP
|
||
uniform sampler2D sheenColorMap;
|
||
#endif
|
||
#ifdef USE_SHEEN_ROUGHNESSMAP
|
||
uniform sampler2D sheenRoughnessMap;
|
||
#endif
|
||
#endif
|
||
#ifdef USE_ANISOTROPY
|
||
uniform vec2 anisotropyVector;
|
||
#ifdef USE_ANISOTROPYMAP
|
||
uniform sampler2D anisotropyMap;
|
||
#endif
|
||
#endif
|
||
varying vec3 vViewPosition;
|
||
#include <common>
|
||
#include <packing>
|
||
#include <dithering_pars_fragment>
|
||
#include <color_pars_fragment>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <aomap_pars_fragment>
|
||
#include <lightmap_pars_fragment>
|
||
#include <emissivemap_pars_fragment>
|
||
#include <iridescence_fragment>
|
||
#include <cube_uv_reflection_fragment>
|
||
#include <envmap_common_pars_fragment>
|
||
#include <envmap_physical_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <lights_pars_begin>
|
||
#include <normal_pars_fragment>
|
||
#include <lights_physical_pars_fragment>
|
||
#include <transmission_pars_fragment>
|
||
#include <shadowmap_pars_fragment>
|
||
#include <bumpmap_pars_fragment>
|
||
#include <normalmap_pars_fragment>
|
||
#include <clearcoat_pars_fragment>
|
||
#include <iridescence_pars_fragment>
|
||
#include <roughnessmap_pars_fragment>
|
||
#include <metalnessmap_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
|
||
vec3 totalEmissiveRadiance = emissive;
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <color_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
#include <roughnessmap_fragment>
|
||
#include <metalnessmap_fragment>
|
||
#include <normal_fragment_begin>
|
||
#include <normal_fragment_maps>
|
||
#include <clearcoat_normal_fragment_begin>
|
||
#include <clearcoat_normal_fragment_maps>
|
||
#include <emissivemap_fragment>
|
||
#include <lights_physical_fragment>
|
||
#include <lights_fragment_begin>
|
||
#include <lights_fragment_maps>
|
||
#include <lights_fragment_end>
|
||
#include <aomap_fragment>
|
||
vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
|
||
vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
|
||
#include <transmission_fragment>
|
||
vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
|
||
#ifdef USE_SHEEN
|
||
float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
|
||
outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;
|
||
#endif
|
||
#ifdef USE_CLEARCOAT
|
||
float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );
|
||
vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
|
||
outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
|
||
#endif
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
#include <dithering_fragment>
|
||
}`,kOt=`#define TOON
|
||
varying vec3 vViewPosition;
|
||
#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <uv_pars_vertex>
|
||
#include <displacementmap_pars_vertex>
|
||
#include <color_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <normal_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <shadowmap_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <batching_vertex>
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#include <normal_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <displacementmap_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
vViewPosition = - mvPosition.xyz;
|
||
#include <worldpos_vertex>
|
||
#include <shadowmap_vertex>
|
||
#include <fog_vertex>
|
||
}`,LOt=`#define TOON
|
||
uniform vec3 diffuse;
|
||
uniform vec3 emissive;
|
||
uniform float opacity;
|
||
#include <common>
|
||
#include <packing>
|
||
#include <dithering_pars_fragment>
|
||
#include <color_pars_fragment>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <aomap_pars_fragment>
|
||
#include <lightmap_pars_fragment>
|
||
#include <emissivemap_pars_fragment>
|
||
#include <gradientmap_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <bsdfs>
|
||
#include <lights_pars_begin>
|
||
#include <normal_pars_fragment>
|
||
#include <lights_toon_pars_fragment>
|
||
#include <shadowmap_pars_fragment>
|
||
#include <bumpmap_pars_fragment>
|
||
#include <normalmap_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
|
||
vec3 totalEmissiveRadiance = emissive;
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <color_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
#include <normal_fragment_begin>
|
||
#include <normal_fragment_maps>
|
||
#include <emissivemap_fragment>
|
||
#include <lights_toon_fragment>
|
||
#include <lights_fragment_begin>
|
||
#include <lights_fragment_maps>
|
||
#include <lights_fragment_end>
|
||
#include <aomap_fragment>
|
||
vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
#include <dithering_fragment>
|
||
}`,POt=`uniform float size;
|
||
uniform float scale;
|
||
#include <common>
|
||
#include <color_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
#ifdef USE_POINTS_UV
|
||
varying vec2 vUv;
|
||
uniform mat3 uvTransform;
|
||
#endif
|
||
void main() {
|
||
#ifdef USE_POINTS_UV
|
||
vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
|
||
#endif
|
||
#include <color_vertex>
|
||
#include <morphcolor_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <project_vertex>
|
||
gl_PointSize = size;
|
||
#ifdef USE_SIZEATTENUATION
|
||
bool isPerspective = isPerspectiveMatrix( projectionMatrix );
|
||
if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
|
||
#endif
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
#include <worldpos_vertex>
|
||
#include <fog_vertex>
|
||
}`,UOt=`uniform vec3 diffuse;
|
||
uniform float opacity;
|
||
#include <common>
|
||
#include <color_pars_fragment>
|
||
#include <map_particle_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec3 outgoingLight = vec3( 0.0 );
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_particle_fragment>
|
||
#include <color_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
outgoingLight = diffuseColor.rgb;
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
#include <premultiplied_alpha_fragment>
|
||
}`,FOt=`#include <common>
|
||
#include <batching_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <morphtarget_pars_vertex>
|
||
#include <skinning_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <shadowmap_pars_vertex>
|
||
void main() {
|
||
#include <batching_vertex>
|
||
#include <beginnormal_vertex>
|
||
#include <morphnormal_vertex>
|
||
#include <skinbase_vertex>
|
||
#include <skinnormal_vertex>
|
||
#include <defaultnormal_vertex>
|
||
#include <begin_vertex>
|
||
#include <morphtarget_vertex>
|
||
#include <skinning_vertex>
|
||
#include <project_vertex>
|
||
#include <logdepthbuf_vertex>
|
||
#include <worldpos_vertex>
|
||
#include <shadowmap_vertex>
|
||
#include <fog_vertex>
|
||
}`,BOt=`uniform vec3 color;
|
||
uniform float opacity;
|
||
#include <common>
|
||
#include <packing>
|
||
#include <fog_pars_fragment>
|
||
#include <bsdfs>
|
||
#include <lights_pars_begin>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <shadowmap_pars_fragment>
|
||
#include <shadowmask_pars_fragment>
|
||
void main() {
|
||
#include <logdepthbuf_fragment>
|
||
gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
}`,GOt=`uniform float rotation;
|
||
uniform vec2 center;
|
||
#include <common>
|
||
#include <uv_pars_vertex>
|
||
#include <fog_pars_vertex>
|
||
#include <logdepthbuf_pars_vertex>
|
||
#include <clipping_planes_pars_vertex>
|
||
void main() {
|
||
#include <uv_vertex>
|
||
vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
|
||
vec2 scale;
|
||
scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
|
||
scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
|
||
#ifndef USE_SIZEATTENUATION
|
||
bool isPerspective = isPerspectiveMatrix( projectionMatrix );
|
||
if ( isPerspective ) scale *= - mvPosition.z;
|
||
#endif
|
||
vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
|
||
vec2 rotatedPosition;
|
||
rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
|
||
rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
|
||
mvPosition.xy += rotatedPosition;
|
||
gl_Position = projectionMatrix * mvPosition;
|
||
#include <logdepthbuf_vertex>
|
||
#include <clipping_planes_vertex>
|
||
#include <fog_vertex>
|
||
}`,VOt=`uniform vec3 diffuse;
|
||
uniform float opacity;
|
||
#include <common>
|
||
#include <uv_pars_fragment>
|
||
#include <map_pars_fragment>
|
||
#include <alphamap_pars_fragment>
|
||
#include <alphatest_pars_fragment>
|
||
#include <alphahash_pars_fragment>
|
||
#include <fog_pars_fragment>
|
||
#include <logdepthbuf_pars_fragment>
|
||
#include <clipping_planes_pars_fragment>
|
||
void main() {
|
||
#include <clipping_planes_fragment>
|
||
vec3 outgoingLight = vec3( 0.0 );
|
||
vec4 diffuseColor = vec4( diffuse, opacity );
|
||
#include <logdepthbuf_fragment>
|
||
#include <map_fragment>
|
||
#include <alphamap_fragment>
|
||
#include <alphatest_fragment>
|
||
#include <alphahash_fragment>
|
||
outgoingLight = diffuseColor.rgb;
|
||
#include <opaque_fragment>
|
||
#include <tonemapping_fragment>
|
||
#include <colorspace_fragment>
|
||
#include <fog_fragment>
|
||
}`,Tt={alphahash_fragment:cAt,alphahash_pars_fragment:dAt,alphamap_fragment:uAt,alphamap_pars_fragment:pAt,alphatest_fragment:_At,alphatest_pars_fragment:hAt,aomap_fragment:fAt,aomap_pars_fragment:mAt,batching_pars_vertex:gAt,batching_vertex:bAt,begin_vertex:EAt,beginnormal_vertex:yAt,bsdfs:vAt,iridescence_fragment:SAt,bumpmap_pars_fragment:TAt,clipping_planes_fragment:xAt,clipping_planes_pars_fragment:CAt,clipping_planes_pars_vertex:wAt,clipping_planes_vertex:RAt,color_fragment:AAt,color_pars_fragment:NAt,color_pars_vertex:OAt,color_vertex:IAt,common:MAt,cube_uv_reflection_fragment:DAt,defaultnormal_vertex:kAt,displacementmap_pars_vertex:LAt,displacementmap_vertex:PAt,emissivemap_fragment:UAt,emissivemap_pars_fragment:FAt,colorspace_fragment:BAt,colorspace_pars_fragment:GAt,envmap_fragment:VAt,envmap_common_pars_fragment:zAt,envmap_pars_fragment:HAt,envmap_pars_vertex:qAt,envmap_physical_pars_fragment:nNt,envmap_vertex:YAt,fog_vertex:$At,fog_pars_vertex:WAt,fog_fragment:KAt,fog_pars_fragment:jAt,gradientmap_pars_fragment:QAt,lightmap_fragment:XAt,lightmap_pars_fragment:ZAt,lights_lambert_fragment:JAt,lights_lambert_pars_fragment:eNt,lights_pars_begin:tNt,lights_toon_fragment:iNt,lights_toon_pars_fragment:sNt,lights_phong_fragment:rNt,lights_phong_pars_fragment:oNt,lights_physical_fragment:aNt,lights_physical_pars_fragment:lNt,lights_fragment_begin:cNt,lights_fragment_maps:dNt,lights_fragment_end:uNt,logdepthbuf_fragment:pNt,logdepthbuf_pars_fragment:_Nt,logdepthbuf_pars_vertex:hNt,logdepthbuf_vertex:fNt,map_fragment:mNt,map_pars_fragment:gNt,map_particle_fragment:bNt,map_particle_pars_fragment:ENt,metalnessmap_fragment:yNt,metalnessmap_pars_fragment:vNt,morphcolor_vertex:SNt,morphnormal_vertex:TNt,morphtarget_pars_vertex:xNt,morphtarget_vertex:CNt,normal_fragment_begin:wNt,normal_fragment_maps:RNt,normal_pars_fragment:ANt,normal_pars_vertex:NNt,normal_vertex:ONt,normalmap_pars_fragment:INt,clearcoat_normal_fragment_begin:MNt,clearcoat_normal_fragment_maps:DNt,clearcoat_pars_fragment:kNt,iridescence_pars_fragment:LNt,opaque_fragment:PNt,packing:UNt,premultiplied_alpha_fragment:FNt,project_vertex:BNt,dithering_fragment:GNt,dithering_pars_fragment:VNt,roughnessmap_fragment:zNt,roughnessmap_pars_fragment:HNt,shadowmap_pars_fragment:qNt,shadowmap_pars_vertex:YNt,shadowmap_vertex:$Nt,shadowmask_pars_fragment:WNt,skinbase_vertex:KNt,skinning_pars_vertex:jNt,skinning_vertex:QNt,skinnormal_vertex:XNt,specularmap_fragment:ZNt,specularmap_pars_fragment:JNt,tonemapping_fragment:eOt,tonemapping_pars_fragment:tOt,transmission_fragment:nOt,transmission_pars_fragment:iOt,uv_pars_fragment:sOt,uv_pars_vertex:rOt,uv_vertex:oOt,worldpos_vertex:aOt,background_vert:lOt,background_frag:cOt,backgroundCube_vert:dOt,backgroundCube_frag:uOt,cube_vert:pOt,cube_frag:_Ot,depth_vert:hOt,depth_frag:fOt,distanceRGBA_vert:mOt,distanceRGBA_frag:gOt,equirect_vert:bOt,equirect_frag:EOt,linedashed_vert:yOt,linedashed_frag:vOt,meshbasic_vert:SOt,meshbasic_frag:TOt,meshlambert_vert:xOt,meshlambert_frag:COt,meshmatcap_vert:wOt,meshmatcap_frag:ROt,meshnormal_vert:AOt,meshnormal_frag:NOt,meshphong_vert:OOt,meshphong_frag:IOt,meshphysical_vert:MOt,meshphysical_frag:DOt,meshtoon_vert:kOt,meshtoon_frag:LOt,points_vert:POt,points_frag:UOt,shadow_vert:FOt,shadow_frag:BOt,sprite_vert:GOt,sprite_frag:VOt},je={common:{diffuse:{value:new gt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new wt},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new wt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new wt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new wt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new wt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new wt},normalScale:{value:new It(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new wt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new wt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new wt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new wt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new gt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new gt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0},uvTransform:{value:new wt}},sprite:{diffuse:{value:new gt(16777215)},opacity:{value:1},center:{value:new It(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new wt},alphaMap:{value:null},alphaMapTransform:{value:new wt},alphaTest:{value:0}}},Zi={basic:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.fog]),vertexShader:Tt.meshbasic_vert,fragmentShader:Tt.meshbasic_frag},lambert:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.fog,je.lights,{emissive:{value:new gt(0)}}]),vertexShader:Tt.meshlambert_vert,fragmentShader:Tt.meshlambert_frag},phong:{uniforms:Vn([je.common,je.specularmap,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.fog,je.lights,{emissive:{value:new gt(0)},specular:{value:new gt(1118481)},shininess:{value:30}}]),vertexShader:Tt.meshphong_vert,fragmentShader:Tt.meshphong_frag},standard:{uniforms:Vn([je.common,je.envmap,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.roughnessmap,je.metalnessmap,je.fog,je.lights,{emissive:{value:new gt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Tt.meshphysical_vert,fragmentShader:Tt.meshphysical_frag},toon:{uniforms:Vn([je.common,je.aomap,je.lightmap,je.emissivemap,je.bumpmap,je.normalmap,je.displacementmap,je.gradientmap,je.fog,je.lights,{emissive:{value:new gt(0)}}]),vertexShader:Tt.meshtoon_vert,fragmentShader:Tt.meshtoon_frag},matcap:{uniforms:Vn([je.common,je.bumpmap,je.normalmap,je.displacementmap,je.fog,{matcap:{value:null}}]),vertexShader:Tt.meshmatcap_vert,fragmentShader:Tt.meshmatcap_frag},points:{uniforms:Vn([je.points,je.fog]),vertexShader:Tt.points_vert,fragmentShader:Tt.points_frag},dashed:{uniforms:Vn([je.common,je.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Tt.linedashed_vert,fragmentShader:Tt.linedashed_frag},depth:{uniforms:Vn([je.common,je.displacementmap]),vertexShader:Tt.depth_vert,fragmentShader:Tt.depth_frag},normal:{uniforms:Vn([je.common,je.bumpmap,je.normalmap,je.displacementmap,{opacity:{value:1}}]),vertexShader:Tt.meshnormal_vert,fragmentShader:Tt.meshnormal_frag},sprite:{uniforms:Vn([je.sprite,je.fog]),vertexShader:Tt.sprite_vert,fragmentShader:Tt.sprite_frag},background:{uniforms:{uvTransform:{value:new wt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Tt.background_vert,fragmentShader:Tt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Tt.backgroundCube_vert,fragmentShader:Tt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Tt.cube_vert,fragmentShader:Tt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Tt.equirect_vert,fragmentShader:Tt.equirect_frag},distanceRGBA:{uniforms:Vn([je.common,je.displacementmap,{referencePosition:{value:new _e},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Tt.distanceRGBA_vert,fragmentShader:Tt.distanceRGBA_frag},shadow:{uniforms:Vn([je.lights,je.fog,{color:{value:new gt(0)},opacity:{value:1}}]),vertexShader:Tt.shadow_vert,fragmentShader:Tt.shadow_frag}};Zi.physical={uniforms:Vn([Zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new wt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new wt},clearcoatNormalScale:{value:new It(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new wt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new wt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new wt},sheen:{value:0},sheenColor:{value:new gt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new wt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new wt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new wt},transmissionSamplerSize:{value:new It},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new wt},attenuationDistance:{value:0},attenuationColor:{value:new gt(0)},specularColor:{value:new gt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new wt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new wt},anisotropyVector:{value:new It},anisotropyMap:{value:null},anisotropyMapTransform:{value:new wt}}]),vertexShader:Tt.meshphysical_vert,fragmentShader:Tt.meshphysical_frag};const md={r:0,b:0,g:0};function zOt(t,e,n,i,s,r,o){const a=new gt(0);let l=r===!0?0:1,u,d,h=null,f=0,_=null;function m(b,g){let y=!1,v=g.isScene===!0?g.background:null;v&&v.isTexture&&(v=(g.backgroundBlurriness>0?n:e).get(v)),v===null?E(a,l):v&&v.isColor&&(E(v,1),y=!0);const S=t.xr.getEnvironmentBlendMode();S==="additive"?i.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(t.autoClear||y)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===lp)?(d===void 0&&(d=new Hn(new Cr(1,1,1),new go({name:"BackgroundCubeMaterial",uniforms:Na(Zi.backgroundCube.uniforms),vertexShader:Zi.backgroundCube.vertexShader,fragmentShader:Zi.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(C,T,O){this.matrixWorld.copyPosition(O.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(d)),d.material.uniforms.envMap.value=v,d.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Gt.getTransfer(v.colorSpace)!==Zt,(h!==v||f!==v.version||_!==t.toneMapping)&&(d.material.needsUpdate=!0,h=v,f=v.version,_=t.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null)):v&&v.isTexture&&(u===void 0&&(u=new Hn(new ty(2,2),new go({name:"BackgroundMaterial",uniforms:Na(Zi.background.uniforms),vertexShader:Zi.background.vertexShader,fragmentShader:Zi.background.fragmentShader,side:Ys,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(u)),u.material.uniforms.t2D.value=v,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=Gt.getTransfer(v.colorSpace)!==Zt,v.matrixAutoUpdate===!0&&v.updateMatrix(),u.material.uniforms.uvTransform.value.copy(v.matrix),(h!==v||f!==v.version||_!==t.toneMapping)&&(u.material.needsUpdate=!0,h=v,f=v.version,_=t.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null))}function E(b,g){b.getRGB(md,dI(t)),i.buffers.color.setClear(md.r,md.g,md.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),l=g,E(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,E(a,l)},render:m}}function HOt(t,e,n,i){const s=t.getParameter(t.MAX_VERTEX_ATTRIBS),r=i.isWebGL2?null:e.get("OES_vertex_array_object"),o=i.isWebGL2||r!==null,a={},l=b(null);let u=l,d=!1;function h(L,$,H,U,Q){let J=!1;if(o){const j=E(U,H,$);u!==j&&(u=j,_(u.object)),J=g(L,U,H,Q),J&&y(L,U,H,Q)}else{const j=$.wireframe===!0;(u.geometry!==U.id||u.program!==H.id||u.wireframe!==j)&&(u.geometry=U.id,u.program=H.id,u.wireframe=j,J=!0)}Q!==null&&n.update(Q,t.ELEMENT_ARRAY_BUFFER),(J||d)&&(d=!1,k(L,$,H,U),Q!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(Q).buffer))}function f(){return i.isWebGL2?t.createVertexArray():r.createVertexArrayOES()}function _(L){return i.isWebGL2?t.bindVertexArray(L):r.bindVertexArrayOES(L)}function m(L){return i.isWebGL2?t.deleteVertexArray(L):r.deleteVertexArrayOES(L)}function E(L,$,H){const U=H.wireframe===!0;let Q=a[L.id];Q===void 0&&(Q={},a[L.id]=Q);let J=Q[$.id];J===void 0&&(J={},Q[$.id]=J);let j=J[U];return j===void 0&&(j=b(f()),J[U]=j),j}function b(L){const $=[],H=[],U=[];for(let Q=0;Q<s;Q++)$[Q]=0,H[Q]=0,U[Q]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:$,enabledAttributes:H,attributeDivisors:U,object:L,attributes:{},index:null}}function g(L,$,H,U){const Q=u.attributes,J=$.attributes;let j=0;const ae=H.getAttributes();for(const ve in ae)if(ae[ve].location>=0){const Ee=Q[ve];let xe=J[ve];if(xe===void 0&&(ve==="instanceMatrix"&&L.instanceMatrix&&(xe=L.instanceMatrix),ve==="instanceColor"&&L.instanceColor&&(xe=L.instanceColor)),Ee===void 0||Ee.attribute!==xe||xe&&Ee.data!==xe.data)return!0;j++}return u.attributesNum!==j||u.index!==U}function y(L,$,H,U){const Q={},J=$.attributes;let j=0;const ae=H.getAttributes();for(const ve in ae)if(ae[ve].location>=0){let Ee=J[ve];Ee===void 0&&(ve==="instanceMatrix"&&L.instanceMatrix&&(Ee=L.instanceMatrix),ve==="instanceColor"&&L.instanceColor&&(Ee=L.instanceColor));const xe={};xe.attribute=Ee,Ee&&Ee.data&&(xe.data=Ee.data),Q[ve]=xe,j++}u.attributes=Q,u.attributesNum=j,u.index=U}function v(){const L=u.newAttributes;for(let $=0,H=L.length;$<H;$++)L[$]=0}function S(L){C(L,0)}function C(L,$){const H=u.newAttributes,U=u.enabledAttributes,Q=u.attributeDivisors;H[L]=1,U[L]===0&&(t.enableVertexAttribArray(L),U[L]=1),Q[L]!==$&&((i.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](L,$),Q[L]=$)}function T(){const L=u.newAttributes,$=u.enabledAttributes;for(let H=0,U=$.length;H<U;H++)$[H]!==L[H]&&(t.disableVertexAttribArray(H),$[H]=0)}function O(L,$,H,U,Q,J,j){j===!0?t.vertexAttribIPointer(L,$,H,Q,J):t.vertexAttribPointer(L,$,H,U,Q,J)}function k(L,$,H,U){if(i.isWebGL2===!1&&(L.isInstancedMesh||U.isInstancedBufferGeometry)&&e.get("ANGLE_instanced_arrays")===null)return;v();const Q=U.attributes,J=H.getAttributes(),j=$.defaultAttributeValues;for(const ae in J){const ve=J[ae];if(ve.location>=0){let ee=Q[ae];if(ee===void 0&&(ae==="instanceMatrix"&&L.instanceMatrix&&(ee=L.instanceMatrix),ae==="instanceColor"&&L.instanceColor&&(ee=L.instanceColor)),ee!==void 0){const Ee=ee.normalized,xe=ee.itemSize,Me=n.get(ee);if(Me===void 0)continue;const Z=Me.buffer,ye=Me.type,fe=Me.bytesPerElement,Ne=i.isWebGL2===!0&&(ye===t.INT||ye===t.UNSIGNED_INT||ee.gpuType===$O);if(ee.isInterleavedBufferAttribute){const Le=ee.data,D=Le.stride,q=ee.offset;if(Le.isInstancedInterleavedBuffer){for(let K=0;K<ve.locationSize;K++)C(ve.location+K,Le.meshPerAttribute);L.isInstancedMesh!==!0&&U._maxInstanceCount===void 0&&(U._maxInstanceCount=Le.meshPerAttribute*Le.count)}else for(let K=0;K<ve.locationSize;K++)S(ve.location+K);t.bindBuffer(t.ARRAY_BUFFER,Z);for(let K=0;K<ve.locationSize;K++)O(ve.location+K,xe/ve.locationSize,ye,Ee,D*fe,(q+xe/ve.locationSize*K)*fe,Ne)}else{if(ee.isInstancedBufferAttribute){for(let Le=0;Le<ve.locationSize;Le++)C(ve.location+Le,ee.meshPerAttribute);L.isInstancedMesh!==!0&&U._maxInstanceCount===void 0&&(U._maxInstanceCount=ee.meshPerAttribute*ee.count)}else for(let Le=0;Le<ve.locationSize;Le++)S(ve.location+Le);t.bindBuffer(t.ARRAY_BUFFER,Z);for(let Le=0;Le<ve.locationSize;Le++)O(ve.location+Le,xe/ve.locationSize,ye,Ee,xe*fe,xe/ve.locationSize*Le*fe,Ne)}}else if(j!==void 0){const Ee=j[ae];if(Ee!==void 0)switch(Ee.length){case 2:t.vertexAttrib2fv(ve.location,Ee);break;case 3:t.vertexAttrib3fv(ve.location,Ee);break;case 4:t.vertexAttrib4fv(ve.location,Ee);break;default:t.vertexAttrib1fv(ve.location,Ee)}}}}T()}function x(){B();for(const L in a){const $=a[L];for(const H in $){const U=$[H];for(const Q in U)m(U[Q].object),delete U[Q];delete $[H]}delete a[L]}}function I(L){if(a[L.id]===void 0)return;const $=a[L.id];for(const H in $){const U=$[H];for(const Q in U)m(U[Q].object),delete U[Q];delete $[H]}delete a[L.id]}function F(L){for(const $ in a){const H=a[$];if(H[L.id]===void 0)continue;const U=H[L.id];for(const Q in U)m(U[Q].object),delete U[Q];delete H[L.id]}}function B(){ne(),d=!0,u!==l&&(u=l,_(u.object))}function ne(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:h,reset:B,resetDefaultState:ne,dispose:x,releaseStatesOfGeometry:I,releaseStatesOfProgram:F,initAttributes:v,enableAttribute:S,disableUnusedAttributes:T}}function qOt(t,e,n,i){const s=i.isWebGL2;let r;function o(d){r=d}function a(d,h){t.drawArrays(r,d,h),n.update(h,r,1)}function l(d,h,f){if(f===0)return;let _,m;if(s)_=t,m="drawArraysInstanced";else if(_=e.get("ANGLE_instanced_arrays"),m="drawArraysInstancedANGLE",_===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}_[m](r,d,h,f),n.update(h,r,f)}function u(d,h,f){if(f===0)return;const _=e.get("WEBGL_multi_draw");if(_===null)for(let m=0;m<f;m++)this.render(d[m],h[m]);else{_.multiDrawArraysWEBGL(r,d,0,h,0,f);let m=0;for(let E=0;E<f;E++)m+=h[E];n.update(m,r,1)}}this.setMode=o,this.render=a,this.renderInstances=l,this.renderMultiDraw=u}function YOt(t,e,n){let i;function s(){if(i!==void 0)return i;if(e.has("EXT_texture_filter_anisotropic")===!0){const O=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(O.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function r(O){if(O==="highp"){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";O="mediump"}return O==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const l=r(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const u=o||e.has("WEBGL_draw_buffers"),d=n.logarithmicDepthBuffer===!0,h=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),f=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),_=t.getParameter(t.MAX_TEXTURE_SIZE),m=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),E=t.getParameter(t.MAX_VERTEX_ATTRIBS),b=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),g=t.getParameter(t.MAX_VARYING_VECTORS),y=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),v=f>0,S=o||e.has("OES_texture_float"),C=v&&S,T=o?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:s,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:d,maxTextures:h,maxVertexTextures:f,maxTextureSize:_,maxCubemapSize:m,maxAttributes:E,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:y,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:C,maxSamples:T}}function $Ot(t){const e=this;let n=null,i=0,s=!1,r=!1;const o=new Yr,a=new wt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const _=h.length!==0||f||i!==0||s;return s=f,i=h.length,_},this.beginShadows=function(){r=!0,d(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,f){n=d(h,f,0)},this.setState=function(h,f,_){const m=h.clippingPlanes,E=h.clipIntersection,b=h.clipShadows,g=t.get(h);if(!s||m===null||m.length===0||r&&!b)r?d(null):u();else{const y=r?0:i,v=y*4;let S=g.clippingState||null;l.value=S,S=d(m,f,v,_);for(let C=0;C!==v;++C)S[C]=n[C];g.clippingState=S,this.numIntersection=E?this.numPlanes:0,this.numPlanes+=y}};function u(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function d(h,f,_,m){const E=h!==null?h.length:0;let b=null;if(E!==0){if(b=l.value,m!==!0||b===null){const g=_+E*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length<g)&&(b=new Float32Array(g));for(let v=0,S=_;v!==E;++v,S+=4)o.copy(h[v]).applyMatrix4(y,a),o.normal.toArray(b,S),b[S+3]=o.constant}l.value=b,l.needsUpdate=!0}return e.numPlanes=E,e.numIntersection=0,b}}function WOt(t){let e=new WeakMap;function n(o,a){return a===ob?o.mapping=Ta:a===ab&&(o.mapping=xa),o}function i(o){if(o&&o.isTexture){const a=o.mapping;if(a===ob||a===ab)if(e.has(o)){const l=e.get(o).texture;return n(l,o.mapping)}else{const l=o.image;if(l&&l.height>0){const u=new rAt(l.height/2);return u.fromEquirectangularTexture(t,o),e.set(o,u),o.addEventListener("dispose",s),n(u.texture,o.mapping)}else return null}}return o}function s(o){const a=o.target;a.removeEventListener("dispose",s);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:i,dispose:r}}class ny extends uI{constructor(e=-1,n=1,i=1,s=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=i,this.bottom=s,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,i,s,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let r=i-e,o=i+e,a=s+n,l=s-n;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=u*this.view.offsetX,o=r+u*this.view.width,a-=d*this.view.offsetY,l=a-d*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const Xo=4,z1=[.125,.215,.35,.446,.526,.582],Zr=20,rg=new ny,H1=new gt;let og=null,ag=0,lg=0;const $r=(1+Math.sqrt(5))/2,Yo=1/$r,q1=[new _e(1,1,1),new _e(-1,1,1),new _e(1,1,-1),new _e(-1,1,-1),new _e(0,$r,Yo),new _e(0,$r,-Yo),new _e(Yo,0,$r),new _e(-Yo,0,$r),new _e($r,Yo,0),new _e(-$r,Yo,0)];class Y1{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,i=.1,s=100){og=this._renderer.getRenderTarget(),ag=this._renderer.getActiveCubeFace(),lg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,s,r),n>0&&this._blur(r,0,0,n),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=K1(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=W1(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(og,ag,lg),e.scissorTest=!1,gd(e,0,0,e.width,e.height)}_fromTexture(e,n){e.mapping===Ta||e.mapping===xa?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),og=this._renderer.getRenderTarget(),ag=this._renderer.getActiveCubeFace(),lg=this._renderer.getActiveMipmapLevel();const i=n||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize,i={magFilter:jn,minFilter:jn,generateMipmaps:!1,type:rc,format:gi,colorSpace:On,depthBuffer:!1},s=$1(e,n,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==n){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=$1(e,n,i);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=KOt(r)),this._blurMaterial=jOt(r,e,n)}return s}_compileMaterial(e){const n=new Hn(this._lodPlanes[0],e);this._renderer.compile(n,rg)}_sceneToCubeUV(e,n,i,s){const a=new zn(90,1,n,i),l=[1,-1,1,1,1,1],u=[1,1,1,-1,-1,-1],d=this._renderer,h=d.autoClear,f=d.toneMapping;d.getClearColor(H1),d.toneMapping=Tr,d.autoClear=!1;const _=new Er({name:"PMREM.Background",side:Zn,depthWrite:!1,depthTest:!1}),m=new Hn(new Cr,_);let E=!1;const b=e.background;b?b.isColor&&(_.color.copy(b),e.background=null,E=!0):(_.color.copy(H1),E=!0);for(let g=0;g<6;g++){const y=g%3;y===0?(a.up.set(0,l[g],0),a.lookAt(u[g],0,0)):y===1?(a.up.set(0,0,l[g]),a.lookAt(0,u[g],0)):(a.up.set(0,l[g],0),a.lookAt(0,0,u[g]));const v=this._cubeSize;gd(s,y*v,g>2?v:0,v,v),d.setRenderTarget(s),E&&d.render(m,a),d.render(e,a)}m.geometry.dispose(),m.material.dispose(),d.toneMapping=f,d.autoClear=h,e.background=b}_textureToCubeUV(e,n){const i=this._renderer,s=e.mapping===Ta||e.mapping===xa;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=K1()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=W1());const r=s?this._cubemapMaterial:this._equirectMaterial,o=new Hn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;gd(n,0,0,3*l,2*l),i.setRenderTarget(n),i.render(o,rg)}_applyPMREM(e){const n=this._renderer,i=n.autoClear;n.autoClear=!1;for(let s=1;s<this._lodPlanes.length;s++){const r=Math.sqrt(this._sigmas[s]*this._sigmas[s]-this._sigmas[s-1]*this._sigmas[s-1]),o=q1[(s-1)%q1.length];this._blur(e,s-1,s,r,o)}n.autoClear=i}_blur(e,n,i,s,r){const o=this._pingPongRenderTarget;this._halfBlur(e,o,n,i,s,"latitudinal",r),this._halfBlur(o,e,i,i,s,"longitudinal",r)}_halfBlur(e,n,i,s,r,o,a){const l=this._renderer,u=this._blurMaterial;o!=="latitudinal"&&o!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const d=3,h=new Hn(this._lodPlanes[s],u),f=u.uniforms,_=this._sizeLods[i]-1,m=isFinite(r)?Math.PI/(2*_):2*Math.PI/(2*Zr-1),E=r/m,b=isFinite(r)?1+Math.floor(d*E):Zr;b>Zr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Zr}`);const g=[];let y=0;for(let O=0;O<Zr;++O){const k=O/E,x=Math.exp(-k*k/2);g.push(x),O===0?y+=x:O<b&&(y+=2*x)}for(let O=0;O<g.length;O++)g[O]=g[O]/y;f.envMap.value=e.texture,f.samples.value=b,f.weights.value=g,f.latitudinal.value=o==="latitudinal",a&&(f.poleAxis.value=a);const{_lodMax:v}=this;f.dTheta.value=m,f.mipInt.value=v-i;const S=this._sizeLods[s],C=3*S*(s>v-Xo?s-v+Xo:0),T=4*(this._cubeSize-S);gd(n,C,T,3*S,2*S),l.setRenderTarget(n),l.render(h,rg)}}function KOt(t){const e=[],n=[],i=[];let s=t;const r=t-Xo+1+z1.length;for(let o=0;o<r;o++){const a=Math.pow(2,s);n.push(a);let l=1/a;o>t-Xo?l=z1[o-t+Xo-1]:o===0&&(l=0),i.push(l);const u=1/(a-2),d=-u,h=1+u,f=[d,d,h,d,h,h,d,d,h,h,d,h],_=6,m=6,E=3,b=2,g=1,y=new Float32Array(E*m*_),v=new Float32Array(b*m*_),S=new Float32Array(g*m*_);for(let T=0;T<_;T++){const O=T%3*2/3-1,k=T>2?0:-1,x=[O,k,0,O+2/3,k,0,O+2/3,k+1,0,O,k,0,O+2/3,k+1,0,O,k+1,0];y.set(x,E*m*T),v.set(f,b*m*T);const I=[T,T,T,T,T,T];S.set(I,g*m*T)}const C=new ms;C.setAttribute("position",new Yn(y,E)),C.setAttribute("uv",new Yn(v,b)),C.setAttribute("faceIndex",new Yn(S,g)),e.push(C),s>Xo&&s--}return{lodPlanes:e,sizeLods:n,sigmas:i}}function $1(t,e,n){const i=new mo(t,e,n);return i.texture.mapping=lp,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function gd(t,e,n,i,s){t.viewport.set(e,n,i,s),t.scissor.set(e,n,i,s)}function jOt(t,e,n){const i=new Float32Array(Zr),s=new _e(0,1,0);return new go({name:"SphericalGaussianBlur",defines:{n:Zr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:iy(),fragmentShader:`
|
||
|
||
precision mediump float;
|
||
precision mediump int;
|
||
|
||
varying vec3 vOutputDirection;
|
||
|
||
uniform sampler2D envMap;
|
||
uniform int samples;
|
||
uniform float weights[ n ];
|
||
uniform bool latitudinal;
|
||
uniform float dTheta;
|
||
uniform float mipInt;
|
||
uniform vec3 poleAxis;
|
||
|
||
#define ENVMAP_TYPE_CUBE_UV
|
||
#include <cube_uv_reflection_fragment>
|
||
|
||
vec3 getSample( float theta, vec3 axis ) {
|
||
|
||
float cosTheta = cos( theta );
|
||
// Rodrigues' axis-angle rotation
|
||
vec3 sampleDirection = vOutputDirection * cosTheta
|
||
+ cross( axis, vOutputDirection ) * sin( theta )
|
||
+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );
|
||
|
||
return bilinearCubeUV( envMap, sampleDirection, mipInt );
|
||
|
||
}
|
||
|
||
void main() {
|
||
|
||
vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );
|
||
|
||
if ( all( equal( axis, vec3( 0.0 ) ) ) ) {
|
||
|
||
axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );
|
||
|
||
}
|
||
|
||
axis = normalize( axis );
|
||
|
||
gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
|
||
gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );
|
||
|
||
for ( int i = 1; i < n; i++ ) {
|
||
|
||
if ( i >= samples ) {
|
||
|
||
break;
|
||
|
||
}
|
||
|
||
float theta = dTheta * float( i );
|
||
gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
|
||
gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );
|
||
|
||
}
|
||
|
||
}
|
||
`,blending:Sr,depthTest:!1,depthWrite:!1})}function W1(){return new go({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:iy(),fragmentShader:`
|
||
|
||
precision mediump float;
|
||
precision mediump int;
|
||
|
||
varying vec3 vOutputDirection;
|
||
|
||
uniform sampler2D envMap;
|
||
|
||
#include <common>
|
||
|
||
void main() {
|
||
|
||
vec3 outputDirection = normalize( vOutputDirection );
|
||
vec2 uv = equirectUv( outputDirection );
|
||
|
||
gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );
|
||
|
||
}
|
||
`,blending:Sr,depthTest:!1,depthWrite:!1})}function K1(){return new go({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:iy(),fragmentShader:`
|
||
|
||
precision mediump float;
|
||
precision mediump int;
|
||
|
||
uniform float flipEnvMap;
|
||
|
||
varying vec3 vOutputDirection;
|
||
|
||
uniform samplerCube envMap;
|
||
|
||
void main() {
|
||
|
||
gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );
|
||
|
||
}
|
||
`,blending:Sr,depthTest:!1,depthWrite:!1})}function iy(){return`
|
||
|
||
precision mediump float;
|
||
precision mediump int;
|
||
|
||
attribute float faceIndex;
|
||
|
||
varying vec3 vOutputDirection;
|
||
|
||
// RH coordinate system; PMREM face-indexing convention
|
||
vec3 getDirection( vec2 uv, float face ) {
|
||
|
||
uv = 2.0 * uv - 1.0;
|
||
|
||
vec3 direction = vec3( uv, 1.0 );
|
||
|
||
if ( face == 0.0 ) {
|
||
|
||
direction = direction.zyx; // ( 1, v, u ) pos x
|
||
|
||
} else if ( face == 1.0 ) {
|
||
|
||
direction = direction.xzy;
|
||
direction.xz *= -1.0; // ( -u, 1, -v ) pos y
|
||
|
||
} else if ( face == 2.0 ) {
|
||
|
||
direction.x *= -1.0; // ( -u, v, 1 ) pos z
|
||
|
||
} else if ( face == 3.0 ) {
|
||
|
||
direction = direction.zyx;
|
||
direction.xz *= -1.0; // ( -1, v, -u ) neg x
|
||
|
||
} else if ( face == 4.0 ) {
|
||
|
||
direction = direction.xzy;
|
||
direction.xy *= -1.0; // ( -u, -1, v ) neg y
|
||
|
||
} else if ( face == 5.0 ) {
|
||
|
||
direction.z *= -1.0; // ( u, v, -1 ) neg z
|
||
|
||
}
|
||
|
||
return direction;
|
||
|
||
}
|
||
|
||
void main() {
|
||
|
||
vOutputDirection = getDirection( uv, faceIndex );
|
||
gl_Position = vec4( position, 1.0 );
|
||
|
||
}
|
||
`}function QOt(t){let e=new WeakMap,n=null;function i(a){if(a&&a.isTexture){const l=a.mapping,u=l===ob||l===ab,d=l===Ta||l===xa;if(u||d)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let h=e.get(a);return n===null&&(n=new Y1(t)),h=u?n.fromEquirectangular(a,h):n.fromCubemap(a,h),e.set(a,h),h.texture}else{if(e.has(a))return e.get(a).texture;{const h=a.image;if(u&&h&&h.height>0||d&&h&&s(h)){n===null&&(n=new Y1(t));const f=u?n.fromEquirectangular(a):n.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",r),f.texture}else return null}}}return a}function s(a){let l=0;const u=6;for(let d=0;d<u;d++)a[d]!==void 0&&l++;return l===u}function r(a){const l=a.target;l.removeEventListener("dispose",r);const u=e.get(l);u!==void 0&&(e.delete(l),u.dispose())}function o(){e=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:i,dispose:o}}function XOt(t){const e={};function n(i){if(e[i]!==void 0)return e[i];let s;switch(i){case"WEBGL_depth_texture":s=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":s=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":s=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":s=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:s=t.getExtension(i)}return e[i]=s,s}return{has:function(i){return n(i)!==null},init:function(i){i.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(i){const s=n(i);return s===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),s}}}function ZOt(t,e,n,i){const s={},r=new WeakMap;function o(h){const f=h.target;f.index!==null&&e.remove(f.index);for(const m in f.attributes)e.remove(f.attributes[m]);for(const m in f.morphAttributes){const E=f.morphAttributes[m];for(let b=0,g=E.length;b<g;b++)e.remove(E[b])}f.removeEventListener("dispose",o),delete s[f.id];const _=r.get(f);_&&(e.remove(_),r.delete(f)),i.releaseStatesOfGeometry(f),f.isInstancedBufferGeometry===!0&&delete f._maxInstanceCount,n.memory.geometries--}function a(h,f){return s[f.id]===!0||(f.addEventListener("dispose",o),s[f.id]=!0,n.memory.geometries++),f}function l(h){const f=h.attributes;for(const m in f)e.update(f[m],t.ARRAY_BUFFER);const _=h.morphAttributes;for(const m in _){const E=_[m];for(let b=0,g=E.length;b<g;b++)e.update(E[b],t.ARRAY_BUFFER)}}function u(h){const f=[],_=h.index,m=h.attributes.position;let E=0;if(_!==null){const y=_.array;E=_.version;for(let v=0,S=y.length;v<S;v+=3){const C=y[v+0],T=y[v+1],O=y[v+2];f.push(C,T,T,O,O,C)}}else if(m!==void 0){const y=m.array;E=m.version;for(let v=0,S=y.length/3-1;v<S;v+=3){const C=v+0,T=v+1,O=v+2;f.push(C,T,T,O,O,C)}}else return;const b=new(nI(f)?cI:lI)(f,1);b.version=E;const g=r.get(h);g&&e.remove(g),r.set(h,b)}function d(h){const f=r.get(h);if(f){const _=h.index;_!==null&&f.version<_.version&&u(h)}else u(h);return r.get(h)}return{get:a,update:l,getWireframeAttribute:d}}function JOt(t,e,n,i){const s=i.isWebGL2;let r;function o(_){r=_}let a,l;function u(_){a=_.type,l=_.bytesPerElement}function d(_,m){t.drawElements(r,m,a,_*l),n.update(m,r,1)}function h(_,m,E){if(E===0)return;let b,g;if(s)b=t,g="drawElementsInstanced";else if(b=e.get("ANGLE_instanced_arrays"),g="drawElementsInstancedANGLE",b===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}b[g](r,m,a,_*l,E),n.update(m,r,E)}function f(_,m,E){if(E===0)return;const b=e.get("WEBGL_multi_draw");if(b===null)for(let g=0;g<E;g++)this.render(_[g]/l,m[g]);else{b.multiDrawElementsWEBGL(r,m,0,a,_,0,E);let g=0;for(let y=0;y<E;y++)g+=m[y];n.update(g,r,1)}}this.setMode=o,this.setIndex=u,this.render=d,this.renderInstances=h,this.renderMultiDraw=f}function eIt(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function i(r,o,a){switch(n.calls++,o){case t.TRIANGLES:n.triangles+=a*(r/3);break;case t.LINES:n.lines+=a*(r/2);break;case t.LINE_STRIP:n.lines+=a*(r-1);break;case t.LINE_LOOP:n.lines+=a*r;break;case t.POINTS:n.points+=a*r;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",o);break}}function s(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:s,update:i}}function tIt(t,e){return t[0]-e[0]}function nIt(t,e){return Math.abs(e[1])-Math.abs(t[1])}function iIt(t,e,n){const i={},s=new Float32Array(8),r=new WeakMap,o=new Wt,a=[];for(let u=0;u<8;u++)a[u]=[u,0];function l(u,d,h){const f=u.morphTargetInfluences;if(e.isWebGL2===!0){const m=d.morphAttributes.position||d.morphAttributes.normal||d.morphAttributes.color,E=m!==void 0?m.length:0;let b=r.get(d);if(b===void 0||b.count!==E){let $=function(){ne.dispose(),r.delete(d),d.removeEventListener("dispose",$)};var _=$;b!==void 0&&b.texture.dispose();const v=d.morphAttributes.position!==void 0,S=d.morphAttributes.normal!==void 0,C=d.morphAttributes.color!==void 0,T=d.morphAttributes.position||[],O=d.morphAttributes.normal||[],k=d.morphAttributes.color||[];let x=0;v===!0&&(x=1),S===!0&&(x=2),C===!0&&(x=3);let I=d.attributes.position.count*x,F=1;I>e.maxTextureSize&&(F=Math.ceil(I/e.maxTextureSize),I=e.maxTextureSize);const B=new Float32Array(I*F*4*E),ne=new rI(B,I,F,E);ne.type=Ps,ne.needsUpdate=!0;const L=x*4;for(let H=0;H<E;H++){const U=T[H],Q=O[H],J=k[H],j=I*F*4*H;for(let ae=0;ae<U.count;ae++){const ve=ae*L;v===!0&&(o.fromBufferAttribute(U,ae),B[j+ve+0]=o.x,B[j+ve+1]=o.y,B[j+ve+2]=o.z,B[j+ve+3]=0),S===!0&&(o.fromBufferAttribute(Q,ae),B[j+ve+4]=o.x,B[j+ve+5]=o.y,B[j+ve+6]=o.z,B[j+ve+7]=0),C===!0&&(o.fromBufferAttribute(J,ae),B[j+ve+8]=o.x,B[j+ve+9]=o.y,B[j+ve+10]=o.z,B[j+ve+11]=J.itemSize===4?o.w:1)}}b={count:E,texture:ne,size:new It(I,F)},r.set(d,b),d.addEventListener("dispose",$)}let g=0;for(let v=0;v<f.length;v++)g+=f[v];const y=d.morphTargetsRelative?1:1-g;h.getUniforms().setValue(t,"morphTargetBaseInfluence",y),h.getUniforms().setValue(t,"morphTargetInfluences",f),h.getUniforms().setValue(t,"morphTargetsTexture",b.texture,n),h.getUniforms().setValue(t,"morphTargetsTextureSize",b.size)}else{const m=f===void 0?0:f.length;let E=i[d.id];if(E===void 0||E.length!==m){E=[];for(let S=0;S<m;S++)E[S]=[S,0];i[d.id]=E}for(let S=0;S<m;S++){const C=E[S];C[0]=S,C[1]=f[S]}E.sort(nIt);for(let S=0;S<8;S++)S<m&&E[S][1]?(a[S][0]=E[S][0],a[S][1]=E[S][1]):(a[S][0]=Number.MAX_SAFE_INTEGER,a[S][1]=0);a.sort(tIt);const b=d.morphAttributes.position,g=d.morphAttributes.normal;let y=0;for(let S=0;S<8;S++){const C=a[S],T=C[0],O=C[1];T!==Number.MAX_SAFE_INTEGER&&O?(b&&d.getAttribute("morphTarget"+S)!==b[T]&&d.setAttribute("morphTarget"+S,b[T]),g&&d.getAttribute("morphNormal"+S)!==g[T]&&d.setAttribute("morphNormal"+S,g[T]),s[S]=O,y+=O):(b&&d.hasAttribute("morphTarget"+S)===!0&&d.deleteAttribute("morphTarget"+S),g&&d.hasAttribute("morphNormal"+S)===!0&&d.deleteAttribute("morphNormal"+S),s[S]=0)}const v=d.morphTargetsRelative?1:1-y;h.getUniforms().setValue(t,"morphTargetBaseInfluence",v),h.getUniforms().setValue(t,"morphTargetInfluences",s)}}return{update:l}}function sIt(t,e,n,i){let s=new WeakMap;function r(l){const u=i.render.frame,d=l.geometry,h=e.get(l,d);if(s.get(h)!==u&&(e.update(h),s.set(h,u)),l.isInstancedMesh&&(l.hasEventListener("dispose",a)===!1&&l.addEventListener("dispose",a),s.get(l)!==u&&(n.update(l.instanceMatrix,t.ARRAY_BUFFER),l.instanceColor!==null&&n.update(l.instanceColor,t.ARRAY_BUFFER),s.set(l,u))),l.isSkinnedMesh){const f=l.skeleton;s.get(f)!==u&&(f.update(),s.set(f,u))}return h}function o(){s=new WeakMap}function a(l){const u=l.target;u.removeEventListener("dispose",a),n.remove(u.instanceMatrix),u.instanceColor!==null&&n.remove(u.instanceColor)}return{update:r,dispose:o}}class hI extends Nn{constructor(e,n,i,s,r,o,a,l,u,d){if(d=d!==void 0?d:ao,d!==ao&&d!==wa)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&d===ao&&(i=br),i===void 0&&d===wa&&(i=oo),super(null,s,r,o,a,l,d,i,u),this.isDepthTexture=!0,this.image={width:e,height:n},this.magFilter=a!==void 0?a:yn,this.minFilter=l!==void 0?l:yn,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const n=super.toJSON(e);return this.compareFunction!==null&&(n.compareFunction=this.compareFunction),n}}const fI=new Nn,mI=new hI(1,1);mI.compareFunction=tI;const gI=new rI,bI=new zRt,EI=new pI,j1=[],Q1=[],X1=new Float32Array(16),Z1=new Float32Array(9),J1=new Float32Array(4);function ja(t,e,n){const i=t[0];if(i<=0||i>0)return t;const s=e*n;let r=j1[s];if(r===void 0&&(r=new Float32Array(s),j1[s]=r),e!==0){i.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=n,t[o].toArray(r,a)}return r}function mn(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function gn(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function pp(t,e){let n=Q1[e];n===void 0&&(n=new Int32Array(e),Q1[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function rIt(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function oIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(mn(n,e))return;t.uniform2fv(this.addr,e),gn(n,e)}}function aIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(e.r!==void 0)(n[0]!==e.r||n[1]!==e.g||n[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(mn(n,e))return;t.uniform3fv(this.addr,e),gn(n,e)}}function lIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(mn(n,e))return;t.uniform4fv(this.addr,e),gn(n,e)}}function cIt(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(mn(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),gn(n,e)}else{if(mn(n,i))return;J1.set(i),t.uniformMatrix2fv(this.addr,!1,J1),gn(n,i)}}function dIt(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(mn(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),gn(n,e)}else{if(mn(n,i))return;Z1.set(i),t.uniformMatrix3fv(this.addr,!1,Z1),gn(n,i)}}function uIt(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(mn(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),gn(n,e)}else{if(mn(n,i))return;X1.set(i),t.uniformMatrix4fv(this.addr,!1,X1),gn(n,i)}}function pIt(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function _It(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2i(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(mn(n,e))return;t.uniform2iv(this.addr,e),gn(n,e)}}function hIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3i(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(mn(n,e))return;t.uniform3iv(this.addr,e),gn(n,e)}}function fIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4i(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(mn(n,e))return;t.uniform4iv(this.addr,e),gn(n,e)}}function mIt(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function gIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2ui(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(mn(n,e))return;t.uniform2uiv(this.addr,e),gn(n,e)}}function bIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3ui(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(mn(n,e))return;t.uniform3uiv(this.addr,e),gn(n,e)}}function EIt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4ui(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(mn(n,e))return;t.uniform4uiv(this.addr,e),gn(n,e)}}function yIt(t,e,n){const i=this.cache,s=n.allocateTextureUnit();i[0]!==s&&(t.uniform1i(this.addr,s),i[0]=s);const r=this.type===t.SAMPLER_2D_SHADOW?mI:fI;n.setTexture2D(e||r,s)}function vIt(t,e,n){const i=this.cache,s=n.allocateTextureUnit();i[0]!==s&&(t.uniform1i(this.addr,s),i[0]=s),n.setTexture3D(e||bI,s)}function SIt(t,e,n){const i=this.cache,s=n.allocateTextureUnit();i[0]!==s&&(t.uniform1i(this.addr,s),i[0]=s),n.setTextureCube(e||EI,s)}function TIt(t,e,n){const i=this.cache,s=n.allocateTextureUnit();i[0]!==s&&(t.uniform1i(this.addr,s),i[0]=s),n.setTexture2DArray(e||gI,s)}function xIt(t){switch(t){case 5126:return rIt;case 35664:return oIt;case 35665:return aIt;case 35666:return lIt;case 35674:return cIt;case 35675:return dIt;case 35676:return uIt;case 5124:case 35670:return pIt;case 35667:case 35671:return _It;case 35668:case 35672:return hIt;case 35669:case 35673:return fIt;case 5125:return mIt;case 36294:return gIt;case 36295:return bIt;case 36296:return EIt;case 35678:case 36198:case 36298:case 36306:case 35682:return yIt;case 35679:case 36299:case 36307:return vIt;case 35680:case 36300:case 36308:case 36293:return SIt;case 36289:case 36303:case 36311:case 36292:return TIt}}function CIt(t,e){t.uniform1fv(this.addr,e)}function wIt(t,e){const n=ja(e,this.size,2);t.uniform2fv(this.addr,n)}function RIt(t,e){const n=ja(e,this.size,3);t.uniform3fv(this.addr,n)}function AIt(t,e){const n=ja(e,this.size,4);t.uniform4fv(this.addr,n)}function NIt(t,e){const n=ja(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function OIt(t,e){const n=ja(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function IIt(t,e){const n=ja(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function MIt(t,e){t.uniform1iv(this.addr,e)}function DIt(t,e){t.uniform2iv(this.addr,e)}function kIt(t,e){t.uniform3iv(this.addr,e)}function LIt(t,e){t.uniform4iv(this.addr,e)}function PIt(t,e){t.uniform1uiv(this.addr,e)}function UIt(t,e){t.uniform2uiv(this.addr,e)}function FIt(t,e){t.uniform3uiv(this.addr,e)}function BIt(t,e){t.uniform4uiv(this.addr,e)}function GIt(t,e,n){const i=this.cache,s=e.length,r=pp(n,s);mn(i,r)||(t.uniform1iv(this.addr,r),gn(i,r));for(let o=0;o!==s;++o)n.setTexture2D(e[o]||fI,r[o])}function VIt(t,e,n){const i=this.cache,s=e.length,r=pp(n,s);mn(i,r)||(t.uniform1iv(this.addr,r),gn(i,r));for(let o=0;o!==s;++o)n.setTexture3D(e[o]||bI,r[o])}function zIt(t,e,n){const i=this.cache,s=e.length,r=pp(n,s);mn(i,r)||(t.uniform1iv(this.addr,r),gn(i,r));for(let o=0;o!==s;++o)n.setTextureCube(e[o]||EI,r[o])}function HIt(t,e,n){const i=this.cache,s=e.length,r=pp(n,s);mn(i,r)||(t.uniform1iv(this.addr,r),gn(i,r));for(let o=0;o!==s;++o)n.setTexture2DArray(e[o]||gI,r[o])}function qIt(t){switch(t){case 5126:return CIt;case 35664:return wIt;case 35665:return RIt;case 35666:return AIt;case 35674:return NIt;case 35675:return OIt;case 35676:return IIt;case 5124:case 35670:return MIt;case 35667:case 35671:return DIt;case 35668:case 35672:return kIt;case 35669:case 35673:return LIt;case 5125:return PIt;case 36294:return UIt;case 36295:return FIt;case 36296:return BIt;case 35678:case 36198:case 36298:case 36306:case 35682:return GIt;case 35679:case 36299:case 36307:return VIt;case 35680:case 36300:case 36308:case 36293:return zIt;case 36289:case 36303:case 36311:case 36292:return HIt}}class YIt{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.type=n.type,this.setValue=xIt(n.type)}}class $It{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.type=n.type,this.size=n.size,this.setValue=qIt(n.type)}}class WIt{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,n,i){const s=this.seq;for(let r=0,o=s.length;r!==o;++r){const a=s[r];a.setValue(e,n[a.id],i)}}}const cg=/(\w+)(\])?(\[|\.)?/g;function ew(t,e){t.seq.push(e),t.map[e.id]=e}function KIt(t,e,n){const i=t.name,s=i.length;for(cg.lastIndex=0;;){const r=cg.exec(i),o=cg.lastIndex;let a=r[1];const l=r[2]==="]",u=r[3];if(l&&(a=a|0),u===void 0||u==="["&&o+2===s){ew(n,u===void 0?new YIt(a,t,e):new $It(a,t,e));break}else{let h=n.map[a];h===void 0&&(h=new WIt(a),ew(n,h)),n=h}}}class Gd{constructor(e,n){this.seq=[],this.map={};const i=e.getProgramParameter(n,e.ACTIVE_UNIFORMS);for(let s=0;s<i;++s){const r=e.getActiveUniform(n,s),o=e.getUniformLocation(n,r.name);KIt(r,o,this)}}setValue(e,n,i,s){const r=this.map[n];r!==void 0&&r.setValue(e,i,s)}setOptional(e,n,i){const s=n[i];s!==void 0&&this.setValue(e,i,s)}static upload(e,n,i,s){for(let r=0,o=n.length;r!==o;++r){const a=n[r],l=i[a.id];l.needsUpdate!==!1&&a.setValue(e,l.value,s)}}static seqWithValue(e,n){const i=[];for(let s=0,r=e.length;s!==r;++s){const o=e[s];o.id in n&&i.push(o)}return i}}function tw(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}const jIt=37297;let QIt=0;function XIt(t,e){const n=t.split(`
|
||
`),i=[],s=Math.max(e-6,0),r=Math.min(e+6,n.length);for(let o=s;o<r;o++){const a=o+1;i.push(`${a===e?">":" "} ${a}: ${n[o]}`)}return i.join(`
|
||
`)}function ZIt(t){const e=Gt.getPrimaries(Gt.workingColorSpace),n=Gt.getPrimaries(t);let i;switch(e===n?i="":e===gu&&n===mu?i="LinearDisplayP3ToLinearSRGB":e===mu&&n===gu&&(i="LinearSRGBToLinearDisplayP3"),t){case On:case cp:return[i,"LinearTransferOETF"];case on:case ZE:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[i,"LinearTransferOETF"]}}function nw(t,e,n){const i=t.getShaderParameter(e,t.COMPILE_STATUS),s=t.getShaderInfoLog(e).trim();if(i&&s==="")return"";const r=/ERROR: 0:(\d+)/.exec(s);if(r){const o=parseInt(r[1]);return n.toUpperCase()+`
|
||
|
||
`+s+`
|
||
|
||
`+XIt(t.getShaderSource(e),o)}else return s}function JIt(t,e){const n=ZIt(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function eMt(t,e){let n;switch(e){case Qwt:n="Linear";break;case Xwt:n="Reinhard";break;case Zwt:n="OptimizedCineon";break;case Jwt:n="ACESFilmic";break;case eRt:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function tMt(t){return[t.extensionDerivatives||t.envMapCubeUVHeight||t.bumpMap||t.normalMapTangentSpace||t.clearcoatNormalMap||t.flatShading||t.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Rl).join(`
|
||
`)}function nMt(t){const e=[];for(const n in t){const i=t[n];i!==!1&&e.push("#define "+n+" "+i)}return e.join(`
|
||
`)}function iMt(t,e){const n={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let s=0;s<i;s++){const r=t.getActiveAttrib(e,s),o=r.name;let a=1;r.type===t.FLOAT_MAT2&&(a=2),r.type===t.FLOAT_MAT3&&(a=3),r.type===t.FLOAT_MAT4&&(a=4),n[o]={type:r.type,location:t.getAttribLocation(e,o),locationSize:a}}return n}function Rl(t){return t!==""}function iw(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function sw(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const sMt=/^[ \t]*#include +<([\w\d./]+)>/gm;function _b(t){return t.replace(sMt,oMt)}const rMt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function oMt(t,e){let n=Tt[e];if(n===void 0){const i=rMt.get(e);if(i!==void 0)n=Tt[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return _b(n)}const aMt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function rw(t){return t.replace(aMt,lMt)}function lMt(t,e,n,i){let s="";for(let r=parseInt(e);r<parseInt(n);r++)s+=i.replace(/\[\s*i\s*\]/g,"[ "+r+" ]").replace(/UNROLLED_LOOP_INDEX/g,r);return s}function ow(t){let e="precision "+t.precision+` float;
|
||
precision `+t.precision+" int;";return t.precision==="highp"?e+=`
|
||
#define HIGH_PRECISION`:t.precision==="mediump"?e+=`
|
||
#define MEDIUM_PRECISION`:t.precision==="lowp"&&(e+=`
|
||
#define LOW_PRECISION`),e}function cMt(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===HO?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===xwt?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===Ms&&(e="SHADOWMAP_TYPE_VSM"),e}function dMt(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case Ta:case xa:e="ENVMAP_TYPE_CUBE";break;case lp:e="ENVMAP_TYPE_CUBE_UV";break}return e}function uMt(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case xa:e="ENVMAP_MODE_REFRACTION";break}return e}function pMt(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case jE:e="ENVMAP_BLENDING_MULTIPLY";break;case Kwt:e="ENVMAP_BLENDING_MIX";break;case jwt:e="ENVMAP_BLENDING_ADD";break}return e}function _Mt(t){const e=t.envMapCubeUVHeight;if(e===null)return null;const n=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),7*16)),texelHeight:i,maxMip:n}}function hMt(t,e,n,i){const s=t.getContext(),r=n.defines;let o=n.vertexShader,a=n.fragmentShader;const l=cMt(n),u=dMt(n),d=uMt(n),h=pMt(n),f=_Mt(n),_=n.isWebGL2?"":tMt(n),m=nMt(r),E=s.createProgram();let b,g,y=n.glslVersion?"#version "+n.glslVersion+`
|
||
`:"";n.isRawShaderMaterial?(b=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Rl).join(`
|
||
`),b.length>0&&(b+=`
|
||
`),g=[_,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Rl).join(`
|
||
`),g.length>0&&(g+=`
|
||
`)):(b=[ow(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",`
|
||
`].filter(Rl).join(`
|
||
`),g=[_,ow(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",n.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Tr?"#define TONE_MAPPING":"",n.toneMapping!==Tr?Tt.tonemapping_pars_fragment:"",n.toneMapping!==Tr?eMt("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Tt.colorspace_pars_fragment,JIt("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
|
||
`].filter(Rl).join(`
|
||
`)),o=_b(o),o=iw(o,n),o=sw(o,n),a=_b(a),a=iw(a,n),a=sw(a,n),o=rw(o),a=rw(a),n.isWebGL2&&n.isRawShaderMaterial!==!0&&(y=`#version 300 es
|
||
`,b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(`
|
||
`)+`
|
||
`+b,g=["precision mediump sampler2DArray;","#define varying in",n.glslVersion===x1?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===x1?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(`
|
||
`)+`
|
||
`+g);const v=y+b+o,S=y+g+a,C=tw(s,s.VERTEX_SHADER,v),T=tw(s,s.FRAGMENT_SHADER,S);s.attachShader(E,C),s.attachShader(E,T),n.index0AttributeName!==void 0?s.bindAttribLocation(E,0,n.index0AttributeName):n.morphTargets===!0&&s.bindAttribLocation(E,0,"position"),s.linkProgram(E);function O(F){if(t.debug.checkShaderErrors){const B=s.getProgramInfoLog(E).trim(),ne=s.getShaderInfoLog(C).trim(),L=s.getShaderInfoLog(T).trim();let $=!0,H=!0;if(s.getProgramParameter(E,s.LINK_STATUS)===!1)if($=!1,typeof t.debug.onShaderError=="function")t.debug.onShaderError(s,E,C,T);else{const U=nw(s,C,"vertex"),Q=nw(s,T,"fragment");console.error("THREE.WebGLProgram: Shader Error "+s.getError()+" - VALIDATE_STATUS "+s.getProgramParameter(E,s.VALIDATE_STATUS)+`
|
||
|
||
Program Info Log: `+B+`
|
||
`+U+`
|
||
`+Q)}else B!==""?console.warn("THREE.WebGLProgram: Program Info Log:",B):(ne===""||L==="")&&(H=!1);H&&(F.diagnostics={runnable:$,programLog:B,vertexShader:{log:ne,prefix:b},fragmentShader:{log:L,prefix:g}})}s.deleteShader(C),s.deleteShader(T),k=new Gd(s,E),x=iMt(s,E)}let k;this.getUniforms=function(){return k===void 0&&O(this),k};let x;this.getAttributes=function(){return x===void 0&&O(this),x};let I=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return I===!1&&(I=s.getProgramParameter(E,jIt)),I},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(E),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=QIt++,this.cacheKey=e,this.usedTimes=1,this.program=E,this.vertexShader=C,this.fragmentShader=T,this}let fMt=0;class mMt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(n),r=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(s)===!1&&(o.add(s),s.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const i of n)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let i=n.get(e);return i===void 0&&(i=new Set,n.set(e,i)),i}_getShaderStage(e){const n=this.shaderCache;let i=n.get(e);return i===void 0&&(i=new gMt(e),n.set(e,i)),i}}class gMt{constructor(e){this.id=fMt++,this.code=e,this.usedTimes=0}}function bMt(t,e,n,i,s,r,o){const a=new oI,l=new mMt,u=[],d=s.isWebGL2,h=s.logarithmicDepthBuffer,f=s.vertexTextures;let _=s.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function E(x){return x===0?"uv":`uv${x}`}function b(x,I,F,B,ne){const L=B.fog,$=ne.geometry,H=x.isMeshStandardMaterial?B.environment:null,U=(x.isMeshStandardMaterial?n:e).get(x.envMap||H),Q=U&&U.mapping===lp?U.image.height:null,J=m[x.type];x.precision!==null&&(_=s.getMaxPrecision(x.precision),_!==x.precision&&console.warn("THREE.WebGLProgram.getParameters:",x.precision,"not supported, using",_,"instead."));const j=$.morphAttributes.position||$.morphAttributes.normal||$.morphAttributes.color,ae=j!==void 0?j.length:0;let ve=0;$.morphAttributes.position!==void 0&&(ve=1),$.morphAttributes.normal!==void 0&&(ve=2),$.morphAttributes.color!==void 0&&(ve=3);let ee,Ee,xe,Me;if(J){const cn=Zi[J];ee=cn.vertexShader,Ee=cn.fragmentShader}else ee=x.vertexShader,Ee=x.fragmentShader,l.update(x),xe=l.getVertexShaderID(x),Me=l.getFragmentShaderID(x);const Z=t.getRenderTarget(),ye=ne.isInstancedMesh===!0,fe=ne.isBatchedMesh===!0,Ne=!!x.map,Le=!!x.matcap,D=!!U,q=!!x.aoMap,K=!!x.lightMap,de=!!x.bumpMap,le=!!x.normalMap,Re=!!x.displacementMap,Ie=!!x.emissiveMap,z=!!x.metalnessMap,pe=!!x.roughnessMap,re=x.anisotropy>0,ce=x.clearcoat>0,M=x.iridescence>0,N=x.sheen>0,W=x.transmission>0,ue=re&&!!x.anisotropyMap,X=ce&&!!x.clearcoatMap,ie=ce&&!!x.clearcoatNormalMap,Ae=ce&&!!x.clearcoatRoughnessMap,Ce=M&&!!x.iridescenceMap,ke=M&&!!x.iridescenceThicknessMap,Qe=N&&!!x.sheenColorMap,ct=N&&!!x.sheenRoughnessMap,Pe=!!x.specularMap,ut=!!x.specularColorMap,Je=!!x.specularIntensityMap,qe=W&&!!x.transmissionMap,tt=W&&!!x.thicknessMap,Fe=!!x.gradientMap,pt=!!x.alphaMap,oe=x.alphaTest>0,Ke=!!x.alphaHash,Ue=!!x.extensions,Oe=!!$.attributes.uv1,Be=!!$.attributes.uv2,dt=!!$.attributes.uv3;let Et=Tr;return x.toneMapped&&(Z===null||Z.isXRRenderTarget===!0)&&(Et=t.toneMapping),{isWebGL2:d,shaderID:J,shaderType:x.type,shaderName:x.name,vertexShader:ee,fragmentShader:Ee,defines:x.defines,customVertexShaderID:xe,customFragmentShaderID:Me,isRawShaderMaterial:x.isRawShaderMaterial===!0,glslVersion:x.glslVersion,precision:_,batching:fe,instancing:ye,instancingColor:ye&&ne.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:Z===null?t.outputColorSpace:Z.isXRRenderTarget===!0?Z.texture.colorSpace:On,map:Ne,matcap:Le,envMap:D,envMapMode:D&&U.mapping,envMapCubeUVHeight:Q,aoMap:q,lightMap:K,bumpMap:de,normalMap:le,displacementMap:f&&Re,emissiveMap:Ie,normalMapObjectSpace:le&&x.normalMapType===hRt,normalMapTangentSpace:le&&x.normalMapType===XE,metalnessMap:z,roughnessMap:pe,anisotropy:re,anisotropyMap:ue,clearcoat:ce,clearcoatMap:X,clearcoatNormalMap:ie,clearcoatRoughnessMap:Ae,iridescence:M,iridescenceMap:Ce,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:Qe,sheenRoughnessMap:ct,specularMap:Pe,specularColorMap:ut,specularIntensityMap:Je,transmission:W,transmissionMap:qe,thicknessMap:tt,gradientMap:Fe,opaque:x.transparent===!1&&x.blending===aa,alphaMap:pt,alphaTest:oe,alphaHash:Ke,combine:x.combine,mapUv:Ne&&E(x.map.channel),aoMapUv:q&&E(x.aoMap.channel),lightMapUv:K&&E(x.lightMap.channel),bumpMapUv:de&&E(x.bumpMap.channel),normalMapUv:le&&E(x.normalMap.channel),displacementMapUv:Re&&E(x.displacementMap.channel),emissiveMapUv:Ie&&E(x.emissiveMap.channel),metalnessMapUv:z&&E(x.metalnessMap.channel),roughnessMapUv:pe&&E(x.roughnessMap.channel),anisotropyMapUv:ue&&E(x.anisotropyMap.channel),clearcoatMapUv:X&&E(x.clearcoatMap.channel),clearcoatNormalMapUv:ie&&E(x.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ae&&E(x.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&E(x.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&E(x.iridescenceThicknessMap.channel),sheenColorMapUv:Qe&&E(x.sheenColorMap.channel),sheenRoughnessMapUv:ct&&E(x.sheenRoughnessMap.channel),specularMapUv:Pe&&E(x.specularMap.channel),specularColorMapUv:ut&&E(x.specularColorMap.channel),specularIntensityMapUv:Je&&E(x.specularIntensityMap.channel),transmissionMapUv:qe&&E(x.transmissionMap.channel),thicknessMapUv:tt&&E(x.thicknessMap.channel),alphaMapUv:pt&&E(x.alphaMap.channel),vertexTangents:!!$.attributes.tangent&&(le||re),vertexColors:x.vertexColors,vertexAlphas:x.vertexColors===!0&&!!$.attributes.color&&$.attributes.color.itemSize===4,vertexUv1s:Oe,vertexUv2s:Be,vertexUv3s:dt,pointsUvs:ne.isPoints===!0&&!!$.attributes.uv&&(Ne||pt),fog:!!L,useFog:x.fog===!0,fogExp2:L&&L.isFogExp2,flatShading:x.flatShading===!0,sizeAttenuation:x.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:ne.isSkinnedMesh===!0,morphTargets:$.morphAttributes.position!==void 0,morphNormals:$.morphAttributes.normal!==void 0,morphColors:$.morphAttributes.color!==void 0,morphTargetsCount:ae,morphTextureStride:ve,numDirLights:I.directional.length,numPointLights:I.point.length,numSpotLights:I.spot.length,numSpotLightMaps:I.spotLightMap.length,numRectAreaLights:I.rectArea.length,numHemiLights:I.hemi.length,numDirLightShadows:I.directionalShadowMap.length,numPointLightShadows:I.pointShadowMap.length,numSpotLightShadows:I.spotShadowMap.length,numSpotLightShadowsWithMaps:I.numSpotLightShadowsWithMaps,numLightProbes:I.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:x.dithering,shadowMapEnabled:t.shadowMap.enabled&&F.length>0,shadowMapType:t.shadowMap.type,toneMapping:Et,useLegacyLights:t._useLegacyLights,decodeVideoTexture:Ne&&x.map.isVideoTexture===!0&&Gt.getTransfer(x.map.colorSpace)===Zt,premultipliedAlpha:x.premultipliedAlpha,doubleSided:x.side===es,flipSided:x.side===Zn,useDepthPacking:x.depthPacking>=0,depthPacking:x.depthPacking||0,index0AttributeName:x.index0AttributeName,extensionDerivatives:Ue&&x.extensions.derivatives===!0,extensionFragDepth:Ue&&x.extensions.fragDepth===!0,extensionDrawBuffers:Ue&&x.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ue&&x.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:d||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:x.customProgramCacheKey()}}function g(x){const I=[];if(x.shaderID?I.push(x.shaderID):(I.push(x.customVertexShaderID),I.push(x.customFragmentShaderID)),x.defines!==void 0)for(const F in x.defines)I.push(F),I.push(x.defines[F]);return x.isRawShaderMaterial===!1&&(y(I,x),v(I,x),I.push(t.outputColorSpace)),I.push(x.customProgramCacheKey),I.join()}function y(x,I){x.push(I.precision),x.push(I.outputColorSpace),x.push(I.envMapMode),x.push(I.envMapCubeUVHeight),x.push(I.mapUv),x.push(I.alphaMapUv),x.push(I.lightMapUv),x.push(I.aoMapUv),x.push(I.bumpMapUv),x.push(I.normalMapUv),x.push(I.displacementMapUv),x.push(I.emissiveMapUv),x.push(I.metalnessMapUv),x.push(I.roughnessMapUv),x.push(I.anisotropyMapUv),x.push(I.clearcoatMapUv),x.push(I.clearcoatNormalMapUv),x.push(I.clearcoatRoughnessMapUv),x.push(I.iridescenceMapUv),x.push(I.iridescenceThicknessMapUv),x.push(I.sheenColorMapUv),x.push(I.sheenRoughnessMapUv),x.push(I.specularMapUv),x.push(I.specularColorMapUv),x.push(I.specularIntensityMapUv),x.push(I.transmissionMapUv),x.push(I.thicknessMapUv),x.push(I.combine),x.push(I.fogExp2),x.push(I.sizeAttenuation),x.push(I.morphTargetsCount),x.push(I.morphAttributeCount),x.push(I.numDirLights),x.push(I.numPointLights),x.push(I.numSpotLights),x.push(I.numSpotLightMaps),x.push(I.numHemiLights),x.push(I.numRectAreaLights),x.push(I.numDirLightShadows),x.push(I.numPointLightShadows),x.push(I.numSpotLightShadows),x.push(I.numSpotLightShadowsWithMaps),x.push(I.numLightProbes),x.push(I.shadowMapType),x.push(I.toneMapping),x.push(I.numClippingPlanes),x.push(I.numClipIntersection),x.push(I.depthPacking)}function v(x,I){a.disableAll(),I.isWebGL2&&a.enable(0),I.supportsVertexTextures&&a.enable(1),I.instancing&&a.enable(2),I.instancingColor&&a.enable(3),I.matcap&&a.enable(4),I.envMap&&a.enable(5),I.normalMapObjectSpace&&a.enable(6),I.normalMapTangentSpace&&a.enable(7),I.clearcoat&&a.enable(8),I.iridescence&&a.enable(9),I.alphaTest&&a.enable(10),I.vertexColors&&a.enable(11),I.vertexAlphas&&a.enable(12),I.vertexUv1s&&a.enable(13),I.vertexUv2s&&a.enable(14),I.vertexUv3s&&a.enable(15),I.vertexTangents&&a.enable(16),I.anisotropy&&a.enable(17),I.alphaHash&&a.enable(18),I.batching&&a.enable(19),x.push(a.mask),a.disableAll(),I.fog&&a.enable(0),I.useFog&&a.enable(1),I.flatShading&&a.enable(2),I.logarithmicDepthBuffer&&a.enable(3),I.skinning&&a.enable(4),I.morphTargets&&a.enable(5),I.morphNormals&&a.enable(6),I.morphColors&&a.enable(7),I.premultipliedAlpha&&a.enable(8),I.shadowMapEnabled&&a.enable(9),I.useLegacyLights&&a.enable(10),I.doubleSided&&a.enable(11),I.flipSided&&a.enable(12),I.useDepthPacking&&a.enable(13),I.dithering&&a.enable(14),I.transmission&&a.enable(15),I.sheen&&a.enable(16),I.opaque&&a.enable(17),I.pointsUvs&&a.enable(18),I.decodeVideoTexture&&a.enable(19),x.push(a.mask)}function S(x){const I=m[x.type];let F;if(I){const B=Zi[I];F=tAt.clone(B.uniforms)}else F=x.uniforms;return F}function C(x,I){let F;for(let B=0,ne=u.length;B<ne;B++){const L=u[B];if(L.cacheKey===I){F=L,++F.usedTimes;break}}return F===void 0&&(F=new hMt(t,I,x,r),u.push(F)),F}function T(x){if(--x.usedTimes===0){const I=u.indexOf(x);u[I]=u[u.length-1],u.pop(),x.destroy()}}function O(x){l.remove(x)}function k(){l.dispose()}return{getParameters:b,getProgramCacheKey:g,getUniforms:S,acquireProgram:C,releaseProgram:T,releaseShaderCache:O,programs:u,dispose:k}}function EMt(){let t=new WeakMap;function e(r){let o=t.get(r);return o===void 0&&(o={},t.set(r,o)),o}function n(r){t.delete(r)}function i(r,o,a){t.get(r)[o]=a}function s(){t=new WeakMap}return{get:e,remove:n,update:i,dispose:s}}function yMt(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function aw(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function lw(){const t=[];let e=0;const n=[],i=[],s=[];function r(){e=0,n.length=0,i.length=0,s.length=0}function o(h,f,_,m,E,b){let g=t[e];return g===void 0?(g={id:h.id,object:h,geometry:f,material:_,groupOrder:m,renderOrder:h.renderOrder,z:E,group:b},t[e]=g):(g.id=h.id,g.object=h,g.geometry=f,g.material=_,g.groupOrder=m,g.renderOrder=h.renderOrder,g.z=E,g.group=b),e++,g}function a(h,f,_,m,E,b){const g=o(h,f,_,m,E,b);_.transmission>0?i.push(g):_.transparent===!0?s.push(g):n.push(g)}function l(h,f,_,m,E,b){const g=o(h,f,_,m,E,b);_.transmission>0?i.unshift(g):_.transparent===!0?s.unshift(g):n.unshift(g)}function u(h,f){n.length>1&&n.sort(h||yMt),i.length>1&&i.sort(f||aw),s.length>1&&s.sort(f||aw)}function d(){for(let h=e,f=t.length;h<f;h++){const _=t[h];if(_.id===null)break;_.id=null,_.object=null,_.geometry=null,_.material=null,_.group=null}}return{opaque:n,transmissive:i,transparent:s,init:r,push:a,unshift:l,finish:d,sort:u}}function vMt(){let t=new WeakMap;function e(i,s){const r=t.get(i);let o;return r===void 0?(o=new lw,t.set(i,[o])):s>=r.length?(o=new lw,r.push(o)):o=r[s],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function SMt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new _e,color:new gt};break;case"SpotLight":n={position:new _e,direction:new _e,color:new gt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new _e,color:new gt,distance:0,decay:0};break;case"HemisphereLight":n={direction:new _e,skyColor:new gt,groundColor:new gt};break;case"RectAreaLight":n={color:new gt,position:new _e,halfWidth:new _e,halfHeight:new _e};break}return t[e.id]=n,n}}}function TMt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new It,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let xMt=0;function CMt(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function wMt(t,e){const n=new SMt,i=TMt(),s={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let d=0;d<9;d++)s.probe.push(new _e);const r=new _e,o=new Rt,a=new Rt;function l(d,h){let f=0,_=0,m=0;for(let B=0;B<9;B++)s.probe[B].set(0,0,0);let E=0,b=0,g=0,y=0,v=0,S=0,C=0,T=0,O=0,k=0,x=0;d.sort(CMt);const I=h===!0?Math.PI:1;for(let B=0,ne=d.length;B<ne;B++){const L=d[B],$=L.color,H=L.intensity,U=L.distance,Q=L.shadow&&L.shadow.map?L.shadow.map.texture:null;if(L.isAmbientLight)f+=$.r*H*I,_+=$.g*H*I,m+=$.b*H*I;else if(L.isLightProbe){for(let J=0;J<9;J++)s.probe[J].addScaledVector(L.sh.coefficients[J],H);x++}else if(L.isDirectionalLight){const J=n.get(L);if(J.color.copy(L.color).multiplyScalar(L.intensity*I),L.castShadow){const j=L.shadow,ae=i.get(L);ae.shadowBias=j.bias,ae.shadowNormalBias=j.normalBias,ae.shadowRadius=j.radius,ae.shadowMapSize=j.mapSize,s.directionalShadow[E]=ae,s.directionalShadowMap[E]=Q,s.directionalShadowMatrix[E]=L.shadow.matrix,S++}s.directional[E]=J,E++}else if(L.isSpotLight){const J=n.get(L);J.position.setFromMatrixPosition(L.matrixWorld),J.color.copy($).multiplyScalar(H*I),J.distance=U,J.coneCos=Math.cos(L.angle),J.penumbraCos=Math.cos(L.angle*(1-L.penumbra)),J.decay=L.decay,s.spot[g]=J;const j=L.shadow;if(L.map&&(s.spotLightMap[O]=L.map,O++,j.updateMatrices(L),L.castShadow&&k++),s.spotLightMatrix[g]=j.matrix,L.castShadow){const ae=i.get(L);ae.shadowBias=j.bias,ae.shadowNormalBias=j.normalBias,ae.shadowRadius=j.radius,ae.shadowMapSize=j.mapSize,s.spotShadow[g]=ae,s.spotShadowMap[g]=Q,T++}g++}else if(L.isRectAreaLight){const J=n.get(L);J.color.copy($).multiplyScalar(H),J.halfWidth.set(L.width*.5,0,0),J.halfHeight.set(0,L.height*.5,0),s.rectArea[y]=J,y++}else if(L.isPointLight){const J=n.get(L);if(J.color.copy(L.color).multiplyScalar(L.intensity*I),J.distance=L.distance,J.decay=L.decay,L.castShadow){const j=L.shadow,ae=i.get(L);ae.shadowBias=j.bias,ae.shadowNormalBias=j.normalBias,ae.shadowRadius=j.radius,ae.shadowMapSize=j.mapSize,ae.shadowCameraNear=j.camera.near,ae.shadowCameraFar=j.camera.far,s.pointShadow[b]=ae,s.pointShadowMap[b]=Q,s.pointShadowMatrix[b]=L.shadow.matrix,C++}s.point[b]=J,b++}else if(L.isHemisphereLight){const J=n.get(L);J.skyColor.copy(L.color).multiplyScalar(H*I),J.groundColor.copy(L.groundColor).multiplyScalar(H*I),s.hemi[v]=J,v++}}y>0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(s.rectAreaLTC1=je.LTC_FLOAT_1,s.rectAreaLTC2=je.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(s.rectAreaLTC1=je.LTC_HALF_1,s.rectAreaLTC2=je.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),s.ambient[0]=f,s.ambient[1]=_,s.ambient[2]=m;const F=s.hash;(F.directionalLength!==E||F.pointLength!==b||F.spotLength!==g||F.rectAreaLength!==y||F.hemiLength!==v||F.numDirectionalShadows!==S||F.numPointShadows!==C||F.numSpotShadows!==T||F.numSpotMaps!==O||F.numLightProbes!==x)&&(s.directional.length=E,s.spot.length=g,s.rectArea.length=y,s.point.length=b,s.hemi.length=v,s.directionalShadow.length=S,s.directionalShadowMap.length=S,s.pointShadow.length=C,s.pointShadowMap.length=C,s.spotShadow.length=T,s.spotShadowMap.length=T,s.directionalShadowMatrix.length=S,s.pointShadowMatrix.length=C,s.spotLightMatrix.length=T+O-k,s.spotLightMap.length=O,s.numSpotLightShadowsWithMaps=k,s.numLightProbes=x,F.directionalLength=E,F.pointLength=b,F.spotLength=g,F.rectAreaLength=y,F.hemiLength=v,F.numDirectionalShadows=S,F.numPointShadows=C,F.numSpotShadows=T,F.numSpotMaps=O,F.numLightProbes=x,s.version=xMt++)}function u(d,h){let f=0,_=0,m=0,E=0,b=0;const g=h.matrixWorldInverse;for(let y=0,v=d.length;y<v;y++){const S=d[y];if(S.isDirectionalLight){const C=s.directional[f];C.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),C.direction.sub(r),C.direction.transformDirection(g),f++}else if(S.isSpotLight){const C=s.spot[m];C.position.setFromMatrixPosition(S.matrixWorld),C.position.applyMatrix4(g),C.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),C.direction.sub(r),C.direction.transformDirection(g),m++}else if(S.isRectAreaLight){const C=s.rectArea[E];C.position.setFromMatrixPosition(S.matrixWorld),C.position.applyMatrix4(g),a.identity(),o.copy(S.matrixWorld),o.premultiply(g),a.extractRotation(o),C.halfWidth.set(S.width*.5,0,0),C.halfHeight.set(0,S.height*.5,0),C.halfWidth.applyMatrix4(a),C.halfHeight.applyMatrix4(a),E++}else if(S.isPointLight){const C=s.point[_];C.position.setFromMatrixPosition(S.matrixWorld),C.position.applyMatrix4(g),_++}else if(S.isHemisphereLight){const C=s.hemi[b];C.direction.setFromMatrixPosition(S.matrixWorld),C.direction.transformDirection(g),b++}}}return{setup:l,setupView:u,state:s}}function cw(t,e){const n=new wMt(t,e),i=[],s=[];function r(){i.length=0,s.length=0}function o(h){i.push(h)}function a(h){s.push(h)}function l(h){n.setup(i,h)}function u(h){n.setupView(i,h)}return{init:r,state:{lightsArray:i,shadowsArray:s,lights:n},setupLights:l,setupLightsView:u,pushLight:o,pushShadow:a}}function RMt(t,e){let n=new WeakMap;function i(r,o=0){const a=n.get(r);let l;return a===void 0?(l=new cw(t,e),n.set(r,[l])):o>=a.length?(l=new cw(t,e),a.push(l)):l=a[o],l}function s(){n=new WeakMap}return{get:i,dispose:s}}class AMt extends Hi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=pRt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class NMt extends Hi{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const OMt=`void main() {
|
||
gl_Position = vec4( position, 1.0 );
|
||
}`,IMt=`uniform sampler2D shadow_pass;
|
||
uniform vec2 resolution;
|
||
uniform float radius;
|
||
#include <packing>
|
||
void main() {
|
||
const float samples = float( VSM_SAMPLES );
|
||
float mean = 0.0;
|
||
float squared_mean = 0.0;
|
||
float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
|
||
float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
|
||
for ( float i = 0.0; i < samples; i ++ ) {
|
||
float uvOffset = uvStart + i * uvStride;
|
||
#ifdef HORIZONTAL_PASS
|
||
vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );
|
||
mean += distribution.x;
|
||
squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
|
||
#else
|
||
float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );
|
||
mean += depth;
|
||
squared_mean += depth * depth;
|
||
#endif
|
||
}
|
||
mean = mean / samples;
|
||
squared_mean = squared_mean / samples;
|
||
float std_dev = sqrt( squared_mean - mean * mean );
|
||
gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
|
||
}`;function MMt(t,e,n){let i=new ey;const s=new It,r=new It,o=new Wt,a=new AMt({depthPacking:_Rt}),l=new NMt,u={},d=n.maxTextureSize,h={[Ys]:Zn,[Zn]:Ys,[es]:es},f=new go({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new It},radius:{value:4}},vertexShader:OMt,fragmentShader:IMt}),_=f.clone();_.defines.HORIZONTAL_PASS=1;const m=new ms;m.setAttribute("position",new Yn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const E=new Hn(m,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=HO;let g=this.type;this.render=function(C,T,O){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||C.length===0)return;const k=t.getRenderTarget(),x=t.getActiveCubeFace(),I=t.getActiveMipmapLevel(),F=t.state;F.setBlending(Sr),F.buffers.color.setClear(1,1,1,1),F.buffers.depth.setTest(!0),F.setScissorTest(!1);const B=g!==Ms&&this.type===Ms,ne=g===Ms&&this.type!==Ms;for(let L=0,$=C.length;L<$;L++){const H=C[L],U=H.shadow;if(U===void 0){console.warn("THREE.WebGLShadowMap:",H,"has no shadow.");continue}if(U.autoUpdate===!1&&U.needsUpdate===!1)continue;s.copy(U.mapSize);const Q=U.getFrameExtents();if(s.multiply(Q),r.copy(U.mapSize),(s.x>d||s.y>d)&&(s.x>d&&(r.x=Math.floor(d/Q.x),s.x=r.x*Q.x,U.mapSize.x=r.x),s.y>d&&(r.y=Math.floor(d/Q.y),s.y=r.y*Q.y,U.mapSize.y=r.y)),U.map===null||B===!0||ne===!0){const j=this.type!==Ms?{minFilter:yn,magFilter:yn}:{};U.map!==null&&U.map.dispose(),U.map=new mo(s.x,s.y,j),U.map.texture.name=H.name+".shadowMap",U.camera.updateProjectionMatrix()}t.setRenderTarget(U.map),t.clear();const J=U.getViewportCount();for(let j=0;j<J;j++){const ae=U.getViewport(j);o.set(r.x*ae.x,r.y*ae.y,r.x*ae.z,r.y*ae.w),F.viewport(o),U.updateMatrices(H,j),i=U.getFrustum(),S(T,O,U.camera,H,this.type)}U.isPointLightShadow!==!0&&this.type===Ms&&y(U,O),U.needsUpdate=!1}g=this.type,b.needsUpdate=!1,t.setRenderTarget(k,x,I)};function y(C,T){const O=e.update(E);f.defines.VSM_SAMPLES!==C.blurSamples&&(f.defines.VSM_SAMPLES=C.blurSamples,_.defines.VSM_SAMPLES=C.blurSamples,f.needsUpdate=!0,_.needsUpdate=!0),C.mapPass===null&&(C.mapPass=new mo(s.x,s.y)),f.uniforms.shadow_pass.value=C.map.texture,f.uniforms.resolution.value=C.mapSize,f.uniforms.radius.value=C.radius,t.setRenderTarget(C.mapPass),t.clear(),t.renderBufferDirect(T,null,O,f,E,null),_.uniforms.shadow_pass.value=C.mapPass.texture,_.uniforms.resolution.value=C.mapSize,_.uniforms.radius.value=C.radius,t.setRenderTarget(C.map),t.clear(),t.renderBufferDirect(T,null,O,_,E,null)}function v(C,T,O,k){let x=null;const I=O.isPointLight===!0?C.customDistanceMaterial:C.customDepthMaterial;if(I!==void 0)x=I;else if(x=O.isPointLight===!0?l:a,t.localClippingEnabled&&T.clipShadows===!0&&Array.isArray(T.clippingPlanes)&&T.clippingPlanes.length!==0||T.displacementMap&&T.displacementScale!==0||T.alphaMap&&T.alphaTest>0||T.map&&T.alphaTest>0){const F=x.uuid,B=T.uuid;let ne=u[F];ne===void 0&&(ne={},u[F]=ne);let L=ne[B];L===void 0&&(L=x.clone(),ne[B]=L),x=L}if(x.visible=T.visible,x.wireframe=T.wireframe,k===Ms?x.side=T.shadowSide!==null?T.shadowSide:T.side:x.side=T.shadowSide!==null?T.shadowSide:h[T.side],x.alphaMap=T.alphaMap,x.alphaTest=T.alphaTest,x.map=T.map,x.clipShadows=T.clipShadows,x.clippingPlanes=T.clippingPlanes,x.clipIntersection=T.clipIntersection,x.displacementMap=T.displacementMap,x.displacementScale=T.displacementScale,x.displacementBias=T.displacementBias,x.wireframeLinewidth=T.wireframeLinewidth,x.linewidth=T.linewidth,O.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const F=t.properties.get(x);F.light=O}return x}function S(C,T,O,k,x){if(C.visible===!1)return;if(C.layers.test(T.layers)&&(C.isMesh||C.isLine||C.isPoints)&&(C.castShadow||C.receiveShadow&&x===Ms)&&(!C.frustumCulled||i.intersectsObject(C))){C.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse,C.matrixWorld);const B=e.update(C),ne=C.material;if(Array.isArray(ne)){const L=B.groups;for(let $=0,H=L.length;$<H;$++){const U=L[$],Q=ne[U.materialIndex];if(Q&&Q.visible){const J=v(C,Q,k,x);C.onBeforeShadow(t,C,T,O,B,J,U),t.renderBufferDirect(O,null,B,J,C,U),C.onAfterShadow(t,C,T,O,B,J,U)}}}else if(ne.visible){const L=v(C,ne,k,x);C.onBeforeShadow(t,C,T,O,B,L,null),t.renderBufferDirect(O,null,B,L,C,null),C.onAfterShadow(t,C,T,O,B,L,null)}}const F=C.children;for(let B=0,ne=F.length;B<ne;B++)S(F[B],T,O,k,x)}}function DMt(t,e,n){const i=n.isWebGL2;function s(){let oe=!1;const Ke=new Wt;let Ue=null;const Oe=new Wt(0,0,0,0);return{setMask:function(Be){Ue!==Be&&!oe&&(t.colorMask(Be,Be,Be,Be),Ue=Be)},setLocked:function(Be){oe=Be},setClear:function(Be,dt,Et,Qt,cn){cn===!0&&(Be*=Qt,dt*=Qt,Et*=Qt),Ke.set(Be,dt,Et,Qt),Oe.equals(Ke)===!1&&(t.clearColor(Be,dt,Et,Qt),Oe.copy(Ke))},reset:function(){oe=!1,Ue=null,Oe.set(-1,0,0,0)}}}function r(){let oe=!1,Ke=null,Ue=null,Oe=null;return{setTest:function(Be){Be?fe(t.DEPTH_TEST):Ne(t.DEPTH_TEST)},setMask:function(Be){Ke!==Be&&!oe&&(t.depthMask(Be),Ke=Be)},setFunc:function(Be){if(Ue!==Be){switch(Be){case Vwt:t.depthFunc(t.NEVER);break;case zwt:t.depthFunc(t.ALWAYS);break;case Hwt:t.depthFunc(t.LESS);break;case _u:t.depthFunc(t.LEQUAL);break;case qwt:t.depthFunc(t.EQUAL);break;case Ywt:t.depthFunc(t.GEQUAL);break;case $wt:t.depthFunc(t.GREATER);break;case Wwt:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}Ue=Be}},setLocked:function(Be){oe=Be},setClear:function(Be){Oe!==Be&&(t.clearDepth(Be),Oe=Be)},reset:function(){oe=!1,Ke=null,Ue=null,Oe=null}}}function o(){let oe=!1,Ke=null,Ue=null,Oe=null,Be=null,dt=null,Et=null,Qt=null,cn=null;return{setTest:function(Ct){oe||(Ct?fe(t.STENCIL_TEST):Ne(t.STENCIL_TEST))},setMask:function(Ct){Ke!==Ct&&!oe&&(t.stencilMask(Ct),Ke=Ct)},setFunc:function(Ct,$t,Sn){(Ue!==Ct||Oe!==$t||Be!==Sn)&&(t.stencilFunc(Ct,$t,Sn),Ue=Ct,Oe=$t,Be=Sn)},setOp:function(Ct,$t,Sn){(dt!==Ct||Et!==$t||Qt!==Sn)&&(t.stencilOp(Ct,$t,Sn),dt=Ct,Et=$t,Qt=Sn)},setLocked:function(Ct){oe=Ct},setClear:function(Ct){cn!==Ct&&(t.clearStencil(Ct),cn=Ct)},reset:function(){oe=!1,Ke=null,Ue=null,Oe=null,Be=null,dt=null,Et=null,Qt=null,cn=null}}}const a=new s,l=new r,u=new o,d=new WeakMap,h=new WeakMap;let f={},_={},m=new WeakMap,E=[],b=null,g=!1,y=null,v=null,S=null,C=null,T=null,O=null,k=null,x=new gt(0,0,0),I=0,F=!1,B=null,ne=null,L=null,$=null,H=null;const U=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let Q=!1,J=0;const j=t.getParameter(t.VERSION);j.indexOf("WebGL")!==-1?(J=parseFloat(/^WebGL (\d)/.exec(j)[1]),Q=J>=1):j.indexOf("OpenGL ES")!==-1&&(J=parseFloat(/^OpenGL ES (\d)/.exec(j)[1]),Q=J>=2);let ae=null,ve={};const ee=t.getParameter(t.SCISSOR_BOX),Ee=t.getParameter(t.VIEWPORT),xe=new Wt().fromArray(ee),Me=new Wt().fromArray(Ee);function Z(oe,Ke,Ue,Oe){const Be=new Uint8Array(4),dt=t.createTexture();t.bindTexture(oe,dt),t.texParameteri(oe,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(oe,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Et=0;Et<Ue;Et++)i&&(oe===t.TEXTURE_3D||oe===t.TEXTURE_2D_ARRAY)?t.texImage3D(Ke,0,t.RGBA,1,1,Oe,0,t.RGBA,t.UNSIGNED_BYTE,Be):t.texImage2D(Ke+Et,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,Be);return dt}const ye={};ye[t.TEXTURE_2D]=Z(t.TEXTURE_2D,t.TEXTURE_2D,1),ye[t.TEXTURE_CUBE_MAP]=Z(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),i&&(ye[t.TEXTURE_2D_ARRAY]=Z(t.TEXTURE_2D_ARRAY,t.TEXTURE_2D_ARRAY,1,1),ye[t.TEXTURE_3D]=Z(t.TEXTURE_3D,t.TEXTURE_3D,1,1)),a.setClear(0,0,0,1),l.setClear(1),u.setClear(0),fe(t.DEPTH_TEST),l.setFunc(_u),Ie(!1),z(zC),fe(t.CULL_FACE),le(Sr);function fe(oe){f[oe]!==!0&&(t.enable(oe),f[oe]=!0)}function Ne(oe){f[oe]!==!1&&(t.disable(oe),f[oe]=!1)}function Le(oe,Ke){return _[oe]!==Ke?(t.bindFramebuffer(oe,Ke),_[oe]=Ke,i&&(oe===t.DRAW_FRAMEBUFFER&&(_[t.FRAMEBUFFER]=Ke),oe===t.FRAMEBUFFER&&(_[t.DRAW_FRAMEBUFFER]=Ke)),!0):!1}function D(oe,Ke){let Ue=E,Oe=!1;if(oe)if(Ue=m.get(Ke),Ue===void 0&&(Ue=[],m.set(Ke,Ue)),oe.isWebGLMultipleRenderTargets){const Be=oe.texture;if(Ue.length!==Be.length||Ue[0]!==t.COLOR_ATTACHMENT0){for(let dt=0,Et=Be.length;dt<Et;dt++)Ue[dt]=t.COLOR_ATTACHMENT0+dt;Ue.length=Be.length,Oe=!0}}else Ue[0]!==t.COLOR_ATTACHMENT0&&(Ue[0]=t.COLOR_ATTACHMENT0,Oe=!0);else Ue[0]!==t.BACK&&(Ue[0]=t.BACK,Oe=!0);Oe&&(n.isWebGL2?t.drawBuffers(Ue):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Ue))}function q(oe){return b!==oe?(t.useProgram(oe),b=oe,!0):!1}const K={[Xr]:t.FUNC_ADD,[wwt]:t.FUNC_SUBTRACT,[Rwt]:t.FUNC_REVERSE_SUBTRACT};if(i)K[$C]=t.MIN,K[WC]=t.MAX;else{const oe=e.get("EXT_blend_minmax");oe!==null&&(K[$C]=oe.MIN_EXT,K[WC]=oe.MAX_EXT)}const de={[Awt]:t.ZERO,[Nwt]:t.ONE,[Owt]:t.SRC_COLOR,[sb]:t.SRC_ALPHA,[Pwt]:t.SRC_ALPHA_SATURATE,[kwt]:t.DST_COLOR,[Mwt]:t.DST_ALPHA,[Iwt]:t.ONE_MINUS_SRC_COLOR,[rb]:t.ONE_MINUS_SRC_ALPHA,[Lwt]:t.ONE_MINUS_DST_COLOR,[Dwt]:t.ONE_MINUS_DST_ALPHA,[Uwt]:t.CONSTANT_COLOR,[Fwt]:t.ONE_MINUS_CONSTANT_COLOR,[Bwt]:t.CONSTANT_ALPHA,[Gwt]:t.ONE_MINUS_CONSTANT_ALPHA};function le(oe,Ke,Ue,Oe,Be,dt,Et,Qt,cn,Ct){if(oe===Sr){g===!0&&(Ne(t.BLEND),g=!1);return}if(g===!1&&(fe(t.BLEND),g=!0),oe!==Cwt){if(oe!==y||Ct!==F){if((v!==Xr||T!==Xr)&&(t.blendEquation(t.FUNC_ADD),v=Xr,T=Xr),Ct)switch(oe){case aa:t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case HC:t.blendFunc(t.ONE,t.ONE);break;case qC:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case YC:t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",oe);break}else switch(oe){case aa:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case HC:t.blendFunc(t.SRC_ALPHA,t.ONE);break;case qC:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case YC:t.blendFunc(t.ZERO,t.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",oe);break}S=null,C=null,O=null,k=null,x.set(0,0,0),I=0,y=oe,F=Ct}return}Be=Be||Ke,dt=dt||Ue,Et=Et||Oe,(Ke!==v||Be!==T)&&(t.blendEquationSeparate(K[Ke],K[Be]),v=Ke,T=Be),(Ue!==S||Oe!==C||dt!==O||Et!==k)&&(t.blendFuncSeparate(de[Ue],de[Oe],de[dt],de[Et]),S=Ue,C=Oe,O=dt,k=Et),(Qt.equals(x)===!1||cn!==I)&&(t.blendColor(Qt.r,Qt.g,Qt.b,cn),x.copy(Qt),I=cn),y=oe,F=!1}function Re(oe,Ke){oe.side===es?Ne(t.CULL_FACE):fe(t.CULL_FACE);let Ue=oe.side===Zn;Ke&&(Ue=!Ue),Ie(Ue),oe.blending===aa&&oe.transparent===!1?le(Sr):le(oe.blending,oe.blendEquation,oe.blendSrc,oe.blendDst,oe.blendEquationAlpha,oe.blendSrcAlpha,oe.blendDstAlpha,oe.blendColor,oe.blendAlpha,oe.premultipliedAlpha),l.setFunc(oe.depthFunc),l.setTest(oe.depthTest),l.setMask(oe.depthWrite),a.setMask(oe.colorWrite);const Oe=oe.stencilWrite;u.setTest(Oe),Oe&&(u.setMask(oe.stencilWriteMask),u.setFunc(oe.stencilFunc,oe.stencilRef,oe.stencilFuncMask),u.setOp(oe.stencilFail,oe.stencilZFail,oe.stencilZPass)),re(oe.polygonOffset,oe.polygonOffsetFactor,oe.polygonOffsetUnits),oe.alphaToCoverage===!0?fe(t.SAMPLE_ALPHA_TO_COVERAGE):Ne(t.SAMPLE_ALPHA_TO_COVERAGE)}function Ie(oe){B!==oe&&(oe?t.frontFace(t.CW):t.frontFace(t.CCW),B=oe)}function z(oe){oe!==Swt?(fe(t.CULL_FACE),oe!==ne&&(oe===zC?t.cullFace(t.BACK):oe===Twt?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):Ne(t.CULL_FACE),ne=oe}function pe(oe){oe!==L&&(Q&&t.lineWidth(oe),L=oe)}function re(oe,Ke,Ue){oe?(fe(t.POLYGON_OFFSET_FILL),($!==Ke||H!==Ue)&&(t.polygonOffset(Ke,Ue),$=Ke,H=Ue)):Ne(t.POLYGON_OFFSET_FILL)}function ce(oe){oe?fe(t.SCISSOR_TEST):Ne(t.SCISSOR_TEST)}function M(oe){oe===void 0&&(oe=t.TEXTURE0+U-1),ae!==oe&&(t.activeTexture(oe),ae=oe)}function N(oe,Ke,Ue){Ue===void 0&&(ae===null?Ue=t.TEXTURE0+U-1:Ue=ae);let Oe=ve[Ue];Oe===void 0&&(Oe={type:void 0,texture:void 0},ve[Ue]=Oe),(Oe.type!==oe||Oe.texture!==Ke)&&(ae!==Ue&&(t.activeTexture(Ue),ae=Ue),t.bindTexture(oe,Ke||ye[oe]),Oe.type=oe,Oe.texture=Ke)}function W(){const oe=ve[ae];oe!==void 0&&oe.type!==void 0&&(t.bindTexture(oe.type,null),oe.type=void 0,oe.texture=void 0)}function ue(){try{t.compressedTexImage2D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function X(){try{t.compressedTexImage3D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function ie(){try{t.texSubImage2D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function Ae(){try{t.texSubImage3D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function Ce(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function ke(){try{t.compressedTexSubImage3D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function Qe(){try{t.texStorage2D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function ct(){try{t.texStorage3D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function Pe(){try{t.texImage2D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function ut(){try{t.texImage3D.apply(t,arguments)}catch(oe){console.error("THREE.WebGLState:",oe)}}function Je(oe){xe.equals(oe)===!1&&(t.scissor(oe.x,oe.y,oe.z,oe.w),xe.copy(oe))}function qe(oe){Me.equals(oe)===!1&&(t.viewport(oe.x,oe.y,oe.z,oe.w),Me.copy(oe))}function tt(oe,Ke){let Ue=h.get(Ke);Ue===void 0&&(Ue=new WeakMap,h.set(Ke,Ue));let Oe=Ue.get(oe);Oe===void 0&&(Oe=t.getUniformBlockIndex(Ke,oe.name),Ue.set(oe,Oe))}function Fe(oe,Ke){const Oe=h.get(Ke).get(oe);d.get(Ke)!==Oe&&(t.uniformBlockBinding(Ke,Oe,oe.__bindingPointIndex),d.set(Ke,Oe))}function pt(){t.disable(t.BLEND),t.disable(t.CULL_FACE),t.disable(t.DEPTH_TEST),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.SAMPLE_ALPHA_TO_COVERAGE),t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ZERO),t.blendFuncSeparate(t.ONE,t.ZERO,t.ONE,t.ZERO),t.blendColor(0,0,0,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(t.LESS),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(t.ALWAYS,0,4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP),t.clearStencil(0),t.cullFace(t.BACK),t.frontFace(t.CCW),t.polygonOffset(0,0),t.activeTexture(t.TEXTURE0),t.bindFramebuffer(t.FRAMEBUFFER,null),i===!0&&(t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),t.bindFramebuffer(t.READ_FRAMEBUFFER,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),f={},ae=null,ve={},_={},m=new WeakMap,E=[],b=null,g=!1,y=null,v=null,S=null,C=null,T=null,O=null,k=null,x=new gt(0,0,0),I=0,F=!1,B=null,ne=null,L=null,$=null,H=null,xe.set(0,0,t.canvas.width,t.canvas.height),Me.set(0,0,t.canvas.width,t.canvas.height),a.reset(),l.reset(),u.reset()}return{buffers:{color:a,depth:l,stencil:u},enable:fe,disable:Ne,bindFramebuffer:Le,drawBuffers:D,useProgram:q,setBlending:le,setMaterial:Re,setFlipSided:Ie,setCullFace:z,setLineWidth:pe,setPolygonOffset:re,setScissorTest:ce,activeTexture:M,bindTexture:N,unbindTexture:W,compressedTexImage2D:ue,compressedTexImage3D:X,texImage2D:Pe,texImage3D:ut,updateUBOMapping:tt,uniformBlockBinding:Fe,texStorage2D:Qe,texStorage3D:ct,texSubImage2D:ie,texSubImage3D:Ae,compressedTexSubImage2D:Ce,compressedTexSubImage3D:ke,scissor:Je,viewport:qe,reset:pt}}function kMt(t,e,n,i,s,r,o){const a=s.isWebGL2,l=s.maxTextures,u=s.maxCubemapSize,d=s.maxTextureSize,h=s.maxSamples,f=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,_=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let E;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(M,N){return g?new OffscreenCanvas(M,N):ac("canvas")}function v(M,N,W,ue){let X=1;if((M.width>ue||M.height>ue)&&(X=ue/Math.max(M.width,M.height)),X<1||N===!0)if(typeof HTMLImageElement<"u"&&M instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&M instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&M instanceof ImageBitmap){const ie=N?Eu:Math.floor,Ae=ie(X*M.width),Ce=ie(X*M.height);E===void 0&&(E=y(Ae,Ce));const ke=W?y(Ae,Ce):E;return ke.width=Ae,ke.height=Ce,ke.getContext("2d").drawImage(M,0,0,Ae,Ce),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+M.width+"x"+M.height+") to ("+Ae+"x"+Ce+")."),ke}else return"data"in M&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+M.width+"x"+M.height+")."),M;return M}function S(M){return pb(M.width)&&pb(M.height)}function C(M){return a?!1:M.wrapS!==mi||M.wrapT!==mi||M.minFilter!==yn&&M.minFilter!==jn}function T(M,N){return M.generateMipmaps&&N&&M.minFilter!==yn&&M.minFilter!==jn}function O(M){t.generateMipmap(M)}function k(M,N,W,ue,X=!1){if(a===!1)return N;if(M!==null){if(t[M]!==void 0)return t[M];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+M+"'")}let ie=N;if(N===t.RED&&(W===t.FLOAT&&(ie=t.R32F),W===t.HALF_FLOAT&&(ie=t.R16F),W===t.UNSIGNED_BYTE&&(ie=t.R8)),N===t.RED_INTEGER&&(W===t.UNSIGNED_BYTE&&(ie=t.R8UI),W===t.UNSIGNED_SHORT&&(ie=t.R16UI),W===t.UNSIGNED_INT&&(ie=t.R32UI),W===t.BYTE&&(ie=t.R8I),W===t.SHORT&&(ie=t.R16I),W===t.INT&&(ie=t.R32I)),N===t.RG&&(W===t.FLOAT&&(ie=t.RG32F),W===t.HALF_FLOAT&&(ie=t.RG16F),W===t.UNSIGNED_BYTE&&(ie=t.RG8)),N===t.RGBA){const Ae=X?fu:Gt.getTransfer(ue);W===t.FLOAT&&(ie=t.RGBA32F),W===t.HALF_FLOAT&&(ie=t.RGBA16F),W===t.UNSIGNED_BYTE&&(ie=Ae===Zt?t.SRGB8_ALPHA8:t.RGBA8),W===t.UNSIGNED_SHORT_4_4_4_4&&(ie=t.RGBA4),W===t.UNSIGNED_SHORT_5_5_5_1&&(ie=t.RGB5_A1)}return(ie===t.R16F||ie===t.R32F||ie===t.RG16F||ie===t.RG32F||ie===t.RGBA16F||ie===t.RGBA32F)&&e.get("EXT_color_buffer_float"),ie}function x(M,N,W){return T(M,W)===!0||M.isFramebufferTexture&&M.minFilter!==yn&&M.minFilter!==jn?Math.log2(Math.max(N.width,N.height))+1:M.mipmaps!==void 0&&M.mipmaps.length>0?M.mipmaps.length:M.isCompressedTexture&&Array.isArray(M.image)?N.mipmaps.length:1}function I(M){return M===yn||M===lb||M===Bd?t.NEAREST:t.LINEAR}function F(M){const N=M.target;N.removeEventListener("dispose",F),ne(N),N.isVideoTexture&&m.delete(N)}function B(M){const N=M.target;N.removeEventListener("dispose",B),$(N)}function ne(M){const N=i.get(M);if(N.__webglInit===void 0)return;const W=M.source,ue=b.get(W);if(ue){const X=ue[N.__cacheKey];X.usedTimes--,X.usedTimes===0&&L(M),Object.keys(ue).length===0&&b.delete(W)}i.remove(M)}function L(M){const N=i.get(M);t.deleteTexture(N.__webglTexture);const W=M.source,ue=b.get(W);delete ue[N.__cacheKey],o.memory.textures--}function $(M){const N=M.texture,W=i.get(M),ue=i.get(N);if(ue.__webglTexture!==void 0&&(t.deleteTexture(ue.__webglTexture),o.memory.textures--),M.depthTexture&&M.depthTexture.dispose(),M.isWebGLCubeRenderTarget)for(let X=0;X<6;X++){if(Array.isArray(W.__webglFramebuffer[X]))for(let ie=0;ie<W.__webglFramebuffer[X].length;ie++)t.deleteFramebuffer(W.__webglFramebuffer[X][ie]);else t.deleteFramebuffer(W.__webglFramebuffer[X]);W.__webglDepthbuffer&&t.deleteRenderbuffer(W.__webglDepthbuffer[X])}else{if(Array.isArray(W.__webglFramebuffer))for(let X=0;X<W.__webglFramebuffer.length;X++)t.deleteFramebuffer(W.__webglFramebuffer[X]);else t.deleteFramebuffer(W.__webglFramebuffer);if(W.__webglDepthbuffer&&t.deleteRenderbuffer(W.__webglDepthbuffer),W.__webglMultisampledFramebuffer&&t.deleteFramebuffer(W.__webglMultisampledFramebuffer),W.__webglColorRenderbuffer)for(let X=0;X<W.__webglColorRenderbuffer.length;X++)W.__webglColorRenderbuffer[X]&&t.deleteRenderbuffer(W.__webglColorRenderbuffer[X]);W.__webglDepthRenderbuffer&&t.deleteRenderbuffer(W.__webglDepthRenderbuffer)}if(M.isWebGLMultipleRenderTargets)for(let X=0,ie=N.length;X<ie;X++){const Ae=i.get(N[X]);Ae.__webglTexture&&(t.deleteTexture(Ae.__webglTexture),o.memory.textures--),i.remove(N[X])}i.remove(N),i.remove(M)}let H=0;function U(){H=0}function Q(){const M=H;return M>=l&&console.warn("THREE.WebGLTextures: Trying to use "+M+" texture units while this GPU supports only "+l),H+=1,M}function J(M){const N=[];return N.push(M.wrapS),N.push(M.wrapT),N.push(M.wrapR||0),N.push(M.magFilter),N.push(M.minFilter),N.push(M.anisotropy),N.push(M.internalFormat),N.push(M.format),N.push(M.type),N.push(M.generateMipmaps),N.push(M.premultiplyAlpha),N.push(M.flipY),N.push(M.unpackAlignment),N.push(M.colorSpace),N.join()}function j(M,N){const W=i.get(M);if(M.isVideoTexture&&re(M),M.isRenderTargetTexture===!1&&M.version>0&&W.__version!==M.version){const ue=M.image;if(ue===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ue.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{fe(W,M,N);return}}n.bindTexture(t.TEXTURE_2D,W.__webglTexture,t.TEXTURE0+N)}function ae(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){fe(W,M,N);return}n.bindTexture(t.TEXTURE_2D_ARRAY,W.__webglTexture,t.TEXTURE0+N)}function ve(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){fe(W,M,N);return}n.bindTexture(t.TEXTURE_3D,W.__webglTexture,t.TEXTURE0+N)}function ee(M,N){const W=i.get(M);if(M.version>0&&W.__version!==M.version){Ne(W,M,N);return}n.bindTexture(t.TEXTURE_CUBE_MAP,W.__webglTexture,t.TEXTURE0+N)}const Ee={[Ca]:t.REPEAT,[mi]:t.CLAMP_TO_EDGE,[hu]:t.MIRRORED_REPEAT},xe={[yn]:t.NEAREST,[lb]:t.NEAREST_MIPMAP_NEAREST,[Bd]:t.NEAREST_MIPMAP_LINEAR,[jn]:t.LINEAR,[YO]:t.LINEAR_MIPMAP_NEAREST,[fo]:t.LINEAR_MIPMAP_LINEAR},Me={[fRt]:t.NEVER,[vRt]:t.ALWAYS,[mRt]:t.LESS,[tI]:t.LEQUAL,[gRt]:t.EQUAL,[yRt]:t.GEQUAL,[bRt]:t.GREATER,[ERt]:t.NOTEQUAL};function Z(M,N,W){if(W?(t.texParameteri(M,t.TEXTURE_WRAP_S,Ee[N.wrapS]),t.texParameteri(M,t.TEXTURE_WRAP_T,Ee[N.wrapT]),(M===t.TEXTURE_3D||M===t.TEXTURE_2D_ARRAY)&&t.texParameteri(M,t.TEXTURE_WRAP_R,Ee[N.wrapR]),t.texParameteri(M,t.TEXTURE_MAG_FILTER,xe[N.magFilter]),t.texParameteri(M,t.TEXTURE_MIN_FILTER,xe[N.minFilter])):(t.texParameteri(M,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(M,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(M===t.TEXTURE_3D||M===t.TEXTURE_2D_ARRAY)&&t.texParameteri(M,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),(N.wrapS!==mi||N.wrapT!==mi)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(M,t.TEXTURE_MAG_FILTER,I(N.magFilter)),t.texParameteri(M,t.TEXTURE_MIN_FILTER,I(N.minFilter)),N.minFilter!==yn&&N.minFilter!==jn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(t.texParameteri(M,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(M,t.TEXTURE_COMPARE_FUNC,Me[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ue=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===yn||N.minFilter!==Bd&&N.minFilter!==fo||N.type===Ps&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===rc&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||i.get(N).__currentAnisotropy)&&(t.texParameterf(M,ue.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,s.getMaxAnisotropy())),i.get(N).__currentAnisotropy=N.anisotropy)}}function ye(M,N){let W=!1;M.__webglInit===void 0&&(M.__webglInit=!0,N.addEventListener("dispose",F));const ue=N.source;let X=b.get(ue);X===void 0&&(X={},b.set(ue,X));const ie=J(N);if(ie!==M.__cacheKey){X[ie]===void 0&&(X[ie]={texture:t.createTexture(),usedTimes:0},o.memory.textures++,W=!0),X[ie].usedTimes++;const Ae=X[M.__cacheKey];Ae!==void 0&&(X[M.__cacheKey].usedTimes--,Ae.usedTimes===0&&L(N)),M.__cacheKey=ie,M.__webglTexture=X[ie].texture}return W}function fe(M,N,W){let ue=t.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(ue=t.TEXTURE_2D_ARRAY),N.isData3DTexture&&(ue=t.TEXTURE_3D);const X=ye(M,N),ie=N.source;n.bindTexture(ue,M.__webglTexture,t.TEXTURE0+W);const Ae=i.get(ie);if(ie.version!==Ae.__version||X===!0){n.activeTexture(t.TEXTURE0+W);const Ce=Gt.getPrimaries(Gt.workingColorSpace),ke=N.colorSpace===bi?null:Gt.getPrimaries(N.colorSpace),Qe=N.colorSpace===bi||Ce===ke?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,N.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,N.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Qe);const ct=C(N)&&S(N.image)===!1;let Pe=v(N.image,ct,!1,d);Pe=ce(N,Pe);const ut=S(Pe)||a,Je=r.convert(N.format,N.colorSpace);let qe=r.convert(N.type),tt=k(N.internalFormat,Je,qe,N.colorSpace,N.isVideoTexture);Z(ue,N,ut);let Fe;const pt=N.mipmaps,oe=a&&N.isVideoTexture!==!0&&tt!==ZO,Ke=Ae.__version===void 0||X===!0,Ue=x(N,Pe,ut);if(N.isDepthTexture)tt=t.DEPTH_COMPONENT,a?N.type===Ps?tt=t.DEPTH_COMPONENT32F:N.type===br?tt=t.DEPTH_COMPONENT24:N.type===oo?tt=t.DEPTH24_STENCIL8:tt=t.DEPTH_COMPONENT16:N.type===Ps&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===ao&&tt===t.DEPTH_COMPONENT&&N.type!==QE&&N.type!==br&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=br,qe=r.convert(N.type)),N.format===wa&&tt===t.DEPTH_COMPONENT&&(tt=t.DEPTH_STENCIL,N.type!==oo&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=oo,qe=r.convert(N.type))),Ke&&(oe?n.texStorage2D(t.TEXTURE_2D,1,tt,Pe.width,Pe.height):n.texImage2D(t.TEXTURE_2D,0,tt,Pe.width,Pe.height,0,Je,qe,null));else if(N.isDataTexture)if(pt.length>0&&ut){oe&&Ke&&n.texStorage2D(t.TEXTURE_2D,Ue,tt,pt[0].width,pt[0].height);for(let Oe=0,Be=pt.length;Oe<Be;Oe++)Fe=pt[Oe],oe?n.texSubImage2D(t.TEXTURE_2D,Oe,0,0,Fe.width,Fe.height,Je,qe,Fe.data):n.texImage2D(t.TEXTURE_2D,Oe,tt,Fe.width,Fe.height,0,Je,qe,Fe.data);N.generateMipmaps=!1}else oe?(Ke&&n.texStorage2D(t.TEXTURE_2D,Ue,tt,Pe.width,Pe.height),n.texSubImage2D(t.TEXTURE_2D,0,0,0,Pe.width,Pe.height,Je,qe,Pe.data)):n.texImage2D(t.TEXTURE_2D,0,tt,Pe.width,Pe.height,0,Je,qe,Pe.data);else if(N.isCompressedTexture)if(N.isCompressedArrayTexture){oe&&Ke&&n.texStorage3D(t.TEXTURE_2D_ARRAY,Ue,tt,pt[0].width,pt[0].height,Pe.depth);for(let Oe=0,Be=pt.length;Oe<Be;Oe++)Fe=pt[Oe],N.format!==gi?Je!==null?oe?n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,Oe,0,0,0,Fe.width,Fe.height,Pe.depth,Je,Fe.data,0,0):n.compressedTexImage3D(t.TEXTURE_2D_ARRAY,Oe,tt,Fe.width,Fe.height,Pe.depth,0,Fe.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):oe?n.texSubImage3D(t.TEXTURE_2D_ARRAY,Oe,0,0,0,Fe.width,Fe.height,Pe.depth,Je,qe,Fe.data):n.texImage3D(t.TEXTURE_2D_ARRAY,Oe,tt,Fe.width,Fe.height,Pe.depth,0,Je,qe,Fe.data)}else{oe&&Ke&&n.texStorage2D(t.TEXTURE_2D,Ue,tt,pt[0].width,pt[0].height);for(let Oe=0,Be=pt.length;Oe<Be;Oe++)Fe=pt[Oe],N.format!==gi?Je!==null?oe?n.compressedTexSubImage2D(t.TEXTURE_2D,Oe,0,0,Fe.width,Fe.height,Je,Fe.data):n.compressedTexImage2D(t.TEXTURE_2D,Oe,tt,Fe.width,Fe.height,0,Fe.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):oe?n.texSubImage2D(t.TEXTURE_2D,Oe,0,0,Fe.width,Fe.height,Je,qe,Fe.data):n.texImage2D(t.TEXTURE_2D,Oe,tt,Fe.width,Fe.height,0,Je,qe,Fe.data)}else if(N.isDataArrayTexture)oe?(Ke&&n.texStorage3D(t.TEXTURE_2D_ARRAY,Ue,tt,Pe.width,Pe.height,Pe.depth),n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,0,Pe.width,Pe.height,Pe.depth,Je,qe,Pe.data)):n.texImage3D(t.TEXTURE_2D_ARRAY,0,tt,Pe.width,Pe.height,Pe.depth,0,Je,qe,Pe.data);else if(N.isData3DTexture)oe?(Ke&&n.texStorage3D(t.TEXTURE_3D,Ue,tt,Pe.width,Pe.height,Pe.depth),n.texSubImage3D(t.TEXTURE_3D,0,0,0,0,Pe.width,Pe.height,Pe.depth,Je,qe,Pe.data)):n.texImage3D(t.TEXTURE_3D,0,tt,Pe.width,Pe.height,Pe.depth,0,Je,qe,Pe.data);else if(N.isFramebufferTexture){if(Ke)if(oe)n.texStorage2D(t.TEXTURE_2D,Ue,tt,Pe.width,Pe.height);else{let Oe=Pe.width,Be=Pe.height;for(let dt=0;dt<Ue;dt++)n.texImage2D(t.TEXTURE_2D,dt,tt,Oe,Be,0,Je,qe,null),Oe>>=1,Be>>=1}}else if(pt.length>0&&ut){oe&&Ke&&n.texStorage2D(t.TEXTURE_2D,Ue,tt,pt[0].width,pt[0].height);for(let Oe=0,Be=pt.length;Oe<Be;Oe++)Fe=pt[Oe],oe?n.texSubImage2D(t.TEXTURE_2D,Oe,0,0,Je,qe,Fe):n.texImage2D(t.TEXTURE_2D,Oe,tt,Je,qe,Fe);N.generateMipmaps=!1}else oe?(Ke&&n.texStorage2D(t.TEXTURE_2D,Ue,tt,Pe.width,Pe.height),n.texSubImage2D(t.TEXTURE_2D,0,0,0,Je,qe,Pe)):n.texImage2D(t.TEXTURE_2D,0,tt,Je,qe,Pe);T(N,ut)&&O(ue),Ae.__version=ie.version,N.onUpdate&&N.onUpdate(N)}M.__version=N.version}function Ne(M,N,W){if(N.image.length!==6)return;const ue=ye(M,N),X=N.source;n.bindTexture(t.TEXTURE_CUBE_MAP,M.__webglTexture,t.TEXTURE0+W);const ie=i.get(X);if(X.version!==ie.__version||ue===!0){n.activeTexture(t.TEXTURE0+W);const Ae=Gt.getPrimaries(Gt.workingColorSpace),Ce=N.colorSpace===bi?null:Gt.getPrimaries(N.colorSpace),ke=N.colorSpace===bi||Ae===Ce?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,N.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,N.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,ke);const Qe=N.isCompressedTexture||N.image[0].isCompressedTexture,ct=N.image[0]&&N.image[0].isDataTexture,Pe=[];for(let Oe=0;Oe<6;Oe++)!Qe&&!ct?Pe[Oe]=v(N.image[Oe],!1,!0,u):Pe[Oe]=ct?N.image[Oe].image:N.image[Oe],Pe[Oe]=ce(N,Pe[Oe]);const ut=Pe[0],Je=S(ut)||a,qe=r.convert(N.format,N.colorSpace),tt=r.convert(N.type),Fe=k(N.internalFormat,qe,tt,N.colorSpace),pt=a&&N.isVideoTexture!==!0,oe=ie.__version===void 0||ue===!0;let Ke=x(N,ut,Je);Z(t.TEXTURE_CUBE_MAP,N,Je);let Ue;if(Qe){pt&&oe&&n.texStorage2D(t.TEXTURE_CUBE_MAP,Ke,Fe,ut.width,ut.height);for(let Oe=0;Oe<6;Oe++){Ue=Pe[Oe].mipmaps;for(let Be=0;Be<Ue.length;Be++){const dt=Ue[Be];N.format!==gi?qe!==null?pt?n.compressedTexSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be,0,0,dt.width,dt.height,qe,dt.data):n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be,Fe,dt.width,dt.height,0,dt.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):pt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be,0,0,dt.width,dt.height,qe,tt,dt.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be,Fe,dt.width,dt.height,0,qe,tt,dt.data)}}}else{Ue=N.mipmaps,pt&&oe&&(Ue.length>0&&Ke++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Ke,Fe,Pe[0].width,Pe[0].height));for(let Oe=0;Oe<6;Oe++)if(ct){pt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,Pe[Oe].width,Pe[Oe].height,qe,tt,Pe[Oe].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,Fe,Pe[Oe].width,Pe[Oe].height,0,qe,tt,Pe[Oe].data);for(let Be=0;Be<Ue.length;Be++){const Et=Ue[Be].image[Oe].image;pt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be+1,0,0,Et.width,Et.height,qe,tt,Et.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be+1,Fe,Et.width,Et.height,0,qe,tt,Et.data)}}else{pt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,qe,tt,Pe[Oe]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,Fe,qe,tt,Pe[Oe]);for(let Be=0;Be<Ue.length;Be++){const dt=Ue[Be];pt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be+1,0,0,qe,tt,dt.image[Oe]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,Be+1,Fe,qe,tt,dt.image[Oe])}}}T(N,Je)&&O(t.TEXTURE_CUBE_MAP),ie.__version=X.version,N.onUpdate&&N.onUpdate(N)}M.__version=N.version}function Le(M,N,W,ue,X,ie){const Ae=r.convert(W.format,W.colorSpace),Ce=r.convert(W.type),ke=k(W.internalFormat,Ae,Ce,W.colorSpace);if(!i.get(N).__hasExternalTextures){const ct=Math.max(1,N.width>>ie),Pe=Math.max(1,N.height>>ie);X===t.TEXTURE_3D||X===t.TEXTURE_2D_ARRAY?n.texImage3D(X,ie,ke,ct,Pe,N.depth,0,Ae,Ce,null):n.texImage2D(X,ie,ke,ct,Pe,0,Ae,Ce,null)}n.bindFramebuffer(t.FRAMEBUFFER,M),pe(N)?f.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,ue,X,i.get(W).__webglTexture,0,z(N)):(X===t.TEXTURE_2D||X>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&X<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,ue,X,i.get(W).__webglTexture,ie),n.bindFramebuffer(t.FRAMEBUFFER,null)}function D(M,N,W){if(t.bindRenderbuffer(t.RENDERBUFFER,M),N.depthBuffer&&!N.stencilBuffer){let ue=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(W||pe(N)){const X=N.depthTexture;X&&X.isDepthTexture&&(X.type===Ps?ue=t.DEPTH_COMPONENT32F:X.type===br&&(ue=t.DEPTH_COMPONENT24));const ie=z(N);pe(N)?f.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ie,ue,N.width,N.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,ie,ue,N.width,N.height)}else t.renderbufferStorage(t.RENDERBUFFER,ue,N.width,N.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,M)}else if(N.depthBuffer&&N.stencilBuffer){const ue=z(N);W&&pe(N)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,ue,t.DEPTH24_STENCIL8,N.width,N.height):pe(N)?f.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ue,t.DEPTH24_STENCIL8,N.width,N.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,N.width,N.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,M)}else{const ue=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let X=0;X<ue.length;X++){const ie=ue[X],Ae=r.convert(ie.format,ie.colorSpace),Ce=r.convert(ie.type),ke=k(ie.internalFormat,Ae,Ce,ie.colorSpace),Qe=z(N);W&&pe(N)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,Qe,ke,N.width,N.height):pe(N)?f.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Qe,ke,N.width,N.height):t.renderbufferStorage(t.RENDERBUFFER,ke,N.width,N.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}function q(M,N){if(N&&N.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(t.FRAMEBUFFER,M),!(N.depthTexture&&N.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!i.get(N.depthTexture).__webglTexture||N.depthTexture.image.width!==N.width||N.depthTexture.image.height!==N.height)&&(N.depthTexture.image.width=N.width,N.depthTexture.image.height=N.height,N.depthTexture.needsUpdate=!0),j(N.depthTexture,0);const ue=i.get(N.depthTexture).__webglTexture,X=z(N);if(N.depthTexture.format===ao)pe(N)?f.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,ue,0,X):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,ue,0);else if(N.depthTexture.format===wa)pe(N)?f.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,ue,0,X):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,ue,0);else throw new Error("Unknown depthTexture format")}function K(M){const N=i.get(M),W=M.isWebGLCubeRenderTarget===!0;if(M.depthTexture&&!N.__autoAllocateDepthBuffer){if(W)throw new Error("target.depthTexture not supported in Cube render targets");q(N.__webglFramebuffer,M)}else if(W){N.__webglDepthbuffer=[];for(let ue=0;ue<6;ue++)n.bindFramebuffer(t.FRAMEBUFFER,N.__webglFramebuffer[ue]),N.__webglDepthbuffer[ue]=t.createRenderbuffer(),D(N.__webglDepthbuffer[ue],M,!1)}else n.bindFramebuffer(t.FRAMEBUFFER,N.__webglFramebuffer),N.__webglDepthbuffer=t.createRenderbuffer(),D(N.__webglDepthbuffer,M,!1);n.bindFramebuffer(t.FRAMEBUFFER,null)}function de(M,N,W){const ue=i.get(M);N!==void 0&&Le(ue.__webglFramebuffer,M,M.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),W!==void 0&&K(M)}function le(M){const N=M.texture,W=i.get(M),ue=i.get(N);M.addEventListener("dispose",B),M.isWebGLMultipleRenderTargets!==!0&&(ue.__webglTexture===void 0&&(ue.__webglTexture=t.createTexture()),ue.__version=N.version,o.memory.textures++);const X=M.isWebGLCubeRenderTarget===!0,ie=M.isWebGLMultipleRenderTargets===!0,Ae=S(M)||a;if(X){W.__webglFramebuffer=[];for(let Ce=0;Ce<6;Ce++)if(a&&N.mipmaps&&N.mipmaps.length>0){W.__webglFramebuffer[Ce]=[];for(let ke=0;ke<N.mipmaps.length;ke++)W.__webglFramebuffer[Ce][ke]=t.createFramebuffer()}else W.__webglFramebuffer[Ce]=t.createFramebuffer()}else{if(a&&N.mipmaps&&N.mipmaps.length>0){W.__webglFramebuffer=[];for(let Ce=0;Ce<N.mipmaps.length;Ce++)W.__webglFramebuffer[Ce]=t.createFramebuffer()}else W.__webglFramebuffer=t.createFramebuffer();if(ie)if(s.drawBuffers){const Ce=M.texture;for(let ke=0,Qe=Ce.length;ke<Qe;ke++){const ct=i.get(Ce[ke]);ct.__webglTexture===void 0&&(ct.__webglTexture=t.createTexture(),o.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(a&&M.samples>0&&pe(M)===!1){const Ce=ie?N:[N];W.__webglMultisampledFramebuffer=t.createFramebuffer(),W.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,W.__webglMultisampledFramebuffer);for(let ke=0;ke<Ce.length;ke++){const Qe=Ce[ke];W.__webglColorRenderbuffer[ke]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,W.__webglColorRenderbuffer[ke]);const ct=r.convert(Qe.format,Qe.colorSpace),Pe=r.convert(Qe.type),ut=k(Qe.internalFormat,ct,Pe,Qe.colorSpace,M.isXRRenderTarget===!0),Je=z(M);t.renderbufferStorageMultisample(t.RENDERBUFFER,Je,ut,M.width,M.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+ke,t.RENDERBUFFER,W.__webglColorRenderbuffer[ke])}t.bindRenderbuffer(t.RENDERBUFFER,null),M.depthBuffer&&(W.__webglDepthRenderbuffer=t.createRenderbuffer(),D(W.__webglDepthRenderbuffer,M,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(X){n.bindTexture(t.TEXTURE_CUBE_MAP,ue.__webglTexture),Z(t.TEXTURE_CUBE_MAP,N,Ae);for(let Ce=0;Ce<6;Ce++)if(a&&N.mipmaps&&N.mipmaps.length>0)for(let ke=0;ke<N.mipmaps.length;ke++)Le(W.__webglFramebuffer[Ce][ke],M,N,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,ke);else Le(W.__webglFramebuffer[Ce],M,N,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+Ce,0);T(N,Ae)&&O(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(ie){const Ce=M.texture;for(let ke=0,Qe=Ce.length;ke<Qe;ke++){const ct=Ce[ke],Pe=i.get(ct);n.bindTexture(t.TEXTURE_2D,Pe.__webglTexture),Z(t.TEXTURE_2D,ct,Ae),Le(W.__webglFramebuffer,M,ct,t.COLOR_ATTACHMENT0+ke,t.TEXTURE_2D,0),T(ct,Ae)&&O(t.TEXTURE_2D)}n.unbindTexture()}else{let Ce=t.TEXTURE_2D;if((M.isWebGL3DRenderTarget||M.isWebGLArrayRenderTarget)&&(a?Ce=M.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(Ce,ue.__webglTexture),Z(Ce,N,Ae),a&&N.mipmaps&&N.mipmaps.length>0)for(let ke=0;ke<N.mipmaps.length;ke++)Le(W.__webglFramebuffer[ke],M,N,t.COLOR_ATTACHMENT0,Ce,ke);else Le(W.__webglFramebuffer,M,N,t.COLOR_ATTACHMENT0,Ce,0);T(N,Ae)&&O(Ce),n.unbindTexture()}M.depthBuffer&&K(M)}function Re(M){const N=S(M)||a,W=M.isWebGLMultipleRenderTargets===!0?M.texture:[M.texture];for(let ue=0,X=W.length;ue<X;ue++){const ie=W[ue];if(T(ie,N)){const Ae=M.isWebGLCubeRenderTarget?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,Ce=i.get(ie).__webglTexture;n.bindTexture(Ae,Ce),O(Ae),n.unbindTexture()}}}function Ie(M){if(a&&M.samples>0&&pe(M)===!1){const N=M.isWebGLMultipleRenderTargets?M.texture:[M.texture],W=M.width,ue=M.height;let X=t.COLOR_BUFFER_BIT;const ie=[],Ae=M.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,Ce=i.get(M),ke=M.isWebGLMultipleRenderTargets===!0;if(ke)for(let Qe=0;Qe<N.length;Qe++)n.bindFramebuffer(t.FRAMEBUFFER,Ce.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,Ce.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,Ce.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,Ce.__webglFramebuffer);for(let Qe=0;Qe<N.length;Qe++){ie.push(t.COLOR_ATTACHMENT0+Qe),M.depthBuffer&&ie.push(Ae);const ct=Ce.__ignoreDepthValues!==void 0?Ce.__ignoreDepthValues:!1;if(ct===!1&&(M.depthBuffer&&(X|=t.DEPTH_BUFFER_BIT),M.stencilBuffer&&(X|=t.STENCIL_BUFFER_BIT)),ke&&t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,Ce.__webglColorRenderbuffer[Qe]),ct===!0&&(t.invalidateFramebuffer(t.READ_FRAMEBUFFER,[Ae]),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[Ae])),ke){const Pe=i.get(N[Qe]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,Pe,0)}t.blitFramebuffer(0,0,W,ue,0,0,W,ue,X,t.NEAREST),_&&t.invalidateFramebuffer(t.READ_FRAMEBUFFER,ie)}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),ke)for(let Qe=0;Qe<N.length;Qe++){n.bindFramebuffer(t.FRAMEBUFFER,Ce.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.RENDERBUFFER,Ce.__webglColorRenderbuffer[Qe]);const ct=i.get(N[Qe]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,Ce.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Qe,t.TEXTURE_2D,ct,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,Ce.__webglMultisampledFramebuffer)}}function z(M){return Math.min(h,M.samples)}function pe(M){const N=i.get(M);return a&&M.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function re(M){const N=o.render.frame;m.get(M)!==N&&(m.set(M,N),M.update())}function ce(M,N){const W=M.colorSpace,ue=M.format,X=M.type;return M.isCompressedTexture===!0||M.isVideoTexture===!0||M.format===ub||W!==On&&W!==bi&&(Gt.getTransfer(W)===Zt?a===!1?e.has("EXT_sRGB")===!0&&ue===gi?(M.format=ub,M.minFilter=jn,M.generateMipmaps=!1):N=iI.sRGBToLinear(N):(ue!==gi||X!==xr)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",W)),N}this.allocateTextureUnit=Q,this.resetTextureUnits=U,this.setTexture2D=j,this.setTexture2DArray=ae,this.setTexture3D=ve,this.setTextureCube=ee,this.rebindTextures=de,this.setupRenderTarget=le,this.updateRenderTargetMipmap=Re,this.updateMultisampleRenderTarget=Ie,this.setupDepthRenderbuffer=K,this.setupFrameBufferTexture=Le,this.useMultisampledRTT=pe}function LMt(t,e,n){const i=n.isWebGL2;function s(r,o=bi){let a;const l=Gt.getTransfer(o);if(r===xr)return t.UNSIGNED_BYTE;if(r===WO)return t.UNSIGNED_SHORT_4_4_4_4;if(r===KO)return t.UNSIGNED_SHORT_5_5_5_1;if(r===nRt)return t.BYTE;if(r===iRt)return t.SHORT;if(r===QE)return t.UNSIGNED_SHORT;if(r===$O)return t.INT;if(r===br)return t.UNSIGNED_INT;if(r===Ps)return t.FLOAT;if(r===rc)return i?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===sRt)return t.ALPHA;if(r===gi)return t.RGBA;if(r===rRt)return t.LUMINANCE;if(r===oRt)return t.LUMINANCE_ALPHA;if(r===ao)return t.DEPTH_COMPONENT;if(r===wa)return t.DEPTH_STENCIL;if(r===ub)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===aRt)return t.RED;if(r===jO)return t.RED_INTEGER;if(r===lRt)return t.RG;if(r===QO)return t.RG_INTEGER;if(r===XO)return t.RGBA_INTEGER;if(r===Pm||r===Um||r===Fm||r===Bm)if(l===Zt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Pm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===Um)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===Fm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Bm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Pm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===Um)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===Fm)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Bm)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===jC||r===QC||r===XC||r===ZC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===jC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===QC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===XC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===ZC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===ZO)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===JC||r===e1)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===JC)return l===Zt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===e1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===t1||r===n1||r===i1||r===s1||r===r1||r===o1||r===a1||r===l1||r===c1||r===d1||r===u1||r===p1||r===_1||r===h1)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===t1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===n1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===i1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===s1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===r1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===o1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===a1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===l1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===c1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===d1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===u1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===p1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===_1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===h1)return l===Zt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===Gm||r===f1||r===m1)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===Gm)return l===Zt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===f1)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===m1)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===cRt||r===g1||r===b1||r===E1)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===Gm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===g1)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===b1)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===E1)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===oo?i?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[r]!==void 0?t[r]:null}return{convert:s}}class PMt extends zn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class to extends rn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const UMt={type:"move"};class dg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new to,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new to,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new _e,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new _e),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new to,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new _e,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new _e),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const i of e.hand.values())this._getHandJoint(n,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,i){let s=null,r=null,o=null;const a=this._targetRay,l=this._grip,u=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(u&&e.hand){o=!0;for(const E of e.hand.values()){const b=n.getJointPose(E,i),g=this._getHandJoint(u,E);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const d=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=d.position.distanceTo(h.position),_=.02,m=.005;u.inputState.pinching&&f>_+m?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=_-m&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=n.getPose(e.gripSpace,i),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(s=n.getPose(e.targetRaySpace,i),s===null&&r!==null&&(s=r),s!==null&&(a.matrix.fromArray(s.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,s.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(s.linearVelocity)):a.hasLinearVelocity=!1,s.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(s.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(UMt)))}return a!==null&&(a.visible=s!==null),l!==null&&(l.visible=r!==null),u!==null&&(u.visible=o!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const i=new to;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[n.jointName]=i,e.add(i)}return e.joints[n.jointName]}}class FMt extends Ka{constructor(e,n){super();const i=this;let s=null,r=1,o=null,a="local-floor",l=1,u=null,d=null,h=null,f=null,_=null,m=null;const E=n.getContextAttributes();let b=null,g=null;const y=[],v=[],S=new It;let C=null;const T=new zn;T.layers.enable(1),T.viewport=new Wt;const O=new zn;O.layers.enable(2),O.viewport=new Wt;const k=[T,O],x=new PMt;x.layers.enable(1),x.layers.enable(2);let I=null,F=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getGripSpace()},this.getHand=function(ee){let Ee=y[ee];return Ee===void 0&&(Ee=new dg,y[ee]=Ee),Ee.getHandSpace()};function B(ee){const Ee=v.indexOf(ee.inputSource);if(Ee===-1)return;const xe=y[Ee];xe!==void 0&&(xe.update(ee.inputSource,ee.frame,u||o),xe.dispatchEvent({type:ee.type,data:ee.inputSource}))}function ne(){s.removeEventListener("select",B),s.removeEventListener("selectstart",B),s.removeEventListener("selectend",B),s.removeEventListener("squeeze",B),s.removeEventListener("squeezestart",B),s.removeEventListener("squeezeend",B),s.removeEventListener("end",ne),s.removeEventListener("inputsourceschange",L);for(let ee=0;ee<y.length;ee++){const Ee=v[ee];Ee!==null&&(v[ee]=null,y[ee].disconnect(Ee))}I=null,F=null,e.setRenderTarget(b),_=null,f=null,h=null,s=null,g=null,ve.stop(),i.isPresenting=!1,e.setPixelRatio(C),e.setSize(S.width,S.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(ee){r=ee,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(ee){a=ee,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return u||o},this.setReferenceSpace=function(ee){u=ee},this.getBaseLayer=function(){return f!==null?f:_},this.getBinding=function(){return h},this.getFrame=function(){return m},this.getSession=function(){return s},this.setSession=async function(ee){if(s=ee,s!==null){if(b=e.getRenderTarget(),s.addEventListener("select",B),s.addEventListener("selectstart",B),s.addEventListener("selectend",B),s.addEventListener("squeeze",B),s.addEventListener("squeezestart",B),s.addEventListener("squeezeend",B),s.addEventListener("end",ne),s.addEventListener("inputsourceschange",L),E.xrCompatible!==!0&&await n.makeXRCompatible(),C=e.getPixelRatio(),e.getSize(S),s.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const Ee={antialias:s.renderState.layers===void 0?E.antialias:!0,alpha:!0,depth:E.depth,stencil:E.stencil,framebufferScaleFactor:r};_=new XRWebGLLayer(s,n,Ee),s.updateRenderState({baseLayer:_}),e.setPixelRatio(1),e.setSize(_.framebufferWidth,_.framebufferHeight,!1),g=new mo(_.framebufferWidth,_.framebufferHeight,{format:gi,type:xr,colorSpace:e.outputColorSpace,stencilBuffer:E.stencil})}else{let Ee=null,xe=null,Me=null;E.depth&&(Me=E.stencil?n.DEPTH24_STENCIL8:n.DEPTH_COMPONENT24,Ee=E.stencil?wa:ao,xe=E.stencil?oo:br);const Z={colorFormat:n.RGBA8,depthFormat:Me,scaleFactor:r};h=new XRWebGLBinding(s,n),f=h.createProjectionLayer(Z),s.updateRenderState({layers:[f]}),e.setPixelRatio(1),e.setSize(f.textureWidth,f.textureHeight,!1),g=new mo(f.textureWidth,f.textureHeight,{format:gi,type:xr,depthTexture:new hI(f.textureWidth,f.textureHeight,xe,void 0,void 0,void 0,void 0,void 0,void 0,Ee),stencilBuffer:E.stencil,colorSpace:e.outputColorSpace,samples:E.antialias?4:0});const ye=e.properties.get(g);ye.__ignoreDepthValues=f.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(l),u=null,o=await s.requestReferenceSpace(a),ve.setContext(s),ve.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(s!==null)return s.environmentBlendMode};function L(ee){for(let Ee=0;Ee<ee.removed.length;Ee++){const xe=ee.removed[Ee],Me=v.indexOf(xe);Me>=0&&(v[Me]=null,y[Me].disconnect(xe))}for(let Ee=0;Ee<ee.added.length;Ee++){const xe=ee.added[Ee];let Me=v.indexOf(xe);if(Me===-1){for(let ye=0;ye<y.length;ye++)if(ye>=v.length){v.push(xe),Me=ye;break}else if(v[ye]===null){v[ye]=xe,Me=ye;break}if(Me===-1)break}const Z=y[Me];Z&&Z.connect(xe)}}const $=new _e,H=new _e;function U(ee,Ee,xe){$.setFromMatrixPosition(Ee.matrixWorld),H.setFromMatrixPosition(xe.matrixWorld);const Me=$.distanceTo(H),Z=Ee.projectionMatrix.elements,ye=xe.projectionMatrix.elements,fe=Z[14]/(Z[10]-1),Ne=Z[14]/(Z[10]+1),Le=(Z[9]+1)/Z[5],D=(Z[9]-1)/Z[5],q=(Z[8]-1)/Z[0],K=(ye[8]+1)/ye[0],de=fe*q,le=fe*K,Re=Me/(-q+K),Ie=Re*-q;Ee.matrixWorld.decompose(ee.position,ee.quaternion,ee.scale),ee.translateX(Ie),ee.translateZ(Re),ee.matrixWorld.compose(ee.position,ee.quaternion,ee.scale),ee.matrixWorldInverse.copy(ee.matrixWorld).invert();const z=fe+Re,pe=Ne+Re,re=de-Ie,ce=le+(Me-Ie),M=Le*Ne/pe*z,N=D*Ne/pe*z;ee.projectionMatrix.makePerspective(re,ce,M,N,z,pe),ee.projectionMatrixInverse.copy(ee.projectionMatrix).invert()}function Q(ee,Ee){Ee===null?ee.matrixWorld.copy(ee.matrix):ee.matrixWorld.multiplyMatrices(Ee.matrixWorld,ee.matrix),ee.matrixWorldInverse.copy(ee.matrixWorld).invert()}this.updateCamera=function(ee){if(s===null)return;x.near=O.near=T.near=ee.near,x.far=O.far=T.far=ee.far,(I!==x.near||F!==x.far)&&(s.updateRenderState({depthNear:x.near,depthFar:x.far}),I=x.near,F=x.far);const Ee=ee.parent,xe=x.cameras;Q(x,Ee);for(let Me=0;Me<xe.length;Me++)Q(xe[Me],Ee);xe.length===2?U(x,T,O):x.projectionMatrix.copy(T.projectionMatrix),J(ee,x,Ee)};function J(ee,Ee,xe){xe===null?ee.matrix.copy(Ee.matrixWorld):(ee.matrix.copy(xe.matrixWorld),ee.matrix.invert(),ee.matrix.multiply(Ee.matrixWorld)),ee.matrix.decompose(ee.position,ee.quaternion,ee.scale),ee.updateMatrixWorld(!0),ee.projectionMatrix.copy(Ee.projectionMatrix),ee.projectionMatrixInverse.copy(Ee.projectionMatrixInverse),ee.isPerspectiveCamera&&(ee.fov=Aa*2*Math.atan(1/ee.projectionMatrix.elements[5]),ee.zoom=1)}this.getCamera=function(){return x},this.getFoveation=function(){if(!(f===null&&_===null))return l},this.setFoveation=function(ee){l=ee,f!==null&&(f.fixedFoveation=ee),_!==null&&_.fixedFoveation!==void 0&&(_.fixedFoveation=ee)};let j=null;function ae(ee,Ee){if(d=Ee.getViewerPose(u||o),m=Ee,d!==null){const xe=d.views;_!==null&&(e.setRenderTargetFramebuffer(g,_.framebuffer),e.setRenderTarget(g));let Me=!1;xe.length!==x.cameras.length&&(x.cameras.length=0,Me=!0);for(let Z=0;Z<xe.length;Z++){const ye=xe[Z];let fe=null;if(_!==null)fe=_.getViewport(ye);else{const Le=h.getViewSubImage(f,ye);fe=Le.viewport,Z===0&&(e.setRenderTargetTextures(g,Le.colorTexture,f.ignoreDepthValues?void 0:Le.depthStencilTexture),e.setRenderTarget(g))}let Ne=k[Z];Ne===void 0&&(Ne=new zn,Ne.layers.enable(Z),Ne.viewport=new Wt,k[Z]=Ne),Ne.matrix.fromArray(ye.transform.matrix),Ne.matrix.decompose(Ne.position,Ne.quaternion,Ne.scale),Ne.projectionMatrix.fromArray(ye.projectionMatrix),Ne.projectionMatrixInverse.copy(Ne.projectionMatrix).invert(),Ne.viewport.set(fe.x,fe.y,fe.width,fe.height),Z===0&&(x.matrix.copy(Ne.matrix),x.matrix.decompose(x.position,x.quaternion,x.scale)),Me===!0&&x.cameras.push(Ne)}}for(let xe=0;xe<y.length;xe++){const Me=v[xe],Z=y[xe];Me!==null&&Z!==void 0&&Z.update(Me,Ee,u||o)}j&&j(ee,Ee),Ee.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:Ee}),m=null}const ve=new _I;ve.setAnimationLoop(ae),this.setAnimationLoop=function(ee){j=ee},this.dispose=function(){}}}function BMt(t,e){function n(b,g){b.matrixAutoUpdate===!0&&b.updateMatrix(),g.value.copy(b.matrix)}function i(b,g){g.color.getRGB(b.fogColor.value,dI(t)),g.isFog?(b.fogNear.value=g.near,b.fogFar.value=g.far):g.isFogExp2&&(b.fogDensity.value=g.density)}function s(b,g,y,v,S){g.isMeshBasicMaterial||g.isMeshLambertMaterial?r(b,g):g.isMeshToonMaterial?(r(b,g),h(b,g)):g.isMeshPhongMaterial?(r(b,g),d(b,g)):g.isMeshStandardMaterial?(r(b,g),f(b,g),g.isMeshPhysicalMaterial&&_(b,g,S)):g.isMeshMatcapMaterial?(r(b,g),m(b,g)):g.isMeshDepthMaterial?r(b,g):g.isMeshDistanceMaterial?(r(b,g),E(b,g)):g.isMeshNormalMaterial?r(b,g):g.isLineBasicMaterial?(o(b,g),g.isLineDashedMaterial&&a(b,g)):g.isPointsMaterial?l(b,g,y,v):g.isSpriteMaterial?u(b,g):g.isShadowMaterial?(b.color.value.copy(g.color),b.opacity.value=g.opacity):g.isShaderMaterial&&(g.uniformsNeedUpdate=!1)}function r(b,g){b.opacity.value=g.opacity,g.color&&b.diffuse.value.copy(g.color),g.emissive&&b.emissive.value.copy(g.emissive).multiplyScalar(g.emissiveIntensity),g.map&&(b.map.value=g.map,n(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,n(g.alphaMap,b.alphaMapTransform)),g.bumpMap&&(b.bumpMap.value=g.bumpMap,n(g.bumpMap,b.bumpMapTransform),b.bumpScale.value=g.bumpScale,g.side===Zn&&(b.bumpScale.value*=-1)),g.normalMap&&(b.normalMap.value=g.normalMap,n(g.normalMap,b.normalMapTransform),b.normalScale.value.copy(g.normalScale),g.side===Zn&&b.normalScale.value.negate()),g.displacementMap&&(b.displacementMap.value=g.displacementMap,n(g.displacementMap,b.displacementMapTransform),b.displacementScale.value=g.displacementScale,b.displacementBias.value=g.displacementBias),g.emissiveMap&&(b.emissiveMap.value=g.emissiveMap,n(g.emissiveMap,b.emissiveMapTransform)),g.specularMap&&(b.specularMap.value=g.specularMap,n(g.specularMap,b.specularMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest);const y=e.get(g).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const v=t._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*v,n(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,n(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,n(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function l(b,g,y,v){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*y,b.scale.value=v*.5,g.map&&(b.map.value=g.map,n(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,n(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function u(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,n(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,n(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function h(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function f(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,n(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,n(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function _(b,g,y){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,n(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,n(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,n(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,n(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,n(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Zn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,n(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,n(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,n(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,n(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,n(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,n(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,n(g.specularIntensityMap,b.specularIntensityMapTransform))}function m(b,g){g.matcap&&(b.matcap.value=g.matcap)}function E(b,g){const y=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function GMt(t,e,n,i){let s={},r={},o=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,v){const S=v.program;i.uniformBlockBinding(y,S)}function u(y,v){let S=s[y.id];S===void 0&&(m(y),S=d(y),s[y.id]=S,y.addEventListener("dispose",b));const C=v.program;i.updateUBOMapping(y,C);const T=e.render.frame;r[y.id]!==T&&(f(y),r[y.id]=T)}function d(y){const v=h();y.__bindingPointIndex=v;const S=t.createBuffer(),C=y.__size,T=y.usage;return t.bindBuffer(t.UNIFORM_BUFFER,S),t.bufferData(t.UNIFORM_BUFFER,C,T),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,v,S),S}function h(){for(let y=0;y<a;y++)if(o.indexOf(y)===-1)return o.push(y),y;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function f(y){const v=s[y.id],S=y.uniforms,C=y.__cache;t.bindBuffer(t.UNIFORM_BUFFER,v);for(let T=0,O=S.length;T<O;T++){const k=S[T];if(_(k,T,C)===!0){const x=k.__offset,I=Array.isArray(k.value)?k.value:[k.value];let F=0;for(let B=0;B<I.length;B++){const ne=I[B],L=E(ne);typeof ne=="number"?(k.__data[0]=ne,t.bufferSubData(t.UNIFORM_BUFFER,x+F,k.__data)):ne.isMatrix3?(k.__data[0]=ne.elements[0],k.__data[1]=ne.elements[1],k.__data[2]=ne.elements[2],k.__data[3]=ne.elements[0],k.__data[4]=ne.elements[3],k.__data[5]=ne.elements[4],k.__data[6]=ne.elements[5],k.__data[7]=ne.elements[0],k.__data[8]=ne.elements[6],k.__data[9]=ne.elements[7],k.__data[10]=ne.elements[8],k.__data[11]=ne.elements[0]):(ne.toArray(k.__data,F),F+=L.storage/Float32Array.BYTES_PER_ELEMENT)}t.bufferSubData(t.UNIFORM_BUFFER,x,k.__data)}}t.bindBuffer(t.UNIFORM_BUFFER,null)}function _(y,v,S){const C=y.value;if(S[v]===void 0){if(typeof C=="number")S[v]=C;else{const T=Array.isArray(C)?C:[C],O=[];for(let k=0;k<T.length;k++)O.push(T[k].clone());S[v]=O}return!0}else if(typeof C=="number"){if(S[v]!==C)return S[v]=C,!0}else{const T=Array.isArray(S[v])?S[v]:[S[v]],O=Array.isArray(C)?C:[C];for(let k=0;k<T.length;k++){const x=T[k];if(x.equals(O[k])===!1)return x.copy(O[k]),!0}}return!1}function m(y){const v=y.uniforms;let S=0;const C=16;let T=0;for(let O=0,k=v.length;O<k;O++){const x=v[O],I={boundary:0,storage:0},F=Array.isArray(x.value)?x.value:[x.value];for(let B=0,ne=F.length;B<ne;B++){const L=F[B],$=E(L);I.boundary+=$.boundary,I.storage+=$.storage}if(x.__data=new Float32Array(I.storage/Float32Array.BYTES_PER_ELEMENT),x.__offset=S,O>0){T=S%C;const B=C-T;T!==0&&B-I.boundary<0&&(S+=C-T,x.__offset=S)}S+=I.storage}return T=S%C,T>0&&(S+=C-T),y.__size=S,y.__cache={},this}function E(y){const v={boundary:0,storage:0};return typeof y=="number"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function b(y){const v=y.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),t.deleteBuffer(s[v.id]),delete s[v.id],delete r[v.id]}function g(){for(const y in s)t.deleteBuffer(s[y]);o=[],s={},r={}}return{bind:l,update:u,dispose:g}}class yI{constructor(e={}){const{canvas:n=URt(),context:i=null,depth:s=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;i!==null?f=i.getContextAttributes().alpha:f=o;const _=new Uint32Array(4),m=new Int32Array(4);let E=null,b=null;const g=[],y=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=on,this._useLegacyLights=!1,this.toneMapping=Tr,this.toneMappingExposure=1;const v=this;let S=!1,C=0,T=0,O=null,k=-1,x=null;const I=new Wt,F=new Wt;let B=null;const ne=new gt(0);let L=0,$=n.width,H=n.height,U=1,Q=null,J=null;const j=new Wt(0,0,$,H),ae=new Wt(0,0,$,H);let ve=!1;const ee=new ey;let Ee=!1,xe=!1,Me=null;const Z=new Rt,ye=new It,fe=new _e,Ne={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Le(){return O===null?U:1}let D=i;function q(R,Y){for(let te=0;te<R.length;te++){const ge=R[te],me=n.getContext(ge,Y);if(me!==null)return me}return null}try{const R={alpha:!0,depth:s,stencil:r,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:d,failIfMajorPerformanceCaveat:h};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${KE}`),n.addEventListener("webglcontextlost",pt,!1),n.addEventListener("webglcontextrestored",oe,!1),n.addEventListener("webglcontextcreationerror",Ke,!1),D===null){const Y=["webgl2","webgl","experimental-webgl"];if(v.isWebGL1Renderer===!0&&Y.shift(),D=q(Y,R),D===null)throw q(Y)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}typeof WebGLRenderingContext<"u"&&D instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."),D.getShaderPrecisionFormat===void 0&&(D.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(R){throw console.error("THREE.WebGLRenderer: "+R.message),R}let K,de,le,Re,Ie,z,pe,re,ce,M,N,W,ue,X,ie,Ae,Ce,ke,Qe,ct,Pe,ut,Je,qe;function tt(){K=new XOt(D),de=new YOt(D,K,e),K.init(de),ut=new LMt(D,K,de),le=new DMt(D,K,de),Re=new eIt(D),Ie=new EMt,z=new kMt(D,K,le,Ie,de,ut,Re),pe=new WOt(v),re=new QOt(v),ce=new lAt(D,de),Je=new HOt(D,K,ce,de),M=new ZOt(D,ce,Re,Je),N=new sIt(D,M,ce,Re),Qe=new iIt(D,de,z),Ae=new $Ot(Ie),W=new bMt(v,pe,re,K,de,Je,Ae),ue=new BMt(v,Ie),X=new vMt,ie=new RMt(K,de),ke=new zOt(v,pe,re,le,N,f,l),Ce=new MMt(v,N,de),qe=new GMt(D,Re,de,le),ct=new qOt(D,K,Re,de),Pe=new JOt(D,K,Re,de),Re.programs=W.programs,v.capabilities=de,v.extensions=K,v.properties=Ie,v.renderLists=X,v.shadowMap=Ce,v.state=le,v.info=Re}tt();const Fe=new FMt(v,D);this.xr=Fe,this.getContext=function(){return D},this.getContextAttributes=function(){return D.getContextAttributes()},this.forceContextLoss=function(){const R=K.get("WEBGL_lose_context");R&&R.loseContext()},this.forceContextRestore=function(){const R=K.get("WEBGL_lose_context");R&&R.restoreContext()},this.getPixelRatio=function(){return U},this.setPixelRatio=function(R){R!==void 0&&(U=R,this.setSize($,H,!1))},this.getSize=function(R){return R.set($,H)},this.setSize=function(R,Y,te=!0){if(Fe.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}$=R,H=Y,n.width=Math.floor(R*U),n.height=Math.floor(Y*U),te===!0&&(n.style.width=R+"px",n.style.height=Y+"px"),this.setViewport(0,0,R,Y)},this.getDrawingBufferSize=function(R){return R.set($*U,H*U).floor()},this.setDrawingBufferSize=function(R,Y,te){$=R,H=Y,U=te,n.width=Math.floor(R*te),n.height=Math.floor(Y*te),this.setViewport(0,0,R,Y)},this.getCurrentViewport=function(R){return R.copy(I)},this.getViewport=function(R){return R.copy(j)},this.setViewport=function(R,Y,te,ge){R.isVector4?j.set(R.x,R.y,R.z,R.w):j.set(R,Y,te,ge),le.viewport(I.copy(j).multiplyScalar(U).floor())},this.getScissor=function(R){return R.copy(ae)},this.setScissor=function(R,Y,te,ge){R.isVector4?ae.set(R.x,R.y,R.z,R.w):ae.set(R,Y,te,ge),le.scissor(F.copy(ae).multiplyScalar(U).floor())},this.getScissorTest=function(){return ve},this.setScissorTest=function(R){le.setScissorTest(ve=R)},this.setOpaqueSort=function(R){Q=R},this.setTransparentSort=function(R){J=R},this.getClearColor=function(R){return R.copy(ke.getClearColor())},this.setClearColor=function(){ke.setClearColor.apply(ke,arguments)},this.getClearAlpha=function(){return ke.getClearAlpha()},this.setClearAlpha=function(){ke.setClearAlpha.apply(ke,arguments)},this.clear=function(R=!0,Y=!0,te=!0){let ge=0;if(R){let me=!1;if(O!==null){const Ve=O.texture.format;me=Ve===XO||Ve===QO||Ve===jO}if(me){const Ve=O.texture.type,Xe=Ve===xr||Ve===br||Ve===QE||Ve===oo||Ve===WO||Ve===KO,it=ke.getClearColor(),at=ke.getClearAlpha(),rt=it.r,_t=it.g,ht=it.b;Xe?(_[0]=rt,_[1]=_t,_[2]=ht,_[3]=at,D.clearBufferuiv(D.COLOR,0,_)):(m[0]=rt,m[1]=_t,m[2]=ht,m[3]=at,D.clearBufferiv(D.COLOR,0,m))}else ge|=D.COLOR_BUFFER_BIT}Y&&(ge|=D.DEPTH_BUFFER_BIT),te&&(ge|=D.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),D.clear(ge)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",pt,!1),n.removeEventListener("webglcontextrestored",oe,!1),n.removeEventListener("webglcontextcreationerror",Ke,!1),X.dispose(),ie.dispose(),Ie.dispose(),pe.dispose(),re.dispose(),N.dispose(),Je.dispose(),qe.dispose(),W.dispose(),Fe.dispose(),Fe.removeEventListener("sessionstart",cn),Fe.removeEventListener("sessionend",Ct),Me&&(Me.dispose(),Me=null),$t.stop()};function pt(R){R.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),S=!0}function oe(){console.log("THREE.WebGLRenderer: Context Restored."),S=!1;const R=Re.autoReset,Y=Ce.enabled,te=Ce.autoUpdate,ge=Ce.needsUpdate,me=Ce.type;tt(),Re.autoReset=R,Ce.enabled=Y,Ce.autoUpdate=te,Ce.needsUpdate=ge,Ce.type=me}function Ke(R){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",R.statusMessage)}function Ue(R){const Y=R.target;Y.removeEventListener("dispose",Ue),Oe(Y)}function Oe(R){Be(R),Ie.remove(R)}function Be(R){const Y=Ie.get(R).programs;Y!==void 0&&(Y.forEach(function(te){W.releaseProgram(te)}),R.isShaderMaterial&&W.releaseShaderCache(R))}this.renderBufferDirect=function(R,Y,te,ge,me,Ve){Y===null&&(Y=Ne);const Xe=me.isMesh&&me.matrixWorld.determinant()<0,it=ys(R,Y,te,ge,me);le.setMaterial(ge,Xe);let at=te.index,rt=1;if(ge.wireframe===!0){if(at=M.getWireframeAttribute(te),at===void 0)return;rt=2}const _t=te.drawRange,ht=te.attributes.position;let Kt=_t.start*rt,xn=(_t.start+_t.count)*rt;Ve!==null&&(Kt=Math.max(Kt,Ve.start*rt),xn=Math.min(xn,(Ve.start+Ve.count)*rt)),at!==null?(Kt=Math.max(Kt,0),xn=Math.min(xn,at.count)):ht!=null&&(Kt=Math.max(Kt,0),xn=Math.min(xn,ht.count));const sn=xn-Kt;if(sn<0||sn===1/0)return;Je.setup(me,ge,it,te,at);let In,Xt=ct;if(at!==null&&(In=ce.get(at),Xt=Pe,Xt.setIndex(In)),me.isMesh)ge.wireframe===!0?(le.setLineWidth(ge.wireframeLinewidth*Le()),Xt.setMode(D.LINES)):Xt.setMode(D.TRIANGLES);else if(me.isLine){let St=ge.linewidth;St===void 0&&(St=1),le.setLineWidth(St*Le()),me.isLineSegments?Xt.setMode(D.LINES):me.isLineLoop?Xt.setMode(D.LINE_LOOP):Xt.setMode(D.LINE_STRIP)}else me.isPoints?Xt.setMode(D.POINTS):me.isSprite&&Xt.setMode(D.TRIANGLES);if(me.isBatchedMesh)Xt.renderMultiDraw(me._multiDrawStarts,me._multiDrawCounts,me._multiDrawCount);else if(me.isInstancedMesh)Xt.renderInstances(Kt,sn,me.count);else if(te.isInstancedBufferGeometry){const St=te._maxInstanceCount!==void 0?te._maxInstanceCount:1/0,el=Math.min(te.instanceCount,St);Xt.renderInstances(Kt,sn,el)}else Xt.render(Kt,sn)};function dt(R,Y,te){R.transparent===!0&&R.side===es&&R.forceSinglePass===!1?(R.side=Zn,R.needsUpdate=!0,di(R,Y,te),R.side=Ys,R.needsUpdate=!0,di(R,Y,te),R.side=es):di(R,Y,te)}this.compile=function(R,Y,te=null){te===null&&(te=R),b=ie.get(te),b.init(),y.push(b),te.traverseVisible(function(me){me.isLight&&me.layers.test(Y.layers)&&(b.pushLight(me),me.castShadow&&b.pushShadow(me))}),R!==te&&R.traverseVisible(function(me){me.isLight&&me.layers.test(Y.layers)&&(b.pushLight(me),me.castShadow&&b.pushShadow(me))}),b.setupLights(v._useLegacyLights);const ge=new Set;return R.traverse(function(me){const Ve=me.material;if(Ve)if(Array.isArray(Ve))for(let Xe=0;Xe<Ve.length;Xe++){const it=Ve[Xe];dt(it,te,me),ge.add(it)}else dt(Ve,te,me),ge.add(Ve)}),y.pop(),b=null,ge},this.compileAsync=function(R,Y,te=null){const ge=this.compile(R,Y,te);return new Promise(me=>{function Ve(){if(ge.forEach(function(Xe){Ie.get(Xe).currentProgram.isReady()&&ge.delete(Xe)}),ge.size===0){me(R);return}setTimeout(Ve,10)}K.get("KHR_parallel_shader_compile")!==null?Ve():setTimeout(Ve,10)})};let Et=null;function Qt(R){Et&&Et(R)}function cn(){$t.stop()}function Ct(){$t.start()}const $t=new _I;$t.setAnimationLoop(Qt),typeof self<"u"&&$t.setContext(self),this.setAnimationLoop=function(R){Et=R,Fe.setAnimationLoop(R),R===null?$t.stop():$t.start()},Fe.addEventListener("sessionstart",cn),Fe.addEventListener("sessionend",Ct),this.render=function(R,Y){if(Y!==void 0&&Y.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;R.matrixWorldAutoUpdate===!0&&R.updateMatrixWorld(),Y.parent===null&&Y.matrixWorldAutoUpdate===!0&&Y.updateMatrixWorld(),Fe.enabled===!0&&Fe.isPresenting===!0&&(Fe.cameraAutoUpdate===!0&&Fe.updateCamera(Y),Y=Fe.getCamera()),R.isScene===!0&&R.onBeforeRender(v,R,Y,O),b=ie.get(R,y.length),b.init(),y.push(b),Z.multiplyMatrices(Y.projectionMatrix,Y.matrixWorldInverse),ee.setFromProjectionMatrix(Z),xe=this.localClippingEnabled,Ee=Ae.init(this.clippingPlanes,xe),E=X.get(R,g.length),E.init(),g.push(E),Sn(R,Y,0,v.sortObjects),E.finish(),v.sortObjects===!0&&E.sort(Q,J),this.info.render.frame++,Ee===!0&&Ae.beginShadows();const te=b.state.shadowsArray;if(Ce.render(te,R,Y),Ee===!0&&Ae.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(E,R),b.setupLights(v._useLegacyLights),Y.isArrayCamera){const ge=Y.cameras;for(let me=0,Ve=ge.length;me<Ve;me++){const Xe=ge[me];bs(E,R,Xe,Xe.viewport)}}else bs(E,R,Y);O!==null&&(z.updateMultisampleRenderTarget(O),z.updateRenderTargetMipmap(O)),R.isScene===!0&&R.onAfterRender(v,R,Y),Je.resetDefaultState(),k=-1,x=null,y.pop(),y.length>0?b=y[y.length-1]:b=null,g.pop(),g.length>0?E=g[g.length-1]:E=null};function Sn(R,Y,te,ge){if(R.visible===!1)return;if(R.layers.test(Y.layers)){if(R.isGroup)te=R.renderOrder;else if(R.isLOD)R.autoUpdate===!0&&R.update(Y);else if(R.isLight)b.pushLight(R),R.castShadow&&b.pushShadow(R);else if(R.isSprite){if(!R.frustumCulled||ee.intersectsSprite(R)){ge&&fe.setFromMatrixPosition(R.matrixWorld).applyMatrix4(Z);const Xe=N.update(R),it=R.material;it.visible&&E.push(R,Xe,it,te,fe.z,null)}}else if((R.isMesh||R.isLine||R.isPoints)&&(!R.frustumCulled||ee.intersectsObject(R))){const Xe=N.update(R),it=R.material;if(ge&&(R.boundingSphere!==void 0?(R.boundingSphere===null&&R.computeBoundingSphere(),fe.copy(R.boundingSphere.center)):(Xe.boundingSphere===null&&Xe.computeBoundingSphere(),fe.copy(Xe.boundingSphere.center)),fe.applyMatrix4(R.matrixWorld).applyMatrix4(Z)),Array.isArray(it)){const at=Xe.groups;for(let rt=0,_t=at.length;rt<_t;rt++){const ht=at[rt],Kt=it[ht.materialIndex];Kt&&Kt.visible&&E.push(R,Xe,Kt,te,fe.z,ht)}}else it.visible&&E.push(R,Xe,it,te,fe.z,null)}}const Ve=R.children;for(let Xe=0,it=Ve.length;Xe<it;Xe++)Sn(Ve[Xe],Y,te,ge)}function bs(R,Y,te,ge){const me=R.opaque,Ve=R.transmissive,Xe=R.transparent;b.setupLightsView(te),Ee===!0&&Ae.setGlobalState(v.clippingPlanes,te),Ve.length>0&&Mr(me,Ve,Y,te),ge&&le.viewport(I.copy(ge)),me.length>0&&ci(me,Y,te),Ve.length>0&&ci(Ve,Y,te),Xe.length>0&&ci(Xe,Y,te),le.buffers.depth.setTest(!0),le.buffers.depth.setMask(!0),le.buffers.color.setMask(!0),le.setPolygonOffset(!1)}function Mr(R,Y,te,ge){if((te.isScene===!0?te.overrideMaterial:null)!==null)return;const Ve=de.isWebGL2;Me===null&&(Me=new mo(1,1,{generateMipmaps:!0,type:K.has("EXT_color_buffer_half_float")?rc:xr,minFilter:fo,samples:Ve?4:0})),v.getDrawingBufferSize(ye),Ve?Me.setSize(ye.x,ye.y):Me.setSize(Eu(ye.x),Eu(ye.y));const Xe=v.getRenderTarget();v.setRenderTarget(Me),v.getClearColor(ne),L=v.getClearAlpha(),L<1&&v.setClearColor(16777215,.5),v.clear();const it=v.toneMapping;v.toneMapping=Tr,ci(R,te,ge),z.updateMultisampleRenderTarget(Me),z.updateRenderTargetMipmap(Me);let at=!1;for(let rt=0,_t=Y.length;rt<_t;rt++){const ht=Y[rt],Kt=ht.object,xn=ht.geometry,sn=ht.material,In=ht.group;if(sn.side===es&&Kt.layers.test(ge.layers)){const Xt=sn.side;sn.side=Zn,sn.needsUpdate=!0,Tn(Kt,te,ge,xn,sn,In),sn.side=Xt,sn.needsUpdate=!0,at=!0}}at===!0&&(z.updateMultisampleRenderTarget(Me),z.updateRenderTargetMipmap(Me)),v.setRenderTarget(Xe),v.setClearColor(ne,L),v.toneMapping=it}function ci(R,Y,te){const ge=Y.isScene===!0?Y.overrideMaterial:null;for(let me=0,Ve=R.length;me<Ve;me++){const Xe=R[me],it=Xe.object,at=Xe.geometry,rt=ge===null?Xe.material:ge,_t=Xe.group;it.layers.test(te.layers)&&Tn(it,Y,te,at,rt,_t)}}function Tn(R,Y,te,ge,me,Ve){R.onBeforeRender(v,Y,te,ge,me,Ve),R.modelViewMatrix.multiplyMatrices(te.matrixWorldInverse,R.matrixWorld),R.normalMatrix.getNormalMatrix(R.modelViewMatrix),me.onBeforeRender(v,Y,te,ge,R,Ve),me.transparent===!0&&me.side===es&&me.forceSinglePass===!1?(me.side=Zn,me.needsUpdate=!0,v.renderBufferDirect(te,Y,ge,me,R,Ve),me.side=Ys,me.needsUpdate=!0,v.renderBufferDirect(te,Y,ge,me,R,Ve),me.side=es):v.renderBufferDirect(te,Y,ge,me,R,Ve),R.onAfterRender(v,Y,te,ge,me,Ve)}function di(R,Y,te){Y.isScene!==!0&&(Y=Ne);const ge=Ie.get(R),me=b.state.lights,Ve=b.state.shadowsArray,Xe=me.state.version,it=W.getParameters(R,me.state,Ve,Y,te),at=W.getProgramCacheKey(it);let rt=ge.programs;ge.environment=R.isMeshStandardMaterial?Y.environment:null,ge.fog=Y.fog,ge.envMap=(R.isMeshStandardMaterial?re:pe).get(R.envMap||ge.environment),rt===void 0&&(R.addEventListener("dispose",Ue),rt=new Map,ge.programs=rt);let _t=rt.get(at);if(_t!==void 0){if(ge.currentProgram===_t&&ge.lightsStateVersion===Xe)return Es(R,it),_t}else it.uniforms=W.getUniforms(R),R.onBuild(te,it,v),R.onBeforeCompile(it,v),_t=W.acquireProgram(it,at),rt.set(at,_t),ge.uniforms=it.uniforms;const ht=ge.uniforms;return(!R.isShaderMaterial&&!R.isRawShaderMaterial||R.clipping===!0)&&(ht.clippingPlanes=Ae.uniform),Es(R,it),ge.needsLights=nt(R),ge.lightsStateVersion=Xe,ge.needsLights&&(ht.ambientLightColor.value=me.state.ambient,ht.lightProbe.value=me.state.probe,ht.directionalLights.value=me.state.directional,ht.directionalLightShadows.value=me.state.directionalShadow,ht.spotLights.value=me.state.spot,ht.spotLightShadows.value=me.state.spotShadow,ht.rectAreaLights.value=me.state.rectArea,ht.ltc_1.value=me.state.rectAreaLTC1,ht.ltc_2.value=me.state.rectAreaLTC2,ht.pointLights.value=me.state.point,ht.pointLightShadows.value=me.state.pointShadow,ht.hemisphereLights.value=me.state.hemi,ht.directionalShadowMap.value=me.state.directionalShadowMap,ht.directionalShadowMatrix.value=me.state.directionalShadowMatrix,ht.spotShadowMap.value=me.state.spotShadowMap,ht.spotLightMatrix.value=me.state.spotLightMatrix,ht.spotLightMap.value=me.state.spotLightMap,ht.pointShadowMap.value=me.state.pointShadowMap,ht.pointShadowMatrix.value=me.state.pointShadowMatrix),ge.currentProgram=_t,ge.uniformsList=null,_t}function ji(R){if(R.uniformsList===null){const Y=R.currentProgram.getUniforms();R.uniformsList=Gd.seqWithValue(Y.seq,R.uniforms)}return R.uniformsList}function Es(R,Y){const te=Ie.get(R);te.outputColorSpace=Y.outputColorSpace,te.batching=Y.batching,te.instancing=Y.instancing,te.instancingColor=Y.instancingColor,te.skinning=Y.skinning,te.morphTargets=Y.morphTargets,te.morphNormals=Y.morphNormals,te.morphColors=Y.morphColors,te.morphTargetsCount=Y.morphTargetsCount,te.numClippingPlanes=Y.numClippingPlanes,te.numIntersection=Y.numClipIntersection,te.vertexAlphas=Y.vertexAlphas,te.vertexTangents=Y.vertexTangents,te.toneMapping=Y.toneMapping}function ys(R,Y,te,ge,me){Y.isScene!==!0&&(Y=Ne),z.resetTextureUnits();const Ve=Y.fog,Xe=ge.isMeshStandardMaterial?Y.environment:null,it=O===null?v.outputColorSpace:O.isXRRenderTarget===!0?O.texture.colorSpace:On,at=(ge.isMeshStandardMaterial?re:pe).get(ge.envMap||Xe),rt=ge.vertexColors===!0&&!!te.attributes.color&&te.attributes.color.itemSize===4,_t=!!te.attributes.tangent&&(!!ge.normalMap||ge.anisotropy>0),ht=!!te.morphAttributes.position,Kt=!!te.morphAttributes.normal,xn=!!te.morphAttributes.color;let sn=Tr;ge.toneMapped&&(O===null||O.isXRRenderTarget===!0)&&(sn=v.toneMapping);const In=te.morphAttributes.position||te.morphAttributes.normal||te.morphAttributes.color,Xt=In!==void 0?In.length:0,St=Ie.get(ge),el=b.state.lights;if(Ee===!0&&(xe===!0||R!==x)){const Wn=R===x&&ge.id===k;Ae.setState(ge,R,Wn)}let tn=!1;ge.version===St.__version?(St.needsLights&&St.lightsStateVersion!==el.state.version||St.outputColorSpace!==it||me.isBatchedMesh&&St.batching===!1||!me.isBatchedMesh&&St.batching===!0||me.isInstancedMesh&&St.instancing===!1||!me.isInstancedMesh&&St.instancing===!0||me.isSkinnedMesh&&St.skinning===!1||!me.isSkinnedMesh&&St.skinning===!0||me.isInstancedMesh&&St.instancingColor===!0&&me.instanceColor===null||me.isInstancedMesh&&St.instancingColor===!1&&me.instanceColor!==null||St.envMap!==at||ge.fog===!0&&St.fog!==Ve||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ae.numPlanes||St.numIntersection!==Ae.numIntersection)||St.vertexAlphas!==rt||St.vertexTangents!==_t||St.morphTargets!==ht||St.morphNormals!==Kt||St.morphColors!==xn||St.toneMapping!==sn||de.isWebGL2===!0&&St.morphTargetsCount!==Xt)&&(tn=!0):(tn=!0,St.__version=ge.version);let Ss=St.currentProgram;tn===!0&&(Ss=di(ge,Y,me));let xc=!1,Dr=!1,tl=!1;const bn=Ss.getUniforms(),Ts=St.uniforms;if(le.useProgram(Ss.program)&&(xc=!0,Dr=!0,tl=!0),ge.id!==k&&(k=ge.id,Dr=!0),xc||x!==R){bn.setValue(D,"projectionMatrix",R.projectionMatrix),bn.setValue(D,"viewMatrix",R.matrixWorldInverse);const Wn=bn.map.cameraPosition;Wn!==void 0&&Wn.setValue(D,fe.setFromMatrixPosition(R.matrixWorld)),de.logarithmicDepthBuffer&&bn.setValue(D,"logDepthBufFC",2/(Math.log(R.far+1)/Math.LN2)),(ge.isMeshPhongMaterial||ge.isMeshToonMaterial||ge.isMeshLambertMaterial||ge.isMeshBasicMaterial||ge.isMeshStandardMaterial||ge.isShaderMaterial)&&bn.setValue(D,"isOrthographic",R.isOrthographicCamera===!0),x!==R&&(x=R,Dr=!0,tl=!0)}if(me.isSkinnedMesh){bn.setOptional(D,me,"bindMatrix"),bn.setOptional(D,me,"bindMatrixInverse");const Wn=me.skeleton;Wn&&(de.floatVertexTextures?(Wn.boneTexture===null&&Wn.computeBoneTexture(),bn.setValue(D,"boneTexture",Wn.boneTexture,z)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}me.isBatchedMesh&&(bn.setOptional(D,me,"batchingTexture"),bn.setValue(D,"batchingTexture",me._matricesTexture,z));const nl=te.morphAttributes;if((nl.position!==void 0||nl.normal!==void 0||nl.color!==void 0&&de.isWebGL2===!0)&&Qe.update(me,te,Ss),(Dr||St.receiveShadow!==me.receiveShadow)&&(St.receiveShadow=me.receiveShadow,bn.setValue(D,"receiveShadow",me.receiveShadow)),ge.isMeshGouraudMaterial&&ge.envMap!==null&&(Ts.envMap.value=at,Ts.flipEnvMap.value=at.isCubeTexture&&at.isRenderTargetTexture===!1?-1:1),Dr&&(bn.setValue(D,"toneMappingExposure",v.toneMappingExposure),St.needsLights&&vs(Ts,tl),Ve&&ge.fog===!0&&ue.refreshFogUniforms(Ts,Ve),ue.refreshMaterialUniforms(Ts,ge,U,H,Me),Gd.upload(D,ji(St),Ts,z)),ge.isShaderMaterial&&ge.uniformsNeedUpdate===!0&&(Gd.upload(D,ji(St),Ts,z),ge.uniformsNeedUpdate=!1),ge.isSpriteMaterial&&bn.setValue(D,"center",me.center),bn.setValue(D,"modelViewMatrix",me.modelViewMatrix),bn.setValue(D,"normalMatrix",me.normalMatrix),bn.setValue(D,"modelMatrix",me.matrixWorld),ge.isShaderMaterial||ge.isRawShaderMaterial){const Wn=ge.uniformsGroups;for(let il=0,mp=Wn.length;il<mp;il++)if(de.isWebGL2){const Cc=Wn[il];qe.update(Cc,Ss),qe.bind(Cc,Ss)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return Ss}function vs(R,Y){R.ambientLightColor.needsUpdate=Y,R.lightProbe.needsUpdate=Y,R.directionalLights.needsUpdate=Y,R.directionalLightShadows.needsUpdate=Y,R.pointLights.needsUpdate=Y,R.pointLightShadows.needsUpdate=Y,R.spotLights.needsUpdate=Y,R.spotLightShadows.needsUpdate=Y,R.rectAreaLights.needsUpdate=Y,R.hemisphereLights.needsUpdate=Y}function nt(R){return R.isMeshLambertMaterial||R.isMeshToonMaterial||R.isMeshPhongMaterial||R.isMeshStandardMaterial||R.isShadowMaterial||R.isShaderMaterial&&R.lights===!0}this.getActiveCubeFace=function(){return C},this.getActiveMipmapLevel=function(){return T},this.getRenderTarget=function(){return O},this.setRenderTargetTextures=function(R,Y,te){Ie.get(R.texture).__webglTexture=Y,Ie.get(R.depthTexture).__webglTexture=te;const ge=Ie.get(R);ge.__hasExternalTextures=!0,ge.__hasExternalTextures&&(ge.__autoAllocateDepthBuffer=te===void 0,ge.__autoAllocateDepthBuffer||K.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),ge.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(R,Y){const te=Ie.get(R);te.__webglFramebuffer=Y,te.__useDefaultFramebuffer=Y===void 0},this.setRenderTarget=function(R,Y=0,te=0){O=R,C=Y,T=te;let ge=!0,me=null,Ve=!1,Xe=!1;if(R){const at=Ie.get(R);at.__useDefaultFramebuffer!==void 0?(le.bindFramebuffer(D.FRAMEBUFFER,null),ge=!1):at.__webglFramebuffer===void 0?z.setupRenderTarget(R):at.__hasExternalTextures&&z.rebindTextures(R,Ie.get(R.texture).__webglTexture,Ie.get(R.depthTexture).__webglTexture);const rt=R.texture;(rt.isData3DTexture||rt.isDataArrayTexture||rt.isCompressedArrayTexture)&&(Xe=!0);const _t=Ie.get(R).__webglFramebuffer;R.isWebGLCubeRenderTarget?(Array.isArray(_t[Y])?me=_t[Y][te]:me=_t[Y],Ve=!0):de.isWebGL2&&R.samples>0&&z.useMultisampledRTT(R)===!1?me=Ie.get(R).__webglMultisampledFramebuffer:Array.isArray(_t)?me=_t[te]:me=_t,I.copy(R.viewport),F.copy(R.scissor),B=R.scissorTest}else I.copy(j).multiplyScalar(U).floor(),F.copy(ae).multiplyScalar(U).floor(),B=ve;if(le.bindFramebuffer(D.FRAMEBUFFER,me)&&de.drawBuffers&&ge&&le.drawBuffers(R,me),le.viewport(I),le.scissor(F),le.setScissorTest(B),Ve){const at=Ie.get(R.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+Y,at.__webglTexture,te)}else if(Xe){const at=Ie.get(R.texture),rt=Y||0;D.framebufferTextureLayer(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,at.__webglTexture,te||0,rt)}k=-1},this.readRenderTargetPixels=function(R,Y,te,ge,me,Ve,Xe){if(!(R&&R.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let it=Ie.get(R).__webglFramebuffer;if(R.isWebGLCubeRenderTarget&&Xe!==void 0&&(it=it[Xe]),it){le.bindFramebuffer(D.FRAMEBUFFER,it);try{const at=R.texture,rt=at.format,_t=at.type;if(rt!==gi&&ut.convert(rt)!==D.getParameter(D.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const ht=_t===rc&&(K.has("EXT_color_buffer_half_float")||de.isWebGL2&&K.has("EXT_color_buffer_float"));if(_t!==xr&&ut.convert(_t)!==D.getParameter(D.IMPLEMENTATION_COLOR_READ_TYPE)&&!(_t===Ps&&(de.isWebGL2||K.has("OES_texture_float")||K.has("WEBGL_color_buffer_float")))&&!ht){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Y>=0&&Y<=R.width-ge&&te>=0&&te<=R.height-me&&D.readPixels(Y,te,ge,me,ut.convert(rt),ut.convert(_t),Ve)}finally{const at=O!==null?Ie.get(O).__webglFramebuffer:null;le.bindFramebuffer(D.FRAMEBUFFER,at)}}},this.copyFramebufferToTexture=function(R,Y,te=0){const ge=Math.pow(2,-te),me=Math.floor(Y.image.width*ge),Ve=Math.floor(Y.image.height*ge);z.setTexture2D(Y,0),D.copyTexSubImage2D(D.TEXTURE_2D,te,0,0,R.x,R.y,me,Ve),le.unbindTexture()},this.copyTextureToTexture=function(R,Y,te,ge=0){const me=Y.image.width,Ve=Y.image.height,Xe=ut.convert(te.format),it=ut.convert(te.type);z.setTexture2D(te,0),D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,te.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,te.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,te.unpackAlignment),Y.isDataTexture?D.texSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,me,Ve,Xe,it,Y.image.data):Y.isCompressedTexture?D.compressedTexSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,Y.mipmaps[0].width,Y.mipmaps[0].height,Xe,Y.mipmaps[0].data):D.texSubImage2D(D.TEXTURE_2D,ge,R.x,R.y,Xe,it,Y.image),ge===0&&te.generateMipmaps&&D.generateMipmap(D.TEXTURE_2D),le.unbindTexture()},this.copyTextureToTexture3D=function(R,Y,te,ge,me=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Ve=R.max.x-R.min.x+1,Xe=R.max.y-R.min.y+1,it=R.max.z-R.min.z+1,at=ut.convert(ge.format),rt=ut.convert(ge.type);let _t;if(ge.isData3DTexture)z.setTexture3D(ge,0),_t=D.TEXTURE_3D;else if(ge.isDataArrayTexture)z.setTexture2DArray(ge,0),_t=D.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,ge.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ge.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,ge.unpackAlignment);const ht=D.getParameter(D.UNPACK_ROW_LENGTH),Kt=D.getParameter(D.UNPACK_IMAGE_HEIGHT),xn=D.getParameter(D.UNPACK_SKIP_PIXELS),sn=D.getParameter(D.UNPACK_SKIP_ROWS),In=D.getParameter(D.UNPACK_SKIP_IMAGES),Xt=te.isCompressedTexture?te.mipmaps[0]:te.image;D.pixelStorei(D.UNPACK_ROW_LENGTH,Xt.width),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Xt.height),D.pixelStorei(D.UNPACK_SKIP_PIXELS,R.min.x),D.pixelStorei(D.UNPACK_SKIP_ROWS,R.min.y),D.pixelStorei(D.UNPACK_SKIP_IMAGES,R.min.z),te.isDataTexture||te.isData3DTexture?D.texSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,rt,Xt.data):te.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),D.compressedTexSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,Xt.data)):D.texSubImage3D(_t,me,Y.x,Y.y,Y.z,Ve,Xe,it,at,rt,Xt),D.pixelStorei(D.UNPACK_ROW_LENGTH,ht),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Kt),D.pixelStorei(D.UNPACK_SKIP_PIXELS,xn),D.pixelStorei(D.UNPACK_SKIP_ROWS,sn),D.pixelStorei(D.UNPACK_SKIP_IMAGES,In),me===0&&ge.generateMipmaps&&D.generateMipmap(_t),le.unbindTexture()},this.initTexture=function(R){R.isCubeTexture?z.setTextureCube(R,0):R.isData3DTexture?z.setTexture3D(R,0):R.isDataArrayTexture||R.isCompressedArrayTexture?z.setTexture2DArray(R,0):z.setTexture2D(R,0),le.unbindTexture()},this.resetState=function(){C=0,T=0,O=null,le.reset(),Je.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Us}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===ZE?"display-p3":"srgb",n.unpackColorSpace=Gt.workingColorSpace===cp?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===on?lo:eI}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===lo?on:On}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class VMt extends yI{}VMt.prototype.isWebGL1Renderer=!0;class zMt extends rn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class HMt{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=db,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=zi()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,n,i){e*=this.stride,i*=n.stride;for(let s=0,r=this.stride;s<r;s++)this.array[e+s]=n.array[i+s];return this}set(e,n=0){return this.array.set(e,n),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=zi()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const n=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),i=new this.constructor(n,this.stride);return i.setUsage(this.usage),i}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=zi()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const Bn=new _e;class sy{constructor(e,n,i,s=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=n,this.offset=i,this.normalized=s}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let n=0,i=this.data.count;n<i;n++)Bn.fromBufferAttribute(this,n),Bn.applyMatrix4(e),this.setXYZ(n,Bn.x,Bn.y,Bn.z);return this}applyNormalMatrix(e){for(let n=0,i=this.count;n<i;n++)Bn.fromBufferAttribute(this,n),Bn.applyNormalMatrix(e),this.setXYZ(n,Bn.x,Bn.y,Bn.z);return this}transformDirection(e){for(let n=0,i=this.count;n<i;n++)Bn.fromBufferAttribute(this,n),Bn.transformDirection(e),this.setXYZ(n,Bn.x,Bn.y,Bn.z);return this}setX(e,n){return this.normalized&&(n=Ht(n,this.array)),this.data.array[e*this.data.stride+this.offset]=n,this}setY(e,n){return this.normalized&&(n=Ht(n,this.array)),this.data.array[e*this.data.stride+this.offset+1]=n,this}setZ(e,n){return this.normalized&&(n=Ht(n,this.array)),this.data.array[e*this.data.stride+this.offset+2]=n,this}setW(e,n){return this.normalized&&(n=Ht(n,this.array)),this.data.array[e*this.data.stride+this.offset+3]=n,this}getX(e){let n=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(n=ts(n,this.array)),n}getY(e){let n=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(n=ts(n,this.array)),n}getZ(e){let n=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(n=ts(n,this.array)),n}getW(e){let n=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(n=ts(n,this.array)),n}setXY(e,n,i){return e=e*this.data.stride+this.offset,this.normalized&&(n=Ht(n,this.array),i=Ht(i,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=i,this}setXYZ(e,n,i,s){return e=e*this.data.stride+this.offset,this.normalized&&(n=Ht(n,this.array),i=Ht(i,this.array),s=Ht(s,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=i,this.data.array[e+2]=s,this}setXYZW(e,n,i,s,r){return e=e*this.data.stride+this.offset,this.normalized&&(n=Ht(n,this.array),i=Ht(i,this.array),s=Ht(s,this.array),r=Ht(r,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=i,this.data.array[e+2]=s,this.data.array[e+3]=r,this}clone(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const n=[];for(let i=0;i<this.count;i++){const s=i*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)n.push(this.data.array[s+r])}return new Yn(new this.array.constructor(n),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new sy(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const n=[];for(let i=0;i<this.count;i++){const s=i*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)n.push(this.data.array[s+r])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:n,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}const dw=new _e,uw=new Wt,pw=new Wt,qMt=new _e,_w=new Rt,bd=new _e,ug=new fs,hw=new Rt,pg=new dp;class YMt extends Hn{constructor(e,n){super(e,n),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=KC,this.bindMatrix=new Rt,this.bindMatrixInverse=new Rt,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;this.boundingBox===null&&(this.boundingBox=new js),this.boundingBox.makeEmpty();const n=e.getAttribute("position");for(let i=0;i<n.count;i++)this.getVertexPosition(i,bd),this.boundingBox.expandByPoint(bd)}computeBoundingSphere(){const e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new fs),this.boundingSphere.makeEmpty();const n=e.getAttribute("position");for(let i=0;i<n.count;i++)this.getVertexPosition(i,bd),this.boundingSphere.expandByPoint(bd)}copy(e,n){return super.copy(e,n),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,n){const i=this.material,s=this.matrixWorld;i!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),ug.copy(this.boundingSphere),ug.applyMatrix4(s),e.ray.intersectsSphere(ug)!==!1&&(hw.copy(s).invert(),pg.copy(e.ray).applyMatrix4(hw),!(this.boundingBox!==null&&pg.intersectsBox(this.boundingBox)===!1)&&this._computeIntersections(e,n,pg)))}getVertexPosition(e,n){return super.getVertexPosition(e,n),this.applyBoneTransform(e,n),n}bind(e,n){this.skeleton=e,n===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),n=this.matrixWorld),this.bindMatrix.copy(n),this.bindMatrixInverse.copy(n).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new Wt,n=this.geometry.attributes.skinWeight;for(let i=0,s=n.count;i<s;i++){e.fromBufferAttribute(n,i);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),n.setXYZW(i,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===KC?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===tRt?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,n){const i=this.skeleton,s=this.geometry;uw.fromBufferAttribute(s.attributes.skinIndex,e),pw.fromBufferAttribute(s.attributes.skinWeight,e),dw.copy(n).applyMatrix4(this.bindMatrix),n.set(0,0,0);for(let r=0;r<4;r++){const o=pw.getComponent(r);if(o!==0){const a=uw.getComponent(r);_w.multiplyMatrices(i.bones[a].matrixWorld,i.boneInverses[a]),n.addScaledVector(qMt.copy(dw).applyMatrix4(_w),o)}}return n.applyMatrix4(this.bindMatrixInverse)}boneTransform(e,n){return console.warn("THREE.SkinnedMesh: .boneTransform() was renamed to .applyBoneTransform() in r151."),this.applyBoneTransform(e,n)}}class vI extends rn{constructor(){super(),this.isBone=!0,this.type="Bone"}}class $Mt extends Nn{constructor(e=null,n=1,i=1,s,r,o,a,l,u=yn,d=yn,h,f){super(null,o,a,l,u,d,s,r,h,f),this.isDataTexture=!0,this.image={data:e,width:n,height:i},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const fw=new Rt,WMt=new Rt;class ry{constructor(e=[],n=[]){this.uuid=zi(),this.bones=e.slice(0),this.boneInverses=n,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,n=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),n.length===0)this.calculateInverses();else if(e.length!==n.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let i=0,s=this.bones.length;i<s;i++)this.boneInverses.push(new Rt)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,n=this.bones.length;e<n;e++){const i=new Rt;this.bones[e]&&i.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(i)}}pose(){for(let e=0,n=this.bones.length;e<n;e++){const i=this.bones[e];i&&i.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,n=this.bones.length;e<n;e++){const i=this.bones[e];i&&(i.parent&&i.parent.isBone?(i.matrix.copy(i.parent.matrixWorld).invert(),i.matrix.multiply(i.matrixWorld)):i.matrix.copy(i.matrixWorld),i.matrix.decompose(i.position,i.quaternion,i.scale))}}update(){const e=this.bones,n=this.boneInverses,i=this.boneMatrices,s=this.boneTexture;for(let r=0,o=e.length;r<o;r++){const a=e[r]?e[r].matrixWorld:WMt;fw.multiplyMatrices(a,n[r]),fw.toArray(i,r*16)}s!==null&&(s.needsUpdate=!0)}clone(){return new ry(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);const n=new Float32Array(e*e*4);n.set(this.boneMatrices);const i=new $Mt(n,e,e,gi,Ps);return i.needsUpdate=!0,this.boneMatrices=n,this.boneTexture=i,this}getBoneByName(e){for(let n=0,i=this.bones.length;n<i;n++){const s=this.bones[n];if(s.name===e)return s}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,n){this.uuid=e.uuid;for(let i=0,s=e.bones.length;i<s;i++){const r=e.bones[i];let o=n[r];o===void 0&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),o=new vI),this.bones.push(o),this.boneInverses.push(new Rt().fromArray(e.boneInverses[i]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const n=this.bones,i=this.boneInverses;for(let s=0,r=n.length;s<r;s++){const o=n[s];e.bones.push(o.uuid);const a=i[s];e.boneInverses.push(a.toArray())}return e}}class hb extends Yn{constructor(e,n,i,s=1){super(e,n,i),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=s}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const $o=new Rt,mw=new Rt,Ed=[],gw=new js,KMt=new Rt,El=new Hn,yl=new fs;class jMt extends Hn{constructor(e,n,i){super(e,n),this.isInstancedMesh=!0,this.instanceMatrix=new hb(new Float32Array(i*16),16),this.instanceColor=null,this.count=i,this.boundingBox=null,this.boundingSphere=null;for(let s=0;s<i;s++)this.setMatrixAt(s,KMt)}computeBoundingBox(){const e=this.geometry,n=this.count;this.boundingBox===null&&(this.boundingBox=new js),e.boundingBox===null&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let i=0;i<n;i++)this.getMatrixAt(i,$o),gw.copy(e.boundingBox).applyMatrix4($o),this.boundingBox.union(gw)}computeBoundingSphere(){const e=this.geometry,n=this.count;this.boundingSphere===null&&(this.boundingSphere=new fs),e.boundingSphere===null&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let i=0;i<n;i++)this.getMatrixAt(i,$o),yl.copy(e.boundingSphere).applyMatrix4($o),this.boundingSphere.union(yl)}copy(e,n){return super.copy(e,n),this.instanceMatrix.copy(e.instanceMatrix),e.instanceColor!==null&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,n){n.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,n){n.fromArray(this.instanceMatrix.array,e*16)}raycast(e,n){const i=this.matrixWorld,s=this.count;if(El.geometry=this.geometry,El.material=this.material,El.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),yl.copy(this.boundingSphere),yl.applyMatrix4(i),e.ray.intersectsSphere(yl)!==!1))for(let r=0;r<s;r++){this.getMatrixAt(r,$o),mw.multiplyMatrices(i,$o),El.matrixWorld=mw,El.raycast(e,Ed);for(let o=0,a=Ed.length;o<a;o++){const l=Ed[o];l.instanceId=r,l.object=this,n.push(l)}Ed.length=0}}setColorAt(e,n){this.instanceColor===null&&(this.instanceColor=new hb(new Float32Array(this.instanceMatrix.count*3),3)),n.toArray(this.instanceColor.array,e*3)}setMatrixAt(e,n){n.toArray(this.instanceMatrix.array,e*16)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class SI extends Hi{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new gt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const bw=new _e,Ew=new _e,yw=new Rt,_g=new dp,yd=new fs;class oy extends rn{constructor(e=new ms,n=new SI){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,i=[0];for(let s=1,r=n.count;s<r;s++)bw.fromBufferAttribute(n,s-1),Ew.fromBufferAttribute(n,s),i[s]=i[s-1],i[s]+=bw.distanceTo(Ew);e.setAttribute("lineDistance",new Bs(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,n){const i=this.geometry,s=this.matrixWorld,r=e.params.Line.threshold,o=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),yd.copy(i.boundingSphere),yd.applyMatrix4(s),yd.radius+=r,e.ray.intersectsSphere(yd)===!1)return;yw.copy(s).invert(),_g.copy(e.ray).applyMatrix4(yw);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),l=a*a,u=new _e,d=new _e,h=new _e,f=new _e,_=this.isLineSegments?2:1,m=i.index,b=i.attributes.position;if(m!==null){const g=Math.max(0,o.start),y=Math.min(m.count,o.start+o.count);for(let v=g,S=y-1;v<S;v+=_){const C=m.getX(v),T=m.getX(v+1);if(u.fromBufferAttribute(b,C),d.fromBufferAttribute(b,T),_g.distanceSqToSegment(u,d,f,h)>l)continue;f.applyMatrix4(this.matrixWorld);const k=e.ray.origin.distanceTo(f);k<e.near||k>e.far||n.push({distance:k,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let v=g,S=y-1;v<S;v+=_){if(u.fromBufferAttribute(b,v),d.fromBufferAttribute(b,v+1),_g.distanceSqToSegment(u,d,f,h)>l)continue;f.applyMatrix4(this.matrixWorld);const T=e.ray.origin.distanceTo(f);T<e.near||T>e.far||n.push({distance:T,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const s=n[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}const vw=new _e,Sw=new _e;class QMt extends oy{constructor(e,n){super(e,n),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,i=[];for(let s=0,r=n.count;s<r;s+=2)vw.fromBufferAttribute(n,s),Sw.fromBufferAttribute(n,s+1),i[s]=s===0?0:i[s-1],i[s+1]=i[s]+vw.distanceTo(Sw);e.setAttribute("lineDistance",new Bs(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class XMt extends oy{constructor(e,n){super(e,n),this.isLineLoop=!0,this.type="LineLoop"}}class TI extends Hi{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new gt(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const Tw=new Rt,fb=new dp,vd=new fs,Sd=new _e;class ZMt extends rn{constructor(e=new ms,n=new TI){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,n){const i=this.geometry,s=this.matrixWorld,r=e.params.Points.threshold,o=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),vd.copy(i.boundingSphere),vd.applyMatrix4(s),vd.radius+=r,e.ray.intersectsSphere(vd)===!1)return;Tw.copy(s).invert(),fb.copy(e.ray).applyMatrix4(Tw);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),l=a*a,u=i.index,h=i.attributes.position;if(u!==null){const f=Math.max(0,o.start),_=Math.min(u.count,o.start+o.count);for(let m=f,E=_;m<E;m++){const b=u.getX(m);Sd.fromBufferAttribute(h,b),xw(Sd,b,l,s,e,n,this)}}else{const f=Math.max(0,o.start),_=Math.min(h.count,o.start+o.count);for(let m=f,E=_;m<E;m++)Sd.fromBufferAttribute(h,m),xw(Sd,m,l,s,e,n,this)}}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const s=n[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}function xw(t,e,n,i,s,r,o){const a=fb.distanceSqToPoint(t);if(a<n){const l=new _e;fb.closestPointToPoint(t,l),l.applyMatrix4(i);const u=s.ray.origin.distanceTo(l);if(u<s.near||u>s.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class ay extends Hi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new gt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new gt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=XE,this.normalScale=new It(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Qs extends ay{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new It(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Ln(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(n){this.ior=(1+.4*n)/(1-.4*n)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new gt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new gt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new gt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Cw extends Hi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new gt(16777215),this.specular=new gt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new gt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=XE,this.normalScale=new It(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=jE,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function Td(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function JMt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function e2t(t){function e(s,r){return t[s]-t[r]}const n=t.length,i=new Array(n);for(let s=0;s!==n;++s)i[s]=s;return i.sort(e),i}function ww(t,e,n){const i=t.length,s=new t.constructor(i);for(let r=0,o=0;o!==i;++r){const a=n[r]*e;for(let l=0;l!==e;++l)s[o++]=t[a+l]}return s}function xI(t,e,n,i){let s=1,r=t[0];for(;r!==void 0&&r[i]===void 0;)r=t[s++];if(r===void 0)return;let o=r[i];if(o!==void 0)if(Array.isArray(o))do o=r[i],o!==void 0&&(e.push(r.time),n.push.apply(n,o)),r=t[s++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[i],o!==void 0&&(e.push(r.time),o.toArray(n,n.length)),r=t[s++];while(r!==void 0);else do o=r[i],o!==void 0&&(e.push(r.time),n.push(o)),r=t[s++];while(r!==void 0)}class vc{constructor(e,n,i,s){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=s!==void 0?s:new n.constructor(i),this.sampleValues=n,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const n=this.parameterPositions;let i=this._cachedIndex,s=n[i],r=n[i-1];e:{t:{let o;n:{i:if(!(e<s)){for(let a=i+2;;){if(s===void 0){if(e<r)break i;return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}if(i===a)break;if(r=s,s=n[++i],e<s)break t}o=n.length;break n}if(!(e>=r)){const a=n[1];e<a&&(i=2,r=a);for(let l=i-2;;){if(r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===l)break;if(s=r,r=n[--i-1],e>=r)break t}o=i,i=0;break n}break e}for(;i<o;){const a=i+o>>>1;e<n[a]?o=a:i=a+1}if(s=n[i],r=n[i-1],r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(s===void 0)return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}this._cachedIndex=i,this.intervalChanged_(i,r,s)}return this.interpolate_(i,r,e,s)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const n=this.resultBuffer,i=this.sampleValues,s=this.valueSize,r=e*s;for(let o=0;o!==s;++o)n[o]=i[r+o];return n}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class t2t extends vc{constructor(e,n,i,s){super(e,n,i,s),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:y1,endingEnd:y1}}intervalChanged_(e,n,i){const s=this.parameterPositions;let r=e-2,o=e+1,a=s[r],l=s[o];if(a===void 0)switch(this.getSettings_().endingStart){case v1:r=e,a=2*n-i;break;case S1:r=s.length-2,a=n+s[r]-s[r+1];break;default:r=e,a=i}if(l===void 0)switch(this.getSettings_().endingEnd){case v1:o=e,l=2*i-n;break;case S1:o=1,l=i+s[1]-s[0];break;default:o=e-1,l=n}const u=(i-n)*.5,d=this.valueSize;this._weightPrev=u/(n-a),this._weightNext=u/(l-i),this._offsetPrev=r*d,this._offsetNext=o*d}interpolate_(e,n,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=e*a,u=l-a,d=this._offsetPrev,h=this._offsetNext,f=this._weightPrev,_=this._weightNext,m=(i-n)/(s-n),E=m*m,b=E*m,g=-f*b+2*f*E-f*m,y=(1+f)*b+(-1.5-2*f)*E+(-.5+f)*m+1,v=(-1-_)*b+(1.5+_)*E+.5*m,S=_*b-_*E;for(let C=0;C!==a;++C)r[C]=g*o[d+C]+y*o[u+C]+v*o[l+C]+S*o[h+C];return r}}class n2t extends vc{constructor(e,n,i,s){super(e,n,i,s)}interpolate_(e,n,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=e*a,u=l-a,d=(i-n)/(s-n),h=1-d;for(let f=0;f!==a;++f)r[f]=o[u+f]*h+o[l+f]*d;return r}}class i2t extends vc{constructor(e,n,i,s){super(e,n,i,s)}interpolate_(e){return this.copySampleValue_(e-1)}}class gs{constructor(e,n,i,s){if(e===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(n===void 0||n.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=Td(n,this.TimeBufferType),this.values=Td(i,this.ValueBufferType),this.setInterpolation(s||this.DefaultInterpolation)}static toJSON(e){const n=e.constructor;let i;if(n.toJSON!==this.toJSON)i=n.toJSON(e);else{i={name:e.name,times:Td(e.times,Array),values:Td(e.values,Array)};const s=e.getInterpolation();s!==e.DefaultInterpolation&&(i.interpolation=s)}return i.type=e.ValueTypeName,i}InterpolantFactoryMethodDiscrete(e){return new i2t(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new n2t(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new t2t(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let n;switch(e){case oc:n=this.InterpolantFactoryMethodDiscrete;break;case Ra:n=this.InterpolantFactoryMethodLinear;break;case Vm:n=this.InterpolantFactoryMethodSmooth;break}if(n===void 0){const i="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(i);return console.warn("THREE.KeyframeTrack:",i),this}return this.createInterpolant=n,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return oc;case this.InterpolantFactoryMethodLinear:return Ra;case this.InterpolantFactoryMethodSmooth:return Vm}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){const n=this.times;for(let i=0,s=n.length;i!==s;++i)n[i]+=e}return this}scale(e){if(e!==1){const n=this.times;for(let i=0,s=n.length;i!==s;++i)n[i]*=e}return this}trim(e,n){const i=this.times,s=i.length;let r=0,o=s-1;for(;r!==s&&i[r]<e;)++r;for(;o!==-1&&i[o]>n;)--o;if(++o,r!==0||o!==s){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=i.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,s=this.values,r=i.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=i[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(s!==void 0&&JMt(s))for(let a=0,l=s.length;a!==l;++a){const u=s[a];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,u),e=!1;break}}return e}optimize(){const e=this.times.slice(),n=this.values.slice(),i=this.getValueSize(),s=this.getInterpolation()===Vm,r=e.length-1;let o=1;for(let a=1;a<r;++a){let l=!1;const u=e[a],d=e[a+1];if(u!==d&&(a!==1||u!==e[0]))if(s)l=!0;else{const h=a*i,f=h-i,_=h+i;for(let m=0;m!==i;++m){const E=n[h+m];if(E!==n[f+m]||E!==n[_+m]){l=!0;break}}}if(l){if(a!==o){e[o]=e[a];const h=a*i,f=o*i;for(let _=0;_!==i;++_)n[f+_]=n[h+_]}++o}}if(r>0){e[o]=e[r];for(let a=r*i,l=o*i,u=0;u!==i;++u)n[l+u]=n[a+u];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=n.slice(0,o*i)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),i=this.constructor,s=new i(this.name,e,n);return s.createInterpolant=this.createInterpolant,s}}gs.prototype.TimeBufferType=Float32Array;gs.prototype.ValueBufferType=Float32Array;gs.prototype.DefaultInterpolation=Ra;class Qa extends gs{}Qa.prototype.ValueTypeName="bool";Qa.prototype.ValueBufferType=Array;Qa.prototype.DefaultInterpolation=oc;Qa.prototype.InterpolantFactoryMethodLinear=void 0;Qa.prototype.InterpolantFactoryMethodSmooth=void 0;class CI extends gs{}CI.prototype.ValueTypeName="color";class Oa extends gs{}Oa.prototype.ValueTypeName="number";class s2t extends vc{constructor(e,n,i,s){super(e,n,i,s)}interpolate_(e,n,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(i-n)/(s-n);let u=e*a;for(let d=u+a;u!==d;u+=4)Ir.slerpFlat(r,0,o,u-a,o,u,l);return r}}class bo extends gs{InterpolantFactoryMethodLinear(e){return new s2t(this.times,this.values,this.getValueSize(),e)}}bo.prototype.ValueTypeName="quaternion";bo.prototype.DefaultInterpolation=Ra;bo.prototype.InterpolantFactoryMethodSmooth=void 0;class Xa extends gs{}Xa.prototype.ValueTypeName="string";Xa.prototype.ValueBufferType=Array;Xa.prototype.DefaultInterpolation=oc;Xa.prototype.InterpolantFactoryMethodLinear=void 0;Xa.prototype.InterpolantFactoryMethodSmooth=void 0;class Ia extends gs{}Ia.prototype.ValueTypeName="vector";class r2t{constructor(e,n=-1,i,s=dRt){this.name=e,this.tracks=i,this.duration=n,this.blendMode=s,this.uuid=zi(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],i=e.tracks,s=1/(e.fps||1);for(let o=0,a=i.length;o!==a;++o)n.push(a2t(i[o]).scale(s));const r=new this(e.name,e.duration,n,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const n=[],i=e.tracks,s={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=i.length;r!==o;++r)n.push(gs.toJSON(i[r]));return s}static CreateFromMorphTargetSequence(e,n,i,s){const r=n.length,o=[];for(let a=0;a<r;a++){let l=[],u=[];l.push((a+r-1)%r,a,(a+1)%r),u.push(0,1,0);const d=e2t(l);l=ww(l,1,d),u=ww(u,1,d),!s&&l[0]===0&&(l.push(r),u.push(u[0])),o.push(new Oa(".morphTargetInfluences["+n[a].name+"]",l,u).scale(1/i))}return new this(e,-1,o)}static findByName(e,n){let i=e;if(!Array.isArray(e)){const s=e;i=s.geometry&&s.geometry.animations||s.animations}for(let s=0;s<i.length;s++)if(i[s].name===n)return i[s];return null}static CreateClipsFromMorphTargetSequences(e,n,i){const s={},r=/^([\w-]*?)([\d]+)$/;for(let a=0,l=e.length;a<l;a++){const u=e[a],d=u.name.match(r);if(d&&d.length>1){const h=d[1];let f=s[h];f||(s[h]=f=[]),f.push(u)}}const o=[];for(const a in s)o.push(this.CreateFromMorphTargetSequence(a,s[a],n,i));return o}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(h,f,_,m,E){if(_.length!==0){const b=[],g=[];xI(_,b,g,m),b.length!==0&&E.push(new h(f,b,g))}},s=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const u=e.hierarchy||[];for(let h=0;h<u.length;h++){const f=u[h].keys;if(!(!f||f.length===0))if(f[0].morphTargets){const _={};let m;for(m=0;m<f.length;m++)if(f[m].morphTargets)for(let E=0;E<f[m].morphTargets.length;E++)_[f[m].morphTargets[E]]=-1;for(const E in _){const b=[],g=[];for(let y=0;y!==f[m].morphTargets.length;++y){const v=f[m];b.push(v.time),g.push(v.morphTarget===E?1:0)}s.push(new Oa(".morphTargetInfluence["+E+"]",b,g))}l=_.length*o}else{const _=".bones["+n[h].name+"]";i(Ia,_+".position",f,"pos",s),i(bo,_+".quaternion",f,"rot",s),i(Ia,_+".scale",f,"scl",s)}}return s.length===0?null:new this(r,l,s,a)}resetDuration(){const e=this.tracks;let n=0;for(let i=0,s=e.length;i!==s;++i){const r=this.tracks[i];n=Math.max(n,r.times[r.times.length-1])}return this.duration=n,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let n=0;n<this.tracks.length;n++)e=e&&this.tracks[n].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let n=0;n<this.tracks.length;n++)e.push(this.tracks[n].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function o2t(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Oa;case"vector":case"vector2":case"vector3":case"vector4":return Ia;case"color":return CI;case"quaternion":return bo;case"bool":case"boolean":return Qa;case"string":return Xa}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function a2t(t){if(t.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=o2t(t.type);if(t.times===void 0){const n=[],i=[];xI(t.keys,n,i,"value"),t.times=n,t.values=i}return e.parse!==void 0?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const Ma={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class l2t{constructor(e,n,i){const s=this;let r=!1,o=0,a=0,l;const u=[];this.onStart=void 0,this.onLoad=e,this.onProgress=n,this.onError=i,this.itemStart=function(d){a++,r===!1&&s.onStart!==void 0&&s.onStart(d,o,a),r=!0},this.itemEnd=function(d){o++,s.onProgress!==void 0&&s.onProgress(d,o,a),o===a&&(r=!1,s.onLoad!==void 0&&s.onLoad())},this.itemError=function(d){s.onError!==void 0&&s.onError(d)},this.resolveURL=function(d){return l?l(d):d},this.setURLModifier=function(d){return l=d,this},this.addHandler=function(d,h){return u.push(d,h),this},this.removeHandler=function(d){const h=u.indexOf(d);return h!==-1&&u.splice(h,2),this},this.getHandler=function(d){for(let h=0,f=u.length;h<f;h+=2){const _=u[h],m=u[h+1];if(_.global&&(_.lastIndex=0),_.test(d))return m}return null}}}const c2t=new l2t;class Za{constructor(e){this.manager=e!==void 0?e:c2t,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,n){const i=this;return new Promise(function(s,r){i.load(e,s,n,r)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Za.DEFAULT_MATERIAL_NAME="__DEFAULT";const Os={};class d2t extends Error{constructor(e,n){super(e),this.response=n}}class wI extends Za{constructor(e){super(e)}load(e,n,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=Ma.get(e);if(r!==void 0)return this.manager.itemStart(e),setTimeout(()=>{n&&n(r),this.manager.itemEnd(e)},0),r;if(Os[e]!==void 0){Os[e].push({onLoad:n,onProgress:i,onError:s});return}Os[e]=[],Os[e].push({onLoad:n,onProgress:i,onError:s});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(u=>{if(u.status===200||u.status===0){if(u.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||u.body===void 0||u.body.getReader===void 0)return u;const d=Os[e],h=u.body.getReader(),f=u.headers.get("Content-Length")||u.headers.get("X-File-Size"),_=f?parseInt(f):0,m=_!==0;let E=0;const b=new ReadableStream({start(g){y();function y(){h.read().then(({done:v,value:S})=>{if(v)g.close();else{E+=S.byteLength;const C=new ProgressEvent("progress",{lengthComputable:m,loaded:E,total:_});for(let T=0,O=d.length;T<O;T++){const k=d[T];k.onProgress&&k.onProgress(C)}g.enqueue(S),y()}})}}});return new Response(b)}else throw new d2t(`fetch for "${u.url}" responded with ${u.status}: ${u.statusText}`,u)}).then(u=>{switch(l){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(d=>new DOMParser().parseFromString(d,a));case"json":return u.json();default:if(a===void 0)return u.text();{const h=/charset="?([^;"\s]*)"?/i.exec(a),f=h&&h[1]?h[1].toLowerCase():void 0,_=new TextDecoder(f);return u.arrayBuffer().then(m=>_.decode(m))}}}).then(u=>{Ma.add(e,u);const d=Os[e];delete Os[e];for(let h=0,f=d.length;h<f;h++){const _=d[h];_.onLoad&&_.onLoad(u)}}).catch(u=>{const d=Os[e];if(d===void 0)throw this.manager.itemError(e),u;delete Os[e];for(let h=0,f=d.length;h<f;h++){const _=d[h];_.onError&&_.onError(u)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class u2t extends Za{constructor(e){super(e)}load(e,n,i,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){n&&n(o),r.manager.itemEnd(e)},0),o;const a=ac("img");function l(){d(),Ma.add(e,this),n&&n(this),r.manager.itemEnd(e)}function u(h){d(),s&&s(h),r.manager.itemError(e),r.manager.itemEnd(e)}function d(){a.removeEventListener("load",l,!1),a.removeEventListener("error",u,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",u,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class RI extends Za{constructor(e){super(e)}load(e,n,i,s){const r=new Nn,o=new u2t(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,n!==void 0&&n(r)},i,s),r}}class _p extends rn{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new gt(e),this.intensity=n}dispose(){}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),n}}const hg=new Rt,Rw=new _e,Aw=new _e;class ly{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new It(512,512),this.map=null,this.mapPass=null,this.matrix=new Rt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new ey,this._frameExtents=new It(1,1),this._viewportCount=1,this._viewports=[new Wt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,i=this.matrix;Rw.setFromMatrixPosition(e.matrixWorld),n.position.copy(Rw),Aw.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(Aw),n.updateMatrixWorld(),hg.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(hg),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(hg)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class p2t extends ly{constructor(){super(new zn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const n=this.camera,i=Aa*2*e.angle*this.focus,s=this.mapSize.width/this.mapSize.height,r=e.distance||n.far;(i!==n.fov||s!==n.aspect||r!==n.far)&&(n.fov=i,n.aspect=s,n.far=r,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class _2t extends _p{constructor(e,n,i=0,s=Math.PI/3,r=0,o=2){super(e,n),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(rn.DEFAULT_UP),this.updateMatrix(),this.target=new rn,this.distance=i,this.angle=s,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new p2t}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Nw=new Rt,vl=new _e,fg=new _e;class h2t extends ly{constructor(){super(new zn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new It(4,2),this._viewportCount=6,this._viewports=[new Wt(2,1,1,1),new Wt(0,1,1,1),new Wt(3,1,1,1),new Wt(1,1,1,1),new Wt(3,0,1,1),new Wt(1,0,1,1)],this._cubeDirections=[new _e(1,0,0),new _e(-1,0,0),new _e(0,0,1),new _e(0,0,-1),new _e(0,1,0),new _e(0,-1,0)],this._cubeUps=[new _e(0,1,0),new _e(0,1,0),new _e(0,1,0),new _e(0,1,0),new _e(0,0,1),new _e(0,0,-1)]}updateMatrices(e,n=0){const i=this.camera,s=this.matrix,r=e.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),vl.setFromMatrixPosition(e.matrixWorld),i.position.copy(vl),fg.copy(i.position),fg.add(this._cubeDirections[n]),i.up.copy(this._cubeUps[n]),i.lookAt(fg),i.updateMatrixWorld(),s.makeTranslation(-vl.x,-vl.y,-vl.z),Nw.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Nw)}}class f2t extends _p{constructor(e,n,i=0,s=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=s,this.shadow=new h2t}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class m2t extends ly{constructor(){super(new ny(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class AI extends _p{constructor(e,n){super(e,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(rn.DEFAULT_UP),this.updateMatrix(),this.target=new rn,this.shadow=new m2t}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class g2t extends _p{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class Gl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";for(let i=0,s=e.length;i<s;i++)n+=String.fromCharCode(e[i]);try{return decodeURIComponent(escape(n))}catch{return n}}static extractUrlBase(e){const n=e.lastIndexOf("/");return n===-1?"./":e.slice(0,n+1)}static resolveURL(e,n){return typeof e!="string"||e===""?"":(/^https?:\/\//i.test(n)&&/^\//.test(e)&&(n=n.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:n+e)}}class b2t extends Za{constructor(e){super(e),this.isImageBitmapLoader=!0,typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,n,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){n&&n(o),r.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(l){Ma.add(e,l),n&&n(l),r.manager.itemEnd(e)}).catch(function(l){s&&s(l),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const cy="\\[\\]\\.:\\/",E2t=new RegExp("["+cy+"]","g"),dy="[^"+cy+"]",y2t="[^"+cy.replace("\\.","")+"]",v2t=/((?:WC+[\/:])*)/.source.replace("WC",dy),S2t=/(WCOD+)?/.source.replace("WCOD",y2t),T2t=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",dy),x2t=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",dy),C2t=new RegExp("^"+v2t+S2t+T2t+x2t+"$"),w2t=["material","materials","bones","map"];class R2t{constructor(e,n,i){const s=i||zt.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,s)}getValue(e,n){this.bind();const i=this._targetGroup.nCachedObjects_,s=this._bindings[i];s!==void 0&&s.getValue(e,n)}setValue(e,n){const i=this._bindings;for(let s=this._targetGroup.nCachedObjects_,r=i.length;s!==r;++s)i[s].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,i=e.length;n!==i;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,i=e.length;n!==i;++n)e[n].unbind()}}class zt{constructor(e,n,i){this.path=n,this.parsedPath=i||zt.parseTrackName(n),this.node=zt.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,i){return e&&e.isAnimationObjectGroup?new zt.Composite(e,n,i):new zt(e,n,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(E2t,"")}static parseTrackName(e){const n=C2t.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const i={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){const r=i.nodeName.substring(s+1);w2t.indexOf(r)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=r)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const i=e.skeleton.getBoneByName(n);if(i!==void 0)return i}if(e.children){const i=function(r){for(let o=0;o<r.length;o++){const a=r[o];if(a.name===n||a.uuid===n)return a;const l=i(a.children);if(l)return l}return null},s=i(e.children);if(s)return s}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,n){e[n]=this.targetObject[this.propertyName]}_getValue_array(e,n){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)e[n++]=i[s]}_getValue_arrayElement(e,n){e[n]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,n){this.resolvedProperty.toArray(e,n)}_setValue_direct(e,n){this.targetObject[this.propertyName]=e[n]}_setValue_direct_setNeedsUpdate(e,n){this.targetObject[this.propertyName]=e[n],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,n){this.targetObject[this.propertyName]=e[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,n){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[n++]}_setValue_array_setNeedsUpdate(e,n){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[n++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,n){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[n++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,n){this.resolvedProperty[this.propertyIndex]=e[n]}_setValue_arrayElement_setNeedsUpdate(e,n){this.resolvedProperty[this.propertyIndex]=e[n],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,n){this.resolvedProperty[this.propertyIndex]=e[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,n){this.resolvedProperty.fromArray(e,n)}_setValue_fromArray_setNeedsUpdate(e,n){this.resolvedProperty.fromArray(e,n),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,n){this.resolvedProperty.fromArray(e,n),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,n){this.bind(),this.getValue(e,n)}_setValue_unbound(e,n){this.bind(),this.setValue(e,n)}bind(){let e=this.node;const n=this.parsedPath,i=n.objectName,s=n.propertyName;let r=n.propertyIndex;if(e||(e=zt.findNode(this.rootNode,n.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e){console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");return}if(i){let u=n.objectIndex;switch(i){case"materials":if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}e=e.material.materials;break;case"bones":if(!e.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}e=e.skeleton.bones;for(let d=0;d<e.length;d++)if(e[d].name===u){u=d;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.map){console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);return}e=e.material.map;break;default:if(e[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}e=e[i]}if(u!==void 0){if(e[u]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);return}e=e[u]}}const o=e[s];if(o===void 0){const u=n.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+u+"."+s+" but it wasn't found.",e);return}let a=this.Versioning.None;this.targetObject=e,e.needsUpdate!==void 0?a=this.Versioning.NeedsUpdate:e.matrixWorldNeedsUpdate!==void 0&&(a=this.Versioning.MatrixWorldNeedsUpdate);let l=this.BindingType.Direct;if(r!==void 0){if(s==="morphTargetInfluences"){if(!e.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(!e.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}e.morphTargetDictionary[r]!==void 0&&(r=e.morphTargetDictionary[r])}l=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=r}else o.fromArray!==void 0&&o.toArray!==void 0?(l=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(l=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=s;this.getValue=this.GetterByBindingType[l],this.setValue=this.SetterByBindingTypeAndVersioning[l][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}zt.Composite=R2t;zt.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};zt.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};zt.prototype.GetterByBindingType=[zt.prototype._getValue_direct,zt.prototype._getValue_array,zt.prototype._getValue_arrayElement,zt.prototype._getValue_toArray];zt.prototype.SetterByBindingTypeAndVersioning=[[zt.prototype._setValue_direct,zt.prototype._setValue_direct_setNeedsUpdate,zt.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[zt.prototype._setValue_array,zt.prototype._setValue_array_setNeedsUpdate,zt.prototype._setValue_array_setMatrixWorldNeedsUpdate],[zt.prototype._setValue_arrayElement,zt.prototype._setValue_arrayElement_setNeedsUpdate,zt.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[zt.prototype._setValue_fromArray,zt.prototype._setValue_fromArray_setNeedsUpdate,zt.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:KE}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=KE);function Ow(t,e){if(e===uRt)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e===cb||e===JO){let n=t.getIndex();if(n===null){const o=[],a=t.getAttribute("position");if(a!==void 0){for(let l=0;l<a.count;l++)o.push(l);t.setIndex(o),n=t.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t}const i=n.count-2,s=[];if(e===cb)for(let o=1;o<=i;o++)s.push(n.getX(0)),s.push(n.getX(o)),s.push(n.getX(o+1));else for(let o=0;o<i;o++)o%2===0?(s.push(n.getX(o)),s.push(n.getX(o+1)),s.push(n.getX(o+2))):(s.push(n.getX(o+2)),s.push(n.getX(o+1)),s.push(n.getX(o)));s.length/3!==i&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const r=t.clone();return r.setIndex(s),r.clearGroups(),r}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t}class A2t extends Za{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(n){return new D2t(n)}),this.register(function(n){return new z2t(n)}),this.register(function(n){return new H2t(n)}),this.register(function(n){return new q2t(n)}),this.register(function(n){return new L2t(n)}),this.register(function(n){return new P2t(n)}),this.register(function(n){return new U2t(n)}),this.register(function(n){return new F2t(n)}),this.register(function(n){return new M2t(n)}),this.register(function(n){return new B2t(n)}),this.register(function(n){return new k2t(n)}),this.register(function(n){return new V2t(n)}),this.register(function(n){return new G2t(n)}),this.register(function(n){return new O2t(n)}),this.register(function(n){return new Y2t(n)}),this.register(function(n){return new $2t(n)})}load(e,n,i,s){const r=this;let o;if(this.resourcePath!=="")o=this.resourcePath;else if(this.path!==""){const u=Gl.extractUrlBase(e);o=Gl.resolveURL(u,this.path)}else o=Gl.extractUrlBase(e);this.manager.itemStart(e);const a=function(u){s?s(u):console.error(u),r.manager.itemError(e),r.manager.itemEnd(e)},l=new wI(this.manager);l.setPath(this.path),l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,function(u){try{r.parse(u,o,function(d){n(d),r.manager.itemEnd(e)},a)}catch(d){a(d)}},i,a)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return this.pluginCallbacks.indexOf(e)===-1&&this.pluginCallbacks.push(e),this}unregister(e){return this.pluginCallbacks.indexOf(e)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,n,i,s){let r;const o={},a={},l=new TextDecoder;if(typeof e=="string")r=JSON.parse(e);else if(e instanceof ArrayBuffer)if(l.decode(new Uint8Array(e,0,4))===NI){try{o[Ot.KHR_BINARY_GLTF]=new W2t(e)}catch(h){s&&s(h);return}r=JSON.parse(o[Ot.KHR_BINARY_GLTF].content)}else r=JSON.parse(l.decode(e));else r=e;if(r.asset===void 0||r.asset.version[0]<2){s&&s(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const u=new oDt(r,{path:n||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});u.fileLoader.setRequestHeader(this.requestHeader);for(let d=0;d<this.pluginCallbacks.length;d++){const h=this.pluginCallbacks[d](u);h.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[h.name]=h,o[h.name]=!0}if(r.extensionsUsed)for(let d=0;d<r.extensionsUsed.length;++d){const h=r.extensionsUsed[d],f=r.extensionsRequired||[];switch(h){case Ot.KHR_MATERIALS_UNLIT:o[h]=new I2t;break;case Ot.KHR_DRACO_MESH_COMPRESSION:o[h]=new K2t(r,this.dracoLoader);break;case Ot.KHR_TEXTURE_TRANSFORM:o[h]=new j2t;break;case Ot.KHR_MESH_QUANTIZATION:o[h]=new Q2t;break;default:f.indexOf(h)>=0&&a[h]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}u.setExtensions(o),u.setPlugins(a),u.parse(i,s)}parseAsync(e,n){const i=this;return new Promise(function(s,r){i.parse(e,n,s,r)})}}function N2t(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const Ot={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class O2t{constructor(e){this.parser=e,this.name=Ot.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,n=this.parser.json.nodes||[];for(let i=0,s=n.length;i<s;i++){const r=n[i];r.extensions&&r.extensions[this.name]&&r.extensions[this.name].light!==void 0&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){const n=this.parser,i="light:"+e;let s=n.cache.get(i);if(s)return s;const r=n.json,l=((r.extensions&&r.extensions[this.name]||{}).lights||[])[e];let u;const d=new gt(16777215);l.color!==void 0&&d.setRGB(l.color[0],l.color[1],l.color[2],On);const h=l.range!==void 0?l.range:0;switch(l.type){case"directional":u=new AI(d),u.target.position.set(0,0,-1),u.add(u.target);break;case"point":u=new f2t(d),u.distance=h;break;case"spot":u=new _2t(d),u.distance=h,l.spot=l.spot||{},l.spot.innerConeAngle=l.spot.innerConeAngle!==void 0?l.spot.innerConeAngle:0,l.spot.outerConeAngle=l.spot.outerConeAngle!==void 0?l.spot.outerConeAngle:Math.PI/4,u.angle=l.spot.outerConeAngle,u.penumbra=1-l.spot.innerConeAngle/l.spot.outerConeAngle,u.target.position.set(0,0,-1),u.add(u.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+l.type)}return u.position.set(0,0,0),u.decay=2,fr(u,l),l.intensity!==void 0&&(u.intensity=l.intensity),u.name=n.createUniqueName(l.name||"light_"+e),s=Promise.resolve(u),n.cache.add(i,s),s}getDependency(e,n){if(e==="light")return this._loadLight(n)}createNodeAttachment(e){const n=this,i=this.parser,r=i.json.nodes[e],a=(r.extensions&&r.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(l){return i._getNodeRef(n.cache,a,l)})}}class I2t{constructor(){this.name=Ot.KHR_MATERIALS_UNLIT}getMaterialType(){return Er}extendParams(e,n,i){const s=[];e.color=new gt(1,1,1),e.opacity=1;const r=n.pbrMetallicRoughness;if(r){if(Array.isArray(r.baseColorFactor)){const o=r.baseColorFactor;e.color.setRGB(o[0],o[1],o[2],On),e.opacity=o[3]}r.baseColorTexture!==void 0&&s.push(i.assignTexture(e,"map",r.baseColorTexture,on))}return Promise.all(s)}}class M2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,n){const s=this.parser.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=s.extensions[this.name].emissiveStrength;return r!==void 0&&(n.emissiveIntensity=r),Promise.resolve()}}class D2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];if(o.clearcoatFactor!==void 0&&(n.clearcoat=o.clearcoatFactor),o.clearcoatTexture!==void 0&&r.push(i.assignTexture(n,"clearcoatMap",o.clearcoatTexture)),o.clearcoatRoughnessFactor!==void 0&&(n.clearcoatRoughness=o.clearcoatRoughnessFactor),o.clearcoatRoughnessTexture!==void 0&&r.push(i.assignTexture(n,"clearcoatRoughnessMap",o.clearcoatRoughnessTexture)),o.clearcoatNormalTexture!==void 0&&(r.push(i.assignTexture(n,"clearcoatNormalMap",o.clearcoatNormalTexture)),o.clearcoatNormalTexture.scale!==void 0)){const a=o.clearcoatNormalTexture.scale;n.clearcoatNormalScale=new It(a,a)}return Promise.all(r)}}class k2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.iridescenceFactor!==void 0&&(n.iridescence=o.iridescenceFactor),o.iridescenceTexture!==void 0&&r.push(i.assignTexture(n,"iridescenceMap",o.iridescenceTexture)),o.iridescenceIor!==void 0&&(n.iridescenceIOR=o.iridescenceIor),n.iridescenceThicknessRange===void 0&&(n.iridescenceThicknessRange=[100,400]),o.iridescenceThicknessMinimum!==void 0&&(n.iridescenceThicknessRange[0]=o.iridescenceThicknessMinimum),o.iridescenceThicknessMaximum!==void 0&&(n.iridescenceThicknessRange[1]=o.iridescenceThicknessMaximum),o.iridescenceThicknessTexture!==void 0&&r.push(i.assignTexture(n,"iridescenceThicknessMap",o.iridescenceThicknessTexture)),Promise.all(r)}}class L2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_SHEEN}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[];n.sheenColor=new gt(0,0,0),n.sheenRoughness=0,n.sheen=1;const o=s.extensions[this.name];if(o.sheenColorFactor!==void 0){const a=o.sheenColorFactor;n.sheenColor.setRGB(a[0],a[1],a[2],On)}return o.sheenRoughnessFactor!==void 0&&(n.sheenRoughness=o.sheenRoughnessFactor),o.sheenColorTexture!==void 0&&r.push(i.assignTexture(n,"sheenColorMap",o.sheenColorTexture,on)),o.sheenRoughnessTexture!==void 0&&r.push(i.assignTexture(n,"sheenRoughnessMap",o.sheenRoughnessTexture)),Promise.all(r)}}class P2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.transmissionFactor!==void 0&&(n.transmission=o.transmissionFactor),o.transmissionTexture!==void 0&&r.push(i.assignTexture(n,"transmissionMap",o.transmissionTexture)),Promise.all(r)}}class U2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_VOLUME}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];n.thickness=o.thicknessFactor!==void 0?o.thicknessFactor:0,o.thicknessTexture!==void 0&&r.push(i.assignTexture(n,"thicknessMap",o.thicknessTexture)),n.attenuationDistance=o.attenuationDistance||1/0;const a=o.attenuationColor||[1,1,1];return n.attenuationColor=new gt().setRGB(a[0],a[1],a[2],On),Promise.all(r)}}class F2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_IOR}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const s=this.parser.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=s.extensions[this.name];return n.ior=r.ior!==void 0?r.ior:1.5,Promise.resolve()}}class B2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_SPECULAR}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];n.specularIntensity=o.specularFactor!==void 0?o.specularFactor:1,o.specularTexture!==void 0&&r.push(i.assignTexture(n,"specularIntensityMap",o.specularTexture));const a=o.specularColorFactor||[1,1,1];return n.specularColor=new gt().setRGB(a[0],a[1],a[2],On),o.specularColorTexture!==void 0&&r.push(i.assignTexture(n,"specularColorMap",o.specularColorTexture,on)),Promise.all(r)}}class G2t{constructor(e){this.parser=e,this.name=Ot.EXT_MATERIALS_BUMP}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return n.bumpScale=o.bumpFactor!==void 0?o.bumpFactor:1,o.bumpTexture!==void 0&&r.push(i.assignTexture(n,"bumpMap",o.bumpTexture)),Promise.all(r)}}class V2t{constructor(e){this.parser=e,this.name=Ot.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Qs}extendMaterialParams(e,n){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.anisotropyStrength!==void 0&&(n.anisotropy=o.anisotropyStrength),o.anisotropyRotation!==void 0&&(n.anisotropyRotation=o.anisotropyRotation),o.anisotropyTexture!==void 0&&r.push(i.assignTexture(n,"anisotropyMap",o.anisotropyTexture)),Promise.all(r)}}class z2t{constructor(e){this.parser=e,this.name=Ot.KHR_TEXTURE_BASISU}loadTexture(e){const n=this.parser,i=n.json,s=i.textures[e];if(!s.extensions||!s.extensions[this.name])return null;const r=s.extensions[this.name],o=n.options.ktx2Loader;if(!o){if(i.extensionsRequired&&i.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return n.loadTextureImage(e,r.source,o)}}class H2t{constructor(e){this.parser=e,this.name=Ot.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const n=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[n])return null;const o=r.extensions[n],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(n)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const n=new Image;n.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class q2t{constructor(e){this.parser=e,this.name=Ot.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const n=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[n])return null;const o=r.extensions[n],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(n)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const n=new Image;n.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class Y2t{constructor(e){this.name=Ot.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const n=this.parser.json,i=n.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=s.byteOffset||0,u=s.byteLength||0,d=s.count,h=s.byteStride,f=new Uint8Array(a,l,u);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(d,h,f,s.mode,s.filter).then(function(_){return _.buffer}):o.ready.then(function(){const _=new ArrayBuffer(d*h);return o.decodeGltfBuffer(new Uint8Array(_),d,h,f,s.mode,s.filter),_})})}else return null}}class $2t{constructor(e){this.name=Ot.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const n=this.parser.json,i=n.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=n.meshes[i.mesh];for(const u of s.primitives)if(u.mode!==hi.TRIANGLES&&u.mode!==hi.TRIANGLE_STRIP&&u.mode!==hi.TRIANGLE_FAN&&u.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const u in o)a.push(this.parser.getDependency("accessor",o[u]).then(d=>(l[u]=d,l[u])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(u=>{const d=u.pop(),h=d.isGroup?d.children:[d],f=u[0].count,_=[];for(const m of h){const E=new Rt,b=new _e,g=new Ir,y=new _e(1,1,1),v=new jMt(m.geometry,m.material,f);for(let S=0;S<f;S++)l.TRANSLATION&&b.fromBufferAttribute(l.TRANSLATION,S),l.ROTATION&&g.fromBufferAttribute(l.ROTATION,S),l.SCALE&&y.fromBufferAttribute(l.SCALE,S),v.setMatrixAt(S,E.compose(b,g,y));for(const S in l)if(S==="_COLOR_0"){const C=l[S];v.instanceColor=new hb(C.array,C.itemSize,C.normalized)}else S!=="TRANSLATION"&&S!=="ROTATION"&&S!=="SCALE"&&m.geometry.setAttribute(S,l[S]);rn.prototype.copy.call(v,m),this.parser.assignFinalMaterial(v),_.push(v)}return d.isGroup?(d.clear(),d.add(..._),d):_[0]}))}}const NI="glTF",Sl=12,Iw={JSON:1313821514,BIN:5130562};class W2t{constructor(e){this.name=Ot.KHR_BINARY_GLTF,this.content=null,this.body=null;const n=new DataView(e,0,Sl),i=new TextDecoder;if(this.header={magic:i.decode(new Uint8Array(e.slice(0,4))),version:n.getUint32(4,!0),length:n.getUint32(8,!0)},this.header.magic!==NI)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const s=this.header.length-Sl,r=new DataView(e,Sl);let o=0;for(;o<s;){const a=r.getUint32(o,!0);o+=4;const l=r.getUint32(o,!0);if(o+=4,l===Iw.JSON){const u=new Uint8Array(e,Sl+o,a);this.content=i.decode(u)}else if(l===Iw.BIN){const u=Sl+o;this.body=e.slice(u,u+a)}o+=a}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class K2t{constructor(e,n){if(!n)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=Ot.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=n,this.dracoLoader.preload()}decodePrimitive(e,n){const i=this.json,s=this.dracoLoader,r=e.extensions[this.name].bufferView,o=e.extensions[this.name].attributes,a={},l={},u={};for(const d in o){const h=mb[d]||d.toLowerCase();a[h]=o[d]}for(const d in e.attributes){const h=mb[d]||d.toLowerCase();if(o[d]!==void 0){const f=i.accessors[e.attributes[d]],_=ca[f.componentType];u[h]=_.name,l[h]=f.normalized===!0}}return n.getDependency("bufferView",r).then(function(d){return new Promise(function(h){s.decodeDracoFile(d,function(f){for(const _ in f.attributes){const m=f.attributes[_],E=l[_];E!==void 0&&(m.normalized=E)}h(f)},a,u)})})}}class j2t{constructor(){this.name=Ot.KHR_TEXTURE_TRANSFORM}extendTexture(e,n){return(n.texCoord===void 0||n.texCoord===e.channel)&&n.offset===void 0&&n.rotation===void 0&&n.scale===void 0||(e=e.clone(),n.texCoord!==void 0&&(e.channel=n.texCoord),n.offset!==void 0&&e.offset.fromArray(n.offset),n.rotation!==void 0&&(e.rotation=n.rotation),n.scale!==void 0&&e.repeat.fromArray(n.scale),e.needsUpdate=!0),e}}class Q2t{constructor(){this.name=Ot.KHR_MESH_QUANTIZATION}}class OI extends vc{constructor(e,n,i,s){super(e,n,i,s)}copySampleValue_(e){const n=this.resultBuffer,i=this.sampleValues,s=this.valueSize,r=e*s*3+s;for(let o=0;o!==s;o++)n[o]=i[r+o];return n}interpolate_(e,n,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=a*2,u=a*3,d=s-n,h=(i-n)/d,f=h*h,_=f*h,m=e*u,E=m-u,b=-2*_+3*f,g=_-f,y=1-b,v=g-f+h;for(let S=0;S!==a;S++){const C=o[E+S+a],T=o[E+S+l]*d,O=o[m+S+a],k=o[m+S]*d;r[S]=y*C+v*T+b*O+g*k}return r}}const X2t=new Ir;class Z2t extends OI{interpolate_(e,n,i,s){const r=super.interpolate_(e,n,i,s);return X2t.fromArray(r).normalize().toArray(r),r}}const hi={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},ca={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},Mw={9728:yn,9729:jn,9984:lb,9985:YO,9986:Bd,9987:fo},Dw={33071:mi,33648:hu,10497:Ca},mg={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},mb={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},or={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},J2t={CUBICSPLINE:void 0,LINEAR:Ra,STEP:oc},gg={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function eDt(t){return t.DefaultMaterial===void 0&&(t.DefaultMaterial=new ay({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:Ys})),t.DefaultMaterial}function zr(t,e,n){for(const i in n.extensions)t[i]===void 0&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[i]=n.extensions[i])}function fr(t,e){e.extras!==void 0&&(typeof e.extras=="object"?Object.assign(t.userData,e.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+e.extras))}function tDt(t,e,n){let i=!1,s=!1,r=!1;for(let u=0,d=e.length;u<d;u++){const h=e[u];if(h.POSITION!==void 0&&(i=!0),h.NORMAL!==void 0&&(s=!0),h.COLOR_0!==void 0&&(r=!0),i&&s&&r)break}if(!i&&!s&&!r)return Promise.resolve(t);const o=[],a=[],l=[];for(let u=0,d=e.length;u<d;u++){const h=e[u];if(i){const f=h.POSITION!==void 0?n.getDependency("accessor",h.POSITION):t.attributes.position;o.push(f)}if(s){const f=h.NORMAL!==void 0?n.getDependency("accessor",h.NORMAL):t.attributes.normal;a.push(f)}if(r){const f=h.COLOR_0!==void 0?n.getDependency("accessor",h.COLOR_0):t.attributes.color;l.push(f)}}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(l)]).then(function(u){const d=u[0],h=u[1],f=u[2];return i&&(t.morphAttributes.position=d),s&&(t.morphAttributes.normal=h),r&&(t.morphAttributes.color=f),t.morphTargetsRelative=!0,t})}function nDt(t,e){if(t.updateMorphTargets(),e.weights!==void 0)for(let n=0,i=e.weights.length;n<i;n++)t.morphTargetInfluences[n]=e.weights[n];if(e.extras&&Array.isArray(e.extras.targetNames)){const n=e.extras.targetNames;if(t.morphTargetInfluences.length===n.length){t.morphTargetDictionary={};for(let i=0,s=n.length;i<s;i++)t.morphTargetDictionary[n[i]]=i}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function iDt(t){let e;const n=t.extensions&&t.extensions[Ot.KHR_DRACO_MESH_COMPRESSION];if(n?e="draco:"+n.bufferView+":"+n.indices+":"+bg(n.attributes):e=t.indices+":"+bg(t.attributes)+":"+t.mode,t.targets!==void 0)for(let i=0,s=t.targets.length;i<s;i++)e+=":"+bg(t.targets[i]);return e}function bg(t){let e="";const n=Object.keys(t).sort();for(let i=0,s=n.length;i<s;i++)e+=n[i]+":"+t[n[i]]+";";return e}function gb(t){switch(t){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function sDt(t){return t.search(/\.jpe?g($|\?)/i)>0||t.search(/^data\:image\/jpeg/)===0?"image/jpeg":t.search(/\.webp($|\?)/i)>0||t.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const rDt=new Rt;class oDt{constructor(e={},n={}){this.json=e,this.extensions={},this.plugins={},this.options=n,this.cache=new N2t,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,s=!1,r=-1;typeof navigator<"u"&&(i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,s=navigator.userAgent.indexOf("Firefox")>-1,r=s?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||i||s&&r<98?this.textureLoader=new RI(this.options.manager):this.textureLoader=new b2t(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new wI(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,n){const i=this,s=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return zr(r,a,s),fr(a,s),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(n)}_markDefs(){const e=this.json.nodes||[],n=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=n.length;s<r;s++){const o=n[s].joints;for(let a=0,l=o.length;a<l;a++)e[o[a]].isBone=!0}for(let s=0,r=e.length;s<r;s++){const o=e[s];o.mesh!==void 0&&(this._addNodeRef(this.meshCache,o.mesh),o.skin!==void 0&&(i[o.mesh].isSkinnedMesh=!0)),o.camera!==void 0&&this._addNodeRef(this.cameraCache,o.camera)}}_addNodeRef(e,n){n!==void 0&&(e.refs[n]===void 0&&(e.refs[n]=e.uses[n]=0),e.refs[n]++)}_getNodeRef(e,n,i){if(e.refs[n]<=1)return i;const s=i.clone(),r=(o,a)=>{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[u,d]of o.children.entries())r(d,a.children[u])};return r(i,s),s.name+="_instance_"+e.uses[n]++,s}_invokeOne(e){const n=Object.values(this.plugins);n.push(this);for(let i=0;i<n.length;i++){const s=e(n[i]);if(s)return s}return null}_invokeAll(e){const n=Object.values(this.plugins);n.unshift(this);const i=[];for(let s=0;s<n.length;s++){const r=e(n[s]);r&&i.push(r)}return i}getDependency(e,n){const i=e+":"+n;let s=this.cache.get(i);if(!s){switch(e){case"scene":s=this.loadScene(n);break;case"node":s=this._invokeOne(function(r){return r.loadNode&&r.loadNode(n)});break;case"mesh":s=this._invokeOne(function(r){return r.loadMesh&&r.loadMesh(n)});break;case"accessor":s=this.loadAccessor(n);break;case"bufferView":s=this._invokeOne(function(r){return r.loadBufferView&&r.loadBufferView(n)});break;case"buffer":s=this.loadBuffer(n);break;case"material":s=this._invokeOne(function(r){return r.loadMaterial&&r.loadMaterial(n)});break;case"texture":s=this._invokeOne(function(r){return r.loadTexture&&r.loadTexture(n)});break;case"skin":s=this.loadSkin(n);break;case"animation":s=this._invokeOne(function(r){return r.loadAnimation&&r.loadAnimation(n)});break;case"camera":s=this.loadCamera(n);break;default:if(s=this._invokeOne(function(r){return r!=this&&r.getDependency&&r.getDependency(e,n)}),!s)throw new Error("Unknown type: "+e);break}this.cache.add(i,s)}return s}getDependencies(e){let n=this.cache.get(e);if(!n){const i=this,s=this.json[e+(e==="mesh"?"es":"s")]||[];n=Promise.all(s.map(function(r,o){return i.getDependency(e,o)})),this.cache.add(e,n)}return n}loadBuffer(e){const n=this.json.buffers[e],i=this.fileLoader;if(n.type&&n.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+n.type+" buffer type is not supported.");if(n.uri===void 0&&e===0)return Promise.resolve(this.extensions[Ot.KHR_BINARY_GLTF].body);const s=this.options;return new Promise(function(r,o){i.load(Gl.resolveURL(n.uri,s.path),r,void 0,function(){o(new Error('THREE.GLTFLoader: Failed to load buffer "'+n.uri+'".'))})})}loadBufferView(e){const n=this.json.bufferViews[e];return this.getDependency("buffer",n.buffer).then(function(i){const s=n.byteLength||0,r=n.byteOffset||0;return i.slice(r,r+s)})}loadAccessor(e){const n=this,i=this.json,s=this.json.accessors[e];if(s.bufferView===void 0&&s.sparse===void 0){const o=mg[s.type],a=ca[s.componentType],l=s.normalized===!0,u=new a(s.count*o);return Promise.resolve(new Yn(u,o,l))}const r=[];return s.bufferView!==void 0?r.push(this.getDependency("bufferView",s.bufferView)):r.push(null),s.sparse!==void 0&&(r.push(this.getDependency("bufferView",s.sparse.indices.bufferView)),r.push(this.getDependency("bufferView",s.sparse.values.bufferView))),Promise.all(r).then(function(o){const a=o[0],l=mg[s.type],u=ca[s.componentType],d=u.BYTES_PER_ELEMENT,h=d*l,f=s.byteOffset||0,_=s.bufferView!==void 0?i.bufferViews[s.bufferView].byteStride:void 0,m=s.normalized===!0;let E,b;if(_&&_!==h){const g=Math.floor(f/_),y="InterleavedBuffer:"+s.bufferView+":"+s.componentType+":"+g+":"+s.count;let v=n.cache.get(y);v||(E=new u(a,g*_,s.count*_/d),v=new HMt(E,_/d),n.cache.add(y,v)),b=new sy(v,l,f%_/d,m)}else a===null?E=new u(s.count*l):E=new u(a,f,s.count*l),b=new Yn(E,l,m);if(s.sparse!==void 0){const g=mg.SCALAR,y=ca[s.sparse.indices.componentType],v=s.sparse.indices.byteOffset||0,S=s.sparse.values.byteOffset||0,C=new y(o[1],v,s.sparse.count*g),T=new u(o[2],S,s.sparse.count*l);a!==null&&(b=new Yn(b.array.slice(),b.itemSize,b.normalized));for(let O=0,k=C.length;O<k;O++){const x=C[O];if(b.setX(x,T[O*l]),l>=2&&b.setY(x,T[O*l+1]),l>=3&&b.setZ(x,T[O*l+2]),l>=4&&b.setW(x,T[O*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const n=this.json,i=this.options,r=n.textures[e].source,o=n.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,n,i){const s=this,r=this.json,o=r.textures[e],a=r.images[n],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const u=this.loadImageSource(n,i).then(function(d){d.flipY=!1,d.name=o.name||a.name||"",d.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(d.name=a.uri);const f=(r.samplers||{})[o.sampler]||{};return d.magFilter=Mw[f.magFilter]||jn,d.minFilter=Mw[f.minFilter]||fo,d.wrapS=Dw[f.wrapS]||Ca,d.wrapT=Dw[f.wrapT]||Ca,s.associations.set(d,{textures:e}),d}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,n){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=s.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",u=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(h){u=!0;const f=new Blob([h],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const d=Promise.resolve(l).then(function(h){return new Promise(function(f,_){let m=f;n.isImageBitmapLoader===!0&&(m=function(E){const b=new Nn(E);b.needsUpdate=!0,f(b)}),n.load(Gl.resolveURL(h,r.path),m,void 0,_)})}).then(function(h){return u===!0&&a.revokeObjectURL(l),h.userData.mimeType=o.mimeType||sDt(o.uri),h}).catch(function(h){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),h});return this.sourceCache[e]=d,d}assignTexture(e,n,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[Ot.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[Ot.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[Ot.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return s!==void 0&&(o.colorSpace=s),e[n]=o,o})}assignFinalMaterial(e){const n=e.geometry;let i=e.material;const s=n.attributes.tangent===void 0,r=n.attributes.color!==void 0,o=n.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new TI,Hi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new SI,Hi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),s&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return ay}loadMaterial(e){const n=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},u=[];if(l[Ot.KHR_MATERIALS_UNLIT]){const h=s[Ot.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),u.push(h.extendParams(a,r,n))}else{const h=r.pbrMetallicRoughness||{};if(a.color=new gt(1,1,1),a.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],On),a.opacity=f[3]}h.baseColorTexture!==void 0&&u.push(n.assignTexture(a,"map",h.baseColorTexture,on)),a.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,a.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(u.push(n.assignTexture(a,"metalnessMap",h.metallicRoughnessTexture)),u.push(n.assignTexture(a,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=es);const d=r.alphaMode||gg.OPAQUE;if(d===gg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,d===gg.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==Er&&(u.push(n.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new It(1,1),r.normalTexture.scale!==void 0)){const h=r.normalTexture.scale;a.normalScale.set(h,h)}if(r.occlusionTexture!==void 0&&o!==Er&&(u.push(n.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==Er){const h=r.emissiveFactor;a.emissive=new gt().setRGB(h[0],h[1],h[2],On)}return r.emissiveTexture!==void 0&&o!==Er&&u.push(n.assignTexture(a,"emissiveMap",r.emissiveTexture,on)),Promise.all(u).then(function(){const h=new o(a);return r.name&&(h.name=r.name),fr(h,r),n.associations.set(h,{materials:e}),r.extensions&&zr(s,h,r),h})}createUniqueName(e){const n=zt.sanitizeNodeName(e||"");return n in this.nodeNamesUsed?n+"_"+ ++this.nodeNamesUsed[n]:(this.nodeNamesUsed[n]=0,n)}loadGeometries(e){const n=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[Ot.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,n).then(function(l){return kw(l,a,n)})}const o=[];for(let a=0,l=e.length;a<l;a++){const u=e[a],d=iDt(u),h=s[d];if(h)o.push(h.promise);else{let f;u.extensions&&u.extensions[Ot.KHR_DRACO_MESH_COMPRESSION]?f=r(u):f=kw(new ms,u,n),s[d]={primitive:u,promise:f},o.push(f)}}return Promise.all(o)}loadMesh(e){const n=this,i=this.json,s=this.extensions,r=i.meshes[e],o=r.primitives,a=[];for(let l=0,u=o.length;l<u;l++){const d=o[l].material===void 0?eDt(this.cache):this.getDependency("material",o[l].material);a.push(d)}return a.push(n.loadGeometries(o)),Promise.all(a).then(function(l){const u=l.slice(0,l.length-1),d=l[l.length-1],h=[];for(let _=0,m=d.length;_<m;_++){const E=d[_],b=o[_];let g;const y=u[_];if(b.mode===hi.TRIANGLES||b.mode===hi.TRIANGLE_STRIP||b.mode===hi.TRIANGLE_FAN||b.mode===void 0)g=r.isSkinnedMesh===!0?new YMt(E,y):new Hn(E,y),g.isSkinnedMesh===!0&&g.normalizeSkinWeights(),b.mode===hi.TRIANGLE_STRIP?g.geometry=Ow(g.geometry,JO):b.mode===hi.TRIANGLE_FAN&&(g.geometry=Ow(g.geometry,cb));else if(b.mode===hi.LINES)g=new QMt(E,y);else if(b.mode===hi.LINE_STRIP)g=new oy(E,y);else if(b.mode===hi.LINE_LOOP)g=new XMt(E,y);else if(b.mode===hi.POINTS)g=new ZMt(E,y);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+b.mode);Object.keys(g.geometry.morphAttributes).length>0&&nDt(g,r),g.name=n.createUniqueName(r.name||"mesh_"+e),fr(g,r),b.extensions&&zr(s,g,b),n.assignFinalMaterial(g),h.push(g)}for(let _=0,m=h.length;_<m;_++)n.associations.set(h[_],{meshes:e,primitives:_});if(h.length===1)return r.extensions&&zr(s,h[0],r),h[0];const f=new to;r.extensions&&zr(s,f,r),n.associations.set(f,{meshes:e});for(let _=0,m=h.length;_<m;_++)f.add(h[_]);return f})}loadCamera(e){let n;const i=this.json.cameras[e],s=i[i.type];if(!s){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return i.type==="perspective"?n=new zn(PRt.radToDeg(s.yfov),s.aspectRatio||1,s.znear||1,s.zfar||2e6):i.type==="orthographic"&&(n=new ny(-s.xmag,s.xmag,s.ymag,-s.ymag,s.znear,s.zfar)),i.name&&(n.name=this.createUniqueName(i.name)),fr(n,i),Promise.resolve(n)}loadSkin(e){const n=this.json.skins[e],i=[];for(let s=0,r=n.joints.length;s<r;s++)i.push(this._loadNodeShallow(n.joints[s]));return n.inverseBindMatrices!==void 0?i.push(this.getDependency("accessor",n.inverseBindMatrices)):i.push(null),Promise.all(i).then(function(s){const r=s.pop(),o=s,a=[],l=[];for(let u=0,d=o.length;u<d;u++){const h=o[u];if(h){a.push(h);const f=new Rt;r!==null&&f.fromArray(r.array,u*16),l.push(f)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',n.joints[u])}return new ry(a,l)})}loadAnimation(e){const n=this.json,i=this,s=n.animations[e],r=s.name?s.name:"animation_"+e,o=[],a=[],l=[],u=[],d=[];for(let h=0,f=s.channels.length;h<f;h++){const _=s.channels[h],m=s.samplers[_.sampler],E=_.target,b=E.node,g=s.parameters!==void 0?s.parameters[m.input]:m.input,y=s.parameters!==void 0?s.parameters[m.output]:m.output;E.node!==void 0&&(o.push(this.getDependency("node",b)),a.push(this.getDependency("accessor",g)),l.push(this.getDependency("accessor",y)),u.push(m),d.push(E))}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(l),Promise.all(u),Promise.all(d)]).then(function(h){const f=h[0],_=h[1],m=h[2],E=h[3],b=h[4],g=[];for(let y=0,v=f.length;y<v;y++){const S=f[y],C=_[y],T=m[y],O=E[y],k=b[y];if(S===void 0)continue;S.updateMatrix&&S.updateMatrix();const x=i._createAnimationTracks(S,C,T,O,k);if(x)for(let I=0;I<x.length;I++)g.push(x[I])}return new r2t(r,void 0,g)})}createNodeMesh(e){const n=this.json,i=this,s=n.nodes[e];return s.mesh===void 0?null:i.getDependency("mesh",s.mesh).then(function(r){const o=i._getNodeRef(i.meshCache,s.mesh,r);return s.weights!==void 0&&o.traverse(function(a){if(a.isMesh)for(let l=0,u=s.weights.length;l<u;l++)a.morphTargetInfluences[l]=s.weights[l]}),o})}loadNode(e){const n=this.json,i=this,s=n.nodes[e],r=i._loadNodeShallow(e),o=[],a=s.children||[];for(let u=0,d=a.length;u<d;u++)o.push(i.getDependency("node",a[u]));const l=s.skin===void 0?Promise.resolve(null):i.getDependency("skin",s.skin);return Promise.all([r,Promise.all(o),l]).then(function(u){const d=u[0],h=u[1],f=u[2];f!==null&&d.traverse(function(_){_.isSkinnedMesh&&_.bind(f,rDt)});for(let _=0,m=h.length;_<m;_++)d.add(h[_]);return d})}_loadNodeShallow(e){const n=this.json,i=this.extensions,s=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];const r=n.nodes[e],o=r.name?s.createUniqueName(r.name):"",a=[],l=s._invokeOne(function(u){return u.createNodeMesh&&u.createNodeMesh(e)});return l&&a.push(l),r.camera!==void 0&&a.push(s.getDependency("camera",r.camera).then(function(u){return s._getNodeRef(s.cameraCache,r.camera,u)})),s._invokeAll(function(u){return u.createNodeAttachment&&u.createNodeAttachment(e)}).forEach(function(u){a.push(u)}),this.nodeCache[e]=Promise.all(a).then(function(u){let d;if(r.isBone===!0?d=new vI:u.length>1?d=new to:u.length===1?d=u[0]:d=new rn,d!==u[0])for(let h=0,f=u.length;h<f;h++)d.add(u[h]);if(r.name&&(d.userData.name=r.name,d.name=o),fr(d,r),r.extensions&&zr(i,d,r),r.matrix!==void 0){const h=new Rt;h.fromArray(r.matrix),d.applyMatrix4(h)}else r.translation!==void 0&&d.position.fromArray(r.translation),r.rotation!==void 0&&d.quaternion.fromArray(r.rotation),r.scale!==void 0&&d.scale.fromArray(r.scale);return s.associations.has(d)||s.associations.set(d,{}),s.associations.get(d).nodes=e,d}),this.nodeCache[e]}loadScene(e){const n=this.extensions,i=this.json.scenes[e],s=this,r=new to;i.name&&(r.name=s.createUniqueName(i.name)),fr(r,i),i.extensions&&zr(n,r,i);const o=i.nodes||[],a=[];for(let l=0,u=o.length;l<u;l++)a.push(s.getDependency("node",o[l]));return Promise.all(a).then(function(l){for(let d=0,h=l.length;d<h;d++)r.add(l[d]);const u=d=>{const h=new Map;for(const[f,_]of s.associations)(f instanceof Hi||f instanceof Nn)&&h.set(f,_);return d.traverse(f=>{const _=s.associations.get(f);_!=null&&h.set(f,_)}),h};return s.associations=u(r),r})}_createAnimationTracks(e,n,i,s,r){const o=[],a=e.name?e.name:e.uuid,l=[];or[r.path]===or.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let u;switch(or[r.path]){case or.weights:u=Oa;break;case or.rotation:u=bo;break;case or.position:case or.scale:u=Ia;break;default:switch(i.itemSize){case 1:u=Oa;break;case 2:case 3:default:u=Ia;break}break}const d=s.interpolation!==void 0?J2t[s.interpolation]:Ra,h=this._getArrayFromAccessor(i);for(let f=0,_=l.length;f<_;f++){const m=new u(l[f]+"."+or[r.path],n.array,h,d);s.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(m),o.push(m)}return o}_getArrayFromAccessor(e){let n=e.array;if(e.normalized){const i=gb(n.constructor),s=new Float32Array(n.length);for(let r=0,o=n.length;r<o;r++)s[r]=n[r]*i;n=s}return n}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(i){const s=this instanceof bo?Z2t:OI;return new s(this.times,this.values,this.getValueSize()/3,i)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function aDt(t,e,n){const i=e.attributes,s=new js;if(i.POSITION!==void 0){const a=n.json.accessors[i.POSITION],l=a.min,u=a.max;if(l!==void 0&&u!==void 0){if(s.set(new _e(l[0],l[1],l[2]),new _e(u[0],u[1],u[2])),a.normalized){const d=gb(ca[a.componentType]);s.min.multiplyScalar(d),s.max.multiplyScalar(d)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const r=e.targets;if(r!==void 0){const a=new _e,l=new _e;for(let u=0,d=r.length;u<d;u++){const h=r[u];if(h.POSITION!==void 0){const f=n.json.accessors[h.POSITION],_=f.min,m=f.max;if(_!==void 0&&m!==void 0){if(l.setX(Math.max(Math.abs(_[0]),Math.abs(m[0]))),l.setY(Math.max(Math.abs(_[1]),Math.abs(m[1]))),l.setZ(Math.max(Math.abs(_[2]),Math.abs(m[2]))),f.normalized){const E=gb(ca[f.componentType]);l.multiplyScalar(E)}a.max(l)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}s.expandByVector(a)}t.boundingBox=s;const o=new fs;s.getCenter(o.center),o.radius=s.min.distanceTo(s.max)/2,t.boundingSphere=o}function kw(t,e,n){const i=e.attributes,s=[];function r(o,a){return n.getDependency("accessor",o).then(function(l){t.setAttribute(a,l)})}for(const o in i){const a=mb[o]||o.toLowerCase();a in t.attributes||s.push(r(i[o],a))}if(e.indices!==void 0&&!t.index){const o=n.getDependency("accessor",e.indices).then(function(a){t.setIndex(a)});s.push(o)}return Gt.workingColorSpace!==On&&"COLOR_0"in i&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Gt.workingColorSpace}" not supported.`),fr(t,e),aDt(t,e,n),Promise.all(s).then(function(){return e.targets!==void 0?tDt(t,e.targets,n):t})}const lDt={data(){return{isVideoActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startVideoStream(){this.isVideoActive=!0,$e.emit("start_webcam_video_stream"),Ge(()=>{He.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,$e.emit("stop_webcam_video_stream"),Ge(()=>{He.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){He.replace(),$e.on("video_stream_image",t=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},cDt=["src"],dDt=["src"],uDt={class:"controls"},pDt=c("i",{"data-feather":"video"},null,-1),_Dt=[pDt],hDt=c("i",{"data-feather":"video"},null,-1),fDt=[hDt],mDt={key:2};function gDt(t,e,n,i,s,r){return w(),A("div",{class:"floating-frame bg-white",style:en({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isVideoActive&&s.imageDataUrl!=null?(w(),A("img",{key:0,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,cDt)):V("",!0),s.isVideoActive&&s.imageDataUrl==null?(w(),A("p",{key:1,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,dDt)):V("",!0),c("div",uDt,[s.isVideoActive?V("",!0):(w(),A("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startVideoStream&&r.startVideoStream(...o))},_Dt)),s.isVideoActive?(w(),A("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopVideoStream&&r.stopVideoStream(...o))},fDt)):V("",!0),s.isVideoActive?(w(),A("span",mDt,"FPS: "+he(s.frameRate),1)):V("",!0)])],36)}const bDt=bt(lDt,[["render",gDt]]);const EDt={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){$e.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ge(()=>{He.replace()})},stopAudioStream(){$e.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ge(()=>{He.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){He.replace(),$e.on("update_spectrogram",t=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},yDt=["src"],vDt={class:"controls"},SDt=c("i",{"data-feather":"mic"},null,-1),TDt=[SDt],xDt=c("i",{"data-feather":"mic"},null,-1),CDt=[xDt];function wDt(t,e,n,i,s,r){return w(),A("div",{class:"floating-frame bg-white",style:en({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=be((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=be((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isAudioActive&&s.imageDataUrl!=null?(w(),A("img",{key:0,src:s.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,yDt)):V("",!0),c("div",vDt,[s.isAudioActive?V("",!0):(w(),A("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startAudioStream&&r.startAudioStream(...o))},TDt)),s.isAudioActive?(w(),A("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopAudioStream&&r.stopAudioStream(...o))},CDt)):V("",!0)])],36)}const RDt=bt(EDt,[["render",wDt]]);const ADt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:bDt,AudioFrame:RDt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Ge(()=>{He.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new zMt,this.camera=new zn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new yI,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const t=new Cr,e=new Cw({color:65280});this.cube=new Hn(t,e),this.scene.add(this.cube);const n=new g2t(4210752),i=new AI(16777215,.5);i.position.set(0,1,0),this.scene.add(n),this.scene.add(i),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:t,config:e}=this.$store.state;this.activePersonality=t[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(t){new A2t().load(t,n=>{this.scene.remove(this.cube),this.cube=n.scene,this.scene.add(this.cube)})},showBoxWithAvatar(t){this.cube&&this.scene.remove(this.cube);const e=new Cr,n=new RI().load(t),i=new Er({map:n});this.cube=new Hn(e,i),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const t=new Cr,e=new Cw({color:65280});this.cube=new Hn(t,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},NDt={ref:"webglContainer"},ODt={class:"flex-col y-overflow 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"},IDt={key:0,class:"text-center"},MDt={key:1,class:"text-center"},DDt={class:"floating-frame2"},kDt=["innerHTML"];function LDt(t,e,n,i,s,r){const o=mt("VideoFrame"),a=mt("AudioFrame");return w(),A(Ye,null,[c("div",NDt,null,512),c("div",ODt,[!s.activePersonality||!s.activePersonality.scene_path?(w(),A("div",IDt," Personality does not have a 3d avatar. ")):V("",!0),!s.activePersonality||!s.activePersonality.avatar||s.activePersonality.avatar===""?(w(),A("div",MDt," Personality does not have an avatar. ")):V("",!0),c("div",DDt,[c("div",{innerHTML:t.htmlContent},null,8,kDt)])]),Te(o,{ref:"video_frame"},null,512),Te(a,{ref:"audio_frame"},null,512)],64)}const PDt=bt(ADt,[["render",LDt]]);let xd;const UDt=new Uint8Array(16);function FDt(){if(!xd&&(xd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!xd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xd(UDt)}const Cn=[];for(let t=0;t<256;++t)Cn.push((t+256).toString(16).slice(1));function BDt(t,e=0){return Cn[t[e+0]]+Cn[t[e+1]]+Cn[t[e+2]]+Cn[t[e+3]]+"-"+Cn[t[e+4]]+Cn[t[e+5]]+"-"+Cn[t[e+6]]+Cn[t[e+7]]+"-"+Cn[t[e+8]]+Cn[t[e+9]]+"-"+Cn[t[e+10]]+Cn[t[e+11]]+Cn[t[e+12]]+Cn[t[e+13]]+Cn[t[e+14]]+Cn[t[e+15]]}const GDt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Lw={randomUUID:GDt};function Gs(t,e,n){if(Lw.randomUUID&&!e&&!t)return Lw.randomUUID();t=t||{};const i=t.random||(t.rng||FDt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=i[s];return e}return BDt(i)}class co{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,n){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you.
|
||
Please check that you don't accidentally use the same token twice to register two different handlers for the same event/hook.`),this.unsubscribe(e)),this.listenerMap.set(e,n),this._listeners.push(n)}unsubscribe(e){if(this.listenerMap.has(e)){const n=this.listenerMap.get(e);this.listenerMap.delete(e);const i=this._listeners.indexOf(n);i>=0&&this._listeners.splice(i,1)}}registerProxy(e,n){this.proxyMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you.
|
||
Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,n),this.proxies.push(n)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const n=this.proxyMap.get(e);this.proxyMap.delete(e);const i=this.proxies.indexOf(n);i>=0&&this.proxies.splice(i,1)}}class qt extends co{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(n=>n(e,this.entity))}}class Un extends co{constructor(e){super(),this.entity=e}emit(e){let n=!1;const i=()=>[n=!0];for(const s of Array.from(this.listeners.values()))if(s(e,i,this.entity),n)return{prevented:!0};return{prevented:!1}}}class II extends co{execute(e,n){let i=e;for(const s of this.listeners)i=s(i,n);return i}}class li extends II{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class VDt extends co{constructor(e){super(),this.entity=e}execute(e){const n=[];for(const i of this.listeners)n.push(i(e,this.entity));return n}}function Qi(){const t=Symbol(),e=new Map,n=new Set,i=(l,u)=>{u instanceof co&&u.registerProxy(t,()=>{var d,h;return(h=(d=e.get(l))===null||d===void 0?void 0:d.listeners)!==null&&h!==void 0?h:[]})},s=l=>{const u=new co;e.set(l,u),n.forEach(d=>i(l,d[l]))},r=l=>{n.add(l);for(const u of e.keys())i(u,l[u])},o=l=>{for(const u of e.keys())l[u]instanceof co&&l[u].unregisterProxy(t);n.delete(l)},a=()=>{n.forEach(l=>o(l)),e.clear()};return new Proxy({},{get(l,u){return u==="addTarget"?r:u==="removeTarget"?o:u==="destroy"?a:typeof u!="string"||u.startsWith("_")?l[u]:(e.has(u)||s(u),e.get(u))}})}class Pw{constructor(e,n){if(this.destructed=!1,this.events={destruct:new qt(this)},!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Gs(),this.from=e,this.to=n,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class MI{constructor(e,n){if(!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Gs(),this.from=e,this.to=n}}function bb(t,e){return Object.fromEntries(Object.entries(t).map(([n,i])=>[n,e(i)]))}class DI{constructor(){this._title="",this.id=Gs(),this.events={loaded:new qt(this),beforeAddInput:new Un(this),addInput:new qt(this),beforeRemoveInput:new Un(this),removeInput:new qt(this),beforeAddOutput:new Un(this),addOutput:new qt(this),beforeRemoveOutput:new Un(this),removeOutput:new qt(this),beforeTitleChanged:new Un(this),titleChanged:new qt(this),update:new qt(this)},this.hooks={beforeLoad:new li(this),afterSave:new li(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,n){return this.addInterface("input",e,n)}addOutput(e,n){return this.addInterface("output",e,n)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([n,i])=>{this.inputs[n]&&(this.inputs[n].load(i),this.inputs[n].nodeId=this.id)}),Object.entries(e.outputs).forEach(([n,i])=>{this.outputs[n]&&(this.outputs[n].load(i),this.outputs[n].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=bb(this.inputs,s=>s.save()),n=bb(this.outputs,s=>s.save()),i={type:this.type,id:this.id,title:this.title,inputs:e,outputs:n};return this.hooks.afterSave.execute(i)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,n])=>this.initializeIntf("input",e,n)),Object.entries(this.outputs).forEach(([e,n])=>this.initializeIntf("output",e,n))}initializeIntf(e,n,i){i.isInput=e==="input",i.nodeId=this.id,i.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:n,intf:i}))}addInterface(e,n,i){const s=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return s.emit(i).prevented?!1:(o[n]=i,this.initializeIntf(e,n,i),r.emit(i),!0)}removeInterface(e,n){const i=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,s=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[n]:this.outputs[n];if(!r||i.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[n]:delete this.outputs[n],s.emit(r),!0}}let kI=class extends DI{load(e){super.load(e)}save(){return super.save()}};function Ja(t){return class extends kI{constructor(){var e,n;super(),this.type=t.type,this.inputs={},this.outputs={},this.calculate=t.calculate?(i,s)=>t.calculate.call(this,i,s):void 0,this._title=(e=t.title)!==null&&e!==void 0?e:t.type,this.executeFactory("input",t.inputs),this.executeFactory("output",t.outputs),(n=t.onCreate)===null||n===void 0||n.call(this)}onPlaced(){var e;(e=t.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=t.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,n){Object.keys(n||{}).forEach(i=>{const s=n[i]();e==="input"?this.addInput(i,s):this.addOutput(i,s)})}}}class nn{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,n){this.id=Gs(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new qt(this),beforeSetValue:new Un(this),setValue:new qt(this),updated:new qt(this)},this.hooks={load:new li(this),save:new li(this)},this._connectionCount=0,this.name=e,this._value=n}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...n){return e(this,...n),this}}const Da="__baklava_SubgraphInputNode",ka="__baklava_SubgraphOutputNode";class LI extends kI{constructor(){super(),this.graphInterfaceId=Gs()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class PI extends LI{constructor(){super(...arguments),this.type=Da,this.inputs={name:new nn("Name","Input")},this.outputs={placeholder:new nn("Value",void 0)}}static isGraphInputNode(e){return e.type===Da}}class UI extends LI{constructor(){super(...arguments),this.type=ka,this.inputs={name:new nn("Name","Output"),placeholder:new nn("Value",void 0)},this.outputs={output:new nn("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===ka}}class Sc{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(n=>n.type===Da).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===ka).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Gs(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Un(this),addNode:new qt(this),beforeRemoveNode:new Un(this),removeNode:new qt(this),beforeAddConnection:new Un(this),addConnection:new qt(this),checkConnection:new Un(this),beforeRemoveConnection:new Un(this),removeConnection:new qt(this)},this.hooks={save:new li(this),load:new li(this),checkConnection:new VDt(this)},this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this.editor=e,this.template=n,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(n=>n.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const n=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(i=>n.includes(i.from)||n.includes(i.to)).forEach(i=>this.removeConnection(i)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,n){const i=this.checkConnection(e,n);if(!i.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:n}).prevented)return;for(const r of i.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const s=new Pw(i.dummyConnection.from,i.dummyConnection.to);return this.internalAddConnection(s),s}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,n){if(!e||!n)return{connectionAllowed:!1};const i=this.findNodeById(e.nodeId),s=this.findNodeById(n.nodeId);if(i&&s&&i===s)return{connectionAllowed:!1};if(e.isInput&&!n.isInput){const a=e;e=n,n=a}if(e.isInput||!n.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===n))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:n}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:n});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new MI(e,n),connectionsInDanger:o}}findNodeInterface(e){for(const n of this.nodes){for(const i in n.inputs){const s=n.inputs[i];if(s.id===e)return s}for(const i in n.outputs){const s=n.outputs[i];if(s.id===e)return s}}}findNodeById(e){return this.nodes.find(n=>n.id===e)}load(e){try{this._loading=!0;const n=[];for(let i=this.connections.length-1;i>=0;i--)this.removeConnection(this.connections[i]);for(let i=this.nodes.length-1;i>=0;i--)this.removeNode(this.nodes[i]);this.id=e.id;for(const i of e.nodes){const s=this.editor.nodeTypes.get(i.type);if(!s){n.push(`Node type ${i.type} is not registered`);continue}const r=new s.type;this.addNode(r),r.load(i)}for(const i of e.connections){const s=this.findNodeInterface(i.from),r=this.findNodeInterface(i.to);if(s)if(r){const o=new Pw(s,r);o.id=i.id,this.internalAddConnection(o)}else{n.push(`Could not find interface with id ${i.to}`);continue}else{n.push(`Could not find interface with id ${i.from}`);continue}}return this.hooks.load.execute(e),n}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(n=>n.save()),connections:this.connections.map(n=>({id:n.id,from:n.from.id,to:n.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const lc="__baklava_GraphNode-";function La(t){return lc+t.id}function zDt(t){return class extends DI{constructor(){super(...arguments),this.type=La(t),this.inputs={},this.outputs={},this.template=t,this.calculate=async(n,i)=>{var s;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!i.engine||typeof i.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const r=i.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)r.set(l.nodeInterfaceId,n[l.id]);const o=await i.engine.runGraph(this.subgraph,r,i.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(s=o.get(l.nodeId))===null||s===void 0?void 0:s.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(n){this.template.name=n}load(n){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(n.graphState),super.load(n)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,n=>{this._title=n}),this.initialize()}onDestroy(){var n;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(n=this.subgraph)===null||n===void 0||n.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const n of this.subgraph.inputs)n.id in this.inputs?this.inputs[n.id].name=n.name:this.addInput(n.id,new nn(n.name,void 0));for(const n of Object.keys(this.inputs))this.subgraph.inputs.some(i=>i.id===n)||this.removeInput(n);for(const n of this.subgraph.outputs)n.id in this.outputs?this.outputs[n.id].name=n.name:this.addOutput(n.id,new nn(n.name,void 0));for(const n of Object.keys(this.outputs))this.subgraph.outputs.some(i=>i.id===n)||this.removeOutput(n);this.addOutput("_calculationResults",new nn("_calculationResults",void 0).setHidden(!0))}}}class hp{static fromGraph(e,n){return new hp(e.save(),n)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const n=this.editor.nodeTypes.get(La(this));n&&(n.title=e)}get inputs(){return this.nodes.filter(n=>n.type===Da).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===ka).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Gs(),this._name="Subgraph",this.events={nameChanged:new qt(this),updated:new qt(this)},this.hooks={beforeLoad:new li(this),afterSave:new li(this)},this.editor=n,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const n=new Map,i=f=>{const _=Gs();return n.set(f,_),_},s=f=>{const _=n.get(f);if(!_)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return _},r=f=>bb(f,_=>({id:i(_.id),templateId:_.id,value:_.value})),o=this.nodes.map(f=>({...f,id:i(f.id),inputs:r(f.inputs),outputs:r(f.outputs)})),a=this.connections.map(f=>({id:i(f.id),from:s(f.from),to:s(f.to)})),l=this.inputs.map(f=>({id:f.id,name:f.name,nodeId:s(f.nodeId),nodeInterfaceId:s(f.nodeInterfaceId)})),u=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:s(f.nodeId),nodeInterfaceId:s(f.nodeInterfaceId)})),d={id:Gs(),nodes:o,connections:a,inputs:l,outputs:u};return e||(e=new Sc(this.editor)),e.load(d).forEach(f=>console.warn(f)),e.template=this,e}}class HDt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new qt(this),beforeRegisterNodeType:new Un(this),registerNodeType:new qt(this),beforeUnregisterNodeType:new Un(this),unregisterNodeType:new qt(this),beforeAddGraphTemplate:new Un(this),addGraphTemplate:new qt(this),beforeRemoveGraphTemplate:new Un(this),removeGraphTemplate:new qt(this),registerGraph:new qt(this),unregisterGraph:new qt(this)},this.hooks={save:new li(this),load:new li(this)},this.graphTemplateEvents=Qi(),this.graphTemplateHooks=Qi(),this.graphEvents=Qi(),this.graphHooks=Qi(),this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new Sc(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(PI),this.registerNodeType(UI)}registerNodeType(e,n){var i,s;if(this.events.beforeRegisterNodeType.emit({type:e,options:n}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(i=n==null?void 0:n.category)!==null&&i!==void 0?i:"default",title:(s=n==null?void 0:n.title)!==null&&s!==void 0?s:r.title}),this.events.registerNodeType.emit({type:e,options:n})}unregisterNodeType(e){const n=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(n)){if(this.events.beforeUnregisterNodeType.emit(n).prevented)return;this._nodeTypes.delete(n),this.events.unregisterNodeType.emit(n)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const n=zDt(e);this.registerNodeType(n,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const n=La(e);for(const i of[this.graph,...this.graphs.values()]){const s=i.nodes.filter(r=>r.type===n);for(const r of s)i.removeNode(r)}this.unregisterNodeType(n),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{this._loading=!0,e=this.hooks.load.execute(e),e.graphTemplates.forEach(i=>{const s=new hp(i,this);this.addGraphTemplate(s)});const n=this._graph.load(e.graph);return this.events.loaded.emit(),n.forEach(i=>console.warn(i)),n}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(n=>n.save())};return this.hooks.save.execute(e)}}function qDt(t,e){const n=new Map;e.graphs.forEach(i=>{i.nodes.forEach(s=>n.set(s.id,s))}),t.forEach((i,s)=>{const r=n.get(s);r&&i.forEach((o,a)=>{const l=r.outputs[a];l&&(l.value=o)})})}class FI extends Error{constructor(){super("Cycle detected")}}function YDt(t){return typeof t=="string"}function BI(t,e){const n=new Map,i=new Map,s=new Map;let r,o;if(t instanceof Sc)r=t.nodes,o=t.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=t,o=e}r.forEach(u=>{Object.values(u.inputs).forEach(d=>n.set(d.id,u.id)),Object.values(u.outputs).forEach(d=>n.set(d.id,u.id))}),r.forEach(u=>{const d=o.filter(f=>f.from&&n.get(f.from.id)===u.id),h=new Set(d.map(f=>n.get(f.to.id)).filter(YDt));i.set(u.id,h),s.set(u,d)});const a=r.slice();o.forEach(u=>{const d=a.findIndex(h=>n.get(u.to.id)===h.id);d>=0&&a.splice(d,1)});const l=[];for(;a.length>0;){const u=a.pop();l.push(u);const d=i.get(u.id);for(;d.size>0;){const h=d.values().next().value;if(d.delete(h),Array.from(i.values()).every(f=>!f.has(h))){const f=r.find(_=>_.id===h);a.push(f)}}}if(Array.from(i.values()).some(u=>u.size>0))throw new FI;return{calculationOrder:l,connectionsFromNode:s,interfaceIdToNodeId:n}}function $Dt(t,e){try{return BI(t,e),!1}catch(n){if(n instanceof FI)return!0;throw n}}var Kn;(function(t){t.Running="Running",t.Idle="Idle",t.Paused="Paused",t.Stopped="Stopped"})(Kn||(Kn={}));class WDt{get status(){return this.isRunning?Kn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Un(this),afterRun:new qt(this),statusChange:new qt(this),beforeNodeCalculation:new qt(this),afterNodeCalculation:new qt(this)},this.hooks={gatherCalculationData:new li(this),transferData:new II},this.recalculateOrder=!0,this.internalStatus=Kn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(n,i)=>{i.graph&&!i.graph.loading&&i.graph.activeTransactions===0&&this.internalOnChange(i,n??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(n,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(n,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(n,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(n,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,n=>this.checkConnection(n.from,n.to))}start(){this.internalStatus===Kn.Stopped&&(this.internalStatus=Kn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Kn.Idle&&(this.internalStatus=Kn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Kn.Paused&&(this.internalStatus=Kn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Kn.Idle||this.internalStatus===Kn.Paused)&&(this.internalStatus=Kn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...n){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const i=await this.execute(e,...n);return this.events.afterRun.emit(i),i}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,n){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(n.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,n.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};n=r}const i=new MI(e,n);let s=this.editor.graph.connections.slice();return n.allowMultipleConnections||(s=s.filter(r=>r.to!==n)),s.push(i),$Dt(this.editor.graph.nodes,s)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:n.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===n)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const n=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(n,...e)}validateNodeCalculationOutput(e,n){if(typeof n!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(i=>{if(!(i in n))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${i}"`)})}internalOnChange(e,n){this.internalStatus===Kn.Idle&&this.onChange(this.recalculateOrder,e,n)}findInterfaceByTemplateId(e,n){for(const i of e)for(const s of[...Object.values(i.inputs),...Object.values(i.outputs)])if(s.templateId===n)return s;return null}}class KDt extends WDt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,n,i){this.order.has(e.id)||this.order.set(e.id,BI(e));const{calculationOrder:s,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of s){const l={};Object.entries(a.inputs).forEach(([d,h])=>{l[d]=this.getInterfaceValue(n,h.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let u;if(a.calculate)u=await a.calculate(l,{globalValues:i,engine:this});else{u={};for(const[d,h]of Object.entries(a.outputs))u[d]=this.getInterfaceValue(n,h.id)}this.validateNodeCalculationOutput(a,u),this.events.afterNodeCalculation.emit({outputValues:u,node:a}),o.set(a.id,new Map(Object.entries(u))),r.has(a)&&r.get(a).forEach(d=>{var h;const f=(h=Object.entries(a.outputs).find(([,m])=>m.id===d.from.id))===null||h===void 0?void 0:h[0];if(!f)throw new Error(`Could not find key for interface ${d.from.id}
|
||
This is likely a Baklava internal issue. Please report it on GitHub.`);const _=this.hooks.transferData.execute(u[f],d);d.to.allowMultipleConnections?n.has(d.to.id)?n.get(d.to.id).push(_):n.set(d.to.id,[_]):n.set(d.to.id,_)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const n=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,n,e)}getInputValues(e){const n=new Map;for(const i of e.nodes)Object.values(i.inputs).forEach(s=>{s.connectionCount===0&&n.set(s.id,s.value)}),i.calculate||Object.values(i.outputs).forEach(s=>{n.set(s.id,s.value)});return n}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,n){if(!e.has(n))throw new Error(`Could not find value for interface ${n}
|
||
This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(n)}}let Eb=null;function jDt(t){Eb=t}function Oi(){if(!Eb)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:Eb}}function Ki(){const{viewModel:t}=Oi();return{graph:$d(t.value,"displayedGraph"),switchGraph:t.value.switchGraph}}function GI(t){const{graph:e}=Ki(),n=ft(null),i=ft(null);return{dragging:st(()=>!!n.value),onPointerDown:l=>{n.value={x:l.pageX,y:l.pageY},i.value={x:t.value.x,y:t.value.y}},onPointerMove:l=>{if(n.value){const u=l.pageX-n.value.x,d=l.pageY-n.value.y;t.value.x=i.value.x+u/e.value.scaling,t.value.y=i.value.y+d/e.value.scaling}},onPointerUp:()=>{n.value=null,i.value=null}}}function VI(t,e,n){if(!e.template)return!1;if(La(e.template)===n)return!0;const i=t.graphTemplates.find(r=>La(r)===n);return i?i.nodes.filter(r=>r.type.startsWith(lc)).some(r=>VI(t,e,r.type)):!1}function zI(t){return st(()=>{const e=Array.from(t.value.editor.nodeTypes.entries()),n=new Set(e.map(([,s])=>s.category)),i=[];for(const s of n.values()){let r=e.filter(([,o])=>o.category===s);t.value.displayedGraph.template?r=r.filter(([o])=>!VI(t.value.editor,t.value.displayedGraph,o)):r=r.filter(([o])=>![Da,ka].includes(o)),r.length>0&&i.push({name:s,nodeTypes:Object.fromEntries(r)})}return i.sort((s,r)=>s.name==="default"?-1:r.name==="default"||s.name>r.name?1:-1),i})}function HI(){const{graph:t}=Ki();return{transform:(n,i)=>{const s=n/t.value.scaling-t.value.panning.x,r=i/t.value.scaling-t.value.panning.y;return[s,r]}}}function QDt(){const{graph:t}=Ki();let e=[],n=-1,i={x:0,y:0};const s=st(()=>t.value.panning),r=GI(s),o=st(()=>({"transform-origin":"0 0",transform:`scale(${t.value.scaling}) translate(${t.value.panning.x}px, ${t.value.panning.y}px)`})),a=(_,m,E)=>{const b=[_/t.value.scaling-t.value.panning.x,m/t.value.scaling-t.value.panning.y],g=[_/E-t.value.panning.x,m/E-t.value.panning.y],y=[g[0]-b[0],g[1]-b[1]];t.value.panning.x+=y[0],t.value.panning.y+=y[1],t.value.scaling=E},l=_=>{_.preventDefault();let m=_.deltaY;_.deltaMode===1&&(m*=32);const E=t.value.scaling*(1-m/3e3);a(_.offsetX,_.offsetY,E)},u=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:_=>{if(e.push(_),r.onPointerDown(_),e.length===2){const{ax:m,ay:E,bx:b,by:g}=u();i={x:m+(b-m)/2,y:E+(g-E)/2}}},onPointerMove:_=>{for(let m=0;m<e.length;m++)if(_.pointerId==e[m].pointerId){e[m]=_;break}if(e.length==2){const{ax:m,ay:E,bx:b,by:g}=u(),y=m-b,v=E-g,S=Math.sqrt(y*y+v*v);if(n>0){const C=t.value.scaling*(1+(S-n)/500);a(i.x,i.y,C)}n=S}else r.onPointerMove(_)},onPointerUp:_=>{e=e.filter(m=>m.pointerId!==_.pointerId),n=-1,r.onPointerUp()},onMouseWheel:l}}var Ei=(t=>(t[t.NONE=0]="NONE",t[t.ALLOWED=1]="ALLOWED",t[t.FORBIDDEN=2]="FORBIDDEN",t))(Ei||{});const qI=Symbol();function XDt(){const{graph:t}=Ki(),e=ft(null),n=ft(null),i=a=>{e.value&&(e.value.mx=a.offsetX/t.value.scaling-t.value.panning.x,e.value.my=a.offsetY/t.value.scaling-t.value.panning.y)},s=()=>{if(n.value){if(e.value)return;const a=t.value.connections.find(l=>l.to===n.value);n.value.isInput&&a?(e.value={status:Ei.NONE,from:a.from},t.value.removeConnection(a)):e.value={status:Ei.NONE,from:n.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&n.value){if(e.value.from===n.value)return;t.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(n.value=a??null,a&&e.value){e.value.to=a;const l=t.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?Ei.ALLOWED:Ei.FORBIDDEN,l.connectionAllowed){const u=l.connectionsInDanger.map(d=>d.id);t.value.connections.forEach(d=>{u.includes(d.id)&&(d.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=Ei.NONE,t.value.connections.forEach(l=>{l.isInDanger=!1}))};return sa(qI,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:i,onMouseDown:s,onMouseUp:r,hoveredOver:o}}function ZDt(t){const e=ft(!1),n=ft(0),i=ft(0),s=zI(t),{transform:r}=HI(),o=st(()=>{let d=[];const h={};for(const _ of s.value){const m=Object.entries(_.nodeTypes).map(([E,b])=>({label:b.title,value:"addNode:"+E}));_.name==="default"?d=m:h[_.name]=m}const f=[...Object.entries(h).map(([_,m])=>({label:_,submenu:m}))];return f.length>0&&d.length>0&&f.push({isDivider:!0}),f.push(...d),f}),a=st(()=>t.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...t.value.settings.contextMenu.additionalItems.map(d=>"isDivider"in d||"submenu"in d?d:{label:d.label,value:"command:"+d.command,disabled:!t.value.commandHandler.canExecuteCommand(d.command)})]);function l(d){e.value=!0,n.value=d.offsetX,i.value=d.offsetY}function u(d){if(d.startsWith("addNode:")){const h=d.substring(8),f=t.value.editor.nodeTypes.get(h);if(!f)return;const _=ei(new f.type);t.value.displayedGraph.addNode(_);const[m,E]=r(n.value,i.value);_.position.x=m,_.position.y=E}else if(d.startsWith("command:")){const h=d.substring(8);t.value.commandHandler.canExecuteCommand(h)&&t.value.commandHandler.executeCommand(h)}}return{show:e,x:n,y:i,items:a,open:l,onClick:u}}const JDt=_n({setup(){const{viewModel:t}=Oi(),{graph:e}=Ki();return{styles:st(()=>{const i=t.value.settings.background,s=e.value.panning.x*e.value.scaling,r=e.value.panning.y*e.value.scaling,o=e.value.scaling*i.gridSize,a=o/i.gridDivision,l=`${o}px ${o}px, ${o}px ${o}px`,u=e.value.scaling>i.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${s}px top ${r}px`,backgroundSize:`${l} ${u}`}})}}}),hn=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n};function ekt(t,e,n,i,s,r){return w(),A("div",{class:"background",style:en(t.styles)},null,4)}const tkt=hn(JDt,[["render",ekt]]);function nkt(t){return tR()?(NM(t),!0):!1}function uy(t){return typeof t=="function"?t():yt(t)}const YI=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ikt=Object.prototype.toString,skt=t=>ikt.call(t)==="[object Object]",Vd=()=>{},rkt=okt();function okt(){var t,e;return YI&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function akt(t,e,n=!1){return e.reduce((i,s)=>(s in t&&(!n||t[s]!==void 0)&&(i[s]=t[s]),i),{})}function lkt(t,e={}){if(!fn(t))return d2(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const i in t.value)n[i]=c2(()=>({get(){return t.value[i]},set(s){var r;if((r=uy(e.replaceRef))!=null?r:!0)if(Array.isArray(t.value)){const a=[...t.value];a[i]=s,t.value=a}else{const a={...t.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[i]=s}}));return n}function Al(t){var e;const n=uy(t);return(e=n==null?void 0:n.$el)!=null?e:n}const py=YI?window:void 0;function Vl(...t){let e,n,i,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,s]=t,e=py):[e,n,i,s]=t,!e)return Vd;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(d=>d()),r.length=0},a=(d,h,f,_)=>(d.addEventListener(h,f,_),()=>d.removeEventListener(h,f,_)),l=qn(()=>[Al(e),uy(s)],([d,h])=>{if(o(),!d)return;const f=skt(h)?{...h}:h;r.push(...n.flatMap(_=>i.map(m=>a(d,_,m,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return nkt(u),u}let Uw=!1;function $I(t,e,n={}){const{window:i=py,ignore:s=[],capture:r=!0,detectIframe:o=!1}=n;if(!i)return Vd;rkt&&!Uw&&(Uw=!0,Array.from(i.document.body.children).forEach(f=>f.addEventListener("click",Vd)),i.document.documentElement.addEventListener("click",Vd));let a=!0;const l=f=>s.some(_=>{if(typeof _=="string")return Array.from(i.document.querySelectorAll(_)).some(m=>m===f.target||f.composedPath().includes(m));{const m=Al(_);return m&&(f.target===m||f.composedPath().includes(m))}}),d=[Vl(i,"click",f=>{const _=Al(t);if(!(!_||_===f.target||f.composedPath().includes(_))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:r}),Vl(i,"pointerdown",f=>{const _=Al(t);a=!l(f)&&!!(_&&!f.composedPath().includes(_))},{passive:!0}),o&&Vl(i,"blur",f=>{setTimeout(()=>{var _;const m=Al(t);((_=i.document.activeElement)==null?void 0:_.tagName)==="IFRAME"&&!(m!=null&&m.contains(i.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>d.forEach(f=>f())}const WI={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},ckt=Object.keys(WI);function dkt(t={}){const{target:e=py}=t,n=ft(!1),i=ft(t.initialValue||{});Object.assign(i.value,WI,i.value);const s=r=>{n.value=!0,!(t.pointerTypes&&!t.pointerTypes.includes(r.pointerType))&&(i.value=akt(r,ckt,!1))};if(e){const r={passive:!0};Vl(e,["pointerdown","pointermove","pointerup"],s,r),Vl(e,"pointerleave",()=>n.value=!1,r)}return{...lkt(i),isInside:n}}const ukt=["onMouseenter","onMouseleave","onClick"],pkt={class:"flex-fill"},_kt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},hkt=c("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[c("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),fkt=[hkt],_y=_n({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(t,{emit:e}){const n=t,i=e;let s=null;const r=ft(null),o=ft(-1),a=ft(0),l=ft({x:!1,y:!1}),u=st(()=>n.flippable&&(l.value.x||n.isFlipped.x)),d=st(()=>n.flippable&&(l.value.y||n.isFlipped.y)),h=st(()=>{const y={};return n.isNested||(y.top=(d.value?n.y-a.value:n.y)+"px",y.left=n.x+"px"),y}),f=st(()=>({"--flipped-x":u.value,"--flipped-y":d.value,"--nested":n.isNested})),_=st(()=>n.items.map(y=>({...y,hover:!1})));qn([()=>n.y,()=>n.items],()=>{var y,v,S,C;a.value=n.items.length*30;const T=((v=(y=r.value)==null?void 0:y.parentElement)==null?void 0:v.offsetWidth)??0,O=((C=(S=r.value)==null?void 0:S.parentElement)==null?void 0:C.offsetHeight)??0;l.value.x=!n.isNested&&n.x>T*.75,l.value.y=!n.isNested&&n.y+a.value>O-20}),$I(r,()=>{n.modelValue&&i("update:modelValue",!1)});const m=y=>{!y.submenu&&y.value&&(i("click",y.value),i("update:modelValue",!1))},E=y=>{i("click",y),o.value=-1,n.isNested||i("update:modelValue",!1)},b=(y,v)=>{n.items[v].submenu&&(o.value=v,s!==null&&(clearTimeout(s),s=null))},g=(y,v)=>{n.items[v].submenu&&(s=window.setTimeout(()=>{o.value=-1,s=null},200))};return(y,v)=>{const S=mt("ContextMenu",!0);return w(),xt(cs,{name:"slide-fade"},{default:We(()=>[G(c("div",{ref_key:"el",ref:r,class:ze(["baklava-context-menu",f.value]),style:en(h.value)},[(w(!0),A(Ye,null,lt(_.value,(C,T)=>(w(),A(Ye,null,[C.isDivider?(w(),A("div",{key:`d-${T}`,class:"divider"})):(w(),A("div",{key:`i-${T}`,class:ze(["item",{submenu:!!C.submenu,"--disabled":!!C.disabled}]),onMouseenter:O=>b(O,T),onMouseleave:O=>g(O,T),onClick:be(O=>m(C),["stop","prevent"])},[c("div",pkt,he(C.label),1),C.submenu?(w(),A("div",_kt,fkt)):V("",!0),C.submenu?(w(),xt(S,{key:1,"model-value":o.value===T,items:C.submenu,"is-nested":!0,"is-flipped":{x:u.value,y:d.value},flippable:y.flippable,onClick:E},null,8,["model-value","items","is-flipped","flippable"])):V("",!0)],42,ukt))],64))),256))],6),[[Mt,y.modelValue]])]),_:1})}}}),mkt={},gkt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},bkt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Ekt=c("circle",{cx:"12",cy:"12",r:"1"},null,-1),ykt=c("circle",{cx:"12",cy:"19",r:"1"},null,-1),vkt=c("circle",{cx:"12",cy:"5",r:"1"},null,-1),Skt=[bkt,Ekt,ykt,vkt];function Tkt(t,e){return w(),A("svg",gkt,Skt)}const KI=hn(mkt,[["render",Tkt]]),xkt=["id"],Ckt={key:0,class:"__tooltip"},wkt={key:2,class:"align-middle"},Fw=_n({__name:"NodeInterface",props:{node:{},intf:{}},setup(t){const e=(b,g=100)=>{const y=b!=null&&b.toString?b.toString():"";return y.length>g?y.slice(0,g)+"...":y},n=t,{viewModel:i}=Oi(),{hoveredOver:s,temporaryConnection:r}=Vi(qI),o=ft(null),a=st(()=>n.intf.connectionCount>0),l=ft(!1),u=st(()=>i.value.settings.displayValueOnHover&&l.value),d=st(()=>({"--input":n.intf.isInput,"--output":!n.intf.isInput,"--connected":a.value})),h=st(()=>n.intf.component&&(!n.intf.isInput||!n.intf.port||n.intf.connectionCount===0)),f=()=>{l.value=!0,s(n.intf)},_=()=>{l.value=!1,s(void 0)},m=()=>{o.value&&i.value.hooks.renderInterface.execute({intf:n.intf,el:o.value})},E=()=>{const b=i.value.displayedGraph.sidebar;b.nodeId=n.node.id,b.optionName=n.intf.name,b.visible=!0};return Ws(m),uc(m),(b,g)=>{var y;return w(),A("div",{id:b.intf.id,ref_key:"el",ref:o,class:ze(["baklava-node-interface",d.value])},[b.intf.port?(w(),A("div",{key:0,class:ze(["__port",{"--selected":((y=yt(r))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:_},[kn(b.$slots,"portTooltip",{showTooltip:u.value},()=>[u.value===!0?(w(),A("span",Ckt,he(e(b.intf.value)),1)):V("",!0)])],34)):V("",!0),h.value?(w(),xt(Lu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":g[0]||(g[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:E},null,40,["modelValue","node","intf"])):(w(),A("span",wkt,he(b.intf.name),1))],10,xkt)}}}),Rkt=["id","data-node-type"],Akt={class:"__title-label"},Nkt={class:"__menu"},Okt={class:"__outputs"},Ikt={class:"__inputs"},Mkt=_n({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(t,{emit:e}){const n=t,i=e,{viewModel:s}=Oi(),{graph:r,switchGraph:o}=Ki(),a=ft(null),l=ft(!1),u=ft(""),d=ft(null),h=ft(!1),f=ft(!1),_=st(()=>{const F=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return n.node.type.startsWith(lc)&&F.push({value:"editSubgraph",label:"Edit Subgraph"}),F}),m=st(()=>({"--selected":n.selected,"--dragging":n.dragging,"--two-column":!!n.node.twoColumn})),E=st(()=>{var F,B;return{top:`${((F=n.node.position)==null?void 0:F.y)??0}px`,left:`${((B=n.node.position)==null?void 0:B.x)??0}px`,"--width":`${n.node.width??s.value.settings.nodes.defaultWidth}px`}}),b=st(()=>Object.values(n.node.inputs).filter(F=>!F.hidden)),g=st(()=>Object.values(n.node.outputs).filter(F=>!F.hidden)),y=()=>{i("select")},v=F=>{n.selected||y(),i("start-drag",F)},S=()=>{f.value=!0},C=async F=>{var B;switch(F){case"delete":r.value.removeNode(n.node);break;case"rename":u.value=n.node.title,l.value=!0,await Ge(),(B=d.value)==null||B.focus();break;case"editSubgraph":o(n.node.template);break}},T=()=>{n.node.title=u.value,l.value=!1},O=()=>{a.value&&s.value.hooks.renderNode.execute({node:n.node,el:a.value})},k=F=>{h.value=!0,F.preventDefault()},x=F=>{if(!h.value)return;const B=n.node.width+F.movementX/r.value.scaling,ne=s.value.settings.nodes.minWidth,L=s.value.settings.nodes.maxWidth;n.node.width=Math.max(ne,Math.min(L,B))},I=()=>{h.value=!1};return Ws(()=>{O(),window.addEventListener("mousemove",x),window.addEventListener("mouseup",I)}),uc(O),Va(()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",I)}),(F,B)=>(w(),A("div",{id:F.node.id,ref_key:"el",ref:a,class:ze(["baklava-node",m.value]),style:en(E.value),"data-node-type":F.node.type,onPointerdown:y},[yt(s).settings.nodes.resizable?(w(),A("div",{key:0,class:"__resize-handle",onMousedown:k},null,32)):V("",!0),kn(F.$slots,"title",{},()=>[c("div",{class:"__title",onPointerdown:be(v,["self","stop"])},[l.value?G((w(),A("input",{key:1,ref_key:"renameInputEl",ref:d,"onUpdate:modelValue":B[1]||(B[1]=ne=>u.value=ne),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:T,onKeydown:Hs(T,["enter"])},null,544)),[[we,u.value]]):(w(),A(Ye,{key:0},[c("div",Akt,he(F.node.title),1),c("div",Nkt,[Te(KI,{class:"--clickable",onClick:S}),Te(_y,{modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=ne=>f.value=ne),x:0,y:0,items:_.value,onClick:C},null,8,["modelValue","items"])])],64))],32)]),kn(F.$slots,"content",{},()=>[c("div",{class:"__content",onKeydown:B[2]||(B[2]=Hs(be(()=>{},["stop"]),["delete"]))},[c("div",Okt,[(w(!0),A(Ye,null,lt(g.value,ne=>kn(F.$slots,"nodeInterface",{key:ne.id,type:"output",node:F.node,intf:ne},()=>[Te(Fw,{node:F.node,intf:ne},null,8,["node","intf"])])),128))]),c("div",Ikt,[(w(!0),A(Ye,null,lt(b.value,ne=>kn(F.$slots,"nodeInterface",{key:ne.id,type:"input",node:F.node,intf:ne},()=>[Te(Fw,{node:F.node,intf:ne},null,8,["node","intf"])])),128))])],32)])],46,Rkt))}}),Dkt=_n({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:Ei.NONE},isTemporary:{type:Boolean,default:!1}},setup(t){const{viewModel:e}=Oi(),{graph:n}=Ki(),i=(o,a)=>{const l=(o+n.value.panning.x)*n.value.scaling,u=(a+n.value.panning.y)*n.value.scaling;return[l,u]},s=st(()=>{const[o,a]=i(t.x1,t.y1),[l,u]=i(t.x2,t.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${l} ${u}`;{const d=.3*Math.abs(o-l);return`M ${o} ${a} C ${o+d} ${a}, ${l-d} ${u}, ${l} ${u}`}}),r=st(()=>({"--temporary":t.isTemporary,"--allowed":t.state===Ei.ALLOWED,"--forbidden":t.state===Ei.FORBIDDEN}));return{d:s,classes:r}}}),kkt=["d"];function Lkt(t,e,n,i,s,r){return w(),A("path",{class:ze(["baklava-connection",t.classes]),d:t.d},null,10,kkt)}const jI=hn(Dkt,[["render",Lkt]]);function Pkt(t){return document.getElementById(t.id)}function Pa(t){const e=document.getElementById(t.id),n=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:n&&n.length>0?n[0]:null}}const Ukt=_n({components:{"connection-view":jI},props:{connection:{type:Object,required:!0}},setup(t){const{graph:e}=Ki();let n;const i=ft({x1:0,y1:0,x2:0,y2:0}),s=st(()=>t.connection.isInDanger?Ei.FORBIDDEN:Ei.NONE),r=st(()=>{var u;return(u=e.value.findNodeById(t.connection.from.nodeId))==null?void 0:u.position}),o=st(()=>{var u;return(u=e.value.findNodeById(t.connection.to.nodeId))==null?void 0:u.position}),a=u=>u.node&&u.interface&&u.port?[u.node.offsetLeft+u.interface.offsetLeft+u.port.offsetLeft+u.port.clientWidth/2,u.node.offsetTop+u.interface.offsetTop+u.port.offsetTop+u.port.clientHeight/2]:[0,0],l=()=>{const u=Pa(t.connection.from),d=Pa(t.connection.to);u.node&&d.node&&(n||(n=new ResizeObserver(()=>{l()}),n.observe(u.node),n.observe(d.node)));const[h,f]=a(u),[_,m]=a(d);i.value={x1:h,y1:f,x2:_,y2:m}};return Ws(async()=>{await Ge(),l()}),Va(()=>{n&&n.disconnect()}),qn([r,o],()=>l(),{deep:!0}),{d:i,state:s}}});function Fkt(t,e,n,i,s,r){const o=mt("connection-view");return w(),xt(o,{x1:t.d.x1,y1:t.d.y1,x2:t.d.x2,y2:t.d.y2,state:t.state},null,8,["x1","y1","x2","y2","state"])}const Bkt=hn(Ukt,[["render",Fkt]]);function yu(t){return t.node&&t.interface&&t.port?[t.node.offsetLeft+t.interface.offsetLeft+t.port.offsetLeft+t.port.clientWidth/2,t.node.offsetTop+t.interface.offsetTop+t.port.offsetTop+t.port.clientHeight/2]:[0,0]}const Gkt=_n({components:{"connection-view":jI},props:{connection:{type:Object,required:!0}},setup(t){const e=st(()=>t.connection?t.connection.status:Ei.NONE);return{d:st(()=>{if(!t.connection)return{input:[0,0],output:[0,0]};const i=yu(Pa(t.connection.from)),s=t.connection.to?yu(Pa(t.connection.to)):[t.connection.mx||i[0],t.connection.my||i[1]];return t.connection.from.isInput?{input:s,output:i}:{input:i,output:s}}),status:e}}});function Vkt(t,e,n,i,s,r){const o=mt("connection-view");return w(),xt(o,{x1:t.d.input[0],y1:t.d.input[1],x2:t.d.output[0],y2:t.d.output[1],state:t.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const zkt=hn(Gkt,[["render",Vkt]]),Hkt=_n({setup(){const{viewModel:t}=Oi(),{graph:e}=Ki(),n=ft(null),i=$d(t.value.settings.sidebar,"width"),s=st(()=>t.value.settings.sidebar.resizable),r=st(()=>{const h=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===h)}),o=st(()=>({width:`${i.value}px`})),a=st(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),l=()=>{e.value.sidebar.visible=!1},u=()=>{window.addEventListener("mousemove",d),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",d)},{once:!0})},d=h=>{var f,_;const m=((_=(f=n.value)==null?void 0:f.parentElement)==null?void 0:_.getBoundingClientRect().width)??500;let E=i.value-h.movementX;E<300?E=300:E>.9*m&&(E=.9*m),i.value=E};return{el:n,graph:e,resizable:s,node:r,styles:o,displayedInterfaces:a,startResize:u,close:l}}}),qkt={class:"__header"},Ykt={class:"__node-name"};function $kt(t,e,n,i,s,r){return w(),A("div",{ref:"el",class:ze(["baklava-sidebar",{"--open":t.graph.sidebar.visible}]),style:en(t.styles)},[t.resizable?(w(),A("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>t.startResize&&t.startResize(...o))},null,32)):V("",!0),c("div",qkt,[c("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>t.close&&t.close(...o))},"×"),c("div",Ykt,[c("b",null,he(t.node?t.node.title:""),1)])]),(w(!0),A(Ye,null,lt(t.displayedInterfaces,o=>(w(),A("div",{key:o.id,class:"__interface"},[(w(),xt(Lu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:t.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const Wkt=hn(Hkt,[["render",$kt]]),Kkt=_n({__name:"Minimap",setup(t){const{viewModel:e}=Oi(),{graph:n}=Ki(),i=ft(null),s=ft(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},l;const u=()=>{var T,O;if(!r)return;r.canvas.width=i.value.offsetWidth,r.canvas.height=i.value.offsetHeight;const k=new Map,x=new Map;for(const L of n.value.nodes){const $=Pkt(L),H=($==null?void 0:$.offsetWidth)??0,U=($==null?void 0:$.offsetHeight)??0,Q=((T=L.position)==null?void 0:T.x)??0,J=((O=L.position)==null?void 0:O.y)??0;k.set(L,{x1:Q,y1:J,x2:Q+H,y2:J+U}),x.set(L,$)}const I={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const L of k.values())L.x1<I.x1&&(I.x1=L.x1),L.y1<I.y1&&(I.y1=L.y1),L.x2>I.x2&&(I.x2=L.x2),L.y2>I.y2&&(I.y2=L.y2);const F=50;I.x1-=F,I.y1-=F,I.x2+=F,I.y2+=F,a=I;const B=r.canvas.width/r.canvas.height,ne=(a.x2-a.x1)/(a.y2-a.y1);if(B>ne){const L=(B-ne)*(a.y2-a.y1)*.5;a.x1-=L,a.x2+=L}else{const L=a.x2-a.x1,$=a.y2-a.y1,H=(L-B*$)/B*.5;a.y1-=H,a.y2+=H}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const L of n.value.connections){const[$,H]=yu(Pa(L.from)),[U,Q]=yu(Pa(L.to)),[J,j]=d($,H),[ae,ve]=d(U,Q);if(r.beginPath(),r.moveTo(J,j),e.value.settings.useStraightConnections)r.lineTo(ae,ve);else{const ee=.3*Math.abs(J-ae);r.bezierCurveTo(J+ee,j,ae-ee,ve,ae,ve)}r.stroke()}r.strokeStyle="lightgray";for(const[L,$]of k.entries()){const[H,U]=d($.x1,$.y1),[Q,J]=d($.x2,$.y2);r.fillStyle=f(x.get(L)),r.beginPath(),r.rect(H,U,Q-H,J-U),r.fill(),r.stroke()}if(s.value){const L=m(),[$,H]=d(L.x1,L.y1),[U,Q]=d(L.x2,L.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect($,H,U-$,Q-H)}},d=(T,O)=>[(T-a.x1)/(a.x2-a.x1)*r.canvas.width,(O-a.y1)/(a.y2-a.y1)*r.canvas.height],h=(T,O)=>[T*(a.x2-a.x1)/r.canvas.width+a.x1,O*(a.y2-a.y1)/r.canvas.height+a.y1],f=T=>{if(T){const O=T.querySelector(".__content");if(O){const x=_(O);if(x)return x}const k=_(T);if(k)return k}return"gray"},_=T=>{const O=getComputedStyle(T).backgroundColor;if(O&&O!=="rgba(0, 0, 0, 0)")return O},m=()=>{const T=i.value.parentElement.offsetWidth,O=i.value.parentElement.offsetHeight,k=T/n.value.scaling-n.value.panning.x,x=O/n.value.scaling-n.value.panning.y;return{x1:-n.value.panning.x,y1:-n.value.panning.y,x2:k,y2:x}},E=T=>{T.button===0&&(o=!0,b(T))},b=T=>{if(o){const[O,k]=h(T.offsetX,T.offsetY),x=m(),I=(x.x2-x.x1)/2,F=(x.y2-x.y1)/2;n.value.panning.x=-(O-I),n.value.panning.y=-(k-F)}},g=()=>{o=!1},y=()=>{s.value=!0},v=()=>{s.value=!1,g()};qn([s,n.value.panning,()=>n.value.scaling,()=>n.value.connections.length],()=>{u()});const S=st(()=>n.value.nodes.map(T=>T.position)),C=st(()=>n.value.nodes.map(T=>T.width));return qn([S,C],()=>{u()},{deep:!0}),Ws(()=>{r=i.value.getContext("2d"),r.imageSmoothingQuality="high",u(),l=setInterval(u,500)}),Va(()=>{clearInterval(l)}),(T,O)=>(w(),A("canvas",{ref_key:"canvas",ref:i,class:"baklava-minimap",onMouseenter:y,onMouseleave:v,onMousedown:be(E,["self"]),onMousemove:be(b,["self"]),onMouseup:g},null,544))}}),jkt=_n({components:{ContextMenu:_y,VerticalDots:KI},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(t){const{viewModel:e}=Oi(),{switchGraph:n}=Ki(),i=ft(!1),s=st(()=>t.type.startsWith(lc));return{showContextMenu:i,hasContextMenu:s,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{i.value=!0},onContextMenuClick:l=>{const u=t.type.substring(lc.length),d=e.value.editor.graphTemplates.find(h=>h.id===u);if(d)switch(l){case"editSubgraph":n(d);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(d);break}}}}}),Qkt=["data-node-type"],Xkt={class:"__title"},Zkt={class:"__title-label"},Jkt={key:0,class:"__menu"};function eLt(t,e,n,i,s,r){const o=mt("vertical-dots"),a=mt("context-menu");return w(),A("div",{class:"baklava-node --palette","data-node-type":t.type},[c("div",Xkt,[c("div",Zkt,he(t.title),1),t.hasContextMenu?(w(),A("div",Jkt,[Te(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=be(()=>{},["stop","prevent"])),onClick:be(t.openContextMenu,["stop","prevent"])},null,8,["onClick"]),Te(a,{modelValue:t.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=l=>t.showContextMenu=l),x:-100,y:0,items:t.contextMenuItems,onClick:t.onContextMenuClick,onPointerdown:e[2]||(e[2]=be(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):V("",!0)])],8,Qkt)}const Bw=hn(jkt,[["render",eLt]]),tLt={class:"baklava-node-palette"},nLt={key:0},iLt=_n({__name:"NodePalette",setup(t){const{viewModel:e}=Oi(),{x:n,y:i}=dkt(),{transform:s}=HI(),r=zI(e),o=Vi("editorEl"),a=ft(null),l=st(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:d,top:h}=o.value.getBoundingClientRect();return{top:`${i.value-h}px`,left:`${n.value-d}px`}}),u=(d,h)=>{a.value={type:d,nodeInformation:h};const f=()=>{const _=ei(new h.type);e.value.displayedGraph.addNode(_);const m=o.value.getBoundingClientRect(),[E,b]=s(n.value-m.left,i.value-m.top);_.position.x=E,_.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(d,h)=>(w(),A(Ye,null,[c("div",tLt,[(w(!0),A(Ye,null,lt(yt(r),f=>(w(),A("section",{key:f.name},[f.name!=="default"?(w(),A("h1",nLt,he(f.name),1)):V("",!0),(w(!0),A(Ye,null,lt(f.nodeTypes,(_,m)=>(w(),xt(Bw,{key:m,type:m,title:_.title,onPointerdown:E=>u(m,_)},null,8,["type","title","onPointerdown"]))),128))]))),128))]),Te(cs,{name:"fade"},{default:We(()=>[a.value?(w(),A("div",{key:0,class:"baklava-dragged-node",style:en(l.value)},[Te(Bw,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):V("",!0)]),_:1})],64))}});let Cd;const sLt=new Uint8Array(16);function rLt(){if(!Cd&&(Cd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cd(sLt)}const wn=[];for(let t=0;t<256;++t)wn.push((t+256).toString(16).slice(1));function oLt(t,e=0){return wn[t[e+0]]+wn[t[e+1]]+wn[t[e+2]]+wn[t[e+3]]+"-"+wn[t[e+4]]+wn[t[e+5]]+"-"+wn[t[e+6]]+wn[t[e+7]]+"-"+wn[t[e+8]]+wn[t[e+9]]+"-"+wn[t[e+10]]+wn[t[e+11]]+wn[t[e+12]]+wn[t[e+13]]+wn[t[e+14]]+wn[t[e+15]]}const aLt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gw={randomUUID:aLt};function vu(t,e,n){if(Gw.randomUUID&&!e&&!t)return Gw.randomUUID();t=t||{};const i=t.random||(t.rng||rLt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=i[s];return e}return oLt(i)}const cc="SAVE_SUBGRAPH";function lLt(t,e){const n=()=>{const i=t.value;if(!i.template)throw new Error("Graph template property not set");i.template.update(i.save()),i.template.panning=i.panning,i.template.scaling=i.scaling};e.registerCommand(cc,{canExecute:()=>{var i;return t.value!==((i=t.value.editor)==null?void 0:i.graph)},execute:n})}const cLt={},dLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},uLt=c("polyline",{points:"6 9 12 15 18 9"},null,-1),pLt=[uLt];function _Lt(t,e){return w(),A("svg",dLt,pLt)}const hLt=hn(cLt,[["render",_Lt]]),fLt=_n({components:{"i-arrow":hLt},props:{intf:{type:Object,required:!0}},setup(t){const e=ft(null),n=ft(!1),i=st(()=>t.intf.items.find(o=>typeof o=="string"?o===t.intf.value:o.value===t.intf.value)),s=st(()=>i.value?typeof i.value=="string"?i.value:i.value.text:""),r=o=>{t.intf.value=typeof o=="string"?o:o.value};return $I(e,()=>{n.value=!1}),{el:e,open:n,selectedItem:i,selectedText:s,setSelected:r}}}),mLt=["title"],gLt={class:"__selected"},bLt={class:"__text"},ELt={class:"__icon"},yLt={class:"__dropdown"},vLt={class:"item --header"},SLt=["onClick"];function TLt(t,e,n,i,s,r){const o=mt("i-arrow");return w(),A("div",{ref:"el",class:ze(["baklava-select",{"--open":t.open}]),title:t.intf.name,onClick:e[0]||(e[0]=a=>t.open=!t.open)},[c("div",gLt,[c("div",bLt,he(t.selectedText),1),c("div",ELt,[Te(o)])]),Te(cs,{name:"slide-fade"},{default:We(()=>[G(c("div",yLt,[c("div",vLt,he(t.intf.name),1),(w(!0),A(Ye,null,lt(t.intf.items,(a,l)=>(w(),A("div",{key:l,class:ze(["item",{"--active":a===t.selectedItem}]),onClick:u=>t.setSelected(a)},he(typeof a=="string"?a:a.text),11,SLt))),128))],512),[[Mt,t.open]])]),_:1})],10,mLt)}const xLt=hn(fLt,[["render",TLt]]);class CLt extends nn{constructor(e,n,i){super(e,n),this.component=dc(xLt),this.items=i}}const wLt=_n({props:{intf:{type:Object,required:!0}}});function RLt(t,e,n,i,s,r){return w(),A("div",null,he(t.intf.value),1)}const ALt=hn(wLt,[["render",RLt]]);class NLt extends nn{constructor(e,n){super(e,n),this.component=dc(ALt),this.setPort(!1)}}const OLt=_n({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){return{v:st({get:()=>t.modelValue,set:i=>{e("update:modelValue",i)}})}}}),ILt=["placeholder","title"];function MLt(t,e,n,i,s,r){return w(),A("div",null,[G(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.v=o),type:"text",class:"baklava-input",placeholder:t.intf.name,title:t.intf.name},null,8,ILt),[[we,t.v]])])}const DLt=hn(OLt,[["render",MLt]]);class Tc extends nn{constructor(){super(...arguments),this.component=dc(DLt)}}class QI extends PI{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new Tc("Name","Input").setPort(!1)},this.outputs={placeholder:new nn("Connection",void 0)}}}class XI extends UI{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new Tc("Name","Output").setPort(!1),placeholder:new nn("Connection",void 0)},this.outputs={output:new nn("Output",void 0).setHidden(!0)}}}const ZI="CREATE_SUBGRAPH",Vw=[Da,ka];function kLt(t,e,n){const i=()=>t.value.selectedNodes.filter(r=>!Vw.includes(r.type)).length>0,s=()=>{const{viewModel:r}=Oi(),o=t.value,a=t.value.editor;if(o.selectedNodes.length===0)return;const l=o.selectedNodes.filter(x=>!Vw.includes(x.type)),u=l.flatMap(x=>Object.values(x.inputs)),d=l.flatMap(x=>Object.values(x.outputs)),h=o.connections.filter(x=>!d.includes(x.from)&&u.includes(x.to)),f=o.connections.filter(x=>d.includes(x.from)&&!u.includes(x.to)),_=o.connections.filter(x=>d.includes(x.from)&&u.includes(x.to)),m=l.map(x=>x.save()),E=_.map(x=>({id:x.id,from:x.from.id,to:x.to.id})),b=new Map,{xLeft:g,xRight:y,yTop:v}=LLt(l);console.log(g,y,v);for(const[x,I]of h.entries()){const F=new QI;F.inputs.name.value=I.to.name,m.push({...F.save(),position:{x:y-r.value.settings.nodes.defaultWidth-100,y:v+x*200}}),E.push({id:vu(),from:F.outputs.placeholder.id,to:I.to.id}),b.set(I.to.id,F.graphInterfaceId)}for(const[x,I]of f.entries()){const F=new XI;F.inputs.name.value=I.from.name,m.push({...F.save(),position:{x:g+100,y:v+x*200}}),E.push({id:vu(),from:I.from.id,to:F.inputs.placeholder.id}),b.set(I.from.id,F.graphInterfaceId)}const S=ei(new hp({connections:E,nodes:m,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const C=a.nodeTypes.get(La(S));if(!C)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");const T=ei(new C.type);o.addNode(T);const O=Math.round(l.map(x=>x.position.x).reduce((x,I)=>x+I,0)/l.length),k=Math.round(l.map(x=>x.position.y).reduce((x,I)=>x+I,0)/l.length);T.position.x=O,T.position.y=k,h.forEach(x=>{o.removeConnection(x),o.addConnection(x.from,T.inputs[b.get(x.to.id)])}),f.forEach(x=>{o.removeConnection(x),o.addConnection(T.outputs[b.get(x.from.id)],x.to)}),l.forEach(x=>o.removeNode(x)),e.canExecuteCommand(cc)&&e.executeCommand(cc),n(S),t.value.panning={...o.panning},t.value.scaling=o.scaling};e.registerCommand(ZI,{canExecute:i,execute:s})}function LLt(t){const e=t.reduce((s,r)=>{const o=r.position.x;return o<s?o:s},1/0),n=t.reduce((s,r)=>{const o=r.position.y;return o<s?o:s},1/0);return{xLeft:t.reduce((s,r)=>{const o=r.position.x+r.width;return o>s?o:s},-1/0),xRight:e,yTop:n}}const zw="DELETE_NODES";function PLt(t,e){e.registerCommand(zw,{canExecute:()=>t.value.selectedNodes.length>0,execute(){t.value.selectedNodes.forEach(n=>t.value.removeNode(n))}}),e.registerHotkey(["Delete"],zw)}const JI="SWITCH_TO_MAIN_GRAPH";function ULt(t,e,n){e.registerCommand(JI,{canExecute:()=>t.value!==t.value.editor.graph,execute:()=>{e.executeCommand(cc),n(t.value.editor.graph)}})}function FLt(t,e,n){PLt(t,e),kLt(t,e,n),lLt(t,e),ULt(t,e,n)}class Hw{constructor(e,n){this.type=e,e==="addNode"?this.nodeId=n:this.nodeState=n}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const n=e.editor.nodeTypes.get(this.nodeState.type);if(!n)return;const i=new n.type;e.addNode(i),i.load(this.nodeState),this.nodeId=i.id}removeNode(e){const n=e.nodes.find(i=>i.id===this.nodeId);n&&(this.nodeState=n.save(),e.removeNode(n))}}class qw{constructor(e,n){if(this.type=e,e==="addConnection")this.connectionId=n;else{const i=n;this.connectionState={id:i.id,from:i.from.id,to:i.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const n=e.findNodeInterface(this.connectionState.from),i=e.findNodeInterface(this.connectionState.to);!n||!i||e.addConnection(n,i)}removeConnection(e){const n=e.connections.find(i=>i.id===this.connectionId);n&&(this.connectionState={id:n.id,from:n.from.id,to:n.to.id},e.removeConnection(n))}}class BLt{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let n=this.steps.length-1;n>=0;n--)this.steps[n].undo(e)}redo(e){for(let n=0;n<this.steps.length;n++)this.steps[n].redo(e)}}const yb="UNDO",vb="REDO",eM="START_TRANSACTION",tM="COMMIT_TRANSACTION";function GLt(t,e){const n=Symbol("HistoryToken"),i=ft(200),s=ft([]),r=ft(!1),o=ft(-1),a=ft(!1),l=ft([]),u=b=>{if(!r.value)if(a.value)l.value.push(b);else for(o.value!==s.value.length-1&&(s.value=s.value.slice(0,o.value+1)),s.value.push(b),o.value++;s.value.length>i.value;)s.value.shift()},d=()=>{a.value=!0},h=()=>{a.value=!1,l.value.length>0&&(u(new BLt(l.value)),l.value=[])},f=()=>s.value.length!==0&&o.value!==-1,_=()=>{f()&&(r.value=!0,s.value[o.value--].undo(t.value),r.value=!1)},m=()=>s.value.length!==0&&o.value<s.value.length-1,E=()=>{m()&&(r.value=!0,s.value[++o.value].redo(t.value),r.value=!1)};return qn(t,(b,g)=>{g&&(g.events.addNode.unsubscribe(n),g.events.removeNode.unsubscribe(n),g.events.addConnection.unsubscribe(n),g.events.removeConnection.unsubscribe(n)),b&&(b.events.addNode.subscribe(n,y=>{u(new Hw("addNode",y.id))}),b.events.removeNode.subscribe(n,y=>{u(new Hw("removeNode",y.save()))}),b.events.addConnection.subscribe(n,y=>{u(new qw("addConnection",y.id))}),b.events.removeConnection.subscribe(n,y=>{u(new qw("removeConnection",y))}))},{immediate:!0}),e.registerCommand(yb,{canExecute:f,execute:_}),e.registerCommand(vb,{canExecute:m,execute:E}),e.registerCommand(eM,{canExecute:()=>!a.value,execute:d}),e.registerCommand(tM,{canExecute:()=>a.value,execute:h}),e.registerHotkey(["Control","z"],yb),e.registerHotkey(["Control","y"],vb),ei({maxSteps:i})}const Sb="COPY",Tb="PASTE",VLt="CLEAR_CLIPBOARD";function zLt(t,e,n){const i=Symbol("ClipboardToken"),s=ft(""),r=ft(""),o=st(()=>!s.value),a=()=>{s.value="",r.value=""},l=()=>{const h=t.value.selectedNodes.flatMap(_=>[...Object.values(_.inputs),...Object.values(_.outputs)]),f=t.value.connections.filter(_=>h.includes(_.from)||h.includes(_.to)).map(_=>({from:_.from.id,to:_.to.id}));r.value=JSON.stringify(f),s.value=JSON.stringify(t.value.selectedNodes.map(_=>_.save()))},u=(h,f,_)=>{for(const m of h){let E;if((!_||_==="input")&&(E=Object.values(m.inputs).find(b=>b.id===f)),!E&&(!_||_==="output")&&(E=Object.values(m.outputs).find(b=>b.id===f)),E)return E}},d=()=>{if(o.value)return;const h=new Map,f=JSON.parse(s.value),_=JSON.parse(r.value),m=[],E=[],b=t.value;n.executeCommand(eM);for(const g of f){const y=e.value.nodeTypes.get(g.type);if(!y){console.warn(`Node type ${g.type} not registered`);return}const v=new y.type,S=v.id;m.push(v),v.hooks.beforeLoad.subscribe(i,C=>{const T=C;return T.position&&(T.position.x+=100,T.position.y+=100),v.hooks.beforeLoad.unsubscribe(i),T}),b.addNode(v),v.load({...g,id:S}),v.id=S,h.set(g.id,S);for(const C of Object.values(v.inputs)){const T=vu();h.set(C.id,T),C.id=T}for(const C of Object.values(v.outputs)){const T=vu();h.set(C.id,T),C.id=T}}for(const g of _){const y=u(m,h.get(g.from),"output"),v=u(m,h.get(g.to),"input");if(!y||!v)continue;const S=b.addConnection(y,v);S&&E.push(S)}return t.value.selectedNodes=m,n.executeCommand(tM),{newNodes:m,newConnections:E}};return n.registerCommand(Sb,{canExecute:()=>t.value.selectedNodes.length>0,execute:l}),n.registerHotkey(["Control","c"],Sb),n.registerCommand(Tb,{canExecute:()=>!o.value,execute:d}),n.registerHotkey(["Control","v"],Tb),n.registerCommand(VLt,{canExecute:()=>!0,execute:a}),ei({isEmpty:o})}const HLt="OPEN_SIDEBAR";function qLt(t,e){e.registerCommand(HLt,{execute:n=>{t.value.sidebar.nodeId=n,t.value.sidebar.visible=!0},canExecute:()=>!0})}function YLt(t,e){qLt(t,e)}const $Lt={},WLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},KLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),jLt=c("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),QLt=[KLt,jLt];function XLt(t,e){return w(),A("svg",WLt,QLt)}const ZLt=hn($Lt,[["render",XLt]]),JLt={},ePt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},tPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),nPt=c("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),iPt=[tPt,nPt];function sPt(t,e){return w(),A("svg",ePt,iPt)}const rPt=hn(JLt,[["render",sPt]]),oPt={},aPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},lPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),cPt=c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),dPt=c("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),uPt=c("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),pPt=[lPt,cPt,dPt,uPt];function _Pt(t,e){return w(),A("svg",aPt,pPt)}const hPt=hn(oPt,[["render",_Pt]]),fPt={},mPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},gPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),bPt=c("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),EPt=c("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),yPt=[gPt,bPt,EPt];function vPt(t,e){return w(),A("svg",mPt,yPt)}const SPt=hn(fPt,[["render",vPt]]),TPt={},xPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},CPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),wPt=c("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),RPt=c("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),APt=[CPt,wPt,RPt];function NPt(t,e){return w(),A("svg",xPt,APt)}const OPt=hn(TPt,[["render",NPt]]),IPt={},MPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},DPt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),kPt=c("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),LPt=c("circle",{cx:"12",cy:"14",r:"2"},null,-1),PPt=c("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),UPt=[DPt,kPt,LPt,PPt];function FPt(t,e){return w(),A("svg",MPt,UPt)}const BPt=hn(IPt,[["render",FPt]]),GPt={},VPt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},zPt=Vb('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 3h4v4h-4z"></path><path d="M3 17h4v4h-4z"></path><path d="M17 17h4v4h-4z"></path><path d="M7 17l5 -4l5 4"></path><line x1="12" y1="7" x2="12" y2="13"></line>',6),HPt=[zPt];function qPt(t,e){return w(),A("svg",VPt,HPt)}const YPt=hn(GPt,[["render",qPt]]),$Pt=_n({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:t}=Oi();return{viewModel:t}}}),WPt=["disabled","title"];function KPt(t,e,n,i,s,r){return w(),A("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!t.viewModel.commandHandler.canExecuteCommand(t.command),title:t.title,onClick:e[0]||(e[0]=o=>t.viewModel.commandHandler.executeCommand(t.command))},[t.icon?(w(),xt(Lu(t.icon),{key:0})):(w(),A(Ye,{key:1},[et(he(t.title),1)],64))],8,WPt)}const jPt=hn($Pt,[["render",KPt]]),QPt=_n({components:{ToolbarButton:jPt},setup(){const{viewModel:t}=Oi();return{isSubgraph:st(()=>t.value.displayedGraph!==t.value.editor.graph),commands:[{command:Sb,title:"Copy",icon:OPt},{command:Tb,title:"Paste",icon:SPt},{command:yb,title:"Undo",icon:ZLt},{command:vb,title:"Redo",icon:rPt},{command:ZI,title:"Create Subgraph",icon:YPt}],subgraphCommands:[{command:cc,title:"Save Subgraph",icon:BPt},{command:JI,title:"Back to Main Graph",icon:hPt}]}}}),XPt={class:"baklava-toolbar"};function ZPt(t,e,n,i,s,r){const o=mt("toolbar-button");return w(),A("div",XPt,[(w(!0),A(Ye,null,lt(t.commands,a=>(w(),xt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),t.isSubgraph?(w(!0),A(Ye,{key:0},lt(t.subgraphCommands,a=>(w(),xt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):V("",!0)])}const JPt=hn(QPt,[["render",ZPt]]),eUt={class:"connections-container"},tUt=_n({__name:"Editor",props:{viewModel:{}},setup(t){const e=t,n=Symbol("EditorToken"),i=$d(e,"viewModel");jDt(i);const s=ft(null);sa("editorEl",s);const r=st(()=>e.viewModel.displayedGraph.nodes),o=st(()=>e.viewModel.displayedGraph.nodes.map(O=>GI($d(O,"position")))),a=st(()=>e.viewModel.displayedGraph.connections),l=st(()=>e.viewModel.displayedGraph.selectedNodes),u=QDt(),d=XDt(),h=ZDt(i),f=st(()=>({...u.styles.value})),_=ft(0);e.viewModel.editor.hooks.load.subscribe(n,O=>(_.value++,O));const m=O=>{u.onPointerMove(O),d.onMouseMove(O)},E=O=>{O.button===0&&(O.target===s.value&&(S(),u.onPointerDown(O)),d.onMouseDown())},b=O=>{u.onPointerUp(O),d.onMouseUp()},g=O=>{O.key==="Tab"&&O.preventDefault(),e.viewModel.commandHandler.handleKeyDown(O)},y=O=>{e.viewModel.commandHandler.handleKeyUp(O)},v=O=>{["Control","Shift"].some(k=>e.viewModel.commandHandler.pressedKeys.includes(k))||S(),e.viewModel.displayedGraph.selectedNodes.push(O)},S=()=>{e.viewModel.displayedGraph.selectedNodes=[]},C=O=>{for(const k of e.viewModel.displayedGraph.selectedNodes){const x=r.value.indexOf(k),I=o.value[x];I.onPointerDown(O),document.addEventListener("pointermove",I.onPointerMove)}document.addEventListener("pointerup",T)},T=()=>{for(const O of e.viewModel.displayedGraph.selectedNodes){const k=r.value.indexOf(O),x=o.value[k];x.onPointerUp(),document.removeEventListener("pointermove",x.onPointerMove)}document.removeEventListener("pointerup",T)};return(O,k)=>(w(),A("div",{ref_key:"el",ref:s,tabindex:"-1",class:ze(["baklava-editor",{"baklava-ignore-mouse":!!yt(d).temporaryConnection.value||yt(u).dragging.value,"--temporary-connection":!!yt(d).temporaryConnection.value}]),onPointermove:be(m,["self"]),onPointerdown:E,onPointerup:b,onWheel:k[1]||(k[1]=be((...x)=>yt(u).onMouseWheel&&yt(u).onMouseWheel(...x),["self"])),onKeydown:g,onKeyup:y,onContextmenu:k[2]||(k[2]=be((...x)=>yt(h).open&&yt(h).open(...x),["self","prevent"]))},[kn(O.$slots,"background",{},()=>[Te(tkt)]),kn(O.$slots,"toolbar",{},()=>[Te(JPt)]),kn(O.$slots,"palette",{},()=>[Te(iLt)]),(w(),A("svg",eUt,[(w(!0),A(Ye,null,lt(a.value,x=>(w(),A("g",{key:x.id+_.value.toString()},[kn(O.$slots,"connection",{connection:x},()=>[Te(Bkt,{connection:x},null,8,["connection"])])]))),128)),kn(O.$slots,"temporaryConnection",{temporaryConnection:yt(d).temporaryConnection.value},()=>[yt(d).temporaryConnection.value?(w(),xt(zkt,{key:0,connection:yt(d).temporaryConnection.value},null,8,["connection"])):V("",!0)])])),c("div",{class:"node-container",style:en(f.value)},[Te(os,{name:"fade"},{default:We(()=>[(w(!0),A(Ye,null,lt(r.value,(x,I)=>kn(O.$slots,"node",{key:x.id+_.value.toString(),node:x,selected:l.value.includes(x),dragging:o.value[I].dragging.value,onSelect:F=>v(x),onStartDrag:C},()=>[Te(Mkt,{node:x,selected:l.value.includes(x),dragging:o.value[I].dragging.value,onSelect:F=>v(x),onStartDrag:C},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),kn(O.$slots,"sidebar",{},()=>[Te(Wkt)]),kn(O.$slots,"minimap",{},()=>[O.viewModel.settings.enableMinimap?(w(),xt(Kkt,{key:0})):V("",!0)]),kn(O.$slots,"contextMenu",{contextMenu:yt(h)},()=>[O.viewModel.settings.contextMenu.enabled?(w(),xt(_y,{key:0,modelValue:yt(h).show.value,"onUpdate:modelValue":k[0]||(k[0]=x=>yt(h).show.value=x),items:yt(h).items.value,x:yt(h).x.value,y:yt(h).y.value,onClick:yt(h).onClick},null,8,["modelValue","items","x","y","onClick"])):V("",!0)])],34))}}),nUt=["INPUT","TEXTAREA","SELECT"];function iUt(t){const e=ft([]),n=ft([]);return{pressedKeys:e,handleKeyDown:o=>{var a;e.value.includes(o.key)||e.value.push(o.key),!nUt.includes(((a=document.activeElement)==null?void 0:a.tagName)??"")&&n.value.forEach(l=>{l.keys.every(u=>e.value.includes(u))&&t(l.commandName)})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a)=>{n.value.push({keys:o,commandName:a})}}}const sUt=()=>{const t=ft(new Map),e=(r,o)=>{if(t.value.has(r))throw new Error(`Command "${r}" already exists`);t.value.set(r,o)},n=(r,o=!1,...a)=>{if(!t.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return}return t.value.get(r).execute(...a)},i=(r,o=!1,...a)=>{if(!t.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return!1}return t.value.get(r).canExecute(a)},s=iUt(n);return ei({registerCommand:e,executeCommand:n,canExecuteCommand:i,...s})},rUt=t=>!(t instanceof Sc);function oUt(t,e){return{switchGraph:i=>{let s;if(rUt(i))s=new Sc(t.value),i.createGraph(s);else{if(i!==t.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");s=i}e.value&&e.value!==t.value.graph&&e.value.destroy(),s.panning=s.panning??i.panning??{x:0,y:0},s.scaling=s.scaling??i.scaling??1,s.selectedNodes=s.selectedNodes??[],s.sidebar=s.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=s}}}function aUt(t,e){t.position=t.position??{x:0,y:0},t.disablePointerEvents=!1,t.twoColumn=t.twoColumn??!1,t.width=t.width??e.defaultWidth}const lUt=()=>({useStraightConnections:!1,enableMinimap:!1,background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1},contextMenu:{enabled:!0,additionalItems:[]}});function cUt(t){const e=ft(t??new HDt),n=Symbol("ViewModelToken"),i=ft(null),s=s2(i),{switchGraph:r}=oUt(e,i),o=st(()=>s.value&&s.value!==e.value.graph),a=ei(lUt()),l=sUt(),u=GLt(s,l),d=zLt(s,e,l),h={renderNode:new li(null),renderInterface:new li(null)};return FLt(s,l,r),YLt(s,l),qn(e,(f,_)=>{_&&(_.events.registerGraph.unsubscribe(n),_.graphEvents.beforeAddNode.unsubscribe(n),f.nodeHooks.beforeLoad.unsubscribe(n),f.nodeHooks.afterSave.unsubscribe(n),f.graphTemplateHooks.beforeLoad.unsubscribe(n),f.graphTemplateHooks.afterSave.unsubscribe(n),f.graph.hooks.load.unsubscribe(n),f.graph.hooks.save.unsubscribe(n)),f&&(f.nodeHooks.beforeLoad.subscribe(n,(m,E)=>(E.position=m.position??{x:0,y:0},E.width=m.width??a.nodes.defaultWidth,E.twoColumn=m.twoColumn??!1,m)),f.nodeHooks.afterSave.subscribe(n,(m,E)=>(m.position=E.position,m.width=E.width,m.twoColumn=E.twoColumn,m)),f.graphTemplateHooks.beforeLoad.subscribe(n,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graphTemplateHooks.afterSave.subscribe(n,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graph.hooks.load.subscribe(n,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graph.hooks.save.subscribe(n,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graphEvents.beforeAddNode.subscribe(n,m=>aUt(m,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(QI,{category:"Subgraphs"}),e.value.registerNodeType(XI,{category:"Subgraphs"}),r(f.graph))},{immediate:!0}),ei({editor:e,displayedGraph:s,isSubgraph:o,settings:a,commandHandler:l,history:u,clipboard:d,hooks:h,switchGraph:r})}const dUt=Ja({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new nn("Request",""),agent_name:()=>new CLt("Personality","",Su.state.config.personalities).setPort(!1)},outputs:{response:()=>new nn("Response","")},async calculate({request:t}){console.log(Su.state.config.personalities);let e="";try{e=(await Se.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),uUt=Ja({type:"RAGNode",title:"RAG",inputs:{request:()=>new nn("Prompt",""),document_path:()=>new Tc("Document path","").setPort(!1)},outputs:{prompt:()=>new nn("Prompt with Data","")},async calculate({request:t,document_path:e}){let n="";try{n=(await Se.get("/rag",{params:{text:t,doc_path:e}})).data}catch(i){console.error(i)}return{response:n}}}),Yw=Ja({type:"Task",title:"Task",inputs:{description:()=>new Tc("Task description","").setPort(!1)},outputs:{prompt:()=>new nn("Prompt")},calculate({description:t}){return{prompt:t}}}),$w=Ja({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new nn("Input","")},outputs:{response:()=>new NLt("Text","")},async calculate({request:t}){}}),Ww=Ja({type:"LLMNode",title:"LLM",inputs:{request:()=>new nn("Request","")},outputs:{response:()=>new nn("Response","")},async calculate({request:t}){console.log(Su.state.config.personalities);let e="";try{e=(await Se.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),pUt=Ja({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new nn("Question",""),outputs:()=>new Tc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new nn("Response","")}}),_Ut=_n({components:{"baklava-editor":tUt},setup(){const t=cUt(),e=new KDt(t.editor);t.editor.registerNodeType(dUt),t.editor.registerNodeType(Yw),t.editor.registerNodeType(uUt),t.editor.registerNodeType($w),t.editor.registerNodeType(Ww),t.editor.registerNodeType(pUt);const n=Symbol();e.events.afterRun.subscribe(n,a=>{e.pause(),qDt(a,t.editor),e.resume()}),e.start();function i(a,l,u){const d=new a;return t.displayedGraph.addNode(d),d.position.x=l,d.position.y=u,d}const s=i(Yw,300,140),r=i(Ww,550,140),o=i($w,850,140);return t.displayedGraph.addConnection(s.outputs.prompt,r.inputs.request),t.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:t,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),hUt={style:{width:"100vw",height:"100vh"}};function fUt(t,e,n,i,s,r){const o=mt("baklava-editor");return w(),A("div",hUt,[Te(o,{"view-model":t.baklava},null,8,["view-model"]),c("button",{onClick:e[0]||(e[0]=(...a)=>t.saveGraph&&t.saveGraph(...a))},"Save Graph"),c("button",{onClick:e[1]||(e[1]=(...a)=>t.loadGraph&&t.loadGraph(...a))},"Load Graph")])}const mUt=bt(_Ut,[["render",fUt]]),gUt={},bUt={style:{width:"100vw",height:"100vh"}},EUt=["src"];function yUt(t,e,n,i,s,r){return w(),A("div",bUt,[c("iframe",{src:t.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,EUt)])}const vUt=bt(gUt,[["render",yUt]]),SUt={},TUt={style:{width:"100vw",height:"100vh"}},xUt=["src"];function CUt(t,e,n,i,s,r){return w(),A("div",TUt,[c("iframe",{src:t.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,xUt)])}const wUt=bt(SUt,[["render",CUt]]),RUt=HP({history:aP("/"),routes:[{path:"/auto_sd_view/",name:"AutoSD",component:wUt},{path:"/autosd_view/",name:"ComfyUI",component:vUt},{path:"/playground/",name:"playground",component:Rtt},{path:"/extensions/",name:"extensions",component:Ftt},{path:"/help_view/",name:"help_view",component:qtt},{path:"/settings/",name:"settings",component:Ybt},{path:"/training/",name:"training",component:pEt},{path:"/quantizing/",name:"quantizing",component:vEt},{path:"/",name:"discussions",component:vwt},{path:"/",name:"interactive",component:PDt},{path:"/",name:"nodes",component:mUt}]});const fp=jD(RZe);console.log("Loaded main.js");function AUt(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const Su=vk({state(){return{is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setisRTOn(t,e){t.is_rt_on=e},setLanguages(t,e){t.languages=e},setLanguage(t,e){t.language=e},setIsReady(t,e){t.ready=e},setIsConnected(t,e){t.isConnected=e},setIsModelOk(t,e){t.isModelOk=e},setIsGenerating(t,e){t.isGenerating=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},setbindingsZoo(t,e){t.bindingsZoo=e},setModelsArr(t,e){t.modelsArr=e},setselectedModel(t,e){t.selectedModel=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.modelsZoo=e},setCurrentBinding(t,e){t.currentBinding=e},setCurrentModel(t,e){t.currentModel=e},setDatabases(t,e){t.databases=e},setTheme(t){this.currentTheme=t}},getters:{getisRTOn(t){return t.is_rt_on},getLanguages(t){return t.languages},getLanguage(t){return t.language},getIsConnected(t){return t.isConnected},getIsModelOk(t){return t.isModelOk},getIsGenerating(t){return t.isGenerating},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getMountedPers(t){return t.mountedPers},getbindingsZoo(t){return t.bindingsZoo},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getDatabasesList(t){return t.databases},getModelsZoo(t){return t.modelsZoo},getCyrrentBinding(t){return t.currentBinding},getCurrentModel(t){return t.currentModel}},actions:{async getVersion(){try{let t=await Se.get("/get_lollms_webui_version",{});t&&(this.state.version=t.data,console.log("version res:",t),console.log("version :",this.state.version))}catch{console.log("Coudln't get version")}},async refreshConfig({commit:t}){console.log("Fetching configuration");try{const e=await ki("get_config");e.active_personality_id<0&&(e.active_personality_id=0);let n=e.personalities[e.active_personality_id].split("/");e.personality_category=n[0],e.personality_folder=n[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:t}){let e=await ki("list_databases");console.log("databases:",e),t("setDatabases",e)},async fetchisRTOn({commit:t}){console.log("is_rt_on",this.state.client_id);const e=await Se.get("/is_rt_on");console.log("response",e);const n=e.data.status;console.log("is_rt_on",n),t("setRTOn",n)},async fetchLanguages({commit:t}){console.log("get_personality_languages_list",this.state.client_id);const e=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("languages",n),t("setLanguages",n)},async fetchLanguage({commit:t}){console.log("get_personality_language",this.state.client_id);const e=await Se.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("language",n),t("setLanguage",n)},async changeLanguage({commit:t},e){console.log("Changing language to ",e);let n=await Se.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("languages",i),t("setLanguages",i),n=await Se.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const s=n.data;console.log("language",s),t("setLanguage",s),console.log("Language changed successfully:",n.data.message)},async deleteLanguage({commit:t},e){console.log("Deleting ",e);let n=await Se.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await Se.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("languages",i),t("setLanguages",i),n=await Se.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const s=n.data;console.log("language",s),t("setLanguage",s),console.log("Language changed successfully:",n.data.message)},async refreshPersonalitiesZoo({commit:t}){let e=[];const n=await ki("get_all_personalities"),i=Object.keys(n);console.log("Personalities recovered:"+this.state.config.personalities);for(let s=0;s<i.length;s++){const r=i[s],a=n[r].map(l=>{let u=!1;for(const h of this.state.config.personalities)if(h.includes(r+"/"+l.folder))if(u=!0,h.includes(":")){const f=h.split(":");l.language=f[1]}else l.language=null;let d={};return d=l,d.category=r,d.full_path=r+"/"+l.folder,d.isMounted=u,d});e.length==0?e=a:e=e.concat(a)}e.sort((s,r)=>s.name.localeCompare(r.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const n=[];for(let i=0;i<this.state.config.personalities.length;i++){const s=this.state.config.personalities[i],r=s.split(":"),o=this.state.personalities.findIndex(a=>a.full_path==s||a.full_path==r[0]);if(o>=0){let a=AUt(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else n.push(i),console.log("Couldn't load personality : ",s)}for(let i=n.length-1;i>=0;i--)console.log("Removing personality : ",this.state.config.personalities[n[i]]),this.state.config.personalities.splice(n[i],1),this.state.config.active_personality_id>n[i]&&(this.state.config.active_personality_id-=1);t("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(i=>i.full_path==this.state.config.personalities[this.state.config.active_personality_id]||i.full_path+":"+i.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:t}){let e=await ki("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(i=>i.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),t("setbindingsZoo",e);const n=e.findIndex(i=>i.name==this.state.config.binding_name);n!=-1&&t("setCurrentBinding",e[n])},async refreshModelsZoo({commit:t}){console.log("Fetching models");const n=(await Se.get("/get_available_models")).data.filter(i=>i.variants&&i.variants.length>0);console.log(`get_available_models: ${n}`),t("setModelsZoo",n)},async refreshModelStatus({commit:t}){let e=await ki("get_model_status");t("setIsModelOk",e.status)},async refreshModels({commit:t}){console.log("Fetching models");let e=await ki("list_models");console.log(`Found ${e}`);let n=await ki("get_active_model");console.log("Selected model ",n),n!=null&&t("setselectedModel",n.model),t("setModelsArr",e),console.log("setModelsArr",e),console.log("this.state.modelsZoo",this.state.modelsZoo),this.state.modelsZoo.map(s=>{s.isInstalled=e.includes(s.name)}),this.state.installedModels=this.state.modelsZoo.filter(s=>s.isInstalled);const i=this.state.modelsZoo.findIndex(s=>s.name==this.state.config.model_name);i!=-1&&t("setCurrentModel",this.state.modelsZoo[i])},async refreshDiskUsage({commit:t}){this.state.diskUsage=await ki("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await ki("ram_usage")},async refreshVramUsage({commit:t}){const e=await ki("vram_usage"),n=[];if(e.nb_gpus>0){for(let s=0;s<e.nb_gpus;s++){const r=e[`gpu_${s}_total_vram`],o=e[`gpu_${s}_used_vram`],a=e[`gpu_${s}_model`],l=o/r*100,u=r-o;n.push({total_vram:r,used_vram:o,gpu_index:s,gpu_model:a,percentage:l.toFixed(2),available_space:u})}const i={nb_gpus:e.nb_gpus,gpus:n};console.log("gpu usage: ",i),this.state.vramUsage=i}else{const i={nb_gpus:0,gpus:[]};console.log("gpu usage: ",i),this.state.vramUsage=i}}}});async function ki(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){throw console.log(e.message,"api_get_req"),e}}async function NUt(t,e){try{const n=await Se.post("/"+t,{client_id:e});if(n)return n.data}catch(n){console.log(n.message,"api_post_req - settings");return}}async function OUt(t){await t.dispatch("refreshDiskUsage"),await t.dispatch("refreshRamUsage"),await t.dispatch("refreshVramUsage")}let Kw=!1;fp.mixin({async created(){if(!Kw){this.$store.state.api_get_req=ki,this.$store.state.api_post_req=NUt,Kw=!0,console.log("Calling");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Configuration",this.$store.state.loading_progress=10,await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Hardware usage",await OUt(this.$store)}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.ready=!0}},beforeMount(){}});function nM(t,e=""){let n=[];for(const i in t)if(t.hasOwnProperty(i)){const s=e?`${e}/${i}`:i;if(typeof t[i]=="object"){const r=nM(t[i],s);n=n.concat(r)}else n.push(s)}return n}fp.use(RUt);fp.use(Su);fp.mount("#app");
|