@nubisco/openbridge 0.32.3 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/avatar-claim.test.d.ts +2 -0
- package/dist/__tests__/avatar-claim.test.d.ts.map +1 -0
- package/dist/__tests__/avatar-claim.test.js +47 -0
- package/dist/__tests__/avatar-claim.test.js.map +1 -0
- package/dist/auth.d.ts +16 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +41 -2
- package/dist/auth.js.map +1 -1
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +18 -0
- package/dist/daemon.js.map +1 -1
- package/dist/platform-client.d.ts +5 -0
- package/dist/platform-client.d.ts.map +1 -1
- package/dist/platform-client.js.map +1 -1
- package/package.json +5 -5
- package/ui-dist/assets/index-DFxPl0Mj.js +106 -0
- package/ui-dist/assets/{index-CdTRF5cq.css → index-DTlHOOkG.css} +2 -2
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/index-CHDfUhDg.js +0 -106
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const n of s)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function i(s){const n={};return s.integrity&&(n.integrity=s.integrity),s.referrerPolicy&&(n.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?n.credentials="include":s.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(s){if(s.ep)return;s.ep=!0;const n=i(s);fetch(s.href,n)}})();/**
|
|
2
|
+
* @vue/shared v3.5.32
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function sh(e){const t=Object.create(null);for(const i of e.split(","))t[i]=1;return i=>i in t}const Ge={},dn=[],lr=()=>{},p_=()=>!1,P0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),O0=e=>e.startsWith("onUpdate:"),Pt=Object.assign,nh=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},av=Object.prototype.hasOwnProperty,tt=(e,t)=>av.call(e,t),Re=Array.isArray,fn=e=>sl(e)==="[object Map]",Hn=e=>sl(e)==="[object Set]",bd=e=>sl(e)==="[object Date]",Ze=e=>typeof e=="function",wt=e=>typeof e=="string",Ei=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",m_=e=>(Xe(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),g_=Object.prototype.toString,sl=e=>g_.call(e),ov=e=>sl(e).slice(8,-1),v_=e=>sl(e)==="[object Object]",I0=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yo=sh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),R0=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},lv=/-\w/g,li=R0(e=>e.replace(lv,t=>t.slice(1).toUpperCase())),cv=/\B([A-Z])/g,Zr=R0(e=>e.replace(cv,"-$1").toLowerCase()),D0=R0(e=>e.charAt(0).toUpperCase()+e.slice(1)),vc=R0(e=>e?`on${D0(e)}`:""),ai=(e,t)=>!Object.is(e,t),Fl=(e,...t)=>{for(let i=0;i<e.length;i++)e[i](...t)},b_=(e,t,i,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})},V0=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uv=e=>{const t=wt(e)?Number(e):NaN;return isNaN(t)?e:t};let yd;const B0=()=>yd||(yd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mi(e){if(Re(e)){const t={};for(let i=0;i<e.length;i++){const r=e[i],s=wt(r)?_v(r):mi(r);if(s)for(const n in s)t[n]=s[n]}return t}else if(wt(e)||Xe(e))return e}const hv=/;(?![^(]*\))/g,dv=/:([^]+)/,fv=/\/\*[^]*?\*\//g;function _v(e){const t={};return e.replace(fv,"").split(hv).forEach(i=>{if(i){const r=i.split(dv);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Le(e){let t="";if(wt(e))t=e;else if(Re(e))for(let i=0;i<e.length;i++){const r=Le(e[i]);r&&(t+=r+" ")}else if(Xe(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}const pv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",mv=sh(pv);function y_(e){return!!e||e===""}function gv(e,t){if(e.length!==t.length)return!1;let i=!0;for(let r=0;i&&r<e.length;r++)i=us(e[r],t[r]);return i}function us(e,t){if(e===t)return!0;let i=bd(e),r=bd(t);if(i||r)return i&&r?e.getTime()===t.getTime():!1;if(i=Ei(e),r=Ei(t),i||r)return e===t;if(i=Re(e),r=Re(t),i||r)return i&&r?gv(e,t):!1;if(i=Xe(e),r=Xe(t),i||r){if(!i||!r)return!1;const s=Object.keys(e).length,n=Object.keys(t).length;if(s!==n)return!1;for(const a in e){const o=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(o&&!l||!o&&l||!us(e[a],t[a]))return!1}}return String(e)===String(t)}function ah(e,t){return e.findIndex(i=>us(i,t))}const w_=e=>!!(e&&e.__v_isRef===!0),U=e=>wt(e)?e:e==null?"":Re(e)||Xe(e)&&(e.toString===g_||!Ze(e.toString))?w_(e)?U(e.value):JSON.stringify(e,S_,2):String(e),S_=(e,t)=>w_(t)?S_(e,t.value):fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[r,s],n)=>(i[bc(r,n)+" =>"]=s,i),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>bc(i))}:Ei(t)?bc(t):Xe(t)&&!Re(t)&&!v_(t)?String(t):t,bc=(e,t="")=>{var i;return Ei(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.32
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let ni;class C_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ni,!t&&ni&&(this.index=(ni.scopes||(ni.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,i;if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].pause();for(t=0,i=this.effects.length;t<i;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,i;if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].resume();for(t=0,i=this.effects.length;t<i;t++)this.effects[t].resume()}}run(t){if(this._active){const i=ni;try{return ni=this,t()}finally{ni=i}}}on(){++this._on===1&&(this.prevScope=ni,ni=this)}off(){this._on>0&&--this._on===0&&(ni=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let i,r;for(i=0,r=this.effects.length;i<r;i++)this.effects[i].stop();for(this.effects.length=0,i=0,r=this.cleanups.length;i<r;i++)this.cleanups[i]();if(this.cleanups.length=0,this.scopes){for(i=0,r=this.scopes.length;i<r;i++)this.scopes[i].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function oh(e){return new C_(e)}function A_(){return ni}function vv(e,t=!1){ni&&ni.cleanups.push(e)}let dt;const yc=new WeakSet;class k_{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ni&&ni.active&&ni.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,yc.has(this)&&(yc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||L_(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wd(this),E_(this);const t=dt,i=Wi;dt=this,Wi=!0;try{return this.fn()}finally{x_(this),dt=t,Wi=i,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)uh(t);this.deps=this.depsTail=void 0,wd(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?yc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){d1(this)&&this.run()}get dirty(){return d1(this)}}let M_=0,wo,So;function L_(e,t=!1){if(e.flags|=8,t){e.next=So,So=e;return}e.next=wo,wo=e}function lh(){M_++}function ch(){if(--M_>0)return;if(So){let t=So;for(So=void 0;t;){const i=t.next;t.next=void 0,t.flags&=-9,t=i}}let e;for(;wo;){let t=wo;for(wo=void 0;t;){const i=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=i}}if(e)throw e}function E_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function x_(e){let t,i=e.depsTail,r=i;for(;r;){const s=r.prevDep;r.version===-1?(r===i&&(i=s),uh(r),bv(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=i}function d1(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===To)||(e.globalVersion=To,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!d1(e))))return;e.flags|=2;const t=e.dep,i=dt,r=Wi;dt=e,Wi=!0;try{E_(e);const s=e.fn(e._value);(t.version===0||ai(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{dt=i,Wi=r,x_(e),e.flags&=-3}}function uh(e,t=!1){const{dep:i,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),i.subs===e&&(i.subs=r,!r&&i.computed)){i.computed.flags&=-5;for(let n=i.computed.deps;n;n=n.nextDep)uh(n,!0)}!t&&!--i.sc&&i.map&&i.map.delete(i.key)}function bv(e){const{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}let Wi=!0;const T_=[];function Ir(){T_.push(Wi),Wi=!1}function Rr(){const e=T_.pop();Wi=e===void 0?!0:e}function wd(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const i=dt;dt=void 0;try{t()}finally{dt=i}}}let To=0;class yv{constructor(t,i){this.sub=t,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Z0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!dt||!Wi||dt===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==dt)i=this.activeLink=new yv(dt,this),dt.deps?(i.prevDep=dt.depsTail,dt.depsTail.nextDep=i,dt.depsTail=i):dt.deps=dt.depsTail=i,N_(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const r=i.nextDep;r.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=r),i.prevDep=dt.depsTail,i.nextDep=void 0,dt.depsTail.nextDep=i,dt.depsTail=i,dt.deps===i&&(dt.deps=r)}return i}trigger(t){this.version++,To++,this.notify(t)}notify(t){lh();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{ch()}}}function N_(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)N_(r)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}}const e0=new WeakMap,Bs=Symbol(""),f1=Symbol(""),No=Symbol("");function oi(e,t,i){if(Wi&&dt){let r=e0.get(e);r||e0.set(e,r=new Map);let s=r.get(i);s||(r.set(i,s=new Z0),s.map=r,s.key=i),s.track()}}function kr(e,t,i,r,s,n){const a=e0.get(e);if(!a){To++;return}const o=l=>{l&&l.trigger()};if(lh(),t==="clear")a.forEach(o);else{const l=Re(e),c=l&&I0(i);if(l&&i==="length"){const u=Number(r);a.forEach((h,d)=>{(d==="length"||d===No||!Ei(d)&&d>=u)&&o(h)})}else switch((i!==void 0||a.has(void 0))&&o(a.get(i)),c&&o(a.get(No)),t){case"add":l?c&&o(a.get("length")):(o(a.get(Bs)),fn(e)&&o(a.get(f1)));break;case"delete":l||(o(a.get(Bs)),fn(e)&&o(a.get(f1)));break;case"set":fn(e)&&o(a.get(Bs));break}}ch()}function wv(e,t){const i=e0.get(e);return i&&i.get(t)}function Js(e){const t=Ke(e);return t===e?t:(oi(t,"iterate",No),Li(e)?t:t.map(ji))}function F0(e){return oi(e=Ke(e),"iterate",No),e}function nr(e,t){return Dr(e)?mn(Pr(e)?ji(t):t):ji(t)}const Sv={__proto__:null,[Symbol.iterator](){return wc(this,Symbol.iterator,e=>nr(this,e))},concat(...e){return Js(this).concat(...e.map(t=>Re(t)?Js(t):t))},entries(){return wc(this,"entries",e=>(e[1]=nr(this,e[1]),e))},every(e,t){return gr(this,"every",e,t,void 0,arguments)},filter(e,t){return gr(this,"filter",e,t,i=>i.map(r=>nr(this,r)),arguments)},find(e,t){return gr(this,"find",e,t,i=>nr(this,i),arguments)},findIndex(e,t){return gr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return gr(this,"findLast",e,t,i=>nr(this,i),arguments)},findLastIndex(e,t){return gr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return gr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sc(this,"includes",e)},indexOf(...e){return Sc(this,"indexOf",e)},join(e){return Js(this).join(e)},lastIndexOf(...e){return Sc(this,"lastIndexOf",e)},map(e,t){return gr(this,"map",e,t,void 0,arguments)},pop(){return Ya(this,"pop")},push(...e){return Ya(this,"push",e)},reduce(e,...t){return Sd(this,"reduce",e,t)},reduceRight(e,...t){return Sd(this,"reduceRight",e,t)},shift(){return Ya(this,"shift")},some(e,t){return gr(this,"some",e,t,void 0,arguments)},splice(...e){return Ya(this,"splice",e)},toReversed(){return Js(this).toReversed()},toSorted(e){return Js(this).toSorted(e)},toSpliced(...e){return Js(this).toSpliced(...e)},unshift(...e){return Ya(this,"unshift",e)},values(){return wc(this,"values",e=>nr(this,e))}};function wc(e,t,i){const r=F0(e),s=r[t]();return r!==e&&!Li(e)&&(s._next=s.next,s.next=()=>{const n=s._next();return n.done||(n.value=i(n.value)),n}),s}const Cv=Array.prototype;function gr(e,t,i,r,s,n){const a=F0(e),o=a!==e&&!Li(e),l=a[t];if(l!==Cv[t]){const h=l.apply(e,n);return o?ji(h):h}let c=i;a!==e&&(o?c=function(h,d){return i.call(this,nr(e,h),d,e)}:i.length>2&&(c=function(h,d){return i.call(this,h,d,e)}));const u=l.call(a,c,r);return o&&s?s(u):u}function Sd(e,t,i,r){const s=F0(e),n=s!==e&&!Li(e);let a=i,o=!1;s!==e&&(n?(o=r.length===0,a=function(c,u,h){return o&&(o=!1,c=nr(e,c)),i.call(this,c,nr(e,u),h,e)}):i.length>3&&(a=function(c,u,h){return i.call(this,c,u,h,e)}));const l=s[t](a,...r);return o?nr(e,l):l}function Sc(e,t,i){const r=Ke(e);oi(r,"iterate",No);const s=r[t](...i);return(s===-1||s===!1)&&z0(i[0])?(i[0]=Ke(i[0]),r[t](...i)):s}function Ya(e,t,i=[]){Ir(),lh();const r=Ke(e)[t].apply(e,i);return ch(),Rr(),r}const Av=sh("__proto__,__v_isRef,__isVue"),H_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ei));function kv(e){Ei(e)||(e=String(e));const t=Ke(this);return oi(t,"has",e),t.hasOwnProperty(e)}class P_{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,r){if(i==="__v_skip")return t.__v_skip;const s=this._isReadonly,n=this._isShallow;if(i==="__v_isReactive")return!s;if(i==="__v_isReadonly")return s;if(i==="__v_isShallow")return n;if(i==="__v_raw")return r===(s?n?Ov:D_:n?R_:I_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Re(t);if(!s){let l;if(a&&(l=Sv[i]))return l;if(i==="hasOwnProperty")return kv}const o=Reflect.get(t,i,gt(t)?t:r);if((Ei(i)?H_.has(i):Av(i))||(s||oi(t,"get",i),n))return o;if(gt(o)){const l=a&&I0(i)?o:o.value;return s&&Xe(l)?Ho(l):l}return Xe(o)?s?Ho(o):Ws(o):o}}class O_ extends P_{constructor(t=!1){super(!1,t)}set(t,i,r,s){let n=t[i];const a=Re(t)&&I0(i);if(!this._isShallow){const c=Dr(n);if(!Li(r)&&!Dr(r)&&(n=Ke(n),r=Ke(r)),!a&>(n)&&!gt(r))return c||(n.value=r),!0}const o=a?Number(i)<t.length:tt(t,i),l=Reflect.set(t,i,r,gt(t)?t:s);return t===Ke(s)&&(o?ai(r,n)&&kr(t,"set",i,r):kr(t,"add",i,r)),l}deleteProperty(t,i){const r=tt(t,i);t[i];const s=Reflect.deleteProperty(t,i);return s&&r&&kr(t,"delete",i,void 0),s}has(t,i){const r=Reflect.has(t,i);return(!Ei(i)||!H_.has(i))&&oi(t,"has",i),r}ownKeys(t){return oi(t,"iterate",Re(t)?"length":Bs),Reflect.ownKeys(t)}}class Mv extends P_{constructor(t=!1){super(!0,t)}set(t,i){return!0}deleteProperty(t,i){return!0}}const Lv=new O_,Ev=new Mv,xv=new O_(!0);const _1=e=>e,yl=e=>Reflect.getPrototypeOf(e);function $v(e,t,i){return function(...r){const s=this.__v_raw,n=Ke(s),a=fn(n),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=s[e](...r),u=i?_1:t?mn:ji;return!t&&oi(n,"iterate",l?f1:Bs),Pt(Object.create(c),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}}})}}function wl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Tv(e,t){const i={get(s){const n=this.__v_raw,a=Ke(n),o=Ke(s);e||(ai(s,o)&&oi(a,"get",s),oi(a,"get",o));const{has:l}=yl(a),c=t?_1:e?mn:ji;if(l.call(a,s))return c(n.get(s));if(l.call(a,o))return c(n.get(o));n!==a&&n.get(s)},get size(){const s=this.__v_raw;return!e&&oi(Ke(s),"iterate",Bs),s.size},has(s){const n=this.__v_raw,a=Ke(n),o=Ke(s);return e||(ai(s,o)&&oi(a,"has",s),oi(a,"has",o)),s===o?n.has(s):n.has(s)||n.has(o)},forEach(s,n){const a=this,o=a.__v_raw,l=Ke(o),c=t?_1:e?mn:ji;return!e&&oi(l,"iterate",Bs),o.forEach((u,h)=>s.call(n,c(u),c(h),a))}};return Pt(i,e?{add:wl("add"),set:wl("set"),delete:wl("delete"),clear:wl("clear")}:{add(s){const n=Ke(this),a=yl(n),o=Ke(s),l=!t&&!Li(s)&&!Dr(s)?o:s;return a.has.call(n,l)||ai(s,l)&&a.has.call(n,s)||ai(o,l)&&a.has.call(n,o)||(n.add(l),kr(n,"add",l,l)),this},set(s,n){!t&&!Li(n)&&!Dr(n)&&(n=Ke(n));const a=Ke(this),{has:o,get:l}=yl(a);let c=o.call(a,s);c||(s=Ke(s),c=o.call(a,s));const u=l.call(a,s);return a.set(s,n),c?ai(n,u)&&kr(a,"set",s,n):kr(a,"add",s,n),this},delete(s){const n=Ke(this),{has:a,get:o}=yl(n);let l=a.call(n,s);l||(s=Ke(s),l=a.call(n,s)),o&&o.call(n,s);const c=n.delete(s);return l&&kr(n,"delete",s,void 0),c},clear(){const s=Ke(this),n=s.size!==0,a=s.clear();return n&&kr(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{i[s]=$v(s,e,t)}),i}function hh(e,t){const i=Tv(e,t);return(r,s,n)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(tt(i,s)&&s in r?i:r,s,n)}const Nv={get:hh(!1,!1)},Hv={get:hh(!1,!0)},Pv={get:hh(!0,!1)};const I_=new WeakMap,R_=new WeakMap,D_=new WeakMap,Ov=new WeakMap;function Iv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rv(e){return e.__v_skip||!Object.isExtensible(e)?0:Iv(ov(e))}function Ws(e){return Dr(e)?e:dh(e,!1,Lv,Nv,I_)}function V_(e){return dh(e,!1,xv,Hv,R_)}function Ho(e){return dh(e,!0,Ev,Pv,D_)}function dh(e,t,i,r,s){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=Rv(e);if(n===0)return e;const a=s.get(e);if(a)return a;const o=new Proxy(e,n===2?r:i);return s.set(e,o),o}function Pr(e){return Dr(e)?Pr(e.__v_raw):!!(e&&e.__v_isReactive)}function Dr(e){return!!(e&&e.__v_isReadonly)}function Li(e){return!!(e&&e.__v_isShallow)}function z0(e){return e?!!e.__v_raw:!1}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function fh(e){return!tt(e,"__v_skip")&&Object.isExtensible(e)&&b_(e,"__v_skip",!0),e}const ji=e=>Xe(e)?Ws(e):e,mn=e=>Xe(e)?Ho(e):e;function gt(e){return e?e.__v_isRef===!0:!1}function Q(e){return B_(e,!1)}function Vr(e){return B_(e,!0)}function B_(e,t){return gt(e)?e:new Dv(e,t)}class Dv{constructor(t,i){this.dep=new Z0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?t:Ke(t),this._value=i?t:ji(t),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(t){const i=this._rawValue,r=this.__v_isShallow||Li(t)||Dr(t);t=r?t:Ke(t),ai(t,i)&&(this._rawValue=t,this._value=r?t:ji(t),this.dep.trigger())}}function le(e){return gt(e)?e.value:e}function Vv(e){return Ze(e)?e():le(e)}const Bv={get:(e,t,i)=>t==="__v_raw"?e:le(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const s=e[t];return gt(s)&&!gt(i)?(s.value=i,!0):Reflect.set(e,t,i,r)}};function Z_(e){return Pr(e)?e:new Proxy(e,Bv)}class Zv{constructor(t){this.__v_isRef=!0,this._value=void 0;const i=this.dep=new Z0,{get:r,set:s}=t(i.track.bind(i),i.trigger.bind(i));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Fv(e){return new Zv(e)}function zv(e){const t=Re(e)?new Array(e.length):{};for(const i in e)t[i]=F_(e,i);return t}class Uv{constructor(t,i,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Ei(i)?i:String(i),this._raw=Ke(t);let s=!0,n=t;if(!Re(t)||Ei(this._key)||!I0(this._key))do s=!z0(n)||Li(n);while(s&&(n=n.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=le(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&>(this._raw[this._key])){const i=this._object[this._key];if(gt(i)){i.value=t;return}}this._object[this._key]=t}get dep(){return wv(this._raw,this._key)}}class Wv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function jv(e,t,i){return gt(e)?e:Ze(e)?new Wv(e):Xe(e)&&arguments.length>1?F_(e,t,i):Q(e)}function F_(e,t,i){return new Uv(e,t,i)}class Kv{constructor(t,i,r){this.fn=t,this.setter=i,this._value=void 0,this.dep=new Z0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=To-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&dt!==this)return L_(this,!0),!0}get value(){const t=this.dep.track();return $_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function qv(e,t,i=!1){let r,s;return Ze(e)?r=e:(r=e.get,s=e.set),new Kv(r,s,i)}const Sl={},t0=new WeakMap;let $s;function Gv(e,t=!1,i=$s){if(i){let r=t0.get(i);r||t0.set(i,r=[]),r.push(e)}}function Yv(e,t,i=Ge){const{immediate:r,deep:s,once:n,scheduler:a,augmentJob:o,call:l}=i,c=v=>s?v:Li(v)||s===!1||s===0?Mr(v,1):Mr(v);let u,h,d,f,g=!1,_=!1;if(gt(e)?(h=()=>e.value,g=Li(e)):Pr(e)?(h=()=>c(e),g=!0):Re(e)?(_=!0,g=e.some(v=>Pr(v)||Li(v)),h=()=>e.map(v=>{if(gt(v))return v.value;if(Pr(v))return c(v);if(Ze(v))return l?l(v,2):v()})):Ze(e)?t?h=l?()=>l(e,2):e:h=()=>{if(d){Ir();try{d()}finally{Rr()}}const v=$s;$s=u;try{return l?l(e,3,[f]):e(f)}finally{$s=v}}:h=lr,t&&s){const v=h,k=s===!0?1/0:s;h=()=>Mr(v(),k)}const A=A_(),p=()=>{u.stop(),A&&A.active&&nh(A.effects,u)};if(n&&t){const v=t;t=(...k)=>{v(...k),p()}}let S=_?new Array(e.length).fill(Sl):Sl;const m=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const k=u.run();if(s||g||(_?k.some((x,M)=>ai(x,S[M])):ai(k,S))){d&&d();const x=$s;$s=u;try{const M=[k,S===Sl?void 0:_&&S[0]===Sl?[]:S,f];S=k,l?l(t,3,M):t(...M)}finally{$s=x}}}else u.run()};return o&&o(m),u=new k_(h),u.scheduler=a?()=>a(m,!1):m,f=v=>Gv(v,!1,u),d=u.onStop=()=>{const v=t0.get(u);if(v){if(l)l(v,4);else for(const k of v)k();t0.delete(u)}},t?r?m(!0):S=u.run():a?a(m.bind(null,!0),!0):u.run(),p.pause=u.pause.bind(u),p.resume=u.resume.bind(u),p.stop=p,p}function Mr(e,t=1/0,i){if(t<=0||!Xe(e)||e.__v_skip||(i=i||new Map,(i.get(e)||0)>=t))return e;if(i.set(e,t),t--,gt(e))Mr(e.value,t,i);else if(Re(e))for(let r=0;r<e.length;r++)Mr(e[r],t,i);else if(Hn(e)||fn(e))e.forEach(r=>{Mr(r,t,i)});else if(v_(e)){for(const r in e)Mr(e[r],t,i);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Mr(e[r],t,i)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.32
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function nl(e,t,i,r){try{return r?e(...r):e()}catch(s){al(s,t,i)}}function Ki(e,t,i,r){if(Ze(e)){const s=nl(e,t,i,r);return s&&m_(s)&&s.catch(n=>{al(n,t,i)}),s}if(Re(e)){const s=[];for(let n=0;n<e.length;n++)s.push(Ki(e[n],t,i,r));return s}}function al(e,t,i,r=!0){const s=t?t.vnode:null,{errorHandler:n,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ge;if(t){let o=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${i}`;for(;o;){const u=o.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,l,c)===!1)return}o=o.parent}if(n){Ir(),nl(n,null,10,[e,l,c]),Rr();return}}Xv(e,i,s,r,a)}function Xv(e,t,i,r=!0,s=!1){if(s)throw e;console.error(e)}const _i=[];let rr=-1;const _n=[];let Qr=null,nn=0;const z_=Promise.resolve();let i0=null;function Di(e){const t=i0||z_;return e?t.then(this?e.bind(this):e):t}function Jv(e){let t=rr+1,i=_i.length;for(;t<i;){const r=t+i>>>1,s=_i[r],n=Po(s);n<e||n===e&&s.flags&2?t=r+1:i=r}return t}function _h(e){if(!(e.flags&1)){const t=Po(e),i=_i[_i.length-1];!i||!(e.flags&2)&&t>=Po(i)?_i.push(e):_i.splice(Jv(t),0,e),e.flags|=1,U_()}}function U_(){i0||(i0=z_.then(j_))}function Qv(e){Re(e)?_n.push(...e):Qr&&e.id===-1?Qr.splice(nn+1,0,e):e.flags&1||(_n.push(e),e.flags|=1),U_()}function Cd(e,t,i=rr+1){for(;i<_i.length;i++){const r=_i[i];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_i.splice(i,1),i--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function W_(e){if(_n.length){const t=[...new Set(_n)].sort((i,r)=>Po(i)-Po(r));if(_n.length=0,Qr){Qr.push(...t);return}for(Qr=t,nn=0;nn<Qr.length;nn++){const i=Qr[nn];i.flags&4&&(i.flags&=-2),i.flags&8||i(),i.flags&=-2}Qr=null,nn=0}}const Po=e=>e.id==null?e.flags&2?-1:1/0:e.id;function j_(e){try{for(rr=0;rr<_i.length;rr++){const t=_i[rr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),nl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;rr<_i.length;rr++){const t=_i[rr];t&&(t.flags&=-2)}rr=-1,_i.length=0,W_(),i0=null,(_i.length||_n.length)&&j_()}}let ti=null,K_=null;function r0(e){const t=ti;return ti=e,K_=e&&e.type.__scopeId||null,t}function te(e,t=ti,i){if(!t||e._n)return e;const r=(...s)=>{r._d&&o0(-1);const n=r0(t);let a;try{a=e(...s)}finally{r0(n),r._d&&o0(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Zs(e,t){if(ti===null)return e;const i=K0(ti),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[n,a,o,l=Ge]=t[s];n&&(Ze(n)&&(n={mounted:n,updated:n}),n.deep&&Mr(a),r.push({dir:n,instance:i,value:a,oldValue:void 0,arg:o,modifiers:l}))}return e}function Ss(e,t,i,r){const s=e.dirs,n=t&&t.dirs;for(let a=0;a<s.length;a++){const o=s[a];n&&(o.oldValue=n[a].value);let l=o.dir[r];l&&(Ir(),Ki(l,i,8,[e.el,o,e,t]),Rr())}}function as(e,t){if(Qt){let i=Qt.provides;const r=Qt.parent&&Qt.parent.provides;r===i&&(i=Qt.provides=Object.create(r)),i[e]=t}}function ii(e,t,i=!1){const r=gi();if(r||Fs){let s=Fs?Fs._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return i&&Ze(t)?t.call(r&&r.proxy):t}}function e5(){return!!(gi()||Fs)}const t5=Symbol.for("v-scx"),i5=()=>ii(t5);function r5(e,t){return ph(e,null,{flush:"sync"})}function Fe(e,t,i){return ph(e,t,i)}function ph(e,t,i=Ge){const{immediate:r,deep:s,flush:n,once:a}=i,o=Pt({},i),l=t&&r||!t&&n!=="post";let c;if(gn){if(n==="sync"){const f=i5();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=lr,f.resume=lr,f.pause=lr,f}}const u=Qt;o.call=(f,g,_)=>Ki(f,u,g,_);let h=!1;n==="post"?o.scheduler=f=>{hi(f,u&&u.suspense)}:n!=="sync"&&(h=!0,o.scheduler=(f,g)=>{g?f():_h(f)}),o.augmentJob=f=>{t&&(f.flags|=4),h&&(f.flags|=2,u&&(f.id=u.uid,f.i=u))};const d=Yv(e,t,o);return gn&&(c?c.push(d):l&&d()),d}function s5(e,t,i){const r=this.proxy,s=wt(e)?e.includes(".")?q_(r,e):()=>r[e]:e.bind(r,r);let n;Ze(t)?n=t:(n=t.handler,i=t);const a=ll(this),o=ph(s,n.bind(r),i);return a(),o}function q_(e,t){const i=t.split(".");return()=>{let r=e;for(let s=0;s<i.length&&r;s++)r=r[i[s]];return r}}const Cs=new WeakMap,G_=Symbol("_vte"),Y_=e=>e.__isTeleport,Ps=e=>e&&(e.disabled||e.disabled===""),n5=e=>e&&(e.defer||e.defer===""),Ad=e=>typeof SVGElement<"u"&&e instanceof SVGElement,kd=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,p1=(e,t)=>{const i=e&&e.to;return wt(i)?t?t(i):null:i},a5={name:"Teleport",__isTeleport:!0,process(e,t,i,r,s,n,a,o,l,c){const{mc:u,pc:h,pbc:d,o:{insert:f,querySelector:g,createText:_,createComment:A}}=c,p=Ps(t.props);let{dynamicChildren:S}=t;const m=(x,M,F)=>{x.shapeFlag&16&&u(x.children,M,F,s,n,a,o,l)},v=(x=t)=>{const M=Ps(x.props),F=x.target=p1(x.props,g),P=m1(F,x,_,f);F&&(a!=="svg"&&Ad(F)?a="svg":a!=="mathml"&&kd(F)&&(a="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(F),M||(m(x,F,P),ho(x,!1)))},k=x=>{const M=()=>{Cs.get(x)===M&&(Cs.delete(x),Ps(x.props)&&(m(x,i,x.anchor),ho(x,!0)),v(x))};Cs.set(x,M),hi(M,n)};if(e==null){const x=t.el=_(""),M=t.anchor=_("");if(f(x,i,r),f(M,i,r),n5(t.props)||n&&n.pendingBranch){k(t);return}p&&(m(t,i,M),ho(t,!0)),v()}else{t.el=e.el;const x=t.anchor=e.anchor,M=Cs.get(e);if(M){M.flags|=8,Cs.delete(e),k(t);return}t.targetStart=e.targetStart;const F=t.target=e.target,P=t.targetAnchor=e.targetAnchor,O=Ps(e.props),R=O?i:F,N=O?x:P;if(a==="svg"||Ad(F)?a="svg":(a==="mathml"||kd(F))&&(a="mathml"),S?(d(e.dynamicChildren,S,R,s,n,a,o),bh(e,t,!0)):l||h(e,t,R,N,s,n,a,o,!1),p)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Cl(t,i,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=p1(t.props,g);T&&Cl(t,T,null,c,0)}else O&&Cl(t,F,P,c,1);ho(t,p)}},remove(e,t,i,{um:r,o:{remove:s}},n){const{shapeFlag:a,children:o,anchor:l,targetStart:c,targetAnchor:u,target:h,props:d}=e;let f=n||!Ps(d);const g=Cs.get(e);if(g&&(g.flags|=8,Cs.delete(e),f=!1),h&&(s(c),s(u)),n&&s(l),a&16)for(let _=0;_<o.length;_++){const A=o[_];r(A,t,i,f,!!A.dynamicChildren)}},move:Cl,hydrate:o5};function Cl(e,t,i,{o:{insert:r},m:s},n=2){n===0&&r(e.targetAnchor,t,i);const{el:a,anchor:o,shapeFlag:l,children:c,props:u}=e,h=n===2;if(h&&r(a,t,i),(!h||Ps(u))&&l&16)for(let d=0;d<c.length;d++)s(c[d],t,i,2);h&&r(o,t,i)}function o5(e,t,i,r,s,n,{o:{nextSibling:a,parentNode:o,querySelector:l,insert:c,createText:u}},h){function d(A,p){let S=p;for(;S;){if(S&&S.nodeType===8){if(S.data==="teleport start anchor")t.targetStart=S;else if(S.data==="teleport anchor"){t.targetAnchor=S,A._lpa=t.targetAnchor&&a(t.targetAnchor);break}}S=a(S)}}function f(A,p){p.anchor=h(a(A),p,o(A),i,r,s,n)}const g=t.target=p1(t.props,l),_=Ps(t.props);if(g){const A=g._lpa||g.firstChild;t.shapeFlag&16&&(_?(f(e,t),d(g,A),t.targetAnchor||m1(g,t,u,c,o(e)===g?e:null)):(t.anchor=a(e),d(g,A),t.targetAnchor||m1(g,t,u,c),h(A&&a(A),t,g,i,r,s,n))),ho(t,_)}else _&&t.shapeFlag&16&&(f(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const Or=a5;function ho(e,t){const i=e.ctx;if(i&&i.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",i.uid),r=r.nextSibling;i.ut()}}function m1(e,t,i,r,s=null){const n=t.targetStart=i(""),a=t.targetAnchor=i("");return n[G_]=a,e&&(r(n,e,s),r(a,e,s)),a}const sr=Symbol("_leaveCb"),Xa=Symbol("_enterCb");function l5(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ft(()=>{e.isMounted=!0}),Zi(()=>{e.isUnmounting=!0}),e}const Ti=[Function,Array],X_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ti,onEnter:Ti,onAfterEnter:Ti,onEnterCancelled:Ti,onBeforeLeave:Ti,onLeave:Ti,onAfterLeave:Ti,onLeaveCancelled:Ti,onBeforeAppear:Ti,onAppear:Ti,onAfterAppear:Ti,onAppearCancelled:Ti},J_=e=>{const t=e.subTree;return t.component?J_(t.component):t},c5={name:"BaseTransition",props:X_,setup(e,{slots:t}){const i=gi(),r=l5();return()=>{const s=t.default&&tp(t.default(),!0);if(!s||!s.length)return;const n=Q_(s),a=Ke(e),{mode:o}=a;if(r.isLeaving)return Cc(n);const l=Md(n);if(!l)return Cc(n);let c=g1(l,a,r,i,h=>c=h);l.type!==jt&&Oo(l,c);let u=i.subTree&&Md(i.subTree);if(u&&u.type!==jt&&!Os(u,l)&&J_(i).type!==jt){let h=g1(u,a,r,i);if(Oo(u,h),o==="out-in"&&l.type!==jt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,i.job.flags&8||i.update(),delete h.afterLeave,u=void 0},Cc(n);o==="in-out"&&l.type!==jt?h.delayLeave=(d,f,g)=>{const _=ep(r,u);_[String(u.key)]=u,d[sr]=()=>{f(),d[sr]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return n}}};function Q_(e){let t=e[0];if(e.length>1){for(const i of e)if(i.type!==jt){t=i;break}}return t}const u5=c5;function ep(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function g1(e,t,i,r,s){const{appear:n,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:d,onLeave:f,onAfterLeave:g,onLeaveCancelled:_,onBeforeAppear:A,onAppear:p,onAfterAppear:S,onAppearCancelled:m}=t,v=String(e.key),k=ep(i,e),x=(P,O)=>{P&&Ki(P,r,9,O)},M=(P,O)=>{const R=O[1];x(P,O),Re(P)?P.every(N=>N.length<=1)&&R():P.length<=1&&R()},F={mode:a,persisted:o,beforeEnter(P){let O=l;if(!i.isMounted)if(n)O=A||l;else return;P[sr]&&P[sr](!0);const R=k[v];R&&Os(e,R)&&R.el[sr]&&R.el[sr](),x(O,[P])},enter(P){if(k[v]===e)return;let O=c,R=u,N=h;if(!i.isMounted)if(n)O=p||c,R=S||u,N=m||h;else return;let T=!1;P[Xa]=q=>{T||(T=!0,q?x(N,[P]):x(R,[P]),F.delayedLeave&&F.delayedLeave(),P[Xa]=void 0)};const W=P[Xa].bind(null,!1);O?M(O,[P,W]):W()},leave(P,O){const R=String(e.key);if(P[Xa]&&P[Xa](!0),i.isUnmounting)return O();x(d,[P]);let N=!1;P[sr]=W=>{N||(N=!0,O(),W?x(_,[P]):x(g,[P]),P[sr]=void 0,k[R]===e&&delete k[R])};const T=P[sr].bind(null,!1);k[R]=e,f?M(f,[P,T]):T()},clone(P){const O=g1(P,t,i,r,s);return s&&s(O),O}};return F}function Cc(e){if(ol(e))return e=hs(e),e.children=null,e}function Md(e){if(!ol(e))return Y_(e.type)&&e.children?Q_(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&Ze(i.default))return i.default()}}function Oo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Oo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function tp(e,t=!1,i){let r=[],s=0;for(let n=0;n<e.length;n++){let a=e[n];const o=i==null?a.key:String(i)+String(a.key!=null?a.key:n);a.type===be?(a.patchFlag&128&&s++,r=r.concat(tp(a.children,t,o))):(t||a.type!==jt)&&r.push(o!=null?hs(a,{key:o}):a)}if(s>1)for(let n=0;n<r.length;n++)r[n].patchFlag=-2;return r}function Oe(e,t){return Ze(e)?Pt({name:e.name},t,{setup:e}):e}function _r(){const e=gi();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function mh(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ld(e,t){let i;return!!((i=Object.getOwnPropertyDescriptor(e,t))&&!i.configurable)}const s0=new WeakMap;function Co(e,t,i,r,s=!1){if(Re(e)){e.forEach((_,A)=>Co(_,t&&(Re(t)?t[A]:t),i,r,s));return}if(pn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Co(e,t,i,r.component.subTree);return}const n=r.shapeFlag&4?K0(r.component):r.el,a=s?null:n,{i:o,r:l}=e,c=t&&t.r,u=o.refs===Ge?o.refs={}:o.refs,h=o.setupState,d=Ke(h),f=h===Ge?p_:_=>Ld(u,_)?!1:tt(d,_),g=(_,A)=>!(A&&Ld(u,A));if(c!=null&&c!==l){if(Ed(t),wt(c))u[c]=null,f(c)&&(h[c]=null);else if(gt(c)){const _=t;g(c,_.k)&&(c.value=null),_.k&&(u[_.k]=null)}}if(Ze(l))nl(l,o,12,[a,u]);else{const _=wt(l),A=gt(l);if(_||A){const p=()=>{if(e.f){const S=_?f(l)?h[l]:u[l]:g()||!e.k?l.value:u[e.k];if(s)Re(S)&&nh(S,n);else if(Re(S))S.includes(n)||S.push(n);else if(_)u[l]=[n],f(l)&&(h[l]=u[l]);else{const m=[n];g(l,e.k)&&(l.value=m),e.k&&(u[e.k]=m)}}else _?(u[l]=a,f(l)&&(h[l]=a)):A&&(g(l,e.k)&&(l.value=a),e.k&&(u[e.k]=a))};if(a){const S=()=>{p(),s0.delete(e)};S.id=-1,s0.set(e,S),hi(S,i)}else Ed(e),p()}}}function Ed(e){const t=s0.get(e);t&&(t.flags|=8,s0.delete(e))}const xd=e=>e.nodeType===8;B0().requestIdleCallback;B0().cancelIdleCallback;function h5(e,t){if(xd(e)&&e.data==="["){let i=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(xd(r))if(r.data==="]"){if(--i===0)break}else r.data==="["&&i++;r=r.nextSibling}}else t(e)}const pn=e=>!!e.type.__asyncLoader;function d5(e){Ze(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:r,delay:s=200,hydrate:n,timeout:a,suspensible:o=!0,onError:l}=e;let c=null,u,h=0;const d=()=>(h++,c=null,f()),f=()=>{let g;return c||(g=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),l)return new Promise((A,p)=>{l(_,()=>A(d()),()=>p(_),h+1)});throw _}).then(_=>g!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),u=_,_)))};return Oe({name:"AsyncComponentWrapper",__asyncLoader:f,__asyncHydrate(g,_,A){let p=!1;(_.bu||(_.bu=[])).push(()=>p=!0);const S=()=>{p||A()},m=n?()=>{const v=n(S,k=>h5(g,k));v&&(_.bum||(_.bum=[])).push(v)}:S;u?m():f().then(()=>!_.isUnmounted&&m())},get __asyncResolved(){return u},setup(){const g=Qt;if(mh(g),u)return()=>Al(u,g);const _=m=>{c=null,al(m,g,13,!r)};if(o&&g.suspense||gn)return f().then(m=>()=>Al(m,g)).catch(m=>(_(m),()=>r?X(r,{error:m}):null));const A=Q(!1),p=Q(),S=Q(!!s);return s&&setTimeout(()=>{S.value=!1},s),a!=null&&setTimeout(()=>{if(!A.value&&!p.value){const m=new Error(`Async component timed out after ${a}ms.`);_(m),p.value=m}},a),f().then(()=>{A.value=!0,g.parent&&ol(g.parent.vnode)&&g.parent.update()}).catch(m=>{_(m),p.value=m}),()=>{if(A.value&&u)return Al(u,g);if(p.value&&r)return X(r,{error:p.value});if(i&&!S.value)return Al(i,g)}}})}function Al(e,t){const{ref:i,props:r,children:s,ce:n}=t.vnode,a=X(e,r,s);return a.ref=i,a.ce=n,delete t.vnode.ce,a}const ol=e=>e.type.__isKeepAlive;function f5(e,t){ip(e,"a",t)}function _5(e,t){ip(e,"da",t)}function ip(e,t,i=Qt){const r=e.__wdc||(e.__wdc=()=>{let s=i;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(U0(t,r,i),i){let s=i.parent;for(;s&&s.parent;)ol(s.parent.vnode)&&p5(r,t,i,s),s=s.parent}}function p5(e,t,i,r){const s=U0(t,e,r,!0);Br(()=>{nh(r[t],s)},i)}function U0(e,t,i=Qt,r=!1){if(i){const s=i[e]||(i[e]=[]),n=t.__weh||(t.__weh=(...a)=>{Ir();const o=ll(i),l=Ki(t,i,e,a);return o(),Rr(),l});return r?s.unshift(n):s.push(n),n}}const Fr=e=>(t,i=Qt)=>{(!gn||e==="sp")&&U0(e,(...r)=>t(...r),i)},m5=Fr("bm"),ft=Fr("m"),g5=Fr("bu"),v5=Fr("u"),Zi=Fr("bum"),Br=Fr("um"),b5=Fr("sp"),y5=Fr("rtg"),w5=Fr("rtc");function S5(e,t=Qt){U0("ec",e,t)}const rp="components";function Io(e,t){return np(rp,e,!0,t)||e}const sp=Symbol.for("v-ndc");function W0(e){return wt(e)?np(rp,e,!1)||e:e||sp}function np(e,t,i=!0,r=!1){const s=ti||Qt;if(s){const n=s.type;{const o=n3(n,!1);if(o&&(o===t||o===li(t)||o===D0(li(t))))return n}const a=$d(s[e]||n[e],t)||$d(s.appContext[e],t);return!a&&r?n:a}}function $d(e,t){return e&&(e[t]||e[li(t)]||e[D0(li(t))])}function Ve(e,t,i,r){let s;const n=i&&i[r],a=Re(e);if(a||wt(e)){const o=a&&Pr(e);let l=!1,c=!1;o&&(l=!Li(e),c=Dr(e),e=F0(e)),s=new Array(e.length);for(let u=0,h=e.length;u<h;u++)s[u]=t(l?c?mn(ji(e[u])):ji(e[u]):e[u],u,void 0,n&&n[u])}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,n&&n[o])}else if(Xe(e))if(e[Symbol.iterator])s=Array.from(e,(o,l)=>t(o,l,void 0,n&&n[l]));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,c=o.length;l<c;l++){const u=o[l];s[l]=t(e[u],u,l,n&&n[l])}}else s=[];return i&&(i[r]=s),s}function C5(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(Re(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const n=r.fn(...s);return n&&(n.key=r.key),n}:r.fn)}return e}function Ne(e,t,i={},r,s){if(ti.ce||ti.parent&&pn(ti.parent)&&ti.parent.ce){const c=Object.keys(i).length>0;return t!=="default"&&(i.name=t),b(),fe(be,null,[X("slot",i,r&&r())],c?-2:64)}let n=e[t];n&&n._c&&(n._d=!1),b();const a=n&&ap(n(i)),o=i.key||a&&a.key,l=fe(be,{key:(o&&!Ei(o)?o:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),n&&n._c&&(n._d=!0),l}function ap(e){return e.some(t=>Do(t)?!(t.type===jt||t.type===be&&!ap(t.children)):!0)?e:null}const v1=e=>e?Ep(e)?K0(e):v1(e.parent):null,Ao=Pt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>v1(e.parent),$root:e=>v1(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>cp(e),$forceUpdate:e=>e.f||(e.f=()=>{_h(e.update)}),$nextTick:e=>e.n||(e.n=Di.bind(e.proxy)),$watch:e=>s5.bind(e)}),Ac=(e,t)=>e!==Ge&&!e.__isScriptSetup&&tt(e,t),A5={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:r,data:s,props:n,accessCache:a,type:o,appContext:l}=e;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return i[t];case 3:return n[t]}else{if(Ac(r,t))return a[t]=1,r[t];if(s!==Ge&&tt(s,t))return a[t]=2,s[t];if(tt(n,t))return a[t]=3,n[t];if(i!==Ge&&tt(i,t))return a[t]=4,i[t];b1&&(a[t]=0)}}const c=Ao[t];let u,h;if(c)return t==="$attrs"&&oi(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(i!==Ge&&tt(i,t))return a[t]=4,i[t];if(h=l.config.globalProperties,tt(h,t))return h[t]},set({_:e},t,i){const{data:r,setupState:s,ctx:n}=e;return Ac(s,t)?(s[t]=i,!0):r!==Ge&&tt(r,t)?(r[t]=i,!0):tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(n[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:s,props:n,type:a}},o){let l;return!!(i[o]||e!==Ge&&o[0]!=="$"&&tt(e,o)||Ac(t,o)||tt(n,o)||tt(r,o)||tt(Ao,o)||tt(s.config.globalProperties,o)||(l=a.__cssModules)&&l[o])},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:tt(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function Pn(){return k5().slots}function k5(e){const t=gi();return t.setupContext||(t.setupContext=$p(t))}function n0(e){return Re(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function op(e,t){return!e||!t?e||t:Re(e)&&Re(t)?e.concat(t):Pt({},n0(e),n0(t))}let b1=!0;function M5(e){const t=cp(e),i=e.proxy,r=e.ctx;b1=!1,t.beforeCreate&&Td(t.beforeCreate,e,"bc");const{data:s,computed:n,methods:a,watch:o,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:f,updated:g,activated:_,deactivated:A,beforeDestroy:p,beforeUnmount:S,destroyed:m,unmounted:v,render:k,renderTracked:x,renderTriggered:M,errorCaptured:F,serverPrefetch:P,expose:O,inheritAttrs:R,components:N,directives:T,filters:W}=t;if(c&&L5(c,r,null),a)for(const ee in a){const re=a[ee];Ze(re)&&(r[ee]=re.bind(i))}if(s){const ee=s.call(i,i);Xe(ee)&&(e.data=Ws(ee))}if(b1=!0,n)for(const ee in n){const re=n[ee],Y=Ze(re)?re.bind(i,i):Ze(re.get)?re.get.bind(i,i):lr,_e=!Ze(re)&&Ze(re.set)?re.set.bind(i):lr,me=J({get:Y,set:_e});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>me.value,set:ge=>me.value=ge})}if(o)for(const ee in o)lp(o[ee],r,i,ee);if(l){const ee=Ze(l)?l.call(i):l;Reflect.ownKeys(ee).forEach(re=>{as(re,ee[re])})}u&&Td(u,e,"c");function ie(ee,re){Re(re)?re.forEach(Y=>ee(Y.bind(i))):re&&ee(re.bind(i))}if(ie(m5,h),ie(ft,d),ie(g5,f),ie(v5,g),ie(f5,_),ie(_5,A),ie(S5,F),ie(w5,x),ie(y5,M),ie(Zi,S),ie(Br,v),ie(b5,P),Re(O))if(O.length){const ee=e.exposed||(e.exposed={});O.forEach(re=>{Object.defineProperty(ee,re,{get:()=>i[re],set:Y=>i[re]=Y,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===lr&&(e.render=k),R!=null&&(e.inheritAttrs=R),N&&(e.components=N),T&&(e.directives=T),P&&mh(e)}function L5(e,t,i=lr){Re(e)&&(e=y1(e));for(const r in e){const s=e[r];let n;Xe(s)?"default"in s?n=ii(s.from||r,s.default,!0):n=ii(s.from||r):n=ii(s),gt(n)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[r]=n}}function Td(e,t,i){Ki(Re(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function lp(e,t,i,r){let s=r.includes(".")?q_(i,r):()=>i[r];if(wt(e)){const n=t[e];Ze(n)&&Fe(s,n)}else if(Ze(e))Fe(s,e.bind(i));else if(Xe(e))if(Re(e))e.forEach(n=>lp(n,t,i,r));else{const n=Ze(e.handler)?e.handler.bind(i):t[e.handler];Ze(n)&&Fe(s,n,e)}}function cp(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:s,optionsCache:n,config:{optionMergeStrategies:a}}=e.appContext,o=n.get(t);let l;return o?l=o:!s.length&&!i&&!r?l=t:(l={},s.length&&s.forEach(c=>a0(l,c,a,!0)),a0(l,t,a)),Xe(t)&&n.set(t,l),l}function a0(e,t,i,r=!1){const{mixins:s,extends:n}=t;n&&a0(e,n,i,!0),s&&s.forEach(a=>a0(e,a,i,!0));for(const a in t)if(!(r&&a==="expose")){const o=E5[a]||i&&i[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const E5={data:Nd,props:Hd,emits:Hd,methods:fo,computed:fo,beforeCreate:ci,created:ci,beforeMount:ci,mounted:ci,beforeUpdate:ci,updated:ci,beforeDestroy:ci,beforeUnmount:ci,destroyed:ci,unmounted:ci,activated:ci,deactivated:ci,errorCaptured:ci,serverPrefetch:ci,components:fo,directives:fo,watch:$5,provide:Nd,inject:x5};function Nd(e,t){return t?e?function(){return Pt(Ze(e)?e.call(this,this):e,Ze(t)?t.call(this,this):t)}:t:e}function x5(e,t){return fo(y1(e),y1(t))}function y1(e){if(Re(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function ci(e,t){return e?[...new Set([].concat(e,t))]:t}function fo(e,t){return e?Pt(Object.create(null),e,t):t}function Hd(e,t){return e?Re(e)&&Re(t)?[...new Set([...e,...t])]:Pt(Object.create(null),n0(e),n0(t??{})):t}function $5(e,t){if(!e)return t;if(!t)return e;const i=Pt(Object.create(null),e);for(const r in t)i[r]=ci(e[r],t[r]);return i}function up(){return{app:null,config:{isNativeTag:p_,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 T5=0;function N5(e,t){return function(r,s=null){Ze(r)||(r=Pt({},r)),s!=null&&!Xe(s)&&(s=null);const n=up(),a=new WeakSet,o=[];let l=!1;const c=n.app={_uid:T5++,_component:r,_props:s,_container:null,_context:n,_instance:null,version:o3,get config(){return n.config},set config(u){},use(u,...h){return a.has(u)||(u&&Ze(u.install)?(a.add(u),u.install(c,...h)):Ze(u)&&(a.add(u),u(c,...h))),c},mixin(u){return n.mixins.includes(u)||n.mixins.push(u),c},component(u,h){return h?(n.components[u]=h,c):n.components[u]},directive(u,h){return h?(n.directives[u]=h,c):n.directives[u]},mount(u,h,d){if(!l){const f=c._ceVNode||X(r,s);return f.appContext=n,d===!0?d="svg":d===!1&&(d=void 0),e(f,u,d),l=!0,c._container=u,u.__vue_app__=c,K0(f.component)}},onUnmount(u){o.push(u)},unmount(){l&&(Ki(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return n.provides[u]=h,c},runWithContext(u){const h=Fs;Fs=c;try{return u()}finally{Fs=h}}};return c}}let Fs=null;function hp(e,t,i=Ge){const r=gi(),s=li(t),n=Zr(t),a=dp(e,s),o=Fv((l,c)=>{let u,h=Ge,d;return r5(()=>{const f=e[s];ai(u,f)&&(u=f,c())}),{get(){return l(),i.get?i.get(u):u},set(f){const g=i.set?i.set(f):f;if(!ai(g,u)&&!(h!==Ge&&ai(f,h)))return;const _=r.vnode.props;_&&(t in _||s in _||n in _)&&(`onUpdate:${t}`in _||`onUpdate:${s}`in _||`onUpdate:${n}`in _)||(u=f,c()),r.emit(`update:${t}`,g),ai(f,g)&&ai(f,h)&&!ai(g,d)&&c(),h=f,d=g}}});return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Ge:o,done:!1}:{done:!0}}}},o}const dp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${li(t)}Modifiers`]||e[`${Zr(t)}Modifiers`];function H5(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||Ge;let s=i;const n=t.startsWith("update:"),a=n&&dp(r,t.slice(7));a&&(a.trim&&(s=i.map(u=>wt(u)?u.trim():u)),a.number&&(s=i.map(V0)));let o,l=r[o=vc(t)]||r[o=vc(li(t))];!l&&n&&(l=r[o=vc(Zr(t))]),l&&Ki(l,e,6,s);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ki(c,e,6,s)}}const P5=new WeakMap;function fp(e,t,i=!1){const r=i?P5:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const n=e.emits;let a={},o=!1;if(!Ze(e)){const l=c=>{const u=fp(c,t,!0);u&&(o=!0,Pt(a,u))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!n&&!o?(Xe(e)&&r.set(e,null),null):(Re(n)?n.forEach(l=>a[l]=null):Pt(a,n),Xe(e)&&r.set(e,a),a)}function j0(e,t){return!e||!P0(t)?!1:(t=t.slice(2).replace(/Once$/,""),tt(e,t[0].toLowerCase()+t.slice(1))||tt(e,Zr(t))||tt(e,t))}function Pd(e){const{type:t,vnode:i,proxy:r,withProxy:s,propsOptions:[n],slots:a,attrs:o,emit:l,render:c,renderCache:u,props:h,data:d,setupState:f,ctx:g,inheritAttrs:_}=e,A=r0(e);let p,S;try{if(i.shapeFlag&4){const v=s||r,k=v;p=ar(c.call(k,v,u,h,f,d,g)),S=o}else{const v=t;p=ar(v.length>1?v(h,{attrs:o,slots:a,emit:l}):v(h,null)),S=t.props?o:O5(o)}}catch(v){ko.length=0,al(v,e,1),p=X(jt)}let m=p;if(S&&_!==!1){const v=Object.keys(S),{shapeFlag:k}=m;v.length&&k&7&&(n&&v.some(O0)&&(S=I5(S,n)),m=hs(m,S,!1,!0))}return i.dirs&&(m=hs(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(i.dirs):i.dirs),i.transition&&Oo(m,i.transition),p=m,r0(A),p}const O5=e=>{let t;for(const i in e)(i==="class"||i==="style"||P0(i))&&((t||(t={}))[i]=e[i]);return t},I5=(e,t)=>{const i={};for(const r in e)(!O0(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function R5(e,t,i){const{props:r,children:s,component:n}=e,{props:a,children:o,patchFlag:l}=t,c=n.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return r?Od(r,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(_p(a,r,d)&&!j0(c,d))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===a?!1:r?a?Od(r,a,c):!0:!!a;return!1}function Od(e,t,i){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const n=r[s];if(_p(t,e,n)&&!j0(i,n))return!0}return!1}function _p(e,t,i){const r=e[i],s=t[i];return i==="style"&&Xe(r)&&Xe(s)?!us(r,s):r!==s}function D5({vnode:e,parent:t,suspense:i},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}i&&i.activeBranch===e&&(i.vnode.el=r)}const pp={},mp=()=>Object.create(pp),gp=e=>Object.getPrototypeOf(e)===pp;function V5(e,t,i,r=!1){const s={},n=mp();e.propsDefaults=Object.create(null),vp(e,t,s,n);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);i?e.props=r?s:V_(s):e.type.props?e.props=s:e.props=n,e.attrs=n}function B5(e,t,i,r){const{props:s,attrs:n,vnode:{patchFlag:a}}=e,o=Ke(s),[l]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(j0(e.emitsOptions,d))continue;const f=t[d];if(l)if(tt(n,d))f!==n[d]&&(n[d]=f,c=!0);else{const g=li(d);s[g]=w1(l,o,g,f,e,!1)}else f!==n[d]&&(n[d]=f,c=!0)}}}else{vp(e,t,s,n)&&(c=!0);let u;for(const h in o)(!t||!tt(t,h)&&((u=Zr(h))===h||!tt(t,u)))&&(l?i&&(i[h]!==void 0||i[u]!==void 0)&&(s[h]=w1(l,o,h,void 0,e,!0)):delete s[h]);if(n!==o)for(const h in n)(!t||!tt(t,h))&&(delete n[h],c=!0)}c&&kr(e.attrs,"set","")}function vp(e,t,i,r){const[s,n]=e.propsOptions;let a=!1,o;if(t)for(let l in t){if(yo(l))continue;const c=t[l];let u;s&&tt(s,u=li(l))?!n||!n.includes(u)?i[u]=c:(o||(o={}))[u]=c:j0(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,a=!0)}if(n){const l=Ke(i),c=o||Ge;for(let u=0;u<n.length;u++){const h=n[u];i[h]=w1(s,l,h,c[h],e,!tt(c,h))}}return a}function w1(e,t,i,r,s,n){const a=e[i];if(a!=null){const o=tt(a,"default");if(o&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ze(l)){const{propsDefaults:c}=s;if(i in c)r=c[i];else{const u=ll(s);r=c[i]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(i,r)}a[0]&&(n&&!o?r=!1:a[1]&&(r===""||r===Zr(i))&&(r=!0))}return r}const Z5=new WeakMap;function bp(e,t,i=!1){const r=i?Z5:t.propsCache,s=r.get(e);if(s)return s;const n=e.props,a={},o=[];let l=!1;if(!Ze(e)){const u=h=>{l=!0;const[d,f]=bp(h,t,!0);Pt(a,d),f&&o.push(...f)};!i&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!n&&!l)return Xe(e)&&r.set(e,dn),dn;if(Re(n))for(let u=0;u<n.length;u++){const h=li(n[u]);Id(h)&&(a[h]=Ge)}else if(n)for(const u in n){const h=li(u);if(Id(h)){const d=n[u],f=a[h]=Re(d)||Ze(d)?{type:d}:Pt({},d),g=f.type;let _=!1,A=!0;if(Re(g))for(let p=0;p<g.length;++p){const S=g[p],m=Ze(S)&&S.name;if(m==="Boolean"){_=!0;break}else m==="String"&&(A=!1)}else _=Ze(g)&&g.name==="Boolean";f[0]=_,f[1]=A,(_||tt(f,"default"))&&o.push(h)}}const c=[a,o];return Xe(e)&&r.set(e,c),c}function Id(e){return e[0]!=="$"&&!yo(e)}const gh=e=>e==="_"||e==="_ctx"||e==="$stable",vh=e=>Re(e)?e.map(ar):[ar(e)],F5=(e,t,i)=>{if(t._n)return t;const r=te((...s)=>vh(t(...s)),i);return r._c=!1,r},yp=(e,t,i)=>{const r=e._ctx;for(const s in e){if(gh(s))continue;const n=e[s];if(Ze(n))t[s]=F5(s,n,r);else if(n!=null){const a=vh(n);t[s]=()=>a}}},wp=(e,t)=>{const i=vh(t);e.slots.default=()=>i},Sp=(e,t,i)=>{for(const r in t)(i||!gh(r))&&(e[r]=t[r])},z5=(e,t,i)=>{const r=e.slots=mp();if(e.vnode.shapeFlag&32){const s=t._;s?(Sp(r,t,i),i&&b_(r,"_",s,!0)):yp(t,r)}else t&&wp(e,t)},U5=(e,t,i)=>{const{vnode:r,slots:s}=e;let n=!0,a=Ge;if(r.shapeFlag&32){const o=t._;o?i&&o===1?n=!1:Sp(s,t,i):(n=!t.$stable,yp(t,s)),a=t}else t&&(wp(e,t),a={default:1});if(n)for(const o in s)!gh(o)&&a[o]==null&&delete s[o]},hi=G5;function W5(e){return j5(e)}function j5(e,t){const i=B0();i.__VUE__=!0;const{insert:r,remove:s,patchProp:n,createElement:a,createText:o,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:f=lr,insertStaticContent:g}=e,_=(B,Z,z,oe=null,he=null,ue=null,w=void 0,C=null,V=!!Z.dynamicChildren)=>{if(B===Z)return;B&&!Os(B,Z)&&(oe=D(B),ge(B,he,ue,!0),B=null),Z.patchFlag===-2&&(V=!1,Z.dynamicChildren=null);const{type:H,ref:L,shapeFlag:E}=Z;switch(H){case ps:A(B,Z,z,oe);break;case jt:p(B,Z,z,oe);break;case Mc:B==null&&S(Z,z,oe,w);break;case be:N(B,Z,z,oe,he,ue,w,C,V);break;default:E&1?k(B,Z,z,oe,he,ue,w,C,V):E&6?T(B,Z,z,oe,he,ue,w,C,V):(E&64||E&128)&&H.process(B,Z,z,oe,he,ue,w,C,V,pe)}L!=null&&he?Co(L,B&&B.ref,ue,Z||B,!Z):L==null&&B&&B.ref!=null&&Co(B.ref,null,ue,B,!0)},A=(B,Z,z,oe)=>{if(B==null)r(Z.el=o(Z.children),z,oe);else{const he=Z.el=B.el;Z.children!==B.children&&c(he,Z.children)}},p=(B,Z,z,oe)=>{B==null?r(Z.el=l(Z.children||""),z,oe):Z.el=B.el},S=(B,Z,z,oe)=>{[B.el,B.anchor]=g(B.children,Z,z,oe,B.el,B.anchor)},m=({el:B,anchor:Z},z,oe)=>{let he;for(;B&&B!==Z;)he=d(B),r(B,z,oe),B=he;r(Z,z,oe)},v=({el:B,anchor:Z})=>{let z;for(;B&&B!==Z;)z=d(B),s(B),B=z;s(Z)},k=(B,Z,z,oe,he,ue,w,C,V)=>{if(Z.type==="svg"?w="svg":Z.type==="math"&&(w="mathml"),B==null)x(Z,z,oe,he,ue,w,C,V);else{const H=B.el&&B.el._isVueCE?B.el:null;try{H&&H._beginPatch(),P(B,Z,he,ue,w,C,V)}finally{H&&H._endPatch()}}},x=(B,Z,z,oe,he,ue,w,C)=>{let V,H;const{props:L,shapeFlag:E,transition:I,dirs:K}=B;if(V=B.el=a(B.type,ue,L&&L.is,L),E&8?u(V,B.children):E&16&&F(B.children,V,null,oe,he,kc(B,ue),w,C),K&&Ss(B,null,oe,"created"),M(V,B,B.scopeId,w,oe),L){for(const ye in L)ye!=="value"&&!yo(ye)&&n(V,ye,null,L[ye],ue,oe);"value"in L&&n(V,"value",null,L.value,ue),(H=L.onVnodeBeforeMount)&&Gi(H,oe,B)}K&&Ss(B,null,oe,"beforeMount");const de=K5(he,I);de&&I.beforeEnter(V),r(V,Z,z),((H=L&&L.onVnodeMounted)||de||K)&&hi(()=>{try{H&&Gi(H,oe,B),de&&I.enter(V),K&&Ss(B,null,oe,"mounted")}finally{}},he)},M=(B,Z,z,oe,he)=>{if(z&&f(B,z),oe)for(let ue=0;ue<oe.length;ue++)f(B,oe[ue]);if(he){let ue=he.subTree;if(Z===ue||kp(ue.type)&&(ue.ssContent===Z||ue.ssFallback===Z)){const w=he.vnode;M(B,w,w.scopeId,w.slotScopeIds,he.parent)}}},F=(B,Z,z,oe,he,ue,w,C,V=0)=>{for(let H=V;H<B.length;H++){const L=B[H]=C?Ar(B[H]):ar(B[H]);_(null,L,Z,z,oe,he,ue,w,C)}},P=(B,Z,z,oe,he,ue,w)=>{const C=Z.el=B.el;let{patchFlag:V,dynamicChildren:H,dirs:L}=Z;V|=B.patchFlag&16;const E=B.props||Ge,I=Z.props||Ge;let K;if(z&&As(z,!1),(K=I.onVnodeBeforeUpdate)&&Gi(K,z,Z,B),L&&Ss(Z,B,z,"beforeUpdate"),z&&As(z,!0),(E.innerHTML&&I.innerHTML==null||E.textContent&&I.textContent==null)&&u(C,""),H?O(B.dynamicChildren,H,C,z,oe,kc(Z,he),ue):w||re(B,Z,C,null,z,oe,kc(Z,he),ue,!1),V>0){if(V&16)R(C,E,I,z,he);else if(V&2&&E.class!==I.class&&n(C,"class",null,I.class,he),V&4&&n(C,"style",E.style,I.style,he),V&8){const de=Z.dynamicProps;for(let ye=0;ye<de.length;ye++){const Ee=de[ye],ze=E[Ee],Me=I[Ee];(Me!==ze||Ee==="value")&&n(C,Ee,ze,Me,he,z)}}V&1&&B.children!==Z.children&&u(C,Z.children)}else!w&&H==null&&R(C,E,I,z,he);((K=I.onVnodeUpdated)||L)&&hi(()=>{K&&Gi(K,z,Z,B),L&&Ss(Z,B,z,"updated")},oe)},O=(B,Z,z,oe,he,ue,w)=>{for(let C=0;C<Z.length;C++){const V=B[C],H=Z[C],L=V.el&&(V.type===be||!Os(V,H)||V.shapeFlag&198)?h(V.el):z;_(V,H,L,null,oe,he,ue,w,!0)}},R=(B,Z,z,oe,he)=>{if(Z!==z){if(Z!==Ge)for(const ue in Z)!yo(ue)&&!(ue in z)&&n(B,ue,Z[ue],null,he,oe);for(const ue in z){if(yo(ue))continue;const w=z[ue],C=Z[ue];w!==C&&ue!=="value"&&n(B,ue,C,w,he,oe)}"value"in z&&n(B,"value",Z.value,z.value,he)}},N=(B,Z,z,oe,he,ue,w,C,V)=>{const H=Z.el=B?B.el:o(""),L=Z.anchor=B?B.anchor:o("");let{patchFlag:E,dynamicChildren:I,slotScopeIds:K}=Z;K&&(C=C?C.concat(K):K),B==null?(r(H,z,oe),r(L,z,oe),F(Z.children||[],z,L,he,ue,w,C,V)):E>0&&E&64&&I&&B.dynamicChildren&&B.dynamicChildren.length===I.length?(O(B.dynamicChildren,I,z,he,ue,w,C),(Z.key!=null||he&&Z===he.subTree)&&bh(B,Z,!0)):re(B,Z,z,L,he,ue,w,C,V)},T=(B,Z,z,oe,he,ue,w,C,V)=>{Z.slotScopeIds=C,B==null?Z.shapeFlag&512?he.ctx.activate(Z,z,oe,w,V):W(Z,z,oe,he,ue,w,V):q(B,Z,V)},W=(B,Z,z,oe,he,ue,w)=>{const C=B.component=t3(B,oe,he);if(ol(B)&&(C.ctx.renderer=pe),i3(C,!1,w),C.asyncDep){if(he&&he.registerDep(C,ie,w),!B.el){const V=C.subTree=X(jt);p(null,V,Z,z),B.placeholder=V.el}}else ie(C,B,Z,z,he,ue,w)},q=(B,Z,z)=>{const oe=Z.component=B.component;if(R5(B,Z,z))if(oe.asyncDep&&!oe.asyncResolved){ee(oe,Z,z);return}else oe.next=Z,oe.update();else Z.el=B.el,oe.vnode=Z},ie=(B,Z,z,oe,he,ue,w)=>{const C=()=>{if(B.isMounted){let{next:E,bu:I,u:K,parent:de,vnode:ye}=B;{const Gt=Cp(B);if(Gt){E&&(E.el=ye.el,ee(B,E,w)),Gt.asyncDep.then(()=>{hi(()=>{B.isUnmounted||H()},he)});return}}let Ee=E,ze;As(B,!1),E?(E.el=ye.el,ee(B,E,w)):E=ye,I&&Fl(I),(ze=E.props&&E.props.onVnodeBeforeUpdate)&&Gi(ze,de,E,ye),As(B,!0);const Me=Pd(B),St=B.subTree;B.subTree=Me,_(St,Me,h(St.el),D(St),B,he,ue),E.el=Me.el,Ee===null&&D5(B,Me.el),K&&hi(K,he),(ze=E.props&&E.props.onVnodeUpdated)&&hi(()=>Gi(ze,de,E,ye),he)}else{let E;const{el:I,props:K}=Z,{bm:de,m:ye,parent:Ee,root:ze,type:Me}=B,St=pn(Z);As(B,!1),de&&Fl(de),!St&&(E=K&&K.onVnodeBeforeMount)&&Gi(E,Ee,Z),As(B,!0);{ze.ce&&ze.ce._hasShadowRoot()&&ze.ce._injectChildStyle(Me,B.parent?B.parent.type:void 0);const Gt=B.subTree=Pd(B);_(null,Gt,z,oe,B,he,ue),Z.el=Gt.el}if(ye&&hi(ye,he),!St&&(E=K&&K.onVnodeMounted)){const Gt=Z;hi(()=>Gi(E,Ee,Gt),he)}(Z.shapeFlag&256||Ee&&pn(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&B.a&&hi(B.a,he),B.isMounted=!0,Z=z=oe=null}};B.scope.on();const V=B.effect=new k_(C);B.scope.off();const H=B.update=V.run.bind(V),L=B.job=V.runIfDirty.bind(V);L.i=B,L.id=B.uid,V.scheduler=()=>_h(L),As(B,!0),H()},ee=(B,Z,z)=>{Z.component=B;const oe=B.vnode.props;B.vnode=Z,B.next=null,B5(B,Z.props,oe,z),U5(B,Z.children,z),Ir(),Cd(B),Rr()},re=(B,Z,z,oe,he,ue,w,C,V=!1)=>{const H=B&&B.children,L=B?B.shapeFlag:0,E=Z.children,{patchFlag:I,shapeFlag:K}=Z;if(I>0){if(I&128){_e(H,E,z,oe,he,ue,w,C,V);return}else if(I&256){Y(H,E,z,oe,he,ue,w,C,V);return}}K&8?(L&16&&se(H,he,ue),E!==H&&u(z,E)):L&16?K&16?_e(H,E,z,oe,he,ue,w,C,V):se(H,he,ue,!0):(L&8&&u(z,""),K&16&&F(E,z,oe,he,ue,w,C,V))},Y=(B,Z,z,oe,he,ue,w,C,V)=>{B=B||dn,Z=Z||dn;const H=B.length,L=Z.length,E=Math.min(H,L);let I;for(I=0;I<E;I++){const K=Z[I]=V?Ar(Z[I]):ar(Z[I]);_(B[I],K,z,null,he,ue,w,C,V)}H>L?se(B,he,ue,!0,!1,E):F(Z,z,oe,he,ue,w,C,V,E)},_e=(B,Z,z,oe,he,ue,w,C,V)=>{let H=0;const L=Z.length;let E=B.length-1,I=L-1;for(;H<=E&&H<=I;){const K=B[H],de=Z[H]=V?Ar(Z[H]):ar(Z[H]);if(Os(K,de))_(K,de,z,null,he,ue,w,C,V);else break;H++}for(;H<=E&&H<=I;){const K=B[E],de=Z[I]=V?Ar(Z[I]):ar(Z[I]);if(Os(K,de))_(K,de,z,null,he,ue,w,C,V);else break;E--,I--}if(H>E){if(H<=I){const K=I+1,de=K<L?Z[K].el:oe;for(;H<=I;)_(null,Z[H]=V?Ar(Z[H]):ar(Z[H]),z,de,he,ue,w,C,V),H++}}else if(H>I)for(;H<=E;)ge(B[H],he,ue,!0),H++;else{const K=H,de=H,ye=new Map;for(H=de;H<=I;H++){const Yt=Z[H]=V?Ar(Z[H]):ar(Z[H]);Yt.key!=null&&ye.set(Yt.key,H)}let Ee,ze=0;const Me=I-de+1;let St=!1,Gt=0;const He=new Array(Me);for(H=0;H<Me;H++)He[H]=0;for(H=K;H<=E;H++){const Yt=B[H];if(ze>=Me){ge(Yt,he,ue,!0);continue}let Ci;if(Yt.key!=null)Ci=ye.get(Yt.key);else for(Ee=de;Ee<=I;Ee++)if(He[Ee-de]===0&&Os(Yt,Z[Ee])){Ci=Ee;break}Ci===void 0?ge(Yt,he,ue,!0):(He[Ci-de]=H+1,Ci>=Gt?Gt=Ci:St=!0,_(Yt,Z[Ci],z,null,he,ue,w,C,V),ze++)}const st=St?q5(He):dn;for(Ee=st.length-1,H=Me-1;H>=0;H--){const Yt=de+H,Ci=Z[Yt],qa=Z[Yt+1],Wr=Yt+1<L?qa.el||Ap(qa):oe;He[H]===0?_(null,Ci,z,Wr,he,ue,w,C,V):St&&(Ee<0||H!==st[Ee]?me(Ci,z,Wr,2):Ee--)}}},me=(B,Z,z,oe,he=null)=>{const{el:ue,type:w,transition:C,children:V,shapeFlag:H}=B;if(H&6){me(B.component.subTree,Z,z,oe);return}if(H&128){B.suspense.move(Z,z,oe);return}if(H&64){w.move(B,Z,z,pe);return}if(w===be){r(ue,Z,z);for(let E=0;E<V.length;E++)me(V[E],Z,z,oe);r(B.anchor,Z,z);return}if(w===Mc){m(B,Z,z);return}if(oe!==2&&H&1&&C)if(oe===0)C.beforeEnter(ue),r(ue,Z,z),hi(()=>C.enter(ue),he);else{const{leave:E,delayLeave:I,afterLeave:K}=C,de=()=>{B.ctx.isUnmounted?s(ue):r(ue,Z,z)},ye=()=>{ue._isLeaving&&ue[sr](!0),E(ue,()=>{de(),K&&K()})};I?I(ue,de,ye):ye()}else r(ue,Z,z)},ge=(B,Z,z,oe=!1,he=!1)=>{const{type:ue,props:w,ref:C,children:V,dynamicChildren:H,shapeFlag:L,patchFlag:E,dirs:I,cacheIndex:K,memo:de}=B;if(E===-2&&(he=!1),C!=null&&(Ir(),Co(C,null,z,B,!0),Rr()),K!=null&&(Z.renderCache[K]=void 0),L&256){Z.ctx.deactivate(B);return}const ye=L&1&&I,Ee=!pn(B);let ze;if(Ee&&(ze=w&&w.onVnodeBeforeUnmount)&&Gi(ze,Z,B),L&6)ae(B.component,z,oe);else{if(L&128){B.suspense.unmount(z,oe);return}ye&&Ss(B,null,Z,"beforeUnmount"),L&64?B.type.remove(B,Z,z,pe,oe):H&&!H.hasOnce&&(ue!==be||E>0&&E&64)?se(H,Z,z,!1,!0):(ue===be&&E&384||!he&&L&16)&&se(V,Z,z),oe&&$e(B)}const Me=de!=null&&K==null;(Ee&&(ze=w&&w.onVnodeUnmounted)||ye||Me)&&hi(()=>{ze&&Gi(ze,Z,B),ye&&Ss(B,null,Z,"unmounted"),Me&&(B.el=null)},z)},$e=B=>{const{type:Z,el:z,anchor:oe,transition:he}=B;if(Z===be){Se(z,oe);return}if(Z===Mc){v(B);return}const ue=()=>{s(z),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(B.shapeFlag&1&&he&&!he.persisted){const{leave:w,delayLeave:C}=he,V=()=>w(z,ue);C?C(B.el,ue,V):V()}else ue()},Se=(B,Z)=>{let z;for(;B!==Z;)z=d(B),s(B),B=z;s(Z)},ae=(B,Z,z)=>{const{bum:oe,scope:he,job:ue,subTree:w,um:C,m:V,a:H}=B;Rd(V),Rd(H),oe&&Fl(oe),he.stop(),ue&&(ue.flags|=8,ge(w,B,Z,z)),C&&hi(C,Z),hi(()=>{B.isUnmounted=!0},Z)},se=(B,Z,z,oe=!1,he=!1,ue=0)=>{for(let w=ue;w<B.length;w++)ge(B[w],Z,z,oe,he)},D=B=>{if(B.shapeFlag&6)return D(B.component.subTree);if(B.shapeFlag&128)return B.suspense.next();const Z=d(B.anchor||B.el),z=Z&&Z[G_];return z?d(z):Z};let G=!1;const ne=(B,Z,z)=>{let oe;B==null?Z._vnode&&(ge(Z._vnode,null,null,!0),oe=Z._vnode.component):_(Z._vnode||null,B,Z,null,null,null,z),Z._vnode=B,G||(G=!0,Cd(oe),W_(),G=!1)},pe={p:_,um:ge,m:me,r:$e,mt:W,mc:F,pc:re,pbc:O,n:D,o:e};return{render:ne,hydrate:void 0,createApp:N5(ne)}}function kc({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function As({effect:e,job:t},i){i?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function K5(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bh(e,t,i=!1){const r=e.children,s=t.children;if(Re(r)&&Re(s))for(let n=0;n<r.length;n++){const a=r[n];let o=s[n];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=s[n]=Ar(s[n]),o.el=a.el),!i&&o.patchFlag!==-2&&bh(a,o)),o.type===ps&&(o.patchFlag===-1&&(o=s[n]=Ar(o)),o.el=a.el),o.type===jt&&!o.el&&(o.el=a.el)}}function q5(e){const t=e.slice(),i=[0];let r,s,n,a,o;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=i[i.length-1],e[s]<c){t[r]=s,i.push(r);continue}for(n=0,a=i.length-1;n<a;)o=n+a>>1,e[i[o]]<c?n=o+1:a=o;c<e[i[n]]&&(n>0&&(t[r]=i[n-1]),i[n]=r)}}for(n=i.length,a=i[n-1];n-- >0;)i[n]=a,a=t[a];return i}function Cp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cp(t)}function Rd(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ap(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ap(t.subTree):null}const kp=e=>e.__isSuspense;function G5(e,t){t&&t.pendingBranch?Re(e)?t.effects.push(...e):t.effects.push(e):Qv(e)}const be=Symbol.for("v-fgt"),ps=Symbol.for("v-txt"),jt=Symbol.for("v-cmt"),Mc=Symbol.for("v-stc"),ko=[];let Mi=null;function b(e=!1){ko.push(Mi=e?null:[])}function Y5(){ko.pop(),Mi=ko[ko.length-1]||null}let Ro=1;function o0(e,t=!1){Ro+=e,e<0&&Mi&&t&&(Mi.hasOnce=!0)}function Mp(e){return e.dynamicChildren=Ro>0?Mi||dn:null,Y5(),Ro>0&&Mi&&Mi.push(e),e}function $(e,t,i,r,s,n){return Mp(y(e,t,i,r,s,n,!0))}function fe(e,t,i,r,s){return Mp(X(e,t,i,r,s,!0))}function Do(e){return e?e.__v_isVNode===!0:!1}function Os(e,t){return e.type===t.type&&e.key===t.key}const Lp=({key:e})=>e??null,zl=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||gt(e)||Ze(e)?{i:ti,r:e,k:t,f:!!i}:e:null);function y(e,t=null,i=null,r=0,s=null,n=e===be?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lp(t),ref:t&&zl(t),scopeId:K_,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ti};return o?(yh(l,i),n&128&&e.normalize(l)):i&&(l.shapeFlag|=wt(i)?8:16),Ro>0&&!a&&Mi&&(l.patchFlag>0||n&6)&&l.patchFlag!==32&&Mi.push(l),l}const X=X5;function X5(e,t=null,i=null,r=0,s=null,n=!1){if((!e||e===sp)&&(e=jt),Do(e)){const o=hs(e,t,!0);return i&&yh(o,i),Ro>0&&!n&&Mi&&(o.shapeFlag&6?Mi[Mi.indexOf(e)]=o:Mi.push(o)),o.patchFlag=-2,o}if(a3(e)&&(e=e.__vccOpts),t){t=J5(t);let{class:o,style:l}=t;o&&!wt(o)&&(t.class=Le(o)),Xe(l)&&(z0(l)&&!Re(l)&&(l=Pt({},l)),t.style=mi(l))}const a=wt(e)?1:kp(e)?128:Y_(e)?64:Xe(e)?4:Ze(e)?2:0;return y(e,t,i,r,s,a,n,!0)}function J5(e){return e?z0(e)||gp(e)?Pt({},e):e:null}function hs(e,t,i=!1,r=!1){const{props:s,ref:n,patchFlag:a,children:o,transition:l}=e,c=t?Jt(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Lp(c),ref:t&&t.ref?i&&n?Re(n)?n.concat(zl(t)):[n,zl(t)]:zl(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hs(e.ssContent),ssFallback:e.ssFallback&&hs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Oo(u,l.clone(u)),u}function ce(e=" ",t=0){return X(ps,null,e,t)}function j(e="",t=!1){return t?(b(),fe(jt,null,e)):X(jt,null,e)}function ar(e){return e==null||typeof e=="boolean"?X(jt):Re(e)?X(be,null,e.slice()):Do(e)?Ar(e):X(ps,null,String(e))}function Ar(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function yh(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Re(t))i=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),yh(e,s()),s._c&&(s._d=!0));return}else{i=32;const s=t._;!s&&!gp(t)?t._ctx=ti:s===3&&ti&&(ti.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ze(t)?(t={default:t,_ctx:ti},i=32):(t=String(t),r&64?(i=16,t=[ce(t)]):i=8);e.children=t,e.shapeFlag|=i}function Jt(...e){const t={};for(let i=0;i<e.length;i++){const r=e[i];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Le([t.class,r.class]));else if(s==="style")t.style=mi([t.style,r.style]);else if(P0(s)){const n=t[s],a=r[s];a&&n!==a&&!(Re(n)&&n.includes(a))?t[s]=n?[].concat(n,a):a:a==null&&n==null&&!O0(s)&&(t[s]=a)}else s!==""&&(t[s]=r[s])}return t}function Gi(e,t,i,r=null){Ki(e,t,7,[i,r])}const Q5=up();let e3=0;function t3(e,t,i){const r=e.type,s=(t?t.appContext:e.appContext)||Q5,n={uid:e3++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new C_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bp(r,s),emitsOptions:fp(r,s),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:r.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,setupContext:null,suspense:i,suspenseId:i?i.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 n.ctx={_:n},n.root=t?t.root:n,n.emit=H5.bind(null,n),e.ce&&e.ce(n),n}let Qt=null;const gi=()=>Qt||ti;let l0,S1;{const e=B0(),t=(i,r)=>{let s;return(s=e[i])||(s=e[i]=[]),s.push(r),n=>{s.length>1?s.forEach(a=>a(n)):s[0](n)}};l0=t("__VUE_INSTANCE_SETTERS__",i=>Qt=i),S1=t("__VUE_SSR_SETTERS__",i=>gn=i)}const ll=e=>{const t=Qt;return l0(e),e.scope.on(),()=>{e.scope.off(),l0(t)}},Dd=()=>{Qt&&Qt.scope.off(),l0(null)};function Ep(e){return e.vnode.shapeFlag&4}let gn=!1;function i3(e,t=!1,i=!1){t&&S1(t);const{props:r,children:s}=e.vnode,n=Ep(e);V5(e,r,n,t),z5(e,s,i||t);const a=n?r3(e,t):void 0;return t&&S1(!1),a}function r3(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,A5);const{setup:r}=i;if(r){Ir();const s=e.setupContext=r.length>1?$p(e):null,n=ll(e),a=nl(r,e,0,[e.props,s]),o=m_(a);if(Rr(),n(),(o||e.sp)&&!pn(e)&&mh(e),o){if(a.then(Dd,Dd),t)return a.then(l=>{Vd(e,l)}).catch(l=>{al(l,e,0)});e.asyncDep=a}else Vd(e,a)}else xp(e)}function Vd(e,t,i){Ze(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=Z_(t)),xp(e)}function xp(e,t,i){const r=e.type;e.render||(e.render=r.render||lr);{const s=ll(e);Ir();try{M5(e)}finally{Rr(),s()}}}const s3={get(e,t){return oi(e,"get",""),e[t]}};function $p(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,s3),slots:e.slots,emit:e.emit,expose:t}}function K0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Z_(fh(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Ao)return Ao[i](e)},has(t,i){return i in t||i in Ao}})):e.proxy}function n3(e,t=!0){return Ze(e)?e.displayName||e.name:e.name||t&&e.__name}function a3(e){return Ze(e)&&"__vccOpts"in e}const J=(e,t)=>qv(e,t,gn);function ke(e,t,i){try{o0(-1);const r=arguments.length;return r===2?Xe(t)&&!Re(t)?Do(t)?X(e,null,[t]):X(e,t):X(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&Do(i)&&(i=[i]),X(e,t,i))}finally{o0(1)}}const o3="3.5.32";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.32
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let C1;const Bd=typeof window<"u"&&window.trustedTypes;if(Bd)try{C1=Bd.createPolicy("vue",{createHTML:e=>e})}catch{}const Tp=C1?e=>C1.createHTML(e):e=>e,l3="http://www.w3.org/2000/svg",c3="http://www.w3.org/1998/Math/MathML",Cr=typeof document<"u"?document:null,Zd=Cr&&Cr.createElement("template"),u3={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const s=t==="svg"?Cr.createElementNS(l3,e):t==="mathml"?Cr.createElementNS(c3,e):i?Cr.createElement(e,{is:i}):Cr.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Cr.createTextNode(e),createComment:e=>Cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,r,s,n){const a=i?i.previousSibling:t.lastChild;if(s&&(s===n||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),i),!(s===n||!(s=s.nextSibling)););else{Zd.innerHTML=Tp(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=Zd.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,i)}return[a?a.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},jr="transition",Ja="animation",Vo=Symbol("_vtc"),Np={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},h3=Pt({},X_,Np),d3=e=>(e.displayName="Transition",e.props=h3,e),Hp=d3((e,{slots:t})=>ke(u5,f3(e),t)),ks=(e,t=[])=>{Re(e)?e.forEach(i=>i(...t)):e&&e(...t)},Fd=e=>e?Re(e)?e.some(t=>t.length>1):e.length>1:!1;function f3(e){const t={};for(const N in e)N in Np||(t[N]=e[N]);if(e.css===!1)return t;const{name:i="v",type:r,duration:s,enterFromClass:n=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:o=`${i}-enter-to`,appearFromClass:l=n,appearActiveClass:c=a,appearToClass:u=o,leaveFromClass:h=`${i}-leave-from`,leaveActiveClass:d=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=e,g=_3(s),_=g&&g[0],A=g&&g[1],{onBeforeEnter:p,onEnter:S,onEnterCancelled:m,onLeave:v,onLeaveCancelled:k,onBeforeAppear:x=p,onAppear:M=S,onAppearCancelled:F=m}=t,P=(N,T,W,q)=>{N._enterCancelled=q,Ms(N,T?u:o),Ms(N,T?c:a),W&&W()},O=(N,T)=>{N._isLeaving=!1,Ms(N,h),Ms(N,f),Ms(N,d),T&&T()},R=N=>(T,W)=>{const q=N?M:S,ie=()=>P(T,N,W);ks(q,[T,ie]),zd(()=>{Ms(T,N?l:n),vr(T,N?u:o),Fd(q)||Ud(T,r,_,ie)})};return Pt(t,{onBeforeEnter(N){ks(p,[N]),vr(N,n),vr(N,a)},onBeforeAppear(N){ks(x,[N]),vr(N,l),vr(N,c)},onEnter:R(!1),onAppear:R(!0),onLeave(N,T){N._isLeaving=!0;const W=()=>O(N,T);vr(N,h),N._enterCancelled?(vr(N,d),Kd(N)):(Kd(N),vr(N,d)),zd(()=>{N._isLeaving&&(Ms(N,h),vr(N,f),Fd(v)||Ud(N,r,A,W))}),ks(v,[N,W])},onEnterCancelled(N){P(N,!1,void 0,!0),ks(m,[N])},onAppearCancelled(N){P(N,!0,void 0,!0),ks(F,[N])},onLeaveCancelled(N){O(N),ks(k,[N])}})}function _3(e){if(e==null)return null;if(Xe(e))return[Lc(e.enter),Lc(e.leave)];{const t=Lc(e);return[t,t]}}function Lc(e){return uv(e)}function vr(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Vo]||(e[Vo]=new Set)).add(t)}function Ms(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const i=e[Vo];i&&(i.delete(t),i.size||(e[Vo]=void 0))}function zd(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let p3=0;function Ud(e,t,i,r){const s=e._endId=++p3,n=()=>{s===e._endId&&r()};if(i!=null)return setTimeout(n,i);const{type:a,timeout:o,propCount:l}=m3(e,t);if(!a)return r();const c=a+"end";let u=0;const h=()=>{e.removeEventListener(c,d),n()},d=f=>{f.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},o+1),e.addEventListener(c,d)}function m3(e,t){const i=window.getComputedStyle(e),r=g=>(i[g]||"").split(", "),s=r(`${jr}Delay`),n=r(`${jr}Duration`),a=Wd(s,n),o=r(`${Ja}Delay`),l=r(`${Ja}Duration`),c=Wd(o,l);let u=null,h=0,d=0;t===jr?a>0&&(u=jr,h=a,d=n.length):t===Ja?c>0&&(u=Ja,h=c,d=l.length):(h=Math.max(a,c),u=h>0?a>c?jr:Ja:null,d=u?u===jr?n.length:l.length:0);const f=u===jr&&/\b(?:transform|all)(?:,|$)/.test(r(`${jr}Property`).toString());return{type:u,timeout:h,propCount:d,hasTransform:f}}function Wd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((i,r)=>jd(i)+jd(e[r])))}function jd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Kd(e){return(e?e.ownerDocument:document).body.offsetHeight}function g3(e,t,i){const r=e[Vo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const c0=Symbol("_vod"),Pp=Symbol("_vsh"),Op={name:"show",beforeMount(e,{value:t},{transition:i}){e[c0]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):Qa(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),Qa(e,!0),r.enter(e)):r.leave(e,()=>{Qa(e,!1)}):Qa(e,t))},beforeUnmount(e,{value:t}){Qa(e,t)}};function Qa(e,t){e.style.display=t?e[c0]:"none",e[Pp]=!t}const v3=Symbol(""),b3=/(?:^|;)\s*display\s*:/;function y3(e,t,i){const r=e.style,s=wt(i);let n=!1;if(i&&!s){if(t)if(wt(t))for(const a of t.split(";")){const o=a.slice(0,a.indexOf(":")).trim();i[o]==null&&Ul(r,o,"")}else for(const a in t)i[a]==null&&Ul(r,a,"");for(const a in i)a==="display"&&(n=!0),Ul(r,a,i[a])}else if(s){if(t!==i){const a=r[v3];a&&(i+=";"+a),r.cssText=i,n=b3.test(i)}}else t&&e.removeAttribute("style");c0 in e&&(e[c0]=n?r.display:"",e[Pp]&&(r.display="none"))}const qd=/\s*!important$/;function Ul(e,t,i){if(Re(i))i.forEach(r=>Ul(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=w3(e,t);qd.test(i)?e.setProperty(Zr(r),i.replace(qd,""),"important"):e[r]=i}}const Gd=["Webkit","Moz","ms"],Ec={};function w3(e,t){const i=Ec[t];if(i)return i;let r=li(t);if(r!=="filter"&&r in e)return Ec[t]=r;r=D0(r);for(let s=0;s<Gd.length;s++){const n=Gd[s]+r;if(n in e)return Ec[t]=n}return t}const Yd="http://www.w3.org/1999/xlink";function Xd(e,t,i,r,s,n=mv(t)){r&&t.startsWith("xlink:")?i==null?e.removeAttributeNS(Yd,t.slice(6,t.length)):e.setAttributeNS(Yd,t,i):i==null||n&&!y_(i)?e.removeAttribute(t):e.setAttribute(t,n?"":Ei(i)?String(i):i)}function Jd(e,t,i,r,s){if(t==="innerHTML"||t==="textContent"){i!=null&&(e[t]=t==="innerHTML"?Tp(i):i);return}const n=e.tagName;if(t==="value"&&n!=="PROGRESS"&&!n.includes("-")){const o=n==="OPTION"?e.getAttribute("value")||"":e.value,l=i==null?e.type==="checkbox"?"on":"":String(i);(o!==l||!("_value"in e))&&(e.value=l),i==null&&e.removeAttribute(t),e._value=i;return}let a=!1;if(i===""||i==null){const o=typeof e[t];o==="boolean"?i=y_(i):i==null&&o==="string"?(i="",a=!0):o==="number"&&(i=0,a=!0)}try{e[t]=i}catch{}a&&e.removeAttribute(s||t)}function Lr(e,t,i,r){e.addEventListener(t,i,r)}function S3(e,t,i,r){e.removeEventListener(t,i,r)}const Qd=Symbol("_vei");function C3(e,t,i,r,s=null){const n=e[Qd]||(e[Qd]={}),a=n[t];if(r&&a)a.value=r;else{const[o,l]=A3(t);if(r){const c=n[t]=L3(r,s);Lr(e,o,c,l)}else a&&(S3(e,o,a,l),n[t]=void 0)}}const e2=/(?:Once|Passive|Capture)$/;function A3(e){let t;if(e2.test(e)){t={};let r;for(;r=e.match(e2);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Zr(e.slice(2)),t]}let xc=0;const k3=Promise.resolve(),M3=()=>xc||(k3.then(()=>xc=0),xc=Date.now());function L3(e,t){const i=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=i.attached)return;Ki(E3(r,i.value),t,5,[r])};return i.value=e,i.attached=M3(),i}function E3(e,t){if(Re(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const t2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,x3=(e,t,i,r,s,n)=>{const a=s==="svg";t==="class"?g3(e,r,a):t==="style"?y3(e,i,r):P0(t)?O0(t)||C3(e,t,i,r,n):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$3(e,t,r,a))?(Jd(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Xd(e,t,r,a,n,t!=="value")):e._isVueCE&&(T3(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!wt(r)))?Jd(e,li(t),r,n,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Xd(e,t,r,a))};function $3(e,t,i,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&t2(t)&&Ze(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return t2(t)&&wt(i)?!1:t in e}function T3(e,t){const i=e._def.props;if(!i)return!1;const r=li(t);return Array.isArray(i)?i.some(s=>li(s)===r):Object.keys(i).some(s=>li(s)===r)}const ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Re(t)?i=>Fl(t,i):t};function N3(e){e.target.composing=!0}function i2(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vi=Symbol("_assign");function r2(e,t,i){return t&&(e=e.trim()),i&&(e=V0(e)),e}const u0={created(e,{modifiers:{lazy:t,trim:i,number:r}},s){e[Vi]=ds(s);const n=r||s.props&&s.props.type==="number";Lr(e,t?"change":"input",a=>{a.target.composing||e[Vi](r2(e.value,i,n))}),(i||n)&&Lr(e,"change",()=>{e.value=r2(e.value,i,n)}),t||(Lr(e,"compositionstart",N3),Lr(e,"compositionend",i2),Lr(e,"change",i2))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:r,trim:s,number:n}},a){if(e[Vi]=ds(a),e.composing)return;const o=(n||e.type==="number")&&!/^0\d/.test(e.value)?V0(e.value):e.value,l=t??"";if(o===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===i||s&&e.value.trim()===l)||(e.value=l)}},Ip={deep:!0,created(e,t,i){e[Vi]=ds(i),Lr(e,"change",()=>{const r=e._modelValue,s=vn(e),n=e.checked,a=e[Vi];if(Re(r)){const o=ah(r,s),l=o!==-1;if(n&&!l)a(r.concat(s));else if(!n&&l){const c=[...r];c.splice(o,1),a(c)}}else if(Hn(r)){const o=new Set(r);n?o.add(s):o.delete(s),a(o)}else a(Rp(e,n))})},mounted:s2,beforeUpdate(e,t,i){e[Vi]=ds(i),s2(e,t,i)}};function s2(e,{value:t,oldValue:i},r){e._modelValue=t;let s;if(Re(t))s=ah(t,r.props.value)>-1;else if(Hn(t))s=t.has(r.props.value);else{if(t===i)return;s=us(t,Rp(e,!0))}e.checked!==s&&(e.checked=s)}const H3={created(e,{value:t},i){e.checked=us(t,i.props.value),e[Vi]=ds(i),Lr(e,"change",()=>{e[Vi](vn(e))})},beforeUpdate(e,{value:t,oldValue:i},r){e[Vi]=ds(r),t!==i&&(e.checked=us(t,r.props.value))}},P3={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const s=Hn(t);Lr(e,"change",()=>{const n=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>i?V0(vn(a)):vn(a));e[Vi](e.multiple?s?new Set(n):n:n[0]),e._assigning=!0,Di(()=>{e._assigning=!1})}),e[Vi]=ds(r)},mounted(e,{value:t}){n2(e,t)},beforeUpdate(e,t,i){e[Vi]=ds(i)},updated(e,{value:t}){e._assigning||n2(e,t)}};function n2(e,t){const i=e.multiple,r=Re(t);if(!(i&&!r&&!Hn(t))){for(let s=0,n=e.options.length;s<n;s++){const a=e.options[s],o=vn(a);if(i)if(r){const l=typeof o;l==="string"||l==="number"?a.selected=t.some(c=>String(c)===String(o)):a.selected=ah(t,o)>-1}else a.selected=t.has(o);else if(us(vn(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vn(e){return"_value"in e?e._value:e.value}function Rp(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const a2={created(e,t,i){kl(e,t,i,null,"created")},mounted(e,t,i){kl(e,t,i,null,"mounted")},beforeUpdate(e,t,i,r){kl(e,t,i,r,"beforeUpdate")},updated(e,t,i,r){kl(e,t,i,r,"updated")}};function O3(e,t){switch(e){case"SELECT":return P3;case"TEXTAREA":return u0;default:switch(t){case"checkbox":return Ip;case"radio":return H3;default:return u0}}}function kl(e,t,i,r,s){const a=O3(e.tagName,i.props&&i.props.type)[s];a&&a(e,t,i,r)}const I3=["ctrl","shift","alt","meta"],R3={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>I3.some(i=>e[`${i}Key`]&&!t.includes(i))},lt=(e,t)=>{if(!e)return e;const i=e._withMods||(e._withMods={}),r=t.join(".");return i[r]||(i[r]=(s,...n)=>{for(let a=0;a<t.length;a++){const o=R3[t[a]];if(o&&o(s,t))return}return e(s,...n)})},D3={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},is=(e,t)=>{const i=e._withKeys||(e._withKeys={}),r=t.join(".");return i[r]||(i[r]=s=>{if(!("key"in s))return;const n=Zr(s.key);if(t.some(a=>a===n||D3[a]===n))return e(s)})},V3=Pt({patchProp:x3},u3);let o2;function B3(){return o2||(o2=W5(V3))}const Z3=(...e)=>{const t=B3().createApp(...e),{mount:i}=t;return t.mount=r=>{const s=z3(r);if(!s)return;const n=t._component;!Ze(n)&&!n.render&&!n.template&&(n.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=i(s,!1,F3(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function F3(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function z3(e){return wt(e)?document.querySelector(e):e}/*!
|
|
18
|
+
* pinia v2.3.1
|
|
19
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/let Dp;const q0=e=>Dp=e,Vp=Symbol();function A1(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mo||(Mo={}));function U3(){const e=oh(!0),t=e.run(()=>Q({}));let i=[],r=[];const s=fh({install(n){q0(s),s._a=n,n.provide(Vp,s),n.config.globalProperties.$pinia=s,r.forEach(a=>i.push(a)),r=[]},use(n){return this._a?i.push(n):r.push(n),this},_p:i,_a:null,_e:e,_s:new Map,state:t});return s}const Bp=()=>{};function l2(e,t,i,r=Bp){e.push(t);const s=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!i&&A_()&&vv(s),s}function Qs(e,...t){e.slice().forEach(i=>{i(...t)})}const W3=e=>e(),c2=Symbol(),$c=Symbol();function k1(e,t){e instanceof Map&&t instanceof Map?t.forEach((i,r)=>e.set(r,i)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const i in t){if(!t.hasOwnProperty(i))continue;const r=t[i],s=e[i];A1(s)&&A1(r)&&e.hasOwnProperty(i)&&!gt(r)&&!Pr(r)?e[i]=k1(s,r):e[i]=r}return e}const j3=Symbol();function K3(e){return!A1(e)||!e.hasOwnProperty(j3)}const{assign:Xr}=Object;function q3(e){return!!(gt(e)&&e.effect)}function G3(e,t,i,r){const{state:s,actions:n,getters:a}=t,o=i.state.value[e];let l;function c(){o||(i.state.value[e]=s?s():{});const u=zv(i.state.value[e]);return Xr(u,n,Object.keys(a||{}).reduce((h,d)=>(h[d]=fh(J(()=>{q0(i);const f=i._s.get(e);return a[d].call(f,f)})),h),{}))}return l=Zp(e,c,t,i,r,!0),l}function Zp(e,t,i={},r,s,n){let a;const o=Xr({actions:{}},i),l={deep:!0};let c,u,h=[],d=[],f;const g=r.state.value[e];!n&&!g&&(r.state.value[e]={});let _;function A(F){let P;c=u=!1,typeof F=="function"?(F(r.state.value[e]),P={type:Mo.patchFunction,storeId:e,events:f}):(k1(r.state.value[e],F),P={type:Mo.patchObject,payload:F,storeId:e,events:f});const O=_=Symbol();Di().then(()=>{_===O&&(c=!0)}),u=!0,Qs(h,P,r.state.value[e])}const p=n?function(){const{state:P}=i,O=P?P():{};this.$patch(R=>{Xr(R,O)})}:Bp;function S(){a.stop(),h=[],d=[],r._s.delete(e)}const m=(F,P="")=>{if(c2 in F)return F[$c]=P,F;const O=function(){q0(r);const R=Array.from(arguments),N=[],T=[];function W(ee){N.push(ee)}function q(ee){T.push(ee)}Qs(d,{args:R,name:O[$c],store:k,after:W,onError:q});let ie;try{ie=F.apply(this&&this.$id===e?this:k,R)}catch(ee){throw Qs(T,ee),ee}return ie instanceof Promise?ie.then(ee=>(Qs(N,ee),ee)).catch(ee=>(Qs(T,ee),Promise.reject(ee))):(Qs(N,ie),ie)};return O[c2]=!0,O[$c]=P,O},v={_p:r,$id:e,$onAction:l2.bind(null,d),$patch:A,$reset:p,$subscribe(F,P={}){const O=l2(h,F,P.detached,()=>R()),R=a.run(()=>Fe(()=>r.state.value[e],N=>{(P.flush==="sync"?u:c)&&F({storeId:e,type:Mo.direct,events:f},N)},Xr({},l,P)));return O},$dispose:S},k=Ws(v);r._s.set(e,k);const M=(r._a&&r._a.runWithContext||W3)(()=>r._e.run(()=>(a=oh()).run(()=>t({action:m}))));for(const F in M){const P=M[F];if(gt(P)&&!q3(P)||Pr(P))n||(g&&K3(P)&&(gt(P)?P.value=g[F]:k1(P,g[F])),r.state.value[e][F]=P);else if(typeof P=="function"){const O=m(P,F);M[F]=O,o.actions[F]=P}}return Xr(k,M),Xr(Ke(k),M),Object.defineProperty(k,"$state",{get:()=>r.state.value[e],set:F=>{A(P=>{Xr(P,F)})}}),r._p.forEach(F=>{Xr(k,a.run(()=>F({store:k,app:r._a,pinia:r,options:o})))}),g&&n&&i.hydrate&&i.hydrate(k.$state,g),c=!0,u=!0,k}/*! #__NO_SIDE_EFFECTS__ */function G0(e,t,i){let r,s;const n=typeof t=="function";typeof e=="string"?(r=e,s=n?i:t):(s=e,r=e.id);function a(o,l){const c=e5();return o=o||(c?ii(Vp,null):null),o&&q0(o),o=Dp,o._s.has(r)||(n?Zp(r,t,s,o):G3(r,s,o)),o._s.get(r)}return a.$id=r,a}/*!
|
|
22
|
+
* shared v11.3.0
|
|
23
|
+
* (c) 2026 kazuya kawaguchi
|
|
24
|
+
* Released under the MIT License.
|
|
25
|
+
*/function Y3(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const h0=typeof window<"u",ms=(e,t=!1)=>t?Symbol.for(e):Symbol(e),X3=(e,t,i)=>J3({l:e,k:t,s:i}),J3=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ht=e=>typeof e=="number"&&isFinite(e),Fp=e=>wh(e)==="[object Date]",bn=e=>wh(e)==="[object RegExp]",Y0=e=>je(e)&&Object.keys(e).length===0,Vt=Object.assign,Q3=Object.create,ot=(e=null)=>Q3(e);let u2;const Is=()=>u2||(u2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ot());function h2(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function d2(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function eb(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,n)=>`${s}="${d2(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,n)=>`${s}='${d2(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const tb=Object.prototype.hasOwnProperty;function Ii(e,t){return tb.call(e,t)}const Mt=Array.isArray,mt=e=>typeof e=="function",Te=e=>typeof e=="string",qe=e=>typeof e=="boolean",it=e=>e!==null&&typeof e=="object",ib=e=>it(e)&&mt(e.then)&&mt(e.catch),zp=Object.prototype.toString,wh=e=>zp.call(e),je=e=>wh(e)==="[object Object]",rb=e=>e==null?"":Mt(e)||je(e)&&e.toString===zp?JSON.stringify(e,null,2):String(e);function Sh(e,t=""){return e.reduce((i,r,s)=>s===0?i+r:i+t+r,"")}const Ml=e=>!it(e)||Mt(e);function Wl(e,t){if(Ml(e)||Ml(t))throw new Error("Invalid value");const i=[{src:e,des:t}];for(;i.length;){const{src:r,des:s}=i.pop();Object.keys(r).forEach(n=>{n!=="__proto__"&&(it(r[n])&&!it(s[n])&&(s[n]=Array.isArray(r[n])?[]:ot()),Ml(s[n])||Ml(r[n])?s[n]=r[n]:i.push({src:r[n],des:s[n]}))})}}/*!
|
|
26
|
+
* message-compiler v11.3.0
|
|
27
|
+
* (c) 2026 kazuya kawaguchi
|
|
28
|
+
* Released under the MIT License.
|
|
29
|
+
*/function sb(e,t,i){return{line:e,column:t,offset:i}}function M1(e,t,i){return{start:e,end:t}}const Qe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},nb=17;function X0(e,t,i={}){const{domain:r,messages:s,args:n}=i,a=e,o=new SyntaxError(String(a));return o.code=e,t&&(o.location=t),o.domain=r,o}function ab(e){throw e}const Yi=" ",ob="\r",si=`
|
|
30
|
+
`,lb="\u2028",cb="\u2029";function ub(e){const t=e;let i=0,r=1,s=1,n=0;const a=M=>t[M]===ob&&t[M+1]===si,o=M=>t[M]===si,l=M=>t[M]===cb,c=M=>t[M]===lb,u=M=>a(M)||o(M)||l(M)||c(M),h=()=>i,d=()=>r,f=()=>s,g=()=>n,_=M=>a(M)||l(M)||c(M)?si:t[M],A=()=>_(i),p=()=>_(i+n);function S(){return n=0,u(i)&&(r++,s=0),a(i)&&i++,i++,s++,t[i]}function m(){return a(i+n)&&n++,n++,t[i+n]}function v(){i=0,r=1,s=1,n=0}function k(M=0){n=M}function x(){const M=i+n;for(;M!==i;)S();n=0}return{index:h,line:d,column:f,peekOffset:g,charAt:_,currentChar:A,currentPeek:p,next:S,peek:m,reset:v,resetPeek:k,skipToPeek:x}}const br=void 0,hb=".",f2="'",db="tokenizer";function fb(e,t={}){const i=t.location!==!1,r=ub(e),s=()=>r.index(),n=()=>sb(r.line(),r.column(),r.index()),a=n(),o=s(),l={currentType:13,offset:o,startLoc:a,endLoc:a,lastType:13,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function h(w,C,V,...H){const L=c();if(C.column+=V,C.offset+=V,u){const E=i?M1(L.startLoc,C):null,I=X0(w,E,{domain:db,args:H});u(I)}}function d(w,C,V){w.endLoc=n(),w.currentType=C;const H={type:C};return i&&(H.loc=M1(w.startLoc,w.endLoc)),V!=null&&(H.value=V),H}const f=w=>d(w,13);function g(w,C){return w.currentChar()===C?(w.next(),C):(h(Qe.EXPECTED_TOKEN,n(),0,C),"")}function _(w){let C="";for(;w.currentPeek()===Yi||w.currentPeek()===si;)C+=w.currentPeek(),w.peek();return C}function A(w){const C=_(w);return w.skipToPeek(),C}function p(w){if(w===br)return!1;const C=w.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C===95}function S(w){if(w===br)return!1;const C=w.charCodeAt(0);return C>=48&&C<=57}function m(w,C){const{currentType:V}=C;if(V!==2)return!1;_(w);const H=p(w.currentPeek());return w.resetPeek(),H}function v(w,C){const{currentType:V}=C;if(V!==2)return!1;_(w);const H=w.currentPeek()==="-"?w.peek():w.currentPeek(),L=S(H);return w.resetPeek(),L}function k(w,C){const{currentType:V}=C;if(V!==2)return!1;_(w);const H=w.currentPeek()===f2;return w.resetPeek(),H}function x(w,C){const{currentType:V}=C;if(V!==7)return!1;_(w);const H=w.currentPeek()===".";return w.resetPeek(),H}function M(w,C){const{currentType:V}=C;if(V!==8)return!1;_(w);const H=p(w.currentPeek());return w.resetPeek(),H}function F(w,C){const{currentType:V}=C;if(!(V===7||V===11))return!1;_(w);const H=w.currentPeek()===":";return w.resetPeek(),H}function P(w,C){const{currentType:V}=C;if(V!==9)return!1;const H=()=>{const E=w.currentPeek();return E==="{"?p(w.peek()):E==="@"||E==="|"||E===":"||E==="."||E===Yi||!E?!1:E===si?(w.peek(),H()):R(w,!1)},L=H();return w.resetPeek(),L}function O(w){_(w);const C=w.currentPeek()==="|";return w.resetPeek(),C}function R(w,C=!0){const V=(L=!1,E="")=>{const I=w.currentPeek();return I==="{"||I==="@"||!I?L:I==="|"?!(E===Yi||E===si):I===Yi?(w.peek(),V(!0,Yi)):I===si?(w.peek(),V(!0,si)):!0},H=V();return C&&w.resetPeek(),H}function N(w,C){const V=w.currentChar();return V===br?br:C(V)?(w.next(),V):null}function T(w){const C=w.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36}function W(w){return N(w,T)}function q(w){const C=w.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36||C===45}function ie(w){return N(w,q)}function ee(w){const C=w.charCodeAt(0);return C>=48&&C<=57}function re(w){return N(w,ee)}function Y(w){const C=w.charCodeAt(0);return C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102}function _e(w){return N(w,Y)}function me(w){let C="",V="";for(;C=re(w);)V+=C;return V}function ge(w){let C="";for(;;){const V=w.currentChar();if(V==="\\"){const H=w.peek();H==="{"||H==="}"||H==="@"||H==="|"||H==="\\"?(C+=V+H,w.next(),w.next()):(w.resetPeek(),C+=V,w.next())}else{if(V==="{"||V==="}"||V==="@"||V==="|"||!V)break;if(V===Yi||V===si)if(R(w))C+=V,w.next();else{if(O(w))break;C+=V,w.next()}else C+=V,w.next()}}return C}function $e(w){A(w);let C="",V="";for(;C=ie(w);)V+=C;const H=w.currentChar();if(H&&H!=="}"&&H!==br&&H!==Yi&&H!==si&&H!==" "){const L=pe(w);return h(Qe.INVALID_TOKEN_IN_PLACEHOLDER,n(),0,V+L),V+L}return w.currentChar()===br&&h(Qe.UNTERMINATED_CLOSING_BRACE,n(),0),V}function Se(w){A(w);let C="";return w.currentChar()==="-"?(w.next(),C+=`-${me(w)}`):C+=me(w),w.currentChar()===br&&h(Qe.UNTERMINATED_CLOSING_BRACE,n(),0),C}function ae(w){return w!==f2&&w!==si}function se(w){A(w),g(w,"'");let C="",V="";for(;C=N(w,ae);)C==="\\"?V+=D(w):V+=C;const H=w.currentChar();return H===si||H===br?(h(Qe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,n(),0),H===si&&(w.next(),g(w,"'")),V):(g(w,"'"),V)}function D(w){const C=w.currentChar();switch(C){case"\\":case"'":return w.next(),`\\${C}`;case"u":return G(w,C,4);case"U":return G(w,C,6);default:return h(Qe.UNKNOWN_ESCAPE_SEQUENCE,n(),0,C),""}}function G(w,C,V){g(w,C);let H="";for(let L=0;L<V;L++){const E=_e(w);if(!E){h(Qe.INVALID_UNICODE_ESCAPE_SEQUENCE,n(),0,`\\${C}${H}${w.currentChar()}`);break}H+=E}return`\\${C}${H}`}function ne(w){return w!=="{"&&w!=="}"&&w!==Yi&&w!==si}function pe(w){A(w);let C="",V="";for(;C=N(w,ne);)V+=C;return V}function Ae(w){let C="",V="";for(;C=W(w);)V+=C;return V}function B(w){const C=V=>{const H=w.currentChar();return H==="{"||H==="@"||H==="|"||H==="("||H===")"||!H||H===Yi?V:(V+=H,w.next(),C(V))};return C("")}function Z(w){A(w);const C=g(w,"|");return A(w),C}function z(w,C){let V=null;switch(w.currentChar()){case"{":return C.braceNest>=1&&h(Qe.NOT_ALLOW_NEST_PLACEHOLDER,n(),0),w.next(),V=d(C,2,"{"),A(w),C.braceNest++,V;case"}":return C.braceNest>0&&C.currentType===2&&h(Qe.EMPTY_PLACEHOLDER,n(),0),w.next(),V=d(C,3,"}"),C.braceNest--,C.braceNest>0&&A(w),C.inLinked&&C.braceNest===0&&(C.inLinked=!1),V;case"@":return C.braceNest>0&&h(Qe.UNTERMINATED_CLOSING_BRACE,n(),0),V=oe(w,C)||f(C),C.braceNest=0,V;default:{let L=!0,E=!0,I=!0;if(O(w))return C.braceNest>0&&h(Qe.UNTERMINATED_CLOSING_BRACE,n(),0),V=d(C,1,Z(w)),C.braceNest=0,C.inLinked=!1,V;if(C.braceNest>0&&(C.currentType===4||C.currentType===5||C.currentType===6))return h(Qe.UNTERMINATED_CLOSING_BRACE,n(),0),C.braceNest=0,he(w,C);if(L=m(w,C))return V=d(C,4,$e(w)),A(w),V;if(E=v(w,C))return V=d(C,5,Se(w)),A(w),V;if(I=k(w,C))return V=d(C,6,se(w)),A(w),V;if(!L&&!E&&!I)return V=d(C,12,pe(w)),h(Qe.INVALID_TOKEN_IN_PLACEHOLDER,n(),0,V.value),A(w),V;break}}return V}function oe(w,C){const{currentType:V}=C;let H=null;const L=w.currentChar();switch((V===7||V===8||V===11||V===9)&&(L===si||L===Yi)&&h(Qe.INVALID_LINKED_FORMAT,n(),0),L){case"@":return w.next(),H=d(C,7,"@"),C.inLinked=!0,H;case".":return A(w),w.next(),d(C,8,".");case":":return A(w),w.next(),d(C,9,":");default:return O(w)?(H=d(C,1,Z(w)),C.braceNest=0,C.inLinked=!1,H):x(w,C)||F(w,C)?(A(w),oe(w,C)):M(w,C)?(A(w),d(C,11,Ae(w))):P(w,C)?(A(w),L==="{"?z(w,C)||H:d(C,10,B(w))):(V===7&&h(Qe.INVALID_LINKED_FORMAT,n(),0),C.braceNest=0,C.inLinked=!1,he(w,C))}}function he(w,C){let V={type:13};if(C.braceNest>0)return z(w,C)||f(C);if(C.inLinked)return oe(w,C)||f(C);switch(w.currentChar()){case"{":return z(w,C)||f(C);case"}":return h(Qe.UNBALANCED_CLOSING_BRACE,n(),0),w.next(),d(C,3,"}");case"@":return oe(w,C)||f(C);default:{if(O(w))return V=d(C,1,Z(w)),C.braceNest=0,C.inLinked=!1,V;if(R(w))return d(C,0,ge(w));break}}return V}function ue(){const{currentType:w,offset:C,startLoc:V,endLoc:H}=l;return l.lastType=w,l.lastOffset=C,l.lastStartLoc=V,l.lastEndLoc=H,l.offset=s(),l.startLoc=n(),r.currentChar()===br?d(l,13):he(r,l)}return{nextToken:ue,currentOffset:s,currentPosition:n,context:c}}const _b="parser",pb=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,mb=/\\([\\@{}|])/g;function gb(e,t){return t}function vb(e,t,i){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||i,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function bb(e={}){const t=e.location!==!1,{onError:i}=e;function r(p,S,m,v,...k){const x=p.currentPosition();if(x.offset+=v,x.column+=v,i){const M=t?M1(m,x):null,F=X0(S,M,{domain:_b,args:k});i(F)}}function s(p,S,m){const v={type:p};return t&&(v.start=S,v.end=S,v.loc={start:m,end:m}),v}function n(p,S,m,v){t&&(p.end=S,p.loc&&(p.loc.end=m))}function a(p,S){const m=p.context(),v=s(3,m.offset,m.startLoc);return v.value=S.replace(mb,gb),n(v,p.currentOffset(),p.currentPosition()),v}function o(p,S){const m=p.context(),{lastOffset:v,lastStartLoc:k}=m,x=s(5,v,k);return x.index=parseInt(S,10),p.nextToken(),n(x,p.currentOffset(),p.currentPosition()),x}function l(p,S){const m=p.context(),{lastOffset:v,lastStartLoc:k}=m,x=s(4,v,k);return x.key=S,p.nextToken(),n(x,p.currentOffset(),p.currentPosition()),x}function c(p,S){const m=p.context(),{lastOffset:v,lastStartLoc:k}=m,x=s(9,v,k);return x.value=S.replace(pb,vb),p.nextToken(),n(x,p.currentOffset(),p.currentPosition()),x}function u(p){const S=p.nextToken(),m=p.context(),{lastOffset:v,lastStartLoc:k}=m,x=s(8,v,k);return S.type!==11?(r(p,Qe.UNEXPECTED_EMPTY_LINKED_MODIFIER,m.lastStartLoc,0),x.value="",n(x,v,k),{nextConsumeToken:S,node:x}):(S.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Xi(S)),x.value=S.value||"",n(x,p.currentOffset(),p.currentPosition()),{node:x})}function h(p,S){const m=p.context(),v=s(7,m.offset,m.startLoc);return v.value=S,n(v,p.currentOffset(),p.currentPosition()),v}function d(p){const S=p.context(),m=s(6,S.offset,S.startLoc);let v=p.nextToken();if(v.type===8){const k=u(p);m.modifier=k.node,v=k.nextConsumeToken||p.nextToken()}switch(v.type!==9&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(v)),v=p.nextToken(),v.type===2&&(v=p.nextToken()),v.type){case 10:v.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(v)),m.key=h(p,v.value||"");break;case 4:v.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(v)),m.key=l(p,v.value||"");break;case 5:v.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(v)),m.key=o(p,v.value||"");break;case 6:v.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(v)),m.key=c(p,v.value||"");break;default:{r(p,Qe.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const k=p.context(),x=s(7,k.offset,k.startLoc);return x.value="",n(x,k.offset,k.startLoc),m.key=x,n(m,k.offset,k.startLoc),{nextConsumeToken:v,node:m}}}return n(m,p.currentOffset(),p.currentPosition()),{node:m}}function f(p){const S=p.context(),m=S.currentType===1?p.currentOffset():S.offset,v=S.currentType===1?S.endLoc:S.startLoc,k=s(2,m,v);k.items=[];let x=null;do{const P=x||p.nextToken();switch(x=null,P.type){case 0:P.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(P)),k.items.push(a(p,P.value||""));break;case 5:P.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(P)),k.items.push(o(p,P.value||""));break;case 4:P.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(P)),k.items.push(l(p,P.value||""));break;case 6:P.value==null&&r(p,Qe.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Xi(P)),k.items.push(c(p,P.value||""));break;case 7:{const O=d(p);k.items.push(O.node),x=O.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const M=S.currentType===1?S.lastOffset:p.currentOffset(),F=S.currentType===1?S.lastEndLoc:p.currentPosition();return n(k,M,F),k}function g(p,S,m,v){const k=p.context();let x=v.items.length===0;const M=s(1,S,m);M.cases=[],M.cases.push(v);do{const F=f(p);x||(x=F.items.length===0),M.cases.push(F)}while(k.currentType!==13);return x&&r(p,Qe.MUST_HAVE_MESSAGES_IN_PLURAL,m,0),n(M,p.currentOffset(),p.currentPosition()),M}function _(p){const S=p.context(),{offset:m,startLoc:v}=S,k=f(p);return S.currentType===13?k:g(p,m,v,k)}function A(p){const S=fb(p,Vt({},e)),m=S.context(),v=s(0,m.offset,m.startLoc);return t&&v.loc&&(v.loc.source=p),v.body=_(S),e.onCacheKey&&(v.cacheKey=e.onCacheKey(p)),m.currentType!==13&&r(S,Qe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,p[m.offset]||""),n(v,S.currentOffset(),S.currentPosition()),v}return{parse:A}}function Xi(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function yb(e,t={}){const i={ast:e,helpers:new Set};return{context:()=>i,helper:n=>(i.helpers.add(n),n)}}function _2(e,t){for(let i=0;i<e.length;i++)Ch(e[i],t)}function Ch(e,t){switch(e.type){case 1:_2(e.cases,t),t.helper("plural");break;case 2:_2(e.items,t);break;case 6:{Ch(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function wb(e,t={}){const i=yb(e);i.helper("normalize"),e.body&&Ch(e.body,i);const r=i.context();e.helpers=Array.from(r.helpers)}function Sb(e){const t=e.body;return t.type===2?p2(t):t.cases.forEach(i=>p2(i)),e}function p2(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let i=0;i<e.items.length;i++){const r=e.items[i];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Sh(t);for(let i=0;i<e.items.length;i++){const r=e.items[i];(r.type===3||r.type===9)&&delete r.value}}}}function an(e){switch(e.t=e.type,e.type){case 0:{const t=e;an(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,i=t.cases;for(let r=0;r<i.length;r++)an(i[r]);t.c=i,delete t.cases;break}case 2:{const t=e,i=t.items;for(let r=0;r<i.length;r++)an(i[r]);t.i=i,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;an(t.key),t.k=t.key,delete t.key,t.modifier&&(an(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Cb(e,t){const{filename:i,breakLineCode:r,needIndent:s}=t,n=t.location!==!1,a={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};n&&e.loc&&(a.source=e.loc.source);const o=()=>a;function l(_,A){a.code+=_}function c(_,A=!0){const p=A?r:"";l(s?p+" ".repeat(_):p)}function u(_=!0){const A=++a.indentLevel;_&&c(A)}function h(_=!0){const A=--a.indentLevel;_&&c(A)}function d(){c(a.indentLevel)}return{context:o,push:l,indent:u,deindent:h,newline:d,helper:_=>`_${_}`,needIndent:()=>a.needIndent}}function Ab(e,t){const{helper:i}=e;e.push(`${i("linked")}(`),yn(e,t.key),t.modifier?(e.push(", "),yn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function kb(e,t){const{helper:i,needIndent:r}=e;e.push(`${i("normalize")}([`),e.indent(r());const s=t.items.length;for(let n=0;n<s&&(yn(e,t.items[n]),n!==s-1);n++)e.push(", ");e.deindent(r()),e.push("])")}function Mb(e,t){const{helper:i,needIndent:r}=e;if(t.cases.length>1){e.push(`${i("plural")}([`),e.indent(r());const s=t.cases.length;for(let n=0;n<s&&(yn(e,t.cases[n]),n!==s-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}function Lb(e,t){t.body?yn(e,t.body):e.push("null")}function yn(e,t){const{helper:i}=e;switch(t.type){case 0:Lb(e,t);break;case 1:Mb(e,t);break;case 2:kb(e,t);break;case 6:Ab(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${i("interpolate")}(${i("list")}(${t.index}))`,t);break;case 4:e.push(`${i("interpolate")}(${i("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Eb=(e,t={})=>{const i=Te(t.mode)?t.mode:"normal",r=Te(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:i==="arrow"?";":`
|
|
31
|
+
`,n=t.needIndent?t.needIndent:i!=="arrow",a=e.helpers||[],o=Cb(e,{filename:r,breakLineCode:s,needIndent:n});o.push(i==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(n),a.length>0&&(o.push(`const { ${Sh(a.map(u=>`${u}: _${u}`),", ")} } = ctx`),o.newline()),o.push("return "),yn(o,e),o.deindent(n),o.push("}"),delete e.helpers;const{code:l,map:c}=o.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function xb(e,t={}){const i=Vt({},t),r=!!i.jit,s=!!i.minify,n=i.optimize==null?!0:i.optimize,o=bb(i).parse(e);return r?(n&&Sb(o),s&&an(o),{ast:o,code:""}):(wb(o,i),Eb(o,i))}/*!
|
|
32
|
+
* core-base v11.3.0
|
|
33
|
+
* (c) 2026 kazuya kawaguchi
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*/function $b(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Is().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function cr(e){return it(e)&&Ah(e)===0&&(Ii(e,"b")||Ii(e,"body"))}const Up=["b","body"];function Tb(e){return gs(e,Up)}const Wp=["c","cases"];function Nb(e){return gs(e,Wp,[])}const jp=["s","static"];function Hb(e){return gs(e,jp)}const Kp=["i","items"];function Pb(e){return gs(e,Kp,[])}const qp=["t","type"];function Ah(e){return gs(e,qp)}const Gp=["v","value"];function Ll(e,t){const i=gs(e,Gp);if(i!=null)return i;throw Bo(t)}const Yp=["m","modifier"];function Ob(e){return gs(e,Yp)}const Xp=["k","key"];function Ib(e){const t=gs(e,Xp);if(t)return t;throw Bo(6)}function gs(e,t,i){for(let r=0;r<t.length;r++){const s=t[r];if(Ii(e,s)&&e[s]!=null)return e[s]}return i}const Jp=[...Up,...Wp,...jp,...Kp,...Xp,...Yp,...Gp,...qp];function Bo(e){return new Error(`unhandled node type: ${e}`)}function Tc(e){return i=>Rb(i,e)}function Rb(e,t){const i=Tb(t);if(i==null)throw Bo(0);if(Ah(i)===1){const n=Nb(i);return e.plural(n.reduce((a,o)=>[...a,m2(e,o)],[]))}else return m2(e,i)}function m2(e,t){const i=Hb(t);if(i!=null)return e.type==="text"?i:e.normalize([i]);{const r=Pb(t).reduce((s,n)=>[...s,L1(e,n)],[]);return e.normalize(r)}}function L1(e,t){const i=Ah(t);switch(i){case 3:return Ll(t,i);case 9:return Ll(t,i);case 4:{const r=t;if(Ii(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ii(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Bo(i)}case 5:{const r=t;if(Ii(r,"i")&&Ht(r.i))return e.interpolate(e.list(r.i));if(Ii(r,"index")&&Ht(r.index))return e.interpolate(e.list(r.index));throw Bo(i)}case 6:{const r=t,s=Ob(r),n=Ib(r);return e.linked(L1(e,n),s?L1(e,s):void 0,e.type)}case 7:return Ll(t,i);case 8:return Ll(t,i);default:throw new Error(`unhandled node on format message part: ${i}`)}}const Db=e=>e;let El=ot();function Vb(e,t={}){let i=!1;const r=t.onError||ab;return t.onError=s=>{i=!0,r(s)},{...xb(e,t),detectError:i}}function Bb(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Te(e)){qe(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Db)(e),s=El[r];if(s)return s;const{ast:n,detectError:a}=Vb(e,{...t,location:!1,jit:!0}),o=Tc(n);return a?o:El[r]=o}else{const i=e.cacheKey;if(i){const r=El[i];return r||(El[i]=Tc(e))}else return Tc(e)}}let Zo=null;function Zb(e){Zo=e}function Fb(e,t,i){Zo&&Zo.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:i})}const zb=Ub("function:translate");function Ub(e){return t=>Zo&&Zo.emit(e,t)}const Er={INVALID_ARGUMENT:nb,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Wb=24;function xr(e){return X0(e,null,void 0)}function kh(e,t){return t.locale!=null?g2(t.locale):g2(e.locale)}let Nc;function g2(e){if(Te(e))return e;if(mt(e)){if(e.resolvedOnce&&Nc!=null)return Nc;if(e.constructor.name==="Function"){const t=e();if(ib(t))throw xr(Er.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Nc=t}else throw xr(Er.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw xr(Er.NOT_SUPPORT_LOCALE_TYPE)}function jb(e,t,i){return[...new Set([i,...Mt(t)?t:it(t)?Object.keys(t):Te(t)?[t]:[i]])]}function E1(e,t,i){const r=Te(i)?i:Fo,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let n=s.__localeChainCache.get(r);if(!n){n=[];let a=[i];for(;Mt(a);)a=v2(n,a,t);const o=Mt(t)||!je(t)?t:t.default?t.default:null;a=Te(o)?[o]:o,Mt(a)&&v2(n,a,!1),s.__localeChainCache.set(r,n)}return n}function v2(e,t,i){let r=!0;for(let s=0;s<t.length&&qe(r);s++){const n=t[s];Te(n)&&(r=Kb(e,t[s],i))}return r}function Kb(e,t,i){let r;const s=t.split("-");do{const n=s.join("-");r=qb(e,n,i),s.splice(-1,1)}while(s.length&&r===!0);return r}function qb(e,t,i){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(Mt(i)||je(i))&&i[s]&&(r=i[s])}return r}const vs=[];vs[0]={w:[0],i:[3,0],"[":[4],o:[7]};vs[1]={w:[1],".":[2],"[":[4],o:[7]};vs[2]={w:[2],i:[3,0],0:[3,0]};vs[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};vs[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};vs[5]={"'":[4,0],o:8,l:[5,0]};vs[6]={'"':[4,0],o:8,l:[6,0]};const Gb=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yb(e){return Gb.test(e)}function Xb(e){const t=e.charCodeAt(0),i=e.charCodeAt(e.length-1);return t===i&&(t===34||t===39)?e.slice(1,-1):e}function Jb(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Qb(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Yb(t)?Xb(t):"*"+t}function ey(e){const t=[];let i=-1,r=0,s=0,n,a,o,l,c,u,h;const d=[];d[0]=()=>{a===void 0?a=o:a+=o},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,a===void 0||(a=Qb(a),a===!1))return!1;d[1]()}};function f(){const g=e[i+1];if(r===5&&g==="'"||r===6&&g==='"')return i++,o="\\"+g,d[0](),!0}for(;r!==null;)if(i++,n=e[i],!(n==="\\"&&f())){if(l=Jb(n),h=vs[r],c=h[l]||h.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(o=n,u()===!1))))return;if(r===7)return t}}const b2=new Map;function ty(e,t){return it(e)?e[t]:null}function iy(e,t){if(!it(e))return null;let i=b2.get(t);if(i||(i=ey(t),i&&b2.set(t,i)),!i)return null;const r=i.length;let s=e,n=0;for(;n<r;){const a=i[n];if(Jp.includes(a)&&cr(s)||!it(s)||!Ii(s,a))return null;const o=s[a];if(o===void 0||mt(s))return null;s=o,n++}return s}const ry="11.3.0",J0=-1,Fo="en-US",d0="",y2=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sy(){return{upper:(e,t)=>t==="text"&&Te(e)?e.toUpperCase():t==="vnode"&&it(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Te(e)?e.toLowerCase():t==="vnode"&&it(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Te(e)?y2(e):t==="vnode"&&it(e)&&"__v_isVNode"in e?y2(e.children):e}}let Qp;function ny(e){Qp=e}let e4;function ay(e){e4=e}let t4;function oy(e){t4=e}let i4=null;const ly=e=>{i4=e},cy=()=>i4;let r4=null;const w2=e=>{r4=e},uy=()=>r4;let S2=0;function hy(e={}){const t=mt(e.onWarn)?e.onWarn:Y3,i=Te(e.version)?e.version:ry,r=Te(e.locale)||mt(e.locale)?e.locale:Fo,s=mt(r)?Fo:r,n=Mt(e.fallbackLocale)||je(e.fallbackLocale)||Te(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,a=je(e.messages)?e.messages:Hc(s),o=je(e.datetimeFormats)?e.datetimeFormats:Hc(s),l=je(e.numberFormats)?e.numberFormats:Hc(s),c=Vt(ot(),e.modifiers,sy()),u=e.pluralRules||ot(),h=mt(e.missing)?e.missing:null,d=qe(e.missingWarn)||bn(e.missingWarn)?e.missingWarn:!0,f=qe(e.fallbackWarn)||bn(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,_=!!e.unresolving,A=mt(e.postTranslation)?e.postTranslation:null,p=je(e.processor)?e.processor:null,S=qe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,v=mt(e.messageCompiler)?e.messageCompiler:Qp,k=mt(e.messageResolver)?e.messageResolver:e4||ty,x=mt(e.localeFallbacker)?e.localeFallbacker:t4||jb,M=it(e.fallbackContext)?e.fallbackContext:void 0,F=e,P=it(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,O=it(F.__numberFormatters)?F.__numberFormatters:new Map,R=it(F.__meta)?F.__meta:{};S2++;const N={version:i,cid:S2,locale:r,fallbackLocale:n,messages:a,modifiers:c,pluralRules:u,missing:h,missingWarn:d,fallbackWarn:f,fallbackFormat:g,unresolving:_,postTranslation:A,processor:p,warnHtmlMessage:S,escapeParameter:m,messageCompiler:v,messageResolver:k,localeFallbacker:x,fallbackContext:M,onWarn:t,__meta:R};return N.datetimeFormats=o,N.numberFormats=l,N.__datetimeFormatters=P,N.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&Fb(N,i,R),N}const Hc=e=>({[e]:ot()});function Mh(e,t,i,r,s){const{missing:n,onWarn:a}=e;if(n!==null){const o=n(e,i,t,s);return Te(o)?o:t}else return t}function eo(e,t,i){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,i,t)}function dy(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function fy(e,t){const i=t.indexOf(e);if(i===-1)return!1;for(let r=i+1;r<t.length;r++)if(dy(e,t[r]))return!0;return!1}function C2(e,...t){const{datetimeFormats:i,unresolving:r,fallbackLocale:s,onWarn:n,localeFallbacker:a}=e,{__datetimeFormatters:o}=e;if(!Te(t[0])&&!Fp(t[0])&&!Ht(t[0]))return d0;const[l,c,u,h]=x1(...t),d=qe(u.missingWarn)?u.missingWarn:e.missingWarn;qe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,g=kh(e,u),_=a(e,s,g);if(!Te(l)||l==="")return new Intl.DateTimeFormat(g.replace(/!/g,""),h).format(c);let A={},p,S=null;const m="datetime format";for(let x=0;x<_.length&&(p=_[x],A=i[p]||{},S=A[l],!je(S));x++)Mh(e,l,p,d,m);if(!je(S)||!Te(p))return r?J0:l;let v=`${p}__${l}`;Y0(h)||(v=`${v}__${JSON.stringify(h)}`);let k=o.get(v);return k||(k=new Intl.DateTimeFormat(p,Vt({},S,h)),o.set(v,k)),f?k.formatToParts(c):k.format(c)}const s4=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function x1(...e){const[t,i,r,s]=e,n=ot();let a=ot(),o;if(Te(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw xr(Er.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();o=new Date(c);try{o.toISOString()}catch{throw xr(Er.INVALID_ISO_DATE_ARGUMENT)}}else if(Fp(t)){if(isNaN(t.getTime()))throw xr(Er.INVALID_DATE_ARGUMENT);o=t}else if(Ht(t))o=t;else throw xr(Er.INVALID_ARGUMENT);return Te(i)?n.key=i:je(i)&&Object.keys(i).forEach(l=>{s4.includes(l)?a[l]=i[l]:n[l]=i[l]}),Te(r)?n.locale=r:je(r)&&(a=r),je(s)&&(a=s),[n.key||"",o,n,a]}function A2(e,t,i){const r=e;for(const s in i){const n=`${t}__${s}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function k2(e,...t){const{numberFormats:i,unresolving:r,fallbackLocale:s,onWarn:n,localeFallbacker:a}=e,{__numberFormatters:o}=e;if(!Ht(t[0]))return d0;const[l,c,u,h]=$1(...t),d=qe(u.missingWarn)?u.missingWarn:e.missingWarn;qe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,g=kh(e,u),_=a(e,s,g);if(!Te(l)||l==="")return new Intl.NumberFormat(g.replace(/!/g,""),h).format(c);let A={},p,S=null;const m="number format";for(let x=0;x<_.length&&(p=_[x],A=i[p]||{},S=A[l],!je(S));x++)Mh(e,l,p,d,m);if(!je(S)||!Te(p))return r?J0:l;let v=`${p}__${l}`;Y0(h)||(v=`${v}__${JSON.stringify(h)}`);let k=o.get(v);return k||(k=new Intl.NumberFormat(p,Vt({},S,h)),o.set(v,k)),f?k.formatToParts(c):k.format(c)}const n4=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function $1(...e){const[t,i,r,s]=e,n=ot();let a=ot();if(!Ht(t))throw xr(Er.INVALID_ARGUMENT);const o=t;return Te(i)?n.key=i:je(i)&&Object.keys(i).forEach(l=>{n4.includes(l)?a[l]=i[l]:n[l]=i[l]}),Te(r)?n.locale=r:je(r)&&(a=r),je(s)&&(a=s),[n.key||"",o,n,a]}function M2(e,t,i){const r=e;for(const s in i){const n=`${t}__${s}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const _y=e=>e,py=e=>"",my="text",gy=e=>e.length===0?"":Sh(e),vy=rb;function Pc(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function by(e){var i,r;const t=Ht(e.pluralIndex)?e.pluralIndex:-1;return Ht((i=e.named)==null?void 0:i.count)?e.named.count:Ht((r=e.named)==null?void 0:r.n)?e.named.n:t}function yy(e={}){var p,S,m,v;const t=e.locale,i=by(e),r=Te(t)&&mt((p=e.pluralRules)==null?void 0:p[t])?e.pluralRules[t]:Pc,s=r===Pc?void 0:Pc,n=k=>k[r(i,k.length,s)],a=e.list||[],o=k=>a[k],l=e.named||ot();Ht(e.pluralIndex)&&(l.count||(l.count=e.pluralIndex),l.n||(l.n=e.pluralIndex));const c=k=>l[k];function u(k,x){const M=mt(e.messages)?e.messages(k,!!x):it(e.messages)?e.messages[k]:!1;return M||(e.parent?e.parent.message(k):py)}const h=k=>e.modifiers?e.modifiers[k]:_y,d=mt((S=e.processor)==null?void 0:S.normalize)?e.processor.normalize:gy,f=mt((m=e.processor)==null?void 0:m.interpolate)?e.processor.interpolate:vy,g=Te((v=e.processor)==null?void 0:v.type)?e.processor.type:my,A={list:o,named:c,plural:n,linked:(k,...x)=>{const[M,F]=x;let P="text",O="";x.length===1?it(M)?(O=M.modifier||O,P=M.type||P):Te(M)&&(O=M||O):x.length===2&&(Te(M)&&(O=M||O),Te(F)&&(P=F||P));const R=u(k,!0)(A),N=R===""||R===void 0?k:R,T=P==="vnode"&&Mt(N)&&O?N[0]:N;return O?h(O)(T,P):T},message:u,type:g,interpolate:f,normalize:d,values:Vt(ot(),a,l)};return A}const L2=()=>"",Oi=e=>mt(e);function E2(e,...t){const{fallbackFormat:i,postTranslation:r,unresolving:s,messageCompiler:n,fallbackLocale:a,messages:o}=e,[l,c]=T1(...t),u=qe(c.missingWarn)?c.missingWarn:e.missingWarn,h=qe(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=qe(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,g=Te(c.default)||qe(c.default)?qe(c.default)?n?l:()=>l:c.default:i?n?l:()=>l:null,_=i||g!=null&&(Te(g)||mt(g)),A=kh(e,c);d&&wy(c);let[p,S,m]=f?[l,A,o[A]||ot()]:a4(e,l,A,a,h,u),v=p,k=l;if(!f&&!(Te(v)||cr(v)||Oi(v))&&_&&(v=g,k=v),!f&&(!(Te(v)||cr(v)||Oi(v))||!Te(S)))return s?J0:l;let x=!1;const M=()=>{x=!0},F=Oi(v)?v:o4(e,l,S,v,k,M);if(x)return v;const P=Ay(e,S,m,c),O=yy(P),R=Sy(e,F,O);let N=r?r(R,l):R;if(d&&Te(N)&&(N=eb(N)),__INTLIFY_PROD_DEVTOOLS__){const T={timestamp:Date.now(),key:Te(l)?l:Oi(v)?v.key:"",locale:S||(Oi(v)?v.locale:""),format:Te(v)?v:Oi(v)?v.source:"",message:N};T.meta=Vt({},e.__meta,cy()||{}),zb(T)}return N}function wy(e){Mt(e.list)?e.list=e.list.map(t=>Te(t)?h2(t):t):it(e.named)&&Object.keys(e.named).forEach(t=>{Te(e.named[t])&&(e.named[t]=h2(e.named[t]))})}function a4(e,t,i,r,s,n){const{messages:a,onWarn:o,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,i);let h=ot(),d,f=null;const g="translate";for(let _=0;_<u.length&&(d=u[_],h=a[d]||ot(),(f=l(h,t))===null&&(f=h[t]),!(Te(f)||cr(f)||Oi(f)));_++)if(!fy(d,u)){const A=Mh(e,t,d,n,g);A!==t&&(f=A)}return[f,d,h]}function o4(e,t,i,r,s,n){const{messageCompiler:a,warnHtmlMessage:o}=e;if(Oi(r)){const c=r;return c.locale=c.locale||i,c.key=c.key||t,c}if(a==null){const c=()=>r;return c.locale=i,c.key=t,c}const l=a(r,Cy(e,i,s,r,o,n));return l.locale=i,l.key=t,l.source=r,l}function Sy(e,t,i){return t(i)}function T1(...e){const[t,i,r]=e,s=ot();if(!Te(t)&&!Ht(t)&&!Oi(t)&&!cr(t))throw xr(Er.INVALID_ARGUMENT);const n=Ht(t)?String(t):(Oi(t),t);return Ht(i)?s.plural=i:Te(i)?s.default=i:je(i)&&!Y0(i)?s.named=i:Mt(i)&&(s.list=i),Ht(r)?s.plural=r:Te(r)?s.default=r:je(r)&&Vt(s,r),[n,s]}function Cy(e,t,i,r,s,n){return{locale:t,key:i,warnHtmlMessage:s,onError:a=>{throw n&&n(a),a},onCacheKey:a=>X3(t,i,a)}}function Ay(e,t,i,r){const{modifiers:s,pluralRules:n,messageResolver:a,fallbackLocale:o,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:s,pluralRules:n,messages:(f,g)=>{let _=a(i,f);if(_==null&&(u||g)){const[,,A]=a4(u||e,f,t,o,l,c);_=a(A,f)}if(Te(_)||cr(_)){let A=!1;const S=o4(e,f,t,_,f,()=>{A=!0});return A?L2:S}else return Oi(_)?_:L2}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ht(r.plural)&&(d.pluralIndex=r.plural),d}$b();/*!
|
|
36
|
+
* vue-i18n v11.3.0
|
|
37
|
+
* (c) 2026 kazuya kawaguchi
|
|
38
|
+
* Released under the MIT License.
|
|
39
|
+
*/const ky="11.3.0";function My(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Is().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Is().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Is().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Is().__INTLIFY_PROD_DEVTOOLS__=!1)}const Si={UNEXPECTED_RETURN_TYPE:Wb,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function xi(e,...t){return X0(e,null,void 0)}const N1=ms("__translateVNode"),H1=ms("__datetimeParts"),P1=ms("__numberParts"),l4=ms("__setPluralRules"),c4=ms("__injectWithOption"),O1=ms("__dispose");function zo(e){if(!it(e)||cr(e))return e;for(const t in e)if(Ii(e,t))if(!t.includes("."))it(e[t])&&zo(e[t]);else{const i=t.split("."),r=i.length-1;let s=e,n=!1;for(let a=0;a<r;a++){if(i[a]==="__proto__")throw new Error(`unsafe key: ${i[a]}`);if(i[a]in s||(s[i[a]]=ot()),!it(s[i[a]])){n=!0;break}s=s[i[a]]}if(n||(cr(s)?Jp.includes(i[r])||delete e[t]:(s[i[r]]=e[t],delete e[t])),!cr(s)){const a=s[i[r]];it(a)&&zo(a)}}return e}function Lh(e,t){const{messages:i,__i18n:r,messageResolver:s,flatJson:n}=t,a=je(i)?i:Mt(r)?ot():{[e]:ot()};if(Mt(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:l,resource:c}=o;l?(a[l]=a[l]||ot(),Wl(c,a[l])):Wl(c,a)}else Te(o)&&Wl(JSON.parse(o),a)}),s==null&&n)for(const o in a)Ii(a,o)&&zo(a[o]);return a}function u4(e){return e.type}function h4(e,t,i){let r=it(t.messages)?t.messages:ot();"__i18nGlobal"in i&&(r=Lh(e.locale.value,{messages:r,__i18n:i.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(n=>{e.mergeLocaleMessage(n,r[n])});{if(it(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(it(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function x2(e){return X(ps,null,e,0)}function Uo(){return gi()}const $2="__INTLIFY_META__",T2=()=>[],Ly=()=>!1;let N2=0;function H2(e){return(t,i,r,s)=>e(i,r,Uo()||void 0,s)}const Ey=()=>{const e=Uo();let t=null;return e&&(t=u4(e)[$2])?{[$2]:t}:null};function Eh(e={}){const{__root:t,__injectWithOption:i}=e,r=t===void 0,s=e.flatJson,n=h0?Q:Vr;let a=qe(e.inheritLocale)?e.inheritLocale:!0;const o=n(t&&a?t.locale.value:Te(e.locale)?e.locale:Fo),l=n(t&&a?t.fallbackLocale.value:Te(e.fallbackLocale)||Mt(e.fallbackLocale)||je(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),c=n(Lh(o.value,e)),u=n(je(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),h=n(je(e.numberFormats)?e.numberFormats:{[o.value]:{}});let d=t?t.missingWarn:qe(e.missingWarn)||bn(e.missingWarn)?e.missingWarn:!0,f=t?t.fallbackWarn:qe(e.fallbackWarn)||bn(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:qe(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,A=mt(e.missing)?e.missing:null,p=mt(e.missing)?H2(e.missing):null,S=mt(e.postTranslation)?e.postTranslation:null,m=t?t.warnHtmlMessage:qe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const k=t?t.modifiers:je(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,M;M=(()=>{r&&w2(null);const I={version:ky,locale:o.value,fallbackLocale:l.value,messages:c.value,modifiers:k,pluralRules:x,missing:p===null?void 0:p,missingWarn:d,fallbackWarn:f,fallbackFormat:_,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:m,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=u.value,I.numberFormats=h.value,I.__datetimeFormatters=je(M)?M.__datetimeFormatters:void 0,I.__numberFormatters=je(M)?M.__numberFormatters:void 0;const K=hy(I);return r&&w2(K),K})(),eo(M,o.value,l.value);function P(){return[o.value,l.value,c.value,u.value,h.value]}const O=J({get:()=>o.value,set:I=>{M.locale=I,o.value=I}}),R=J({get:()=>l.value,set:I=>{M.fallbackLocale=I,l.value=I,eo(M,o.value,I)}}),N=J(()=>c.value),T=J(()=>u.value),W=J(()=>h.value);function q(){return mt(S)?S:null}function ie(I){S=I,M.postTranslation=I}function ee(){return A}function re(I){I!==null&&(p=H2(I)),A=I,M.missing=p}const Y=(I,K,de,ye,Ee,ze)=>{P();let Me;try{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=t?uy():void 0),Me=I(M)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(de!=="translate exists"&&Ht(Me)&&Me===J0||de==="translate exists"&&!Me){const[St,Gt]=K();return t&&g?ye(t):Ee(St)}else{if(ze(Me))return Me;throw xi(Si.UNEXPECTED_RETURN_TYPE)}};function _e(...I){return Y(K=>Reflect.apply(E2,null,[K,...I]),()=>T1(...I),"translate",K=>Reflect.apply(K.t,K,[...I]),K=>K,K=>Te(K))}function me(...I){const[K,de,ye]=I;if(ye&&!it(ye))throw xi(Si.INVALID_ARGUMENT);return _e(K,de,Vt({resolvedMessage:!0},ye||{}))}function ge(...I){return Y(K=>Reflect.apply(C2,null,[K,...I]),()=>x1(...I),"datetime format",K=>Reflect.apply(K.d,K,[...I]),()=>d0,K=>Te(K)||Mt(K))}function $e(...I){return Y(K=>Reflect.apply(k2,null,[K,...I]),()=>$1(...I),"number format",K=>Reflect.apply(K.n,K,[...I]),()=>d0,K=>Te(K)||Mt(K))}function Se(I){return I.map(K=>Te(K)||Ht(K)||qe(K)?x2(String(K)):K)}const se={normalize:Se,interpolate:I=>I,type:"vnode"};function D(...I){return Y(K=>{let de;const ye=K;try{ye.processor=se,de=Reflect.apply(E2,null,[ye,...I])}finally{ye.processor=null}return de},()=>T1(...I),"translate",K=>K[N1](...I),K=>[x2(K)],K=>Mt(K))}function G(...I){return Y(K=>Reflect.apply(k2,null,[K,...I]),()=>$1(...I),"number format",K=>K[P1](...I),T2,K=>Te(K)||Mt(K))}function ne(...I){return Y(K=>Reflect.apply(C2,null,[K,...I]),()=>x1(...I),"datetime format",K=>K[H1](...I),T2,K=>Te(K)||Mt(K))}function pe(I){x=I,M.pluralRules=x}function Ae(I,K){return Y(()=>{if(!I)return!1;const de=Te(K)?K:o.value,ye=Te(K)?[de]:E1(M,l.value,de);for(let Ee=0;Ee<ye.length;Ee++){const ze=z(ye[Ee]);let Me=M.messageResolver(ze,I);if(Me===null&&(Me=ze[I]),cr(Me)||Oi(Me)||Te(Me))return!0}return!1},()=>[I],"translate exists",de=>Reflect.apply(de.te,de,[I,K]),Ly,de=>qe(de))}function B(I){let K=null;const de=E1(M,l.value,o.value);for(let ye=0;ye<de.length;ye++){const Ee=c.value[de[ye]]||{},ze=M.messageResolver(Ee,I);if(ze!=null){K=ze;break}}return K}function Z(I){const K=B(I);return K??(t?t.tm(I)||{}:{})}function z(I){return c.value[I]||{}}function oe(I,K){if(s){const de={[I]:K};for(const ye in de)Ii(de,ye)&&zo(de[ye]);K=de[I]}c.value[I]=K,M.messages=c.value}function he(I,K){c.value[I]=c.value[I]||{};const de={[I]:K};if(s)for(const ye in de)Ii(de,ye)&&zo(de[ye]);K=de[I],Wl(K,c.value[I]),M.messages=c.value}function ue(I){return u.value[I]||{}}function w(I,K){u.value[I]=K,M.datetimeFormats=u.value,A2(M,I,K)}function C(I,K){u.value[I]=Vt(u.value[I]||{},K),M.datetimeFormats=u.value,A2(M,I,K)}function V(I){return h.value[I]||{}}function H(I,K){h.value[I]=K,M.numberFormats=h.value,M2(M,I,K)}function L(I,K){h.value[I]=Vt(h.value[I]||{},K),M.numberFormats=h.value,M2(M,I,K)}N2++,t&&h0&&(Fe(t.locale,I=>{a&&(o.value=I,M.locale=I,eo(M,o.value,l.value))}),Fe(t.fallbackLocale,I=>{a&&(l.value=I,M.fallbackLocale=I,eo(M,o.value,l.value))}));const E={id:N2,locale:O,fallbackLocale:R,get inheritLocale(){return a},set inheritLocale(I){a=I,I&&t&&(o.value=t.locale.value,l.value=t.fallbackLocale.value,eo(M,o.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:N,get modifiers(){return k},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(I){d=I,M.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(I){f=I,M.fallbackWarn=f},get fallbackRoot(){return g},set fallbackRoot(I){g=I},get fallbackFormat(){return _},set fallbackFormat(I){_=I,M.fallbackFormat=_},get warnHtmlMessage(){return m},set warnHtmlMessage(I){m=I,M.warnHtmlMessage=I},get escapeParameter(){return v},set escapeParameter(I){v=I,M.escapeParameter=I},t:_e,getLocaleMessage:z,setLocaleMessage:oe,mergeLocaleMessage:he,getPostTranslationHandler:q,setPostTranslationHandler:ie,getMissingHandler:ee,setMissingHandler:re,[l4]:pe};return E.datetimeFormats=T,E.numberFormats=W,E.rt=me,E.te=Ae,E.tm=Z,E.d=ge,E.n=$e,E.getDateTimeFormat=ue,E.setDateTimeFormat=w,E.mergeDateTimeFormat=C,E.getNumberFormat=V,E.setNumberFormat=H,E.mergeNumberFormat=L,E[c4]=i,E[N1]=D,E[H1]=ne,E[P1]=G,E}function xy(e){const t=Te(e.locale)?e.locale:Fo,i=Te(e.fallbackLocale)||Mt(e.fallbackLocale)||je(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=mt(e.missing)?e.missing:void 0,s=qe(e.silentTranslationWarn)||bn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,n=qe(e.silentFallbackWarn)||bn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=qe(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,l=je(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=mt(e.postTranslation)?e.postTranslation:void 0,h=Te(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,f=qe(e.sync)?e.sync:!0;let g=e.messages;if(je(e.sharedMessages)){const k=e.sharedMessages;g=Object.keys(k).reduce((M,F)=>{const P=M[F]||(M[F]={});return Vt(P,k[F]),M},g||{})}const{__i18n:_,__root:A,__injectWithOption:p}=e,S=e.datetimeFormats,m=e.numberFormats,v=e.flatJson;return{locale:t,fallbackLocale:i,messages:g,flatJson:v,datetimeFormats:S,numberFormats:m,missing:r,missingWarn:s,fallbackWarn:n,fallbackRoot:a,fallbackFormat:o,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:f,__i18n:_,__root:A,__injectWithOption:p}}function I1(e={}){const t=Eh(xy(e)),{__extender:i}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return qe(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=qe(s)?!s:s},get silentFallbackWarn(){return qe(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=qe(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,n){return t.te(s,n)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,n){t.setLocaleMessage(s,n)},mergeLocaleMessage(s,n){t.mergeLocaleMessage(s,n)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,n){t.setDateTimeFormat(s,n)},mergeDateTimeFormat(s,n){t.mergeDateTimeFormat(s,n)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,n){t.setNumberFormat(s,n)},mergeNumberFormat(s,n){t.mergeNumberFormat(s,n)}};return r.__extender=i,r}function $y(e,t,i){return{beforeCreate(){const r=Uo();if(!r)throw xi(Si.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const n=s.i18n;if(s.__i18n&&(n.__i18n=s.__i18n),n.__root=t,this===this.$root)this.$i18n=P2(e,n);else{n.__injectWithOption=!0,n.__extender=i.__vueI18nExtend,this.$i18n=I1(n);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=P2(e,s);else{this.$i18n=I1({__i18n:s.__i18n,__injectWithOption:!0,__extender:i.__vueI18nExtend,__root:t});const n=this.$i18n;n.__extender&&(n.__disposer=n.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&h4(t,s,s),this.$t=(...n)=>this.$i18n.t(...n),this.$rt=(...n)=>this.$i18n.rt(...n),this.$te=(n,a)=>this.$i18n.te(n,a),this.$d=(...n)=>this.$i18n.d(...n),this.$n=(...n)=>this.$i18n.n(...n),this.$tm=n=>this.$i18n.tm(n),i.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Uo();if(!r)throw xi(Si.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),i.__deleteInstance(r),delete this.$i18n}}}function P2(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[l4](t.pluralizationRules||e.pluralizationRules);const i=Lh(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(i).forEach(r=>e.mergeLocaleMessage(r,i[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const xh={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ty({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===be?s.children:[s]],[]):t.reduce((i,r)=>{const s=e[r];return s&&(i[r]=s()),i},ot())}function d4(){return be}const Ny=Oe({name:"i18n-t",props:Vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ht(e)||!isNaN(e)}},xh),setup(e,t){const{slots:i,attrs:r}=t,s=e.i18n||$h({useScope:e.scope,__useComponent:!0});return()=>{const n=Object.keys(i).filter(h=>h[0]!=="_"),a=ot();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Te(e.plural)?+e.plural:e.plural);const o=Ty(t,n),l=s[N1](e.keypath,o,a),c=Vt(ot(),r),u=Te(e.tag)||it(e.tag)?e.tag:d4();return ke(u,c,l)}}}),O2=Ny;function Hy(e){return Mt(e)&&!Te(e[0])}function f4(e,t,i,r){const{slots:s,attrs:n}=t;return()=>{const a={part:!0};let o=ot();e.locale&&(a.locale=e.locale),Te(e.format)?a.key=e.format:it(e.format)&&(Te(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((d,f)=>i.includes(f)?Vt(ot(),d,{[f]:e.format[f]}):d,ot()));const l=r(e.value,a,o);let c=[a.key];Mt(l)?c=l.map((d,f)=>{const g=s[d.type],_=g?g({[d.type]:d.value,index:f,parts:l}):[d.value];return Hy(_)&&(_[0].key=`${d.type}-${f}`),_}):Te(l)&&(c=[l]);const u=Vt(ot(),n),h=Te(e.tag)||it(e.tag)?e.tag:d4();return ke(h,u,c)}}const Py=Oe({name:"i18n-n",props:Vt({value:{type:Number,required:!0},format:{type:[String,Object]}},xh),setup(e,t){const i=e.i18n||$h({useScope:e.scope,__useComponent:!0});return f4(e,t,n4,(...r)=>i[P1](...r))}}),I2=Py;function Oy(e,t){const i=e;if(e.mode==="composition")return i.__getInstance(t)||e.global;{const r=i.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Iy(e){const t=a=>{const{instance:o,value:l}=a;if(!o||!o.$)throw xi(Si.UNEXPECTED_ERROR);const c=Oy(e,o.$),u=R2(l);return[Reflect.apply(c.t,c,[...D2(u)]),c]};return{created:(a,o)=>{const[l,c]=t(o);h0&&(a.__i18nWatcher=Fe(c.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{h0&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const l=a.__composer,c=R2(o);a.textContent=Reflect.apply(l.t,l,[...D2(c)])}},getSSRProps:a=>{const[o]=t(a);return{textContent:o}}}}function R2(e){if(Te(e))return{path:e};if(je(e)){if(!("path"in e))throw xi(Si.REQUIRED_VALUE,"path");return e}else throw xi(Si.INVALID_VALUE)}function D2(e){const{path:t,locale:i,args:r,choice:s,plural:n}=e,a={},o=r||{};return Te(i)&&(a.locale=i),Ht(s)&&(a.plural=s),Ht(n)&&(a.plural=n),[t,o,a]}function Ry(e,t,...i){const r=je(i[0])?i[0]:{};(qe(r.globalInstall)?r.globalInstall:!0)&&([O2.name,"I18nT"].forEach(n=>e.component(n,O2)),[I2.name,"I18nN"].forEach(n=>e.component(n,I2)),[B2.name,"I18nD"].forEach(n=>e.component(n,B2))),e.directive("t",Iy(t))}const Dy=ms("global-vue-i18n");function Vy(e={}){const t=__VUE_I18N_LEGACY_API__&&qe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=qe(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,n]=By(e,t),a=ms("");function o(h){return r.get(h)||null}function l(h,d){r.set(h,d)}function c(h){r.delete(h)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(h,...d){if(h.__VUE_I18N_SYMBOL__=a,h.provide(h.__VUE_I18N_SYMBOL__,u),je(d[0])){const _=d[0];u.__composerExtend=_.__composerExtend,u.__vueI18nExtend=_.__vueI18nExtend}let f=null;!t&&i&&(f=qy(h,u.global)),__VUE_I18N_FULL_INSTALL__&&Ry(h,u,...d),__VUE_I18N_LEGACY_API__&&t&&h.mixin($y(n,n.__composer,u));const g=h.unmount;h.unmount=()=>{f&&f(),u.dispose(),g()}},get global(){return n},dispose(){s.stop()},__instances:r,__getInstance:o,__setInstance:l,__deleteInstance:c};return u}function $h(e={}){const t=Uo();if(t==null)throw xi(Si.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw xi(Si.NOT_INSTALLED);const i=Zy(t),r=zy(i),s=u4(t),n=Fy(e,s);if(n==="global")return h4(r,e,s),r;if(n==="parent"){let l=Uy(i,t,e.__useComponent);return l==null&&(l=r),l}const a=i;let o=a.__getInstance(t);if(o==null){const l=Vt({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),o=Eh(l),a.__composerExtend&&(o[O1]=a.__composerExtend(o)),jy(a,t,o),a.__setInstance(t,o)}return o}function By(e,t){const i=oh(),r=__VUE_I18N_LEGACY_API__&&t?i.run(()=>I1(e)):i.run(()=>Eh(e));if(r==null)throw xi(Si.UNEXPECTED_ERROR);return[i,r]}function Zy(e){const t=ii(e.isCE?Dy:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw xi(e.isCE?Si.NOT_INSTALLED_WITH_PROVIDE:Si.UNEXPECTED_ERROR);return t}function Fy(e,t){return Y0(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function zy(e){return e.mode==="composition"?e.global:e.global.__composer}function Uy(e,t,i=!1){let r=null;const s=t.root;let n=Wy(t,i);for(;n!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(n);else if(__VUE_I18N_LEGACY_API__){const o=a.__getInstance(n);o!=null&&(r=o.__composer,i&&r&&!r[c4]&&(r=null))}if(r!=null||s===n)break;n=n.parent}return r}function Wy(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function jy(e,t,i){ft(()=>{},t),Br(()=>{const r=i;e.__deleteInstance(t);const s=r[O1];s&&(s(),delete r[O1])},t)}const Ky=["locale","fallbackLocale","availableLocales"],V2=["t","rt","d","n","tm","te"];function qy(e,t){const i=Object.create(null);return Ky.forEach(s=>{const n=Object.getOwnPropertyDescriptor(t,s);if(!n)throw xi(Si.UNEXPECTED_ERROR);const a=gt(n.value)?{get(){return n.value.value},set(o){n.value.value=o}}:{get(){return n.get&&n.get()}};Object.defineProperty(i,s,a)}),e.config.globalProperties.$i18n=i,V2.forEach(s=>{const n=Object.getOwnPropertyDescriptor(t,s);if(!n||!n.value)throw xi(Si.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,n)}),()=>{delete e.config.globalProperties.$i18n,V2.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Gy=Oe({name:"i18n-d",props:Vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xh),setup(e,t){const i=e.i18n||$h({useScope:e.scope,__useComponent:!0});return f4(e,t,s4,(...r)=>i[H1](...r))}}),B2=Gy;My();ny(Bb);ay(iy);oy(E1);if(__INTLIFY_PROD_DEVTOOLS__){const e=Is();e.__INTLIFY__=!0,Zb(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Yy="(prefers-reduced-motion: reduce)";function _4(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Yy).matches}var R1="data-nb-tour-step",Xy=Symbol("nb-command-palette");function Jy(){let e=Ws(new Map),t=Q(!1),i=Q(void 0),r=Q(void 0);function s(u){e.set(u.id,u)}function n(u){for(let h of u)e.set(h.id,h)}function a(u){e.delete(u)}function o(u){r.value=u,t.value=!0}function l(){t.value=!1,r.value=void 0}function c(u){i.value=u}return Ws({commands:e,isOpen:t,activeContext:i,searchFilter:r,register:s,registerMany:n,unregister:a,open:o,close:l,setContext:c})}var ut=(e,t)=>{let i=e.__vccOpts||e;for(let[r,s]of t)i[r]=s;return i},Z2=Object.defineProperty,Q0=(e,t)=>{let i={};for(var r in e)Z2(i,r,{get:e[r],enumerable:!0});return Z2(i,Symbol.toStringTag,{value:"Module"}),i},Qy=Q0({default:()=>e7});function e7(e){e.directive("nb-context-menu",{mounted(t,i){let r=s=>{s.preventDefault(),typeof i.value=="function"&&i.value({x:s.clientX,y:s.clientY})};t.__nbContextMenuHandler__=r,t.addEventListener("contextmenu",r)},updated(t,i){t.__nbContextMenuHandler__&&t.removeEventListener("contextmenu",t.__nbContextMenuHandler__);let r=s=>{s.preventDefault(),typeof i.value=="function"&&i.value({x:s.clientX,y:s.clientY})};t.__nbContextMenuHandler__=r,t.addEventListener("contextmenu",r)},unmounted(t){t.__nbContextMenuHandler__&&(t.removeEventListener("contextmenu",t.__nbContextMenuHandler__),delete t.__nbContextMenuHandler__)}})}var t7=Q0({devWarn:()=>fs,renderTooltipContent:()=>jl}),F2=new Set(["span","div","p","b","strong","em","i","u","s","small","code","kbd","br","ul","ol","li"]),i7=new Set(["br"]),z2=new Set(["class","style","dir","lang"]),r7=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),s7=new Set("color.background-color.font-family.font-size.font-style.font-variant.font-weight.letter-spacing.line-height.text-align.text-decoration.text-transform.white-space.word-break.overflow-wrap.opacity.display.flex-direction.align-items.justify-content.gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.max-width.min-width.border-radius".split(".")),n7=/url\(|image-set\(|expression\(|javascript:|@import|\\/i,a7=/^[A-Za-z_-][A-Za-z0-9_-]*$/,o7=e=>e.split(";").map(t=>{let i=t.indexOf(":");if(i<0)return"";let r=t.slice(0,i).trim().toLowerCase(),s=t.slice(i+1).trim();return!r||!s?"":s7.has(r)?n7.test(s)?(fs(`style-value:${r}`,`The value of "${r}" was dropped: tooltip content may not load a resource or call a CSS function that does.`),""):`${r}: ${s}`:(fs(`style:${r}`,`"${r}" is not an allowed tooltip content style property and was dropped.`),"")}).filter(Boolean).join("; "),l7=e=>e.split(/\s+/).filter(t=>t?a7.test(t)?!0:(fs(`class:${t}`,`"${t}" is not a valid class token for tooltip content and was dropped.`),!1):!1).join(" "),c7=(e,t)=>e==="style"?o7(t):e==="class"?l7(t):t,u7=new Set(["b","strong","em","i","u","s","small","code","kbd","br","p"]),h7={"<":"<",">":">",'"':""","'":"'"},U2=e=>e.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]{1,10}|#\d{1,7}|#[xX][0-9a-fA-F]{1,6});)/g,"&").replace(/[<>"']/g,t=>h7[t]),p4=e=>e.split(/(<[^<>]*>)/g).map(t=>{var i;if(t.startsWith("<")&&t.endsWith(">")){let r=/^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9]*)\s*\/?\s*>$/.exec(t),s=(i=r==null?void 0:r[2])==null?void 0:i.toLowerCase();return s&&u7.has(s)?`<${r[1]}${s}>`:(s&&fs(`string-tag:${s}`,`<${s}> is not allowed in a tooltip string and was shown as text. Use the structured content form for anything richer.`),U2(t))}return U2(t).replace(/\n/g,"<br>")}).join(""),W2=new Set,fs=(e,t)=>{typeof process<"u"||W2.has(e)||(W2.add(e),console.warn(`[nb-tooltip] ${t}`))},D1=e=>{if(Array.isArray(e))return e.map(u=>D1(u)).join("");if(!e||typeof e!="object"||!e.component)return"";let{component:t,props:i={},children:r,content:s}=e,n=r===void 0?s:r,a=Array.isArray(n)?D1(n):n===void 0?"":p4(String(n)),o=String(t).toLowerCase();if(!F2.has(o))return fs(`tag:${o}`,`<${o}> is not allowed in tooltip content and was dropped. Allowed tags: ${[...F2].join(", ")}.`),a;let l=Object.entries(i).filter(([u])=>z2.has(u)?!0:(fs(`prop:${u}`,`"${u}" is not an allowed tooltip content prop and was dropped. Allowed props: ${[...z2].join(", ")}.`),!1)).map(([u,h])=>[u,c7(u,String(h))]).filter(([,u])=>u!=="").map(([u,h])=>`${u}="${r7(h)}"`).join(" "),c=`<${o}${l?` ${l}`:""}>`;return i7.has(o)?c:`${c}${a}</${o}>`},jl=e=>e?typeof e=="string"?p4(e):Array.isArray(e)?D1(e):"":"",d7=Q0({default:()=>D7,dismissAllTooltips:()=>U7}),Th=e=>e.status??e.flavor??"default",Nh=e=>e.chipClass??e.classExtra,ur=new Set,f7=0,_7=()=>`nb-tooltip-${++f7}`,p7=900,m4=4e3,m7=500,g4=0,V1=(e,t)=>{if(!e)return!1;let i=Date.now()-e;return i>=0&&i<t},j2=!1,g7=()=>{if(j2||typeof document>"u")return;j2=!0;let e=t=>{if(ur.size===0)return;let i=t==null?void 0:t.target;i instanceof Element&&i.closest(".nb-tooltip")||z7("dismiss")};document.addEventListener("pointerdown",()=>{g4=Date.now()},!0),document.addEventListener("dragstart",()=>e(),!0),document.addEventListener("keydown",t=>{t.key==="Escape"&&e()},!0),document.addEventListener("pointerdown",e,!0),window.addEventListener("blur",e),document.addEventListener("mouseleave",e)},K2=200,q2=1e3,v7=2,b7=e=>{let t=e.tooltipElement;if(!t)return!1;if(t.__hovered__)return!0;try{return t.isConnected&&t.matches(":hover")}catch{return!1}},y7=e=>{if(!e.isConnected)return!1;if(b7(e)||e.__trigger__==="focus"&&e.contains(document.activeElement)||e.__trigger__==="touch"&&V1(e.__lastTouchAt__,m4))return!0;try{return e.matches(":hover")}catch{return!0}},B1=e=>{clearTimeout(e.__watchdogTimer__),e.__watchdogTimer__=void 0,e.__watchdogMisses__=0},w7=e=>{B1(e);let t=()=>{var i;if(!((i=e.__chips__)!=null&&i.size)){B1(e);return}if(y7(e))e.__watchdogMisses__=0;else{if(e.__watchdogMisses__=(e.__watchdogMisses__??0)+1,!e.isConnected){cn(e,!0,"program");return}if(e.__watchdogMisses__>=v7){Oh(e,"dismiss");return}}e.__watchdogTimer__=setTimeout(t,q2)};e.__watchdogTimer__=setTimeout(t,q2)},hr=new Set,os=null,v4=e=>`${Math.round(e.top)}:${Math.round(e.left)}:${Math.round(e.width)}:${Math.round(e.height)}`,S7=e=>{if(typeof getComputedStyle!="function")return!1;let t;try{t=getComputedStyle(e)}catch{return!1}let i=`${t.overflow} ${t.overflowX} ${t.overflowY}`;return/hidden|scroll|auto|clip|overlay/.test(i)},C7=e=>{let t=[],i=e.parentElement;for(;i&&i!==document.body&&i!==document.documentElement;)S7(i)&&t.push(i),i=i.parentElement;return t},Z1=e=>!(e.width===0&&e.height===0&&e.top===0&&e.left===0),A7=(e,t)=>{if(!e.isConnected)return!1;if(!Z1(t))return!0;if(t.width===0||t.height===0||!(t.bottom>0&&t.right>0&&t.top<window.innerHeight&&t.left<window.innerWidth))return!1;for(let i of e.__clippers__??[]){if(!i.isConnected)continue;let r=i.getBoundingClientRect();if(Z1(r)&&(t.bottom<=r.top||t.top>=r.bottom||t.right<=r.left||t.left>=r.right))return!1}return!0},b4=e=>{var r;let t=e.tooltipElement;if(!t||!((r=e.__chips__)!=null&&r.size)){hr.delete(e);return}let i=e.getBoundingClientRect();if(!A7(e,i)){e.__offscreenReported__||(e.__offscreenReported__=!0,Oh(e,"dismiss"));return}e.__offscreenReported__=!1,e.__lastRect__=v4(i),e.__side__!=="cursor"&&cl(e,t,e.__requestedSide__??e.__side__)},f0=()=>{w4();for(let e of Array.from(hr))b4(e)},k7=100,M7=320,G2=0,y4=0,w4=()=>{y4=Date.now()+M7},F1=()=>{if(hr.size===0){os=null;return}let e=Date.now();if(e>=y4&&e-G2<k7){os=requestAnimationFrame(F1);return}G2=e;for(let t of Array.from(hr)){if(!t.tooltipElement){hr.delete(t);continue}v4(t.getBoundingClientRect())!==t.__lastRect__&&(w4(),b4(t))}os=requestAnimationFrame(F1)},_0=!1,L7=e=>{hr.add(e),e.__lastRect__=void 0,e.__clippers__=C7(e),!(typeof window>"u")&&(_0||(_0=!0,document.addEventListener("scroll",f0,{capture:!0,passive:!0}),window.addEventListener("resize",f0,{passive:!0})),os===null&&typeof requestAnimationFrame=="function"&&(os=requestAnimationFrame(F1)))},Hh=e=>{hr.delete(e),e.__lastRect__=void 0,e.__clippers__=void 0,!(hr.size>0||typeof window>"u")&&(_0&&(_0=!1,document.removeEventListener("scroll",f0,{capture:!0}),window.removeEventListener("resize",f0)),os!==null&&typeof cancelAnimationFrame=="function"&&(cancelAnimationFrame(os),os=null))},E7=(e,t,i)=>{var r;if((r=e.__chips__)==null||r.delete(t),clearTimeout(t.__removeTimer__),t.__removeTimer__=void 0,i||_4()){t.remove();return}t.style.animation=`tooltipDisappear ${K2}ms ease-in-out forwards`,t.__removeTimer__=setTimeout(()=>{t.__removeTimer__=void 0,t.remove()},K2)},S4=(e,t)=>{if(Hh(e),e.__trigger__=void 0,e.__side__=void 0,e.__chips__)for(let i of Array.from(e.__chips__))E7(e,i,t);e.tooltipElement=void 0,e.__lastContent__=void 0,B1(e)},C4="a[href], button, input, select, textarea, summary, [tabindex]",z1="data-nb-tooltip-anchor",Y2=(e,t)=>{let i=t.target;if(!(i instanceof Element)||i===e)return!0;let r=i.closest(`[${z1}]`);return r===null||r===e},Lo=e=>{if(!e)return"";if(typeof e=="string")return e.replace(/<[^>]*>/g," ").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/\s+/g," ").trim();if(Array.isArray(e))return e.map(t=>Lo(t)).filter(Boolean).join(" ");if(typeof e=="object"){let t=e;return Lo(t.children??t.content)}return""},A4=e=>[Lo(e.header),Lo(e.body),Lo(e.tip)].filter(Boolean).join(". "),x7=e=>{if(e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")&&!e.__ownsAriaLabel__||e.hasAttribute("title")||(e.textContent??"").trim().length>0)return!0;let t=e.querySelector("img[alt]");return!!t&&(t.getAttribute("alt")??"").trim().length>0},k4=(e,t)=>{let i=t.aria??"auto";return i==="auto"?x7(e)?"description":"label":i},$7=(e,t)=>{if(!t||k4(e,t)!=="label"){e.__ownsAriaLabel__&&(e.__ownsAriaLabel__=(e.removeAttribute("aria-label"),!1)),e.__ownsRole__&&(e.__ownsRole__=(e.removeAttribute("role"),!1));return}let i=A4(t);i&&(e.setAttribute("aria-label",i),e.__ownsAriaLabel__=!0,!e.__ownsRole__&&!e.hasAttribute("role")&&!e.matches(C4)&&(e.setAttribute("role","img"),e.__ownsRole__=!0))},Oc=(e,t)=>{let i=!!(t!=null&&t.focusable);if(i&&!e.__ownsTabIndex__){if(e.matches(C4)||e.hasAttribute("tabindex"))return;e.setAttribute("tabindex","0"),e.__ownsTabIndex__=!0;return}!i&&e.__ownsTabIndex__&&(e.removeAttribute("tabindex"),e.__ownsTabIndex__=!1)},T7=(e,t)=>{e.__prevDescribedBy__=e.getAttribute("aria-describedby");let i=[e.__prevDescribedBy__,t].filter(Boolean).join(" ");e.setAttribute("aria-describedby",i)},N7=e=>{e.__prevDescribedBy__!==void 0&&(e.__prevDescribedBy__?e.setAttribute("aria-describedby",e.__prevDescribedBy__):e.removeAttribute("aria-describedby"),e.__prevDescribedBy__=void 0)},H7="nb-tooltip-description",M4=e=>!!e&&!!(e.body||e.header||e.tip),P7=(e,t)=>{if(typeof document>"u")return;let i=t&&M4(t)&&k4(e,t)==="description"?A4(t):"";if(!i){L4(e);return}let r=e.__descNode__;r||(r=document.createElement("span"),r.className=H7,r.id=_7(),r.setAttribute("role","tooltip"),document.body.appendChild(r),e.__descNode__=r,T7(e,r.id)),e.__descText__!==i&&(r.textContent=i,e.__descText__=i)},L4=e=>{e.__descNode__&&(N7(e),e.__descNode__.remove(),e.__descNode__=void 0,e.__descText__=void 0)},O7=(e,t)=>{if(M4(t)){e.__prevTitle__===void 0&&e.hasAttribute("title")&&(e.__prevTitle__=e.getAttribute("title")??"",e.removeAttribute("title"));return}E4(e)},E4=e=>{e.__prevTitle__!==void 0&&(e.hasAttribute("title")||e.setAttribute("title",e.__prevTitle__),e.__prevTitle__=void 0)},Ic=(e,t)=>{O7(e,t),$7(e,t),P7(e,t)},I7=e=>{var t,i;return e.disabled===!0?!0:!!((t=e.closest)!=null&&t.call(e,"fieldset[disabled]"))&&!((i=e.closest)!=null&&i.call(e,"fieldset[disabled] > legend:first-of-type"))},R7=(e,t,i)=>t>=e.left&&t<=e.right&&i>=e.top&&i<=e.bottom,x4=e=>{let t=e.__proxyHost__;t&&(e.__proxyMove__&&t.removeEventListener("mousemove",e.__proxyMove__),e.__proxyLeave__&&t.removeEventListener("mouseleave",e.__proxyLeave__),e.__proxyHost__=void 0,e.__proxyMove__=void 0,e.__proxyLeave__=void 0,e.__proxyInside__=!1)},X2=e=>{let t=e.__tooltipBinding__&&I7(e)?e.parentElement:null;e.__proxyHost__!==t&&(x4(e),t&&(e.__proxyMove__=i=>{var n,a,o;let r=i;if(r.buttons)return;let s=e.getBoundingClientRect();if(Z1(s)?R7(s,r.clientX,r.clientY):i.target===e||e.contains(i.target)){e.__mouseX__=r.clientX,e.__mouseY__=r.clientY,e.__proxyInside__?(n=e.__tooltipBinding__)!=null&&n.followCursor&&cl(e,e.tooltipElement,e.__requestedSide__):(e.__proxyInside__=!0,(a=e.__showTooltip__)==null||a.call(e,"pointer"));return}e.__proxyInside__&&(e.__proxyInside__=!1,(o=e.__hideTooltip__)==null||o.call(e,void 0,"pointer"))},e.__proxyLeave__=()=>{var i;e.__proxyInside__&&(e.__proxyInside__=!1,(i=e.__hideTooltip__)==null||i.call(e,void 0,"pointer"))},t.addEventListener("mousemove",e.__proxyMove__),t.addEventListener("mouseleave",e.__proxyLeave__),e.__proxyHost__=t))},J2=e=>{e.onOpenChange||fs("controlled-no-handler","a tooltip was given `open` but no `onOpenChange`, so nothing the user does (hover, blur, Escape) can change it. Either handle `onOpenChange` or drop `open` and let the directive own visibility.")},Q2=(e,t)=>{var r,s;if(!t)return;let i=t.open===void 0?e.__openState__===void 0&&t.defaultOpen?!0:void 0:t.open;i!==void 0&&i!==(e.__openState__===!0||!!e.__showTimer__)&&(i?(r=e.__showTooltip__)==null||r.call(e,"program"):(s=e.__hideTooltip__)==null||s.call(e,0,"program"))},D7=e=>{g7();let t=e.config.globalProperties.$router;t&&t.beforeEach(()=>{ur.forEach(i=>{var r;return(r=i==null?void 0:i.__hideTooltip__)==null?void 0:r.call(i,0,"program")}),ur.clear()}),e.directive("nb-tooltip",{mounted(i,r){i.__showTooltip__=(s="pointer")=>{var a;let n=i.__tooltipBinding__;if(n){if(n.open!==void 0&&s!=="program"){J2(n),(a=n.onOpenChange)==null||a.call(n,!0,s);return}clearTimeout(i.__hideTimer__),i.__hideTimer__=void 0,V7(i,n,s)}},i.__hideTooltip__=(s=(a=>(a=i.__tooltipBinding__)==null?void 0:a.hideDelay)()??150,n="dismiss")=>{var l;let o=i.__tooltipBinding__;if((o==null?void 0:o.open)!==void 0&&n!=="program"){J2(o),(l=o.onOpenChange)==null||l.call(o,!1,n);return}if(clearTimeout(i.__hideTimer__),s<=0){i.__hideTimer__=void 0,cn(i,!0,n);return}i.__hideTimer__=setTimeout(()=>{i.__hideTimer__=void 0,cn(i,s<=0,n)},s)},i.__mouseMove__=s=>{var n,a;i.__mouseX__=s.clientX,i.__mouseY__=s.clientY,(n=i.__tooltipBinding__)!=null&&n.followCursor&&cl(i,i.tooltipElement,(a=i.__tooltipBinding__)==null?void 0:a.position)},i.__tooltipBinding__=r.value,i.__showHandler__=s=>{var a;if(V1(i.__lastTouchAt__,p7))return;let n=s;n.buttons||(typeof n.clientX=="number"&&(n.clientX||n.clientY)&&(i.__mouseX__=n.clientX,i.__mouseY__=n.clientY),(a=i.__showTooltip__)==null||a.call(i,"pointer"))},i.__hideHandler__=()=>{var s;return(s=i.__hideTooltip__)==null?void 0:s.call(i,void 0,"pointer")},i.__focusHandler__=s=>{var n;V1(g4,m7)||Y2(i,s)&&((n=i.__showTooltip__)==null||n.call(i,"focus"))},i.__blurHandler__=()=>{var s;return(s=i.__hideTooltip__)==null?void 0:s.call(i,void 0,"focus")},i.__touchHandler__=s=>{var n,a,o;((n=i.__tooltipBinding__)==null?void 0:n.touch)!==!1&&Y2(i,s)&&(i.__lastTouchAt__=Date.now(),(a=i.__showTooltip__)==null||a.call(i,"touch"),(o=i.__hideTooltip__)==null||o.call(i,m4,"touch"))},Oc(i,r.value),Ic(i,r.value),i.setAttribute(z1,""),i.addEventListener("mouseenter",i.__showHandler__),i.addEventListener("mouseleave",i.__hideHandler__),i.addEventListener("mousemove",i.__mouseMove__),i.addEventListener("focusin",i.__focusHandler__),i.addEventListener("focusout",i.__blurHandler__),i.addEventListener("touchstart",i.__touchHandler__,{passive:!0}),X2(i),Q2(i,r.value)},updated(i,r){let s=i.__tooltipBinding__;if(i.__tooltipBinding__=r.value,!r.value){Ic(i,void 0),Oc(i,void 0),cn(i,!0);return}if(s!==r.value&&(Ic(i,r.value),Oc(i,r.value)),X2(i),Q2(i,r.value),!i.tooltipElement||s===r.value)return;let n=T4(r.value);n!==i.__lastContent__&&(i.__lastContent__=n,B7(i,r.value))},unmounted(i){clearTimeout(i.__showTimer__),i.__showTimer__=void 0,clearTimeout(i.__hideTimer__),i.__hideTimer__=void 0,cn(i,!0),ur.delete(i),i.__showHandler__&&i.removeEventListener("mouseenter",i.__showHandler__),i.__hideHandler__&&i.removeEventListener("mouseleave",i.__hideHandler__),i.__focusHandler__&&i.removeEventListener("focusin",i.__focusHandler__),i.__blurHandler__&&i.removeEventListener("focusout",i.__blurHandler__),i.__touchHandler__&&i.removeEventListener("touchstart",i.__touchHandler__),L4(i),E4(i),i.__ownsAriaLabel__&&(i.__ownsAriaLabel__=(i.removeAttribute("aria-label"),!1)),i.__ownsTabIndex__&&(i.__ownsTabIndex__=(i.removeAttribute("tabindex"),!1)),i.__ownsRole__&&(i.__ownsRole__=(i.removeAttribute("role"),!1)),i.removeAttribute(z1),x4(i),i.__mouseMove__&&i.removeEventListener("mousemove",i.__mouseMove__),Hh(i)}})},Ph=({header:e="",body:t="",tip:i=""})=>`<div class="nb-tooltip-content"><div class="nb-tooltip-header">${jl(e)}</div><div class="nb-tooltip-body">${jl(t)}</div><div class="nb-tooltip-tip">${jl(i)}</div></div>`,$4=(e,t,i)=>["nb-tooltip",`nb-tooltip-${e}`,t?`nb-tooltip-flavor-${t}`:"",i||""].filter(Boolean).join(" "),T4=e=>`${e.position??""}|${Th(e)}|${Nh(e)??""}|${Ph(e)}`,V7=(e,t,i="pointer")=>{let{header:r,body:s,tip:n,delay:a=400,animationTime:o=300,position:l,overflowOnly:c}=t,u=Th(t),h=Nh(t);if(clearTimeout(e.__showTimer__),e.__showTimer__=void 0,S4(e,!0),c){let g=e.getBoundingClientRect();if(!(Math.round(g.width)<Math.round(e.scrollWidth)))return}if(!(s||r||n))return;let d=i==="pointer"?a:0,f=_4();e.__showTimer__=setTimeout(()=>{var p;if(e.__showTimer__=void 0,!e.isConnected)return;let g=i==="pointer"?l??"cursor":l&&l!=="cursor"?l:"top";for(let S of Array.from(hr))S!==e&&Oh(S,"superseded");let _=document.createElement("span");_.className=$4(g,u,h),_.innerHTML=Ph({header:r,body:s,tip:n}),_.addEventListener("mouseenter",()=>{_.__hovered__=!0,clearTimeout(e.__hideTimer__),e.__hideTimer__=void 0,e.__watchdogMisses__=0}),_.addEventListener("mouseleave",()=>{var S;_.__hovered__=!1,(S=e.__hideTooltip__)==null||S.call(e)}),f?_.style.opacity="1":(_.style.transition=`opacity ${o}ms ease-in-out`,_.style.animation=`tooltipAppear ${o}ms ease-in-out forwards`),_.setAttribute("aria-hidden","true"),e.__trigger__=i,e.tooltipElement=_,(e.__chips__??(e.__chips__=new Set)).add(_),e.__lastContent__=T4(t),ur.add(e),document.body.appendChild(_),e.__requestedSide__=g,e.__side__=g,cl(e,_,g),L7(e),w7(e);let A=e.__openState__===!0;e.__openState__=!0,A||((p=t.onOpenChange)==null||p.call(t,!0,i))},d)},Oh=(e,t,i=!0)=>{if(e.__hideTooltip__){e.__hideTooltip__(i?0:void 0,t);return}cn(e,i,t)},cn=(e,t=!1,i="dismiss")=>{var s,n;clearTimeout(e.__showTimer__),e.__showTimer__=void 0;let r=e.__openState__===!0;S4(e,t),ur.delete(e),e.__requestedSide__=void 0,r&&(e.__openState__=!1,(n=(s=e.__tooltipBinding__)==null?void 0:s.onOpenChange)==null||n.call(s,!1,i))},B7=(e,t)=>{let{header:i,body:r,tip:s,position:n}=t,a=Th(t),o=Nh(t),l=e.__requestedSide__??e.__side__??n,c=e.tooltipElement;c&&(c.innerHTML=Ph({header:i,body:r,tip:s}),c.className=$4(e.__side__??l??"cursor",a,o),cl(e,c,l))};function Z7(e,t,i,r,s,n,a){switch(e){case"top":return{top:t.top-(r+s*2),left:t.left+t.width/2-(i/2+s/2)};case"bottom":return{top:t.bottom+s,left:t.left+t.width/2-(i/2+s/2)};case"left":return{top:t.top+t.height/2-r/2,left:t.left-(i+s*2)};case"right":return{top:t.top+t.height/2-r/2,left:t.right+s};default:return{top:a+ef,left:n+ef}}}var ef=14;function tf(e,t,i,r,s){return t>=s&&e>=s&&t+i<=window.innerWidth-s&&e+r<=window.innerHeight-s}var F7={top:["bottom","right","left"],bottom:["top","right","left"],left:["right","top","bottom"],right:["left","top","bottom"],cursor:[]},cl=(e,t,i)=>{if(!t)return;let r=e.getBoundingClientRect(),s=t.getBoundingClientRect(),n=s.width||0,a=s.height||0,o=e.__mouseX__??0,l=e.__mouseY__??0,c=i??"cursor",u=_=>Z7(_,r,n,a,4,o,l),h=u(c),d=c;if(n>0&&a>0&&!tf(h.top,h.left,n,a,16))for(let _ of F7[c]){let A=u(_);if(tf(A.top,A.left,n,a,16)){h=A,d=_;break}}let{top:f,left:g}=h;if(n>0&&a>0){let _=window.innerWidth-n-16,A=window.innerHeight-a-16;g>_&&(g=_),g<16&&(g=16),f>A&&(f=A),f<16&&(f=16)}if(d!=="cursor"){for(let _ of["top","bottom","left","right"])t.classList.remove(`nb-tooltip-${_}`);t.classList.add(`nb-tooltip-${d}`)}if(e.__side__=d,n>0&&a>0&&d!=="cursor"){let _=r.left+r.width/2,A=r.top+r.height/2;if(d==="top"||d==="bottom"){let p=Math.max(8,Math.min(n-8,_-g))/n*100;t.style.setProperty("--nb-tooltip-arrow-offset",`${p}%`)}else{let p=Math.max(8,Math.min(a-8,A-f))/a*100;t.style.setProperty("--nb-tooltip-arrow-offset",`${p}%`)}}t.style.top=`${f}px`,t.style.left=`${g}px`};function z7(e){var i;for(let r of Array.from(ur))(i=r.__hideTooltip__)==null||i.call(r,0,e);let t=new Set;for(let r of Array.from(ur))for(let s of r.__chips__??[])t.add(s);document.querySelectorAll("span.nb-tooltip").forEach(r=>{t.has(r)||r.remove()})}function U7(){var e;for(let t of Array.from(ur))(e=t.__hideTooltip__)==null||e.call(t,0,"program");ur.clear();for(let t of Array.from(hr))Hh(t);document.querySelectorAll("span.nb-tooltip").forEach(t=>t.remove())}var W7=Q0({default:()=>j7});function rf(e,t){let i=t.value;if(i==null||i===""){e.removeAttribute(R1);return}e.setAttribute(R1,String(i))}var j7=e=>{e.directive("nb-tour-step",{mounted:rf,updated:rf,unmounted(t){t.removeAttribute(R1)}})},K7=Object.assign({"./ContextMenu.directive.ts":Qy,"./ToolTip.content.ts":t7,"./ToolTip.directive.ts":d7,"./TourStep.directive.ts":W7}),q7={install(e){Object.values(K7).forEach(t=>{typeof t.default=="function"&&t.default(e)})}},G7={install(e){let t=Jy();e.provide(Xy,t)}},Y7={install(e,t={}){if(t.components)for(let[i,r]of Object.entries(t.components))e.component(i,r);e.use(q7),e.use(G7)}},N4=new Map;function X7(e){if(typeof e=="object"&&e&&!("render"in e)&&!("setup"in e)&&!("template"in e)){let t=e;if("thin"in t||"light"in t||"regular"in t||"bold"in t||"fill"in t||"duotone"in t)return t}return{regular:e}}function J7(e){for(let[t,i]of Object.entries(e))N4.set(t,X7(i))}function Q7(e,t="regular"){let i=N4.get(e);if(i){if(i[t])return i[t];if(i.regular)return i.regular;for(let r of["bold","fill","duotone","light","thin"])if(i[r])return i[r]}}var ew=e=>Symbol.for(`@nubisco/ui:${e}-catalog`);function tw(e){return globalThis[ew(e)]}var sf=new Map;function iw(e,t,i="regular"){let r=tw(e);if(!r){let l="Icon",c=`${e}s`;throw Error(`[@nubisco/ui] <Nb${l}> was given the runtime-resolved name "${t}", but the ${e} catalogue is not loaded. The name may also have been forwarded from another component's \`${e}\` prop. Three ways out, cheapest first: pass a literal name so the bundler plugin links just that ${e}; register the set the value can actually take with register${l}s() and pay for only those; or, if the value is genuinely open-ended (a picker, a CMS field), import '@nubisco/ui/${c}/all' in the file that needs the whole set.`)}let s=r[t];if(!s)return;let n=`${e}:${t}:${i}`,a=sf.get(n);if(a)return a;let o=d5(async()=>{let l=await s();return l[i]??l.regular??l.default});return sf.set(n,o),o}function rw(e,t="regular"){let i=e;return i&&typeof i=="object"&&("regular"in i||t in i)?i[t]??i.regular??i.default:e}function sw(e){var i;if(!e)return;let t=e;if(typeof t.glyphName=="string")return t.glyphName;if(typeof((i=t.regular)==null?void 0:i.glyphName)=="string")return t.regular.glyphName}var H4=function(e){return e.ExtraExtraSmall="xxs",e.ExtraSmall="xs",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xl",e.ExtraExtraLarge="xxl",e}({}),nw=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}({});function nf(e){return e.replace(new RegExp("(?<=[A-Z0-9])([A-Z])(?=[a-z])","g")," $1").replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}function Ih(e){var i,r;if(e.id)return e.id;let t=nf(((r=(i=gi())==null?void 0:i.type)==null?void 0:r.__name)??"component");return typeof e.name=="string"&&e.name?`${t}-${nf(e.name)}`:`${t}-${_r()}`}var P4=function(e){return e.Hover="hover",e.Always="always",e}(P4||{}),O4=function(e){return e.Thin="thin",e.Light="light",e.Regular="regular",e.Bold="bold",e.Fill="fill",e.Duotone="duotone",e}(O4||{}),U1=function(e){return e[e.XXL=92]="XXL",e[e.XL=60]="XL",e[e.LG=20]="LG",e[e.MD=16]="MD",e[e.SM=14]="SM",e[e.XS=12]="XS",e[e.XXS=8]="XXS",e}(U1||{}),aw=["title"],Ye=ut(Oe({__name:"Icon",props:{name:{default:void 0},icon:{default:void 0},size:{default:H4.Medium},animation:{default:null},animationMode:{default:P4.Always},color:{default:void 0},weight:{default:O4.Regular},title:{default:void 0},clickable:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){let i=e,r=t,s=J(()=>i.icon??i.name),n=J(()=>typeof s.value=="string"?s.value:sw(s.value)),a=J(()=>typeof s.value=="string"?void 0:s.value),o=Ih({name:n.value}),l=J(()=>{let d=typeof i.size=="number"?i.size:U1[String(i.size).toUpperCase()]||U1.MD;return{id:o,...i.size&&{width:`${d}px`,height:`${d}px`},...i.clickable&&{role:"button"}}}),c=J(()=>{let d=a.value;if(d)return rw(d,i.weight);let f=typeof s.value=="string"?s.value:void 0;return f?Q7(f,i.weight)||iw("icon",f,i.weight):void 0}),u=J(()=>({"nb-icon":!0,...n.value&&{[n.value]:!0},[`nb-icon-${i.size}`]:["xxs","xs","sm","md","lg","xl","xxl"].includes(String(i.size)),[`nb-icon-animation-${i.animationMode}-${i.animation}`]:i.animation,hoverable:i.hoverable||i.animation&&i.animationMode==="hover","box-clickable":i.clickable})),h=J(()=>({...i.color&&{color:i.color},...typeof i.size=="number"&&{maxWidth:`${i.size}px`,maxHeight:`${i.size}px`,height:`${i.size}px`,width:`${i.size}px`},...typeof i.size=="string"&&!["xxs","xs","sm","md","lg","xl","xxl"].includes(i.size)&&{maxWidth:i.size,maxHeight:i.size,height:i.size,width:i.size}}));return(d,f)=>(b(),$("i",Jt({class:u.value,style:h.value},l.value,{title:e.title,onClick:f[0]||(f[0]=g=>e.clickable?r("click",g):void 0)}),[c.value?(b(),fe(W0(c.value),{key:0,"aria-hidden":"true"})):j("",!0)],16,aw))}}),[["__scopeId","data-v-034072e6"]]);const ow=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},af=ow("caret-down","0 0 256 256",'<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"/>'),On=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},lw=On("magnifying-glass","0 0 256 256",'<path d="M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"/>'),cw=On("magnifying-glass","0 0 256 256",'<path d="M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"/>'),of=On("magnifying-glass","0 0 256 256",'<path d="M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"/>'),uw=On("magnifying-glass","0 0 256 256",'<path d="M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"/>'),hw=On("magnifying-glass","0 0 256 256",'<path d="M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"/>'),dw=On("magnifying-glass","0 0 256 256",'<path d="M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z" opacity="0.2"/><path d="M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"/>'),fw="magnifying-glass",lf=Object.freeze(Object.defineProperty({__proto__:null,bold:uw,default:of,duotone:dw,fill:hw,glyphName:fw,light:cw,regular:of,thin:lw},Symbol.toStringTag,{value:"Module"})),In=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},_w=In("warning-circle","0 0 256 256",'<path d="M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"/>'),pw=In("warning-circle","0 0 256 256",'<path d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"/>'),cf=In("warning-circle","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"/>'),mw=In("warning-circle","0 0 256 256",'<path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"/>'),gw=In("warning-circle","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"/>'),vw=In("warning-circle","0 0 256 256",'<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"/><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"/>'),bw="warning-circle",I4=Object.freeze(Object.defineProperty({__proto__:null,bold:mw,default:cf,duotone:vw,fill:gw,glyphName:bw,light:pw,regular:cf,thin:_w},Symbol.toStringTag,{value:"Module"}));var R4="data-nb-layer",W1=Symbol("nb-layer");function p0(e){if(!Number.isFinite(e))return 0;let t=Math.round(e);return t<0?0:t>3?3:t}function j1(e){return`nb-layer-${e}`}function yw(e){let t=null,i=s=>{let n=/^nb-layer-([0-3])$/.exec(s.trim());if(!n)return;let a=Number(n[1]);(t===null||a>t)&&(t=a)},r=s=>{if(typeof s=="string"){for(let n of s.split(/\s+/))i(n);return}if(Array.isArray(s)){for(let n of s)r(n);return}if(s&&typeof s=="object")for(let[n,a]of Object.entries(s))a&&i(n)};return r(e),t}function ww(e){let t=(e==null?void 0:e.parentElement)??null;for(;t;){let i=t.getAttribute(R4);if(i!==null){let s=Number(i);if(Number.isFinite(s))return{level:p0(s+1),source:"surface"}}let r=t.classList;if(r){for(let s=3;s>=0;s--)if(r.contains(j1(s)))return{level:s,source:"class"}}t=t.parentElement}return null}function Sw(e){if(!e)return null;if(e instanceof Element)return e;let t=e.$el;return t instanceof Element?t:null}function Wo(e={}){let t=gi(),i=ii(W1,null),r=e.el??Q(null),s=Q(null),n=e.probe??!e.overlay,a=J(()=>{var c;let l=Vv(e.level);return l===void 0?yw((c=t==null?void 0:t.attrs)==null?void 0:c.class):p0(l)}),o=J(()=>{let l=a.value;if(l!==null)return l;if(e.overlay)return 3;let c=s.value;return c&&c.source==="class"?c.level:i?i.value:c?c.level:1});return n&&ft(()=>{s.value=ww(Sw(r.value)??((t==null?void 0:t.vnode.el)instanceof Element?t.vnode.el:null))}),e.provideContext!==!1&&as(W1,J(()=>p0(o.value+1))),{level:o,layerClass:J(()=>j1(o.value)),layerProps:J(()=>({class:j1(o.value),[R4]:String(o.value)})),surfaceRef:r}}const Rn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Cw=Rn("caret-right","0 0 256 256",'<path d="M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"/>'),Aw=Rn("caret-right","0 0 256 256",'<path d="M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"/>'),K1=Rn("caret-right","0 0 256 256",'<path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"/>'),kw=Rn("caret-right","0 0 256 256",'<path d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"/>'),Mw=Rn("caret-right","0 0 256 256",'<path d="M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"/>'),Lw=Rn("caret-right","0 0 256 256",'<path d="M176,128,96,208V48Z" opacity="0.2"/><path d="M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"/>'),Ew="caret-right",xw=Object.freeze(Object.defineProperty({__proto__:null,bold:kw,default:K1,duotone:Lw,fill:Mw,glyphName:Ew,light:Aw,regular:K1,thin:Cw},Symbol.toStringTag,{value:"Module"}));var $w={class:"nb-breadcrumbs","aria-label":"breadcrumb"},Tw={key:0,class:"nb-breadcrumbs__brand"},Nw={key:0,class:"nb-breadcrumbs__title"},Hw={key:1,class:"nb-breadcrumbs__subtitle"},Pw={key:2,class:"nb-breadcrumbs__crumbs"},D4=ut(Oe({__name:"Breadcrumbs",props:{title:{},subtitle:{}},setup(e){let t=Pn();function i(s){return s.some(n=>n.type===jt?!1:n.type===ps?String(n.children??"").trim()!=="":n.type===be?i(n.children??[]):!0)}let r=J(()=>{var s;return i(((s=t.default)==null?void 0:s.call(t))??[])});return(s,n)=>(b(),$("nav",$w,[e.title||e.subtitle?(b(),$("span",Tw,[e.title?(b(),$("span",Nw,U(e.title),1)):j("",!0),e.subtitle?(b(),$("span",Hw,U(e.subtitle),1)):j("",!0)])):j("",!0),(e.title||e.subtitle)&&r.value?(b(),fe(Ye,{key:1,name:le(K1),size:"sm",class:"nb-breadcrumbs__sep"},null,8,["name"])):j("",!0),r.value?(b(),$("span",Pw,[Ne(s.$slots,"default",{},void 0,!0)])):j("",!0)]))}}),[["__scopeId","data-v-064c6984"]]);function Ow(e){var i,r,s,n;let t=(i=e.name)==null?void 0:i.trim();if(t){let a=t.split(/\s+/);return((((r=a[0])==null?void 0:r[0])??"")+(a.length>1?((s=a[a.length-1])==null?void 0:s[0])??"":"")).toUpperCase()}return(((n=e.email)==null?void 0:n.trim().split("@")[0])??"").slice(0,2).toUpperCase()}var V4=function(e){return e.Grey="grey",e.Blue="blue",e.Orange="orange",e.Green="green",e.Red="red",e.Purple="purple",e.Primary="primary",e}(V4||{}),B4=function(e){return e.Small="sm",e.Medium="md",e}(B4||{}),Iw={key:0,class:"nb-badge__dot"},Dn=ut(Oe({__name:"Badge",props:{variant:{default:V4.Grey},size:{default:B4.Medium},dot:{type:Boolean,default:!1}},setup(e){return(t,i)=>(b(),$("span",{class:Le(["nb-badge",`nb-badge--${e.variant}`,`nb-badge--${e.size}`])},[e.dot?(b(),$("span",Iw)):j("",!0),Ne(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-02a9584e"]]);const Vn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Rw=Vn("x","0 0 256 256",'<path d="M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"/>'),Dw=Vn("x","0 0 256 256",'<path d="M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"/>'),m0=Vn("x","0 0 256 256",'<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>'),Vw=Vn("x","0 0 256 256",'<path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"/>'),Bw=Vn("x","0 0 256 256",'<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>'),Zw=Vn("x","0 0 256 256",'<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"/><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>'),Fw="x",q1=Object.freeze(Object.defineProperty({__proto__:null,bold:Vw,default:m0,duotone:Zw,fill:Bw,glyphName:Fw,light:Dw,regular:m0,thin:Rw},Symbol.toStringTag,{value:"Module"})),Bn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},zw=Bn("info","0 0 256 256",'<path d="M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"/>'),Uw=Bn("info","0 0 256 256",'<path d="M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"/>'),g0=Bn("info","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/>'),Ww=Bn("info","0 0 256 256",'<path d="M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"/>'),jw=Bn("info","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"/>'),Kw=Bn("info","0 0 256 256",'<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"/><path d="M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"/>'),qw="info",Z4=Object.freeze(Object.defineProperty({__proto__:null,bold:Ww,default:g0,duotone:Kw,fill:jw,glyphName:qw,light:Uw,regular:g0,thin:zw},Symbol.toStringTag,{value:"Module"})),Zn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Gw=Zn("check-circle","0 0 256 256",'<path d="M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"/>'),Yw=Zn("check-circle","0 0 256 256",'<path d="M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"/>'),uf=Zn("check-circle","0 0 256 256",'<path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/>'),Xw=Zn("check-circle","0 0 256 256",'<path d="M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"/>'),Jw=Zn("check-circle","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"/>'),Qw=Zn("check-circle","0 0 256 256",'<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"/><path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/>'),eS="check-circle",Rh=Object.freeze(Object.defineProperty({__proto__:null,bold:Xw,default:uf,duotone:Qw,fill:Jw,glyphName:eS,light:Yw,regular:uf,thin:Gw},Symbol.toStringTag,{value:"Module"})),Fn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},tS=Fn("warning","0 0 256 256",'<path d="M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"/>'),iS=Fn("warning","0 0 256 256",'<path d="M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"/>'),wn=Fn("warning","0 0 256 256",'<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"/>'),rS=Fn("warning","0 0 256 256",'<path d="M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"/>'),sS=Fn("warning","0 0 256 256",'<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"/>'),nS=Fn("warning","0 0 256 256",'<path d="M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z" opacity="0.2"/><path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"/>'),aS="warning",F4=Object.freeze(Object.defineProperty({__proto__:null,bold:rS,default:wn,duotone:nS,fill:sS,glyphName:aS,light:iS,regular:wn,thin:tS},Symbol.toStringTag,{value:"Module"})),zn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},oS=zn("x-circle","0 0 256 256",'<path d="M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"/>'),lS=zn("x-circle","0 0 256 256",'<path d="M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"/>'),hf=zn("x-circle","0 0 256 256",'<path d="M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/>'),cS=zn("x-circle","0 0 256 256",'<path d="M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"/>'),uS=zn("x-circle","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>'),hS=zn("x-circle","0 0 256 256",'<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"/><path d="M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/>'),dS="x-circle",fS=Object.freeze(Object.defineProperty({__proto__:null,bold:cS,default:hf,duotone:hS,fill:uS,glyphName:dS,light:lS,regular:hf,thin:oS},Symbol.toStringTag,{value:"Module"})),Un=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},_S=Un("note","0 0 256 256",'<path d="M92,96a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,96Zm4,36h64a4,4,0,0,0,0-8H96a4,4,0,0,0,0,8Zm32,24H96a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8ZM220,48V156.69a11.9,11.9,0,0,1-3.52,8.48l-51.31,51.32a11.93,11.93,0,0,1-8.48,3.51H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H156V160a4,4,0,0,1,4-4h52V48a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212Zm158.35-48H164v42.35Z"/>'),pS=Un("note","0 0 256 256",'<path d="M90,96a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,96Zm6,38h64a6,6,0,0,0,0-12H96a6,6,0,0,0,0,12Zm32,20H96a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12ZM222,48V156.69a13.94,13.94,0,0,1-4.1,9.9L166.59,217.9a13.94,13.94,0,0,1-9.9,4.1H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H154V160a6,6,0,0,1,6-6h50V48a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210Zm153.52-44H166v35.52Z"/>'),df=Un("note","0 0 256 256",'<path d="M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"/>'),mS=Un("note","0 0 256 256",'<path d="M84,108A12,12,0,0,1,96,96h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,108Zm32,28H96a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24ZM228,48V156.69a19.86,19.86,0,0,1-5.86,14.14l-51.31,51.31A19.86,19.86,0,0,1,156.69,228H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204h92V156a12,12,0,0,1,12-12h48V52H52Zm139-36H168v23Z"/>'),gS=Un("note","0 0 256 256",'<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.69A15.92,15.92,0,0,0,168,219.31L219.31,168A15.92,15.92,0,0,0,224,156.69V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.69V160h44.7Z"/>'),vS=Un("note","0 0 256 256",'<path d="M216,160l-56,56V160Z" opacity="0.2"/><path d="M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"/>'),bS="note",yS=Object.freeze(Object.defineProperty({__proto__:null,bold:mS,default:df,duotone:vS,fill:gS,glyphName:bS,light:pS,regular:df,thin:_S},Symbol.toStringTag,{value:"Module"}));var G1=function(e){return e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e.Neutral="neutral",e}(G1||{}),Y1=function(e){return e.Inline="inline",e.Callout="callout",e}(Y1||{}),wS=["role","aria-live"],SS={class:"nb-banner__body"},CS={key:0,class:"nb-banner__title"},AS={key:1,class:"nb-banner__text"},kS={key:1,class:"nb-banner__actions"},MS=["aria-label"],ec=ut(Oe({__name:"Banner",props:{status:{default:G1.Info},variant:{default:Y1.Inline},title:{},dismissible:{type:Boolean,default:!1},icon:{},hideIcon:{type:Boolean,default:!1},flush:{type:Boolean,default:!1},closeLabel:{default:"Dismiss"}},emits:["dismiss"],setup(e,{emit:t}){let i=e,r=t,s=Pn(),n=J(()=>!!s.default),a=J(()=>!!s.action),o=J(()=>i.dismissible&&i.variant!==Y1.Callout),l=J(()=>i.status===G1.Error),c=Q(!1);function u(){c.value=!0,r("dismiss")}let h={info:Z4,success:Rh,warning:F4,error:fS,neutral:yS};return(d,f)=>c.value?j("",!0):(b(),$("div",{key:0,class:Le(["nb-banner",`nb-banner--${i.status}`,`nb-banner--${i.variant}`,{"nb-banner--flush":i.flush}]),role:l.value?"alert":"status","aria-live":l.value?"assertive":"polite"},[i.hideIcon?j("",!0):(b(),fe(Ye,{key:0,name:i.icon??h[i.status],size:18,weight:"fill",class:"nb-banner__icon","aria-hidden":"true"},null,8,["name"])),y("p",SS,[i.title?(b(),$("strong",CS,U(i.title),1)):j("",!0),n.value?(b(),$("span",AS,[Ne(d.$slots,"default",{},void 0,!0)])):j("",!0)]),a.value?(b(),$("div",kS,[Ne(d.$slots,"action",{},void 0,!0)])):j("",!0),o.value?(b(),$("button",{key:2,type:"button",class:"nb-banner__close","aria-label":i.closeLabel,onClick:u},[X(Ye,{name:le(m0),size:14},null,8,["name"])],8,MS)):j("",!0)],10,wS))}}),[["__scopeId","data-v-bf09999e"]]),LS={key:0,class:"nb-chart__header"},ES={key:0,class:"nb-chart__title"},xS={key:1,class:"nb-chart__subtitle"},Dh=ut(Oe({__name:"ChartFrame",props:{title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0}},setup(e,{expose:t}){let i=e,r=Q(null),s=J(()=>{let n=i.height;return typeof n=="number"||/^\d+(\.\d+)?$/.test(n)?`${n}px`:n});return t({viewport:r}),(n,a)=>(b(),$("figure",{class:"nb-chart",style:mi({height:s.value})},[e.title||e.subtitle?(b(),$("figcaption",LS,[e.title?(b(),$("h4",ES,U(e.title),1)):j("",!0),e.subtitle?(b(),$("p",xS,U(e.subtitle),1)):j("",!0)])):j("",!0),y("div",{ref_key:"viewport",ref:r,class:"nb-chart__viewport"},[Ne(n.$slots,"default",{},void 0,!0)],512),e.showLegend?Ne(n.$slots,"legend",{key:1},void 0,!0):j("",!0)],4))}}),[["__scopeId","data-v-0b28100e"]]),$S={key:0,class:"nb-chart__tooltip-title"},TS={class:"nb-chart__tooltip-rows"},NS={class:"nb-chart__tooltip-label"},HS={class:"nb-chart__tooltip-value"},Vh=ut(Oe({__name:"ChartTooltip",props:{visible:{type:Boolean},x:{},y:{},title:{},rows:{}},setup(e){return(t,i)=>(b(),fe(Hp,{name:"nb-chart-tooltip"},{default:te(()=>[e.visible?(b(),$("div",{key:0,class:"nb-chart__tooltip",style:mi({transform:`translate(${e.x}px, ${e.y}px)`}),role:"tooltip"},[e.title?(b(),$("div",$S,U(e.title),1)):j("",!0),y("ul",TS,[(b(!0),$(be,null,Ve(e.rows,(r,s)=>(b(),$("li",{key:`${r.label}-${s}`,class:"nb-chart__tooltip-row"},[y("span",{class:"nb-chart__tooltip-swatch",style:mi({background:r.color})},null,4),y("span",NS,U(r.label),1),y("span",HS,U(r.value),1)]))),128))])],4)):j("",!0)]),_:1}))}}),[["__scopeId","data-v-03e0b7bb"]]),v0=["var(--nb-c-chart-1)","var(--nb-c-chart-2)","var(--nb-c-chart-3)","var(--nb-c-chart-4)","var(--nb-c-chart-5)","var(--nb-c-chart-6)","var(--nb-c-chart-7)","var(--nb-c-chart-8)"],Bh=(e,t=v0)=>{let i=t.length>0?t:v0;return i[((Number.isFinite(e)?Math.trunc(e):0)%i.length+i.length)%i.length]},PS={class:"nb-chart__legend"},OS={class:"nb-chart__legend-label"},z4=ut(Oe({__name:"ChartLegend",props:{items:{}},setup(e){return(t,i)=>(b(),$("ul",PS,[(b(!0),$(be,null,Ve(e.items,r=>(b(),$("li",{key:r.label,class:"nb-chart__legend-item"},[y("span",{class:"nb-chart__legend-swatch",style:mi({background:r.color})},null,4),y("span",OS,U(r.label),1)]))),128))]))}}),[["__scopeId","data-v-401d7d8b"]]),b0=(e,t)=>{let[i,r]=e,[s,n]=t,a=r-i||1,o=l=>s+(l-i)/a*(n-s);return o.domain=e,o.range=t,o.ticks=(l=5)=>RS(i,r,l),o},IS=(e,t,i=.2)=>{let[r,s]=t,n=(s-r)/Math.max(e.length,1),a=n*(1-i),o=(n-a)/2,l=new Map(e.map((u,h)=>[u,h])),c=u=>{let h=l.get(u);return h===void 0?r:r+h*n+o};return c.bandwidth=a,c.domain=e,c.range=t,c},RS=(e,t,i=5)=>{if(e===t)return[e];let r=t-e,s=r/Math.max(i,1),n=10**Math.floor(Math.log10(s)),a=[1,2,5,10].map(u=>u*n),o=a.find(u=>r/u<=i*1.5)??a[a.length-1],l=Math.ceil(e/o)*o,c=[];for(let u=l;u<=t+o/2;u+=o)c.push(Number(u.toFixed(10)));return c},Zh=(e,t,i=.05)=>{if(e===t){let s=Math.abs(e)||1;return[e-s,t+s]}let r=(t-e)*i;return[e-r,t+r]},Fh=(e,t={width:480,height:280})=>{let i=Q({...t}),r=null;return ft(()=>{!e.value||typeof ResizeObserver>"u"||(r=new ResizeObserver(s=>{let n=s[0];if(!n)return;let{width:a,height:o}=n.contentRect;i.value={width:Math.max(0,Math.round(a)),height:Math.max(0,Math.round(o))}}),r.observe(e.value))}),Zi(()=>{r==null||r.disconnect(),r=null}),i},DS=["width","height","role","aria-label"],VS={key:0},BS=["x1","x2","y1","y2"],ZS={class:"nb-chart__axis"},FS=["x","y","text-anchor","dominant-baseline"],zS={class:"nb-chart__axis"},US=["x","y","text-anchor","dominant-baseline"],WS=["x1","x2","y1","y2"],jS=["fill","tabindex","role","aria-label","onKeydown"],KS={class:"nb-chart__hover-layer"},qS=["onMouseenter","onMousemove","onClick"],GS=ut(Oe({__name:"BarChart",props:{series:{default:()=>[]},orientation:{default:"vertical"},stacked:{type:Boolean,default:!1},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>v0}},emits:["select"],setup(e,{emit:t}){let i=e,r=t,s=Q(null),n=Fh(s,{width:480,height:240}),a=J(()=>i.orientation==="horizontal"),o=J(()=>i.series.map((Y,_e)=>({name:Y.name,data:Y.data,color:Y.color??Bh(_e,i.colors)}))),l=J(()=>{var Y;return(((Y=i.series[0])==null?void 0:Y.data)??[]).map(_e=>_e.x)}),c=(Y,_e)=>{var me,ge;return((ge=(me=o.value[_e])==null?void 0:me.data[Y])==null?void 0:ge.y)??0},u=(Y,_e)=>{let me=c(Y,_e);if(!i.stacked)return[0,me];let ge=0;for(let $e=0;$e<_e;$e+=1){let Se=c(Y,$e);Se>=0==me>=0&&(ge+=Se)}return[ge,ge+me]},h=J(()=>{let Y=[];return l.value.forEach((_e,me)=>{o.value.forEach((ge,$e)=>{Y.push(u(me,$e)[1])})}),Y.length?Zh(Math.min(0,...Y),Math.max(0,...Y),.05):[0,1]}),d=J(()=>{if(!a.value)return{top:12,right:16,bottom:28,left:44};let Y=l.value.reduce((me,ge)=>Math.max(me,String(ge).length),0),_e=Math.max(44,Math.round(n.value.width*.4));return{top:12,right:16,bottom:28,left:Math.min(Math.max(44,Math.ceil(Y*6.2)+12),_e)}}),f=J(()=>({x0:d.value.left,x1:Math.max(d.value.left,n.value.width-d.value.right),y0:d.value.top,y1:Math.max(d.value.top,n.value.height-d.value.bottom)})),g=J(()=>IS(l.value.map(Y=>String(Y)),a.value?[f.value.y0,f.value.y1]:[f.value.x0,f.value.x1],.2)),_=J(()=>b0(h.value,a.value?[f.value.x0,f.value.x1]:[f.value.y1,f.value.y0])),A=J(()=>_.value.ticks(5)),p=Y=>g.value(String(l.value[Y])),S=Y=>p(Y)+g.value.bandwidth/2,m=J(()=>{let Y=o.value.length||1;return i.stacked?g.value.bandwidth:g.value.bandwidth/Y}),v=(Y,_e)=>{let[me,ge]=u(Y,_e),$e=_.value(me),Se=_.value(ge),ae=Math.max(0,m.value-2),se=p(Y)+(i.stacked?0:_e*m.value),D=Math.max(0,Math.abs(Se-$e));return a.value?{x:Math.min($e,Se),y:se,width:D,height:ae}:{x:se,y:Math.min($e,Se),width:ae,height:D}},k=Y=>{let _e=p(Y),me=g.value.bandwidth;return a.value?{x:f.value.x0,y:_e,width:Math.max(0,f.value.x1-f.value.x0),height:me}:{x:_e,y:f.value.y0,width:me,height:Math.max(0,f.value.y1-f.value.y0)}},x=Y=>Math.abs(Y)>=1e3?`${(Y/1e3).toFixed(1)}k`:String(Y),M=gi(),F=()=>{var Y;return!!((Y=M==null?void 0:M.vnode.props)!=null&&Y.onSelect)},P=(Y,_e)=>{let me=o.value[_e],ge=x(c(Y,_e));return o.value.length>1?`${l.value[Y]}, ${me==null?void 0:me.name}: ${ge}`:`${l.value[Y]}: ${ge}`},O=(Y,_e)=>{let me=o.value[_e],ge=me==null?void 0:me.data[Y];return{kind:"series",x:(ge==null?void 0:ge.x)??l.value[Y],y:(ge==null?void 0:ge.y)??0,seriesName:(me==null?void 0:me.name)??"",seriesIndex:_e,index:Y,point:ge??{x:l.value[Y],y:0}}},R=Y=>{let _e=Y.currentTarget.ownerSVGElement;if(!_e)return null;let me=_e.getBoundingClientRect();return{x:Y.clientX-me.left,y:Y.clientY-me.top}},N=(Y,_e)=>{let me=o.value.length;if(me<=1)return 0;let ge=R(Y);if(!ge)return 0;if(i.stacked){let ae=a.value?ge.x:ge.y;for(let se=0;se<me;se+=1){let[D,G]=u(_e,se),ne=_.value(D),pe=_.value(G);if(ae>=Math.min(ne,pe)&&ae<=Math.max(ne,pe))return se}return me-1}let $e=(a.value?ge.y:ge.x)-p(_e),Se=Math.floor($e/(m.value||1));return Math.min(Math.max(Se,0),me-1)},T=(Y,_e)=>{F()&&r("select",O(_e,N(Y,_e)))},W=(Y,_e,me)=>{F()&&(Y.key!=="Enter"&&Y.key!==" "||(Y.preventDefault(),r("select",O(_e,me))))},q=Q(null),ie=Q({x:0,y:0}),ee=(Y,_e)=>{let me=R(Y);me&&(ie.value={x:me.x+12,y:me.y+12},q.value=_e)},re=J(()=>q.value===null?[]:o.value.map(Y=>{var _e;return{label:Y.name,value:x(((_e=Y.data[q.value])==null?void 0:_e.y)??0),color:Y.color}}));return(Y,_e)=>(b(),fe(Dh,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&o.value.length>0},{legend:te(()=>[X(z4,{items:o.value.map(me=>({label:me.name,color:me.color}))},null,8,["items"])]),default:te(()=>[y("div",{ref_key:"root",ref:s,class:"nb-bar-chart"},[(b(),$("svg",{width:le(n).width,height:le(n).height,class:Le(["nb-chart__svg",{"nb-chart__svg--selectable":F()}]),role:F()?"group":"img","aria-label":e.title||"Bar chart",onMouseleave:_e[0]||(_e[0]=me=>q.value=null)},[e.showGrid&&le(n).width>0?(b(),$("g",VS,[(b(!0),$(be,null,Ve(A.value,me=>(b(),$("line",{key:`grid-${me}`,class:"nb-chart__gridline",x1:a.value?_.value(me):f.value.x0,x2:a.value?_.value(me):f.value.x1,y1:a.value?f.value.y0:_.value(me),y2:a.value?f.value.y1:_.value(me)},null,8,BS))),128))])):j("",!0),y("g",ZS,[(b(!0),$(be,null,Ve(A.value,me=>(b(),$("text",{key:`vt-${me}`,x:a.value?_.value(me):f.value.x0-6,y:a.value?f.value.y1+14:_.value(me),"text-anchor":a.value?"middle":"end","dominant-baseline":a.value?"auto":"middle"},U(x(me)),9,FS))),128))]),y("g",zS,[(b(!0),$(be,null,Ve(l.value,(me,ge)=>(b(),$("text",{key:`ct-${ge}`,x:a.value?f.value.x0-6:S(ge),y:a.value?S(ge):f.value.y1+14,"text-anchor":a.value?"end":"middle","dominant-baseline":a.value?"middle":"auto"},U(me),9,US))),128))]),y("line",{class:"nb-chart__axis-line",x1:a.value?_.value(0):f.value.x0,x2:a.value?_.value(0):f.value.x1,y1:a.value?f.value.y0:_.value(0),y2:a.value?f.value.y1:_.value(0)},null,8,WS),(b(!0),$(be,null,Ve(l.value,(me,ge)=>(b(),$("g",{key:`g-${ge}`},[(b(!0),$(be,null,Ve(o.value,($e,Se)=>(b(),$("rect",Jt({key:`${ge}-${Se}`,class:["nb-chart__bar",{"is-dim":q.value!==null&&q.value!==ge}]},{ref_for:!0},v(ge,Se),{fill:$e.color,tabindex:F()?0:void 0,role:F()?"button":void 0,"aria-label":F()?P(ge,Se):void 0,onKeydown:ae=>W(ae,ge,Se)}),null,16,jS))),128))]))),128)),y("g",KS,[(b(!0),$(be,null,Ve(l.value,(me,ge)=>(b(),$("rect",Jt({key:`hover-${ge}`},{ref_for:!0},k(ge),{fill:"transparent",onMouseenter:$e=>q.value=ge,onMousemove:$e=>ee($e,ge),onClick:$e=>T($e,ge)}),null,16,qS))),128))])],42,DS)),X(Vh,{visible:e.showTooltip&&q.value!==null,x:ie.value.x,y:ie.value.y,title:q.value===null?"":String(l.value[q.value]),rows:re.value},null,8,["visible","x","y","title","rows"])],512)]),_:1},8,["title","subtitle","height","show-legend"]))}}),[["__scopeId","data-v-6e97c73e"]]);function U4(){let e=gi();return J(()=>{let t=e==null?void 0:e.appContext.components;return(t==null?void 0:t.RouterLink)??(t==null?void 0:t["router-link"])??null})}var W4=function(e){return e.Button="button",e.Submit="submit",e.Reset="reset",e}(W4||{}),YS={key:0,class:"nb-button__decorations"},XS={key:0,class:"nb-button__spinner","aria-hidden":"true"},ff=new Set;function JS(e){if(typeof e=="string")return e;if(e&&(typeof e=="object"||typeof e=="function")){let t=e;if(typeof t.glyphName=="string")return t.glyphName}return""}var vi=ut(Oe({__name:"Button",props:{variant:{default:void 0},outlined:{type:Boolean,default:!1},size:{default:H4.Medium},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{default:void 0},type:{default:W4.Button},href:{default:void 0},target:{default:void 0},rel:{default:void 0},to:{default:void 0}},emits:["click"],setup(e){let t=e,i=Pn(),r=J(()=>!i.default&&!!(t.icon||t.loading)),s=U4(),n=J(()=>t.to!=null&&!!s.value),a=J(()=>{if(typeof t.to=="string")return t.to;if(t.href)return t.href}),o=J(()=>n.value?s.value:a.value?"a":"button"),l=J(()=>o.value==="a"?{href:a.value,target:t.target,rel:t.rel}:{}),c={xxs:10,xs:12,sm:12,md:14,lg:16,xl:16,xxl:20},u={xxs:12,xs:14,sm:16,md:18,lg:20,xl:20,xxl:26},h=J(()=>(r.value?u:c)[t.size??"md"]??(r.value?18:14)),d=gi();return ft(()=>{typeof process<"u"||r.value&&Di(()=>{var _;let f=(_=d==null?void 0:d.proxy)==null?void 0:_.$el;if(!f||typeof f.getAttribute!="function"||["aria-label","aria-labelledby","title"].some(A=>(f.getAttribute(A)??"").trim().length>0)||(f.textContent??"").trim().length>0)return;let g=JS(t.icon);ff.has(g)||(ff.add(g),console.warn(`[NbButton] An icon-only button${g?` (icon "${g}")`:""} has no accessible name, so a screen reader announces it as "button". Add aria-label, or name it with v-nb-tooltip.`,f))})}),(f,g)=>(b(),fe(W0(o.value),Jt({class:["nb-button",e.variant?`nb-button--${e.variant}`:null,`nb-button--${e.size}`,{"nb-button--outlined":e.outlined},{"nb-button--loading":e.loading},{"nb-button--icon-only":r.value}],to:n.value?e.to:void 0},l.value,{disabled:o.value==="button"?e.disabled||e.loading:void 0,"aria-disabled":o.value!=="button"&&(e.disabled||e.loading)?!0:void 0,type:o.value==="button"?e.type:void 0,onClick:g[0]||(g[0]=_=>e.disabled||e.loading?void 0:f.$emit("click",_))}),{default:te(()=>[Ne(f.$slots,"default",{},void 0,!0),e.loading||e.icon?(b(),$("div",YS,[e.loading?(b(),$("span",XS)):e.icon?(b(),fe(Ye,{key:1,name:e.icon,size:h.value,class:"nb-button__icon"},null,8,["name","size"])):j("",!0)])):j("",!0)]),_:3},16,["class","to","disabled","aria-disabled","type"]))}}),[["__scopeId","data-v-a0e2a085"]]),j4=function(e){return e.Small="sm",e.Medium="md",e}(j4||{}),QS=["for"],e9={key:0,class:"nb-label__asterisk","aria-hidden":"true"},Wn=ut(Oe({__name:"Label",props:{htmlFor:{default:void 0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:j4.Medium}},setup(e){return(t,i)=>(b(),$("label",{for:e.htmlFor,class:Le(["nb-label",`nb-label--${e.size}`,{"nb-label--required":e.required,"nb-label--disabled":e.disabled}])},[Ne(t.$slots,"default",{},void 0,!0),e.required?(b(),$("span",e9,"*")):j("",!0),Ne(t.$slots,"suffix",{},void 0,!0)],10,QS))}}),[["__scopeId","data-v-836b13c6"]]),y0=function(e){return e.Error="error",e.Warning="warning",e.Success="success",e.Helper="helper",e}(y0||{}),t9=["aria-live"],i9={key:0,class:"nb-message__text"},r9={key:1,class:"nb-message__tooltip","aria-hidden":"true"},rt=ut(Oe({__name:"Message",props:{variant:{default:y0.Helper},iconOnly:{type:Boolean,default:!1}},setup(e){let t=e,i={error:I4,warning:F4,success:Rh,helper:Z4};return(r,s)=>(b(),$("div",{class:Le(["nb-message",`nb-message--${t.variant}`,{"nb-message--icon-only":t.iconOnly}]),role:"status","aria-live":t.variant==="error"?"assertive":"polite"},[X(Ye,{name:i[t.variant],size:14,class:"nb-message__icon"},null,8,["name"]),t.iconOnly?j("",!0):(b(),$("span",i9,[Ne(r.$slots,"default",{},void 0,!0)])),t.iconOnly?(b(),$("span",r9,[Ne(r.$slots,"default",{},void 0,!0)])):j("",!0)],10,t9))}}),[["__scopeId","data-v-3b1f8105"]]),$r=Oe({__name:"Grid",props:{id:{type:String,default:null},is:{type:String,default:"div"},dir:{type:[String,Object,Function],default:"row",validator:e=>typeof e=="function"?!0:typeof e=="string"?["row","col","row-reverse","col-reverse"].includes(e):Object.values(e).every(t=>["row","col","row-reverse","col-reverse"].includes(t))},align:{type:[String,Object,Function],default:null,validator:e=>e==null||typeof e=="function"?!0:typeof e=="string"?["start","end","center","baseline","stretch"].includes(e):Object.values(e).every(t=>["start","end","center","baseline","stretch"].includes(t))},justify:{type:[String,Object,Function],default:null,validator:e=>e==null||typeof e=="function"?!0:typeof e=="string"?["around","between","center","end","evenly","start"].includes(e):Object.values(e).every(t=>["around","between","center","end","evenly","start"].includes(t))},gap:{type:[String,Object,Function],default:null,validator:e=>{if(e==null||typeof e=="function")return!0;let t=["xxs","xs","sm","md","lg","xl","xxl"];return typeof e=="string"?t.includes(e):Object.values(e).every(i=>t.includes(i))}},grid:{type:[Number,String,Object,Function],default:null,validator:e=>{if(e==null||typeof e=="function")return!0;let t=i=>{let r=typeof i=="string"?parseInt(i,10):i;return r>=1&&r<=16&&!isNaN(r)};return typeof e=="number"||typeof e=="string"?t(e):Object.values(e).every(t)}},shift:{type:[Number,String,Object,Function],default:null,validator:e=>{if(e==null||typeof e=="function")return!0;let t=i=>{let r=typeof i=="string"?parseInt(i,10):i;return r>=0&&r<=15&&!isNaN(r)};return typeof e=="number"||typeof e=="string"?t(e):Object.values(e).every(t)}},wrap:{type:[String,Object,Function],default:null,validator:e=>e==null||typeof e=="function"?!0:typeof e=="string"?["nowrap","wrap","reverse"].includes(e):Object.values(e).every(t=>["nowrap","wrap","reverse"].includes(t))},first:{type:[Boolean,Array],default:null,validator:e=>{if(e==null||typeof e=="boolean")return!0;let t=["sm","md","lg","xl","xxl"];return e.every(i=>t.includes(i))}},last:{type:[Boolean,Array],default:null,validator:e=>{if(e==null||typeof e=="boolean")return!0;let t=["sm","md","lg","xl","xxl"];return e.every(i=>t.includes(i))}},visible:{type:[Boolean,Object,Function],default:null},reverse:{type:[Boolean,Array],default:!1,validator:e=>{if(e==null||typeof e=="boolean")return!0;let t=["sm","md","lg","xl","xxl"];return e.every(i=>t.includes(i))}},grow:{type:Boolean,default:null},flex:{type:Boolean,default:null},shrink:{type:Boolean,default:null},distributed:{type:Boolean,default:!1},mode:{type:String,default:"wide",validator:e=>["wide","narrow","condensed"].includes(e)},tabIndex:{type:String,default:null}},setup(e,{expose:t}){let i=["a","button","input","textarea","select","details","iframe","object","embed","area","audio","video"],r=Q();t({getRef:()=>r.value});let s=e,n=m=>m.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function a(m,v){let{collection:k,breakpoint:x}=v,M=x?`${x}-`:"";x&&m==="row"||(k[`${M}${m}`]=!0)}function o(m,v){let{collection:k,breakpoint:x,classMap:M}=v,F=x?`${x}-`:"",P=(M==null?void 0:M[m])??m;k[`${F}align-${P}`]=!0}function l(m,v){let{collection:k,breakpoint:x,classMap:M}=v,F=x?`${x}-`:"",P=(M==null?void 0:M[m])??m;k[`${F}justify-${P}`]=!0}function c(m,v){let{collection:k,breakpoint:x}=v,M=x?`${x}-`:"";k[`${M}gap-${m}`]=!0}function u(m,v){let{collection:k,breakpoint:x}=v,M=x?`${x}-`:"";k[`${M}grid-${m}`]=!0}function h(m,v){let{collection:k,breakpoint:x}=v,M=x?`${x}-`:"";k[`${M}shift-${m}`]=!0}function d(m,v){let{collection:k,breakpoint:x}=v,M=x?`${x}-`:"";k[`${M}${m}`]=!0}function f(m,v){if(!m)return;let{collection:k,breakpoint:x}=v,M=x?`${x}-`:"";k[`${M}reverse`]=!0}function g(m,v,k){if(!m)return;let{collection:x,breakpoint:M}=v,F=M?`${M}-`:"";x[`${F}${k}`]=!0}function _(m,v){let{collection:k,breakpoint:x}=v,M=x?`${x}-`:"";k[`${M}${m?"visible":"hidden"}`]=!0}function A(m,v,k){let x={};if(m==null)return x;if(typeof m=="function"){let M=m();return M!=null&&v(M,{collection:x,classMap:k}),x}return typeof m=="string"||typeof m=="number"||typeof m=="boolean"?(v(m,{collection:x,classMap:k}),x):Array.isArray(m)?(m.forEach(M=>{v(!0,{collection:x,breakpoint:n(M),classMap:k})}),x):(typeof m=="object"&&Object.entries(m).forEach(([M,F])=>{F!=null&&v(F,{collection:x,breakpoint:n(M),classMap:k})}),x)}let p=m=>{let v={top:"start",bottom:"end",center:"center",stretch:"stretch",baseline:"base"},k={left:"start",right:"end",center:"center",between:"between",around:"around",evenly:"evenly"};return{"nb-grid":!0,...A(m.dir,a),...A(m.align,o,v),...A(m.justify,l,k),...A(m.gap,c),...A(m.grid,u),...A(m.shift,h),...A(m.wrap,d),...A(m.reverse,f),...A(m.first,(x,M)=>g(x,M,"first")),...A(m.last,(x,M)=>g(x,M,"last")),...A(m.visible,_),...m.flex?{flex:!0}:{},...m.distributed?{distributed:!0}:{},...m.mode?{[m.mode]:!0}:{},...m.grow?{grow:!0}:{},...m.shrink!==null&&m.shrink!==void 0?{[`shrink-${m.shrink?"1":"0"}`]:!0}:{}}},S=J(()=>p(s));return(m,v)=>(b(),fe(W0(m.is),{id:m.id,ref_key:"root",ref:r,class:Le(S.value),tabindex:m.tabIndex??!i.includes(m.is)?"-1":"0"},{default:te(()=>[Ne(m.$slots,"default")]),_:3},8,["id","class","tabindex"]))}});const jn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},s9=jn("caret-left","0 0 256 256",'<path d="M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"/>'),n9=jn("caret-left","0 0 256 256",'<path d="M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"/>'),_f=jn("caret-left","0 0 256 256",'<path d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"/>'),a9=jn("caret-left","0 0 256 256",'<path d="M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"/>'),o9=jn("caret-left","0 0 256 256",'<path d="M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"/>'),l9=jn("caret-left","0 0 256 256",'<path d="M160,48V208L80,128Z" opacity="0.2"/><path d="M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"/>'),c9="caret-left",u9=Object.freeze(Object.defineProperty({__proto__:null,bold:a9,default:_f,duotone:l9,fill:o9,glyphName:c9,light:n9,regular:_f,thin:s9},Symbol.toStringTag,{value:"Module"}));var h9=["width","height","role","aria-hidden","aria-labelledby","focusable"],d9=["id"],f9=["id"],_9=["id"],p9=["id"],m9=["id"],g9=["id"],v9=["id"],b9=["id"],y9=["id"],w9=["id"],S9={transform:"translate(-44.999 -33.192)scale(.92486)"},C9=["fill"],A9=["fill"],k9=["fill"],M9=["fill"],L9=["fill"],E9=["fill"],x9=["fill"],$9=["fill"],T9=["fill"],N9=["fill"],H9=["fill"],P9=["fill"],O9=Oe({__name:"NubiscoPlatformMark",props:{size:{default:20},title:{default:void 0}},setup(e){let t=e,i=`nb-nubisco-platform-mark-${_r()}`,r=`${i}-title`,s=J(()=>typeof t.size=="number"?`${t.size}px`:t.size);return(n,a)=>(b(),$("svg",{width:s.value,height:s.value,viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t.title?"img":void 0,"aria-hidden":t.title?void 0:"true","aria-labelledby":t.title?r:void 0,focusable:t.title?void 0:"false"},[t.title?(b(),$("title",{key:0,id:r},U(t.title),1)):j("",!0),y("defs",null,[y("linearGradient",{id:`${i}-a`,x1:"119.61",x2:"119.61",y1:"36.855",y2:"381.922",gradientTransform:"matrix(-.88714 -.4615 .40987 -.99917 140.112 473.946)",gradientUnits:"userSpaceOnUse",spreadMethod:"pad"},[...a[0]||(a[0]=[y("stop",{offset:"0","stop-color":"#c4b5fd"},null,-1),y("stop",{offset:".51","stop-color":"#8b5cf6"},null,-1),y("stop",{offset:"1","stop-color":"#4c1d95"},null,-1)])],8,d9),y("linearGradient",{id:`${i}-b`,x1:"143.989",x2:"143.989",y1:"36.855",y2:"179.9",gradientTransform:"rotate(27.476 159.702 130.504)scale(1 .92545)",gradientUnits:"userSpaceOnUse"},[...a[1]||(a[1]=[y("stop",{offset:"0","stop-opacity":".17"},null,-1),y("stop",{offset:"1","stop-opacity":".03"},null,-1)])],8,f9),y("linearGradient",{id:`${i}-c`,x1:"91.703",x2:"91.703",y1:"328.267",y2:"381.922",gradientTransform:"matrix(-.60193 -.79855 1.25666 -1.08976 -307.908 812.885)",gradientUnits:"userSpaceOnUse"},[...a[2]||(a[2]=[y("stop",{offset:"0","stop-opacity":".38"},null,-1),y("stop",{offset:"1","stop-opacity":".2"},null,-1)])],8,_9),y("linearGradient",{id:`${i}-d`,x1:"348.688",x2:"348.688",y1:"35.889",y2:"116.548",gradientTransform:"rotate(239.754 337.588 85.06)scale(1 1.35453)",gradientUnits:"userSpaceOnUse"},[...a[3]||(a[3]=[y("stop",{offset:"0","stop-color":"#c7d2fe","stop-opacity":".56"},null,-1),y("stop",{offset:".745","stop-color":"#eef2ff"},null,-1),y("stop",{offset:"1","stop-color":"#eef2ff"},null,-1)])],8,p9),y("linearGradient",{id:`${i}-e`,x1:"338.142",x2:"338.142",y1:"47.006",y2:"121.215",gradientTransform:"rotate(41.017 403.561 105.221)scale(1 1.549)",gradientUnits:"userSpaceOnUse"},[...a[4]||(a[4]=[y("stop",{offset:"0","stop-color":"#fff","stop-opacity":".35"},null,-1),y("stop",{offset:".611","stop-color":"#fff","stop-opacity":".2"},null,-1),y("stop",{offset:".656","stop-color":"#fff","stop-opacity":".09"},null,-1),y("stop",{offset:"1","stop-color":"#fff","stop-opacity":".05"},null,-1)])],8,m9),y("linearGradient",{id:`${i}-f`,x1:"286.279",x2:"286.279",y1:"128.145",y2:"381.893",gradientTransform:"matrix(.98012 -.1984 .20133 .99503 -34.837 58.725)",gradientUnits:"userSpaceOnUse"},[...a[5]||(a[5]=[y("stop",{offset:"0","stop-color":"#5e2178","stop-opacity":"0"},null,-1),y("stop",{offset:".23","stop-color":"#5e2174","stop-opacity":"0"},null,-1),y("stop",{offset:"1","stop-color":"#5e2077","stop-opacity":".77"},null,-1)])],8,g9),y("linearGradient",{id:`${i}-g`,x1:"220.396",x2:"220.396",y1:"36.815",y2:"381.893",gradientTransform:"matrix(.9096 -.4155 .45815 .99927 -61.508 91.882)",gradientUnits:"userSpaceOnUse"},[...a[6]||(a[6]=[y("stop",{offset:"0","stop-color":"#7dd3fc"},null,-1),y("stop",{offset:".5","stop-color":"#38bdf8"},null,-1),y("stop",{offset:"1","stop-color":"#4338ca"},null,-1)])],8,v9),y("linearGradient",{id:`${i}-h`,x1:"197.5",x2:"197.5",y1:"36.815",y2:"132.342",gradientTransform:"rotate(-65.21 176.696 92.616)scale(1 1.1573)",gradientUnits:"userSpaceOnUse"},[...a[7]||(a[7]=[y("stop",{offset:"0","stop-color":"#fff","stop-opacity":".45"},null,-1),y("stop",{offset:"1","stop-color":"#60a5fa","stop-opacity":".85"},null,-1)])],8,b9),y("linearGradient",{id:`${i}-i`,x1:"197.5",x2:"197.5",y1:"59.48",y2:"132.342",gradientTransform:"rotate(-63.231 113.999 150.221)scale(1 2.11347)",gradientUnits:"userSpaceOnUse"},[...a[8]||(a[8]=[y("stop",{offset:"0","stop-color":"#fff","stop-opacity":".6"},null,-1),y("stop",{offset:".461","stop-color":"#fff","stop-opacity":".71"},null,-1),y("stop",{offset:"1","stop-color":"#fff","stop-opacity":".82"},null,-1)])],8,y9),y("linearGradient",{id:`${i}-j`,x1:"258.091",x2:"258.091",y1:"319.547",y2:"338.393",gradientTransform:"rotate(-80.06 -339.105 833.104)scale(1 4.05965)",gradientUnits:"userSpaceOnUse"},[...a[9]||(a[9]=[y("stop",{offset:"0","stop-color":"#60a5fa","stop-opacity":".96"},null,-1),y("stop",{offset:".493","stop-color":"#60a5fa","stop-opacity":".74"},null,-1),y("stop",{offset:"1","stop-color":"#60a5fa","stop-opacity":".34"},null,-1)])],8,w9)]),y("g",S9,[y("g",null,[y("path",{fill:`url(#${i}-a)`,d:"M48.655 381.922c71.172-124.782 3.049-340.71 141.911-345.067C173.148 402.723 82.723 380.123 48.655 381.922"},null,8,C9),y("path",{fill:`url(#${i}-b)`,d:"M177.776 179.9c-57.288-128.188-80.363-36.931-80.363-36.931 10.255-59.703 30.912-104.161 93.153-106.114-2.686 56.413-7.107 103.59-12.79 143.045"},null,8,A9),y("path",{fill:`url(#${i}-c)`,d:"M48.655 381.922c9.423-16.521 16.405-34.64 21.748-53.655 17.691 18.395 64.349 3.674 64.349 3.674-31.373 55.419-67.307 48.989-86.097 49.981"},null,8,k9),a[10]||(a[10]=y("path",{fill:"#e0e7ff",d:"M134.752 331.941c-13.63 5.995-53.201 12.838-64.349-3.674 17.691 18.395 64.349 3.674 64.349 3.674"},null,-1))]),y("g",null,[y("path",{fill:`url(#${i}-a)`,d:"M313.875 381.893c-25.777 0-45.248-6.416-60.124-17.427C216.182 182.535 312.866 21.948 394.655 36.85c-59.316 122.24-44.489 345.043-80.78 345.043"},null,8,M9),y("path",{fill:`url(#${i}-d)`,d:"M367.694 116.548s-15.167-41.655-64.974-28.547c27.276-36.929 60.692-56.843 91.935-51.151-11.449 23.594-20.136 50.935-26.961 79.698"},null,8,L9),a[11]||(a[11]=y("path",{fill:"#fff","fill-opacity":".46",d:"M367.694 116.548s-15.167-41.655-64.974-28.547c49.49-16.872 64.974 28.547 64.974 28.547"},null,-1)),y("path",{fill:`url(#${i}-e)`,d:"M384.493 47.025c-48.94 7.777-92.702 74.19-92.702 74.19s35.018-75.588 92.702-74.19"},null,8,E9),y("path",{fill:`url(#${i}-f)`,d:"M313.875 381.893c-25.777 0-45.248-6.416-60.124-17.427-18.652-90.322-4.213-175.383 25.064-236.321 12.184 33.435 19.638 221.543 48.343 239.852-3.562 8.902-7.85 13.896-13.283 13.896"},null,8,x9)]),y("path",{fill:`url(#${i}-g)`,d:"M313.875 381.893c-174.222 0-60.342-293.107-186.959-316.694 14.13-17.017 33.938-27.461 63.337-28.384 121.142 11.21 61.419 240.042 123.622 345.078"},null,8,$9),y("path",{fill:`url(#${i}-h)`,d:"M268.085 132.342s-61.681-68.748-141.169-67.143c14.13-17.017 33.938-27.461 63.337-28.384 48.292 4.469 67.842 43.521 77.832 95.527"},null,8,T9),y("path",{fill:`url(#${i}-i)`,d:"M268.085 132.342s-61.681-68.748-141.169-67.143c56.3-1.878 104.887 28.123 141.169 67.143"},null,8,N9),y("path",{fill:`url(#${i}-c)`,d:"M313.875 381.893c-51.52 0-77.847-25.632-92.648-62.346 37.447 29.88 73.274 13.505 73.727 15.194 4.654 17.344 10.73 33.322 18.921 47.152"},null,8,H9),y("path",{fill:`url(#${i}-j)`,d:"M294.954 334.741c-23.352 6.999-50.621 5.603-73.727-15.194 37.447 29.88 73.274 13.505 73.727 15.194"},null,8,P9),a[12]||(a[12]=y("path",{fill:"#fff","fill-opacity":".11",d:"M164.386 48.742c79.985-4.198 103.959 141.977 103.959 141.977C249.39 92.792 222.974 38.013 164.386 48.742"},null,-1))])],8,h9))}});function I9(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}var pf=typeof window<"u",Gs=(e,t=!1)=>t?Symbol.for(e):Symbol(e),R9=(e,t,i)=>D9({l:e,k:t,s:i}),D9=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Kt=e=>typeof e=="number"&&isFinite(e),K4=e=>zh(e)==="[object Date]",w0=e=>zh(e)==="[object RegExp]",tc=e=>at(e)&&Object.keys(e).length===0,pi=Object.assign,V9=Object.create,$t=(e=null)=>V9(e),B9,Rs=()=>B9||(B9=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:$t());function mf(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function gf(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Z9(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(t,i,r)=>`${i}="${gf(r)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(t,i,r)=>`${i}='${gf(r)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,"$1javascript:")}),e}var F9=Object.prototype.hasOwnProperty;function Ri(e,t){return F9.call(e,t)}var Dt=Array.isArray,kt=e=>typeof e=="function",Ie=e=>typeof e=="string",xt=e=>typeof e=="boolean",ct=e=>typeof e=="object"&&!!e,z9=e=>ct(e)&&kt(e.then)&&kt(e.catch),q4=Object.prototype.toString,zh=e=>q4.call(e),at=e=>zh(e)==="[object Object]",U9=e=>e==null?"":Dt(e)||at(e)&&e.toString===q4?JSON.stringify(e,null,2):String(e);function Uh(e,t=""){return e.reduce((i,r,s)=>s===0?i+r:i+t+r,"")}var xl=e=>!ct(e)||Dt(e);function Kl(e,t){if(xl(e)||xl(t))throw Error("Invalid value");let i=[{src:e,des:t}];for(;i.length;){let{src:r,des:s}=i.pop();Object.keys(r).forEach(n=>{n!=="__proto__"&&(ct(r[n])&&!ct(s[n])&&(s[n]=Array.isArray(r[n])?[]:$t()),xl(s[n])||xl(r[n])?s[n]=r[n]:i.push({src:r[n],des:s[n]}))})}}function W9(e,t,i){return{line:e,column:t,offset:i}}function X1(e,t,i){return{start:e,end:t}}var et={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14};function ic(e,t,i={}){let{domain:r,messages:s,args:n}=i,a=e,o=SyntaxError(String(a));return o.code=e,t&&(o.location=t),o.domain=r,o}function j9(e){throw e}var Ji=" ",K9="\r",di=`
|
|
40
|
+
`,q9="\u2028",G9="\u2029";function Y9(e){let t=e,i=0,r=1,s=1,n=0,a=M=>t[M]===K9&&t[M+1]===di,o=M=>t[M]===di,l=M=>t[M]===G9,c=M=>t[M]===q9,u=M=>a(M)||o(M)||l(M)||c(M),h=()=>i,d=()=>r,f=()=>s,g=()=>n,_=M=>a(M)||l(M)||c(M)?di:t[M],A=()=>_(i),p=()=>_(i+n);function S(){return n=0,u(i)&&(r++,s=0),a(i)&&i++,i++,s++,t[i]}function m(){return a(i+n)&&n++,n++,t[i+n]}function v(){i=0,r=1,s=1,n=0}function k(M=0){n=M}function x(){let M=i+n;for(;M!==i;)S();n=0}return{index:h,line:d,column:f,peekOffset:g,charAt:_,currentChar:A,currentPeek:p,next:S,peek:m,reset:v,resetPeek:k,skipToPeek:x}}var yr=void 0,vf="'",X9="tokenizer";function J9(e,t={}){let i=t.location!==!1,r=Y9(e),s=()=>r.index(),n=()=>W9(r.line(),r.column(),r.index()),a=n(),o=s(),l={currentType:13,offset:o,startLoc:a,endLoc:a,lastType:13,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function h(w,C,V,...H){let L=c();C.column+=V,C.offset+=V,u&&u(ic(w,i?X1(L.startLoc,C):null,{domain:X9,args:H}))}function d(w,C,V){w.endLoc=n(),w.currentType=C;let H={type:C};return i&&(H.loc=X1(w.startLoc,w.endLoc)),V!=null&&(H.value=V),H}let f=w=>d(w,13);function g(w,C){return w.currentChar()===C?(w.next(),C):(h(et.EXPECTED_TOKEN,n(),0,C),"")}function _(w){let C="";for(;w.currentPeek()===Ji||w.currentPeek()===di;)C+=w.currentPeek(),w.peek();return C}function A(w){let C=_(w);return w.skipToPeek(),C}function p(w){if(w===yr)return!1;let C=w.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C===95}function S(w){if(w===yr)return!1;let C=w.charCodeAt(0);return C>=48&&C<=57}function m(w,C){let{currentType:V}=C;if(V!==2)return!1;_(w);let H=p(w.currentPeek());return w.resetPeek(),H}function v(w,C){let{currentType:V}=C;if(V!==2)return!1;_(w);let H=S(w.currentPeek()==="-"?w.peek():w.currentPeek());return w.resetPeek(),H}function k(w,C){let{currentType:V}=C;if(V!==2)return!1;_(w);let H=w.currentPeek()===vf;return w.resetPeek(),H}function x(w,C){let{currentType:V}=C;if(V!==7)return!1;_(w);let H=w.currentPeek()===".";return w.resetPeek(),H}function M(w,C){let{currentType:V}=C;if(V!==8)return!1;_(w);let H=p(w.currentPeek());return w.resetPeek(),H}function F(w,C){let{currentType:V}=C;if(!(V===7||V===11))return!1;_(w);let H=w.currentPeek()===":";return w.resetPeek(),H}function P(w,C){let{currentType:V}=C;if(V!==9)return!1;let H=()=>{let E=w.currentPeek();return E==="{"?p(w.peek()):E==="@"||E==="|"||E===":"||E==="."||E===Ji||!E?!1:E===di?(w.peek(),H()):R(w,!1)},L=H();return w.resetPeek(),L}function O(w){_(w);let C=w.currentPeek()==="|";return w.resetPeek(),C}function R(w,C=!0){let V=(L=!1,E="")=>{let I=w.currentPeek();return I==="{"||I==="@"||!I?L:I==="|"?!(E===Ji||E===di):I===Ji?(w.peek(),V(!0,Ji)):I===di?(w.peek(),V(!0,di)):!0},H=V();return C&&w.resetPeek(),H}function N(w,C){let V=w.currentChar();return V===yr?yr:C(V)?(w.next(),V):null}function T(w){let C=w.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36}function W(w){return N(w,T)}function q(w){let C=w.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36||C===45}function ie(w){return N(w,q)}function ee(w){let C=w.charCodeAt(0);return C>=48&&C<=57}function re(w){return N(w,ee)}function Y(w){let C=w.charCodeAt(0);return C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102}function _e(w){return N(w,Y)}function me(w){let C="",V="";for(;C=re(w);)V+=C;return V}function ge(w){let C="";for(;;){let V=w.currentChar();if(V==="\\"){let H=w.peek();H==="{"||H==="}"||H==="@"||H==="|"||H==="\\"?(C+=V+H,w.next(),w.next()):(w.resetPeek(),C+=V,w.next())}else{if(V==="{"||V==="}"||V==="@"||V==="|"||!V)break;if(V===Ji||V===di)if(R(w))C+=V,w.next();else{if(O(w))break;C+=V,w.next()}else C+=V,w.next()}}return C}function $e(w){A(w);let C="",V="";for(;C=ie(w);)V+=C;let H=w.currentChar();if(H&&H!=="}"&&H!==yr&&H!==Ji&&H!==di&&H!==" "){let L=pe(w);return h(et.INVALID_TOKEN_IN_PLACEHOLDER,n(),0,V+L),V+L}return w.currentChar()===yr&&h(et.UNTERMINATED_CLOSING_BRACE,n(),0),V}function Se(w){A(w);let C="";return w.currentChar()==="-"?(w.next(),C+=`-${me(w)}`):C+=me(w),w.currentChar()===yr&&h(et.UNTERMINATED_CLOSING_BRACE,n(),0),C}function ae(w){return w!==vf&&w!==di}function se(w){A(w),g(w,"'");let C="",V="";for(;C=N(w,ae);)C==="\\"?V+=D(w):V+=C;let H=w.currentChar();return H===di||H===yr?(h(et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,n(),0),H===di&&(w.next(),g(w,"'")),V):(g(w,"'"),V)}function D(w){let C=w.currentChar();switch(C){case"\\":case"'":return w.next(),`\\${C}`;case"u":return G(w,C,4);case"U":return G(w,C,6);default:return h(et.UNKNOWN_ESCAPE_SEQUENCE,n(),0,C),""}}function G(w,C,V){g(w,C);let H="";for(let L=0;L<V;L++){let E=_e(w);if(!E){h(et.INVALID_UNICODE_ESCAPE_SEQUENCE,n(),0,`\\${C}${H}${w.currentChar()}`);break}H+=E}return`\\${C}${H}`}function ne(w){return w!=="{"&&w!=="}"&&w!==Ji&&w!==di}function pe(w){A(w);let C="",V="";for(;C=N(w,ne);)V+=C;return V}function Ae(w){let C="",V="";for(;C=W(w);)V+=C;return V}function B(w){let C=V=>{let H=w.currentChar();return H==="{"||H==="@"||H==="|"||H==="("||H===")"||!H||H===Ji?V:(V+=H,w.next(),C(V))};return C("")}function Z(w){A(w);let C=g(w,"|");return A(w),C}function z(w,C){let V=null;switch(w.currentChar()){case"{":return C.braceNest>=1&&h(et.NOT_ALLOW_NEST_PLACEHOLDER,n(),0),w.next(),V=d(C,2,"{"),A(w),C.braceNest++,V;case"}":return C.braceNest>0&&C.currentType===2&&h(et.EMPTY_PLACEHOLDER,n(),0),w.next(),V=d(C,3,"}"),C.braceNest--,C.braceNest>0&&A(w),C.inLinked&&C.braceNest===0&&(C.inLinked=!1),V;case"@":return C.braceNest>0&&h(et.UNTERMINATED_CLOSING_BRACE,n(),0),V=oe(w,C)||f(C),C.braceNest=0,V;default:{let H=!0,L=!0,E=!0;if(O(w))return C.braceNest>0&&h(et.UNTERMINATED_CLOSING_BRACE,n(),0),V=d(C,1,Z(w)),C.braceNest=0,C.inLinked=!1,V;if(C.braceNest>0&&(C.currentType===4||C.currentType===5||C.currentType===6))return h(et.UNTERMINATED_CLOSING_BRACE,n(),0),C.braceNest=0,he(w,C);if(H=m(w,C))return V=d(C,4,$e(w)),A(w),V;if(L=v(w,C))return V=d(C,5,Se(w)),A(w),V;if(E=k(w,C))return V=d(C,6,se(w)),A(w),V;if(!H&&!L&&!E)return V=d(C,12,pe(w)),h(et.INVALID_TOKEN_IN_PLACEHOLDER,n(),0,V.value),A(w),V;break}}return V}function oe(w,C){let{currentType:V}=C,H=null,L=w.currentChar();switch((V===7||V===8||V===11||V===9)&&(L===di||L===Ji)&&h(et.INVALID_LINKED_FORMAT,n(),0),L){case"@":return w.next(),H=d(C,7,"@"),C.inLinked=!0,H;case".":return A(w),w.next(),d(C,8,".");case":":return A(w),w.next(),d(C,9,":");default:return O(w)?(H=d(C,1,Z(w)),C.braceNest=0,C.inLinked=!1,H):x(w,C)||F(w,C)?(A(w),oe(w,C)):M(w,C)?(A(w),d(C,11,Ae(w))):P(w,C)?(A(w),L==="{"?z(w,C)||H:d(C,10,B(w))):(V===7&&h(et.INVALID_LINKED_FORMAT,n(),0),C.braceNest=0,C.inLinked=!1,he(w,C))}}function he(w,C){let V={type:13};if(C.braceNest>0)return z(w,C)||f(C);if(C.inLinked)return oe(w,C)||f(C);switch(w.currentChar()){case"{":return z(w,C)||f(C);case"}":return h(et.UNBALANCED_CLOSING_BRACE,n(),0),w.next(),d(C,3,"}");case"@":return oe(w,C)||f(C);default:if(O(w))return V=d(C,1,Z(w)),C.braceNest=0,C.inLinked=!1,V;if(R(w))return d(C,0,ge(w));break}return V}function ue(){let{currentType:w,offset:C,startLoc:V,endLoc:H}=l;return l.lastType=w,l.lastOffset=C,l.lastStartLoc=V,l.lastEndLoc=H,l.offset=s(),l.startLoc=n(),r.currentChar()===yr?d(l,13):he(r,l)}return{nextToken:ue,currentOffset:s,currentPosition:n,context:c}}var Q9="parser",eC=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,tC=/\\([\\@{}|])/g;function iC(e,t){return t}function rC(e,t,i){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{let r=parseInt(t||i,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function sC(e={}){let t=e.location!==!1,{onError:i}=e;function r(p,S,m,v,...k){let x=p.currentPosition();x.offset+=v,x.column+=v,i&&i(ic(S,t?X1(m,x):null,{domain:Q9,args:k}))}function s(p,S,m){let v={type:p};return t&&(v.start=S,v.end=S,v.loc={start:m,end:m}),v}function n(p,S,m,v){t&&(p.end=S,p.loc&&(p.loc.end=m))}function a(p,S){let m=p.context(),v=s(3,m.offset,m.startLoc);return v.value=S.replace(tC,iC),n(v,p.currentOffset(),p.currentPosition()),v}function o(p,S){let{lastOffset:m,lastStartLoc:v}=p.context(),k=s(5,m,v);return k.index=parseInt(S,10),p.nextToken(),n(k,p.currentOffset(),p.currentPosition()),k}function l(p,S){let{lastOffset:m,lastStartLoc:v}=p.context(),k=s(4,m,v);return k.key=S,p.nextToken(),n(k,p.currentOffset(),p.currentPosition()),k}function c(p,S){let{lastOffset:m,lastStartLoc:v}=p.context(),k=s(9,m,v);return k.value=S.replace(eC,rC),p.nextToken(),n(k,p.currentOffset(),p.currentPosition()),k}function u(p){let S=p.nextToken(),m=p.context(),{lastOffset:v,lastStartLoc:k}=m,x=s(8,v,k);return S.type===11?(S.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Qi(S)),x.value=S.value||"",n(x,p.currentOffset(),p.currentPosition()),{node:x}):(r(p,et.UNEXPECTED_EMPTY_LINKED_MODIFIER,m.lastStartLoc,0),x.value="",n(x,v,k),{nextConsumeToken:S,node:x})}function h(p,S){let m=p.context(),v=s(7,m.offset,m.startLoc);return v.value=S,n(v,p.currentOffset(),p.currentPosition()),v}function d(p){let S=p.context(),m=s(6,S.offset,S.startLoc),v=p.nextToken();if(v.type===8){let k=u(p);m.modifier=k.node,v=k.nextConsumeToken||p.nextToken()}switch(v.type!==9&&r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(v)),v=p.nextToken(),v.type===2&&(v=p.nextToken()),v.type){case 10:v.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(v)),m.key=h(p,v.value||"");break;case 4:v.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(v)),m.key=l(p,v.value||"");break;case 5:v.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(v)),m.key=o(p,v.value||"");break;case 6:v.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(v)),m.key=c(p,v.value||"");break;default:{r(p,et.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);let k=p.context(),x=s(7,k.offset,k.startLoc);return x.value="",n(x,k.offset,k.startLoc),m.key=x,n(m,k.offset,k.startLoc),{nextConsumeToken:v,node:m}}}return n(m,p.currentOffset(),p.currentPosition()),{node:m}}function f(p){let S=p.context(),m=s(2,S.currentType===1?p.currentOffset():S.offset,S.currentType===1?S.endLoc:S.startLoc);m.items=[];let v=null;do{let k=v||p.nextToken();switch(v=null,k.type){case 0:k.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(k)),m.items.push(a(p,k.value||""));break;case 5:k.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(k)),m.items.push(o(p,k.value||""));break;case 4:k.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(k)),m.items.push(l(p,k.value||""));break;case 6:k.value??r(p,et.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Qi(k)),m.items.push(c(p,k.value||""));break;case 7:{let x=d(p);m.items.push(x.node),v=x.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);return n(m,S.currentType===1?S.lastOffset:p.currentOffset(),S.currentType===1?S.lastEndLoc:p.currentPosition()),m}function g(p,S,m,v){let k=p.context(),x=v.items.length===0,M=s(1,S,m);M.cases=[],M.cases.push(v);do{let F=f(p);x||(x=F.items.length===0),M.cases.push(F)}while(k.currentType!==13);return x&&r(p,et.MUST_HAVE_MESSAGES_IN_PLURAL,m,0),n(M,p.currentOffset(),p.currentPosition()),M}function _(p){let S=p.context(),{offset:m,startLoc:v}=S,k=f(p);return S.currentType===13?k:g(p,m,v,k)}function A(p){let S=J9(p,pi({},e)),m=S.context(),v=s(0,m.offset,m.startLoc);return t&&v.loc&&(v.loc.source=p),v.body=_(S),e.onCacheKey&&(v.cacheKey=e.onCacheKey(p)),m.currentType!==13&&r(S,et.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,p[m.offset]||""),n(v,S.currentOffset(),S.currentPosition()),v}return{parse:A}}function Qi(e){if(e.type===13)return"EOF";let t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function nC(e,t={}){let i={ast:e,helpers:new Set};return{context:()=>i,helper:r=>(i.helpers.add(r),r)}}function bf(e,t){for(let i=0;i<e.length;i++)Wh(e[i],t)}function Wh(e,t){switch(e.type){case 1:bf(e.cases,t),t.helper("plural");break;case 2:bf(e.items,t);break;case 6:Wh(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function aC(e,t={}){let i=nC(e);i.helper("normalize"),e.body&&Wh(e.body,i);let r=i.context();e.helpers=Array.from(r.helpers)}function oC(e){let t=e.body;return t.type===2?yf(t):t.cases.forEach(i=>yf(i)),e}function yf(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let i=0;i<e.items.length;i++){let r=e.items[i];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Uh(t);for(let i=0;i<e.items.length;i++){let r=e.items[i];(r.type===3||r.type===9)&&delete r.value}}}}function on(e){switch(e.t=e.type,e.type){case 0:{let t=e;on(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,i=t.cases;for(let r=0;r<i.length;r++)on(i[r]);t.c=i,delete t.cases;break}case 2:{let t=e,i=t.items;for(let r=0;r<i.length;r++)on(i[r]);t.i=i,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;on(t.key),t.k=t.key,delete t.key,t.modifier&&(on(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}}delete e.type}function lC(e,t){let{filename:i,breakLineCode:r,needIndent:s}=t,n=t.location!==!1,a={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};n&&e.loc&&(a.source=e.loc.source);let o=()=>a;function l(f,g){a.code+=f}function c(f,g=!0){let _=g?r:"";l(s?_+" ".repeat(f):_)}function u(f=!0){let g=++a.indentLevel;f&&c(g)}function h(f=!0){let g=--a.indentLevel;f&&c(g)}function d(){c(a.indentLevel)}return{context:o,push:l,indent:u,deindent:h,newline:d,helper:f=>`_${f}`,needIndent:()=>a.needIndent}}function cC(e,t){let{helper:i}=e;e.push(`${i("linked")}(`),Sn(e,t.key),t.modifier?(e.push(", "),Sn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function uC(e,t){let{helper:i,needIndent:r}=e;e.push(`${i("normalize")}([`),e.indent(r());let s=t.items.length;for(let n=0;n<s&&(Sn(e,t.items[n]),n!==s-1);n++)e.push(", ");e.deindent(r()),e.push("])")}function hC(e,t){let{helper:i,needIndent:r}=e;if(t.cases.length>1){e.push(`${i("plural")}([`),e.indent(r());let s=t.cases.length;for(let n=0;n<s&&(Sn(e,t.cases[n]),n!==s-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}function dC(e,t){t.body?Sn(e,t.body):e.push("null")}function Sn(e,t){let{helper:i}=e;switch(t.type){case 0:dC(e,t);break;case 1:hC(e,t);break;case 2:uC(e,t);break;case 6:cC(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${i("interpolate")}(${i("list")}(${t.index}))`,t);break;case 4:e.push(`${i("interpolate")}(${i("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}var fC=(e,t={})=>{let i=Ie(t.mode)?t.mode:"normal",r=Ie(t.filename)?t.filename:"message.intl";t.sourceMap;let s=t.breakLineCode==null?i==="arrow"?";":`
|
|
41
|
+
`:t.breakLineCode,n=t.needIndent?t.needIndent:i!=="arrow",a=e.helpers||[],o=lC(e,{filename:r,breakLineCode:s,needIndent:n});o.push(i==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(n),a.length>0&&(o.push(`const { ${Uh(a.map(u=>`${u}: _${u}`),", ")} } = ctx`),o.newline()),o.push("return "),Sn(o,e),o.deindent(n),o.push("}"),delete e.helpers;let{code:l,map:c}=o.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function _C(e,t={}){let i=pi({},t),r=!!i.jit,s=!!i.minify,n=i.optimize==null?!0:i.optimize,a=sC(i).parse(e);return r?(n&&oC(a),s&&on(a),{ast:a,code:""}):(aC(a,i),fC(a,i))}function pC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rs().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function dr(e){return ct(e)&&jh(e)===0&&(Ri(e,"b")||Ri(e,"body"))}var G4=["b","body"];function mC(e){return bs(e,G4)}var Y4=["c","cases"];function gC(e){return bs(e,Y4,[])}var X4=["s","static"];function vC(e){return bs(e,X4)}var J4=["i","items"];function bC(e){return bs(e,J4,[])}var Q4=["t","type"];function jh(e){return bs(e,Q4)}var em=["v","value"];function $l(e,t){let i=bs(e,em);if(i!=null)return i;throw jo(t)}var tm=["m","modifier"];function yC(e){return bs(e,tm)}var im=["k","key"];function wC(e){let t=bs(e,im);if(t)return t;throw jo(6)}function bs(e,t,i){for(let r=0;r<t.length;r++){let s=t[r];if(Ri(e,s)&&e[s]!=null)return e[s]}return i}var rm=[...G4,...Y4,...X4,...J4,...im,...tm,...em,...Q4];function jo(e){return Error(`unhandled node type: ${e}`)}function Rc(e){return t=>SC(t,e)}function SC(e,t){let i=mC(t);if(i==null)throw jo(0);if(jh(i)===1){let r=gC(i);return e.plural(r.reduce((s,n)=>[...s,wf(e,n)],[]))}else return wf(e,i)}function wf(e,t){let i=vC(t);if(i!=null)return e.type==="text"?i:e.normalize([i]);{let r=bC(t).reduce((s,n)=>[...s,J1(e,n)],[]);return e.normalize(r)}}function J1(e,t){let i=jh(t);switch(i){case 3:return $l(t,i);case 9:return $l(t,i);case 4:{let r=t;if(Ri(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ri(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw jo(i)}case 5:{let r=t;if(Ri(r,"i")&&Kt(r.i))return e.interpolate(e.list(r.i));if(Ri(r,"index")&&Kt(r.index))return e.interpolate(e.list(r.index));throw jo(i)}case 6:{let r=t,s=yC(r),n=wC(r);return e.linked(J1(e,n),s?J1(e,s):void 0,e.type)}case 7:return $l(t,i);case 8:return $l(t,i);default:throw Error(`unhandled node on format message part: ${i}`)}}var CC=e=>e,Tl=$t();function AC(e,t={}){let i=!1,r=t.onError||j9;return t.onError=s=>{i=!0,r(s)},{..._C(e,t),detectError:i}}function kC(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ie(e)){xt(t.warnHtmlMessage)&&t.warnHtmlMessage;let i=(t.onCacheKey||CC)(e),r=Tl[i];if(r)return r;let{ast:s,detectError:n}=AC(e,{...t,location:!1,jit:!0}),a=Rc(s);return n?a:Tl[i]=a}else{let i=e.cacheKey;return i?Tl[i]||(Tl[i]=Rc(e)):Rc(e)}}var Ko=null;function MC(e){Ko=e}function LC(e,t,i){Ko&&Ko.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:i})}var EC=xC("function:translate");function xC(e){return t=>Ko&&Ko.emit(e,t)}var Tr={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Nr(e){return ic(e,null,void 0)}function Kh(e,t){return t.locale==null?Sf(e.locale):Sf(t.locale)}var Dc;function Sf(e){if(Ie(e))return e;if(kt(e)){if(e.resolvedOnce&&Dc!=null)return Dc;if(e.constructor.name==="Function"){let t=e();if(z9(t))throw Nr(Tr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dc=t}else throw Nr(Tr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Nr(Tr.NOT_SUPPORT_LOCALE_TYPE)}function $C(e,t,i){return[...new Set([i,...Dt(t)?t:ct(t)?Object.keys(t):Ie(t)?[t]:[i]])]}function Q1(e,t,i){let r=Ie(i)?i:S0,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let n=s.__localeChainCache.get(r);if(!n){n=[];let a=[i];for(;Dt(a);)a=Cf(n,a,t);let o=Dt(t)||!at(t)?t:t.default?t.default:null;a=Ie(o)?[o]:o,Dt(a)&&Cf(n,a,!1),s.__localeChainCache.set(r,n)}return n}function Cf(e,t,i){let r=!0;for(let s=0;s<t.length&&xt(r);s++){let n=t[s];Ie(n)&&(r=TC(e,t[s],i))}return r}function TC(e,t,i){let r,s=t.split("-");do r=NC(e,s.join("-"),i),s.splice(-1,1);while(s.length&&r===!0);return r}function NC(e,t,i){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";let s=t.replace(/!/g,"");e.push(s),(Dt(i)||at(i))&&i[s]&&(r=i[s])}return r}var Jr=[];Jr[0]={w:[0],i:[3,0],"[":[4],o:[7]},Jr[1]={w:[1],".":[2],"[":[4],o:[7]},Jr[2]={w:[2],i:[3,0],0:[3,0]},Jr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Jr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Jr[5]={"'":[4,0],o:8,l:[5,0]},Jr[6]={'"':[4,0],o:8,l:[6,0]};var HC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function PC(e){return HC.test(e)}function OC(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function IC(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function RC(e){let t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:PC(t)?OC(t):"*"+t}function DC(e){let t=[],i=-1,r=0,s=0,n,a,o,l,c,u,h,d=[];d[0]=()=>{a===void 0?a=o:a+=o},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,a===void 0||(a=RC(a),a===!1))return!1;d[1]()}};function f(){let g=e[i+1];if(r===5&&g==="'"||r===6&&g==='"')return i++,o="\\"+g,d[0](),!0}for(;r!==null;)if(i++,n=e[i],!(n==="\\"&&f())){if(l=IC(n),h=Jr[r],c=h[l]||h.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(o=n,u()===!1))))return;if(r===7)return t}}var Af=new Map;function VC(e,t){return ct(e)?e[t]:null}function BC(e,t){if(!ct(e))return null;let i=Af.get(t);if(i||(i=DC(t),i&&Af.set(t,i)),!i)return null;let r=i.length,s=e,n=0;for(;n<r;){let a=i[n];if(rm.includes(a)&&dr(s)||!ct(s)||!Ri(s,a))return null;let o=s[a];if(o===void 0||kt(s))return null;s=o,n++}return s}var ZC="11.3.0",S0="en-US",kf=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function FC(){return{upper:(e,t)=>t==="text"&&Ie(e)?e.toUpperCase():t==="vnode"&&ct(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ie(e)?e.toLowerCase():t==="vnode"&&ct(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ie(e)?kf(e):t==="vnode"&&ct(e)&&"__v_isVNode"in e?kf(e.children):e}}var sm;function zC(e){sm=e}var nm;function UC(e){nm=e}var am;function WC(e){am=e}var om=null,Mf=e=>{om=e},jC=()=>om,Lf=0;function KC(e={}){let t=kt(e.onWarn)?e.onWarn:I9,i=Ie(e.version)?e.version:ZC,r=Ie(e.locale)||kt(e.locale)?e.locale:S0,s=kt(r)?S0:r,n=Dt(e.fallbackLocale)||at(e.fallbackLocale)||Ie(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,a=at(e.messages)?e.messages:Vc(s),o=at(e.datetimeFormats)?e.datetimeFormats:Vc(s),l=at(e.numberFormats)?e.numberFormats:Vc(s),c=pi($t(),e.modifiers,FC()),u=e.pluralRules||$t(),h=kt(e.missing)?e.missing:null,d=xt(e.missingWarn)||w0(e.missingWarn)?e.missingWarn:!0,f=xt(e.fallbackWarn)||w0(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,_=!!e.unresolving,A=kt(e.postTranslation)?e.postTranslation:null,p=at(e.processor)?e.processor:null,S=xt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,v=kt(e.messageCompiler)?e.messageCompiler:sm,k=kt(e.messageResolver)?e.messageResolver:nm||VC,x=kt(e.localeFallbacker)?e.localeFallbacker:am||$C,M=ct(e.fallbackContext)?e.fallbackContext:void 0,F=e,P=ct(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,O=ct(F.__numberFormatters)?F.__numberFormatters:new Map,R=ct(F.__meta)?F.__meta:{};Lf++;let N={version:i,cid:Lf,locale:r,fallbackLocale:n,messages:a,modifiers:c,pluralRules:u,missing:h,missingWarn:d,fallbackWarn:f,fallbackFormat:g,unresolving:_,postTranslation:A,processor:p,warnHtmlMessage:S,escapeParameter:m,messageCompiler:v,messageResolver:k,localeFallbacker:x,fallbackContext:M,onWarn:t,__meta:R};return N.datetimeFormats=o,N.numberFormats=l,N.__datetimeFormatters=P,N.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&LC(N,i,R),N}var Vc=e=>({[e]:$t()});function qh(e,t,i,r,s){let{missing:n,onWarn:a}=e;if(n!==null){let o=n(e,i,t,s);return Ie(o)?o:t}else return t}function to(e,t,i){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,i,t)}function qC(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function GC(e,t){let i=t.indexOf(e);if(i===-1)return!1;for(let r=i+1;r<t.length;r++)if(qC(e,t[r]))return!0;return!1}function Ef(e,...t){let{datetimeFormats:i,unresolving:r,fallbackLocale:s,onWarn:n,localeFallbacker:a}=e,{__datetimeFormatters:o}=e;if(!Ie(t[0])&&!K4(t[0])&&!Kt(t[0]))return"";let[l,c,u,h]=eu(...t),d=xt(u.missingWarn)?u.missingWarn:e.missingWarn;xt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let f=!!u.part,g=Kh(e,u),_=a(e,s,g);if(!Ie(l)||l==="")return new Intl.DateTimeFormat(g.replace(/!/g,""),h).format(c);let A={},p,S=null,m="datetime format";for(let x=0;x<_.length&&(p=_[x],A=i[p]||{},S=A[l],!at(S));x++)qh(e,l,p,d,m);if(!at(S)||!Ie(p))return r?-1:l;let v=`${p}__${l}`;tc(h)||(v=`${v}__${JSON.stringify(h)}`);let k=o.get(v);return k||(k=new Intl.DateTimeFormat(p,pi({},S,h)),o.set(v,k)),f?k.formatToParts(c):k.format(c)}var YC=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function eu(...e){let[t,i,r,s]=e,n=$t(),a=$t(),o;if(Ie(t)){let l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Nr(Tr.INVALID_ISO_DATE_ARGUMENT);let c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();o=new Date(c);try{o.toISOString()}catch{throw Nr(Tr.INVALID_ISO_DATE_ARGUMENT)}}else if(K4(t)){if(isNaN(t.getTime()))throw Nr(Tr.INVALID_DATE_ARGUMENT);o=t}else if(Kt(t))o=t;else throw Nr(Tr.INVALID_ARGUMENT);return Ie(i)?n.key=i:at(i)&&Object.keys(i).forEach(l=>{YC.includes(l)?a[l]=i[l]:n[l]=i[l]}),Ie(r)?n.locale=r:at(r)&&(a=r),at(s)&&(a=s),[n.key||"",o,n,a]}function xf(e,t,i){let r=e;for(let s in i){let n=`${t}__${s}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function $f(e,...t){let{numberFormats:i,unresolving:r,fallbackLocale:s,onWarn:n,localeFallbacker:a}=e,{__numberFormatters:o}=e;if(!Kt(t[0]))return"";let[l,c,u,h]=tu(...t),d=xt(u.missingWarn)?u.missingWarn:e.missingWarn;xt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let f=!!u.part,g=Kh(e,u),_=a(e,s,g);if(!Ie(l)||l==="")return new Intl.NumberFormat(g.replace(/!/g,""),h).format(c);let A={},p,S=null,m="number format";for(let x=0;x<_.length&&(p=_[x],A=i[p]||{},S=A[l],!at(S));x++)qh(e,l,p,d,m);if(!at(S)||!Ie(p))return r?-1:l;let v=`${p}__${l}`;tc(h)||(v=`${v}__${JSON.stringify(h)}`);let k=o.get(v);return k||(k=new Intl.NumberFormat(p,pi({},S,h)),o.set(v,k)),f?k.formatToParts(c):k.format(c)}var XC=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function tu(...e){let[t,i,r,s]=e,n=$t(),a=$t();if(!Kt(t))throw Nr(Tr.INVALID_ARGUMENT);let o=t;return Ie(i)?n.key=i:at(i)&&Object.keys(i).forEach(l=>{XC.includes(l)?a[l]=i[l]:n[l]=i[l]}),Ie(r)?n.locale=r:at(r)&&(a=r),at(s)&&(a=s),[n.key||"",o,n,a]}function Tf(e,t,i){let r=e;for(let s in i){let n=`${t}__${s}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var JC=e=>e,QC=e=>"",eA="text",tA=e=>e.length===0?"":Uh(e),iA=U9;function Bc(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function rA(e){var i,r;let t=Kt(e.pluralIndex)?e.pluralIndex:-1;return Kt((i=e.named)==null?void 0:i.count)?e.named.count:Kt((r=e.named)==null?void 0:r.n)?e.named.n:t}function sA(e={}){var _,A,p,S;let t=e.locale,i=rA(e),r=Ie(t)&&kt((_=e.pluralRules)==null?void 0:_[t])?e.pluralRules[t]:Bc,s=r===Bc?void 0:Bc,n=m=>m[r(i,m.length,s)],a=e.list||[],o=m=>a[m],l=e.named||$t();Kt(e.pluralIndex)&&(l.count||(l.count=e.pluralIndex),l.n||(l.n=e.pluralIndex));let c=m=>l[m];function u(m,v){return(kt(e.messages)?e.messages(m,!!v):ct(e.messages)?e.messages[m]:!1)||(e.parent?e.parent.message(m):QC)}let h=m=>e.modifiers?e.modifiers[m]:JC,d=kt((A=e.processor)==null?void 0:A.normalize)?e.processor.normalize:tA,f=kt((p=e.processor)==null?void 0:p.interpolate)?e.processor.interpolate:iA,g={list:o,named:c,plural:n,linked:(m,...v)=>{let[k,x]=v,M="text",F="";v.length===1?ct(k)?(F=k.modifier||F,M=k.type||M):Ie(k)&&(F=k||F):v.length===2&&(Ie(k)&&(F=k||F),Ie(x)&&(M=x||M));let P=u(m,!0)(g),O=P===""||P===void 0?m:P,R=M==="vnode"&&Dt(O)&&F?O[0]:O;return F?h(F)(R,M):R},message:u,type:Ie((S=e.processor)==null?void 0:S.type)?e.processor.type:eA,interpolate:f,normalize:d,values:pi($t(),a,l)};return g}var Nf=()=>"",Ui=e=>kt(e);function Hf(e,...t){let{fallbackFormat:i,postTranslation:r,unresolving:s,messageCompiler:n,fallbackLocale:a,messages:o}=e,[l,c]=iu(...t),u=xt(c.missingWarn)?c.missingWarn:e.missingWarn,h=xt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=xt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,g=Ie(c.default)||xt(c.default)?xt(c.default)?n?l:()=>l:c.default:i?n?l:()=>l:null,_=i||g!=null&&(Ie(g)||kt(g)),A=Kh(e,c);d&&nA(c);let[p,S,m]=f?[l,A,o[A]||$t()]:lm(e,l,A,a,h,u),v=p,k=l;if(!f&&!(Ie(v)||dr(v)||Ui(v))&&_&&(v=g,k=v),!f&&(!(Ie(v)||dr(v)||Ui(v))||!Ie(S)))return s?-1:l;let x=!1,M=Ui(v)?v:cm(e,l,S,v,k,()=>{x=!0});if(x)return v;let F=aA(e,M,sA(lA(e,S,m,c))),P=r?r(F,l):F;if(d&&Ie(P)&&(P=Z9(P)),__INTLIFY_PROD_DEVTOOLS__){let O={timestamp:Date.now(),key:Ie(l)?l:Ui(v)?v.key:"",locale:S||(Ui(v)?v.locale:""),format:Ie(v)?v:Ui(v)?v.source:"",message:P};O.meta=pi({},e.__meta,{}),EC(O)}return P}function nA(e){Dt(e.list)?e.list=e.list.map(t=>Ie(t)?mf(t):t):ct(e.named)&&Object.keys(e.named).forEach(t=>{Ie(e.named[t])&&(e.named[t]=mf(e.named[t]))})}function lm(e,t,i,r,s,n){let{messages:a,onWarn:o,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,i),h=$t(),d,f=null,g="translate";for(let _=0;_<u.length&&(d=u[_],h=a[d]||$t(),(f=l(h,t))===null&&(f=h[t]),!(Ie(f)||dr(f)||Ui(f)));_++)if(!GC(d,u)){let A=qh(e,t,d,n,g);A!==t&&(f=A)}return[f,d,h]}function cm(e,t,i,r,s,n){let{messageCompiler:a,warnHtmlMessage:o}=e;if(Ui(r)){let c=r;return c.locale=c.locale||i,c.key=c.key||t,c}if(a==null){let c=()=>r;return c.locale=i,c.key=t,c}let l=a(r,oA(e,i,s,r,o,n));return l.locale=i,l.key=t,l.source=r,l}function aA(e,t,i){return t(i)}function iu(...e){let[t,i,r]=e,s=$t();if(!Ie(t)&&!Kt(t)&&!Ui(t)&&!dr(t))throw Nr(Tr.INVALID_ARGUMENT);let n=Kt(t)?String(t):t;return Kt(i)?s.plural=i:Ie(i)?s.default=i:at(i)&&!tc(i)?s.named=i:Dt(i)&&(s.list=i),Kt(r)?s.plural=r:Ie(r)?s.default=r:at(r)&&pi(s,r),[n,s]}function oA(e,t,i,r,s,n){return{locale:t,key:i,warnHtmlMessage:s,onError:a=>{throw n&&n(a),a},onCacheKey:a=>R9(t,i,a)}}function lA(e,t,i,r){let{modifiers:s,pluralRules:n,messageResolver:a,fallbackLocale:o,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,h={locale:t,modifiers:s,pluralRules:n,messages:(d,f)=>{let g=a(i,d);if(g==null&&(u||f)){let[,,_]=lm(u||e,d,t,o,l,c);g=a(_,d)}if(Ie(g)||dr(g)){let _=!1,A=cm(e,d,t,g,d,()=>{_=!0});return _?Nf:A}else return Ui(g)?g:Nf}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Kt(r.plural)&&(h.pluralIndex=r.plural),h}pC();var cA="11.3.0";function uA(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Rs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rs().__INTLIFY_PROD_DEVTOOLS__=!1)}var Cn={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function qo(e,...t){return ic(e,null,void 0)}var Pf=Gs("__translateVNode"),Of=Gs("__datetimeParts"),If=Gs("__numberParts"),hA=Gs("__setPluralRules"),um=Gs("__injectWithOption"),ru=Gs("__dispose");function Go(e){if(!ct(e)||dr(e))return e;for(let t in e)if(Ri(e,t))if(!t.includes("."))ct(e[t])&&Go(e[t]);else{let i=t.split("."),r=i.length-1,s=e,n=!1;for(let a=0;a<r;a++){if(i[a]==="__proto__")throw Error(`unsafe key: ${i[a]}`);if(i[a]in s||(s[i[a]]=$t()),!ct(s[i[a]])){n=!0;break}s=s[i[a]]}if(n||(dr(s)?rm.includes(i[r])||delete e[t]:(s[i[r]]=e[t],delete e[t])),!dr(s)){let a=s[i[r]];ct(a)&&Go(a)}}return e}function hm(e,t){let{messages:i,__i18n:r,messageResolver:s,flatJson:n}=t,a=at(i)?i:Dt(r)?$t():{[e]:$t()};if(Dt(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){let{locale:l,resource:c}=o;l?(a[l]=a[l]||$t(),Kl(c,a[l])):Kl(c,a)}else Ie(o)&&Kl(JSON.parse(o),a)}),s==null&&n)for(let o in a)Ri(a,o)&&Go(a[o]);return a}function dA(e){return e.type}function fA(e,t,i){let r=ct(t.messages)?t.messages:$t();"__i18nGlobal"in i&&(r=hm(e.locale.value,{messages:r,__i18n:i.__i18nGlobal}));let s=Object.keys(r);if(s.length&&s.forEach(n=>{e.mergeLocaleMessage(n,r[n])}),ct(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ct(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}function Rf(e){return X(ps,null,e,0)}function dm(){return gi()}var Df=()=>[],_A=()=>!1,Vf=0;function Bf(e){return(t,i,r,s)=>e(i,r,dm()||void 0,s)}function pA(e={}){let{__root:t,__injectWithOption:i}=e,r=t===void 0,s=e.flatJson,n=pf?Q:Vr,a=xt(e.inheritLocale)?e.inheritLocale:!0,o=n(t&&a?t.locale.value:Ie(e.locale)?e.locale:S0),l=n(t&&a?t.fallbackLocale.value:Ie(e.fallbackLocale)||Dt(e.fallbackLocale)||at(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),c=n(hm(o.value,e)),u=n(at(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),h=n(at(e.numberFormats)?e.numberFormats:{[o.value]:{}}),d=t?t.missingWarn:xt(e.missingWarn)||w0(e.missingWarn)?e.missingWarn:!0,f=t?t.fallbackWarn:xt(e.fallbackWarn)||w0(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:xt(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,A=kt(e.missing)?e.missing:null,p=kt(e.missing)?Bf(e.missing):null,S=kt(e.postTranslation)?e.postTranslation:null,m=t?t.warnHtmlMessage:xt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,k=t?t.modifiers:at(e.modifiers)?e.modifiers:{},x=e.pluralRules||t&&t.pluralRules,M;M=(()=>{r&&Mf(null);let L={version:cA,locale:o.value,fallbackLocale:l.value,messages:c.value,modifiers:k,pluralRules:x,missing:p===null?void 0:p,missingWarn:d,fallbackWarn:f,fallbackFormat:_,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:m,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};L.datetimeFormats=u.value,L.numberFormats=h.value,L.__datetimeFormatters=at(M)?M.__datetimeFormatters:void 0,L.__numberFormatters=at(M)?M.__numberFormatters:void 0;let E=KC(L);return r&&Mf(E),E})(),to(M,o.value,l.value);function F(){return[o.value,l.value,c.value,u.value,h.value]}let P=J({get:()=>o.value,set:L=>{M.locale=L,o.value=L}}),O=J({get:()=>l.value,set:L=>{M.fallbackLocale=L,l.value=L,to(M,o.value,L)}}),R=J(()=>c.value),N=J(()=>u.value),T=J(()=>h.value);function W(){return kt(S)?S:null}function q(L){S=L,M.postTranslation=L}function ie(){return A}function ee(L){L!==null&&(p=Bf(L)),A=L,M.missing=p}let re=(L,E,I,K,de,ye)=>{F();let Ee;try{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=t?jC():void 0),Ee=L(M)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(I!=="translate exists"&&Kt(Ee)&&Ee===-1||I==="translate exists"&&!Ee){let[ze,Me]=E();return t&&g?K(t):de(ze)}else{if(ye(Ee))return Ee;throw qo(Cn.UNEXPECTED_RETURN_TYPE)}};function Y(...L){return re(E=>Reflect.apply(Hf,null,[E,...L]),()=>iu(...L),"translate",E=>Reflect.apply(E.t,E,[...L]),E=>E,E=>Ie(E))}function _e(...L){let[E,I,K]=L;if(K&&!ct(K))throw qo(Cn.INVALID_ARGUMENT);return Y(E,I,pi({resolvedMessage:!0},K||{}))}function me(...L){return re(E=>Reflect.apply(Ef,null,[E,...L]),()=>eu(...L),"datetime format",E=>Reflect.apply(E.d,E,[...L]),()=>"",E=>Ie(E)||Dt(E))}function ge(...L){return re(E=>Reflect.apply($f,null,[E,...L]),()=>tu(...L),"number format",E=>Reflect.apply(E.n,E,[...L]),()=>"",E=>Ie(E)||Dt(E))}function $e(L){return L.map(E=>Ie(E)||Kt(E)||xt(E)?Rf(String(E)):E)}let Se={normalize:$e,interpolate:L=>L,type:"vnode"};function ae(...L){return re(E=>{let I,K=E;try{K.processor=Se,I=Reflect.apply(Hf,null,[K,...L])}finally{K.processor=null}return I},()=>iu(...L),"translate",E=>E[Pf](...L),E=>[Rf(E)],E=>Dt(E))}function se(...L){return re(E=>Reflect.apply($f,null,[E,...L]),()=>tu(...L),"number format",E=>E[If](...L),Df,E=>Ie(E)||Dt(E))}function D(...L){return re(E=>Reflect.apply(Ef,null,[E,...L]),()=>eu(...L),"datetime format",E=>E[Of](...L),Df,E=>Ie(E)||Dt(E))}function G(L){x=L,M.pluralRules=x}function ne(L,E){return re(()=>{if(!L)return!1;let I=Ie(E)?E:o.value,K=Ie(E)?[I]:Q1(M,l.value,I);for(let de=0;de<K.length;de++){let ye=B(K[de]),Ee=M.messageResolver(ye,L);if(Ee===null&&(Ee=ye[L]),dr(Ee)||Ui(Ee)||Ie(Ee))return!0}return!1},()=>[L],"translate exists",I=>Reflect.apply(I.te,I,[L,E]),_A,I=>xt(I))}function pe(L){let E=null,I=Q1(M,l.value,o.value);for(let K=0;K<I.length;K++){let de=c.value[I[K]]||{},ye=M.messageResolver(de,L);if(ye!=null){E=ye;break}}return E}function Ae(L){return pe(L)??(t&&t.tm(L)||{})}function B(L){return c.value[L]||{}}function Z(L,E){if(s){let I={[L]:E};for(let K in I)Ri(I,K)&&Go(I[K]);E=I[L]}c.value[L]=E,M.messages=c.value}function z(L,E){c.value[L]=c.value[L]||{};let I={[L]:E};if(s)for(let K in I)Ri(I,K)&&Go(I[K]);E=I[L],Kl(E,c.value[L]),M.messages=c.value}function oe(L){return u.value[L]||{}}function he(L,E){u.value[L]=E,M.datetimeFormats=u.value,xf(M,L,E)}function ue(L,E){u.value[L]=pi(u.value[L]||{},E),M.datetimeFormats=u.value,xf(M,L,E)}function w(L){return h.value[L]||{}}function C(L,E){h.value[L]=E,M.numberFormats=h.value,Tf(M,L,E)}function V(L,E){h.value[L]=pi(h.value[L]||{},E),M.numberFormats=h.value,Tf(M,L,E)}Vf++,t&&pf&&(Fe(t.locale,L=>{a&&(o.value=L,M.locale=L,to(M,o.value,l.value))}),Fe(t.fallbackLocale,L=>{a&&(l.value=L,M.fallbackLocale=L,to(M,o.value,l.value))}));let H={id:Vf,locale:P,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(L){a=L,L&&t&&(o.value=t.locale.value,l.value=t.fallbackLocale.value,to(M,o.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:R,get modifiers(){return k},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(L){d=L,M.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(L){f=L,M.fallbackWarn=f},get fallbackRoot(){return g},set fallbackRoot(L){g=L},get fallbackFormat(){return _},set fallbackFormat(L){_=L,M.fallbackFormat=_},get warnHtmlMessage(){return m},set warnHtmlMessage(L){m=L,M.warnHtmlMessage=L},get escapeParameter(){return v},set escapeParameter(L){v=L,M.escapeParameter=L},t:Y,getLocaleMessage:B,setLocaleMessage:Z,mergeLocaleMessage:z,getPostTranslationHandler:W,setPostTranslationHandler:q,getMissingHandler:ie,setMissingHandler:ee,[hA]:G};return H.datetimeFormats=N,H.numberFormats=T,H.rt=_e,H.te=ne,H.tm=Ae,H.d=me,H.n=ge,H.getDateTimeFormat=oe,H.setDateTimeFormat=he,H.mergeDateTimeFormat=ue,H.getNumberFormat=w,H.setNumberFormat=C,H.mergeNumberFormat=V,H[um]=i,H[Pf]=ae,H[Of]=D,H[If]=se,H}var su={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};pi({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Kt(e)||!isNaN(e)}},su),pi({value:{type:Number,required:!0},format:{type:[String,Object]}},su);var mA=Gs("global-vue-i18n");function gA(e={}){let t=dm();if(t==null)throw qo(Cn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw qo(Cn.NOT_INSTALLED);let i=vA(t),r=yA(i),s=dA(t),n=bA(e,s);if(n==="global")return fA(r,e,s),r;if(n==="parent"){let l=wA(i,t,e.__useComponent);return l??(l=r),l}let a=i,o=a.__getInstance(t);if(o==null){let l=pi({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),o=pA(l),a.__composerExtend&&(o[ru]=a.__composerExtend(o)),CA(a,t,o),a.__setInstance(t,o)}return o}function vA(e){let t=ii(e.isCE?mA:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw qo(e.isCE?Cn.NOT_INSTALLED_WITH_PROVIDE:Cn.UNEXPECTED_ERROR);return t}function bA(e,t){return tc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function yA(e){return e.mode==="composition"?e.global:e.global.__composer}function wA(e,t,i=!1){let r=null,s=t.root,n=SA(t,i);for(;n!=null;){let a=e;if(e.mode==="composition")r=a.__getInstance(n);else if(__VUE_I18N_LEGACY_API__){let o=a.__getInstance(n);o!=null&&(r=o.__composer,i&&r&&!r[um]&&(r=null))}if(r!=null||s===n)break;n=n.parent}return r}function SA(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function CA(e,t,i){ft(()=>{},t),Br(()=>{let r=i;e.__deleteInstance(t);let s=r[ru];s&&(s(),delete r[ru])},t)}if(pi({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},su),uA(),zC(kC),UC(BC),WC(Q1),__INTLIFY_PROD_DEVTOOLS__){let e=Rs();e.__INTLIFY__=!0,MC(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Kn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},AA=Kn("check","0 0 256 256",'<path d="M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"/>'),kA=Kn("check","0 0 256 256",'<path d="M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"/>'),nu=Kn("check","0 0 256 256",'<path d="M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"/>'),MA=Kn("check","0 0 256 256",'<path d="M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"/>'),LA=Kn("check","0 0 256 256",'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"/>'),EA=Kn("check","0 0 256 256",'<path d="M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z" opacity="0.2"/><path d="M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"/>'),xA="check",_s=Object.freeze(Object.defineProperty({__proto__:null,bold:MA,default:nu,duotone:EA,fill:LA,glyphName:xA,light:kA,regular:nu,thin:AA},Symbol.toStringTag,{value:"Module"})),$A=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},TA=$A("users","0 0 256 256",'<path d="M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"/>'),qn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},NA=qn("plus","0 0 256 256",'<path d="M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"/>'),HA=qn("plus","0 0 256 256",'<path d="M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"/>'),Yo=qn("plus","0 0 256 256",'<path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"/>'),PA=qn("plus","0 0 256 256",'<path d="M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"/>'),OA=qn("plus","0 0 256 256",'<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"/>'),IA=qn("plus","0 0 256 256",'<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"/><path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"/>'),RA="plus",DA=Object.freeze(Object.defineProperty({__proto__:null,bold:PA,default:Yo,duotone:IA,fill:OA,glyphName:RA,light:HA,regular:Yo,thin:NA},Symbol.toStringTag,{value:"Module"})),VA=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},BA=VA("user","0 0 256 256",'<path d="M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"/>'),ZA=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},fm=ZA("sign-out","0 0 256 256",'<path d="M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"/>');var FA=["title","aria-expanded","disabled"],zA={class:"nb-user-menu__avatar","aria-hidden":"true"},UA=["src"],WA={class:"nb-user-menu__identity-text"},jA={class:"nb-user-menu__identity-name"},KA={key:0,class:"nb-user-menu__identity-email"},qA=["title","aria-label","aria-expanded","disabled"],GA=["src"],YA={class:"nb-user-menu__label"},XA={class:"nb-user-menu__email"},JA=["disabled","onClick"],QA={class:"nb-user-menu__account-main"},ek={class:"nb-user-menu__account-email"},tk={key:0,class:"nb-user-menu__account-name"},ik={class:"nb-user-menu__brand"},rk={class:"nb-user-menu__brand-line"},sk={class:"nb-user-menu__brand-name"},nk="Nubisco Platform",ak=Oe({__name:"UserMenu",props:{user:{},accounts:{default:void 0},accountsUnknown:{type:Boolean,default:!1},showAccountActions:{type:Boolean,default:!0},showProfile:{type:Boolean,default:!0},brand:{default:"footer"},placement:{default:"right-end"},trigger:{default:"avatar"},disabled:{type:Boolean,default:!1}},emits:["switch","remove","switch-account","add-account","profile","sign-out","open","close"],setup(e,{expose:t,emit:i}){let r={en:{ACCOUNT_MENU:"Account menu",SIGNED_IN_AS:"Signed in as",SWITCH_ACCOUNT:"Switch account",USE_ANOTHER_ACCOUNT:"Use another account",REMOVE_ACCOUNT:"Sign this account out of this browser",PROFILE:"Profile",SIGN_OUT:"Sign out",poweredBy:"Powered by Nubisco Platform"},pt:{ACCOUNT_MENU:"Menu de conta",SIGNED_IN_AS:"Sessão iniciada como",SWITCH_ACCOUNT:"Mudar de conta",USE_ANOTHER_ACCOUNT:"Usar outra conta",REMOVE_ACCOUNT:"Terminar a sessão desta conta neste browser",PROFILE:"Perfil",SIGN_OUT:"Terminar sessão",poweredBy:"Fornecido pela Nubisco Platform"}},{t:s,te:n,locale:a}=gA({useScope:"global"});function o(ee){var Y;if(n(ee))return s(ee);let re=ee.slice(9);return((Y=r[String(a.value).toLowerCase().split("-")[0]])==null?void 0:Y[re])??r.en[re]??ee}let l=e,c=ii("nb-shell-sidebar-variant",null),u=J(()=>l.trigger==="identity"&&((c==null?void 0:c.value)??"verbose")==="verbose"),h=J(()=>{var ee;return((ee=l.user.name)==null?void 0:ee.trim())||l.user.email}),d=J(()=>{var re;let ee=(re=l.user.name)==null?void 0:re.trim();return ee?ee.toLowerCase()===l.user.email.trim().toLowerCase()?"":l.user.email:""}),f=Q(!1);Fe(()=>l.user.picture,()=>{f.value=!1});let g=J(()=>!!l.user.picture&&!f.value),_=J(()=>{let ee=o("userMenu.poweredBy"),re=ee.indexOf(nk);return re<0?{prefix:"",name:ee}:{prefix:ee.slice(0,re),name:ee.slice(re)}}),A=i,p=Q(null),S=Q(null),m=Q(!1),v=Q({});function k(ee){return Ow(ee)}function x(){var re;let ee=(re=p.value)==null?void 0:re.getBoundingClientRect();ee&&(l.placement==="top-start"?v.value={left:`${Math.round(ee.left)}px`,bottom:`${Math.round(window.innerHeight-ee.top+8)}px`}:v.value={left:`${Math.round(ee.right+12)}px`,bottom:`${Math.round(window.innerHeight-ee.bottom)}px`})}function M(){l.disabled||(m.value?F():(x(),m.value=!0,A("open")))}function F(){m.value&&(m.value=!1,A("close"))}function P(ee){ee.current||(F(),A("switch",ee))}function O(ee){A("remove",ee)}function R(){F(),A("switch-account")}function N(){F(),A("add-account")}function T(){F(),A("profile")}function W(){F(),A("sign-out")}function q(ee){var Y,_e;if(!m.value)return;let re=ee.target;(Y=p.value)!=null&&Y.contains(re)||(_e=S.value)!=null&&_e.contains(re)||F()}function ie(ee){ee.key==="Escape"&&F()}return ft(()=>{document.addEventListener("click",q),document.addEventListener("keydown",ie)}),Zi(()=>{document.removeEventListener("click",q),document.removeEventListener("keydown",ie)}),t({open:m,toggle:M,close:F}),(ee,re)=>(b(),$("div",{ref_key:"rootRef",ref:p,class:Le(["nb-user-menu",{"nb-user-menu--identity":u.value}])},[Ne(ee.$slots,"trigger",{open:m.value,toggle:M},()=>[u.value?(b(),$("button",{key:0,type:"button",class:"nb-user-menu__identity",title:l.user.email,"aria-haspopup":"menu","aria-expanded":m.value,disabled:e.disabled,onClick:M},[y("span",zA,[g.value?(b(),$("img",{key:0,class:"nb-user-menu__picture",src:l.user.picture??void 0,alt:"",onError:re[0]||(re[0]=Y=>f.value=!0)},null,40,UA)):(b(),$(be,{key:1},[ce(U(k(l.user)),1)],64))]),y("span",WA,[y("span",jA,U(h.value),1),d.value?(b(),$("span",KA,U(d.value),1)):j("",!0)])],8,FA)):(b(),$("button",{key:1,type:"button",class:"nb-user-menu__avatar",title:l.user.email,"aria-label":o("userMenu.ACCOUNT_MENU"),"aria-haspopup":"menu","aria-expanded":m.value,disabled:e.disabled,onClick:M},[g.value?(b(),$("img",{key:0,class:"nb-user-menu__picture",src:l.user.picture??void 0,alt:"",onError:re[1]||(re[1]=Y=>f.value=!0)},null,40,GA)):(b(),$(be,{key:1},[ce(U(k(l.user)),1)],64))],8,qA))]),(b(),fe(Or,{to:"body"},[X(Hp,{name:"nb-user-menu-pop"},{default:te(()=>[m.value?(b(),$("div",{key:0,ref_key:"panelRef",ref:S,class:"nb-user-menu__panel",style:mi(v.value),role:"menu"},[y("p",YA,U(o("userMenu.SIGNED_IN_AS")),1),y("p",XA,U(l.user.email),1),e.showAccountActions?(b(),$(be,{key:0},[re[2]||(re[2]=y("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),l.accounts&&l.accounts.length?(b(!0),$(be,{key:0},Ve(l.accounts,Y=>(b(),$("button",{key:Y.id,type:"button",role:"menuitem",class:Le(["nb-user-menu__account",{"nb-user-menu__account--current":Y.current}]),disabled:Y.current,onClick:_e=>P(Y)},[y("span",QA,[y("span",ek,U(Y.email),1),Y.name?(b(),$("span",tk,U(Y.name),1)):j("",!0)]),Y.current?(b(),fe(Ye,{key:0,name:le(nu),size:14,class:"nb-user-menu__check"},null,8,["name"])):Y.removable===!1?j("",!0):(b(),fe(Ye,{key:1,name:le(m0),size:13,class:"nb-user-menu__remove",title:o("userMenu.REMOVE_ACCOUNT"),onClick:lt(_e=>O(Y),["stop"])},null,8,["name","title","onClick"]))],10,JA))),128)):l.accountsUnknown?(b(),$("button",{key:1,type:"button",role:"menuitem",class:"nb-user-menu__action",onClick:R},[X(Ye,{name:le(TA),size:15},null,8,["name"]),ce(" "+U(o("userMenu.SWITCH_ACCOUNT")),1)])):j("",!0),y("button",{type:"button",role:"menuitem",class:"nb-user-menu__action",onClick:N},[X(Ye,{name:le(Yo),size:15},null,8,["name"]),ce(" "+U(o("userMenu.USE_ANOTHER_ACCOUNT")),1)])],64)):j("",!0),ee.$slots.default?(b(),$(be,{key:1},[re[3]||(re[3]=y("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),Ne(ee.$slots,"default",{close:F})],64)):j("",!0),re[5]||(re[5]=y("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),e.showProfile?(b(),$("button",{key:2,type:"button",role:"menuitem",class:"nb-user-menu__action",onClick:T},[X(Ye,{name:le(BA),size:15},null,8,["name"]),ce(" "+U(o("userMenu.PROFILE")),1)])):j("",!0),y("button",{type:"button",role:"menuitem",class:"nb-user-menu__action nb-user-menu__action--danger",onClick:W},[X(Ye,{name:le(fm),size:15},null,8,["name"]),ce(" "+U(o("userMenu.SIGN_OUT")),1)]),l.brand==="none"?j("",!0):(b(),$(be,{key:3},[re[4]||(re[4]=y("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),Ne(ee.$slots,"brand",{},()=>[y("p",ik,[X(O9,{size:13,class:"nb-user-menu__mark"}),y("span",rk,[ce(U(_.value.prefix),1),y("span",sk,U(_.value.name),1)])])])],64))],4)):j("",!0)]),_:3})]))],2))}}),ok=Symbol("NB_CHECKBOX_GROUP_CONTEXT"),lk={class:"nb-checkbox__control"},ck=["checked","disabled","indeterminate"],uk={class:"nb-checkbox__box"},hk={key:0,class:"nb-checkbox__check",viewBox:"0 0 10 8",fill:"none"},dk={key:1,class:"nb-checkbox__dash"},fk={key:0,class:"nb-checkbox__label"},Zf=ut(Oe({__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:"checkbox"},label:{}},emits:["update:modelValue"],setup(e,{emit:t}){let i=e,r=t,s=ii(ok,null),n=J(()=>i.disabled||!!(s!=null&&s.disabled.value));function a(o){n.value||r("update:modelValue",o.target.checked)}return(o,l)=>(b(),$("label",{class:Le(["nb-checkbox",{"nb-checkbox--disabled":n.value}])},[y("span",lk,[y("input",{type:"checkbox",checked:e.modelValue,disabled:n.value,indeterminate:e.indeterminate,class:"nb-checkbox__input",onChange:a},null,40,ck),y("span",uk,[e.modelValue&&!e.indeterminate?(b(),$("svg",hk,[...l[0]||(l[0]=[y("path",{d:"M1 4l3 3 5-6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):j("",!0),e.indeterminate?(b(),$("span",dk)):j("",!0)])]),e.label?(b(),$("span",fk,U(e.label),1)):Ne(o.$slots,"default",{key:1},void 0,!0)],2))}}),[["__scopeId","data-v-3f69d297"]]),au=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}(au||{}),ou=function(e){return e.Primary="primary",e.Secondary="secondary",e}(ou||{}),_k=["for"],pk=["id","name","disabled"],rc=ut(Oe({__name:"Switch",props:op({id:{type:String,default:()=>null},label:{type:String,default:""},size:{type:String,default:au.Medium,validator:e=>Object.values(au).includes(e)},verbose:Boolean,name:{type:String,required:!0},disabled:Boolean,variant:{type:String,default:ou.Primary,validator:e=>Object.values(ou).includes(e)}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){let t=hp(e,"modelValue"),i=e,r=Ih(i),s=J(()=>({"aria-disabled":i.disabled})),n=J(()=>({"nb-switch":!0,disabled:i.disabled})),a=J(()=>({"nb-switch-wrapper":!0,verbose:i.verbose,[i.size]:!0,[`nb-${i.variant}`]:!0}));return(o,l)=>(b(),fe($r,{id:le(r),class:Le(n.value),align:"center",gap:"sm"},{default:te(()=>[e.label?(b(),fe(Wn,{key:0,for:`${le(r)}-input`,disabled:e.disabled},{default:te(()=>[ce(U(e.label),1)]),_:1},8,["for","disabled"])):j("",!0),y("label",Jt({for:`${le(r)}-input`,class:a.value},s.value,{onClick:l[1]||(l[1]=lt(()=>{},["stop"]))}),[Zs(y("input",{id:`${le(r)}-input`,"onUpdate:modelValue":l[0]||(l[0]=c=>t.value=c),name:e.name,type:"checkbox",disabled:e.disabled},null,8,pk),[[Ip,t.value]]),l[2]||(l[2]=y("div",{class:"slider round"},null,-1))],16,_k)]),_:1},8,["id","class"]))}}),[["__scopeId","data-v-e4a5c8ba"]]);const Gn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},mk=Gn("arrows-down-up","0 0 256 256",'<path d="M114.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L76,198.34V48a4,4,0,0,1,8,0V198.34l25.17-25.17A4,4,0,0,1,114.83,173.17Zm96-96-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66L172,57.66V208a4,4,0,0,0,8,0V57.66l25.17,25.17a4,4,0,1,0,5.66-5.66Z"/>'),gk=Gn("arrows-down-up","0 0 256 256",'<path d="M116.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L74,193.51V48a6,6,0,0,1,12,0V193.51l21.76-21.75A6,6,0,0,1,116.24,171.76Zm96-96-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48L170,62.49V208a6,6,0,0,0,12,0V62.49l21.76,21.75a6,6,0,0,0,8.48-8.48Z"/>'),Ff=Gn("arrows-down-up","0 0 256 256",'<path d="M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"/>'),vk=Gn("arrows-down-up","0 0 256 256",'<path d="M120.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L68,179V48a12,12,0,0,1,24,0V179l11.51-11.52A12,12,0,0,1,120.49,167.51Zm96-96-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17L164,77V208a12,12,0,0,0,24,0V77l11.51,11.52a12,12,0,0,0,17-17Z"/>'),bk=Gn("arrows-down-up","0 0 256 256",'<path d="M119.39,172.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,48,168H72V48a8,8,0,0,1,16,0V168h24A8,8,0,0,1,119.39,172.94Zm94.27-98.6-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,144,88h24V208a8,8,0,0,0,16,0V88h24a8,8,0,0,0,5.66-13.66Z"/>'),yk=Gn("arrows-down-up","0 0 256 256",'<path d="M176,48V208H80V48Z" opacity="0.2"/><path d="M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"/>'),wk="arrows-down-up",Sk=Object.freeze(Object.defineProperty({__proto__:null,bold:vk,default:Ff,duotone:yk,fill:bk,glyphName:wk,light:gk,regular:Ff,thin:mk},Symbol.toStringTag,{value:"Module"})),Yn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Ck=Yn("arrow-up","0 0 256 256",'<path d="M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"/>'),Ak=Yn("arrow-up","0 0 256 256",'<path d="M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"/>'),zf=Yn("arrow-up","0 0 256 256",'<path d="M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"/>'),kk=Yn("arrow-up","0 0 256 256",'<path d="M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"/>'),Mk=Yn("arrow-up","0 0 256 256",'<path d="M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"/>'),Lk=Yn("arrow-up","0 0 256 256",'<path d="M200,112H56l72-72Z" opacity="0.2"/><path d="M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"/>'),Ek="arrow-up",xk=Object.freeze(Object.defineProperty({__proto__:null,bold:kk,default:zf,duotone:Lk,fill:Mk,glyphName:Ek,light:Ak,regular:zf,thin:Ck},Symbol.toStringTag,{value:"Module"})),Xn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},$k=Xn("arrow-down","0 0 256 256",'<path d="M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"/>'),Tk=Xn("arrow-down","0 0 256 256",'<path d="M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"/>'),Uf=Xn("arrow-down","0 0 256 256",'<path d="M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"/>'),Nk=Xn("arrow-down","0 0 256 256",'<path d="M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"/>'),Hk=Xn("arrow-down","0 0 256 256",'<path d="M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"/>'),Pk=Xn("arrow-down","0 0 256 256",'<path d="M200,144l-72,72L56,144Z" opacity="0.2"/><path d="M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"/>'),Ok="arrow-down",Ik=Object.freeze(Object.defineProperty({__proto__:null,bold:Nk,default:Uf,duotone:Pk,fill:Hk,glyphName:Ok,light:Tk,regular:Uf,thin:$k},Symbol.toStringTag,{value:"Module"}));var Rk={key:0,class:"nb-data-table__toolbar"},Dk=["inert","aria-hidden"],Vk={key:0},Bk={key:0,class:"nb-data-table__title"},Zk={key:1,class:"nb-data-table__description"},Fk=["inert","aria-hidden"],zk={key:1,class:"nb-data-table__batch",role:"region","aria-label":"Table batch actions"},Uk={class:"nb-data-table__batch-count"},Wk={class:"nb-data-table__batch-actions"},jk={class:"nb-data-table__scroll"},Kk=["aria-label","aria-busy"],qk={key:0,class:"nb-data-table__col-select"},Gk={key:1,class:"nb-data-table__col-actions"},Yk={class:"nb-data-table__head"},Xk={key:0,scope:"col",class:"nb-data-table__th nb-data-table__select-cell"},Jk=["aria-sort"],Qk=["onClick"],eM={class:"nb-data-table__th-label"},tM={key:1,class:"nb-data-table__th-label"},iM={key:1,scope:"col",class:"nb-data-table__th nb-data-table__actions-cell"},rM={class:"nb-data-table__body"},sM={key:0,class:"nb-data-table__td"},nM={key:1,class:"nb-data-table__td"},aM={key:1,class:"nb-data-table__state-row"},oM=["colspan"],lM={key:2,class:"nb-data-table__state-row"},cM=["colspan"],uM=["aria-selected","onClick"],hM=["checked","aria-label","onChange"],dM={key:1,class:"nb-data-table__footer"},_m=ut(Oe({__name:"DataTable",props:{columns:{},rows:{},rowKey:{},size:{default:nw.Medium},sortState:{default:null},selectable:{default:"none"},selected:{default:()=>[]},loading:{type:Boolean,default:!1},skeletonRows:{default:5},error:{default:void 0},emptyMessage:{default:void 0},stickyHeader:{type:Boolean,default:!0},zebra:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},title:{default:void 0},description:{default:void 0},ariaLabel:{default:void 0}},emits:["sort","update:selected","row-click"],setup(e,{emit:t}){let i=e,{layerProps:r}=Wo(),s=t,n=Pn(),a=`nb-data-table-select-${_r()}`,o=J(()=>i.size),l=J(()=>i.columns.filter(D=>!D.hidden)),c=J(()=>i.selectable!=="none"),u=J(()=>!!n["row-actions"]),h=J(()=>l.value.length+(c.value?1:0)+(u.value?1:0));function d(D){if(D.width!=null)return{width:typeof D.width=="number"?`${D.width}px`:D.width}}function f(D,G){return G[D.key]}function g(D){return D==null?"":String(D)}let _=D=>{var G,ne;return((ne=(G=D.column).render)==null?void 0:ne.call(G,D.row,f(D.column,D.row),D.rowIndex))??null};_.props=["column","row","rowIndex"];function A(D){let G=i.rowKey;return typeof G=="function"?G(D):D[G]}let p=J(()=>new Set(i.selected)),S=J(()=>i.selected),m=J(()=>i.selected.length);function v(D){return p.value.has(A(D))}let k=J(()=>i.rows.map(D=>A(D))),x=J(()=>k.value.length>0&&k.value.every(D=>p.value.has(D))),M=J(()=>!x.value&&k.value.some(D=>p.value.has(D))),F=Q(null),P=!1;function O(D){P=D.shiftKey}Fe(k,()=>{F.value=null});function R(D,G){let ne=A(D),pe=new Set(i.selected),Ae=!pe.has(ne),B=F.value,Z=z=>{Ae?pe.add(z):pe.delete(z)};if(P&&B!==null&&B!==G){let z=Math.min(B,G),oe=Math.max(B,G);for(let he=z;he<=oe;he++){let ue=i.rows[he];ue&&Z(A(ue))}}else Z(ne),F.value=G;P=!1,s("update:selected",[...pe])}function N(D){s("update:selected",[A(D)])}function T(){let D=new Set(i.selected);x.value?k.value.forEach(G=>D.delete(G)):k.value.forEach(G=>D.add(G)),s("update:selected",[...D])}function W(){s("update:selected",[])}let q=J(()=>i.selectable!=="none"&&!!n["batch-actions"]),ie=J(()=>q.value&&m.value>0),ee=J(()=>!!i.title||!!i.description||!!n.toolbar||!!n.search||!!n["toolbar-actions"]),re=J(()=>ee.value||q.value);function Y(D){return!!i.sortState&&i.sortState.key===D.key&&i.sortState.direction!=="none"}function _e(D){return Y(D)?i.sortState.direction==="asc"?"ascending":"descending":"none"}function me(D){return Y(D)?i.sortState.direction==="asc"?xk:Ik:Sk}function ge(D){return D==="asc"?"desc":D==="desc"?"none":"asc"}function $e(D){let G=i.sortState&&i.sortState.key===D.key?i.sortState.direction:"none";s("sort",{key:D.key,direction:ge(G)})}let Se=gi(),ae=J(()=>{var D;return!!((D=Se==null?void 0:Se.vnode.props)!=null&&D.onRowClick)});function se(D,G){s("row-click",D,G)}return(D,G)=>(b(),$("div",Jt({class:["nb-data-table",`nb-data-table--${e.size}`,{"nb-data-table--zebra":e.zebra},{"nb-data-table--sticky":e.stickyHeader},{"nb-data-table--fill":e.fill}]},le(r)),[re.value?(b(),$("div",Rk,[y("div",{class:"nb-data-table__toolbar-heading",inert:ie.value||void 0,"aria-hidden":ie.value||void 0},[Ne(D.$slots,"toolbar",{selectedCount:m.value},()=>[e.title||e.description?(b(),$("div",Vk,[e.title?(b(),$("h2",Bk,U(e.title),1)):j("",!0),e.description?(b(),$("p",Zk,U(e.description),1)):j("",!0)])):j("",!0)],!0)],8,Dk),D.$slots.search||D.$slots["toolbar-actions"]?(b(),$("div",{key:0,class:"nb-data-table__toolbar-tools",inert:ie.value||void 0,"aria-hidden":ie.value||void 0},[Ne(D.$slots,"search",{},void 0,!0),Ne(D.$slots,"toolbar-actions",{},void 0,!0)],8,Fk)):j("",!0),ie.value?(b(),$("div",zk,[y("span",Uk,U(m.value)+" selected ",1),y("div",Wk,[Ne(D.$slots,"batch-actions",{selectedKeys:S.value,clear:W},void 0,!0)]),X(vi,{class:"nb-data-table__batch-cancel",variant:"ghost",size:o.value,onClick:W},{default:te(()=>[...G[2]||(G[2]=[ce(" Cancel ",-1)])]),_:1},8,["size"])])):j("",!0)])):j("",!0),y("div",jk,[y("table",{class:"nb-data-table__table","aria-label":e.ariaLabel||e.title||void 0,"aria-busy":e.loading||void 0},[y("colgroup",null,[c.value?(b(),$("col",qk)):j("",!0),(b(!0),$(be,null,Ve(l.value,ne=>(b(),$("col",{key:`col-${ne.key}`,style:mi(d(ne))},null,4))),128)),u.value?(b(),$("col",Gk)):j("",!0)]),y("thead",Yk,[y("tr",null,[c.value?(b(),$("th",Xk,[e.selectable==="multiple"?(b(),fe(Zf,{key:0,"model-value":x.value,indeterminate:M.value,"aria-label":"Select all rows","onUpdate:modelValue":T},null,8,["model-value","indeterminate"])):j("",!0)])):j("",!0),(b(!0),$(be,null,Ve(l.value,ne=>(b(),$("th",{key:`th-${ne.key}`,scope:"col",class:Le(["nb-data-table__th",`nb-data-table__th--${ne.align||"left"}`,{"nb-data-table__th--sortable":ne.sortable},{"nb-data-table__th--sorted":Y(ne)}]),"aria-sort":ne.sortable?_e(ne):void 0},[ne.sortable?(b(),$("button",{key:0,type:"button",class:"nb-data-table__sort",onClick:pe=>$e(ne)},[y("span",eM,[Ne(D.$slots,`header-${ne.key}`,{column:ne},()=>[ce(U(ne.header),1)],!0)]),X(Ye,{name:me(ne),class:"nb-data-table__sort-icon","aria-hidden":"true"},null,8,["name"])],8,Qk)):(b(),$("span",tM,[Ne(D.$slots,`header-${ne.key}`,{column:ne},()=>[ce(U(ne.header),1)],!0)]))],10,Jk))),128)),u.value?(b(),$("th",iM,[...G[3]||(G[3]=[y("span",{class:"nb-sr-only"},"Row actions",-1)])])):j("",!0)])]),y("tbody",rM,[e.loading?(b(!0),$(be,{key:0},Ve(e.skeletonRows,ne=>(b(),$("tr",{key:`skeleton-${ne}`,class:"nb-data-table__row nb-data-table__row--skeleton"},[c.value?(b(),$("td",sM,[...G[4]||(G[4]=[y("span",{class:"nb-data-table__skeleton nb-data-table__skeleton--box"},null,-1)])])):j("",!0),(b(!0),$(be,null,Ve(l.value,pe=>(b(),$("td",{key:`sk-${ne}-${pe.key}`,class:"nb-data-table__td"},[...G[5]||(G[5]=[y("span",{class:"nb-data-table__skeleton"},null,-1)])]))),128)),u.value?(b(),$("td",nM,[...G[6]||(G[6]=[y("span",{class:"nb-data-table__skeleton nb-data-table__skeleton--box"},null,-1)])])):j("",!0)]))),128)):e.error?(b(),$("tr",aM,[y("td",{colspan:h.value,class:"nb-data-table__state nb-data-table__state--error"},[Ne(D.$slots,"error",{error:e.error},()=>[X($r,{is:"span",align:"center",justify:"center",gap:"xs",class:"nb-data-table__state-inner"},{default:te(()=>[X(Ye,{name:"warning-circle-fill","aria-hidden":"true"}),y("span",null,U(e.error),1)]),_:1})],!0)],8,oM)])):e.rows.length?(b(!0),$(be,{key:3},Ve(e.rows,(ne,pe)=>(b(),$("tr",{key:A(ne),class:Le(["nb-data-table__row",{"nb-data-table__row--selected":v(ne)},{"nb-data-table__row--clickable":ae.value}]),"aria-selected":e.selectable==="none"?void 0:v(ne),onClick:Ae=>se(ne,pe)},[c.value?(b(),$("td",{key:0,class:"nb-data-table__td nb-data-table__select-cell",onClick:G[0]||(G[0]=lt(()=>{},["stop"])),onMousedown:O,onKeydown:O},[e.selectable==="multiple"?(b(),fe(Zf,{key:0,"model-value":v(ne),"aria-label":`Select row ${pe+1}`,"onUpdate:modelValue":Ae=>R(ne,pe)},null,8,["model-value","aria-label","onUpdate:modelValue"])):(b(),$("input",{key:1,type:"radio",class:"nb-data-table__radio",name:a,checked:v(ne),"aria-label":`Select row ${pe+1}`,onChange:Ae=>N(ne)},null,40,hM))],32)):j("",!0),(b(!0),$(be,null,Ve(l.value,Ae=>(b(),$("td",{key:`td-${A(ne)}-${Ae.key}`,class:Le(["nb-data-table__td",`nb-data-table__td--${Ae.align||"left"}`,Ae.cellClass])},[Ne(D.$slots,`cell-${Ae.key}`,{row:ne,value:f(Ae,ne),column:Ae,rowIndex:pe},()=>[Ae.render?(b(),fe(_,{key:0,column:Ae,row:ne,"row-index":pe},null,8,["column","row","row-index"])):(b(),$(be,{key:1},[ce(U(g(f(Ae,ne))),1)],64))],!0)],2))),128)),u.value?(b(),$("td",{key:1,class:"nb-data-table__td nb-data-table__actions-cell",onClick:G[1]||(G[1]=lt(()=>{},["stop"]))},[Ne(D.$slots,"row-actions",{row:ne,rowIndex:pe},void 0,!0)])):j("",!0)],10,uM))),128)):(b(),$("tr",lM,[y("td",{colspan:h.value,class:"nb-data-table__state nb-data-table__state--empty"},[Ne(D.$slots,"empty",{},()=>[y("span",null,U(e.emptyMessage||"No data to display"),1)],!0)],8,cM)]))])],8,Kk)]),D.$slots.footer?(b(),$("div",dM,[Ne(D.$slots,"footer",{},void 0,!0)])):j("",!0)],16))}}),[["__scopeId","data-v-e2562ae7"]]);const fM=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Wf=fM("caret-up","0 0 256 256",'<path d="M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"/>');var _M=["id","aria-expanded","aria-disabled","aria-required","disabled"],pM=["id","aria-expanded","aria-disabled","aria-required","disabled"],mM={key:1,class:"nb-select__inner-label"},gM={key:0,class:"nb-select__asterisk","aria-hidden":"true"},vM=["aria-multiselectable"],bM=["aria-selected","aria-disabled","onMouseenter","onClick"],yM={key:0,class:"nb-select__option-check","aria-hidden":"true"},wM={key:0,viewBox:"0 0 10 8",fill:"none",width:"10",height:"8"},SM={class:"nb-select__option-label"},CM={key:0,class:"nb-select__empty"},AM=["placeholder","onKeydown"],sc=Oe({__name:"Select",props:{modelValue:{default:null},options:{default:()=>[]},multiple:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},createPlaceholder:{default:""},placeholder:{default:"Select…"},name:{default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:""},error:{default:""},warning:{default:""},helper:{default:""},variant:{default:"default"},size:{default:"md"}},emits:["update:modelValue","change","create"],setup(e,{expose:t,emit:i}){let r=e,s=i,n=Q("");function a(){let T=n.value.trim();T&&(s("create",T),n.value="")}let o=Q(!1),l=Q(!1),c=Q(-1),u=Q(null),h=Q(null),d=Q(null),f=Q({position:"fixed",top:"0px",left:"0px",width:"0px",zIndex:"9999"}),g=`nb-select-${_r()}`,_=J(()=>r.id??g),A=J(()=>r.modelValue==null?[]:Array.isArray(r.modelValue)?r.modelValue:[r.modelValue]),p=J(()=>{var W,q;if(A.value.length===0)return"";let T=r.options??[];return r.multiple?A.value.length===1?((W=T.find(ie=>ie.value===A.value[0]))==null?void 0:W.label)??String(A.value[0]):A.value.length===2?A.value.map(ie=>{var ee;return((ee=T.find(re=>re.value===ie))==null?void 0:ee.label)??String(ie)}).join(", "):`${A.value.length} selected`:((q=T.find(ie=>ie.value===A.value[0]))==null?void 0:q.label)??String(A.value[0])});function S(T){return A.value.includes(T)}function m(T){if(T.disabled)return;let W;if(r.multiple){let q=[...A.value],ie=q.indexOf(T.value);ie>=0?q.splice(ie,1):q.push(T.value),W=q}else W=T.value,x();s("update:modelValue",W),s("change",W)}function v(){var ee;if(!h.value)return;let T=h.value.getBoundingClientRect(),W=((ee=d.value)==null?void 0:ee.offsetHeight)??0,q=window.innerHeight-T.bottom,ie=T.top;f.value={position:"fixed",top:W>0&&q<W&&ie>q?`${T.top-W}px`:`${T.bottom}px`,left:`${T.left}px`,width:`${T.width}px`,zIndex:"9999"}}function k(){if(r.disabled)return;o.value=!0,v();let T=r.options??[];c.value=A.value.length>0?Math.max(0,T.findIndex(W=>W.value===A.value[0])):-1,Di(()=>{v(),R()})}function x(){o.value=!1,c.value=-1}function M(){o.value?x():k()}function F(T){var ee,re;let W=T.target,q=((ee=u.value)==null?void 0:ee.contains(W))??!1,ie=((re=d.value)==null?void 0:re.contains(W))??!1;!q&&!ie&&x()}function P(){o.value&&v()}Fe(o,T=>{T?(document.addEventListener("mousedown",F),window.addEventListener("scroll",P,!0),window.addEventListener("resize",P)):(document.removeEventListener("mousedown",F),window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P))}),Zi(()=>{document.removeEventListener("mousedown",F),window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P)});function O(T){let W=r.options??[];if(!o.value){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),k());return}T.key==="Escape"?(x(),T.preventDefault()):T.key==="Tab"?x():T.key==="ArrowDown"?(T.preventDefault(),c.value=Math.min(c.value+1,W.length-1),R()):T.key==="ArrowUp"?(T.preventDefault(),c.value=Math.max(c.value-1,0),R()):(T.key==="Enter"||T.key===" ")&&c.value>=0&&(T.preventDefault(),m(W[c.value]))}function R(){Di(()=>{var T;!d.value||c.value<0||((T=d.value.querySelectorAll(".nb-select__option")[c.value])==null||T.scrollIntoView({block:"nearest"}))})}let N=J(()=>["nb-select",`nb-select--${r.variant}`,`nb-select--${r.size}`,{"nb-select--open":o.value,"nb-select--focused":l.value&&!o.value,"nb-select--error":!!r.error,"nb-select--warning":!r.error&&!!r.warning,"nb-select--multiple":r.multiple}]);return t({open:k,close:x}),(T,W)=>(b(),$(be,null,[y("div",{ref_key:"rootRef",ref:u,class:Le(N.value),onKeydown:O},[e.variant==="default"?(b(),$(be,{key:0},[T.$slots.label?Ne(T.$slots,"label",{key:0}):e.label?(b(),fe(Wn,{key:1,for:_.value,required:e.required,disabled:e.disabled},{default:te(()=>[ce(U(e.label),1)]),_:1},8,["for","required","disabled"])):j("",!0),y("button",{id:_.value,ref_key:"triggerRef",ref:h,type:"button",class:"nb-select__trigger",role:"combobox","aria-expanded":o.value,"aria-haspopup":"listbox","aria-disabled":e.disabled||void 0,"aria-required":e.required||void 0,disabled:e.disabled||void 0,onClick:M,onFocus:W[0]||(W[0]=q=>l.value=!0),onBlur:W[1]||(W[1]=q=>l.value=!1)},[y("span",{class:Le(["nb-select__value",{"nb-select__value--placeholder":!p.value}])},[p.value?Ne(T.$slots,"value",{key:0,values:A.value},()=>[ce(U(p.value),1)]):(b(),$(be,{key:1},[ce(U(e.placeholder),1)],64))],2),e.error?(b(),fe(rt,{key:0,variant:"error","icon-only":!0,class:"nb-select__status-icon"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:1,variant:"warning","icon-only":!0,class:"nb-select__status-icon"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):j("",!0),X($r,{align:"center",justify:"center",class:"nb-select__caret"},{default:te(()=>[X(Ye,{name:o.value?le(Wf):le(af),size:16},null,8,["name"])]),_:1})],40,_M),e.error?(b(),fe(rt,{key:2,variant:"error",class:"nb-select__message"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:3,variant:"warning",class:"nb-select__message"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):e.helper?(b(),fe(rt,{key:4,variant:"helper",class:"nb-select__message"},{default:te(()=>[ce(U(e.helper),1)]),_:1})):j("",!0)],64)):e.variant==="fluid"?(b(),$(be,{key:1},[y("button",{id:_.value,ref_key:"triggerRef",ref:h,type:"button",class:"nb-select__trigger",role:"combobox","aria-expanded":o.value,"aria-haspopup":"listbox","aria-disabled":e.disabled||void 0,"aria-required":e.required||void 0,disabled:e.disabled||void 0,onClick:M,onFocus:W[2]||(W[2]=q=>l.value=!0),onBlur:W[3]||(W[3]=q=>l.value=!1)},[e.label||T.$slots.label?(b(),fe($r,{key:0,dir:"row",align:"center",gap:"xs",class:"nb-select__inner-header"},{default:te(()=>[T.$slots.label?Ne(T.$slots,"label",{key:0}):(b(),$("label",mM,[ce(U(e.label)+" ",1),e.required?(b(),$("span",gM,"*")):j("",!0)])),e.helper&&!e.error&&!e.warning?(b(),fe(rt,{key:2,variant:"helper","icon-only":!0,class:"nb-select__inner-message"},{default:te(()=>[ce(U(e.helper),1)]),_:1})):j("",!0)]),_:3})):j("",!0),X($r,{dir:"row",align:"end",flex:"",class:"nb-select__value-row"},{default:te(()=>[y("span",{class:Le(["nb-select__value",{"nb-select__value--placeholder":!p.value}])},[p.value?Ne(T.$slots,"value",{key:0,values:A.value},()=>[ce(U(p.value),1)]):(b(),$(be,{key:1},[ce(U(e.placeholder),1)],64))],2),X($r,{align:"center",justify:"center",class:"nb-select__caret"},{default:te(()=>[X(Ye,{name:o.value?le(Wf):le(af),size:16},null,8,["name"])]),_:1})]),_:3})],40,pM),e.error?(b(),fe(rt,{key:0,variant:"error",class:"nb-select__fluid-message"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:1,variant:"warning",class:"nb-select__fluid-message"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):j("",!0)],64)):j("",!0)],34),(b(),fe(Or,{to:"body"},[o.value?(b(),$("div",{key:0,ref_key:"dropdownRef",ref:d,class:"nb-select__dropdown",style:mi(f.value),role:"listbox","aria-multiselectable":e.multiple||void 0},[(b(!0),$(be,null,Ve(e.options,(q,ie)=>(b(),$("div",{key:q.value,class:Le(["nb-select__option",{"nb-select__option--selected":S(q.value),"nb-select__option--highlighted":c.value===ie,"nb-select__option--disabled":q.disabled}]),role:"option","aria-selected":S(q.value),"aria-disabled":q.disabled||void 0,onMouseenter:ee=>c.value=ie,onClick:ee=>m(q)},[e.multiple?(b(),$("span",yM,[S(q.value)?(b(),$("svg",wM,[...W[7]||(W[7]=[y("path",{d:"M1 4l3 3 5-6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):j("",!0)])):j("",!0),y("span",SM,[Ne(T.$slots,"option",{option:q},()=>[ce(U(q.label),1)])])],42,bM))),128)),!e.options||e.options.length===0?(b(),$("div",CM," No options ")):j("",!0),e.creatable?(b(),$("div",{key:1,class:"nb-select__create",onMousedown:W[6]||(W[6]=lt(()=>{},["prevent"]))},[Zs(y("input",{"onUpdate:modelValue":W[4]||(W[4]=q=>n.value=q),type:"text",class:"nb-select__create-input",placeholder:e.createPlaceholder||"Add new…",onKeydown:[is(lt(a,["prevent"]),["enter"]),W[5]||(W[5]=lt(()=>{},["stop"]))]},null,40,AM),[[u0,n.value]])],32)):j("",!0)],12,vM)):j("",!0)]))],64))}}),kM=["width","height","aria-label"],MM={key:0},LM=["x1","x2","y1","y2"],EM={class:"nb-chart__axis"},xM=["x","y"],$M={class:"nb-chart__axis"},TM=["x","y"],NM=["x1","x2","y1","y2"],HM=["y","transform"],PM=["x","y"],OM=["d","fill"],IM=["d","stroke"],RM=["cx","cy","r","fill","onMousedown","onContextmenu"],DM={key:5},VM=["x1","x2","y1","y2"],BM=["x1","x2","y1","y2"],ZM="var(--nb-c-surface)",FM=ut(Oe({__name:"InterpolationChart",props:{modelValue:{default:()=>[]},inputLabel:{default:void 0},outputLabel:{default:void 0},inputMin:{default:0},inputMax:{default:100},outputMin:{default:0},outputMax:{default:100},editable:{type:Boolean,default:!0},minPoints:{default:2},inputStep:{default:0},outputStep:{default:0},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:t}){let i=e,r=t,s=J(()=>Bh(0,i.colors)),n={top:16,right:16,bottom:32,left:48},a=Q(null),o=Fh(a,{width:480,height:240}),l=J(()=>Math.max(0,o.value.width-n.left-n.right)),c=J(()=>Math.max(0,o.value.height-n.top-n.bottom)),u=J(()=>[...i.modelValue].sort((ae,se)=>ae.input-se.input)),h=J(()=>[i.inputMin,i.inputMax]),d=J(()=>{let ae=u.value.map(se=>se.output);return Zh(Math.min(i.outputMin,...ae),Math.max(i.outputMax,...ae),.05)}),f=J(()=>b0(h.value,[n.left,o.value.width-n.right])),g=J(()=>b0(d.value,[o.value.height-n.bottom,n.top])),_=J(()=>f.value.ticks(6)),A=J(()=>g.value.ticks(5)),p=ae=>{let[se,D]=h.value,[G,ne]=f.value.range;return se+(ae-G)/(ne-G)*(D-se)},S=ae=>{let[se,D]=d.value,[G,ne]=g.value.range;return se+(ae-G)/(ne-G)*(D-se)},m=(ae,se)=>!se||se<=0?ae:Math.round(ae/se)*se,v=(ae,se,D)=>Math.max(se,Math.min(D,ae)),k=(ae,se=1)=>Math.round(ae*10**se)/10**se,x=J(()=>{let ae=u.value;return ae.length<2?"":ae.map((se,D)=>`${D===0?"M":"L"}${f.value(se.input)},${g.value(se.output)}`).join(" ")}),M=J(()=>{let ae=u.value;if(ae.length<2)return"";let se=o.value.height-n.bottom;return`${ae.map((D,G)=>`${G===0?"M":"L"}${f.value(D.input)},${g.value(D.output)}`).join(" ")} L${f.value(ae[ae.length-1].input)},${se} L${f.value(ae[0].input)},${se} Z`}),F=Q(null),P=Q(null);function O(ae){r("update:modelValue",[...ae].sort((se,D)=>se.input-D.input))}function R(ae,se){i.editable&&(F.value=ae,window.addEventListener("mousemove",T),window.addEventListener("mouseup",W))}function N(ae){var G;let se=(G=a.value)==null?void 0:G.querySelector("svg");if(!se)return null;let D=se.getBoundingClientRect();return{px:ae.clientX-D.left,py:ae.clientY-D.top}}function T(ae){if(F.value===null)return;let se=N(ae);if(!se)return;let D=p(se.px),G=S(se.py),ne=[...u.value],pe=F.value,Ae=i.inputStep>0?i.inputStep:.1;ne[pe]={input:k(m(v(D,pe>0?ne[pe-1].input+Ae:i.inputMin,pe<ne.length-1?ne[pe+1].input-Ae:i.inputMax),i.inputStep)),output:k(m(v(G,i.outputMin,i.outputMax),i.outputStep))},O(ne)}function W(){F.value=null,window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",W)}function q(ae){if(F.value!==null)return;let se=N(ae);if(!se)return;let D=-1,G=1/0;for(let ne=0;ne<u.value.length;ne++){let pe=u.value[ne],Ae=f.value(pe.input)-se.px,B=g.value(pe.output)-se.py,Z=Math.sqrt(Ae*Ae+B*B);Z<G&&(G=Z,D=ne)}P.value=G<20?D:null,_e.value={x:se.px+12,y:se.py-12}}function ie(){F.value===null&&(P.value=null)}function ee(){F.value!==null&&(F.value=null,window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",W))}function re(ae){if(!i.editable)return;let se=N(ae);if(!se)return;let D=p(se.px),G=S(se.py);if(D<i.inputMin||D>i.inputMax||G<i.outputMin||G>i.outputMax)return;let ne=k(m(v(D,i.inputMin,i.inputMax),i.inputStep)),pe=k(m(v(G,i.outputMin,i.outputMax),i.outputStep));O([...u.value,{input:ne,output:pe}])}function Y(ae){i.editable&&(u.value.length<=i.minPoints||O(u.value.filter((se,D)=>D!==ae)))}Zi(()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",W)});let _e=Q({x:0,y:0}),me=J(()=>P.value!==null||F.value!==null),ge=J(()=>{let ae=F.value??P.value;return ae===null?"":`Point ${ae+1}`}),$e=J(()=>{let ae=F.value??P.value;if(ae===null||ae>=u.value.length)return[];let se=u.value[ae];return[{label:i.inputLabel||"Input",value:Se(se.input),color:s.value},{label:i.outputLabel||"Output",value:Se(se.output),color:s.value}]}),Se=ae=>Number.isInteger(ae)?String(ae):ae.toFixed(1);return(ae,se)=>(b(),fe(Dh,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":!1},{default:te(()=>[y("div",{ref_key:"root",ref:a,class:"nb-interpolation-chart"},[(b(),$("svg",{width:le(o).width,height:le(o).height,class:"nb-chart__svg",role:"img","aria-label":e.title||"Interpolation chart",onMousemove:q,onMouseleave:ie,onMouseup:ee,onDblclick:re,onContextmenu:se[0]||(se[0]=lt(()=>{},["prevent"]))},[e.showGrid&&le(o).width>0?(b(),$("g",MM,[(b(!0),$(be,null,Ve(A.value,D=>(b(),$("line",{key:`grid-${D}`,class:"nb-chart__gridline",x1:n.left,x2:le(o).width-n.right,y1:g.value(D),y2:g.value(D)},null,8,LM))),128))])):j("",!0),y("g",EM,[(b(!0),$(be,null,Ve(A.value,D=>(b(),$("text",{key:`yt-${D}`,x:n.left-6,y:g.value(D),"text-anchor":"end","dominant-baseline":"middle"},U(Se(D)),9,xM))),128))]),y("g",$M,[(b(!0),$(be,null,Ve(_.value,D=>(b(),$("text",{key:`xt-${D}`,x:f.value(D),y:le(o).height-n.bottom+14,"text-anchor":"middle"},U(Se(D)),9,TM))),128))]),y("line",{class:"nb-chart__axis-line",x1:n.left,x2:le(o).width-n.right,y1:le(o).height-n.bottom,y2:le(o).height-n.bottom},null,8,NM),e.outputLabel?(b(),$("text",{key:1,class:"nb-chart__axis-label",x:12,y:n.top+c.value/2,"text-anchor":"middle",transform:`rotate(-90, 12, ${n.top+c.value/2})`},U(e.outputLabel),9,HM)):j("",!0),e.inputLabel?(b(),$("text",{key:2,class:"nb-chart__axis-label",x:n.left+l.value/2,y:le(o).height-2,"text-anchor":"middle"},U(e.inputLabel),9,PM)):j("",!0),u.value.length>=2?(b(),$("path",{key:3,class:"nb-interpolation-chart__area",d:M.value,fill:s.value,opacity:"0.12"},null,8,OM)):j("",!0),u.value.length>=2?(b(),$("path",{key:4,class:"nb-interpolation-chart__line",d:x.value,stroke:s.value,fill:"none","stroke-width":"2","stroke-linejoin":"round","stroke-linecap":"round"},null,8,IM)):j("",!0),(b(!0),$(be,null,Ve(u.value,(D,G)=>(b(),$("circle",{key:`pt-${G}`,class:Le(["nb-interpolation-chart__point",{"nb-interpolation-chart__point--editable":e.editable,"nb-interpolation-chart__point--dragging":F.value===G,"nb-interpolation-chart__point--hover":P.value===G&&F.value===null}]),cx:f.value(D.input),cy:g.value(D.output),r:F.value===G?7:P.value===G?6:5,fill:s.value,stroke:ZM,"stroke-width":"2",onMousedown:lt(ne=>R(G,ne),["prevent"]),onContextmenu:lt(ne=>Y(G),["prevent"])},null,42,RM))),128)),F.value===null?j("",!0):(b(),$("g",DM,[y("line",{class:"nb-interpolation-chart__crosshair",x1:f.value(u.value[F.value].input),x2:f.value(u.value[F.value].input),y1:n.top,y2:le(o).height-n.bottom},null,8,VM),y("line",{class:"nb-interpolation-chart__crosshair",x1:n.left,x2:le(o).width-n.right,y1:g.value(u.value[F.value].output),y2:g.value(u.value[F.value].output)},null,8,BM)]))],40,kM)),X(Vh,{visible:e.showTooltip&&me.value,x:_e.value.x,y:_e.value.y,title:ge.value,rows:$e.value},null,8,["visible","x","y","title","rows"])],512)]),_:1},8,["title","subtitle","height"]))}}),[["__scopeId","data-v-676875de"]]),zM=["width","height","aria-label"],UM={key:0},WM=["x1","x2","y1","y2"],jM={class:"nb-chart__axis"},KM=["x","y"],qM={class:"nb-chart__axis"},GM=["x","y"],YM=["x1","x2","y1","y2"],XM=["d","fill"],JM=["d","stroke"],QM=["cx","cy","r","fill"],eL=["x1","x2","y1","y2"],tL=ut(Oe({__name:"LineChart",props:{series:{default:()=>[]},area:{type:Boolean,default:!1},points:{type:Boolean,default:!1},curve:{default:"smooth"},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>v0}},setup(e){let t=e,i={top:12,right:16,bottom:28,left:44},r=Q(null),s=Fh(r,{width:480,height:240}),n=J(()=>t.series.map((k,x)=>({name:k.name,data:k.data,color:k.color??Bh(x,t.colors)}))),a=J(()=>{var k;return(((k=t.series[0])==null?void 0:k.data)??[]).map(x=>x.x)}),o=J(()=>{let k=t.series.flatMap(x=>x.data.map(M=>M.y));return k.length?Zh(Math.min(0,...k),Math.max(...k),.1):[0,1]}),l=J(()=>b0(o.value,[Math.max(i.top,s.value.height-i.bottom),i.top])),c=J(()=>l.value.ticks(5)),u=J(()=>Math.max(0,s.value.width-i.left-i.right)),h=k=>{let x=a.value.length;return x<=1?i.left+u.value/2:i.left+k/(x-1)*u.value},d=J(()=>{let k=a.value,x=Math.max(1,Math.ceil(k.length/6)),M=[];for(let F=0;F<k.length;F+=x)M.push({index:F,value:k[F]});return k.length&&M[M.length-1].index!==k.length-1&&M.push({index:k.length-1,value:k[k.length-1]}),M}),f=k=>k.length?_(k.map((x,M)=>[h(M),l.value(x.y)]),t.curve):"",g=k=>{if(!k.length)return"";let x=k.map((F,P)=>[h(P),l.value(F.y)]),M=s.value.height-i.bottom;return`${_(x,t.curve)} L${x[x.length-1][0]},${M} L${x[0][0]},${M} Z`},_=(k,x)=>{if(!k.length)return"";if(k.length===1)return`M${k[0][0]},${k[0][1]}`;if(x==="linear")return k.map((P,O)=>`${O===0?"M":"L"}${P[0]},${P[1]}`).join(" ");if(x==="step"){let P=`M${k[0][0]},${k[0][1]}`;for(let O=1;O<k.length;O++){let[R,N]=k[O-1],[T,W]=k[O],q=(R+T)/2;P+=` L${q},${N} L${q},${W} L${T},${W}`}return P}let M=.2,F=`M${k[0][0]},${k[0][1]}`;for(let P=0;P<k.length-1;P++){let O=k[P-1]??k[P],R=k[P],N=k[P+1],T=k[P+2]??N,W=R[0]+(N[0]-O[0])*M,q=R[1]+(N[1]-O[1])*M,ie=N[0]-(T[0]-R[0])*M,ee=N[1]-(T[1]-R[1])*M;F+=` C${W},${q} ${ie},${ee} ${N[0]},${N[1]}`}return F},A=k=>Math.abs(k)>=1e3?`${(k/1e3).toFixed(1)}k`:Number.isInteger(k)?String(k):k.toFixed(1),p=Q(null),S=Q({x:0,y:0}),m=k=>{let x=k.currentTarget.getBoundingClientRect(),M=k.clientX-x.left,F=a.value.length;if(!F)return;let P=(M-i.left)/Math.max(1,u.value);p.value=Math.round(Math.min(1,Math.max(0,P))*(F-1)),S.value={x:k.clientX-x.left+12,y:k.clientY-x.top+12}},v=J(()=>p.value===null?[]:n.value.map(k=>{var x;return{label:k.name,value:A(((x=k.data[p.value])==null?void 0:x.y)??0),color:k.color}}));return(k,x)=>(b(),fe(Dh,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&n.value.length>0},{legend:te(()=>[X(z4,{items:n.value.map(M=>({label:M.name,color:M.color}))},null,8,["items"])]),default:te(()=>[y("div",{ref_key:"root",ref:r,class:"nb-line-chart"},[(b(),$("svg",{width:le(s).width,height:le(s).height,class:"nb-chart__svg",role:"img","aria-label":e.title||"Line chart",onMouseleave:x[0]||(x[0]=M=>p.value=null),onMousemove:m},[e.showGrid&&le(s).width>0?(b(),$("g",UM,[(b(!0),$(be,null,Ve(c.value,M=>(b(),$("line",{key:`grid-${M}`,class:"nb-chart__gridline",x1:i.left,x2:le(s).width-i.right,y1:l.value(M),y2:l.value(M)},null,8,WM))),128))])):j("",!0),y("g",jM,[(b(!0),$(be,null,Ve(c.value,M=>(b(),$("text",{key:`yt-${M}`,x:i.left-6,y:l.value(M),"text-anchor":"end","dominant-baseline":"middle"},U(A(M)),9,KM))),128))]),y("g",qM,[(b(!0),$(be,null,Ve(d.value,(M,F)=>(b(),$("text",{key:`xt-${F}`,x:h(M.index),y:le(s).height-i.bottom+14,"text-anchor":"middle"},U(M.value),9,GM))),128))]),y("line",{class:"nb-chart__axis-line",x1:i.left,x2:le(s).width-i.right,y1:le(s).height-i.bottom,y2:le(s).height-i.bottom},null,8,YM),(b(!0),$(be,null,Ve(n.value,(M,F)=>(b(),$("g",{key:`s-${F}`},[e.area?(b(),$("path",{key:0,class:"nb-chart__area",d:g(M.data),fill:M.color,opacity:"0.18"},null,8,XM)):j("",!0),y("path",{class:"nb-chart__line",d:f(M.data),stroke:M.color,fill:"none","stroke-width":"2","stroke-linejoin":"round","stroke-linecap":"round"},null,8,JM),e.points?(b(!0),$(be,{key:1},Ve(M.data,(P,O)=>(b(),$("circle",{key:`p-${F}-${O}`,cx:h(O),cy:l.value(P.y),r:p.value===O?4:3,fill:M.color,class:"nb-chart__point"},null,8,QM))),128)):j("",!0)]))),128)),p.value===null?j("",!0):(b(),$("line",{key:1,class:"nb-chart__hover-line",x1:h(p.value),x2:h(p.value),y1:i.top,y2:le(s).height-i.bottom},null,8,eL))],40,zM)),X(Vh,{visible:e.showTooltip&&p.value!==null,x:S.value.x,y:S.value.y,title:p.value===null?"":String(a.value[p.value]),rows:v.value},null,8,["visible","x","y","title","rows"])],512)]),_:1},8,["title","subtitle","height","show-legend"]))}}),[["__scopeId","data-v-728da300"]]),iL=["for","title"],rL={class:"nb-field__control"},sL={key:2,class:"nb-field__hint"},Gh=ut(Oe({__name:"Field",props:{label:{default:void 0},hint:{default:void 0},orientation:{default:"row"},align:{default:"center"},control:{default:"fill"},labelFor:{default:void 0}},setup(e){let t=e,i=_r(),r=J(()=>t.labelFor??i);return(s,n)=>(b(),$("div",{class:Le(["nb-field",`nb-field--${e.orientation}`,`nb-field--align-${e.align}`,`nb-field--control-${e.control}`])},[s.$slots.label?Ne(s.$slots,"label",{key:0},void 0,!0):e.label?(b(),$("label",{key:1,class:"nb-field__label",for:r.value,title:e.label},U(e.label),9,iL)):j("",!0),y("div",rL,[Ne(s.$slots,"default",{id:r.value},void 0,!0)]),e.hint||s.$slots.hint?(b(),$("div",sL,[Ne(s.$slots,"hint",{},()=>[ce(U(e.hint),1)],!0)])):j("",!0)],2))}}),[["__scopeId","data-v-aae1dce4"]]),nL={key:0,class:"nb-text-input__overlay-wrap"},aL=["innerHTML"],oL=["id","value","placeholder","disabled","readonly","name","maxlength"],lL=["id","value","placeholder","disabled","readonly","name","maxlength"],cL=["id","placeholder","disabled","readonly","name","maxlength","rows"],uL=["id","type","placeholder","disabled","readonly","required","name","min","max","step","maxlength"],hL={key:2,class:"nb-text-input__actions"},dL={key:0,class:"nb-text-input__inner-header"},fL=["for"],_L={key:0,class:"nb-text-input__asterisk","aria-hidden":"true"},pL=["id","type","placeholder","disabled","readonly","required","name","min","max","step","maxlength"],ul=ut(Oe({inheritAttrs:!1,__name:"TextInput",props:op({type:{default:"text"},min:{default:void 0},max:{default:void 0},step:{default:void 0},maxlength:{default:void 0},multiline:{type:Boolean,default:!1},rows:{default:3},highlight:{type:Function,default:void 0},readonly:{type:Boolean,default:!1},placeholder:{default:""},name:{default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:""},error:{default:""},warning:{default:""},helper:{default:""},variant:{default:"default"},size:{default:"md"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){let i=e,r=hp(e,"modelValue"),s=Q(null),n=Q(null);t({focus:()=>{var A;return(A=s.value)==null?void 0:A.focus()},blur:()=>{var A;return(A=s.value)==null?void 0:A.blur()},nativeEl:s});let a=Q(!1),o=`nb-input-${_r()}`,l=J(()=>i.id??o),c=J(()=>!!i.highlight),u=J(()=>{if(!i.highlight)return"";let A=String(r.value??"");return i.highlight(A)+`
|
|
42
|
+
`});function h(){n.value&&s.value&&(n.value.scrollTop=s.value.scrollTop)}Fe(u,()=>Di(h));let d=J(()=>i.error?"error":i.warning?"warning":"helper"),f=J(()=>i.error??i.warning??i.helper??""),g=J(()=>!!f.value),_=J(()=>({"nb-text-input__field-wrapper--focused":a.value,"nb-text-input__field-wrapper--error":!!i.error,"nb-text-input__field-wrapper--warning":!i.error&&!!i.warning,"nb-text-input__field-wrapper--disabled":i.disabled,"nb-text-input__field-wrapper--readonly":i.readonly,"nb-text-input__field-wrapper--overlay":c.value,"nb-text-input__field-wrapper--multiline":i.multiline}));return(A,p)=>(b(),fe($r,{dir:"col",class:Le(["nb-text-input",`nb-text-input--${e.variant}`,`nb-text-input--${e.size}`,{"nb-text-input--multiline":e.multiline}])},{default:te(()=>[e.variant==="default"?(b(),$(be,{key:0},[A.$slots.label?Ne(A.$slots,"label",{key:0},void 0,!0):e.label?(b(),fe(Wn,{key:1,for:l.value,required:e.required,disabled:e.disabled},{default:te(()=>[ce(U(e.label),1)]),_:1},8,["for","required","disabled"])):j("",!0),y("div",{class:Le(["nb-text-input__field-wrapper",_.value])},[Ne(A.$slots,"leading",{},void 0,!0),c.value?(b(),$("div",nL,[y("div",{ref_key:"mirrorRef",ref:n,class:"nb-text-input__mirror","aria-hidden":"true",innerHTML:u.value},null,8,aL),e.multiline?(b(),$("textarea",Jt({key:0,id:l.value,ref_key:"nativeRef",ref:s},A.$attrs,{class:"nb-text-input__field--transparent",value:r.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:"false",autocomplete:"off",autocorrect:"off",onInput:p[0]||(p[0]=S=>r.value=S.target.value),onFocus:p[1]||(p[1]=S=>a.value=!0),onBlur:p[2]||(p[2]=S=>a.value=!1),onScroll:h}),null,16,oL)):(b(),$("input",Jt({key:1,id:l.value,ref_key:"nativeRef",ref:s},A.$attrs,{type:"text",class:"nb-text-input__field--transparent",value:r.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:"false",onInput:p[3]||(p[3]=S=>r.value=S.target.value),onFocus:p[4]||(p[4]=S=>a.value=!0),onBlur:p[5]||(p[5]=S=>a.value=!1)}),null,16,lL))])):(b(),$(be,{key:1},[e.multiline?Zs((b(),$("textarea",Jt({key:0,id:l.value,ref_key:"nativeRef",ref:s},A.$attrs,{"onUpdate:modelValue":p[6]||(p[6]=S=>r.value=S),class:"nb-text-input__field",placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,rows:e.rows,onFocus:p[7]||(p[7]=S=>a.value=!0),onBlur:p[8]||(p[8]=S=>a.value=!1)}),null,16,cL)),[[u0,r.value]]):Zs((b(),$("input",Jt({key:1,id:l.value,ref_key:"nativeRef",ref:s},A.$attrs,{"onUpdate:modelValue":p[9]||(p[9]=S=>r.value=S),class:"nb-text-input__field",type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:p[10]||(p[10]=S=>a.value=!0),onBlur:p[11]||(p[11]=S=>a.value=!1)}),null,16,uL)),[[a2,r.value]])],64)),Ne(A.$slots,"trailing",{},void 0,!0),A.$slots.actions?(b(),$("div",hL,[Ne(A.$slots,"actions",{},void 0,!0)])):j("",!0)],2),g.value?(b(),fe(rt,{key:2,variant:d.value,class:"nb-text-input__message"},{default:te(()=>[ce(U(f.value),1)]),_:1},8,["variant"])):j("",!0),Ne(A.$slots,"dropdown",{},void 0,!0)],64)):e.variant==="fluid"?(b(),$("div",{key:1,class:Le(["nb-text-input__field-wrapper",_.value])},[e.label||A.$slots.label?(b(),$("div",dL,[A.$slots.label?Ne(A.$slots,"label",{key:0},void 0,!0):(b(),$("label",{key:1,for:l.value,class:Le(["nb-text-input__inner-label",{"nb-text-input__inner-label--required":e.required}])},[ce(U(e.label)+" ",1),e.required?(b(),$("span",_L,"*")):j("",!0)],10,fL)),g.value?(b(),fe(rt,{key:2,variant:d.value,"icon-only":"",class:"nb-text-input__inner-message"},{default:te(()=>[ce(U(f.value),1)]),_:1},8,["variant"])):j("",!0)])):j("",!0),Zs(y("input",Jt({id:l.value,ref_key:"nativeRef",ref:s},A.$attrs,{"onUpdate:modelValue":p[12]||(p[12]=S=>r.value=S),class:"nb-text-input__field",type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:p[13]||(p[13]=S=>a.value=!0),onBlur:p[14]||(p[14]=S=>a.value=!1)}),null,16,pL),[[a2,r.value]])],2)):j("",!0)]),_:3},8,["class"]))}}),[["__scopeId","data-v-939b7a98"]]),hl=ut(Oe({__name:"Panel",props:{layer:{default:void 0}},setup(e){let t=e,{layerProps:i}=Wo({level:()=>t.layer});return(r,s)=>(b(),$("div",Jt({class:"nb-panel"},le(i)),[Ne(r.$slots,"default",{},void 0,!0)],16))}}),[["__scopeId","data-v-a0d6ea95"]]),mL=Symbol("nb-shell-slots"),gL=0;function vL(){let e=Q([]),t=new Map,i=new Map;function r(n){let a=t.get(n);return a||(a=Vr(null),t.set(n,a)),a}function s(n){let a=i.get(n);return a||(a=J(()=>{let o=e.value.filter(l=>l.name===n&&!l.deactivated);if(o.length===0)return[];if(o.some(l=>l.claim==="last")){let l=o[0];for(let c of o)c.seq>l.seq&&(l=c);return[l.id]}return[...o].sort((l,c)=>l.order-c.order||l.seq-c.seq).map(l=>l.id)}),i.set(n,a)),a}return{registry:{register(n){e.value=[...e.value,n]},unregister(n){let a=e.value.filter(o=>o.id!==n);a.length!==e.value.length&&(e.value=a)},elementFor:r,activeIds:s,setActive(n,a){let o=e.value.find(l=>l.id===n);!o||o.deactivated===!a||(o.deactivated=!a,a&&(o.seq=gL++))}},count:n=>e.value.filter(a=>a.name===n&&!a.deactivated).length,sharedCount:n=>e.value.filter(a=>a.name===n&&!a.deactivated&&a.claim==="all").length,setElement:(n,a)=>{r(n).value=a}}}function pm(e){return e.some(t=>t.type===jt?!1:t.type===ps?typeof t.children=="string"&&t.children.trim().length>0:t.type===be?Array.isArray(t.children)?pm(t.children):!1:!0)}function mm(e,t){var r;let i=(r=e[t])==null?void 0:r.call(e);return i?pm(i):!1}var bL=Oe({__name:"SurfaceLayerScope",props:{level:{}},setup(e){let t=e;return as(W1,J(()=>p0(t.level))),(i,r)=>Ne(i.$slots,"default")}}),yL=["href"],wL={class:"nb-shell__middle"},SL=["id","aria-label","tabindex","inert","aria-hidden"],CL={class:"nb-shell__sidebar-logo"},AL={class:"nb-shell__sidebar-nav"},kL={class:"nb-shell__sidebar-bottom"},ML={class:"nb-shell__right"},LL={key:2,class:"nb-shell__menubar"},EL={key:3,class:"nb-shell__topbar"},xL=["aria-label","aria-expanded","aria-controls"],$L={class:"nb-shell__content-row"},TL=["inert","aria-hidden"],NL=["aria-expanded"],HL={class:"nb-shell__contextbar-toggle-glyph","aria-hidden":"true"},PL={class:"nb-shell__main-row"},OL=["aria-label"],IL=["id"],RL=["aria-label","inert","aria-hidden"],DL=["aria-label"],VL=["aria-label","aria-valuenow","aria-valuemax"],io=288,BL=16,ZL=64,FL=ut(Oe({__name:"Shell",props:{inspectorVisible:{type:Boolean,default:!1},inspectorExpanded:{type:Boolean,default:!1},inspectorSize:{default:"md"},resizable:{type:Boolean,default:!1},inspectorWidth:{},mainPadding:{type:Boolean,default:!0},sidebarVariant:{default:"compact"},topbar:{default:"auto"},skipToContent:{type:Boolean,default:!0},skipToContentLabel:{default:"Skip to content"},mainId:{},sidebarLabel:{default:"Primary"},inspectorLabel:{default:"Inspector"},contextbarLabel:{default:"Browse"},collapseAt:{default:"md"},sidebarOpen:{type:Boolean},navToggleLabel:{default:"Navigation"},inspectorCloseLabel:{default:"Close inspector"}},emits:["update:inspectorWidth","update:sidebarOpen","update:inspectorVisible"],setup(e,{expose:t,emit:i}){var gd;let r=Pn();function s(we){return mm(r,we)}let{registry:n,count:a,sharedCount:o,setElement:l}=vL();as(mL,n);let c=new Map;function u(we){let De=c.get(we);return De||(De=ht=>l(we,ht??null),c.set(we,De)),De}function h(we){return s(we)||a(we)>0}function d(we){return o(we)>0?"nb-shell__region--ordered":null}let f=J(()=>{for(let we of["sidebar-logo","sidebar-nav","sidebar-bottom"])if(s(we))return!0;return!1}),g=e,_=Q(!1),A=i,p={md:672,lg:1056},S=Q(typeof window<"u"?window.innerWidth:1/0);function m(we){let De=p[g.collapseAt];return De!=null&&we<De}let v=0;function k(){let we=window.innerWidth;m(we)!==m(S.value)&&(S.value=we)}function x(){v||(v=window.requestAnimationFrame(()=>{v=0,S.value=window.innerWidth}))}function M(){typeof window>"u"||(window.removeEventListener("resize",x),v&&(v=(window.cancelAnimationFrame(v),0)))}function F(){typeof window>"u"||(S.value=window.innerWidth,window.addEventListener("resize",x,{passive:!0}))}let P=J(()=>m(S.value)),O=((gd=gi())==null?void 0:gd.vnode.props)??{};function R(we,De){return we in O||De in O}function N(we,De){if(we in O)return O[we];if(De in O)return O[De]}function T(we,De){return R(we,De)&&N(we,De)!==void 0}let W=T("sidebarOpen","sidebar-open"),q=Q(!1);R("sidebarOpen","sidebar-open")&&!W&&Fe(()=>g.sidebarOpen,we=>{q.value=we===!0});let ie=J(()=>W?g.sidebarOpen===!0:q.value),ee=_r(),re=J(()=>`nb-shell-sidebar-${ee}`),Y=Q(null),_e=Q(null),me=J(()=>f.value&&P.value),ge=J(()=>f.value&&P.value&&!ie.value);function $e(we){W||(q.value=we),A("update:sidebarOpen",we)}function Se(){if(f.value&&P.value&&ie.value){$e(!1);return}ne.value&&pe(!1)}Fe(ie,async we=>{var De,ht,Ga,Fi,vd;P.value&&(await Di(),we?(Ga=(ht=((De=_e.value)==null?void 0:De.querySelector('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])'))??_e.value)==null?void 0:ht.focus)==null||Ga.call(ht):(vd=(Fi=Y.value)==null?void 0:Fi.focus)==null||vd.call(Fi))}),Fe(P,we=>{!we&&ie.value&&$e(!1)});let ae=T("inspectorVisible","inspector-visible"),se=Q(g.inspectorVisible===!0);R("inspectorVisible","inspector-visible")&&!ae&&Fe(()=>g.inspectorVisible,we=>{se.value=we===!0});let D=Q(!1),G=J(()=>(ae?g.inspectorVisible===!0:se.value)?!(P.value&&D.value):!1),ne=J(()=>P.value&&G.value);function pe(we){ae?D.value=!we:(se.value=we,D.value=!1),A("update:inspectorVisible",we)}Fe(()=>g.inspectorVisible,we=>{we&&(D.value=!1)}),Fe(P,we=>{we||(D.value=!1)});let Ae=Q(null),B=Q(null);Fe(ne,async we=>{var De,ht,Ga;if(we)B.value=document.activeElement??null,await Di(),(ht=(De=Ae.value)==null?void 0:De.focus)==null||ht.call(De);else{let Fi=B.value;B.value=null,Fi!=null&&Fi.isConnected&&(await Di(),(Ga=Fi.focus)==null||Ga.call(Fi))}});let Z=J(()=>ne.value),z=Q(null),oe=_r(),he=J(()=>g.mainId||`nb-shell-main-${oe}`);function ue(){var we;(we=z.value)==null||we.focus()}let w=J(()=>me.value||g.topbar==="always"?!0:g.topbar==="never"?!1:s("topbar-left")||s("topbar-right")||a("topbar-left")>0||a("topbar-right")>0),{layerProps:C}=Wo(),{layerProps:V}=Wo({level:0,probe:!1,provideContext:!1});as("nb-shell-sidebar-variant",jv(g,"sidebarVariant"));let H=Q(null),L=Q(!1);ft(()=>l("inspector",H.value)),Fe(H,we=>l("inspector",we));let E={lg:.5,xl:.75},I={xs:288,sm:360,md:560},K=J(()=>Number.isFinite(S.value)?S.value:1280),de=J(()=>Math.max(io,K.value*.5));function ye(we){return Math.round(Math.max(io,Math.min(we,de.value)))}let Ee=T("inspectorWidth","inspector-width"),ze=Q(null),Me=J(()=>Ee?g.inspectorWidth??null:ze.value);function St(we){Ee||(ze.value=we),A("update:inspectorWidth",we)}let Gt=J(()=>{let we=Me.value;if(!(!g.resizable||!G.value||we==null))return{"--nb-shell-inspector-width":`${ye(we)}px`}}),He=J(()=>{let we=Me.value;if(we!=null)return ye(we);if(g.inspectorExpanded)return Math.round(K.value*.5);let De=E[g.inspectorSize],ht=De==null?I[g.inspectorSize]??io:K.value*De;return Math.round(g.inspectorSize==="xl"?ht:Math.min(ht,de.value))}),st=J(()=>Math.round(Math.max(de.value,He.value))),Yt=J(()=>He.value);function Ci(){return He.value}function qa(we){let De=H.value;if(!De)return;let ht=De.getBoundingClientRect().right;St(ye(ht-we.clientX))}function Wr(){L.value=!1,window.removeEventListener("pointermove",qa),window.removeEventListener("pointerup",Wr),window.removeEventListener("pointercancel",Wr)}function rv(we){g.resizable&&(we.preventDefault(),L.value=!0,window.addEventListener("pointermove",qa),window.addEventListener("pointerup",Wr),window.addEventListener("pointercancel",Wr))}function sv(){St(null)}function nv(we){if(!g.resizable)return;let De=we.shiftKey?ZL:BL,ht;switch(we.key){case"ArrowLeft":ht=Ci()+De;break;case"ArrowRight":ht=Ci()-De;break;case"Home":ht=io;break;case"End":ht=de.value;break;case"Enter":case" ":ht=null;break;default:return}we.preventDefault(),St(ht==null?null:ye(ht))}return ft(()=>{typeof window>"u"||(S.value=window.innerWidth,window.addEventListener("resize",k,{passive:!0}),g.resizable&&F())}),Fe(()=>g.collapseAt,()=>{typeof window<"u"&&(S.value=window.innerWidth)}),Fe(()=>g.resizable,we=>we?F():M()),Zi(()=>{Wr(),M(),typeof window<"u"&&window.removeEventListener("resize",k)}),t({mainEl:z,sidebarEl:_e,inspectorEl:H,focusMain:()=>{var we;return(we=z.value)==null?void 0:we.focus()},setSidebarOpen:$e,setInspectorVisible:pe}),(we,De)=>(b(),$("div",Jt({class:"nb-shell"},le(C),{class:[{"nb-shell--no-sidebar":!f.value},f.value?`nb-shell--sidebar-${e.sidebarVariant}`:null,{"nb-shell--collapsed":P.value,"nb-shell--drawer-open":P.value&&ie.value}],onKeydown:is(Se,["esc"])}),[e.skipToContent?(b(),$("a",{key:0,class:"nb-shell__skip-link",href:`#${he.value}`,onClick:ue},U(e.skipToContentLabel),9,yL)):j("",!0),h("outer-menu")?(b(),$("div",{key:1,ref:u("outer-menu"),class:Le(["nb-shell__outer-menu",d("outer-menu")])},[Ne(we.$slots,"outer-menu",{},void 0,!0)],2)):j("",!0),y("div",wL,[f.value?(b(),$("nav",{key:0,id:re.value,ref_key:"sidebarRef",ref:_e,class:"nb-shell__sidebar","aria-label":e.sidebarLabel,tabindex:P.value?-1:void 0,inert:ge.value||void 0,"aria-hidden":ge.value||void 0},[y("div",CL,[Ne(we.$slots,"sidebar-logo",{},void 0,!0)]),y("div",AL,[Ne(we.$slots,"sidebar-nav",{},void 0,!0)]),De[4]||(De[4]=y("div",{class:"nb-shell__sidebar-spacer"},null,-1)),y("div",kL,[Ne(we.$slots,"sidebar-bottom",{},void 0,!0)])],8,SL)):j("",!0),f.value&&P.value&&ie.value?(b(),$("div",{key:1,class:"nb-shell__scrim",onClick:De[0]||(De[0]=ht=>$e(!1))})):j("",!0),y("div",ML,[h("inner-menu")?(b(),$("div",{key:0,ref:u("inner-menu"),class:Le(["nb-shell__inner-menu",d("inner-menu")])},[Ne(we.$slots,"inner-menu",{},void 0,!0)],2)):j("",!0),h("notification")?(b(),$("div",{key:1,ref:u("notification"),class:Le(["nb-shell__notification",d("notification")])},[Ne(we.$slots,"notification",{},void 0,!0)],2)):j("",!0),s("menubar")?(b(),$("div",LL,[Ne(we.$slots,"menubar",{},void 0,!0)])):j("",!0),w.value?(b(),$("div",EL,[me.value?(b(),$("button",{key:0,ref_key:"navToggleRef",ref:Y,type:"button",class:"nb-shell__nav-toggle","aria-label":e.navToggleLabel,"aria-expanded":ie.value,"aria-controls":re.value,onClick:De[1]||(De[1]=ht=>$e(!ie.value))},[...De[5]||(De[5]=[y("span",{class:"nb-shell__nav-toggle-glyph","aria-hidden":"true"},[y("span"),y("span"),y("span")],-1)])],8,xL)):j("",!0),y("div",{ref:u("topbar-left"),class:"nb-shell__topbar-left"},[Ne(we.$slots,"topbar-left",{},void 0,!0)],512),y("div",{ref:u("topbar-right"),class:"nb-shell__topbar-right"},[Ne(we.$slots,"topbar-right",{},void 0,!0)],512)])):j("",!0),y("div",$L,[y("div",{class:"nb-shell__body",inert:Z.value||void 0,"aria-hidden":Z.value||void 0},[h("fixedbar")?(b(),$("div",{key:0,ref:u("fixedbar"),class:"nb-shell__fixedbar"},[Ne(we.$slots,"fixedbar",{},void 0,!0)],512)):j("",!0),P.value&&h("contextbar")?(b(),$("button",{key:1,type:"button",class:"nb-shell__contextbar-toggle","aria-expanded":_.value,onClick:De[2]||(De[2]=ht=>_.value=!_.value)},[y("span",null,U(e.contextbarLabel),1),y("span",HL,U(_.value?"▾":"▸"),1)],8,NL)):j("",!0),y("div",PL,[h("contextbar")?Zs((b(),$("aside",{key:0,ref:u("contextbar"),class:Le(["nb-shell__contextbar",d("contextbar")]),"aria-label":e.contextbarLabel},[Ne(we.$slots,"contextbar",{},void 0,!0)],10,OL)),[[Op,!P.value||_.value]]):j("",!0),y("main",Jt({id:he.value,ref_key:"mainRef",ref:z,tabindex:"-1",class:["nb-shell__main",{"nb-shell__main--no-padding":!e.mainPadding}]},le(V)),[X(bL,{level:1},{default:te(()=>[Ne(we.$slots,"default",{},void 0,!0)]),_:3})],16,IL)]),h("bottom")?(b(),$("div",{key:2,ref:u("bottom"),class:"nb-shell__bottom"},[Ne(we.$slots,"bottom",{},void 0,!0)],512)):j("",!0)],8,TL),y("aside",{ref_key:"inspectorRef",ref:H,class:Le(["nb-shell__inspector",{"nb-shell__inspector--visible":G.value,"nb-shell__inspector--expanded":G.value&&e.inspectorExpanded,[`nb-shell__inspector--${e.inspectorSize}`]:G.value,"nb-shell__inspector--resizing":L.value,"nb-shell__inspector--overlay":ne.value}]),"aria-label":e.inspectorLabel,inert:!G.value||void 0,"aria-hidden":!G.value||void 0,style:mi(Gt.value)},[ne.value?(b(),$("button",{key:0,ref_key:"inspectorDismissRef",ref:Ae,type:"button",class:"nb-shell__inspector-dismiss","aria-label":e.inspectorCloseLabel,onClick:De[3]||(De[3]=ht=>pe(!1))},[...De[6]||(De[6]=[y("span",{class:"nb-shell__inspector-dismiss-glyph","aria-hidden":"true"},"×",-1)])],8,DL)):j("",!0),e.resizable&&G.value&&!P.value?(b(),$("div",{key:1,class:"nb-shell__inspector-resize",role:"separator",tabindex:"0","aria-orientation":"vertical","aria-label":`Resize ${e.inspectorLabel}`,"aria-valuenow":Yt.value,"aria-valuemin":io,"aria-valuemax":st.value,title:"Drag or use the arrow keys to resize, Enter or double-click to reset",onPointerdown:rv,onDblclick:sv,onKeydown:nv},null,40,VL)):j("",!0),Ne(we.$slots,"inspector",{},void 0,!0)],14,RL)])])])],16))}}),[["__scopeId","data-v-61a2a3ea"]]),zL=ut(Oe({__name:"SidebarLink",props:{to:{default:void 0},href:{default:void 0},tooltip:{default:void 0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1}},emits:["click"],setup(e){let t=e,i=U4(),r=J(()=>t.to!=null&&!!i.value),s=J(()=>{if(typeof t.to=="string")return t.to;if(t.href)return t.href}),n=J(()=>r.value?i.value:s.value?"a":"button"),a=J(()=>n.value==="a"?{href:s.value}:{});return(o,l)=>(b(),fe(W0(n.value),Jt({class:["nb-sidebar-link",{"nb-sidebar-link--active":e.active,"nb-sidebar-link--danger":e.danger,"nb-sidebar-link--disabled":e.disabled}],to:r.value?e.to:void 0},a.value,{disabled:n.value==="button"&&e.disabled||void 0,"aria-disabled":n.value!=="button"&&e.disabled?!0:void 0,"data-tooltip":e.tooltip||void 0,onClick:l[0]||(l[0]=c=>e.disabled?void 0:o.$emit("click",c))}),{default:te(()=>[Ne(o.$slots,"default",{},void 0,!0)]),_:3},16,["class","to","disabled","aria-disabled","data-tooltip"]))}}),[["__scopeId","data-v-24809884"]]),gm=function(e){return e.Small="sm",e.Medium="md",e}(gm||{}),Ts=function(e){return e.Active="active",e.Finished="finished",e.Error="error",e}(Ts||{}),UL={key:0,class:"nb-progress-bar__header"},WL=["aria-label","aria-valuemax","aria-valuenow"],vm=ut(Oe({__name:"ProgressBar",props:{value:{default:void 0},max:{default:100},helper:{default:void 0},size:{default:gm.Medium},status:{default:Ts.Active},id:{default:"progress-bar"},label:{}},setup(e){let t=e,i=J(()=>t.value==null&&t.status===Ts.Active),r=J(()=>t.status===Ts.Active?t.value==null||t.max<=0?0:Math.min(Math.max(t.value/t.max,0),1):1),s=J(()=>i.value?void 0:r.value*t.max),n=J(()=>["nb-progress-bar",`nb-progress-bar--${t.size}`,`nb-progress-bar--${t.status}`,{"nb-progress-bar--indeterminate":i.value}]),a=J(()=>({transform:`scaleX(${r.value})`})),o=J(()=>t.status===Ts.Finished?Rh:t.status===Ts.Error?I4:null),l=J(()=>t.status===Ts.Error?y0.Error:y0.Helper);return(c,u)=>(b(),$("div",{class:Le(n.value)},[e.label?(b(),$("div",UL,[X(Wn,null,{default:te(()=>[ce(U(e.label),1)]),_:1}),o.value?(b(),fe(Ye,{key:0,name:o.value,size:14,class:"nb-progress-bar__status-icon"},null,8,["name"])):j("",!0)])):j("",!0),y("div",{class:"nb-progress-bar__track",role:"progressbar","aria-label":e.label,"aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":s.value},[y("div",{class:"nb-progress-bar__bar",style:mi(a.value)},null,4)],8,WL),e.helper?(b(),fe(rt,{key:1,variant:l.value,class:"nb-progress-bar__message"},{default:te(()=>[ce(U(e.helper),1)]),_:1},8,["variant"])):j("",!0)],2))}}),[["__scopeId","data-v-5c8dd315"]]),bm=function(e){return e.Horizontal="horizontal",e.Vertical="vertical",e}(bm||{}),jL={class:"nb-radio__control"},KL=["name","value","checked","disabled","readonly","onChange"],qL={class:"nb-radio__circle"},GL={key:0,class:"nb-radio__dot"},YL={class:"nb-radio__text"},XL=ut(Oe({__name:"Radio",props:{modelValue:{},options:{},name:{},direction:{default:bm.Vertical},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:"radio"},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},emits:["update:modelValue"],setup(e){let t=e,i=J(()=>["nb-radio",{"nb-radio--error":!!t.error,"nb-radio--warning":!t.error&&!!t.warning,"nb-radio--disabled":t.disabled,"nb-radio--readonly":t.readonly}]);function r(s){return["nb-radio__option",{"nb-radio__option--disabled":t.disabled||s.disabled,"nb-radio__option--readonly":t.readonly}]}return(s,n)=>(b(),$("div",{class:Le(i.value)},[e.label?(b(),fe(Wn,{key:0},{default:te(()=>[ce(U(e.label),1)]),_:1})):j("",!0),y("div",{class:Le(["nb-radio__group",`nb-radio__group--${e.direction}`])},[(b(!0),$(be,null,Ve(e.options,a=>(b(),$("label",{key:a.value,class:Le(r(a))},[y("span",jL,[y("input",{type:"radio",name:e.name,value:a.value,checked:e.modelValue===a.value,disabled:e.disabled||a.disabled,readonly:e.readonly,class:"nb-radio__input",onChange:o=>!e.readonly&&s.$emit("update:modelValue",a.value)},null,40,KL),y("span",qL,[e.modelValue===a.value?(b(),$("span",GL)):j("",!0)])]),y("span",YL,U(a.label),1)],2))),128))],2),e.error?(b(),fe(rt,{key:1,variant:"error",class:"nb-radio__message"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:2,variant:"warning",class:"nb-radio__message"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):e.helper?(b(),fe(rt,{key:3,variant:"helper",class:"nb-radio__message"},{default:te(()=>[ce(U(e.helper),1)]),_:1})):j("",!0)],2))}}),[["__scopeId","data-v-e4a0c524"]]);const Jn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},JL=Jn("bell","0 0 256 256",'<path d="M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"/>'),QL=Jn("bell","0 0 256 256",'<path d="M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"/>'),jf=Jn("bell","0 0 256 256",'<path d="M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"/>'),eE=Jn("bell","0 0 256 256",'<path d="M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"/>'),tE=Jn("bell","0 0 256 256",'<path d="M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"/>'),iE=Jn("bell","0 0 256 256",'<path d="M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z" opacity="0.2"/><path d="M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"/>'),rE="bell",sE=Object.freeze(Object.defineProperty({__proto__:null,bold:eE,default:jf,duotone:iE,fill:tE,glyphName:rE,light:QL,regular:jf,thin:JL},Symbol.toStringTag,{value:"Module"})),nE=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Kf=nE("minus","0 0 256 256",'<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"/>');var aE=["id","placeholder","min","max","step","disabled","required"],oE={class:"nb-number-input__steppers"},lE=["disabled"],cE=["disabled"],uE={key:0,class:"nb-number-input__inner-header"},hE=["for"],dE={key:0,class:"nb-number-input__asterisk","aria-hidden":"true"},fE={class:"nb-number-input__fluid-row"},_E=["id","placeholder","min","max","step","disabled","required"],pE={class:"nb-number-input__steppers"},mE=["disabled"],gE=["disabled"],ym=ut(Oe({__name:"NumberInput",props:{modelValue:{default:null},min:{default:void 0},max:{default:void 0},step:{default:1},placeholder:{default:""},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:""},error:{default:""},warning:{default:""},helper:{default:""},variant:{default:"default"},size:{default:"md"}},emits:["update:modelValue","change"],setup(e,{expose:t,emit:i}){let r=e,s=i,n=Q(null),a=Q(!1),o=`nb-number-input-${_r()}`,l=J(()=>r.id??o),c=J(()=>r.min!==void 0&&r.modelValue!==null&&r.modelValue!==void 0&&r.modelValue<=r.min),u=J(()=>r.max!==void 0&&r.modelValue!==null&&r.modelValue!==void 0&&r.modelValue>=r.max);function h(m){let v=m;return r.min!==void 0&&(v=Math.max(r.min,v)),r.max!==void 0&&(v=Math.min(r.max,v)),v}function d(m){n.value&&(n.value.value=m==null?"":String(m))}ft(()=>d(r.modelValue)),Fe(()=>r.modelValue,m=>{a.value||d(m)});function f(){let m=h((r.modelValue??0)+r.step);s("update:modelValue",m),s("change",m),d(m)}function g(){let m=h((r.modelValue??0)-r.step);s("update:modelValue",m),s("change",m),d(m)}function _(){if(!n.value)return;let m=n.value.value;if(m==="")s("update:modelValue",null);else{let v=parseFloat(m);isNaN(v)||s("update:modelValue",v)}}function A(){if(a.value=!1,!n.value)return;let m=n.value.value;if(m===""){s("update:modelValue",null),s("change",null);return}let v=parseFloat(m);if(!isNaN(v)){let k=h(v);s("update:modelValue",k),s("change",k),d(k)}}let p=J(()=>["nb-number-input",`nb-number-input--${r.variant}`,`nb-number-input--${r.size}`,{"nb-number-input--error":!!r.error,"nb-number-input--warning":!r.error&&!!r.warning,"nb-number-input--disabled":r.disabled}]),S=J(()=>({"nb-number-input__field-wrapper--focused":a.value,"nb-number-input__field-wrapper--error":!!r.error,"nb-number-input__field-wrapper--warning":!r.error&&!!r.warning,"nb-number-input__field-wrapper--disabled":r.disabled}));return t({focus:()=>{var m;return(m=n.value)==null?void 0:m.focus()}}),(m,v)=>(b(),$("div",{class:Le(p.value)},[e.variant==="default"?(b(),$(be,{key:0},[e.label?(b(),fe(Wn,{key:0,for:l.value,required:e.required,disabled:e.disabled},{default:te(()=>[ce(U(e.label),1)]),_:1},8,["for","required","disabled"])):j("",!0),y("div",{class:Le(["nb-number-input__field-wrapper",S.value])},[y("input",{id:l.value,ref_key:"inputRef",ref:n,type:"number",class:"nb-number-input__field",placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:_,onBlur:A,onKeydown:v[0]||(v[0]=is(lt(()=>{var k;return(k=n.value)==null?void 0:k.blur()},["prevent"]),["enter"])),onFocus:v[1]||(v[1]=k=>a.value=!0)},null,40,aE),e.error?(b(),fe(rt,{key:0,variant:"error","icon-only":!0,class:"nb-number-input__status"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:1,variant:"warning","icon-only":!0,class:"nb-number-input__status"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):j("",!0),y("div",oE,[y("button",{type:"button",class:Le(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":c.value}]),disabled:e.disabled,"aria-label":"Decrease",onMousedown:v[2]||(v[2]=lt(()=>{},["prevent"])),onClick:g},[X(Ye,{name:le(Kf),size:16},null,8,["name"])],42,lE),y("button",{type:"button",class:Le(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":u.value}]),disabled:e.disabled,"aria-label":"Increase",onMousedown:v[3]||(v[3]=lt(()=>{},["prevent"])),onClick:f},[X(Ye,{name:le(Yo),size:16},null,8,["name"])],42,cE)])],2),e.error?(b(),fe(rt,{key:1,variant:"error",class:"nb-number-input__message"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:2,variant:"warning",class:"nb-number-input__message"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):e.helper?(b(),fe(rt,{key:3,variant:"helper",class:"nb-number-input__message"},{default:te(()=>[ce(U(e.helper),1)]),_:1})):j("",!0)],64)):e.variant==="fluid"?(b(),$(be,{key:1},[y("div",{class:Le(["nb-number-input__field-wrapper",S.value])},[e.label?(b(),$("div",uE,[y("label",{for:l.value,class:"nb-number-input__inner-label"},[ce(U(e.label)+" ",1),e.required?(b(),$("span",dE,"*")):j("",!0)],8,hE),e.helper&&!e.error&&!e.warning?(b(),fe(rt,{key:0,variant:"helper","icon-only":!0,class:"nb-number-input__inner-message"},{default:te(()=>[ce(U(e.helper),1)]),_:1})):j("",!0)])):j("",!0),y("div",fE,[y("input",{id:l.value,ref_key:"inputRef",ref:n,type:"number",class:"nb-number-input__field",placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:_,onBlur:A,onKeydown:v[4]||(v[4]=is(lt(()=>{var k;return(k=n.value)==null?void 0:k.blur()},["prevent"]),["enter"])),onFocus:v[5]||(v[5]=k=>a.value=!0)},null,40,_E),e.error?(b(),fe(rt,{key:0,variant:"error","icon-only":!0,class:"nb-number-input__status"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:1,variant:"warning","icon-only":!0,class:"nb-number-input__status"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):j("",!0),y("div",pE,[y("button",{type:"button",class:Le(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":c.value}]),disabled:e.disabled,"aria-label":"Decrease",onMousedown:v[6]||(v[6]=lt(()=>{},["prevent"])),onClick:g},[X(Ye,{name:le(Kf),size:16},null,8,["name"])],42,mE),y("button",{type:"button",class:Le(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":u.value}]),disabled:e.disabled,"aria-label":"Increase",onMousedown:v[7]||(v[7]=lt(()=>{},["prevent"])),onClick:f},[X(Ye,{name:le(Yo),size:16},null,8,["name"])],42,gE)])])],2),e.error?(b(),fe(rt,{key:0,variant:"error",class:"nb-number-input__fluid-message"},{default:te(()=>[ce(U(e.error),1)]),_:1})):e.warning?(b(),fe(rt,{key:1,variant:"warning",class:"nb-number-input__fluid-message"},{default:te(()=>[ce(U(e.warning),1)]),_:1})):j("",!0)],64)):j("",!0)],2))}}),[["__scopeId","data-v-89630543"]]),vE=["stop-color"],bE=["stop-color"],yE=["d","fill"],wE=["d","stroke","stroke-width"],qf=100,en=30,SE=ut(Oe({__name:"Sparkline",props:{data:{},color:{default:"var(--nb-c-primary)"},height:{default:40},width:{default:"100%"},strokeWidth:{default:1.5},fill:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},setup(e){let t=e,i=`0 0 ${qf} ${en}`,r=`nb-sparkline-grad-${_r()}`,s=J(()=>({width:typeof t.width=="number"?`${t.width}px`:t.width,height:typeof t.height=="number"?`${t.height}px`:t.height})),n=J(()=>{let a=t.data;if(!a||a.length<2)return{line:"",area:""};let o=Math.max(...a),l=Math.min(...a),c=o-l||1,u=qf/(a.length-1),h=en*.08,d=en-h*2,f=a.map((p,S)=>({x:S*u,y:en-h-(p-l)/c*d})),g=`M ${f[0].x.toFixed(2)} ${f[0].y.toFixed(2)}`;if(t.smooth)for(let p=1;p<f.length;p++){let S=f[p-1],m=f[p],v=S.x+u*.45,k=S.y,x=m.x-u*.45,M=m.y;g+=` C ${v.toFixed(2)} ${k.toFixed(2)}, ${x.toFixed(2)} ${M.toFixed(2)}, ${m.x.toFixed(2)} ${m.y.toFixed(2)}`}else for(let p=1;p<f.length;p++)g+=` L ${f[p].x.toFixed(2)} ${f[p].y.toFixed(2)}`;let _=f[f.length-1],A=`${g} L ${_.x.toFixed(2)} ${en} L ${f[0].x.toFixed(2)} ${en} Z`;return{line:g,area:A}});return(a,o)=>(b(),$("svg",{class:"nb-sparkline",style:mi(s.value),viewBox:i,preserveAspectRatio:"none",role:"img","aria-label":"Sparkline",xmlns:"http://www.w3.org/2000/svg"},[y("defs",null,[y("linearGradient",{id:r,x1:"0",y1:"0",x2:"0",y2:"1"},[y("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.3"},null,8,vE),y("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0"},null,8,bE)])]),e.fill&&n.value.area?(b(),$("path",{key:0,d:n.value.area,fill:`url(#${r})`,stroke:"none"},null,8,yE)):j("",!0),n.value.line?(b(),$("path",{key:1,d:n.value.line,stroke:e.color,"stroke-width":e.strokeWidth,"vector-effect":"non-scaling-stroke",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,wE)):j("",!0)],4))}}),[["__scopeId","data-v-e796f74d"]]),wm=function(e){return e.Line="line",e.Contained="contained",e}(wm||{}),lu=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}(lu||{}),CE=["aria-label"],AE=["id","data-tab-id","aria-selected","aria-controls","tabindex","disabled","onClick"],kE={class:"nb-tabs__label"},ME=["id","aria-labelledby"],LE=ut(Oe({__name:"Tabs",props:{items:{},ariaLabel:{default:void 0},modelValue:{default:void 0},variant:{default:wm.Line},size:{default:lu.Medium},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},id:{default:void 0}},emits:["update:modelValue","change"],setup(e,{emit:t}){var k;let i=e,r=t,s=Pn(),n=Ih(i),a=Q(null),o=J(()=>i.items.filter(x=>!d(x))),l=Q(i.modelValue??((k=o.value[0])==null?void 0:k.id));Fe(()=>i.modelValue,x=>{x!=null&&(l.value=x)});let c=J(()=>{var F;let x=i.modelValue??l.value,M=i.items.find(P=>P.id===x);return M&&!d(M)?M.id:(F=o.value[0])==null?void 0:F.id}),u=J(()=>i.size===lu.Large?18:16),h=J(()=>["nb-tabs",`nb-tabs--${i.variant}`,`nb-tabs--${i.size}`,{"nb-tabs--full-width":i.fullWidth,"nb-tabs--disabled":i.disabled}]);function d(x){return i.disabled||!!x.disabled}function f(x){return`${n}-tab-${x}`}function g(x){return`${n}-panel-${x}`}function _(x){return mm(s,x)}function A(x){d(x)||x.id===c.value||(l.value=x.id,r("update:modelValue",x.id),r("change",x.id,x))}function p(x){var M,F;(F=(M=a.value)==null?void 0:M.querySelectorAll("[data-tab-id]"))==null||F.forEach(P=>{P.dataset.tabId===x&&P.focus()})}function S(x){let M=o.value;if(!M.length)return;let F=M[(M.findIndex(P=>P.id===c.value)+x+M.length)%M.length];A(F),p(F.id)}function m(x){x&&(A(x),p(x.id))}function v(x){switch(x.key){case"ArrowRight":S(1);break;case"ArrowLeft":S(-1);break;case"Home":m(o.value[0]);break;case"End":m(o.value[o.value.length-1]);break;default:return}x.preventDefault()}return(x,M)=>(b(),$("div",{class:Le(h.value)},[y("div",{ref_key:"listRef",ref:a,class:"nb-tabs__list",role:"tablist","aria-label":e.ariaLabel||void 0,onKeydown:v},[(b(!0),$(be,null,Ve(e.items,F=>(b(),$("button",{id:f(F.id),key:F.id,"data-tab-id":F.id,type:"button",role:"tab",class:Le(["nb-tabs__tab",{"nb-tabs__tab--active":F.id===c.value}]),"aria-selected":F.id===c.value,"aria-controls":_(F.id)?g(F.id):void 0,tabindex:F.id===c.value?0:-1,disabled:d(F),onClick:P=>A(F)},[F.icon?(b(),fe(Ye,{key:0,name:F.icon,size:u.value,class:"nb-tabs__icon"},null,8,["name","size"])):j("",!0),y("span",kE,U(F.label),1),F.badge==null?j("",!0):(b(),fe(Dn,{key:1,size:"sm",class:"nb-tabs__badge"},{default:te(()=>[ce(U(F.badge),1)]),_:2},1024))],10,AE))),128))],40,CE),(b(!0),$(be,null,Ve(e.items,F=>(b(),$(be,{key:`panel-${F.id}`},[F.id===c.value&&_(F.id)?(b(),$("div",{key:0,id:g(F.id),class:"nb-tabs__panel",role:"tabpanel","aria-labelledby":f(F.id),tabindex:"0"},[Ne(x.$slots,F.id,{item:F},void 0,!0)],8,ME)):j("",!0)],64))),128))],2))}}),[["__scopeId","data-v-84dd1ef0"]]),EE={class:"nb-shell-panel__header"},xE={class:"nb-shell-panel__header-left"},$E={key:0,class:"nb-shell-panel__title"},TE={class:"nb-shell-panel__header-center"},NE={class:"nb-shell-panel__toolbar"},HE=["aria-label"],PE=["aria-pressed"],OE=["aria-pressed"],IE=["aria-pressed"],RE={key:0,class:"nb-shell-panel__content"},Yh=ut(Oe({__name:"ShellPanel",props:{size:{default:"default"},title:{default:""},fluid:{type:Boolean,default:!1},fill:{type:Boolean,default:!1}},emits:["update:size"],setup(e,{expose:t,emit:i}){let r=e,{layerProps:s}=Wo(),n=i,a=Q(r.size);Fe(()=>r.size,c=>a.value=c);let o=J({get:()=>a.value,set:c=>{a.value=c,n("update:size",c)}});function l(c){o.value=c}return t({setSize:l}),(c,u)=>(b(),$("div",Jt({class:"nb-shell-panel"},le(s),{class:[o.value,{"nb-shell-panel--fluid":e.fluid,"nb-shell-panel--fill":e.fill}]}),[y("div",EE,[y("div",xE,[e.title?(b(),$("span",$E,U(e.title),1)):j("",!0),Ne(c.$slots,"title",{},void 0,!0)]),y("div",TE,[y("div",NE,[Ne(c.$slots,"toolbar",{},void 0,!0)])]),y("div",{class:"nb-shell-panel__header-right",role:"group","aria-label":e.title?`${e.title} panel size`:"Panel size"},[Ne(c.$slots,"controls",{},()=>[y("button",{type:"button",class:Le(["nb-shell-panel__size-btn",{active:o.value==="collapsed"}]),"aria-pressed":o.value==="collapsed",title:"Minimize","aria-label":"Minimize",onClick:u[0]||(u[0]=h=>l("collapsed"))},[...u[3]||(u[3]=[y("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true"},[y("line",{x1:"2",y1:"10",x2:"10",y2:"10",stroke:"currentColor","stroke-width":"1.5"})],-1)])],10,PE),y("button",{type:"button",class:Le(["nb-shell-panel__size-btn",{active:o.value==="default"}]),"aria-pressed":o.value==="default",title:"Default","aria-label":"Default",onClick:u[1]||(u[1]=h=>l("default"))},[...u[4]||(u[4]=[y("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true"},[y("rect",{x:"1",y:"5",width:"10",height:"6",rx:"1",fill:"none",stroke:"currentColor","stroke-width":"1.2"})],-1)])],10,OE),y("button",{type:"button",class:Le(["nb-shell-panel__size-btn",{active:o.value==="full"}]),"aria-pressed":o.value==="full",title:"Maximize","aria-label":"Maximize",onClick:u[2]||(u[2]=h=>l("full"))},[...u[5]||(u[5]=[y("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true"},[y("rect",{x:"1",y:"1",width:"10",height:"10",rx:"1",fill:"none",stroke:"currentColor","stroke-width":"1.2"}),y("line",{x1:"1",y1:"3.5",x2:"11",y2:"3.5",stroke:"currentColor","stroke-width":"1.2"})],-1)])],10,IE)],!0)],8,HE)]),o.value==="collapsed"?j("",!0):(b(),$("div",RE,[Ne(c.$slots,"default",{},void 0,!0)]))],16))}}),[["__scopeId","data-v-9b368e15"]]);const DE="modulepreload",VE=function(e){return"/"+e},Gf={},Yf=function(t,i,r){let s=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),o=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(i.map(l=>{if(l=VE(l),l in Gf)return;Gf[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":DE,c||(h.as="script"),h.crossOrigin="",h.href=l,o&&h.setAttribute("nonce",o),document.head.appendChild(h),c)return new Promise((d,f)=>{h.addEventListener("load",d),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function n(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return s.then(a=>{for(const o of a||[])o.status==="rejected"&&n(o.reason);return t().catch(n)})};var Sm={storageKey:"nubisco.theme",defaultTheme:"system",darkClass:"dark"},Cm="(prefers-color-scheme: dark)",An={...Sm},Am=!1,tn=null,rs=Q(Sm.defaultTheme),C0=Q("light");function BE(e){return e==="light"||e==="dark"||e==="system"}function ZE(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(An.storageKey);return BE(e)?e:null}catch{return null}}function FE(e){try{if(typeof localStorage>"u")return;localStorage.setItem(An.storageKey,e)}catch{}}function zE(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Cm).matches}function cu(){let e=rs.value==="dark"||rs.value==="system"&&zE();C0.value=e?"dark":"light",!(typeof document>"u")&&(document.documentElement.classList.toggle(An.darkClass,e),document.documentElement.style.colorScheme=C0.value)}function UE(){if(tn==null||tn(),tn=null,typeof window>"u"||typeof window.matchMedia!="function")return;let e=window.matchMedia(Cm),t=()=>cu();typeof e.addEventListener=="function"?(e.addEventListener("change",t),tn=()=>e.removeEventListener("change",t)):typeof e.addListener=="function"&&(e.addListener(t),tn=()=>e.removeListener(t))}var Nl=null;function km(){rs.value=ZE()??An.defaultTheme,cu(),UE(),Nl==null||Nl(),Nl=Fe(rs,e=>{FE(e),cu()}),Am=!0}function WE(e={}){An={...An,...e},km()}function Xh(){return Am||km(),{theme:Ho(rs),resolved:Ho(C0),followsSystem:J(()=>rs.value==="system"),setTheme:e=>{rs.value=e},toggle:()=>{rs.value=C0.value==="dark"?"light":"dark"}}}const jE=4,Mm=G0("notifications",()=>{const e=Q([]),t=J(()=>e.value.slice(0,jE));function i(n){e.value.push(n)}function r(n){const a=e.value.findIndex(o=>o.id===n);a!==-1&&e.value.splice(a,1)}function s(){e.value=[]}return{queue:e,visible:t,add:i,remove:r,clear:s}}),KE={class:"toast-layer","aria-live":"polite","aria-atomic":"true"},qE={class:"toast-body"},GE={key:0,class:"toast-title"},YE={class:"toast-message"},XE=Oe({__name:"NotificationToasts",setup(e){const t=Mm(),i=new Map;Fe(()=>t.visible.map(s=>({id:s.id,duration:s.duration??3200})),s=>{for(const n of s){if(i.has(n.id))continue;const a=setTimeout(()=>{t.remove(n.id),i.delete(n.id)},n.duration);i.set(n.id,a)}},{immediate:!0,deep:!0});function r(s){const n=i.get(s);n&&(clearTimeout(n),i.delete(s)),t.remove(s)}return(s,n)=>{const a=vi;return b(),$("div",KE,[(b(!0),$(be,null,Ve(le(t).visible,o=>(b(),$("div",{key:o.id,class:Le(["toast",`toast--${o.variant}`])},[y("div",qE,[o.title?(b(),$("div",GE,U(o.title),1)):j("",!0),y("div",YE,U(o.message),1)]),X(a,{variant:"ghost",size:"xs",icon:q1,title:"Dismiss",onClick:l=>r(o.id)},null,8,["onClick"])],2))),128))])}}}),Zt=(e,t)=>{const i=e.__vccOpts||e;for(const[r,s]of t)i[r]=s;return i},JE=Zt(XE,[["__scopeId","data-v-5b1d791e"]]),QE=Oe({__name:"App",setup(e){return(t,i)=>{const r=Io("RouterView");return b(),$(be,null,[X(r),X(JE)],64)}}});/*!
|
|
43
|
+
* vue-router v4.6.4
|
|
44
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
45
|
+
* @license MIT
|
|
46
|
+
*/const ln=typeof document<"u";function Lm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ex(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Lm(e.default)}const Je=Object.assign;function Zc(e,t){const i={};for(const r in t){const s=t[r];i[r]=qi(s)?s.map(e):e(s)}return i}const Eo=()=>{},qi=Array.isArray;function Xf(e,t){const i={};for(const r in e)i[r]=r in t?t[r]:e[r];return i}const Em=/#/g,tx=/&/g,ix=/\//g,rx=/=/g,sx=/\?/g,xm=/\+/g,nx=/%5B/g,ax=/%5D/g,$m=/%5E/g,ox=/%60/g,Tm=/%7B/g,lx=/%7C/g,Nm=/%7D/g,cx=/%20/g;function Jh(e){return e==null?"":encodeURI(""+e).replace(lx,"|").replace(nx,"[").replace(ax,"]")}function ux(e){return Jh(e).replace(Tm,"{").replace(Nm,"}").replace($m,"^")}function uu(e){return Jh(e).replace(xm,"%2B").replace(cx,"+").replace(Em,"%23").replace(tx,"%26").replace(ox,"`").replace(Tm,"{").replace(Nm,"}").replace($m,"^")}function hx(e){return uu(e).replace(rx,"%3D")}function dx(e){return Jh(e).replace(Em,"%23").replace(sx,"%3F")}function fx(e){return dx(e).replace(ix,"%2F")}function Xo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const _x=/\/$/,px=e=>e.replace(_x,"");function Fc(e,t,i="/"){let r,s={},n="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return l=o>=0&&l>o?-1:l,l>=0&&(r=t.slice(0,l),n=t.slice(l,o>0?o:t.length),s=e(n.slice(1))),o>=0&&(r=r||t.slice(0,o),a=t.slice(o,t.length)),r=bx(r??t,i),{fullPath:r+n+a,path:r,query:s,hash:Xo(a)}}function mx(e,t){const i=t.query?e(t.query):"";return t.path+(i&&"?")+i+(t.hash||"")}function Jf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gx(e,t,i){const r=t.matched.length-1,s=i.matched.length-1;return r>-1&&r===s&&kn(t.matched[r],i.matched[s])&&Hm(t.params,i.params)&&e(t.query)===e(i.query)&&t.hash===i.hash}function kn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!vx(e[i],t[i]))return!1;return!0}function vx(e,t){return qi(e)?Qf(e,t):qi(t)?Qf(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Qf(e,t){return qi(t)?e.length===t.length&&e.every((i,r)=>i===t[r]):e.length===1&&e[0]===t}function bx(e,t){if(e.startsWith("/"))return e;if(!e)return t;const i=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let n=i.length-1,a,o;for(a=0;a<r.length;a++)if(o=r[a],o!==".")if(o==="..")n>1&&n--;else break;return i.slice(0,n).join("/")+"/"+r.slice(a).join("/")}const Kr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let hu=function(e){return e.pop="pop",e.push="push",e}({}),zc=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function yx(e){if(!e)if(ln){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),px(e)}const wx=/^[^#]+#/;function Sx(e,t){return e.replace(wx,"#")+t}function Cx(e,t){const i=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-i.left-(t.left||0),top:r.top-i.top-(t.top||0)}}const nc=()=>({left:window.scrollX,top:window.scrollY});function Ax(e){let t;if("el"in e){const i=e.el,r=typeof i=="string"&&i.startsWith("#"),s=typeof i=="string"?r?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!s)return;t=Cx(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function e6(e,t){return(history.state?history.state.position-t:-1)+e}const du=new Map;function kx(e,t){du.set(e,t)}function Mx(e){const t=du.get(e);return du.delete(e),t}function Lx(e){return typeof e=="string"||e&&typeof e=="object"}function Pm(e){return typeof e=="string"||typeof e=="symbol"}let Ct=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Om=Symbol("");Ct.MATCHER_NOT_FOUND+"",Ct.NAVIGATION_GUARD_REDIRECT+"",Ct.NAVIGATION_ABORTED+"",Ct.NAVIGATION_CANCELLED+"",Ct.NAVIGATION_DUPLICATED+"";function Mn(e,t){return Je(new Error,{type:e,[Om]:!0},t)}function wr(e,t){return e instanceof Error&&Om in e&&(t==null||!!(e.type&t))}const Ex=["params","query","hash"];function xx(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const i of Ex)i in e&&(t[i]=e[i]);return JSON.stringify(t,null,2)}function $x(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<i.length;++r){const s=i[r].replace(xm," "),n=s.indexOf("="),a=Xo(n<0?s:s.slice(0,n)),o=n<0?null:Xo(s.slice(n+1));if(a in t){let l=t[a];qi(l)||(l=t[a]=[l]),l.push(o)}else t[a]=o}return t}function t6(e){let t="";for(let i in e){const r=e[i];if(i=hx(i),r==null){r!==void 0&&(t+=(t.length?"&":"")+i);continue}(qi(r)?r.map(s=>s&&uu(s)):[r&&uu(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+i,s!=null&&(t+="="+s))})}return t}function Tx(e){const t={};for(const i in e){const r=e[i];r!==void 0&&(t[i]=qi(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Nx=Symbol(""),i6=Symbol(""),ac=Symbol(""),Qh=Symbol(""),fu=Symbol("");function ro(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function i(){e=[]}return{add:t,list:()=>e.slice(),reset:i}}function es(e,t,i,r,s,n=a=>a()){const a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,l)=>{const c=d=>{d===!1?l(Mn(Ct.NAVIGATION_ABORTED,{from:i,to:t})):d instanceof Error?l(d):Lx(d)?l(Mn(Ct.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(a&&r.enterCallbacks[s]===a&&typeof d=="function"&&a.push(d),o())},u=n(()=>e.call(r&&r.instances[s],t,i,c));let h=Promise.resolve(u);e.length<3&&(h=h.then(c)),h.catch(d=>l(d))})}function Uc(e,t,i,r,s=n=>n()){const n=[];for(const a of e)for(const o in a.components){let l=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(Lm(l)){const c=(l.__vccOpts||l)[t];c&&n.push(es(c,i,r,a,o,s))}else{let c=l();n.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${o}" at "${a.path}"`);const h=ex(u)?u.default:u;a.mods[o]=u,a.components[o]=h;const d=(h.__vccOpts||h)[t];return d&&es(d,i,r,a,o,s)()}))}}return n}function Hx(e,t){const i=[],r=[],s=[],n=Math.max(t.matched.length,e.matched.length);for(let a=0;a<n;a++){const o=t.matched[a];o&&(e.matched.find(c=>kn(c,o))?r.push(o):i.push(o));const l=e.matched[a];l&&(t.matched.find(c=>kn(c,l))||s.push(l))}return[i,r,s]}/*!
|
|
47
|
+
* vue-router v4.6.4
|
|
48
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
49
|
+
* @license MIT
|
|
50
|
+
*/let Px=()=>location.protocol+"//"+location.host;function Im(e,t){const{pathname:i,search:r,hash:s}=t,n=e.indexOf("#");if(n>-1){let a=s.includes(e.slice(n))?e.slice(n).length:1,o=s.slice(a);return o[0]!=="/"&&(o="/"+o),Jf(o,"")}return Jf(i,e)+r+s}function Ox(e,t,i,r){let s=[],n=[],a=null;const o=({state:d})=>{const f=Im(e,location),g=i.value,_=t.value;let A=0;if(d){if(i.value=f,t.value=d,a&&a===g){a=null;return}A=_?d.position-_.position:0}else r(f);s.forEach(p=>{p(i.value,g,{delta:A,type:hu.pop,direction:A?A>0?zc.forward:zc.back:zc.unknown})})};function l(){a=i.value}function c(d){s.push(d);const f=()=>{const g=s.indexOf(d);g>-1&&s.splice(g,1)};return n.push(f),f}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Je({},d.state,{scroll:nc()}),"")}}function h(){for(const d of n)d();n=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:h}}function r6(e,t,i,r=!1,s=!1){return{back:e,current:t,forward:i,replaced:r,position:window.history.length,scroll:s?nc():null}}function Ix(e){const{history:t,location:i}=window,r={value:Im(e,i)},s={value:t.state};s.value||n(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function n(l,c,u){const h=e.indexOf("#"),d=h>-1?(i.host&&document.querySelector("base")?e:e.slice(h))+l:Px()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),s.value=c}catch(f){console.error(f),i[u?"replace":"assign"](d)}}function a(l,c){n(l,Je({},t.state,r6(s.value.back,l,s.value.forward,!0),c,{position:s.value.position}),!0),r.value=l}function o(l,c){const u=Je({},s.value,t.state,{forward:l,scroll:nc()});n(u.current,u,!0),n(l,Je({},r6(r.value,l,null),{position:u.position+1},c),!1),r.value=l}return{location:r,state:s,push:o,replace:a}}function Rx(e){e=yx(e);const t=Ix(e),i=Ox(e,t.state,t.location,t.replace);function r(n,a=!0){a||i.pauseListeners(),history.go(n)}const s=Je({location:"",base:e,go:r,createHref:Sx.bind(null,e)},t,i);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let Ds=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Rt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Rt||{});const Dx={type:Ds.Static,value:""},Vx=/[a-zA-Z0-9_]/;function Bx(e){if(!e)return[[]];if(e==="/")return[[Dx]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${i})/"${c}": ${f}`)}let i=Rt.Static,r=i;const s=[];let n;function a(){n&&s.push(n),n=[]}let o=0,l,c="",u="";function h(){c&&(i===Rt.Static?n.push({type:Ds.Static,value:c}):i===Rt.Param||i===Rt.ParamRegExp||i===Rt.ParamRegExpEnd?(n.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),n.push({type:Ds.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;o<e.length;){if(l=e[o++],l==="\\"&&i!==Rt.ParamRegExp){r=i,i=Rt.EscapeNext;continue}switch(i){case Rt.Static:l==="/"?(c&&h(),a()):l===":"?(h(),i=Rt.Param):d();break;case Rt.EscapeNext:d(),i=r;break;case Rt.Param:l==="("?i=Rt.ParamRegExp:Vx.test(l)?d():(h(),i=Rt.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case Rt.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:i=Rt.ParamRegExpEnd:u+=l;break;case Rt.ParamRegExpEnd:h(),i=Rt.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--,u="";break;default:t("Unknown state");break}}return i===Rt.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),h(),a(),s}const s6="[^/]+?",Zx={sensitive:!1,strict:!1,start:!0,end:!0};var fi=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(fi||{});const Fx=/[.+*?^${}()[\]/\\]/g;function zx(e,t){const i=Je({},Zx,t),r=[];let s=i.start?"^":"";const n=[];for(const c of e){const u=c.length?[]:[fi.Root];i.strict&&!c.length&&(s+="/");for(let h=0;h<c.length;h++){const d=c[h];let f=fi.Segment+(i.sensitive?fi.BonusCaseSensitive:0);if(d.type===Ds.Static)h||(s+="/"),s+=d.value.replace(Fx,"\\$&"),f+=fi.Static;else if(d.type===Ds.Param){const{value:g,repeatable:_,optional:A,regexp:p}=d;n.push({name:g,repeatable:_,optional:A});const S=p||s6;if(S!==s6){f+=fi.BonusCustomRegExp;try{`${S}`}catch(v){throw new Error(`Invalid custom RegExp for param "${g}" (${S}): `+v.message)}}let m=_?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;h||(m=A&&c.length<2?`(?:/${m})`:"/"+m),A&&(m+="?"),s+=m,f+=fi.Dynamic,A&&(f+=fi.BonusOptional),_&&(f+=fi.BonusRepeatable),S===".*"&&(f+=fi.BonusWildcard)}u.push(f)}r.push(u)}if(i.strict&&i.end){const c=r.length-1;r[c][r[c].length-1]+=fi.BonusStrict}i.strict||(s+="/?"),i.end?s+="$":i.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const a=new RegExp(s,i.sensitive?"":"i");function o(c){const u=c.match(a),h={};if(!u)return null;for(let d=1;d<u.length;d++){const f=u[d]||"",g=n[d-1];h[g.name]=f&&g.repeatable?f.split("/"):f}return h}function l(c){let u="",h=!1;for(const d of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const f of d)if(f.type===Ds.Static)u+=f.value;else if(f.type===Ds.Param){const{value:g,repeatable:_,optional:A}=f,p=g in c?c[g]:"";if(qi(p)&&!_)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const S=qi(p)?p.join("/"):p;if(!S)if(A)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${g}"`);u+=S}}return u||"/"}return{re:a,score:r,keys:n,parse:o,stringify:l}}function Ux(e,t){let i=0;for(;i<e.length&&i<t.length;){const r=t[i]-e[i];if(r)return r;i++}return e.length<t.length?e.length===1&&e[0]===fi.Static+fi.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===fi.Static+fi.Segment?1:-1:0}function Rm(e,t){let i=0;const r=e.score,s=t.score;for(;i<r.length&&i<s.length;){const n=Ux(r[i],s[i]);if(n)return n;i++}if(Math.abs(s.length-r.length)===1){if(n6(r))return 1;if(n6(s))return-1}return s.length-r.length}function n6(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Wx={strict:!1,end:!0,sensitive:!1};function jx(e,t,i){const r=zx(Bx(e.path),i),s=Je(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Kx(e,t){const i=[],r=new Map;t=Xf(Wx,t);function s(h){return r.get(h)}function n(h,d,f){const g=!f,_=o6(h);_.aliasOf=f&&f.record;const A=Xf(t,h),p=[_];if("alias"in h){const v=typeof h.alias=="string"?[h.alias]:h.alias;for(const k of v)p.push(o6(Je({},_,{components:f?f.record.components:_.components,path:k,aliasOf:f?f.record:_})))}let S,m;for(const v of p){const{path:k}=v;if(d&&k[0]!=="/"){const x=d.record.path,M=x[x.length-1]==="/"?"":"/";v.path=d.record.path+(k&&M+k)}if(S=jx(v,d,A),f?f.alias.push(S):(m=m||S,m!==S&&m.alias.push(S),g&&h.name&&!l6(S)&&a(h.name)),Dm(S)&&l(S),_.children){const x=_.children;for(let M=0;M<x.length;M++)n(x[M],S,f&&f.children[M])}f=f||S}return m?()=>{a(m)}:Eo}function a(h){if(Pm(h)){const d=r.get(h);d&&(r.delete(h),i.splice(i.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=i.indexOf(h);d>-1&&(i.splice(d,1),h.record.name&&r.delete(h.record.name),h.children.forEach(a),h.alias.forEach(a))}}function o(){return i}function l(h){const d=Yx(h,i);i.splice(d,0,h),h.record.name&&!l6(h)&&r.set(h.record.name,h)}function c(h,d){let f,g={},_,A;if("name"in h&&h.name){if(f=r.get(h.name),!f)throw Mn(Ct.MATCHER_NOT_FOUND,{location:h});A=f.record.name,g=Je(a6(d.params,f.keys.filter(m=>!m.optional).concat(f.parent?f.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),h.params&&a6(h.params,f.keys.map(m=>m.name))),_=f.stringify(g)}else if(h.path!=null)_=h.path,f=i.find(m=>m.re.test(_)),f&&(g=f.parse(_),A=f.record.name);else{if(f=d.name?r.get(d.name):i.find(m=>m.re.test(d.path)),!f)throw Mn(Ct.MATCHER_NOT_FOUND,{location:h,currentLocation:d});A=f.record.name,g=Je({},d.params,h.params),_=f.stringify(g)}const p=[];let S=f;for(;S;)p.unshift(S.record),S=S.parent;return{name:A,path:_,params:g,matched:p,meta:Gx(p)}}e.forEach(h=>n(h));function u(){i.length=0,r.clear()}return{addRoute:n,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:o,getRecordMatcher:s}}function a6(e,t){const i={};for(const r of t)r in e&&(i[r]=e[r]);return i}function o6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:qx(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function qx(e){const t={},i=e.props||!1;if("component"in e)t.default=i;else for(const r in e.components)t[r]=typeof i=="object"?i[r]:i;return t}function l6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Gx(e){return e.reduce((t,i)=>Je(t,i.meta),{})}function Yx(e,t){let i=0,r=t.length;for(;i!==r;){const n=i+r>>1;Rm(e,t[n])<0?r=n:i=n+1}const s=Xx(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Xx(e){let t=e;for(;t=t.parent;)if(Dm(t)&&Rm(e,t)===0)return t}function Dm({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function c6(e){const t=ii(ac),i=ii(Qh),r=J(()=>{const l=le(e.to);return t.resolve(l)}),s=J(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],h=i.matched;if(!u||!h.length)return-1;const d=h.findIndex(kn.bind(null,u));if(d>-1)return d;const f=u6(l[c-2]);return c>1&&u6(u)===f&&h[h.length-1].path!==f?h.findIndex(kn.bind(null,l[c-2])):d}),n=J(()=>s.value>-1&&i$(i.params,r.value.params)),a=J(()=>s.value>-1&&s.value===i.matched.length-1&&Hm(i.params,r.value.params));function o(l={}){if(t$(l)){const c=t[le(e.replace)?"replace":"push"](le(e.to)).catch(Eo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:n,isExactActive:a,navigate:o}}function Jx(e){return e.length===1?e[0]:e}const Qx=Oe({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"},viewTransition:Boolean},useLink:c6,setup(e,{slots:t}){const i=Ws(c6(e)),{options:r}=ii(ac),s=J(()=>({[h6(e.activeClass,r.linkActiveClass,"router-link-active")]:i.isActive,[h6(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const n=t.default&&Jx(t.default(i));return e.custom?n:ke("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:s.value},n)}}}),e$=Qx;function t$(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function i$(e,t){for(const i in t){const r=t[i],s=e[i];if(typeof r=="string"){if(r!==s)return!1}else if(!qi(s)||s.length!==r.length||r.some((n,a)=>n.valueOf()!==s[a].valueOf()))return!1}return!0}function u6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const h6=(e,t,i)=>e??t??i,r$=Oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){const r=ii(fu),s=J(()=>e.route||r.value),n=ii(i6,0),a=J(()=>{let c=le(n);const{matched:u}=s.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),o=J(()=>s.value.matched[a.value]);as(i6,J(()=>a.value+1)),as(Nx,o),as(fu,s);const l=Q();return Fe(()=>[l.value,o.value,e.name],([c,u,h],[d,f,g])=>{u&&(u.instances[h]=c,f&&f!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),c&&u&&(!f||!kn(u,f)||!d)&&(u.enterCallbacks[h]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,h=o.value,d=h&&h.components[u];if(!d)return d6(i.default,{Component:d,route:c});const f=h.props[u],g=f?f===!0?c.params:typeof f=="function"?f(c):f:null,A=ke(d,Je({},g,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return d6(i.default,{Component:A,route:c})||A}}});function d6(e,t){if(!e)return null;const i=e(t);return i.length===1?i[0]:i}const s$=r$;function n$(e){const t=Kx(e.routes,e),i=e.parseQuery||$x,r=e.stringifyQuery||t6,s=e.history,n=ro(),a=ro(),o=ro(),l=Vr(Kr);let c=Kr;ln&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zc.bind(null,D=>""+D),h=Zc.bind(null,fx),d=Zc.bind(null,Xo);function f(D,G){let ne,pe;return Pm(D)?(ne=t.getRecordMatcher(D),pe=G):pe=D,t.addRoute(pe,ne)}function g(D){const G=t.getRecordMatcher(D);G&&t.removeRoute(G)}function _(){return t.getRoutes().map(D=>D.record)}function A(D){return!!t.getRecordMatcher(D)}function p(D,G){if(G=Je({},G||l.value),typeof D=="string"){const z=Fc(i,D,G.path),oe=t.resolve({path:z.path},G),he=s.createHref(z.fullPath);return Je(z,oe,{params:d(oe.params),hash:Xo(z.hash),redirectedFrom:void 0,href:he})}let ne;if(D.path!=null)ne=Je({},D,{path:Fc(i,D.path,G.path).path});else{const z=Je({},D.params);for(const oe in z)z[oe]==null&&delete z[oe];ne=Je({},D,{params:h(z)}),G.params=h(G.params)}const pe=t.resolve(ne,G),Ae=D.hash||"";pe.params=u(d(pe.params));const B=mx(r,Je({},D,{hash:ux(Ae),path:pe.path})),Z=s.createHref(B);return Je({fullPath:B,hash:Ae,query:r===t6?Tx(D.query):D.query||{}},pe,{redirectedFrom:void 0,href:Z})}function S(D){return typeof D=="string"?Fc(i,D,l.value.path):Je({},D)}function m(D,G){if(c!==D)return Mn(Ct.NAVIGATION_CANCELLED,{from:G,to:D})}function v(D){return M(D)}function k(D){return v(Je(S(D),{replace:!0}))}function x(D,G){const ne=D.matched[D.matched.length-1];if(ne&&ne.redirect){const{redirect:pe}=ne;let Ae=typeof pe=="function"?pe(D,G):pe;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=S(Ae):{path:Ae},Ae.params={}),Je({query:D.query,hash:D.hash,params:Ae.path!=null?{}:D.params},Ae)}}function M(D,G){const ne=c=p(D),pe=l.value,Ae=D.state,B=D.force,Z=D.replace===!0,z=x(ne,pe);if(z)return M(Je(S(z),{state:typeof z=="object"?Je({},Ae,z.state):Ae,force:B,replace:Z}),G||ne);const oe=ne;oe.redirectedFrom=G;let he;return!B&&gx(r,pe,ne)&&(he=Mn(Ct.NAVIGATION_DUPLICATED,{to:oe,from:pe}),me(pe,pe,!0,!1)),(he?Promise.resolve(he):O(oe,pe)).catch(ue=>wr(ue)?wr(ue,Ct.NAVIGATION_GUARD_REDIRECT)?ue:_e(ue):re(ue,oe,pe)).then(ue=>{if(ue){if(wr(ue,Ct.NAVIGATION_GUARD_REDIRECT))return M(Je({replace:Z},S(ue.to),{state:typeof ue.to=="object"?Je({},Ae,ue.to.state):Ae,force:B}),G||oe)}else ue=N(oe,pe,!0,Z,Ae);return R(oe,pe,ue),ue})}function F(D,G){const ne=m(D,G);return ne?Promise.reject(ne):Promise.resolve()}function P(D){const G=Se.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext(D):D()}function O(D,G){let ne;const[pe,Ae,B]=Hx(D,G);ne=Uc(pe.reverse(),"beforeRouteLeave",D,G);for(const z of pe)z.leaveGuards.forEach(oe=>{ne.push(es(oe,D,G))});const Z=F.bind(null,D,G);return ne.push(Z),se(ne).then(()=>{ne=[];for(const z of n.list())ne.push(es(z,D,G));return ne.push(Z),se(ne)}).then(()=>{ne=Uc(Ae,"beforeRouteUpdate",D,G);for(const z of Ae)z.updateGuards.forEach(oe=>{ne.push(es(oe,D,G))});return ne.push(Z),se(ne)}).then(()=>{ne=[];for(const z of B)if(z.beforeEnter)if(qi(z.beforeEnter))for(const oe of z.beforeEnter)ne.push(es(oe,D,G));else ne.push(es(z.beforeEnter,D,G));return ne.push(Z),se(ne)}).then(()=>(D.matched.forEach(z=>z.enterCallbacks={}),ne=Uc(B,"beforeRouteEnter",D,G,P),ne.push(Z),se(ne))).then(()=>{ne=[];for(const z of a.list())ne.push(es(z,D,G));return ne.push(Z),se(ne)}).catch(z=>wr(z,Ct.NAVIGATION_CANCELLED)?z:Promise.reject(z))}function R(D,G,ne){o.list().forEach(pe=>P(()=>pe(D,G,ne)))}function N(D,G,ne,pe,Ae){const B=m(D,G);if(B)return B;const Z=G===Kr,z=ln?history.state:{};ne&&(pe||Z?s.replace(D.fullPath,Je({scroll:Z&&z&&z.scroll},Ae)):s.push(D.fullPath,Ae)),l.value=D,me(D,G,ne,Z),_e()}let T;function W(){T||(T=s.listen((D,G,ne)=>{if(!ae.listening)return;const pe=p(D),Ae=x(pe,ae.currentRoute.value);if(Ae){M(Je(Ae,{replace:!0,force:!0}),pe).catch(Eo);return}c=pe;const B=l.value;ln&&kx(e6(B.fullPath,ne.delta),nc()),O(pe,B).catch(Z=>wr(Z,Ct.NAVIGATION_ABORTED|Ct.NAVIGATION_CANCELLED)?Z:wr(Z,Ct.NAVIGATION_GUARD_REDIRECT)?(M(Je(S(Z.to),{force:!0}),pe).then(z=>{wr(z,Ct.NAVIGATION_ABORTED|Ct.NAVIGATION_DUPLICATED)&&!ne.delta&&ne.type===hu.pop&&s.go(-1,!1)}).catch(Eo),Promise.reject()):(ne.delta&&s.go(-ne.delta,!1),re(Z,pe,B))).then(Z=>{Z=Z||N(pe,B,!1),Z&&(ne.delta&&!wr(Z,Ct.NAVIGATION_CANCELLED)?s.go(-ne.delta,!1):ne.type===hu.pop&&wr(Z,Ct.NAVIGATION_ABORTED|Ct.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),R(pe,B,Z)}).catch(Eo)}))}let q=ro(),ie=ro(),ee;function re(D,G,ne){_e(D);const pe=ie.list();return pe.length?pe.forEach(Ae=>Ae(D,G,ne)):console.error(D),Promise.reject(D)}function Y(){return ee&&l.value!==Kr?Promise.resolve():new Promise((D,G)=>{q.add([D,G])})}function _e(D){return ee||(ee=!D,W(),q.list().forEach(([G,ne])=>D?ne(D):G()),q.reset()),D}function me(D,G,ne,pe){const{scrollBehavior:Ae}=e;if(!ln||!Ae)return Promise.resolve();const B=!ne&&Mx(e6(D.fullPath,0))||(pe||!ne)&&history.state&&history.state.scroll||null;return Di().then(()=>Ae(D,G,B)).then(Z=>Z&&Ax(Z)).catch(Z=>re(Z,D,G))}const ge=D=>s.go(D);let $e;const Se=new Set,ae={currentRoute:l,listening:!0,addRoute:f,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:A,getRoutes:_,resolve:p,options:e,push:v,replace:k,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:n.add,beforeResolve:a.add,afterEach:o.add,onError:ie.add,isReady:Y,install(D){D.component("RouterLink",e$),D.component("RouterView",s$),D.config.globalProperties.$router=ae,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>le(l)}),ln&&!$e&&l.value===Kr&&($e=!0,v(s.location).catch(pe=>{}));const G={};for(const pe in Kr)Object.defineProperty(G,pe,{get:()=>l.value[pe],enumerable:!0});D.provide(ac,ae),D.provide(Qh,V_(G)),D.provide(fu,l);const ne=D.unmount;Se.add(D),D.unmount=function(){Se.delete(D),Se.size<1&&(c=Kr,T&&T(),T=null,l.value=Kr,$e=!1,ee=!1),ne()}}};function se(D){return D.reduce((G,ne)=>G.then(()=>P(ne)),Promise.resolve())}return ae}function dl(){return ii(ac)}function oc(e){return ii(Qh)}const a$="/logo.svg",Qn=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},o$=Qn("arrow-circle-up","0 0 256 256",'<path d="M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm34.83-102.83a4,4,0,0,1-5.66,5.66L132,97.66V168a4,4,0,0,1-8,0V97.66L98.83,122.83a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0Z"/>'),l$=Qn("arrow-circle-up","0 0 256 256",'<path d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm36.24-102.24a6,6,0,1,1-8.48,8.48L134,102.49V168a6,6,0,0,1-12,0V102.49l-21.76,21.75a6,6,0,0,1-8.48-8.48l32-32a6,6,0,0,1,8.48,0Z"/>'),_u=Qn("arrow-circle-up","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm37.66-101.66a8,8,0,0,1-11.32,11.32L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0Z"/>'),c$=Qn("arrow-circle-up","0 0 256 256",'<path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm40.49-100.49a12,12,0,0,1-17,17L140,117v51a12,12,0,0,1-24,0V117l-11.51,11.52a12,12,0,0,1-17-17l32-32a12,12,0,0,1,17,0Z"/>'),u$=Qn("arrow-circle-up","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,101.66a8,8,0,0,1-11.32,0L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,165.66,125.66Z"/>'),h$=Qn("arrow-circle-up","0 0 256 256",'<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"/><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm37.66-101.66a8,8,0,0,1-11.32,11.32L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0Z"/>'),d$="arrow-circle-up",ed=Object.freeze(Object.defineProperty({__proto__:null,bold:c$,default:_u,duotone:h$,fill:u$,glyphName:d$,light:l$,regular:_u,thin:o$},Symbol.toStringTag,{value:"Module"})),f$="/api";async function pt(e){const t=await fetch(`${f$}${e}`);if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()}async function f6(e,t){try{const i=await e.json(),r=i==null?void 0:i.message;if(typeof r=="string"&&r.trim()!=="")return r}catch{}return`${t}: ${e.status}`}const Pe={health:()=>pt("/health"),system:()=>pt("/system"),qr:()=>pt("/qr"),plugins:()=>pt("/plugins"),pluginsRefresh:()=>fetch("/api/plugins/refresh",{method:"POST"}).then(e=>e.json()),plugin:e=>pt(`/plugins/${e}`),setPluginDisabled:(e,t)=>fetch(`/api/plugins/${e}/disabled`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({disabled:t})}).then(i=>{if(!i.ok)throw new Error(`Set disabled failed: ${i.status}`);return i.json()}),bridge:()=>pt("/bridge"),saveBridge:e=>fetch("/api/bridge",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>{if(!t.ok)throw new Error(`Save failed: ${t.status}`);return t.json()}),accessories:()=>pt("/accessories"),devices:()=>pt("/devices"),controlDevice:(e,t,i)=>fetch(`/api/devices/${encodeURIComponent(e)}/control`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({control:t,value:i})}).then(r=>{if(!r.ok)throw new Error(`Control failed: ${r.status}`);return r.json()}),renameDevice:(e,t)=>fetch(`/api/devices/${encodeURIComponent(e)}/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t})}).then(i=>{if(!i.ok)throw new Error(`Rename failed: ${i.status}`);return i.json()}),deviceHistory:(e,t,i)=>{const r=new URLSearchParams({period:t});return i&&r.set("date",i),pt(`/devices/${encodeURIComponent(e)}/history?${r}`)},deviceMetrics:(e,t={})=>{const i=new URLSearchParams;t.metric&&i.set("metric",t.metric),t.from!==void 0&&i.set("from",String(t.from)),t.to!==void 0&&i.set("to",String(t.to)),t.maxPoints!==void 0&&i.set("maxPoints",String(t.maxPoints));const r=i.toString();return pt(`/devices/${encodeURIComponent(e)}/metrics${r?`?${r}`:""}`)},homekitHidden:()=>pt("/homekit/hidden"),setHomekitVisibility:(e,t)=>fetch(`/api/homekit/visibility/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({visible:t})}).then(i=>{if(!i.ok)throw new Error(`Visibility change failed: ${i.status}`);return i.json()}),deviceAccessory:e=>pt(`/devices/${encodeURIComponent(e)}/accessory`),homekitServiceTypes:()=>pt("/homekit/service-types"),setHomekitServiceType:(e,t,i)=>fetch(`/api/homekit/service-type/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({serviceUuid:t,type:i})}).then(async r=>{var s;if(!r.ok)throw new Error(((s=await r.json().catch(()=>null))==null?void 0:s.message)??`Type change failed: ${r.status}`);return r.json()}),setCharacteristic:(e,t,i,r)=>fetch(`/api/accessories/${e}/characteristics`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({serviceUuid:t,charUuid:i,value:r})}).then(s=>{if(!s.ok)throw new Error(`Set failed: ${s.status}`);return s.json()}),logs:(e,t=200)=>{const i=new URLSearchParams({limit:String(t)});return e&&i.set("plugin",e),pt(`/logs?${i}`)},pluginTelemetry:e=>pt(`/plugins/${encodeURIComponent(e)}/telemetry`),config:{get:()=>pt("/config"),save:e=>fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:e})}).then(t=>{if(!t.ok)throw new Error(`Save failed: ${t.status}`);return t.json()}),getPlatform:e=>pt(`/config/platform/${encodeURIComponent(e)}`),savePlatform:e=>fetch("/api/config/platform",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({platform:e})}).then(t=>{if(!t.ok)throw new Error(`Save failed: ${t.status}`);return t.json()}),getHbPlugin:(e,t)=>pt(`/config/hb-plugin/${encodeURIComponent(e)}${t?`?packageName=${encodeURIComponent(t)}`:""}`),saveHbPlugin:(e,t,i)=>fetch("/api/config/hb-plugin",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,packageName:i,config:t})}).then(r=>{if(!r.ok)throw new Error(`Save failed: ${r.status}`);return r.json()}),getPlugin:e=>pt(`/config/plugin/${encodeURIComponent(e)}`),savePlugin:(e,t)=>fetch("/api/config/plugin",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,config:t})}).then(i=>{if(!i.ok)throw new Error(`Save failed: ${i.status}`);return i.json()})},pluginInfo:e=>pt(`/marketplace/plugin-info/${encodeURIComponent(e)}`),daemon:{restart:()=>fetch("/api/daemon/restart",{method:"POST"}).then(e=>{if(!e.ok)throw new Error(`Restart failed: ${e.status}`);return e.json()})},updates:{check:()=>pt("/updates/check"),apply:()=>fetch("/api/updates/apply",{method:"POST"}).then(async e=>{if(!e.ok)throw new Error(await f6(e,"Update failed"));return e.json()}),rollback:()=>fetch("/api/updates/rollback",{method:"POST"}).then(async e=>{if(!e.ok)throw new Error(await f6(e,"Rollback failed"));return e.json()})},marketplace:{search:(e="",t=0,i=20)=>{const r=new URLSearchParams({q:e,from:String(t),size:String(i)});return pt(`/marketplace/search?${r}`)},enriched:e=>fetch(`/api/marketplace/enriched/${encodeURIComponent(e)}`).then(t=>t.ok?t.json():Promise.reject(new Error(`Enrichment failed: ${t.status}`))),installed:()=>pt("/marketplace/installed"),local:()=>pt("/marketplace/local"),install:e=>fetch("/api/marketplace/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({package:e})}).then(t=>{if(!t.ok)throw new Error(`Install failed: ${t.status}`);return t.json()}),update:e=>fetch(`/api/marketplace/update/${encodeURIComponent(e)}`,{method:"POST"}).then(t=>{if(!t.ok)throw new Error(`Update failed: ${t.status}`);return t.json()}),uninstall:e=>fetch(`/api/marketplace/uninstall/${encodeURIComponent(e)}`,{method:"DELETE"}).then(t=>{if(!t.ok)throw new Error(`Uninstall failed: ${t.status}`);return t.json()})}},ys=G0("daemon",()=>{const e=Q(null),t=Q([]),i=Q([]),r=Q([]),s=Q(!1),n=Q(null),a=Q(!1),o=J(()=>t.value.filter(A=>A.status==="running").length),l=J(()=>t.value.filter(A=>A.status==="error").length);async function c(){try{e.value=await Pe.health(),a.value=!0,n.value=null}catch{a.value=!1,e.value=null}}async function u(){s.value=!0;try{const A=await Pe.plugins();t.value=A.plugins}catch(A){n.value=String(A)}finally{s.value=!1}}async function h(){try{const A=await Pe.accessories();i.value=A.accessories}catch{}}async function d(A){try{const p=await Pe.logs(A);r.value=p.entries}catch(p){n.value=String(p)}}let f=null;function g(){if(f)return;const A=location.protocol==="https:"?"wss:":"ws:";f=new WebSocket(`${A}//${location.host}/ws/logs`),f.onmessage=p=>{if(!document.hidden)try{const S=JSON.parse(p.data);r.value.push(S),r.value.length>500&&r.value.shift()}catch{}},f.onclose=()=>{f=null,setTimeout(g,3e3)}}function _(){f==null||f.close(),f=null}return{health:e,plugins:t,accessories:i,logs:r,loading:s,error:n,connected:a,runningCount:o,errorCount:l,fetchHealth:c,fetchPlugins:u,fetchAccessories:h,fetchLogs:d,connectLiveLogs:g,disconnectLiveLogs:_}}),_6=Object.freeze(Object.defineProperty({__proto__:null,useDaemonStore:ys},Symbol.toStringTag,{value:"Module"})),fl=G0("inspector",()=>{const e=Q(!1),t=Q("plugin"),i=Q(null),r=Q(null);function s(c){i.value=c,r.value=null,t.value="plugin",e.value=!0}function n(){i.value=null,r.value=null,t.value="marketplace",e.value=!0}function a(c){r.value=c,i.value=null,t.value="device",e.value=!0}function o(c){r.value&&t.value==="device"&&(c.kind==="native"&&r.value.kind==="native"?c.dev.id===r.value.dev.id&&(r.value=c):c.kind==="hap"&&r.value.kind==="hap"&&c.acc.uuid===r.value.acc.uuid&&(r.value=c))}function l(){e.value=!1,i.value=null,r.value=null}return{visible:e,mode:t,selectedPlugin:i,selectedDevice:r,openPlugin:s,openMarketplace:n,openDevice:a,updateDevice:o,close:l}}),Ys=G0("layout",()=>{const e=Q(""),t=Q(null),i=Q(!1);function r(s,n,a){e.value=s,t.value=n??null,i.value=(a==null?void 0:a.fullBleed)??!1}return{title:e,count:t,fullBleed:i,setPage:r}}),_$="openbridge_platform_state",p6="openbridge_platform_expected_sub",Wc="openbridge_last_account",Ls=Q(null),Es=Q(null),so=Q(!1);function lc(){async function e(){if(Es.value)return Es.value;const _=await fetch("/auth/platform/config");if(!_.ok){const p={enabled:!1,issuer:null,appId:null};return Es.value=p,p}const A=await _.json();return Es.value=A,A}function t(){try{const _=localStorage.getItem(Wc);if(!_)return null;const A=JSON.parse(_);return A.sub&&A.email?A:null}catch{return null}}function i(_){try{localStorage.setItem(Wc,JSON.stringify(_))}catch{}}function r(){try{localStorage.removeItem(Wc)}catch{}}async function s(){if(!(await e()).enabled)return Ls.value=null,so.value=!0,!0;try{const A=await fetch("/auth/me",{credentials:"include"});if(!A.ok)return Ls.value=null,so.value=!0,!1;const p=await A.json();return Ls.value=p.user,i({sub:p.user.id,email:p.user.email}),so.value=!0,!0}catch{return Ls.value=null,so.value=!0,!1}}async function n(_={}){const A=await e();if(!A.enabled||!A.issuer)return;const p=A.appId??"openbridge",S=Array.from(crypto.getRandomValues(new Uint8Array(16))).map(k=>k.toString(16).padStart(2,"0")).join("");sessionStorage.setItem(_$,S),_.expectedSub?sessionStorage.setItem(p6,_.expectedSub):sessionStorage.removeItem(p6);const m=`${window.location.origin}/auth/callback`,v=new URL(`${A.issuer}/api/auth/sso`);v.searchParams.set("app_id",p),v.searchParams.set("redirect_uri",m),v.searchParams.set("state",S),_.prompt&&v.searchParams.set("prompt",_.prompt),_.loginHint&&v.searchParams.set("login_hint",_.loginHint),window.location.href=v.toString()}async function a(){const _=t();return _?(await n({loginHint:_.email,expectedSub:_.sub}),!0):!1}async function o(_){await n({loginHint:_})}async function l(){await n({prompt:"login"})}async function c(){await n({prompt:"select_account"})}async function u(){const _=await e();if(!_.enabled||!_.issuer)return[];try{const A=await fetch(`${_.issuer}/api/auth/identities`,{credentials:"include"});return A.ok?(await A.json()).identities??[]:[]}catch{return[]}}async function h(_){const A=await e();if(!A.enabled||!A.issuer)return!1;try{return(await fetch(`${A.issuer}/api/auth/identities/remove`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({user_id:_})})).ok}catch{return!1}}async function d(){await fetch("/auth/logout",{method:"POST",credentials:"include"}).catch(()=>null),Ls.value=null,r(),window.location.href="/login?logged_out=1"}async function f(){await fetch("/auth/logout",{method:"POST",credentials:"include"}).catch(()=>null),Ls.value=null,r();const _=Es.value;if(_!=null&&_.enabled&&_.issuer&&_.appId){const A=`${window.location.origin}/login?logged_out=1`,p=new URL("/api/auth/sso/end-session",_.issuer);p.searchParams.set("app_id",_.appId),p.searchParams.set("post_logout_redirect_uri",A),window.location.href=p.toString();return}window.location.href="/login?logged_out=1"}const g=J(()=>{var A;const _=(A=Es.value)==null?void 0:A.issuer;if(!_)return!1;try{const p=new URL(_).hostname;return p==="nubisco.io"||p.endsWith(".nubisco.io")}catch{return!1}});return{user:Ls,config:Es,ready:so,isNubiscoPlatform:g,loadConfig:e,checkAuth:s,startPlatformLogin:n,resumeLastAccount:a,switchAccount:o,addAccount:l,chooseAccount:c,listIdentities:u,removeIdentity:h,getLastAccount:t,clearLastAccount:r,logout:d,logoutEverywhere:f}}const ea=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},p$=ea("puzzle-piece","0 0 256 256",'<path d="M218.14,161.93a4,4,0,0,0-3.86-.24,24,24,0,0,1-34.23-23.25,24,24,0,0,1,34.23-20.13A4,4,0,0,0,220,114.7V72a12,12,0,0,0-12-12H167a32,32,0,1,0-62.91-10.33A32.57,32.57,0,0,0,105,60H64A12,12,0,0,0,52,72v37a32,32,0,1,0-10.33,62.91A32.28,32.28,0,0,0,52,171v37a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V165.31A4,4,0,0,0,218.14,161.93ZM212,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V165.31a4,4,0,0,0-1.86-3.38,4,4,0,0,0-3.85-.24,24,24,0,0,1-34.24-20.13,24,24,0,0,1,34.24-23.25A4,4,0,0,0,60,114.7V72a4,4,0,0,1,4-4h46.69a4,4,0,0,0,3.62-5.71,24,24,0,0,1,20.13-34.24,24,24,0,0,1,23.25,34.24A4,4,0,0,0,161.31,68H208a4,4,0,0,1,4,4v37a32.57,32.57,0,0,0-10.33-.94A32,32,0,1,0,212,171Z"/>'),m$=ea("puzzle-piece","0 0 256 256",'<path d="M219.21,160.24a6,6,0,0,0-5.78-.35,22,22,0,1,1-11.05-41.83,22.15,22.15,0,0,1,11.05,2.06A6,6,0,0,0,222,114.7V72a14,14,0,0,0-14-14H169.48a35,35,0,0,0,.52-6,34.1,34.1,0,0,0-10.73-24.78,33.64,33.64,0,0,0-25.45-9.15A34,34,0,0,0,102.54,58H64A14,14,0,0,0,50,72v34.53a34,34,0,0,0-30.79,10.2,34,34,0,0,0,22.31,57.18,34.34,34.34,0,0,0,8.48-.44V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V165.31A6,6,0,0,0,219.21,160.24ZM210,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V165.31a6,6,0,0,0-6-6,5.92,5.92,0,0,0-2.57.58,22,22,0,0,1-31.38-18.46,22,22,0,0,1,31.38-21.31A6,6,0,0,0,62,114.7V72a2,2,0,0,1,2-2h46.69a6,6,0,0,0,5.42-8.57,22.25,22.25,0,0,1-2-11,22,22,0,1,1,41.83,11A6,6,0,0,0,161.3,70H208a2,2,0,0,1,2,2v34.54a34,34,0,0,0-39.93,31.28,33.71,33.71,0,0,0,9.14,25.45A34.15,34.15,0,0,0,210,173.48Z"/>'),js=ea("puzzle-piece","0 0 256 256",'<path d="M220.27,158.54a8,8,0,0,0-7.7-.46,20,20,0,1,1,0-36.16A8,8,0,0,0,224,114.69V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36.11,36.11,0,0,0-11.36-26.24,36,36,0,0,0-60.55,23.62,36.56,36.56,0,0,0,.14,6.62H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36.12,36.12,0,0,0-26.24,11.36,35.7,35.7,0,0,0-9.69,27,36.08,36.08,0,0,0,33.31,33.6,35.68,35.68,0,0,0,6.62-.14V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V165.31A8,8,0,0,0,220.27,158.54ZM208,208H64V165.31a8,8,0,0,0-11.43-7.23,20,20,0,1,1,0-36.16A8,8,0,0,0,64,114.69V72h46.69a8,8,0,0,0,7.23-11.43,20,20,0,1,1,36.16,0A8,8,0,0,0,161.31,72H208v32.23a35.68,35.68,0,0,0-6.62-.14A36,36,0,0,0,204,176a35.36,35.36,0,0,0,4-.22Z"/>'),g$=ea("puzzle-piece","0 0 256 256",'<path d="M222.41,155.16a12,12,0,0,0-11.56-.69A16,16,0,0,1,188,139,16.2,16.2,0,0,1,202.8,124a15.83,15.83,0,0,1,8,1.5A12,12,0,0,0,228,114.7V72a20,20,0,0,0-20-20H176a40.15,40.15,0,0,0-12.62-29.16,39.67,39.67,0,0,0-29.94-10.76,40.08,40.08,0,0,0-37.34,37C96,50.07,96,51,96,52H64A20,20,0,0,0,44,72v28a40.15,40.15,0,0,0-29.16,12.62A40,40,0,0,0,41.1,179.9a28.3,28.3,0,0,0,2.9.1v28a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V165.31A12,12,0,0,0,222.41,155.16ZM204,204H68V165.31a12,12,0,0,0-17.15-10.84A15.9,15.9,0,0,1,42.8,156,16.2,16.2,0,0,1,28,141.06a16,16,0,0,1,22.82-15.52A12,12,0,0,0,68,114.7V76h42.7a12,12,0,0,0,10.83-17.15A15.9,15.9,0,0,1,120,50.8,16.19,16.19,0,0,1,134.94,36a16,16,0,0,1,15.53,22.81A12,12,0,0,0,161.31,76H204v24c-1,0-1.93,0-2.9.11A40,40,0,0,0,204,180h0Z"/>'),v$=ea("puzzle-piece","0 0 256 256",'<path d="M165.78,224H208a16,16,0,0,0,16-16V170.35A8,8,0,0,0,212.94,163a23.37,23.37,0,0,1-8.94,1.77c-13.23,0-24-11.1-24-24.73s10.77-24.73,24-24.73a23.37,23.37,0,0,1,8.94,1.77A8,8,0,0,0,224,109.65V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36,36,0,0,0-72,0,35.36,35.36,0,0,0,.22,4H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36,36,0,0,0,0,72,35.36,35.36,0,0,0,4-.22V208a16,16,0,0,0,16,16h42.22"/>'),b$=ea("puzzle-piece","0 0 256 256",'<path d="M204,168a28,28,0,0,0,12-2.69V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V165.31a28,28,0,1,1,0-50.62V72a8,8,0,0,1,8-8h46.69a28,28,0,1,1,50.61,0H208a8,8,0,0,1,8,8v42.69A28,28,0,1,0,204,168Z" opacity="0.2"/><path d="M220.27,158.54a8,8,0,0,0-7.7-.46,20,20,0,1,1,0-36.16A8,8,0,0,0,224,114.69V72a16,16,0,0,0-16-16H171.78a35.36,35.36,0,0,0,.22-4,36.15,36.15,0,0,0-11.36-26.25,36,36,0,0,0-60.55,23.63,36.56,36.56,0,0,0,.14,6.62H64A16,16,0,0,0,48,72v32.22a35.36,35.36,0,0,0-4-.22,36.12,36.12,0,0,0-26.24,11.36,35.7,35.7,0,0,0-9.69,27,36.08,36.08,0,0,0,33.31,33.6,36.56,36.56,0,0,0,6.62-.14V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V165.31A8,8,0,0,0,220.27,158.54ZM208,208H64V165.31a8,8,0,0,0-11.43-7.23,20,20,0,1,1,0-36.16A8,8,0,0,0,64,114.69V72h46.69a8,8,0,0,0,7.23-11.43,20,20,0,1,1,36.16,0A8,8,0,0,0,161.31,72H208v32.23a35.68,35.68,0,0,0-6.62-.14A36,36,0,0,0,204,176a35.36,35.36,0,0,0,4-.22Z"/>'),y$="puzzle-piece",w$=Object.freeze(Object.defineProperty({__proto__:null,bold:g$,default:js,duotone:b$,fill:v$,glyphName:y$,light:m$,regular:js,thin:p$},Symbol.toStringTag,{value:"Module"})),ta=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},S$=ta("trash","0 0 256 256",'<path d="M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"/>'),C$=ta("trash","0 0 256 256",'<path d="M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"/>'),m6=ta("trash","0 0 256 256",'<path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"/>'),A$=ta("trash","0 0 256 256",'<path d="M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"/>'),k$=ta("trash","0 0 256 256",'<path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"/>'),M$=ta("trash","0 0 256 256",'<path d="M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z" opacity="0.2"/><path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"/>'),L$="trash",td=Object.freeze(Object.defineProperty({__proto__:null,bold:A$,default:m6,duotone:M$,fill:k$,glyphName:L$,light:C$,regular:m6,thin:S$},Symbol.toStringTag,{value:"Module"})),ia=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},E$=ia("spinner","0 0 256 256",'<path d="M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"/>'),x$=ia("spinner","0 0 256 256",'<path d="M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"/>'),Ln=ia("spinner","0 0 256 256",'<path d="M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"/>'),$$=ia("spinner","0 0 256 256",'<path d="M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"/>'),T$=ia("spinner","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"/>'),N$=ia("spinner","0 0 256 256",'<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"/><path d="M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"/>'),H$="spinner",Jo=Object.freeze(Object.defineProperty({__proto__:null,bold:$$,default:Ln,duotone:N$,fill:T$,glyphName:H$,light:x$,regular:Ln,thin:E$},Symbol.toStringTag,{value:"Module"})),ra=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},P$=ra("floppy-disk","0 0 256 256",'<path d="M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"/>'),O$=ra("floppy-disk","0 0 256 256",'<path d="M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"/>'),g6=ra("floppy-disk","0 0 256 256",'<path d="M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"/>'),I$=ra("floppy-disk","0 0 256 256",'<path d="M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"/>'),R$=ra("floppy-disk","0 0 256 256",'<path d="M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"/>'),D$=ra("floppy-disk","0 0 256 256",'<path d="M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z" opacity="0.2"/><path d="M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"/>'),V$="floppy-disk",A0=Object.freeze(Object.defineProperty({__proto__:null,bold:I$,default:g6,duotone:D$,fill:R$,glyphName:V$,light:O$,regular:g6,thin:P$},Symbol.toStringTag,{value:"Module"})),sa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},B$=sa("arrows-clockwise","0 0 256 256",'<path d="M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"/>'),Z$=sa("arrows-clockwise","0 0 256 256",'<path d="M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"/>'),v6=sa("arrows-clockwise","0 0 256 256",'<path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>'),F$=sa("arrows-clockwise","0 0 256 256",'<path d="M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"/>'),z$=sa("arrows-clockwise","0 0 256 256",'<path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>'),U$=sa("arrows-clockwise","0 0 256 256",'<path d="M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z" opacity="0.2"/><path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>'),W$="arrows-clockwise",zs=Object.freeze(Object.defineProperty({__proto__:null,bold:F$,default:v6,duotone:U$,fill:z$,glyphName:W$,light:Z$,regular:v6,thin:B$},Symbol.toStringTag,{value:"Module"})),na=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},j$=na("download","0 0 256 256",'<path d="M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"/>'),K$=na("download","0 0 256 256",'<path d="M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"/>'),b6=na("download","0 0 256 256",'<path d="M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"/>'),q$=na("download","0 0 256 256",'<path d="M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"/>'),G$=na("download","0 0 256 256",'<path d="M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"/>'),Y$=na("download","0 0 256 256",'<path d="M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z" opacity="0.2"/><path d="M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"/>'),X$="download",J$=Object.freeze(Object.defineProperty({__proto__:null,bold:q$,default:b6,duotone:Y$,fill:G$,glyphName:X$,light:K$,regular:b6,thin:j$},Symbol.toStringTag,{value:"Module"})),aa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Q$=aa("upload","0 0 256 256",'<path d="M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"/>'),eT=aa("upload","0 0 256 256",'<path d="M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"/>'),y6=aa("upload","0 0 256 256",'<path d="M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"/>'),tT=aa("upload","0 0 256 256",'<path d="M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z"/>'),iT=aa("upload","0 0 256 256",'<path d="M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"/>'),rT=aa("upload","0 0 256 256",'<path d="M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z" opacity="0.2"/><path d="M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"/>'),sT="upload",nT=Object.freeze(Object.defineProperty({__proto__:null,bold:tT,default:y6,duotone:rT,fill:iT,glyphName:sT,light:eT,regular:y6,thin:Q$},Symbol.toStringTag,{value:"Module"}));var oa={},aT=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Vm={},$i={};let id;const oT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];$i.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};$i.getSymbolTotalCodewords=function(t){return oT[t]};$i.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};$i.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');id=t};$i.isKanjiModeEnabled=function(){return typeof id<"u"};$i.toSJIS=function(t){return id(t)};var cc={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,s){if(e.isValid(r))return r;try{return t(r)}catch{return s}}})(cc);function Bm(){this.buffer=[],this.length=0}Bm.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i<t;i++)this.putBit((e>>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var lT=Bm;function _l(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}_l.prototype.set=function(e,t,i,r){const s=e*this.size+t;this.data[s]=i,r&&(this.reservedBit[s]=!0)};_l.prototype.get=function(e,t){return this.data[e*this.size+t]};_l.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};_l.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var cT=_l,Zm={};(function(e){const t=$i.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const s=Math.floor(r/7)+2,n=t(r),a=n===145?26:Math.ceil((n-13)/(2*s-2))*2,o=[n-7];for(let l=1;l<s-1;l++)o[l]=o[l-1]-a;return o.push(6),o.reverse()},e.getPositions=function(r){const s=[],n=e.getRowColCoords(r),a=n.length;for(let o=0;o<a;o++)for(let l=0;l<a;l++)o===0&&l===0||o===0&&l===a-1||o===a-1&&l===0||s.push([n[o],n[l]]);return s}})(Zm);var Fm={};const uT=$i.getSymbolSize,w6=7;Fm.getPositions=function(t){const i=uT(t);return[[0,0],[i-w6,0],[0,i-w6]]};var zm={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},e.from=function(s){return e.isValid(s)?parseInt(s,10):void 0},e.getPenaltyN1=function(s){const n=s.size;let a=0,o=0,l=0,c=null,u=null;for(let h=0;h<n;h++){o=l=0,c=u=null;for(let d=0;d<n;d++){let f=s.get(h,d);f===c?o++:(o>=5&&(a+=t.N1+(o-5)),c=f,o=1),f=s.get(d,h),f===u?l++:(l>=5&&(a+=t.N1+(l-5)),u=f,l=1)}o>=5&&(a+=t.N1+(o-5)),l>=5&&(a+=t.N1+(l-5))}return a},e.getPenaltyN2=function(s){const n=s.size;let a=0;for(let o=0;o<n-1;o++)for(let l=0;l<n-1;l++){const c=s.get(o,l)+s.get(o,l+1)+s.get(o+1,l)+s.get(o+1,l+1);(c===4||c===0)&&a++}return a*t.N2},e.getPenaltyN3=function(s){const n=s.size;let a=0,o=0,l=0;for(let c=0;c<n;c++){o=l=0;for(let u=0;u<n;u++)o=o<<1&2047|s.get(c,u),u>=10&&(o===1488||o===93)&&a++,l=l<<1&2047|s.get(u,c),u>=10&&(l===1488||l===93)&&a++}return a*t.N3},e.getPenaltyN4=function(s){let n=0;const a=s.data.length;for(let l=0;l<a;l++)n+=s.data[l];return Math.abs(Math.ceil(n*100/a/5)-10)*t.N4};function i(r,s,n){switch(r){case e.Patterns.PATTERN000:return(s+n)%2===0;case e.Patterns.PATTERN001:return s%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(s+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return s*n%2+s*n%3===0;case e.Patterns.PATTERN110:return(s*n%2+s*n%3)%2===0;case e.Patterns.PATTERN111:return(s*n%3+(s+n)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(s,n){const a=n.size;for(let o=0;o<a;o++)for(let l=0;l<a;l++)n.isReserved(l,o)||n.xor(l,o,i(s,l,o))},e.getBestMask=function(s,n){const a=Object.keys(e.Patterns).length;let o=0,l=1/0;for(let c=0;c<a;c++){n(c),e.applyMask(c,s);const u=e.getPenaltyN1(s)+e.getPenaltyN2(s)+e.getPenaltyN3(s)+e.getPenaltyN4(s);e.applyMask(c,s),u<l&&(l=u,o=c)}return o}})(zm);var uc={};const ss=cc,Hl=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Pl=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];uc.getBlocksCount=function(t,i){switch(i){case ss.L:return Hl[(t-1)*4+0];case ss.M:return Hl[(t-1)*4+1];case ss.Q:return Hl[(t-1)*4+2];case ss.H:return Hl[(t-1)*4+3];default:return}};uc.getTotalCodewordsCount=function(t,i){switch(i){case ss.L:return Pl[(t-1)*4+0];case ss.M:return Pl[(t-1)*4+1];case ss.Q:return Pl[(t-1)*4+2];case ss.H:return Pl[(t-1)*4+3];default:return}};var Um={},hc={};const xo=new Uint8Array(512),k0=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)xo[i]=t,k0[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)xo[i]=xo[i-255]})();hc.log=function(t){if(t<1)throw new Error("log("+t+")");return k0[t]};hc.exp=function(t){return xo[t]};hc.mul=function(t,i){return t===0||i===0?0:xo[k0[t]+k0[i]]};(function(e){const t=hc;e.mul=function(r,s){const n=new Uint8Array(r.length+s.length-1);for(let a=0;a<r.length;a++)for(let o=0;o<s.length;o++)n[a+o]^=t.mul(r[a],s[o]);return n},e.mod=function(r,s){let n=new Uint8Array(r);for(;n.length-s.length>=0;){const a=n[0];for(let l=0;l<s.length;l++)n[l]^=t.mul(s[l],a);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n},e.generateECPolynomial=function(r){let s=new Uint8Array([1]);for(let n=0;n<r;n++)s=e.mul(s,new Uint8Array([1,t.exp(n)]));return s}})(Um);const Wm=Um;function rd(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}rd.prototype.initialize=function(t){this.degree=t,this.genPoly=Wm.generateECPolynomial(this.degree)};rd.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const r=Wm.mod(i,this.genPoly),s=this.degree-r.length;if(s>0){const n=new Uint8Array(this.degree);return n.set(r,s),n}return r};var hT=rd,jm={},ws={},sd={};sd.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var mr={};const Km="[0-9]+",dT="[A-Z $%*+\\-./:]+";let Qo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Qo=Qo.replace(/u/g,"\\u");const fT="(?:(?![A-Z0-9 $%*+\\-./:]|"+Qo+`)(?:.|[\r
|
|
51
|
+
]))+`;mr.KANJI=new RegExp(Qo,"g");mr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");mr.BYTE=new RegExp(fT,"g");mr.NUMERIC=new RegExp(Km,"g");mr.ALPHANUMERIC=new RegExp(dT,"g");const _T=new RegExp("^"+Qo+"$"),pT=new RegExp("^"+Km+"$"),mT=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");mr.testKanji=function(t){return _T.test(t)};mr.testNumeric=function(t){return pT.test(t)};mr.testAlphanumeric=function(t){return mT.test(t)};(function(e){const t=sd,i=mr;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(n,a){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?n.ccBits[0]:a<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function r(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+s)}}e.from=function(n,a){if(e.isValid(n))return n;try{return r(n)}catch{return a}}})(ws);(function(e){const t=$i,i=uc,r=cc,s=ws,n=sd,a=7973,o=t.getBCHDigit(a);function l(d,f,g){for(let _=1;_<=40;_++)if(f<=e.getCapacity(_,g,d))return _}function c(d,f){return s.getCharCountIndicator(d,f)+4}function u(d,f){let g=0;return d.forEach(function(_){const A=c(_.mode,f);g+=A+_.getBitsLength()}),g}function h(d,f){for(let g=1;g<=40;g++)if(u(d,g)<=e.getCapacity(g,f,s.MIXED))return g}e.from=function(f,g){return n.isValid(f)?parseInt(f,10):g},e.getCapacity=function(f,g,_){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=s.BYTE);const A=t.getSymbolTotalCodewords(f),p=i.getTotalCodewordsCount(f,g),S=(A-p)*8;if(_===s.MIXED)return S;const m=S-c(_,f);switch(_){case s.NUMERIC:return Math.floor(m/10*3);case s.ALPHANUMERIC:return Math.floor(m/11*2);case s.KANJI:return Math.floor(m/13);case s.BYTE:default:return Math.floor(m/8)}},e.getBestVersionForData=function(f,g){let _;const A=r.from(g,r.M);if(Array.isArray(f)){if(f.length>1)return h(f,A);if(f.length===0)return 1;_=f[0]}else _=f;return l(_.mode,_.getLength(),A)},e.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let g=f<<12;for(;t.getBCHDigit(g)-o>=0;)g^=a<<t.getBCHDigit(g)-o;return f<<12|g}})(jm);var qm={};const pu=$i,Gm=1335,gT=21522,S6=pu.getBCHDigit(Gm);qm.getEncodedBits=function(t,i){const r=t.bit<<3|i;let s=r<<10;for(;pu.getBCHDigit(s)-S6>=0;)s^=Gm<<pu.getBCHDigit(s)-S6;return(r<<10|s)^gT};var Ym={};const vT=ws;function En(e){this.mode=vT.NUMERIC,this.data=e.toString()}En.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};En.prototype.getLength=function(){return this.data.length};En.prototype.getBitsLength=function(){return En.getBitsLength(this.data.length)};En.prototype.write=function(t){let i,r,s;for(i=0;i+3<=this.data.length;i+=3)r=this.data.substr(i,3),s=parseInt(r,10),t.put(s,10);const n=this.data.length-i;n>0&&(r=this.data.substr(i),s=parseInt(r,10),t.put(s,n*3+1))};var bT=En;const yT=ws,jc=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function xn(e){this.mode=yT.ALPHANUMERIC,this.data=e}xn.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};xn.prototype.getLength=function(){return this.data.length};xn.prototype.getBitsLength=function(){return xn.getBitsLength(this.data.length)};xn.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let r=jc.indexOf(this.data[i])*45;r+=jc.indexOf(this.data[i+1]),t.put(r,11)}this.data.length%2&&t.put(jc.indexOf(this.data[i]),6)};var wT=xn;const ST=ws;function $n(e){this.mode=ST.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}$n.getBitsLength=function(t){return t*8};$n.prototype.getLength=function(){return this.data.length};$n.prototype.getBitsLength=function(){return $n.getBitsLength(this.data.length)};$n.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var CT=$n;const AT=ws,kT=$i;function Tn(e){this.mode=AT.KANJI,this.data=e}Tn.getBitsLength=function(t){return t*13};Tn.prototype.getLength=function(){return this.data.length};Tn.prototype.getBitsLength=function(){return Tn.getBitsLength(this.data.length)};Tn.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=kT.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
52
|
+
Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var MT=Tn,Xm={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,r,s){var n={},a={};a[r]=0;var o=t.PriorityQueue.make();o.push(r,0);for(var l,c,u,h,d,f,g,_,A;!o.empty();){l=o.pop(),c=l.value,h=l.cost,d=i[c]||{};for(u in d)d.hasOwnProperty(u)&&(f=d[u],g=h+f,_=a[u],A=typeof a[u]>"u",(A||_>g)&&(a[u]=g,o.push(u,g),n[u]=c))}if(typeof s<"u"&&typeof a[s]>"u"){var p=["Could not find a path from ",r," to ",s,"."].join("");throw new Error(p)}return n},extract_shortest_path_from_predecessor_list:function(i,r){for(var s=[],n=r;n;)s.push(n),i[n],n=i[n];return s.reverse(),s},find_path:function(i,r,s){var n=t.single_source_shortest_paths(i,r,s);return t.extract_shortest_path_from_predecessor_list(n,s)},PriorityQueue:{make:function(i){var r=t.PriorityQueue,s={},n;i=i||{};for(n in r)r.hasOwnProperty(n)&&(s[n]=r[n]);return s.queue=[],s.sorter=i.sorter||r.default_sorter,s},default_sorter:function(i,r){return i.cost-r.cost},push:function(i,r){var s={value:i,cost:r};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Xm);var LT=Xm.exports;(function(e){const t=ws,i=bT,r=wT,s=CT,n=MT,a=mr,o=$i,l=LT;function c(p){return unescape(encodeURIComponent(p)).length}function u(p,S,m){const v=[];let k;for(;(k=p.exec(m))!==null;)v.push({data:k[0],index:k.index,mode:S,length:k[0].length});return v}function h(p){const S=u(a.NUMERIC,t.NUMERIC,p),m=u(a.ALPHANUMERIC,t.ALPHANUMERIC,p);let v,k;return o.isKanjiModeEnabled()?(v=u(a.BYTE,t.BYTE,p),k=u(a.KANJI,t.KANJI,p)):(v=u(a.BYTE_KANJI,t.BYTE,p),k=[]),S.concat(m,v,k).sort(function(M,F){return M.index-F.index}).map(function(M){return{data:M.data,mode:M.mode,length:M.length}})}function d(p,S){switch(S){case t.NUMERIC:return i.getBitsLength(p);case t.ALPHANUMERIC:return r.getBitsLength(p);case t.KANJI:return n.getBitsLength(p);case t.BYTE:return s.getBitsLength(p)}}function f(p){return p.reduce(function(S,m){const v=S.length-1>=0?S[S.length-1]:null;return v&&v.mode===m.mode?(S[S.length-1].data+=m.data,S):(S.push(m),S)},[])}function g(p){const S=[];for(let m=0;m<p.length;m++){const v=p[m];switch(v.mode){case t.NUMERIC:S.push([v,{data:v.data,mode:t.ALPHANUMERIC,length:v.length},{data:v.data,mode:t.BYTE,length:v.length}]);break;case t.ALPHANUMERIC:S.push([v,{data:v.data,mode:t.BYTE,length:v.length}]);break;case t.KANJI:S.push([v,{data:v.data,mode:t.BYTE,length:c(v.data)}]);break;case t.BYTE:S.push([{data:v.data,mode:t.BYTE,length:c(v.data)}])}}return S}function _(p,S){const m={},v={start:{}};let k=["start"];for(let x=0;x<p.length;x++){const M=p[x],F=[];for(let P=0;P<M.length;P++){const O=M[P],R=""+x+P;F.push(R),m[R]={node:O,lastCount:0},v[R]={};for(let N=0;N<k.length;N++){const T=k[N];m[T]&&m[T].node.mode===O.mode?(v[T][R]=d(m[T].lastCount+O.length,O.mode)-d(m[T].lastCount,O.mode),m[T].lastCount+=O.length):(m[T]&&(m[T].lastCount=O.length),v[T][R]=d(O.length,O.mode)+4+t.getCharCountIndicator(O.mode,S))}}k=F}for(let x=0;x<k.length;x++)v[k[x]].end=0;return{map:v,table:m}}function A(p,S){let m;const v=t.getBestModeForData(p);if(m=t.from(S,v),m!==t.BYTE&&m.bit<v.bit)throw new Error('"'+p+'" cannot be encoded with mode '+t.toString(m)+`.
|
|
53
|
+
Suggested mode is: `+t.toString(v));switch(m===t.KANJI&&!o.isKanjiModeEnabled()&&(m=t.BYTE),m){case t.NUMERIC:return new i(p);case t.ALPHANUMERIC:return new r(p);case t.KANJI:return new n(p);case t.BYTE:return new s(p)}}e.fromArray=function(S){return S.reduce(function(m,v){return typeof v=="string"?m.push(A(v,null)):v.data&&m.push(A(v.data,v.mode)),m},[])},e.fromString=function(S,m){const v=h(S,o.isKanjiModeEnabled()),k=g(v),x=_(k,m),M=l.find_path(x.map,"start","end"),F=[];for(let P=1;P<M.length-1;P++)F.push(x.table[M[P]].node);return e.fromArray(f(F))},e.rawSplit=function(S){return e.fromArray(h(S,o.isKanjiModeEnabled()))}})(Ym);const dc=$i,Kc=cc,ET=lT,xT=cT,$T=Zm,TT=Fm,mu=zm,gu=uc,NT=hT,M0=jm,HT=qm,PT=ws,qc=Ym;function OT(e,t){const i=e.size,r=TT.getPositions(t);for(let s=0;s<r.length;s++){const n=r[s][0],a=r[s][1];for(let o=-1;o<=7;o++)if(!(n+o<=-1||i<=n+o))for(let l=-1;l<=7;l++)a+l<=-1||i<=a+l||(o>=0&&o<=6&&(l===0||l===6)||l>=0&&l<=6&&(o===0||o===6)||o>=2&&o<=4&&l>=2&&l<=4?e.set(n+o,a+l,!0,!0):e.set(n+o,a+l,!1,!0))}}function IT(e){const t=e.size;for(let i=8;i<t-8;i++){const r=i%2===0;e.set(i,6,r,!0),e.set(6,i,r,!0)}}function RT(e,t){const i=$T.getPositions(t);for(let r=0;r<i.length;r++){const s=i[r][0],n=i[r][1];for(let a=-2;a<=2;a++)for(let o=-2;o<=2;o++)a===-2||a===2||o===-2||o===2||a===0&&o===0?e.set(s+a,n+o,!0,!0):e.set(s+a,n+o,!1,!0)}}function DT(e,t){const i=e.size,r=M0.getEncodedBits(t);let s,n,a;for(let o=0;o<18;o++)s=Math.floor(o/3),n=o%3+i-8-3,a=(r>>o&1)===1,e.set(s,n,a,!0),e.set(n,s,a,!0)}function Gc(e,t,i){const r=e.size,s=HT.getEncodedBits(t,i);let n,a;for(n=0;n<15;n++)a=(s>>n&1)===1,n<6?e.set(n,8,a,!0):n<8?e.set(n+1,8,a,!0):e.set(r-15+n,8,a,!0),n<8?e.set(8,r-n-1,a,!0):n<9?e.set(8,15-n-1+1,a,!0):e.set(8,15-n-1,a,!0);e.set(r-8,8,1,!0)}function VT(e,t){const i=e.size;let r=-1,s=i-1,n=7,a=0;for(let o=i-1;o>0;o-=2)for(o===6&&o--;;){for(let l=0;l<2;l++)if(!e.isReserved(s,o-l)){let c=!1;a<t.length&&(c=(t[a]>>>n&1)===1),e.set(s,o-l,c),n--,n===-1&&(a++,n=7)}if(s+=r,s<0||i<=s){s-=r,r=-r;break}}}function BT(e,t,i){const r=new ET;i.forEach(function(l){r.put(l.mode.bit,4),r.put(l.getLength(),PT.getCharCountIndicator(l.mode,e)),l.write(r)});const s=dc.getSymbolTotalCodewords(e),n=gu.getTotalCodewordsCount(e,t),a=(s-n)*8;for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const o=(a-r.getLengthInBits())/8;for(let l=0;l<o;l++)r.put(l%2?17:236,8);return ZT(r,e,t)}function ZT(e,t,i){const r=dc.getSymbolTotalCodewords(t),s=gu.getTotalCodewordsCount(t,i),n=r-s,a=gu.getBlocksCount(t,i),o=r%a,l=a-o,c=Math.floor(r/a),u=Math.floor(n/a),h=u+1,d=c-u,f=new NT(d);let g=0;const _=new Array(a),A=new Array(a);let p=0;const S=new Uint8Array(e.buffer);for(let M=0;M<a;M++){const F=M<l?u:h;_[M]=S.slice(g,g+F),A[M]=f.encode(_[M]),g+=F,p=Math.max(p,F)}const m=new Uint8Array(r);let v=0,k,x;for(k=0;k<p;k++)for(x=0;x<a;x++)k<_[x].length&&(m[v++]=_[x][k]);for(k=0;k<d;k++)for(x=0;x<a;x++)m[v++]=A[x][k];return m}function FT(e,t,i,r){let s;if(Array.isArray(e))s=qc.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const u=qc.rawSplit(e);c=M0.getBestVersionForData(u,i)}s=qc.fromString(e,c||40)}else throw new Error("Invalid data");const n=M0.getBestVersionForData(s,i);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=n;else if(t<n)throw new Error(`
|
|
54
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
55
|
+
Minimum version required to store current data is: `+n+`.
|
|
56
|
+
`);const a=BT(t,i,s),o=dc.getSymbolSize(t),l=new xT(o);return OT(l,t),IT(l),RT(l,t),Gc(l,i,0),t>=7&&DT(l,t),VT(l,a),isNaN(r)&&(r=mu.getBestMask(l,Gc.bind(null,l,i))),mu.applyMask(r,l),Gc(l,i,r),{modules:l,version:t,errorCorrectionLevel:i,maskPattern:r,segments:s}}Vm.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Kc.M,s,n;return typeof i<"u"&&(r=Kc.from(i.errorCorrectionLevel,Kc.M),s=M0.from(i.version),n=mu.from(i.maskPattern),i.toSJISFunc&&dc.setToSJISFunction(i.toSJISFunc)),FT(t,s,r,n)};var Jm={},nd={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let r=i.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+i);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(n){return[n,n]}))),r.length===6&&r.push("F","F");const s=parseInt(r.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const s=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,n=r.width&&r.width>=21?r.width:void 0,a=r.scale||4;return{width:n,scale:n?4:a,margin:s,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,s){return s.width&&s.width>=r+s.margin*2?s.width/(r+s.margin*2):s.scale},e.getImageWidth=function(r,s){const n=e.getScale(r,s);return Math.floor((r+s.margin*2)*n)},e.qrToImageData=function(r,s,n){const a=s.modules.size,o=s.modules.data,l=e.getScale(a,n),c=Math.floor((a+n.margin*2)*l),u=n.margin*l,h=[n.color.light,n.color.dark];for(let d=0;d<c;d++)for(let f=0;f<c;f++){let g=(d*c+f)*4,_=n.color.light;if(d>=u&&f>=u&&d<c-u&&f<c-u){const A=Math.floor((d-u)/l),p=Math.floor((f-u)/l);_=h[o[A*a+p]?1:0]}r[g++]=_.r,r[g++]=_.g,r[g++]=_.b,r[g]=_.a}}})(nd);(function(e){const t=nd;function i(s,n,a){s.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=a,n.width=a,n.style.height=a+"px",n.style.width=a+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(n,a,o){let l=o,c=a;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),a||(c=r()),l=t.getOptions(l);const u=t.getImageWidth(n.modules.size,l),h=c.getContext("2d"),d=h.createImageData(u,u);return t.qrToImageData(d.data,n,l),i(h,c,u),h.putImageData(d,0,0),c},e.renderToDataURL=function(n,a,o){let l=o;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),l||(l={});const c=e.render(n,a,l),u=l.type||"image/png",h=l.rendererOpts||{};return c.toDataURL(u,h.quality)}})(Jm);var Qm={};const zT=nd;function C6(e,t){const i=e.a/255,r=t+'="'+e.hex+'"';return i<1?r+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function Yc(e,t,i){let r=e+t;return typeof i<"u"&&(r+=" "+i),r}function UT(e,t,i){let r="",s=0,n=!1,a=0;for(let o=0;o<e.length;o++){const l=Math.floor(o%t),c=Math.floor(o/t);!l&&!n&&(n=!0),e[o]?(a++,o>0&&l>0&&e[o-1]||(r+=n?Yc("M",l+i,.5+c+i):Yc("m",s,0),s=0,n=!1),l+1<t&&e[o+1]||(r+=Yc("h",a),a=0)):s++}return r}Qm.render=function(t,i,r){const s=zT.getOptions(i),n=t.modules.size,a=t.modules.data,o=n+s.margin*2,l=s.color.light.a?"<path "+C6(s.color.light,"fill")+' d="M0 0h'+o+"v"+o+'H0z"/>':"",c="<path "+C6(s.color.dark,"stroke")+' d="'+UT(a,n,s.margin)+'"/>',u='viewBox="0 0 '+o+" "+o+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg>
|
|
57
|
+
`;return typeof r=="function"&&r(null,d),d};const WT=aT,vu=Vm,eg=Jm,jT=Qm;function ad(e,t,i,r,s){const n=[].slice.call(arguments,1),a=n.length,o=typeof n[a-1]=="function";if(!o&&!WT())throw new Error("Callback required as last argument");if(o){if(a<2)throw new Error("Too few arguments provided");a===2?(s=i,i=t,t=r=void 0):a===3&&(t.getContext&&typeof s>"u"?(s=r,r=void 0):(s=r,r=i,i=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(i=t,t=r=void 0):a===2&&!t.getContext&&(r=i,i=t,t=void 0),new Promise(function(l,c){try{const u=vu.create(i,r);l(e(u,t,r))}catch(u){c(u)}})}try{const l=vu.create(i,r);s(null,e(l,t,r))}catch(l){s(l)}}oa.create=vu.create;oa.toCanvas=ad.bind(null,eg.render);oa.toDataURL=ad.bind(null,eg.renderToDataURL);oa.toString=ad.bind(null,function(e,t,i){return jT.render(e,i)});function A6(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function KT(e){if(Array.isArray(e))return e}function qT(e,t,i){return(t=tN(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function GT(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var r,s,n,a,o=[],l=!0,c=!1;try{if(n=(i=i.call(e)).next,t!==0)for(;!(l=(r=n.call(i)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(u){c=!0,s=u}finally{try{if(!l&&i.return!=null&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}function YT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k6(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,r)}return i}function M6(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?k6(Object(i),!0).forEach(function(r){qT(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k6(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function XT(e,t){if(e==null)return{};var i,r,s=JT(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)i=n[r],t.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function JT(e,t){if(e==null)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;i[r]=e[r]}return i}function QT(e,t){return KT(e)||GT(e,t)||iN(e,t)||YT()}function eN(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tN(e){var t=eN(e,"string");return typeof t=="symbol"?t:t+""}function iN(e,t){if(e){if(typeof e=="string")return A6(e,t);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?A6(e,t):void 0}}function rN(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function L6(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,r)}return i}function E6(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(i),!0).forEach(function(r){rN(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):L6(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function sN(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(r){return t.reduceRight(function(s,n){return n(s)},r)}}function _o(e){return function t(){for(var i=this,r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return s.length>=e.length?e.apply(this,s):function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return t.apply(i,[].concat(s,o))}}}function L0(e){return{}.toString.call(e).includes("Object")}function nN(e){return!Object.keys(e).length}function el(e){return typeof e=="function"}function aN(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function oN(e,t){return L0(t)||ls("changeType"),Object.keys(t).some(function(i){return!aN(e,i)})&&ls("changeField"),t}function lN(e){el(e)||ls("selectorType")}function cN(e){el(e)||L0(e)||ls("handlerType"),L0(e)&&Object.values(e).some(function(t){return!el(t)})&&ls("handlersType")}function uN(e){e||ls("initialIsRequired"),L0(e)||ls("initialType"),nN(e)&&ls("initialContent")}function hN(e,t){throw new Error(e[t]||e.default)}var dN={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ls=_o(hN)(dN),Ol={changes:oN,selector:lN,handler:cN,initial:uN};function fN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ol.initial(e),Ol.handler(t);var i={current:e},r=_o(mN)(i,t),s=_o(pN)(i),n=_o(Ol.changes)(e),a=_o(_N)(i);function o(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return Ol.selector(c),c(i.current)}function l(c){sN(r,s,n,a)(c)}return[o,l]}function _N(e,t){return el(t)?t(e.current):t}function pN(e,t){return e.current=E6(E6({},e.current),t),t}function mN(e,t,i){return el(t)?t(e.current):Object.keys(i).forEach(function(r){var s;return(s=t[r])===null||s===void 0?void 0:s.call(t,e.current[r])}),i}var gN={create:fN},vN={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function bN(e){return function t(){for(var i=this,r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return s.length>=e.length?e.apply(this,s):function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return t.apply(i,[].concat(s,o))}}}function yN(e){return{}.toString.call(e).includes("Object")}function wN(e){return e||x6("configIsRequired"),yN(e)||x6("configType"),e.urls?(SN(),{paths:{vs:e.urls.monacoBase}}):e}function SN(){console.warn(tg.deprecation)}function CN(e,t){throw new Error(e[t]||e.default)}var tg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
59
|
+
You are using deprecated way of configuration.
|
|
60
|
+
|
|
61
|
+
Instead of using
|
|
62
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
63
|
+
use
|
|
64
|
+
monaco.config({ paths: { vs: '...' } })
|
|
65
|
+
|
|
66
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
67
|
+
`},x6=bN(CN)(tg),AN={config:wN},kN=function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return function(s){return i.reduceRight(function(n,a){return a(n)},s)}};function ig(e,t){return Object.keys(t).forEach(function(i){t[i]instanceof Object&&e[i]&&Object.assign(t[i],ig(e[i],t[i]))}),M6(M6({},e),t)}var MN={type:"cancelation",msg:"operation is manually canceled"};function Xc(e){var t=!1,i=new Promise(function(r,s){e.then(function(n){return t?s(MN):r(n)}),e.catch(s)});return i.cancel=function(){return t=!0},i}var LN=["monaco"],EN=gN.create({config:vN,isInitialized:!1,resolve:null,reject:null,monaco:null}),rg=QT(EN,2),pl=rg[0],fc=rg[1];function xN(e){var t=AN.config(e),i=t.monaco,r=XT(t,LN);fc(function(s){return{config:ig(s.config,r),monaco:i}})}function $N(){var e=pl(function(t){var i=t.monaco,r=t.isInitialized,s=t.resolve;return{monaco:i,isInitialized:r,resolve:s}});if(!e.isInitialized){if(fc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Xc(Jc);if(window.monaco&&window.monaco.editor)return sg(window.monaco),e.resolve(window.monaco),Xc(Jc);kN(TN,HN)(PN)}return Xc(Jc)}function TN(e){return document.body.appendChild(e)}function NN(e){var t=document.createElement("script");return e&&(t.src=e),t}function HN(e){var t=pl(function(r){var s=r.config,n=r.reject;return{config:s,reject:n}}),i=NN("".concat(t.config.paths.vs,"/loader.js"));return i.onload=function(){return e()},i.onerror=t.reject,i}function PN(){var e=pl(function(i){var r=i.config,s=i.resolve,n=i.reject;return{config:r,resolve:s,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(i){var r=i.m||i;sg(r),e.resolve(r)},function(i){e.reject(i)})}function sg(e){pl().monaco||fc({monaco:e})}function ON(){return pl(function(e){var t=e.monaco;return t})}var Jc=new Promise(function(e,t){return fc({resolve:e,reject:t})}),ng={config:xN,init:$N,__getMonacoInstance:ON};const IN={key:0,class:"monaco-skeleton"},RN=Oe({__name:"MonacoJsonEditor",props:{modelValue:{},height:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,r=t,{resolved:s}=Xh(),n=Q(null),a=Vr(null),o=Q(!1);let l=!1;return ft(async()=>{const c=await ng.init();n.value&&(Fe(s,u=>c.editor.setTheme(u==="dark"?"vs-dark":"vs")),a.value=c.editor.create(n.value,{value:i.modelValue,language:"json",theme:s.value==="dark"?"vs-dark":"vs",fontSize:12,fontFamily:'"MesloLGS NF", monospace',minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",wordWrap:"on",automaticLayout:!0,tabSize:2,folding:!1,renderLineHighlight:"none",overviewRulerLanes:0,scrollbar:{verticalScrollbarSize:6}}),a.value.onDidChangeModelContent(()=>{l||r("update:modelValue",a.value.getValue())}),o.value=!0)}),Zi(()=>{var c;(c=a.value)==null||c.dispose()}),Fe(()=>i.modelValue,c=>{if(!a.value)return;a.value.getValue()!==c&&(l=!0,a.value.setValue(c),l=!1)}),(c,u)=>(b(),$("div",{style:mi({height:`${e.height??220}px`,width:"100%",position:"relative"})},[y("div",{ref_key:"containerEl",ref:n,style:{height:"100%",width:"100%"}},null,512),o.value?j("",!0):(b(),$("div",IN))],4))}}),$6=Zt(RN,[["__scopeId","data-v-0c34d464"]]),DN={class:"pcf-root"},VN={key:1,class:"pcf-no-schema"},BN=Oe({__name:"PluginConfigForm",props:{hbSchema:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,r=t;function s(h,d){const f=JSON.parse(JSON.stringify(i.modelValue));let g=f;for(let _=0;_<h.length-1;_++)(g[h[_]]===void 0||typeof g[h[_]]!="object")&&(g[h[_]]={}),g=g[h[_]];g[h[h.length-1]]=d,r("update:modelValue",f)}function n(h){let d=i.modelValue;for(const f of h){if(d==null||typeof d!="object")return;d=d[f]}return d}function a(h){return Array.isArray(h.type)?h.type[0]:h.type??"string"}function o(h,d){const f=n(h)??[],g=d.default??(a(d)==="string"?"":a(d)==="number"?0:"");s(h,[...f,g])}function l(h,d){const f=[...n(h)??[]];f.splice(d,1),s(h,f)}function c(h,d,f){const g=[...n(h)??[]];g[d]=f,s(h,g)}const u=J(()=>i.hbSchema.schema??{type:"object",properties:{}});return(h,d)=>{const f=Io("PluginConfigField");return b(),$("div",DN,[u.value.properties?(b(!0),$(be,{key:0},Ve(u.value.properties,(g,_)=>{var A;return b(),fe(f,{key:_,"field-key":String(_),field:g,path:[String(_)],required:((A=u.value.required)==null?void 0:A.includes(String(_)))??!1,value:n([String(_)]),onChange:p=>s([String(_)],p),onAddArray:d[0]||(d[0]=(p,S)=>o(p,S)),onRemoveArray:d[1]||(d[1]=(p,S)=>l(p,S)),onUpdateArray:d[2]||(d[2]=(p,S,m)=>c(p,S,m))},null,8,["field-key","field","path","required","value","onChange"])}),128)):(b(),$("div",VN,"No configurable fields found in schema."))])}}}),ZN=Zt(BN,[["__scopeId","data-v-d9cf6b0f"]]),FN={key:0,class:"inspector nb-inspector"},zN={class:"inspector-header"},UN={class:"inspector-title"},WN={class:"inspector-name"},jN={class:"inspector-version"},KN={class:"inspector-body"},qN={class:"field-value"},GN={class:"field-value"},YN={class:"hap-bridge-info"},XN={class:"hap-qr"},JN=["src"],QN={class:"hap-details"},eH={class:"field-value mono"},tH={class:"field-value"},iH={class:"field-value"},rH={key:0,class:"setup-loading"},sH={key:0,class:"platform-tabs"},nH=["onClick"],aH={key:1,class:"visual-editor-wrap"},oH={key:0,class:"json-error"},lH={key:1,class:"json-error"},cH={key:3,class:"save-error"},uH={class:"setup-actions"},hH={key:0,class:"json-error"},dH={key:0,class:"save-error"},fH={class:"setup-actions"},_H={class:"import-export-row"},pH={class:"plugin-device-name"},mH={class:"plugin-device-type"},gH={class:"field-value"},vH={class:"field-value"},bH={class:"field-value"},yH={class:"field-value"},wH={class:"error-text"},SH={class:"plog-time"},CH={class:"plog-msg"},T6="openbridge.pluginInspector.sections",AH=Oe({__name:"PluginInspector",setup(e){const t=ys(),i=Q(!1),r=Q("");async function s(){if(!i.value){i.value=!0;try{await Pe.daemon.restart();let H=0;const L=setInterval(async()=>{H++;try{await Pe.health(),clearInterval(L),location.reload()}catch{}H>60&&(clearInterval(L),i.value=!1)},1e3)}catch{i.value=!1}}}const n=fl(),a=[{id:"visual",label:"Visual",icon:"sliders"},{id:"json",label:"JSON",icon:"brackets-curly"}],o={status:"default",hap:"default",update:"default",manage:"collapsed",config:"default",transfer:"collapsed",devices:"default",manifest:"collapsed",error:"default",logs:"default"},l=Q({...o});try{const H=JSON.parse(localStorage.getItem(T6)??"{}");l.value={...o,...H}}catch{}Fe(l,H=>localStorage.setItem(T6,JSON.stringify(H)),{deep:!0}),Fe(()=>{var H,L;return(L=(H=n.selectedPlugin)==null?void 0:H.hapBridge)==null?void 0:L.setupURI},async H=>{if(H)try{r.value=await oa.toDataURL(H,{width:160,margin:1})}catch{r.value=""}else r.value=""},{immediate:!0});const c=J(()=>{const H=n.selectedPlugin;return H!=null&&H.devices?Object.values(H.devices):[]}),u={switch:"plugs",light:"lamp",thermostat:"thermometer",dehumidifier:"drop",energy_meter:"lightning",gate:"garage",sensor:"pulse"};function h(H){return u[H]??"cube"}const d={idle:"Idle",loading:"Loading",running:"Running",stopped:"Stopped",error:"Error"},f=Q(!1);async function g(){if(!(!n.selectedPlugin||f.value)){f.value=!0;try{await Pe.marketplace.update(n.selectedPlugin.manifest.name),await t.fetchPlugins(),await s()}catch(H){console.error("Failed to update plugin:",H)}finally{f.value=!1}}}const _=Q(!1),A=Q(!1);async function p(){if(!(!n.selectedPlugin||A.value)){A.value=!0;try{await Pe.marketplace.uninstall(n.selectedPlugin.manifest.name),await t.fetchPlugins(),n.close(),await Pe.daemon.restart()}catch(H){console.error("Failed to remove plugin:",H)}finally{A.value=!1,_.value=!1}}}const S=Q(!1);async function m(){if(!n.selectedPlugin||S.value)return;const H=!n.selectedPlugin.disabled;S.value=!0;try{const L=await Pe.setPluginDisabled(n.selectedPlugin.id,H);n.selectedPlugin.disabled=L.disabled}catch(L){console.error("Failed to toggle plugin disabled state:",L)}finally{S.value=!1}}const v=Q(null),k=Q(!1),x=Q(""),M=Q(""),F=Q(!1),P=Q(null),O=Q(!1),R=Q(null),N=Q({}),T=Q("visual"),W=J(()=>{var H;return((H=R.value)==null?void 0:H.schema)!=null}),q=J(()=>{var H;return((H=n.selectedPlugin)==null?void 0:H.source)==="homebridge"}),ie=J(()=>n.selectedPlugin!=null&&n.selectedPlugin.source!=="homebridge"),ee=Q(""),re=Q(!1),Y=Q(null),_e=Q(!1),me=J(()=>{try{return JSON.parse(ee.value),!0}catch{return!1}});Fe(()=>n.selectedPlugin,async H=>{if(ee.value="",Y.value=null,_e.value=!1,!(!H||H.source==="homebridge"))try{const L=await Pe.config.getPlugin(H.manifest.name);ee.value=JSON.stringify(L.config??{},null,2)}catch{ee.value="{}"}});const ge=Q(null);function $e(){var H;(H=ge.value)==null||H.click()}function Se(){if(!n.selectedPlugin)return;const H=n.selectedPlugin.manifest.name,L=q.value?M.value:ee.value;if(!L)return;const E=new Blob([L],{type:"application/json"}),I=URL.createObjectURL(E),K=document.createElement("a");K.href=I,K.download=`${H.replace(/[^a-z0-9-]/gi,"-")}-config.json`,K.click(),URL.revokeObjectURL(I)}async function ae(H){var E;const L=(E=H.target.files)==null?void 0:E[0];if(!(!L||!n.selectedPlugin))try{const I=await L.text(),K=JSON.parse(I);let de;if(K.platform&&typeof K.platform=="string"){const{plugin:ye,...Ee}=K;de=Ee}else de=K;await Pe.config.savePlugin(n.selectedPlugin.manifest.name,de),q.value?M.value=JSON.stringify(de,null,2):ee.value=JSON.stringify(de,null,2),ge.value&&(ge.value.value="")}catch(I){console.error("Import failed:",I)}}async function se(){if(re.value||!n.selectedPlugin)return;let H;try{H=JSON.parse(ee.value)}catch{Y.value="Invalid JSON: fix the syntax first";return}re.value=!0,Y.value=null,_e.value=!1;try{await Pe.config.savePlugin(n.selectedPlugin.manifest.name,H),_e.value=!0,setTimeout(()=>{_e.value=!1},3e3)}catch(L){Y.value=String(L)}finally{re.value=!1}}const D=J(()=>{const H=n.selectedPlugin;return!H||H.source!=="homebridge"?"":H.platformName??H.id??H.manifest.name});Fe(()=>n.selectedPlugin,async H=>{if(v.value=null,x.value="",M.value="",R.value=null,N.value={},P.value=null,O.value=!1,!(!H||H.source!=="homebridge")){k.value=!0;try{const L=await Pe.config.getHbPlugin(D.value,H.packageName);if(L.config){x.value=D.value,M.value=JSON.stringify(L.config,null,2),N.value=L.config,await G(H.manifest.name);return}const E=await Pe.pluginInfo(H.packageName??H.manifest.name);v.value=E,E.platforms.length>0&&await ne(E.platforms[0],E.mainFile),await G(H.manifest.name)}catch{try{const L=await Pe.config.getHbPlugin(D.value,H.packageName);L.config&&(x.value=D.value,M.value=JSON.stringify(L.config,null,2),N.value=L.config)}catch{}}finally{k.value=!1}}});async function G(H){try{const L=await fetch(`/api/marketplace/plugin-schema/${encodeURIComponent(H)}`);if(L.ok){const E=await L.json();R.value=E.schema}}catch{}}async function ne(H,L){var E,I;x.value=H;try{const K=await Pe.config.getPlatform(H),de=K.config?K.config:{platform:H,plugin:L??((E=v.value)==null?void 0:E.mainFile)??""};M.value=JSON.stringify(de,null,2),N.value=de}catch{const K={platform:H,plugin:L??((I=v.value)==null?void 0:I.mainFile)??""};M.value=JSON.stringify(K,null,2),N.value=K}}function pe(H){N.value=H,M.value=JSON.stringify(H,null,2)}function Ae(H){M.value=H;try{N.value=JSON.parse(H)}catch{}}function B(){try{return JSON.parse(M.value)}catch{return null}}const Z=J(()=>B()!==null),z=J(()=>{const H=B();return H!==null&&typeof H.platform!="string"}),oe=Q([]),he=Q(null);let ue=null;function w(){if(ue&&(ue.close(),ue=null),!n.selectedPlugin)return;const H=location.protocol==="https:"?"wss:":"ws:";ue=new WebSocket(`${H}//${location.host}/ws/logs`),ue.onmessage=L=>{var E,I;try{const K=JSON.parse(L.data);(K.plugin===((E=n.selectedPlugin)==null?void 0:E.id)||K.plugin===((I=n.selectedPlugin)==null?void 0:I.manifest.name))&&(oe.value=[...oe.value.slice(-199),K],setTimeout(()=>{he.value&&(he.value.scrollTop=he.value.scrollHeight)},10))}catch{}},ue.onclose=()=>{n.selectedPlugin&&setTimeout(w,3e3)}}Fe(()=>n.selectedPlugin,async H=>{if(oe.value=[],ue==null||ue.close(),ue=null,!!H){try{const L=await Pe.logs(H.manifest.name,100);oe.value=L.entries,setTimeout(()=>{he.value&&(he.value.scrollTop=he.value.scrollHeight)},20)}catch{}w()}}),ft(()=>{n.selectedPlugin&&w()}),Zi(()=>{ue==null||ue.close()});const C={debug:"var(--nb-c-text-muted)",info:"var(--nb-c-info)",warn:"var(--nb-c-warning)",error:"var(--nb-c-danger)"};async function V(){if(F.value||!n.selectedPlugin)return;const H=B();if(!H){P.value="Invalid JSON: fix the syntax first";return}F.value=!0,P.value=null,O.value=!1;try{const L=n.selectedPlugin;L.source==="homebridge"?await Pe.config.saveHbPlugin(D.value,H,L.packageName):await Pe.config.savePlugin(L.manifest.name,H),O.value=!0,setTimeout(()=>{O.value=!1},3e3)}catch(L){P.value=String(L)}finally{F.value=!1}}return(H,L)=>{const E=Ye,I=Gh,K=rc,de=Yh,ye=vi,Ee=ec,ze=LE;return le(n).selectedPlugin?(b(),$("div",FN,[y("div",zN,[y("div",{class:Le(["inspector-avatar",le(n).selectedPlugin.status])},[X(E,{name:le(js),size:24},null,8,["name"])],2),y("div",UN,[y("h2",WN,U(le(n).selectedPlugin.manifest.name),1),y("span",jN,"v"+U(le(n).selectedPlugin.manifest.version),1)])]),y("div",KN,[X(de,{size:l.value.status,"onUpdate:size":L[0]||(L[0]=Me=>l.value.status=Me),title:"Status",fluid:""},{default:te(()=>[X(I,{label:"Status",control:"fit"},{default:te(()=>[y("span",{class:Le(["status-badge",le(n).selectedPlugin.status])},U(d[le(n).selectedPlugin.status]),3)]),_:1}),le(n).selectedPlugin.startedAt?(b(),fe(I,{key:0,label:"Started",control:"fit"},{default:te(()=>[y("span",qN,U(new Date(le(n).selectedPlugin.startedAt).toLocaleString()),1)]),_:1})):j("",!0),le(n).selectedPlugin.stoppedAt?(b(),fe(I,{key:1,label:"Stopped",control:"fit"},{default:te(()=>[y("span",GN,U(new Date(le(n).selectedPlugin.stoppedAt).toLocaleString()),1)]),_:1})):j("",!0),X(I,{label:"Disabled",control:"fit"},{default:te(()=>[X(K,{name:`plugin-disabled-${le(n).selectedPlugin.id}`,"model-value":le(n).selectedPlugin.disabled??!1,disabled:S.value,"onUpdate:modelValue":m},null,8,["name","model-value","disabled"])]),_:1})]),_:1},8,["size"]),le(n).selectedPlugin.hapBridge?(b(),fe(de,{key:0,size:l.value.hap,"onUpdate:size":L[1]||(L[1]=Me=>l.value.hap=Me),title:"HomeKit pairing",fluid:""},{default:te(()=>[y("div",YN,[y("div",XN,[r.value?(b(),$("img",{key:0,src:r.value,alt:"HomeKit QR Code",class:"hap-qr-img"},null,8,JN)):j("",!0)]),y("div",QN,[X(I,{label:"PIN",control:"fit"},{default:te(()=>[y("span",eH,U(le(n).selectedPlugin.hapBridge.pincode),1)]),_:1}),X(I,{label:"Port",control:"fit"},{default:te(()=>[y("span",tH,U(le(n).selectedPlugin.hapBridge.port),1)]),_:1}),X(I,{label:"Bridge",control:"fit"},{default:te(()=>[y("span",iH,U(le(n).selectedPlugin.hapBridge.name),1)]),_:1})])]),L[15]||(L[15]=y("p",{class:"hap-hint"},"Scan with the Home app or enter the PIN manually to pair this plugin's devices.",-1))]),_:1},8,["size"])):j("",!0),le(n).selectedPlugin.availableUpdate?(b(),fe(de,{key:1,size:l.value.update,"onUpdate:size":L[2]||(L[2]=Me=>l.value.update=Me),title:"Update",fluid:""},{default:te(()=>[X(Ee,{status:"info",icon:ed,title:`Version ${le(n).selectedPlugin.availableUpdate} is available`},{action:te(()=>[X(ye,{variant:"primary",size:"sm",loading:f.value,disabled:f.value,onClick:g},{default:te(()=>[ce(U(f.value?"Updating...":"Update"),1)]),_:1},8,["loading","disabled"])]),default:te(()=>[ce(" Currently on "+U(le(n).selectedPlugin.manifest.version)+". ",1)]),_:1},8,["title"])]),_:1},8,["size"])):j("",!0),X(de,{size:l.value.manage,"onUpdate:size":L[5]||(L[5]=Me=>l.value.manage=Me),title:"Manage",fluid:""},{default:te(()=>[_.value?(b(),fe(Ee,{key:1,status:"error",title:"This uninstalls the plugin and removes its configuration"},{action:te(()=>[X(ye,{variant:"ghost",size:"sm",onClick:L[4]||(L[4]=Me=>_.value=!1)},{default:te(()=>[...L[17]||(L[17]=[ce("Cancel",-1)])]),_:1}),X(ye,{variant:"primary",size:"sm",loading:A.value,style:{background:"var(--nb-c-danger)","border-color":"var(--nb-c-danger)"},onClick:p},{default:te(()=>[...L[18]||(L[18]=[ce(" Remove ",-1)])]),_:1},8,["loading"])]),default:te(()=>[L[19]||(L[19]=ce(" OpenBridge needs a restart afterwards. ",-1))]),_:1})):(b(),fe(ye,{key:0,variant:"ghost",size:"sm",icon:td,style:{color:"var(--nb-c-danger)"},onClick:L[3]||(L[3]=Me=>_.value=!0)},{default:te(()=>[...L[16]||(L[16]=[ce(" Remove plugin ",-1)])]),_:1}))]),_:1},8,["size"]),q.value?(b(),fe(de,{key:2,size:l.value.config,"onUpdate:size":L[7]||(L[7]=Me=>l.value.config=Me),title:"Platform config",fluid:""},{default:te(()=>[k.value?(b(),$("div",rH,[X(E,{name:le(Ln),size:14},null,8,["name"]),L[20]||(L[20]=ce(" Loading config… ",-1))])):(b(),$(be,{key:1},[v.value&&v.value.platforms.length>1?(b(),$("div",sH,[(b(!0),$(be,null,Ve(v.value.platforms,Me=>(b(),$("button",{key:Me,class:Le(["platform-tab",{active:x.value===Me}]),onClick:St=>ne(Me)},U(Me),11,nH))),128))])):v.value&&v.value.platforms.length===0?(b(),fe(Ee,{key:1,status:"warning",variant:"callout",title:"No platform detected"},{default:te(()=>[...L[21]||(L[21]=[ce(" Add a ",-1),y("code",null,"platforms[]",-1),ce(" entry manually in Config. ",-1)])]),_:1})):j("",!0),!v.value||v.value.platforms.length>0?(b(),$(be,{key:2},[W.value?(b(),fe(ze,{key:0,"model-value":T.value,items:a,variant:"contained",size:"sm","onUpdate:modelValue":L[6]||(L[6]=Me=>T.value=Me)},null,8,["model-value"])):j("",!0),T.value==="visual"&&W.value?(b(),$("div",aH,[X(ZN,{"hb-schema":R.value,"model-value":N.value,"onUpdate:modelValue":pe},null,8,["hb-schema","model-value"])])):j("",!0),T.value==="json"||!W.value?(b(),$("div",{key:2,class:Le(["config-editor-wrap",{invalid:M.value&&!Z.value}])},[X($6,{"model-value":M.value,height:220,"onUpdate:modelValue":Ae},null,8,["model-value"]),M.value&&!Z.value?(b(),$("div",oH,"Invalid JSON")):z.value?(b(),$("div",lH,'Missing "platform" field')):j("",!0)],2)):j("",!0),P.value?(b(),$("div",cH,[X(E,{name:le(wn),size:13},null,8,["name"]),ce(" "+U(P.value),1)])):j("",!0),y("div",uH,[X(ye,{variant:"primary",size:"sm",loading:F.value,disabled:F.value||!Z.value||z.value,icon:O.value?_s:A0,onClick:V},{default:te(()=>[ce(U(O.value?"Saved!":"Save config"),1)]),_:1},8,["loading","disabled","icon"]),O.value?(b(),fe(ye,{key:0,variant:"secondary",size:"sm",outlined:"",loading:i.value,icon:i.value?Jo:zs,onClick:s},{default:te(()=>[ce(U(i.value?"Restarting…":"Restart OpenBridge"),1)]),_:1},8,["loading","icon"])):j("",!0)])],64)):j("",!0)],64))]),_:1},8,["size"])):j("",!0),ie.value?(b(),fe(de,{key:3,size:l.value.config,"onUpdate:size":L[9]||(L[9]=Me=>l.value.config=Me),title:"Plugin config",fluid:""},{default:te(()=>[y("div",{class:Le(["config-editor-wrap",{invalid:ee.value&&!me.value}])},[X($6,{"model-value":ee.value,height:220,"onUpdate:modelValue":L[8]||(L[8]=Me=>ee.value=Me)},null,8,["model-value"]),ee.value&&!me.value?(b(),$("div",hH,"Invalid JSON")):j("",!0)],2),Y.value?(b(),$("div",dH,[X(E,{name:le(wn),size:13},null,8,["name"]),ce(" "+U(Y.value),1)])):j("",!0),y("div",fH,[X(ye,{variant:"primary",size:"sm",loading:re.value,disabled:re.value||!me.value,icon:_e.value?_s:A0,onClick:se},{default:te(()=>[ce(U(_e.value?"Saved!":"Save config"),1)]),_:1},8,["loading","disabled","icon"]),_e.value?(b(),fe(ye,{key:0,variant:"secondary",size:"sm",outlined:"",loading:i.value,icon:i.value?Jo:zs,onClick:s},{default:te(()=>[ce(U(i.value?"Restarting…":"Restart OpenBridge"),1)]),_:1},8,["loading","icon"])):j("",!0)])]),_:1},8,["size"])):j("",!0),X(de,{size:l.value.transfer,"onUpdate:size":L[10]||(L[10]=Me=>l.value.transfer=Me),title:"Import & export",fluid:""},{default:te(()=>[y("div",_H,[X(ye,{variant:"ghost",size:"sm",icon:J$,onClick:Se},{default:te(()=>[...L[22]||(L[22]=[ce("Export config",-1)])]),_:1}),X(ye,{variant:"ghost",size:"sm",icon:nT,onClick:$e},{default:te(()=>[...L[23]||(L[23]=[ce("Import config",-1)])]),_:1}),y("input",{ref_key:"importInput",ref:ge,type:"file",accept:".json",style:{display:"none"},onChange:ae},null,544)])]),_:1},8,["size"]),c.value.length>0?(b(),fe(de,{key:4,size:l.value.devices,"onUpdate:size":L[11]||(L[11]=Me=>l.value.devices=Me),title:`Devices (${c.value.length})`,fluid:""},{default:te(()=>[(b(!0),$(be,null,Ve(c.value,Me=>(b(),$("div",{key:Me.id,class:"plugin-device-row"},[X(E,{name:h(Me.widgetType),size:14},null,8,["name"]),y("span",pH,U(Me.name),1),y("span",mH,U(Me.widgetType),1)]))),128))]),_:1},8,["size","title"])):j("",!0),X(de,{size:l.value.manifest,"onUpdate:size":L[12]||(L[12]=Me=>l.value.manifest=Me),title:"Manifest",fluid:""},{default:te(()=>[X(I,{label:"Name",control:"fit"},{default:te(()=>[y("span",gH,U(le(n).selectedPlugin.manifest.name),1)]),_:1}),X(I,{label:"Version",control:"fit"},{default:te(()=>[y("span",vH,U(le(n).selectedPlugin.manifest.version),1)]),_:1}),le(n).selectedPlugin.manifest.description?(b(),fe(I,{key:0,label:"Description",control:"fit"},{default:te(()=>[y("span",bH,U(le(n).selectedPlugin.manifest.description),1)]),_:1})):j("",!0),le(n).selectedPlugin.manifest.author?(b(),fe(I,{key:1,label:"Author",control:"fit"},{default:te(()=>[y("span",yH,U(le(n).selectedPlugin.manifest.author),1)]),_:1})):j("",!0)]),_:1},8,["size"]),le(n).selectedPlugin.error?(b(),fe(de,{key:5,size:l.value.error,"onUpdate:size":L[13]||(L[13]=Me=>l.value.error=Me),title:"Error",fluid:""},{default:te(()=>[X(Ee,{status:"error"},{default:te(()=>[y("code",wH,U(le(n).selectedPlugin.error),1)]),_:1})]),_:1},8,["size"])):j("",!0),oe.value.length>0?(b(),fe(de,{key:6,size:l.value.logs,"onUpdate:size":L[14]||(L[14]=Me=>l.value.logs=Me),title:"Recent logs",fluid:""},{default:te(()=>[y("div",{ref_key:"logsEl",ref:he,class:"plugin-log-terminal"},[(b(!0),$(be,null,Ve(oe.value,(Me,St)=>(b(),$("div",{key:St,class:"plugin-log-line"},[y("span",SH,U(new Date(Me.timestamp).toLocaleTimeString()),1),y("span",{class:"plog-level",style:mi({color:C[Me.level]})},U(Me.level.toUpperCase()),5),y("span",CH,U(Me.message),1)]))),128))],512)]),_:1},8,["size"])):j("",!0)])])):j("",!0)}}}),kH=Zt(AH,[["__scopeId","data-v-b8eb965d"]]),MH=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},un=MH("diamond","0 0 256 256",'<path d="M235.33,116.72,139.28,20.66a16,16,0,0,0-22.56,0l-96,96.06a16,16,0,0,0,0,22.56l96.05,96.06h0a16,16,0,0,0,22.56,0l96.05-96.06a16,16,0,0,0,0-22.56ZM128,224h0L32,128,128,32,224,128Z"/>'),LH=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},EH=LH("folder","0 0 256 256",'<path d="M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"/>'),xH=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},$H=xH("cloud-arrow-down","0 0 256 256",'<path d="M248,128a87.34,87.34,0,0,1-17.6,52.81,8,8,0,1,1-12.8-9.62A71.34,71.34,0,0,0,232,128a72,72,0,0,0-144,0,8,8,0,0,1-16,0,88,88,0,0,1,3.29-23.88C74.2,104,73.1,104,72,104a48,48,0,0,0,0,96H96a8,8,0,0,1,0,16H72A64,64,0,1,1,81.29,88.68,88,88,0,0,1,248,128Zm-69.66,42.34L160,188.69V128a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"/>'),TH=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},NH=TH("star","0 0 256 256",'<path d="M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"/>'),HH=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},ag=HH("heart","0 0 256 256",'<path d="M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z"/>'),PH=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},og=PH("book-open","0 0 256 256",'<path d="M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"/>'),OH=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},IH=OH("arrow-square-out","0 0 256 256",'<path d="M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"/>');let RH=0;function DH(){return`notif-${Date.now()}-${++RH}`}function lg(){const e=Mm();function t(i,r,s){e.add({id:DH(),variant:i,message:r,title:s==null?void 0:s.title,duration:(s==null?void 0:s.duration)??(i==="error"?6e3:3200)})}return{success:(i,r)=>t("success",i,r),error:(i,r)=>t("error",i,r),warning:(i,r)=>t("warning",i,r),info:(i,r)=>t("info",i,r),dismiss:i=>e.remove(i),clear:()=>e.clear()}}const VH={class:"mp-panel"},BH={class:"mp-search-wrap"},ZH={key:0,class:"mp-count"},FH={key:3,class:"mp-local-section"},zH={class:"mp-local-heading"},UH={class:"mp-avatar mp-avatar--ob"},WH={class:"mp-info"},jH={class:"mp-name-row"},KH={class:"mp-name"},qH={class:"badge badge--native"},GH={class:"badge badge--local"},YH={class:"mp-ver"},XH={key:0,class:"mp-desc"},JH={class:"mp-meta"},QH={key:0},eP={class:"mp-action"},tP={class:"mp-list"},iP={key:0,class:"mp-loading"},rP=["src","alt"],sP={class:"mp-info"},nP={class:"mp-name-row"},aP={class:"mp-name"},oP={class:"mp-ver"},lP={key:0,class:"mp-desc"},cP={class:"mp-meta"},uP={key:0},hP={key:1,class:"mp-sep"},dP={class:"mp-enriched"},fP={key:0,class:"mp-stat"},_P={key:1,class:"mp-stat"},pP=["href"],mP=["href"],gP=["href"],vP={class:"mp-action"},bP={key:1,class:"mp-load-more-wrap"},yP=20,wP="https://marketplace.openbridge.nubisco.io/api",SP=Oe({__name:"MarketplacePanel",setup(e){const t=ys(),i=lg(),r=Q(null),s=Q(""),n=Q([]),a=Q(0),o=Q(!1),l=Q(null),c=Q(null),u=Q(new Map),h=Q(null),d=Q(0),f=Q([]);function g(R){return{name:R.name,version:R.version,description:R.description??"",author:R.author?{name:R.author}:void 0,date:R.last_published_at,weeklyDownloads:R.weekly_downloads,githubStars:R.github_stars??void 0,githubSponsorsUrl:R.github_sponsors_url??void 0,documentationUrl:R.homepage??void 0,links:{npm:R.npm_url,homepage:R.homepage??void 0,repository:R.repository_url??void 0}}}function _(R){return R?R>=1e6?`${(R/1e6).toFixed(1)}M`:R>=1e3?`${(R/1e3).toFixed(1)}K`:R.toString():"0"}async function A(R=!0){R&&(d.value=0,n.value=[]),o.value=!0,l.value=null;try{const N=d.value+1,T=new URLSearchParams({q:s.value,page:String(N),limit:String(yP)}),W=await fetch(`${wP}/plugins?${T}`);if(!W.ok)throw new Error(`Marketplace API error: ${W.status}`);const q=await W.json(),ie=q.plugins.map(g);n.value=R?ie:[...n.value,...ie],a.value=q.total}catch(N){l.value=String(N)}finally{o.value=!1}}async function p(R){if(!c.value){c.value=R.name,l.value=null;try{const N=await Pe.marketplace.install(R.name);u.value.set(R.name,N.mainFile),h.value={name:R.name,mainFile:N.mainFile},await Pe.pluginsRefresh(),await t.fetchPlugins(),i.success(`Installed ${R.name}`)}catch(N){l.value=`Failed to install ${R.name}: ${N}`,i.error(`Failed to install ${R.name}`)}finally{c.value=null}}}async function S(R){if(!r.value){r.value=R,l.value=null;try{await Pe.marketplace.uninstall(R),u.value.delete(R),await t.fetchPlugins(),i.success(`Removed ${R}`)}catch(N){l.value=`Failed to uninstall ${R}: ${N}`,i.error(`Failed to remove ${R}`)}finally{r.value=null}}}async function m(R){if(!(c.value||!R.platform)){c.value=R.name,l.value=null;try{await Pe.config.savePlugin(R.name,{platform:R.platform}),u.value.set(R.name,`${R.path}/dist/index.js`),h.value={name:R.name,mainFile:`${R.path}/dist/index.js`},await t.fetchPlugins(),i.success(`Activated ${R.name}`)}catch(N){l.value=`Failed to activate ${R.name}: ${N}`,i.error(`Failed to activate ${R.name}`)}finally{c.value=null}}}function v(R){var W,q;const T=(((W=R.links)==null?void 0:W.repository)??((q=R.links)==null?void 0:q.homepage)??"").match(/github\.com\/([^/]+)/);return T?`https://github.com/${T[1]}.png?size=48`:null}function k(R){return R.name.includes("openbridge-")||Array.isArray(R.badges)&&R.badges.includes("openbridge-plugin")}function x(R){return R.author?typeof R.author=="string"?R.author:R.author.name??"":""}function M(R){const N=Math.floor((Date.now()-new Date(R).getTime())/864e5);return N===0?"today":N<30?`${N}d ago`:N<365?`${Math.floor(N/30)}mo ago`:`${Math.floor(N/365)}y ago`}function F(){d.value++,A(!1)}let P=null;function O(){P&&clearTimeout(P),P=setTimeout(()=>A(),350)}return ft(async()=>{try{const R=await Pe.marketplace.installed();for(const N of R.packages)u.value.set(N.name,N.mainFile)}catch{}try{const R=await Pe.marketplace.local();f.value=R.plugins}catch{}A()}),(R,N)=>{const T=ul,W=ec,q=rt,ie=Ye,ee=vi,re=hl;return b(),$("div",VH,[N[15]||(N[15]=y("div",{class:"mp-header"},[y("span",{class:"mp-title"},"Browse Plugins")],-1)),y("div",BH,[X(T,{modelValue:s.value,"onUpdate:modelValue":[N[0]||(N[0]=Y=>s.value=Y),O],placeholder:"Search plugins",size:"sm"},null,8,["modelValue"])]),a.value>0?(b(),$("div",ZH,U(a.value.toLocaleString())+" plugins found",1)):j("",!0),h.value?(b(),fe(W,{key:1,status:"success",dismissible:"",class:"mp-installed-banner",title:`${h.value.name} installed`,onDismiss:N[1]||(N[1]=Y=>h.value=null)},{default:te(()=>[...N[3]||(N[3]=[ce(" Click it in your plugins list to configure it. ",-1)])]),_:1},8,["title"])):j("",!0),l.value?(b(),fe(q,{key:2,variant:"error"},{default:te(()=>[ce(U(l.value),1)]),_:1})):j("",!0),f.value.length>0?(b(),$("div",FH,[y("div",zH,[X(ie,{name:le(un),size:11},null,8,["name"]),N[4]||(N[4]=ce(" Local plugins ",-1))]),(b(!0),$(be,null,Ve(f.value,Y=>(b(),fe(re,{key:Y.name,class:"mp-row mp-row--ob mp-row--local"},{default:te(()=>[y("div",UH,[X(ie,{name:le(un),size:16},null,8,["name"])]),y("div",WH,[y("div",jH,[y("span",KH,U(Y.name),1),y("span",qH,[X(ie,{name:le(un),size:9},null,8,["name"]),N[5]||(N[5]=ce(" Native ",-1))]),y("span",GH,[X(ie,{name:le(EH),size:9},null,8,["name"]),N[6]||(N[6]=ce(" Local ",-1))]),y("span",YH,"v"+U(Y.version),1)]),Y.description?(b(),$("p",XH,U(Y.description),1)):j("",!0),y("div",JH,[Y.author?(b(),$("span",QH,U(Y.author),1)):j("",!0)])]),y("div",eP,[u.value.has(Y.name)?(b(),fe(ee,{key:0,variant:"ghost",size:"sm",disabled:"",icon:_s},{default:te(()=>[...N[7]||(N[7]=[ce("Active",-1)])]),_:1})):(b(),fe(ee,{key:1,variant:"primary",size:"sm",loading:c.value===Y.name,disabled:!!c.value||!Y.platform,title:Y.platform?"":"No platform declared in package.json openbridge.platform",onClick:_e=>m(Y)},{default:te(()=>[...N[8]||(N[8]=[ce(" Activate ",-1)])]),_:1},8,["loading","disabled","title","onClick"]))])]),_:2},1024))),128))])):j("",!0),y("div",tP,[o.value&&n.value.length===0?(b(),$("div",iP,[X(ie,{name:le(Ln),size:22},null,8,["name"]),N[9]||(N[9]=y("span",null,"Searching npm…",-1))])):j("",!0),(b(!0),$(be,null,Ve(n.value,Y=>(b(),fe(re,{key:Y.name,class:Le(["mp-row",{"mp-row--ob":k(Y)}])},{default:te(()=>[y("div",{class:Le(["mp-avatar",{"mp-avatar--ob":k(Y)}])},[v(Y)?(b(),$("img",{key:0,src:v(Y),alt:Y.name,class:"mp-avatar-img",onError:N[2]||(N[2]=_e=>_e.target.style.display="none")},null,40,rP)):j("",!0),k(Y)?(b(),fe(ie,{key:1,name:le(un),size:16},null,8,["name"])):(b(),fe(ie,{key:2,name:le(js),size:16},null,8,["name"]))],2),y("div",sP,[y("div",nP,[y("span",aP,U(Y.name),1),y("span",oP,"v"+U(Y.version),1)]),Y.description?(b(),$("p",lP,U(Y.description),1)):j("",!0),y("div",cP,[x(Y)?(b(),$("span",uP,U(x(Y)),1)):j("",!0),x(Y)?(b(),$("span",hP,"·")):j("",!0),y("span",null,U(M(Y.date)),1)]),y("div",dP,[Y.weeklyDownloads?(b(),$("span",fP,[X(ie,{name:le($H),size:11},null,8,["name"]),ce(" "+U(_(Y.weeklyDownloads)),1)])):j("",!0),Y.githubStars?(b(),$("span",_P,[X(ie,{name:le(NH),weight:"fill",size:11},null,8,["name"]),ce(" "+U(_(Y.githubStars)),1)])):j("",!0),Y.githubSponsorsUrl?(b(),$("a",{key:2,href:Y.githubSponsorsUrl,target:"_blank",rel:"noopener",class:"mp-stat mp-stat--link"},[X(ie,{name:le(ag),weight:"fill",size:11},null,8,["name"]),N[10]||(N[10]=ce(" Sponsor ",-1))],8,pP)):j("",!0),Y.documentationUrl?(b(),$("a",{key:3,href:Y.documentationUrl,target:"_blank",rel:"noopener",class:"mp-stat mp-stat--link"},[X(ie,{name:le(og),size:11},null,8,["name"]),N[11]||(N[11]=ce(" Docs ",-1))],8,mP)):j("",!0),y("a",{href:`https://marketplace.openbridge.nubisco.io/plugins/${Y.name}`,target:"_blank",rel:"noopener",class:"mp-stat mp-stat--link mp-stat--marketplace"},[X(ie,{name:le(IH),size:11},null,8,["name"]),N[12]||(N[12]=ce(" Marketplace ",-1))],8,gP)])]),y("div",vP,[u.value.has(Y.name)?(b(),fe(ee,{key:0,variant:"danger",size:"sm",outlined:"",loading:r.value===Y.name,disabled:!!r.value,onClick:_e=>S(Y.name)},{default:te(()=>[...N[13]||(N[13]=[ce(" Remove ",-1)])]),_:1},8,["loading","disabled","onClick"])):(b(),fe(ee,{key:1,variant:"primary",size:"sm",loading:c.value===Y.name,disabled:!!c.value,onClick:_e=>p(Y)},{default:te(()=>[...N[14]||(N[14]=[ce(" Install ",-1)])]),_:1},8,["loading","disabled","onClick"]))])]),_:2},1032,["class"]))),128)),n.value.length>0&&n.value.length<a.value?(b(),$("div",bP,[X(ee,{variant:"ghost",size:"sm",loading:o.value,disabled:o.value,onClick:F},{default:te(()=>[ce(U(o.value?"Loading…":`Load more (${a.value-n.value.length} remaining)`),1)]),_:1},8,["loading","disabled"])])):j("",!0)])])}}}),CP=Zt(SP,[["__scopeId","data-v-37815e6e"]]),AP={key:0,class:"inspector-content nb-inspector"},kP={class:"detail-header"},MP={class:"detail-icon native-icon"},LP={style:{flex:"1","min-width":"0"}},EP={key:1,class:"rename-row"},xP={class:"detail-type"},$P={class:"info-grid"},TP={class:"info-val"},NP={class:"info-val"},HP={class:"info-val"},PP={class:"info-val"},OP={class:"info-val mono"},IP={key:0,class:"widget-energy"},RP={class:"energy-primary"},DP={class:"energy-value"},VP={class:"energy-secondary"},BP={key:0,class:"energy-item"},ZP={class:"energy-item-val"},FP={key:1,class:"energy-item"},zP={class:"energy-item-val"},UP={key:1,class:"widget-thermo"},WP={class:"thermo-row"},jP={class:"thermo-value"},KP={class:"thermo-row"},qP={class:"thermo-value accent"},GP={class:"thermo-row"},YP={key:2,class:"widget-thermo"},XP={class:"thermo-row"},JP={class:"thermo-value"},QP={class:"thermo-row"},eO={class:"thermo-value accent"},tO={class:"thermo-row"},iO={key:3,class:"widget-generic"},rO={key:0,class:"no-telemetry"},sO={class:"char-name"},nO={class:"char-value"},aO={class:"history-tabs"},oO=["onClick"],lO={key:0,class:"history-nav"},cO={class:"history-nav-center"},uO={class:"history-total"},hO={class:"history-date"},dO={key:2,class:"no-history"},fO={key:3,class:"no-history"},_O={key:4,class:"no-history"},pO={class:"calibration-actions"},mO={class:"char-list"},gO={class:"char-name"},vO={class:"char-value"},bO={key:0,class:"homekit-notice"},yO={class:"homekit-row"},wO={key:1,class:"homekit-notice"},SO={class:"detail-header"},CO={class:"detail-icon"},AO={style:{flex:"1","min-width":"0"}},kO={key:1,class:"rename-row"},MO={class:"detail-type"},LO={class:"info-grid"},EO={key:0,class:"info-key"},xO={key:1,class:"info-val"},$O={key:0,class:"homekit-row"},TO={key:1,class:"homekit-notice"},NO={class:"char-list"},HO={class:"char-name"},PO={class:"homekit-row"},OO={key:0,class:"homekit-notice"},IO={class:"detail-uuid"},RO=Oe({__name:"DeviceInspector",setup(e){const t=Q(new Set),i=Q(!1),r=Q("");function s(L){return!t.value.has(L)}async function n(){try{const{hidden:L}=await Pe.homekitHidden();t.value=new Set(L)}catch{}}async function a(L,E){i.value=!0,r.value="";try{const I=await Pe.setHomekitVisibility(L,E),K=new Set(t.value);E?K.delete(L):K.add(L),t.value=K,I.applied||(r.value="Saved. This takes effect after the next OpenBridge restart.")}catch(I){r.value=`Could not change visibility: ${I.message}`}finally{i.value=!1}}const o=Q({}),l=Q([]),c=Q(""),u=J(()=>[{value:"",label:"Default (as published)"},...l.value.map(L=>({value:L.key,label:L.label}))]);function h(L){return l.value.some(E=>E.serviceUuid===L)}function d(L,E){var I;return((I=o.value[L])==null?void 0:I[E])??""}const f=Q(null);function g(L){return L.homekitType||L.widgetType}async function _(L){f.value=null;try{const{accessory:E}=await Pe.deviceAccessory(L);f.value=E}catch{}}async function A(){try{const{overrides:L,available:E}=await Pe.homekitServiceTypes();o.value=L,l.value=E}catch{}}async function p(L,E,I){i.value=!0,c.value="";try{await Pe.setHomekitServiceType(L,E,I||null);const K={...o.value},de={...K[L]??{}};I?de[E]=I:delete de[E],Object.keys(de).length>0?K[L]=de:delete K[L],o.value=K,c.value="Saved. This takes effect after the next OpenBridge restart."}catch(K){c.value=`Could not change type: ${K.message}`}finally{i.value=!1}}ft(()=>{n(),A()});const S=fl(),m=J(()=>S.selectedDevice),v=J(()=>m.value?m.value.kind==="native"?m.value.dev.id:m.value.acc.uuid:null),k={1:{label:"Other",icon:"cube"},2:{label:"Bridge",icon:"intersect"},3:{label:"Fan",icon:"fan"},4:{label:"Garage Door",icon:"garage"},5:{label:"Light",icon:"lightbulb"},6:{label:"Lock",icon:"lock"},7:{label:"Outlet",icon:"plugs"},8:{label:"Switch",icon:"toggle-right"},9:{label:"Thermostat",icon:"thermometer"},10:{label:"Sensor",icon:"pulse"},11:{label:"Security",icon:"shield"},12:{label:"Door",icon:"door"},13:{label:"Window",icon:"app-window"},14:{label:"Window Covering",icon:"rows"},15:{label:"Programm. Switch",icon:"sliders"},16:{label:"Range Extender",icon:"broadcast"},17:{label:"Camera",icon:"camera"},18:{label:"Video Doorbell",icon:"bell"},19:{label:"Air Purifier",icon:"wind"},20:{label:"Heater/Cooler",icon:"thermometer-hot"},21:{label:"Air Conditioner",icon:"snowflake"},22:{label:"Humidifier",icon:"drop"},23:{label:"Dehumidifier",icon:"drop"},26:{label:"Speaker",icon:"speaker-high"},28:{label:"Sprinkler",icon:"drop"},29:{label:"Faucet",icon:"drop"},30:{label:"Shower",icon:"drop"},32:{label:"TV",icon:"television"},34:{label:"Router",icon:"broadcast"},36:{label:"Target Control",icon:"game-controller"},38:{label:"Smart Speaker",icon:"speaker-hifi"}};function x(L){return k[L]??{label:`Category ${L}`,icon:"cube"}}const M=new Set(["AccessoryInformation","0000003E-0000-1000-8000-0026BB765291","ProtocolInformation","000000A2-0000-1000-8000-0026BB765291"]);function F(L){return L.services.filter(E=>!M.has(E.name)&&!M.has(E.uuid))}function P(L){return L.services.find(E=>M.has(E.name)||M.has(E.uuid))}function O(L){const E=P(L);if(!E)return null;const I=K=>{var de;return(de=E.characteristics.find(ye=>ye.name===K||ye.name.includes(K)))==null?void 0:de.value};return{manufacturer:I("Manufacturer")??I("Manuf"),model:I("Model"),serial:I("SerialNumber")??I("Serial"),firmware:I("FirmwareRevision")??I("Firmware")}}function R(L){return L.value===null||L.value===void 0?"—":L.format==="bool"?L.value?"On":"Off":typeof L.value=="number"?String(Math.round(L.value*100)/100):String(L.value)}function N(L){return L.perms.includes("pw")}const T=Q(!1),W=Q("");function q(L){W.value=L,T.value=!0}async function ie(L){var E,I;if(W.value.trim())try{const K=W.value.trim();await Pe.renameDevice(L,K),T.value=!1,((E=m.value)==null?void 0:E.kind)==="native"?m.value.dev.name=K:((I=m.value)==null?void 0:I.kind)==="hap"&&(m.value.acc.displayName=K);const{useDaemonStore:de}=await Yf(async()=>{const{useDaemonStore:Ee}=await Promise.resolve().then(()=>_6);return{useDaemonStore:Ee}},void 0);await de().fetchAccessories()}catch(K){console.error("Rename failed:",K)}}async function ee(L,E,I,K){try{await Pe.setCharacteristic(L,E,I,K);const{useDaemonStore:de}=await Yf(async()=>{const{useDaemonStore:Ee}=await Promise.resolve().then(()=>_6);return{useDaemonStore:Ee}},void 0);await de().fetchAccessories()}catch(de){console.error("Failed to set characteristic:",de)}}const re={switch:"plugs",light:"lightbulb",thermostat:"thermometer",dehumidifier:"drop",energy_meter:"lightning",gate:"garage",sensor:"pulse"},Y={switch:"Switch",light:"Light",thermostat:"Thermostat",dehumidifier:"Dehumidifier",energy_meter:"Energy Meter",gate:"Gate",sensor:"Sensor"};function _e(L){return re[L]??"cube"}function me(L){return Y[L]??L}function ge(L,E=1){if(L==null)return"—";const I=Number(L);return isFinite(I)?I.toFixed(E):String(L)}function $e(L){return Object.entries(L.telemetry).filter(([E])=>!E.startsWith("_"))}const Se=Q("day"),ae=Q(new Date().toISOString().slice(0,10)),se=Q(null),D=Q(!1);async function G(L){if(!D.value){D.value=!0;try{se.value=await Pe.deviceHistory(L,Se.value,ae.value)}catch{}finally{D.value=!1}}}function ne(L){var I;const E=new Date(ae.value+(ae.value.length<=7?"-01":""));Se.value==="day"?(E.setDate(E.getDate()+L),ae.value=E.toISOString().slice(0,10)):Se.value==="month"?(E.setMonth(E.getMonth()+L),ae.value=E.toISOString().slice(0,7)):(E.setFullYear(E.getFullYear()+L),ae.value=String(E.getFullYear())),((I=m.value)==null?void 0:I.kind)==="native"&&G(m.value.dev.id)}Fe(Se,()=>{var E;const L=new Date;Se.value==="day"?ae.value=L.toISOString().slice(0,10):Se.value==="month"?ae.value=L.toISOString().slice(0,7):ae.value=String(L.getFullYear()),((E=m.value)==null?void 0:E.kind)==="native"&&m.value.dev.widgetType==="energy_meter"&&G(m.value.dev.id)}),Fe(v,(L,E)=>{if(L===E&&se.value)return;const I=m.value;(I==null?void 0:I.kind)==="native"?_(I.dev.id):f.value=null,(I==null?void 0:I.kind)==="native"&&I.dev.widgetType==="energy_meter"&&(ae.value=new Date().toISOString().slice(0,10),Se.value="day",G(I.dev.id))},{immediate:!0});const pe=Q([]),Ae=Q([]),B=Q(!1),Z=Q(!1),z=Q(!1),oe=J(()=>JSON.stringify(pe.value)!==JSON.stringify(Ae.value)),he=J(()=>!m.value||m.value.kind!=="native"?null:m.value.dev);async function ue(L){const{plugins:E}=await Pe.plugins(),I=E.find(de=>de.id===L.pluginId);if(!I)return null;if(I.source!=="homebridge"){const{config:de}=await Pe.config.getPlugin(L.pluginId);return de?{pluginConfig:de,isNative:!0,pluginName:L.pluginId,platformName:void 0}:null}else{const de=I.platformName??L.pluginId,{config:ye}=await Pe.config.getPlatform(de);return ye?{pluginConfig:ye,isNative:!1,pluginName:L.pluginId,platformName:de}:null}}async function w(){const L=he.value;if(L!=null&&L.interpolation){B.value=!0,z.value=!1;try{const E=await ue(L);if(!E)return;const K=(E.pluginConfig.devices??[]).find(ze=>ze.id===L.id);if(!K)return;const de=L.interpolation,Ee=(K[de.configField]??[]).map(ze=>({input:ze[de.configShape.inputKey]??0,output:ze[de.configShape.outputKey]??0}));pe.value=Ee,Ae.value=JSON.parse(JSON.stringify(Ee))}catch(E){console.error("Failed to load interpolation config:",E)}finally{B.value=!1}}}async function C(){const L=he.value;if(L!=null&&L.interpolation){Z.value=!0,z.value=!1;try{const E=await ue(L);if(!E)return;const I=L.interpolation,K=E.pluginConfig.devices??[],de=K.findIndex(Ee=>Ee.id===L.id);if(de<0)return;const ye=pe.value.map(Ee=>({[I.configShape.inputKey]:Ee.input,[I.configShape.outputKey]:Ee.output}));K[de]={...K[de],[I.configField]:ye},E.pluginConfig.devices=K,E.isNative?await Pe.config.savePlugin(E.pluginName,E.pluginConfig):await Pe.config.savePlatform(E.pluginConfig),Ae.value=JSON.parse(JSON.stringify(pe.value)),z.value=!0}catch(E){console.error("Failed to save interpolation config:",E)}finally{Z.value=!1}}}function V(){pe.value=JSON.parse(JSON.stringify(Ae.value)),z.value=!1}Fe(v,(L,E)=>{var I;L===E&&Ae.value.length>0||(z.value=!1,((I=m.value)==null?void 0:I.kind)==="native"&&m.value.dev.interpolation?w():(pe.value=[],Ae.value=[]))},{immediate:!0});const H=J(()=>{var E;return(E=se.value)!=null&&E.buckets?[{name:"kWh",data:se.value.buckets.map(I=>{let K=I.label;return Se.value==="day"?K=parseInt(I.label)%6===0?I.label:"":Se.value==="month"&&(K=parseInt(I.label)%5===1?I.label:""),{x:K,y:Math.max(0,Math.round((I.kwh??0)*100)/100)}})}]:[]});return(L,E)=>{const I=Ye,K=ul,de=vi,ye=Yh,Ee=GS,ze=FM,Me=ec,St=sc,Gt=rc;return m.value?(b(),$("div",AP,[m.value.kind==="native"?(b(),$(be,{key:0},[y("div",kP,[y("div",MP,[X(I,{name:_e(g(m.value.dev)),size:26},null,8,["name"])]),y("div",LP,[T.value?(b(),$("div",EP,[X(K,{modelValue:W.value,"onUpdate:modelValue":E[1]||(E[1]=He=>W.value=He),size:"sm",onKeyup:[E[2]||(E[2]=is(He=>ie(m.value.dev.id),["enter"])),E[3]||(E[3]=is(He=>T.value=!1,["escape"]))]},null,8,["modelValue"]),X(de,{variant:"primary",size:"sm",icon:_s,"aria-label":"Save name",onClick:E[4]||(E[4]=He=>ie(m.value.dev.id))}),X(de,{variant:"ghost",size:"sm",icon:q1,"aria-label":"Cancel rename",onClick:E[5]||(E[5]=He=>T.value=!1)})])):(b(),$("h2",{key:0,class:"detail-name",title:"Click to rename",onClick:E[0]||(E[0]=He=>q(m.value.dev.name))},U(m.value.dev.name),1)),y("div",xP,U(me(g(m.value.dev))),1)])]),X(ye,{title:"Device info",fluid:""},{default:te(()=>[y("div",$P,[E[19]||(E[19]=y("span",{class:"info-key"},"Plugin",-1)),y("span",TP,U(m.value.dev.pluginId),1),m.value.dev.manufacturer?(b(),$(be,{key:0},[E[17]||(E[17]=y("span",{class:"info-key"},"Manufacturer",-1)),y("span",NP,U(m.value.dev.manufacturer),1)],64)):j("",!0),m.value.dev.model?(b(),$(be,{key:1},[E[18]||(E[18]=y("span",{class:"info-key"},"Model",-1)),y("span",HP,U(m.value.dev.model),1)],64)):j("",!0),E[20]||(E[20]=y("span",{class:"info-key"},"Status",-1)),y("span",PP,U(m.value.dev.pluginStatus),1),E[21]||(E[21]=y("span",{class:"info-key"},"ID",-1)),y("span",OP,U(m.value.dev.id),1)])]),_:1}),X(ye,{title:"State",fluid:""},{default:te(()=>[m.value.dev.widgetType==="energy_meter"?(b(),$("div",IP,[y("div",RP,[y("span",DP,U(ge(m.value.dev.telemetry.power,1)),1),E[22]||(E[22]=y("span",{class:"energy-unit"},"W",-1))]),y("div",VP,[m.value.dev.telemetry.voltage!==void 0?(b(),$("span",BP,[E[23]||(E[23]=y("span",{class:"energy-label"},"Voltage",-1)),y("span",ZP,U(ge(m.value.dev.telemetry.voltage,1))+" V",1)])):j("",!0),m.value.dev.telemetry.current!==void 0?(b(),$("span",FP,[E[24]||(E[24]=y("span",{class:"energy-label"},"Current",-1)),y("span",zP,U(ge(m.value.dev.telemetry.current,3))+" A",1)])):j("",!0)])])):m.value.dev.widgetType==="thermostat"?(b(),$("div",UP,[y("div",WP,[E[25]||(E[25]=y("span",{class:"thermo-label"},"Current",-1)),y("span",jP,U(ge(m.value.dev.telemetry.currentTemperature,1))+"°C",1)]),y("div",KP,[E[26]||(E[26]=y("span",{class:"thermo-label"},"Target",-1)),y("span",qP,U(ge(m.value.dev.telemetry.targetTemperature,1))+"°C ",1)]),y("div",GP,[E[27]||(E[27]=y("span",{class:"thermo-label"},"Active",-1)),y("span",{class:Le(["thermo-value",m.value.dev.telemetry.active?"on":"off"])},U(m.value.dev.telemetry.active?"On":"Off"),3)])])):m.value.dev.widgetType==="dehumidifier"?(b(),$("div",YP,[y("div",XP,[E[28]||(E[28]=y("span",{class:"thermo-label"},"Humidity",-1)),y("span",JP,U(ge(m.value.dev.telemetry.currentHumidity,0))+"%",1)]),y("div",QP,[E[29]||(E[29]=y("span",{class:"thermo-label"},"Target",-1)),y("span",eO,U(ge(m.value.dev.telemetry.targetHumidity,0))+"%",1)]),y("div",tO,[E[30]||(E[30]=y("span",{class:"thermo-label"},"Active",-1)),y("span",{class:Le(["thermo-value",m.value.dev.telemetry.active?"on":"off"])},U(m.value.dev.telemetry.active?"On":"Off"),3)])])):(b(),$("div",iO,[Object.keys(m.value.dev.telemetry).filter(He=>!He.startsWith("_")).length===0?(b(),$("span",rO,"No telemetry yet")):j("",!0),(b(!0),$(be,null,Ve($e(m.value.dev),([He,st])=>(b(),$("div",{key:He,class:"char-row"},[y("span",sO,U(He),1),y("span",nO,U(String(st)),1)]))),128))]))]),_:1}),m.value.dev.widgetType==="energy_meter"?(b(),fe(ye,{key:0,title:"Energy history",class:"energy-history",fluid:""},{default:te(()=>[y("div",aO,[(b(),$(be,null,Ve(["day","month","year"],He=>y("button",{key:He,class:Le(["history-tab",{active:Se.value===He}]),onClick:st=>Se.value=He},U(He),11,oO)),64))]),se.value?(b(),$("div",lO,[X(de,{variant:"ghost",size:"xs",icon:u9,title:"Previous",onClick:E[6]||(E[6]=He=>ne(-1))}),y("div",cO,[y("span",uO,[ce(U(se.value.totalKwh.toFixed(2))+" ",1),E[31]||(E[31]=y("span",{class:"history-unit"},"kWh",-1))]),y("span",hO,U(se.value.date),1)]),X(de,{variant:"ghost",size:"xs",icon:xw,title:"Next",onClick:E[7]||(E[7]=He=>ne(1))})])):j("",!0),se.value&&se.value.totalKwh>0?(b(),fe(Ee,{key:1,series:H.value,height:120,"show-legend":!1,"show-tooltip":!0},null,8,["series"])):j("",!0),se.value&&se.value.totalKwh===0?(b(),$("div",dO," No consumption recorded for this period. Data accumulates every 5 minutes. ")):j("",!0),!se.value&&!D.value?(b(),$("div",fO,"No data available for this period.")):j("",!0),D.value?(b(),$("div",_O,"Loading history…")):j("",!0)]),_:1})):j("",!0),m.value.dev.interpolation&&pe.value.length>0?(b(),fe(ye,{key:1,title:"Calibration",fluid:""},{default:te(()=>[X(ze,{modelValue:pe.value,"onUpdate:modelValue":E[8]||(E[8]=He=>pe.value=He),height:220,"input-label":m.value.dev.interpolation.inputLabel,"output-label":m.value.dev.interpolation.outputLabel,"input-min":m.value.dev.interpolation.inputMin,"input-max":m.value.dev.interpolation.inputMax,"output-min":m.value.dev.interpolation.outputMin,"output-max":m.value.dev.interpolation.outputMax,"input-step":.5,"output-step":1,"show-grid":!0,"show-tooltip":!0},null,8,["modelValue","input-label","output-label","input-min","input-max","output-min","output-max"]),E[34]||(E[34]=y("div",{class:"calibration-hint"},"Drag points to adjust. Double-click to add. Right-click to remove.",-1)),y("div",pO,[X(de,{variant:"primary",size:"sm",disabled:!oe.value||Z.value,onClick:C},{default:te(()=>[ce(U(Z.value?"Saving...":"Save"),1)]),_:1},8,["disabled"]),X(de,{variant:"ghost",size:"sm",disabled:!oe.value,onClick:V},{default:te(()=>[...E[32]||(E[32]=[ce(" Reset ",-1)])]),_:1},8,["disabled"])]),z.value?(b(),fe(Me,{key:0,status:"success",title:"Configuration saved"},{default:te(()=>[...E[33]||(E[33]=[ce(" Restart the plugin to apply the new mapping. ",-1)])]),_:1})):j("",!0)]),_:1})):m.value.dev.interpolation&&B.value?(b(),fe(ye,{key:2,title:"Calibration",fluid:""},{default:te(()=>[...E[35]||(E[35]=[y("div",{class:"no-history"},"Loading calibration data...",-1)])]),_:1})):j("",!0),$e(m.value.dev).length>0?(b(),fe(ye,{key:3,title:"All telemetry",fluid:""},{default:te(()=>[y("div",mO,[(b(!0),$(be,null,Ve($e(m.value.dev),([He,st])=>(b(),$("div",{key:He,class:"char-row"},[y("span",gO,U(He),1),y("span",vO,U(String(st)),1)]))),128))])]),_:1})):j("",!0),f.value?(b(),fe(ye,{key:4,title:"HomeKit",fluid:""},{default:te(()=>[(b(!0),$(be,null,Ve(F(f.value),He=>Zs((b(),$("div",{key:He.uuid,class:"homekit-row"},[E[36]||(E[36]=y("div",{class:"homekit-copy"},[y("span",{class:"homekit-title"},"Show in HomeKit as"),y("span",{class:"homekit-hint"}," A plugin cannot know what a generic relay drives. Set it here and OpenBridge re-applies it on every restart, so the Home app stops reverting to a switch. ")],-1)),X(St,{"model-value":d(f.value.uuid,He.uuid),options:u.value,disabled:i.value,size:"sm","onUpdate:modelValue":st=>p(f.value.uuid,He.uuid,String(st))},null,8,["model-value","options","disabled","onUpdate:modelValue"])])),[[Op,h(He.uuid)]])),128)),c.value?(b(),$("div",bO,U(c.value),1)):j("",!0),y("div",yO,[E[37]||(E[37]=y("div",{class:"homekit-copy"},[y("span",{class:"homekit-title"},"Expose to HomeKit"),y("span",{class:"homekit-hint"}," Hide devices the Home app cannot represent usefully. OpenBridge keeps its telemetry and history either way. ")],-1)),X(Gt,{name:`homekit-visible-${f.value.uuid}`,"model-value":s(f.value.uuid),disabled:i.value,"onUpdate:modelValue":E[9]||(E[9]=He=>a(f.value.uuid,!!He))},null,8,["name","model-value","disabled"])]),r.value?(b(),$("div",wO,U(r.value),1)):j("",!0)]),_:1})):j("",!0)],64)):m.value.kind==="hap"?(b(),$(be,{key:1},[y("div",SO,[y("div",CO,[X(I,{name:x(m.value.acc.category).icon,size:26},null,8,["name"])]),y("div",AO,[T.value?(b(),$("div",kO,[X(K,{modelValue:W.value,"onUpdate:modelValue":E[11]||(E[11]=He=>W.value=He),size:"sm",onKeyup:[E[12]||(E[12]=is(He=>ie(m.value.acc.uuid),["enter"])),E[13]||(E[13]=is(He=>T.value=!1,["escape"]))]},null,8,["modelValue"]),X(de,{variant:"primary",size:"sm",icon:_s,"aria-label":"Save name",onClick:E[14]||(E[14]=He=>ie(m.value.acc.uuid))}),X(de,{variant:"ghost",size:"sm",icon:q1,"aria-label":"Cancel rename",onClick:E[15]||(E[15]=He=>T.value=!1)})])):(b(),$("h2",{key:0,class:"detail-name",title:"Click to rename",onClick:E[10]||(E[10]=He=>q(m.value.acc.displayName))},U(m.value.acc.displayName),1)),y("div",MO,U(x(m.value.acc.category).label),1)])]),O(m.value.acc)?(b(),fe(ye,{key:0,title:"Device info",fluid:""},{default:te(()=>[y("div",LO,[(b(!0),$(be,null,Ve(Object.entries(O(m.value.acc)),([He,st])=>(b(),$(be,{key:He},[st?(b(),$("span",EO,U(He),1)):j("",!0),st?(b(),$("span",xO,U(st),1)):j("",!0)],64))),128))])]),_:1})):j("",!0),(b(!0),$(be,null,Ve(F(m.value.acc),He=>(b(),fe(ye,{key:He.uuid,title:He.displayName||He.name,fluid:""},{default:te(()=>[h(He.uuid)?(b(),$("div",$O,[E[38]||(E[38]=y("div",{class:"homekit-copy"},[y("span",{class:"homekit-title"},"Show in HomeKit as"),y("span",{class:"homekit-hint"}," A plugin cannot know what a generic relay drives. Set it here and OpenBridge re-applies it on every restart, so the Home app stops reverting to a switch. ")],-1)),X(St,{"model-value":d(m.value.acc.uuid,He.uuid),options:u.value,disabled:i.value,size:"sm","onUpdate:modelValue":st=>p(m.value.acc.uuid,He.uuid,String(st))},null,8,["model-value","options","disabled","onUpdate:modelValue"])])):j("",!0),c.value?(b(),$("div",TO,U(c.value),1)):j("",!0),y("div",NO,[(b(!0),$(be,null,Ve(He.characteristics,st=>(b(),$("div",{key:st.uuid,class:"char-row"},[y("span",HO,U(st.name),1),N(st)&&st.format==="bool"?(b(),fe(Gt,{key:0,name:`hap-char-${He.uuid}-${st.uuid}`,"model-value":!!st.value,"onUpdate:modelValue":Yt=>ee(m.value.acc.uuid,He.uuid,st.uuid,Yt?1:0)},null,8,["name","model-value","onUpdate:modelValue"])):(b(),$("span",{key:1,class:Le(["char-value",{on:st.format==="bool"&&st.value}])},U(R(st)),3))]))),128))])]),_:2},1032,["title"]))),128)),X(ye,{title:"HomeKit",fluid:""},{default:te(()=>[y("div",PO,[E[39]||(E[39]=y("div",{class:"homekit-copy"},[y("span",{class:"homekit-title"},"Expose to HomeKit"),y("span",{class:"homekit-hint"}," Hide devices the Home app cannot represent usefully. OpenBridge keeps its telemetry and history either way. ")],-1)),X(Gt,{name:`homekit-visible-${m.value.acc.uuid}`,"model-value":s(m.value.acc.uuid),disabled:i.value,"onUpdate:modelValue":E[16]||(E[16]=He=>a(m.value.acc.uuid,!!He))},null,8,["name","model-value","disabled"])]),r.value?(b(),$("div",OO,U(r.value),1)):j("",!0)]),_:1}),y("div",IO,"UUID: "+U(m.value.acc.uuid),1)],64)):j("",!0)])):j("",!0)}}}),DO=Zt(RO,[["__scopeId","data-v-f6511ce5"]]),VO={class:"logs-filter"},BO={key:0,class:"log-empty"},ZO={class:"log-time"},FO={class:"log-plugin"},zO={class:"log-msg"},N6="openbridge.logs.panelSize",UO=Oe({__name:"LiveLogsPanel",setup(e){const t=ys(),i=["collapsed","default","full"],r=Q("collapsed");ft(()=>{const c=localStorage.getItem(N6);c&&i.includes(c)&&(r.value=c)}),Fe(r,c=>localStorage.setItem(N6,c));const s=Q([]),n=Q(null),a=J(()=>[{value:"system",label:"system"},...t.plugins.map(c=>({value:c.manifest.name,label:c.manifest.name}))]),o=J(()=>s.value.length===0?t.logs:t.logs.filter(c=>s.value.includes(c.plugin)));function l(){t.logs.length=0}return Fe(()=>o.value.length,async()=>{const c=n.value;!c||!(c.scrollHeight-c.scrollTop-c.clientHeight<40)||(await Di(),c.scrollTop=c.scrollHeight)}),(c,u)=>{const h=sc,d=vi,f=Yh;return b(),fe(f,{size:r.value,"onUpdate:size":u[1]||(u[1]=g=>r.value=g),title:"Live Logs"},{toolbar:te(()=>[y("div",VO,[X(h,{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=g=>s.value=g),multiple:"",options:a.value,placeholder:"All plugins",size:"xs"},null,8,["modelValue","options"])]),X(d,{size:"xs",variant:"ghost",icon:td,title:"Clear",onClick:l})]),default:te(()=>[y("div",{ref_key:"logsEl",ref:n,class:"log-list"},[o.value.length===0?(b(),$("div",BO,"No log entries yet.")):j("",!0),(b(!0),$(be,null,Ve(o.value,(g,_)=>(b(),$("div",{key:_,class:"log-line"},[y("span",ZO,U(new Date(g.timestamp).toLocaleTimeString()),1),y("span",{class:Le(["log-level",`log-level--${g.level}`])},U(g.level.toUpperCase()),3),y("span",FO,U(g.plugin),1),y("span",zO,U(g.message),1)]))),128))],512)]),_:1},8,["size"])}}}),WO=Zt(UO,[["__scopeId","data-v-2d8d29ff"]]),jO=["data-tooltip"],KO=["onClick"],qO=Oe({__name:"AppLayout",setup(e){const t=oc(),i=dl(),r=ys(),s=fl(),n=Ys(),a=lc();async function o(){await a.logout()}const{theme:l,resolved:c,followsSystem:u,setTheme:h}=Xh(),d=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}],f=J({get:()=>l.value,set:O=>h(O)}),g=J(()=>u.value?`Following your system, currently ${c.value}`:"Pinned, ignoring your system setting");function _(){var R;const O=(R=a.config.value)==null?void 0:R.issuer;O&&window.open(`${O}/profile`,"_blank","noopener")}const A=Q([]),p=Q(!0),S=J(()=>A.value.map(O=>{var R;return{id:O.sub,email:O.email,name:O.name,current:O.sub===((R=a.user.value)==null?void 0:R.id)}}));async function m(){const O=await a.listIdentities();A.value=O,p.value=O.length===0}function v(O){a.switchAccount(O.email)}async function k(O){await a.removeIdentity(O.id),await m()}const x=Q(null),M=Q(!1);async function F(){try{const O=await fetch("/api/updates/check");if(!O.ok)return;const R=await O.json();R.updateAvailable&&R.latest&&(x.value=R.latest)}catch{}}const P=[{name:"dashboard",icon:"house",label:"Dashboard",href:"/dashboard"},{name:"plugins",icon:"puzzle-piece",label:"Plugins",href:"/plugins"},{name:"devices",icon:"devices",label:"Devices",href:"/devices"},{name:"config",icon:"brackets-curly",label:"Config",href:"/config"},{name:"terminal",icon:"terminal",label:"Terminal",href:"/terminal"},{name:"settings",icon:"gear",label:"Settings",href:"/settings"}];return Fe(()=>t.name,()=>s.close()),ft(async()=>{await r.fetchHealth(),await r.fetchPlugins(),r.fetchLogs(),r.connectLiveLogs();const O=setInterval(()=>r.fetchHealth(),1e4);Br(()=>clearInterval(O)),F()}),Br(()=>r.disconnectLiveLogs()),(O,R)=>{const N=Io("RouterLink"),T=Ye,W=zL,q=XL,ie=Gh,ee=ak,re=D4,Y=Dn,_e=vi,me=ec,ge=Io("RouterView"),$e=FL;return b(),fe($e,{"inspector-visible":le(s).visible,"main-padding":!le(n).fullBleed},C5({"sidebar-logo":te(()=>[X(N,{to:"/dashboard","data-tooltip":"OpenBridge",class:"sidebar-logo"},{default:te(()=>[...R[4]||(R[4]=[y("img",{src:a$,width:"32",height:"32",alt:"OpenBridge logo"},null,-1)])]),_:1})]),"sidebar-nav":te(()=>[(b(),$(be,null,Ve(P,Se=>X(W,{key:Se.name,to:Se.href,tooltip:Se.label,active:le(t).name===Se.name,onClick:lt(ae=>le(i).push(Se.href),["prevent"])},{default:te(()=>[X(T,{name:Se.icon,size:18},null,8,["name"])]),_:2},1032,["to","tooltip","active","onClick"])),64))]),"sidebar-bottom":te(()=>{var Se;return[y("div",{class:Le(["daemon-status",le(r).connected?"online":"offline"]),"data-tooltip":le(r).connected?"Daemon connected":"Daemon offline"},[...R[5]||(R[5]=[y("span",{class:"daemon-dot"},null,-1)])],10,jO),(Se=le(a).config.value)!=null&&Se.enabled&&le(a).user.value?(b(),fe(ee,{key:0,user:{email:le(a).user.value.email,picture:le(a).user.value.picture},accounts:S.value,"accounts-unknown":p.value,"show-account-actions":le(a).isNubiscoPlatform.value,"show-profile":le(a).isNubiscoPlatform.value,brand:le(a).isNubiscoPlatform.value?"footer":void 0,onOpen:m,onSwitch:v,onSwitchAccount:R[1]||(R[1]=ae=>le(a).chooseAccount()),onAddAccount:R[2]||(R[2]=ae=>le(a).addAccount()),onRemove:k,onProfile:_,onSignOut:o},{default:te(({close:ae})=>[X(ie,{label:"Theme",hint:g.value,control:"fit",class:"menu-theme"},{default:te(()=>[X(q,{modelValue:f.value,"onUpdate:modelValue":R[0]||(R[0]=se=>f.value=se),name:"theme",options:d,direction:"horizontal"},null,8,["modelValue"])]),_:1},8,["hint"]),y("button",{type:"button",role:"menuitem",class:"nb-user-menu__action nb-user-menu__action--danger",onClick:se=>(ae(),le(a).logoutEverywhere())},[X(T,{name:le(fm),size:15},null,8,["name"]),R[6]||(R[6]=ce(" Sign out of all apps ",-1))],8,KO)]),_:1},8,["user","accounts","accounts-unknown","show-account-actions","show-profile","brand"])):j("",!0)]}),"topbar-left":te(()=>[X(re,{subtitle:le(n).title},null,8,["subtitle"]),le(n).count!==null?(b(),fe(Y,{key:0},{default:te(()=>[ce(U(le(n).count),1)]),_:1})):j("",!0),R[7]||(R[7]=y("div",{id:"ob-topbar-left",class:"topbar-slot"},null,-1))]),"topbar-right":te(()=>[R[8]||(R[8]=y("div",{id:"ob-topbar-right",class:"topbar-slot"},null,-1))]),inspector:te(()=>[le(s).mode==="plugin"?(b(),fe(kH,{key:0})):le(s).mode==="marketplace"?(b(),fe(CP,{key:1})):le(s).mode==="device"?(b(),fe(DO,{key:2})):j("",!0)]),bottom:te(()=>[X(WO)]),default:te(()=>[X(ge)]),_:2},[x.value&&!M.value?{name:"notification",fn:te(()=>[X(me,{status:"info",icon:ed,flush:"",dismissible:"",title:`OpenBridge v${x.value} is available`,onDismiss:R[3]||(R[3]=Se=>M.value=!0)},{action:te(()=>[X(_e,{variant:"ghost",size:"sm",href:"https://github.com/nubisco/openbridge/releases",target:"_blank",rel:"noopener"},{default:te(()=>[...R[9]||(R[9]=[ce(" See what's new ",-1)])]),_:1})]),_:1},8,["title"])]),key:"0"}:void 0]),1032,["inspector-visible","main-padding"])}}}),GO=Zt(qO,[["__scopeId","data-v-01a1c16f"]]),YO=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},XO=YO("qr-code","0 0 256 256",'<path d="M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"/>'),JO=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},QO=JO("cpu","0 0 256 256",'<path d="M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"/>'),eI=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},tI=eI("database","0 0 256 256",'<path d="M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"/>'),iI=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},rI=iI("clock","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"/>'),la=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},sI=la("pulse","0 0 256 256",'<path d="M236,128a4,4,0,0,1-4,4H202.47l-38.89,77.79A4,4,0,0,1,160,212h-.2a4,4,0,0,1-3.54-2.58l-60.59-159-36,79.28A4,4,0,0,1,56,132H24a4,4,0,0,1,0-8H53.42L92.36,38.35a4,4,0,0,1,7.38.23L160.5,198.06l35.92-71.85A4,4,0,0,1,200,124h32A4,4,0,0,1,236,128Z"/>'),nI=la("pulse","0 0 256 256",'<path d="M238,128a6,6,0,0,1-6,6H203.71l-38.34,76.68A6,6,0,0,1,160,214h-.3a6,6,0,0,1-5.31-3.85L95.51,55.57,61.46,130.48A6,6,0,0,1,56,134H24a6,6,0,0,1,0-12H52.14l38.4-84.48a6,6,0,0,1,11.07.34L160.74,193.1l33.89-67.78A6,6,0,0,1,200,122h32A6,6,0,0,1,238,128Z"/>'),bu=la("pulse","0 0 256 256",'<path d="M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"/>'),aI=la("pulse","0 0 256 256",'<path d="M244,128a12,12,0,0,1-12,12H207.42l-36.69,73.37A12,12,0,0,1,160,220h-.6a12,12,0,0,1-10.61-7.72L95,71.15,66.92,133A12,12,0,0,1,56,140H24a12,12,0,0,1,0-24H48.27L85.08,35a12,12,0,0,1,22.13.7l54.28,142.46,27.78-55.56A12,12,0,0,1,200,116h32A12,12,0,0,1,244,128Z"/>'),oI=la("pulse","0 0 256 256",'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-8,96H188.64L159,188a8,8,0,0,1-6.95,4h-.46a8,8,0,0,1-6.89-4.84L103,89.92,79,132a8,8,0,0,1-7,4H48a8,8,0,0,1,0-16H67.36L97.05,68a8,8,0,0,1,14.3.82L153,166.08l24-42.05a8,8,0,0,1,6.95-4h24a8,8,0,0,1,0,16Z"/>'),lI=la("pulse","0 0 256 256",'<path d="M96,40l33.52,88H56Zm104,88H129.52L160,208Z" opacity="0.2"/><path d="M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"/>'),cI="pulse",uI=Object.freeze(Object.defineProperty({__proto__:null,bold:aI,default:bu,duotone:lI,fill:oI,glyphName:cI,light:nI,regular:bu,thin:sI},Symbol.toStringTag,{value:"Module"})),hI={class:"dashboard"},dI={class:"top-row"},fI={class:"hk-body"},_I={key:0,class:"qr-wrap"},pI=["src"],mI={key:1,class:"qr-placeholder"},gI={class:"hk-details"},vI={key:0,class:"pin-display"},bI={key:1,class:"pin-label"},yI={class:"hk-status"},wI={key:2,class:"hk-error"},SI={key:0,class:"sys-grid"},CI={class:"sys-val"},AI={class:"sys-val"},kI={class:"sys-val"},MI={class:"sys-val"},LI={class:"sys-val"},EI={class:"sys-val"},xI={class:"sys-val"},$I={class:"sys-val mono"},TI={class:"sys-val mono"},NI={class:"sys-val mono"},HI={key:1,class:"loading-inline"},PI={class:"card-title"},OI={class:"plugins-counts"},II={key:0,class:"pill red"},RI={key:0,class:"empty-inline"},DI={key:1,class:"plugins-list"},VI={class:"plugin-name"},BI={class:"plugin-ver"},ZI={class:"metrics-row"},FI={class:"metric-header"},zI={class:"metric-icon purple"},UI={class:"metric-values"},WI={class:"metric-big"},jI={key:0,class:"metric-sub"},KI={class:"metric-chart"},qI={class:"metric-header"},GI={class:"metric-icon blue"},YI={class:"metric-values"},XI={class:"metric-big"},JI={class:"metric-sub"},QI={class:"metric-chart"},eR={class:"metric-header"},tR={class:"metric-icon green"},iR={class:"uptime-rows"},rR={class:"uptime-row"},sR={class:"uptime-val"},nR={class:"uptime-row"},aR={class:"uptime-val"},oR={style:{"margin-top":"0.75rem"}},lR={class:"metric-header"},cR={class:"metric-icon amber"},uR={class:"net-values"},hR={class:"net-val"},dR={class:"net-val"},fR={class:"metric-chart net-charts"},_R=Oe({__name:"DashboardView",setup(e){const t=ys(),i=Ys();function r(N){return N==="running"?"green":N==="error"?"red":N==="loading"?"blue":"grey"}const s=Q(!1),n=Q(!1);async function a(){if(!s.value){s.value=!0,n.value=!1;try{await Pe.daemon.restart(),n.value=!0;let N=0;const T=setInterval(async()=>{N++;try{await Pe.health(),clearInterval(T),location.reload()}catch{}N>60&&(clearInterval(T),s.value=!1)},1e3)}catch{s.value=!1}}}const o=Q(null),l=Q(""),c=Q(""),u=Q(""),h=J(()=>t.connected?u.value?"red":"green":"gray"),d=J(()=>t.connected?u.value?"HomeKit offline":"Bridge running":"Daemon offline"),f=Q([]),g=Q([]),_=Q([]),A=Q([]),p=Vr(null);let S=null;function m(){S&&(S.onclose=null,S.close(),S=null);const N=location.protocol==="https:"?"wss:":"ws:";S=new WebSocket(`${N}//${location.host}/ws/metrics`),S.onmessage=T=>{if(!document.hidden)try{const W=JSON.parse(T.data);if(W.type==="history"){const q=W.data;f.value=q.map(ie=>ie.cpu),g.value=q.map(ie=>x(ie)),_.value=q.map(ie=>ie.netRxSec),A.value=q.map(ie=>ie.netTxSec),q.length&&(p.value=q[q.length-1])}else if(W.type==="snapshot"){const q=W.data;p.value=q,k(f,q.cpu),k(g,x(q)),k(_,q.netRxSec),k(A,q.netTxSec)}}catch{}},S.onclose=()=>{S=null,setTimeout(m,3e3)}}function v(){document.hidden||m()}function k(N,T){N.value=[...N.value.slice(-59),T]}function x(N){return N.memTotal?Math.round((N.memTotal-N.memFree)/N.memTotal*100):0}function M(N){return N<1024?`${N} B`:N<1024**2?`${(N/1024).toFixed(1)} KB`:N<1024**3?`${(N/1024**2).toFixed(1)} MB`:`${(N/1024**3).toFixed(1)} GB`}function F(N){const T=Math.floor(N/86400),W=Math.floor(N%86400/3600),q=Math.floor(N%3600/60);return T>0?`${T}d ${W}h`:W>0?`${W}h ${q}m`:`${q}m`}const P=J(()=>p.value?M(p.value.memTotal-p.value.memFree):"—"),O=J(()=>p.value?M(p.value.memTotal):"—"),R=J(()=>p.value?x(p.value):0);return ft(async()=>{i.setPage("Dashboard"),t.fetchPlugins();try{o.value=await Pe.system()}catch{}try{const N=await Pe.qr();u.value=N.error??"",N.setupURI&&(c.value=N.pincode??"",l.value=await oa.toDataURL(N.setupURI,{width:148,margin:1,color:{dark:"#000000",light:"#ffffff"}}))}catch{}m(),document.addEventListener("visibilitychange",v)}),Br(()=>{S==null||S.close(),S=null,document.removeEventListener("visibilitychange",v)}),(N,T)=>{const W=Ye,q=hl,ie=Dn,ee=SE,re=vm,Y=vi;return b(),$("div",hI,[y("div",dI,[X(q,{class:"hk-card"},{default:te(()=>[T[0]||(T[0]=y("div",{class:"card-title"},"HomeKit Pairing",-1)),y("div",fI,[l.value?(b(),$("div",_I,[y("img",{src:l.value,alt:"HomeKit QR Code",class:"qr-img"},null,8,pI)])):(b(),$("div",mI,[X(W,{name:le(XO),size:48},null,8,["name"]),y("span",null,U(u.value?"HomeKit bridge unavailable":"No HAP bridge configured"),1)])),y("div",gI,[c.value?(b(),$("div",vI,U(c.value),1)):j("",!0),c.value?(b(),$("div",bI,"Scan to add to HomeKit")):j("",!0),y("div",yI,[y("span",{class:Le(["dot",h.value])},null,2),ce(" "+U(d.value),1)]),u.value?(b(),$("div",wI,U(u.value),1)):j("",!0)])])]),_:1}),X(q,{class:"sys-card"},{default:te(()=>{var _e;return[T[12]||(T[12]=y("div",{class:"card-title"},"System Information",-1)),o.value?(b(),$("div",SI,[T[1]||(T[1]=y("span",{class:"sys-key"},"OS",-1)),y("span",CI,U(o.value.os),1),T[2]||(T[2]=y("span",{class:"sys-key"},"Arch",-1)),y("span",AI,U(o.value.arch),1),T[3]||(T[3]=y("span",{class:"sys-key"},"Hostname",-1)),y("span",kI,U(o.value.hostname),1),T[4]||(T[4]=y("span",{class:"sys-key"},"IP Address",-1)),y("span",MI,U(o.value.ip),1),T[5]||(T[5]=y("span",{class:"sys-key"},"User",-1)),y("span",LI,U(o.value.user),1),T[6]||(T[6]=y("span",{class:"sys-key"},"Node.js",-1)),y("span",EI,U(o.value.nodeVersion),1),T[7]||(T[7]=y("span",{class:"sys-key"},"OpenBridge",-1)),y("span",xI,"v"+U(((_e=le(t).health)==null?void 0:_e.version)??"—"),1),T[8]||(T[8]=y("span",{class:"sys-key"},"Config",-1)),y("span",$I,U(o.value.configPath),1),T[9]||(T[9]=y("span",{class:"sys-key"},"OB plugins",-1)),y("span",TI,U(o.value.obPluginsDir),1),T[10]||(T[10]=y("span",{class:"sys-key"},"HB plugins",-1)),y("span",NI,U(o.value.hbPluginsDir),1)])):(b(),$("div",HI,[X(W,{name:le(Ln),size:16},null,8,["name"]),T[11]||(T[11]=ce(" Loading... ",-1))]))]}),_:1}),X(q,{class:"plugins-card"},{default:te(()=>[y("div",PI,[T[13]||(T[13]=ce(" Plugins ",-1)),y("span",OI,[X(ie,{variant:"green"},{default:te(()=>[ce(U(le(t).runningCount)+" running",1)]),_:1}),le(t).errorCount?(b(),$("span",II,U(le(t).errorCount)+" error",1)):j("",!0)])]),le(t).plugins.length===0?(b(),$("div",RI,"No plugins loaded yet.")):(b(),$("div",DI,[(b(!0),$(be,null,Ve(le(t).plugins,_e=>(b(),$("div",{key:_e.id,class:"plugin-row"},[y("div",{class:Le(["plugin-dot",_e.status])},null,2),y("span",VI,U(_e.manifest.name),1),y("span",BI,"v"+U(_e.manifest.version),1),_e.source==="homebridge"?(b(),fe(ie,{key:0,variant:"orange",size:"sm"},{default:te(()=>[...T[14]||(T[14]=[ce("HB",-1)])]),_:1})):j("",!0),X(ie,{variant:r(_e.status),size:"sm"},{default:te(()=>[ce(U(_e.status),1)]),_:2},1032,["variant"])]))),128))]))]),_:1})]),y("div",ZI,[X(q,{class:"metric-card"},{default:te(()=>{var _e,me;return[y("div",FI,[y("div",zI,[X(W,{name:le(QO),size:13},null,8,["name"])]),T[15]||(T[15]=y("span",{class:"metric-title"},"CPU",-1))]),y("div",UI,[y("div",WI,[ce(U(((_e=p.value)==null?void 0:_e.cpu)??"—")+" ",1),T[16]||(T[16]=y("span",{class:"metric-unit"},"%",-1))]),(me=p.value)!=null&&me.cpuTemp&&p.value.cpuTemp>0?(b(),$("div",jI,U(p.value.cpuTemp)+"°C",1)):j("",!0)]),y("div",KI,[X(ee,{data:f.value,color:"var(--nb-c-primary)",height:40},null,8,["data"])])]}),_:1}),X(q,{class:"metric-card"},{default:te(()=>[y("div",qI,[y("div",GI,[X(W,{name:le(tI),size:13},null,8,["name"])]),T[17]||(T[17]=y("span",{class:"metric-title"},"Memory",-1))]),y("div",YI,[y("div",XI,[ce(U(R.value)+" ",1),T[18]||(T[18]=y("span",{class:"metric-unit"},"%",-1))]),y("div",JI,U(P.value)+" / "+U(O.value),1)]),X(re,{value:R.value,max:100,size:"sm"},null,8,["value"]),y("div",QI,[X(ee,{data:g.value,color:"var(--nb-c-info)",height:32},null,8,["data"])])]),_:1}),X(q,{class:"metric-card"},{default:te(()=>[y("div",eR,[y("div",tR,[X(W,{name:le(rI),size:13},null,8,["name"])]),T[19]||(T[19]=y("span",{class:"metric-title"},"Uptime",-1))]),y("div",iR,[y("div",rR,[y("span",sR,U(o.value?F(o.value.uptimeSystem):"—"),1),T[20]||(T[20]=y("span",{class:"uptime-label"},"System",-1))]),T[22]||(T[22]=y("div",{class:"uptime-divider"},null,-1)),y("div",nR,[y("span",aR,U(o.value?F(o.value.uptimeProcess):"—"),1),T[21]||(T[21]=y("span",{class:"uptime-label"},"Process",-1))])]),y("div",oR,[X(Y,{variant:"secondary",size:"sm",outlined:"",style:{width:"100%","justify-content":"center"},loading:s.value,icon:n.value?_s:s.value?Jo:zs,onClick:a},{default:te(()=>[ce(U(n.value?"Restarted":s.value?"Restarting…":"Restart OpenBridge"),1)]),_:1},8,["loading","icon"])])]),_:1}),X(q,{class:"metric-card net-card"},{default:te(()=>[y("div",lR,[y("div",cR,[X(W,{name:le(bu),size:13},null,8,["name"])]),T[23]||(T[23]=y("span",{class:"metric-title"},"Network",-1))]),y("div",uR,[y("div",null,[y("div",hR,U(p.value?M(p.value.netRxSec)+"/s":"—"),1),T[24]||(T[24]=y("div",{class:"net-label"},"↓ Received",-1))]),y("div",null,[y("div",dR,U(p.value?M(p.value.netTxSec)+"/s":"—"),1),T[25]||(T[25]=y("div",{class:"net-label"},"↑ Sent",-1))])]),y("div",fR,[X(ee,{data:_.value,color:"var(--nb-c-success)",height:28},null,8,["data"]),X(ee,{data:A.value,color:"var(--nb-c-warning)",height:28},null,8,["data"])])]),_:1})])])}}}),pR=Zt(_R,[["__scopeId","data-v-d9b075b5"]]),ca=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},mR=ca("arrow-clockwise","0 0 256 256",'<path d="M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"/>'),gR=ca("arrow-clockwise","0 0 256 256",'<path d="M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"/>'),H6=ca("arrow-clockwise","0 0 256 256",'<path d="M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"/>'),vR=ca("arrow-clockwise","0 0 256 256",'<path d="M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"/>'),bR=ca("arrow-clockwise","0 0 256 256",'<path d="M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"/>'),yR=ca("arrow-clockwise","0 0 256 256",'<path d="M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z" opacity="0.2"/><path d="M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"/>'),wR="arrow-clockwise",SR=Object.freeze(Object.defineProperty({__proto__:null,bold:vR,default:H6,duotone:yR,fill:bR,glyphName:wR,light:gR,regular:H6,thin:mR},Symbol.toStringTag,{value:"Module"})),cg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ua=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},CR=ua("list","0 0 256 256",'<path d="M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"/>'),AR=ua("list","0 0 256 256",'<path d="M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"/>'),P6=ua("list","0 0 256 256",'<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"/>'),kR=ua("list","0 0 256 256",'<path d="M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"/>'),MR=ua("list","0 0 256 256",'<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"/>'),LR=ua("list","0 0 256 256",'<path d="M216,64V192H40V64Z" opacity="0.2"/><path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"/>'),ER="list",ug=Object.freeze(Object.defineProperty({__proto__:null,bold:kR,default:P6,duotone:LR,fill:MR,glyphName:ER,light:AR,regular:P6,thin:CR},Symbol.toStringTag,{value:"Module"})),ha=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},xR=ha("squares-four","0 0 256 256",'<path d="M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"/>'),$R=ha("squares-four","0 0 256 256",'<path d="M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"/>'),O6=ha("squares-four","0 0 256 256",'<path d="M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"/>'),TR=ha("squares-four","0 0 256 256",'<path d="M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"/>'),NR=ha("squares-four","0 0 256 256",'<path d="M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"/>'),HR=ha("squares-four","0 0 256 256",'<path d="M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z" opacity="0.2"/><path d="M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z"/>'),PR="squares-four",hg=Object.freeze(Object.defineProperty({__proto__:null,bold:TR,default:O6,duotone:HR,fill:NR,glyphName:PR,light:$R,regular:O6,thin:xR},Symbol.toStringTag,{value:"Module"})),OR={key:0,class:"plugin-cards"},IR={class:"plugin-avatar"},RR=["src","alt"],DR={class:"plugin-meta"},VR={class:"plugin-name"},BR={key:0,class:"plugin-platform"},ZR={class:"plugin-version"},FR={key:0,class:"plugin-desc"},zR={key:1,class:"plugin-author"},UR={key:2,class:"plugin-links"},WR=["href"],jR=["href"],KR={key:3,class:"plugin-error"},qR={class:"cell-name"},GR={class:"plugin-avatar plugin-avatar--sm"},YR=["src","alt"],XR={class:"plugin-name"},JR={key:0,class:"plugin-platform"},QR=Oe({__name:"PluginList",props:{rows:{},view:{},selectedId:{}},emits:["select"],setup(e,{emit:t}){const i=e,r=t;function s(l){return l==="running"?"green":l==="error"?"red":l==="loading"?"blue":"grey"}const n=Q({key:"name",direction:"asc"}),a=[{key:"name",header:"Plugin",sortable:!0},{key:"version",header:"Version",sortable:!0,width:140},{key:"source",header:"Source",sortable:!0,width:120},{key:"status",header:"Status",sortable:!0,width:120},{key:"author",header:"Author",sortable:!0}],o=J(()=>{const l=i.rows.map(h=>({id:h.plugin.id,name:h.plugin.manifest.name,version:`v${h.plugin.manifest.version}`,availableUpdate:h.plugin.availableUpdate,source:h.plugin.source==="homebridge"?"Homebridge":"Native",status:h.plugin.status,author:h.plugin.manifest.author??"—",platform:h.plugin.source==="homebridge"?h.plugin.platformName:void 0,avatarUrl:h.avatarUrl,isOpenBridge:h.isOpenBridge,plugin:h.plugin})),c=n.value;if(!c||c.direction==="none")return l;const u=c.direction==="asc"?1:-1;return[...l].sort((h,d)=>u*String(h[c.key]??"").localeCompare(String(d[c.key]??"")))});return(l,c)=>{const u=Ye,h=Dn,d=$r,f=hl,g=_m;return e.view==="cards"?(b(),$("div",OR,[(b(!0),$(be,null,Ve(e.rows,_=>(b(),fe(f,{key:_.plugin.id,class:Le(["plugin-card",{"plugin-card--selected":_.plugin.id===e.selectedId}]),onClick:A=>r("select",_.plugin)},{default:te(()=>[y("span",{class:Le(["plugin-card__accent",`plugin-card__accent--${_.plugin.status}`])},null,2),X(d,{dir:"row",align:"start",gap:"sm",class:"plugin-card__header"},{default:te(()=>[y("div",IR,[_.avatarUrl?(b(),$("img",{key:0,src:_.avatarUrl,alt:_.plugin.manifest.name,onError:c[0]||(c[0]=A=>A.target.style.display="none")},null,40,RR)):(b(),fe(u,{key:1,name:_.isOpenBridge?le(un):le(js),size:20},null,8,["name"]))]),y("div",DR,[y("div",VR,U(_.plugin.manifest.name),1),_.plugin.source==="homebridge"&&_.plugin.platformName?(b(),$("div",BR," Platform: "+U(_.plugin.platformName),1)):j("",!0),y("div",ZR,[ce(" v"+U(_.plugin.manifest.version)+" ",1),_.plugin.availableUpdate?(b(),fe(h,{key:0,variant:"blue",size:"sm"},{default:te(()=>[ce(" v"+U(_.plugin.availableUpdate)+" available ",1)]),_:2},1024)):j("",!0)])]),X(h,{variant:s(_.plugin.status)},{default:te(()=>[ce(U(_.plugin.status),1)]),_:2},1032,["variant"])]),_:2},1024),_.plugin.manifest.description?(b(),$("p",FR,U(_.plugin.manifest.description),1)):j("",!0),_.plugin.manifest.author?(b(),$("p",zR,"by "+U(_.plugin.manifest.author),1)):j("",!0),_.sponsorUrl||_.docsUrl?(b(),$("div",UR,[_.sponsorUrl?(b(),$("a",{key:0,href:_.sponsorUrl,target:"_blank",rel:"noopener",onClick:c[1]||(c[1]=lt(()=>{},["stop"]))},[X(u,{name:le(ag),weight:"fill",size:11},null,8,["name"]),c[6]||(c[6]=ce(" Sponsor ",-1))],8,WR)):j("",!0),_.docsUrl?(b(),$("a",{key:1,href:_.docsUrl,target:"_blank",rel:"noopener",onClick:c[2]||(c[2]=lt(()=>{},["stop"]))},[X(u,{name:le(og),size:11},null,8,["name"]),c[7]||(c[7]=ce(" Docs ",-1))],8,jR)):j("",!0)])):j("",!0),_.plugin.error?(b(),$("div",KR,U(_.plugin.error),1)):j("",!0)]),_:2},1032,["class","onClick"]))),128))])):(b(),fe(g,{key:1,columns:a,rows:o.value,"row-key":"id",size:"sm",zebra:"","sort-state":n.value,onSort:c[4]||(c[4]=_=>n.value=_),onRowClick:c[5]||(c[5]=_=>r("select",_.plugin))},{"cell-name":te(({row:_})=>[y("div",qR,[y("div",GR,[_.avatarUrl?(b(),$("img",{key:0,src:_.avatarUrl,alt:_.name,onError:c[3]||(c[3]=A=>A.target.style.display="none")},null,40,YR)):(b(),fe(u,{key:1,name:_.isOpenBridge?le(un):le(js),size:14},null,8,["name"]))]),y("div",null,[y("div",XR,U(_.name),1),_.platform?(b(),$("div",JR,"Platform: "+U(_.platform),1)):j("",!0)])])]),"cell-version":te(({row:_})=>[ce(U(_.version)+" ",1),_.availableUpdate?(b(),fe(h,{key:0,variant:"blue",size:"sm"},{default:te(()=>[ce("v"+U(_.availableUpdate),1)]),_:2},1024)):j("",!0)]),"cell-status":te(({row:_})=>[X(h,{variant:s(_.status)},{default:te(()=>[ce(U(_.status),1)]),_:2},1032,["variant"])]),_:1},8,["rows","sort-state"]))}}}),eD=Zt(QR,[["__scopeId","data-v-8fdf7ec9"]]),tD={class:"plugins-view"},iD={key:0,class:"empty-state"},rD={key:0},I6="openbridge.plugins.view",sD=Oe({__name:"PluginsView",setup(e){const t=ys(),i=fl(),r=Ys(),s=lg(),n=Q(""),a=Q(new Map),o=Q(new Set),l=Q(!1),c=Q(localStorage.getItem(I6)==="table"?"table":"cards");function u(){c.value=c.value==="cards"?"table":"cards",localStorage.setItem(I6,c.value)}const h=J(()=>{var P;return i.visible&&i.mode==="plugin"?((P=i.selectedPlugin)==null?void 0:P.id)??null:null}),d=J(()=>_().map(P=>{const O=S(P);return{plugin:P,avatarUrl:x(P),isOpenBridge:p(P),sponsorUrl:O==null?void 0:O.githubSponsorsUrl,docsUrl:O==null?void 0:O.documentationUrl}}));function f(P){if(P.source==="homebridge"){const R=(P.manifest.description??"").match(/Homebridge platform:\s*([^\s]+)/);if(R!=null&&R[1])return R[1]}return P.manifest.name}function g(P){var T;const R=(T=(P.manifest.description??"").match(/Homebridge platform:\s*([^\s]+)/))==null?void 0:T[1],N=[f(P),R,P.manifest.name,P.id];return Array.from(new Set(N.filter(W=>!!W&&W.trim().length>0)))}function _(){const P=n.value.toLowerCase();return t.plugins.filter(O=>O.manifest.name.toLowerCase().includes(P)||(O.manifest.description??"").toLowerCase().includes(P))}function A(P){var O;((O=i.selectedPlugin)==null?void 0:O.id)===P.id&&i.visible&&i.mode==="plugin"?i.close():i.openPlugin(P)}function p(P){return P.manifest.name.includes("openbridge-")||P.source==="native"}function S(P){const O=g(P);for(const R of O){const N=a.value.get(R);if(N)return N}if(P.enrichedMetadata)return P.enrichedMetadata}async function m(P,O=!1){var N;const R=g(P);for(const T of R)if(!(!O&&a.value.has(T))&&!(!O&&o.value.has(T))){o.value.add(T);try{const W=await Pe.marketplace.enriched(T),q=new Map(a.value);if(q.set(T,W),q.set(f(P),W),a.value=q,P.enrichedMetadata=W,W.documentationUrl||W.githubSponsorsUrl||(N=W.links)!=null&&N.repository)return}catch{}finally{const W=new Set(o.value);W.delete(T),o.value=W}}}const v=Q(new Map);function k(P){const R=P.trim().replace(/^github:/,"https://github.com/").replace(/^git\+/,"").replace(/^git@github\.com:/,"https://github.com/").match(/github\.com[/:]([^/]+)/);return R?`https://github.com/${R[1]}.png?size=48`:null}function x(P){var T,W;const O=S(P),R=((T=O==null?void 0:O.links)==null?void 0:T.repository)??((W=O==null?void 0:O.links)==null?void 0:W.homepage)??"";if(R){const q=k(R);if(q)return q}const N=g(P);for(const q of N){const ie=v.value.get(q);if(ie)return ie}return null}async function M(P,O=!1){var R;if(!(!O&&v.value.has(P)))try{const N=await fetch(`https://registry.npmjs.org/${encodeURIComponent(P)}/latest`,{signal:AbortSignal.timeout(5e3)});if(!N.ok){v.value.set(P,"");return}const T=await N.json(),W=((R=T==null?void 0:T.repository)==null?void 0:R.url)??(T==null?void 0:T.homepage)??"";v.value.set(P,k(W)??"")}catch{v.value.set(P,"")}}async function F(P=!1){if(!l.value){l.value=!0;try{P&&(a.value=new Map,v.value=new Map);const O=t.plugins;for(const R of O){const N=g(R);for(const T of N)await M(T,P);await m(R,P)}P&&s.success("Plugin metadata refreshed")}catch{s.error("Failed to refresh plugin metadata")}finally{l.value=!1}}}return ft(async()=>{await t.fetchPlugins()}),Fe(()=>t.plugins.length,P=>{r.setPage("Plugins",P)},{immediate:!0}),(P,O)=>{const R=ul,N=vi,T=Ye;return b(),$("div",tD,[(b(),fe(Or,{defer:"",to:"#ob-topbar-right"},[X(R,{modelValue:n.value,"onUpdate:modelValue":O[0]||(O[0]=W=>n.value=W),placeholder:"Search plugins...",size:"sm",style:{width:"200px"}},null,8,["modelValue"]),X(N,{variant:"ghost",size:"sm",icon:SR,title:"Refresh metadata",loading:l.value,disabled:l.value,onClick:O[1]||(O[1]=W=>F(!0))},null,8,["loading","disabled"]),X(N,{variant:"ghost",size:"sm",icon:c.value===cg?ug:hg,title:c.value==="cards"?"Show as table":"Show as cards",onClick:u},null,8,["icon","title"]),X(N,{variant:"primary",size:"sm",icon:lf,onClick:O[2]||(O[2]=W=>le(i).openMarketplace())},{default:te(()=>[...O[5]||(O[5]=[ce(" Browse plugins ",-1)])]),_:1})])),d.value.length===0?(b(),$("div",iD,[X(T,{name:le(js),size:40},null,8,["name"]),n.value?(b(),$("p",rD,'No plugins matching "'+U(n.value)+'"',1)):(b(),$(be,{key:1},[O[7]||(O[7]=y("p",null,"No plugins loaded yet.",-1)),X(N,{variant:"primary",size:"sm",icon:lf,onClick:O[3]||(O[3]=W=>le(i).openMarketplace())},{default:te(()=>[...O[6]||(O[6]=[ce(" Browse & install plugins ",-1)])]),_:1})],64))])):(b(),$("div",{key:1,class:"plugins-body",onClick:O[4]||(O[4]=lt(W=>le(i).close(),["self"]))},[X(eD,{rows:d.value,view:c.value,"selected-id":h.value,onSelect:A},null,8,["rows","view","selected-id"])]))])}}}),nD=Zt(sD,[["__scopeId","data-v-95e3ebc4"]]),da=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},aD=da("devices","0 0 256 256",'<path d="M224,76H204V64a20,20,0,0,0-20-20H40A20,20,0,0,0,20,64v96a20,20,0,0,0,20,20H156v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V96A20,20,0,0,0,224,76ZM40,172a12,12,0,0,1-12-12V64A12,12,0,0,1,40,52H184a12,12,0,0,1,12,12V76H176a20,20,0,0,0-20,20v76Zm196,20a12,12,0,0,1-12,12H176a12,12,0,0,1-12-12V96a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12ZM132,208a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h40A4,4,0,0,1,132,208Zm80-96a4,4,0,0,1-4,4H192a4,4,0,0,1,0-8h16A4,4,0,0,1,212,112Z"/>'),oD=da("devices","0 0 256 256",'<path d="M224,74H206V64a22,22,0,0,0-22-22H40A22,22,0,0,0,18,64v96a22,22,0,0,0,22,22H154v10a22,22,0,0,0,22,22h48a22,22,0,0,0,22-22V96A22,22,0,0,0,224,74ZM40,170a10,10,0,0,1-10-10V64A10,10,0,0,1,40,54H184a10,10,0,0,1,10,10V74H176a22,22,0,0,0-22,22v74Zm194,22a10,10,0,0,1-10,10H176a10,10,0,0,1-10-10V96a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10ZM134,208a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h40A6,6,0,0,1,134,208Zm80-96a6,6,0,0,1-6,6H192a6,6,0,0,1,0-12h16A6,6,0,0,1,214,112Z"/>'),yu=da("devices","0 0 256 256",'<path d="M224,72H208V64a24,24,0,0,0-24-24H40A24,24,0,0,0,16,64v96a24,24,0,0,0,24,24H152v8a24,24,0,0,0,24,24h48a24,24,0,0,0,24-24V96A24,24,0,0,0,224,72ZM40,168a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H184a8,8,0,0,1,8,8v8H176a24,24,0,0,0-24,24v72Zm192,24a8,8,0,0,1-8,8H176a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm-96,16a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h40A8,8,0,0,1,136,208Zm80-96a8,8,0,0,1-8,8H192a8,8,0,0,1,0-16h16A8,8,0,0,1,216,112Z"/>'),lD=da("devices","0 0 256 256",'<path d="M224,72H212V64a28,28,0,0,0-28-28H40A28,28,0,0,0,12,64v88a28,28,0,0,0,28,28h96v12a28,28,0,0,0,28,28h60a28,28,0,0,0,28-28V100A28,28,0,0,0,224,72ZM40,156a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4v8H164a28,28,0,0,0-28,28v56Zm188,36a4,4,0,0,1-4,4H164a4,4,0,0,1-4-4V100a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4ZM124,208a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h24A12,12,0,0,1,124,208Zm88-84a12,12,0,0,1-12,12H188a12,12,0,0,1,0-24h12A12,12,0,0,1,212,124Z"/>'),cD=da("devices","0 0 256 256",'<path d="M224,72H208V64a24,24,0,0,0-24-24H40A24,24,0,0,0,16,64v96a24,24,0,0,0,24,24H152v8a24,24,0,0,0,24,24h48a24,24,0,0,0,24-24V96A24,24,0,0,0,224,72Zm8,120a8,8,0,0,1-8,8H176a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm-96,16a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h40A8,8,0,0,1,136,208Zm80-96a8,8,0,0,1-8,8H192a8,8,0,0,1,0-16h16A8,8,0,0,1,216,112Z"/>'),uD=da("devices","0 0 256 256",'<path d="M200,64V80H176a16,16,0,0,0-16,16v80H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H184A16,16,0,0,1,200,64Z" opacity="0.2"/><path d="M224,72H208V64a24,24,0,0,0-24-24H40A24,24,0,0,0,16,64v96a24,24,0,0,0,24,24H152v8a24,24,0,0,0,24,24h48a24,24,0,0,0,24-24V96A24,24,0,0,0,224,72ZM40,168a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H184a8,8,0,0,1,8,8v8H176a24,24,0,0,0-24,24v72Zm192,24a8,8,0,0,1-8,8H176a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm-96,16a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h40A8,8,0,0,1,136,208Zm80-96a8,8,0,0,1-8,8H192a8,8,0,0,1,0-16h16A8,8,0,0,1,216,112Z"/>'),hD="devices",dD=Object.freeze(Object.defineProperty({__proto__:null,bold:lD,default:yu,duotone:uD,fill:cD,glyphName:hD,light:oD,regular:yu,thin:aD},Symbol.toStringTag,{value:"Module"})),fD={class:"devices-view"},_D={class:"toolbar-count"},pD={key:1,class:"empty-state"},mD={class:"device-icon native-icon"},gD={class:"device-info"},vD={class:"device-name"},bD={class:"device-type"},yD={class:"device-summary"},wD={key:0,class:"summary-primary"},SD={class:"summary-primary"},CD={key:0,class:"summary-secondary"},AD={key:2,class:"summary-primary"},kD={class:"device-info"},MD={class:"device-name"},LD={class:"device-type"},ED={key:0,class:"device-summary"},xD={class:"summary-primary"},$D={class:"cell-name"},TD={key:1},ND={class:"confirm-dialog"},HD={class:"confirm-icon"},PD={class:"confirm-message"},OD={class:"confirm-actions"},R6="openbridge.devices.view",ID=Oe({__name:"DevicesView",setup(e){const t=ys(),i=fl(),r=dl();function s(ae){r.push({name:"device-detail",params:{id:ae.id}})}const n=Ys(),a=Q(!1),o=Q([]),l=Q(localStorage.getItem(R6)==="table"?"table":"cards");function c(){l.value=l.value==="cards"?"table":"cards",localStorage.setItem(R6,l.value)}const u=Q({key:"name",direction:"asc"}),h=[{key:"name",header:"Device",sortable:!0},{key:"type",header:"Type",sortable:!0,width:160},{key:"source",header:"Source",sortable:!0,width:120},{key:"state",header:"State",sortable:!0,width:120},{key:"detail",header:"Reading",sortable:!0,width:160}],d=J(()=>{const ae=[...o.value.map(G=>({key:"native:"+G.id,name:G.name,type:M(g(G)),source:"Native",state:G.telemetry.active===void 0?"":G.telemetry.active?"On":"Off",stateOn:!!G.telemetry.active,detail:f(G),icon:x(g(G)),select:()=>p(G)})),...t.accessories.map(G=>{const ne=R(G);return{key:"hap:"+G.uuid,name:G.displayName,type:m(G.category).label,source:"HomeKit",state:ne?ne.value?"On":"Off":"",stateOn:!!(ne!=null&&ne.value),detail:N(G)??"",icon:m(G.category).icon,select:()=>A(G)}})],se=u.value;if(!se||se.direction==="none")return ae;const D=se.direction==="asc"?1:-1;return[...ae].sort((G,ne)=>D*String(G[se.key]??"").localeCompare(String(ne[se.key]??"")))});function f(ae){const se=ae.telemetry;return ae.widgetType==="energy_meter"&&se.power!==void 0?`${W(se.power,1)} W`:ae.widgetType==="thermostat"&&se.currentTemperature!==void 0?`${W(se.currentTemperature,1)}°C`:ae.widgetType==="dehumidifier"&&se.currentHumidity!==void 0?`${W(se.currentHumidity,0)}%`:se.power!==void 0?`${W(se.power,1)} W`:""}function g(ae){return ae.homekitType||ae.widgetType}const _=J(()=>i.mode!=="device"||!i.selectedDevice?null:i.selectedDevice.kind==="native"?i.selectedDevice.dev.id:i.selectedDevice.acc.uuid);function A(ae){_.value===ae.uuid?i.close():i.openDevice({kind:"hap",acc:ae})}function p(ae){_.value===ae.id?i.close():i.openDevice({kind:"native",dev:ae})}const S={1:{label:"Other",icon:"cube"},2:{label:"Bridge",icon:"intersect"},3:{label:"Fan",icon:"fan"},4:{label:"Garage Door",icon:"garage"},5:{label:"Light",icon:"lightbulb"},6:{label:"Lock",icon:"lock"},7:{label:"Outlet",icon:"plugs"},8:{label:"Switch",icon:"toggle-right"},9:{label:"Thermostat",icon:"thermometer"},10:{label:"Sensor",icon:"pulse"},11:{label:"Security",icon:"shield"},12:{label:"Door",icon:"door"},13:{label:"Window",icon:"app-window"},14:{label:"Window Covering",icon:"rows"},15:{label:"Programm. Switch",icon:"sliders"},16:{label:"Range Extender",icon:"broadcast"},17:{label:"Camera",icon:"camera"},18:{label:"Video Doorbell",icon:"bell"},19:{label:"Air Purifier",icon:"wind"},20:{label:"Heater/Cooler",icon:"thermometer-hot"},21:{label:"Air Conditioner",icon:"snowflake"},22:{label:"Humidifier",icon:"drop"},23:{label:"Dehumidifier",icon:"drop"},26:{label:"Speaker",icon:"speaker-high"},28:{label:"Sprinkler",icon:"drop"},29:{label:"Faucet",icon:"drop"},30:{label:"Shower",icon:"drop"},32:{label:"TV",icon:"television"},34:{label:"Router",icon:"broadcast"},36:{label:"Target Control",icon:"game-controller"},38:{label:"Smart Speaker",icon:"speaker-hifi"}};function m(ae){return S[ae]??{label:`Category ${ae}`,icon:"cube"}}const v={switch:"plugs",light:"lightbulb",thermostat:"thermometer",dehumidifier:"drop",energy_meter:"lightning",gate:"garage",sensor:"pulse"},k={switch:"Switch",light:"Light",thermostat:"Thermostat",dehumidifier:"Dehumidifier",energy_meter:"Energy Meter",gate:"Gate",sensor:"Sensor"};function x(ae){return v[ae]??"cube"}function M(ae){return k[ae]??ae}const F=new Set(["AccessoryInformation","0000003E-0000-1000-8000-0026BB765291","ProtocolInformation","000000A2-0000-1000-8000-0026BB765291"]),P=new Set(["On","Active","LockTargetState","TargetDoorState"]);function O(ae){return ae.services.find(se=>!F.has(se.name)&&!F.has(se.uuid))}function R(ae){const se=O(ae);return se?se.characteristics.find(D=>P.has(D.name)&&D.perms.includes("pw"))??null:null}function N(ae){const se=O(ae);if(!se)return null;for(const G of se.characteristics){if(G.name==="CurrentTemperature"&&G.value!=null)return`${Number(G.value).toFixed(1)}°C`;if(G.name==="CurrentRelativeHumidity"&&G.value!=null)return`${Math.round(Number(G.value))}%`;if(G.name==="CurrentPosition"&&G.value!=null)return`${Math.round(Number(G.value))}%`;if(G.name==="Brightness"&&G.value!=null)return`${Math.round(Number(G.value))}%`}const D=se.characteristics.find(G=>G.name==="On");return D?D.value?"On":"Off":null}async function T(ae,se){const D=O(ae),G=R(ae);if(!(!D||!G))try{await Pe.setCharacteristic(ae.uuid,D.uuid,G.uuid,se?1:0),await t.fetchAccessories()}catch(ne){console.error("HAP control failed",ne)}}function W(ae,se=1){if(ae==null)return"—";const D=Number(ae);return isFinite(D)?D.toFixed(se):String(ae)}const q=J(()=>t.accessories.length+o.value.length);async function ie(){var ae;try{const se=await Pe.devices();if(o.value=se.devices,i.mode==="device"&&((ae=i.selectedDevice)==null?void 0:ae.kind)==="native"){const D=i.selectedDevice.dev.id,G=se.devices.find(ne=>ne.id===D);G&&i.updateDevice({kind:"native",dev:G})}}catch{}}async function ee(){a.value=!0,await Promise.all([t.fetchAccessories(),ie()]),a.value=!1}let re=null;const Y=Q({visible:!1,deviceId:"",control:"",value:null,message:""});function _e(ae,se,D){return ae.widgetType==="energy_meter"&&se==="active"?D?`Turn on ${ae.name}? This will energise the connected circuit.`:`Turn off ${ae.name}? This will cut power to the connected circuit.`:!1}async function me(ae,se,D){try{await Pe.controlDevice(ae,se,D),await ie()}catch(G){console.error("Control failed",G)}}function ge(ae,se,D){const G=_e(ae,se,D);G?Y.value={visible:!0,deviceId:ae.id,control:se,value:D,message:G}:me(ae.id,se,D)}function $e(){const{deviceId:ae,control:se,value:D}=Y.value;Y.value.visible=!1,me(ae,se,D)}function Se(){Y.value.visible=!1}return ft(async()=>{n.setPage("Devices"),await Promise.all([t.fetchAccessories(),ie()]),re=setInterval(ie,3e3)}),Br(()=>{re&&clearInterval(re)}),(ae,se)=>{const D=Dn,G=vi,ne=Ye,pe=rc,Ae=ym,B=hl,Z=_m;return b(),$("div",fD,[q.value>0?(b(),fe(Or,{key:0,defer:"",to:"#ob-topbar-left"},[y("span",_D,U(q.value)+" device"+U(q.value!==1?"s":""),1),o.value.length>0?(b(),fe(D,{key:0},{default:te(()=>[ce(U(o.value.length)+" native",1)]),_:1})):j("",!0)])):j("",!0),(b(),fe(Or,{defer:"",to:"#ob-topbar-right"},[X(G,{variant:"ghost",size:"sm",icon:l.value===cg?ug:hg,title:l.value==="cards"?"Show as table":"Show as cards",onClick:c},null,8,["icon","title"]),X(G,{variant:"ghost",size:"sm",icon:zs,title:"Refresh",loading:a.value,onClick:ee},null,8,["loading"])])),q.value===0?(b(),$("div",pD,[X(ne,{name:le(yu),size:40},null,8,["name"]),se[8]||(se[8]=y("p",null,"No devices registered yet.",-1)),se[9]||(se[9]=y("p",{class:"empty-hint"},[ce(" Devices appear here once a platform plugin registers accessories. "),y("br"),ce(" This page auto-refreshes every 3 seconds: discovery can take up to 60s. ")],-1))])):(b(),$("div",{key:2,class:"devices-layout",onClick:se[7]||(se[7]=lt(z=>le(i).close(),["self"]))},[l.value==="cards"?(b(),$("div",{key:0,class:"device-grid",onClick:se[4]||(se[4]=lt(z=>le(i).close(),["self"]))},[(b(!0),$(be,null,Ve(o.value,z=>(b(),fe(B,{key:"native:"+z.id,class:Le(["device-card native-card",{selected:_.value===z.id}]),onClick:oe=>p(z),onDblclick:oe=>s(z)},{default:te(()=>[se[10]||(se[10]=y("span",{class:"device-card__accent"},null,-1)),y("div",mD,[X(ne,{name:x(g(z)),size:22},null,8,["name"])]),y("div",gD,[y("div",vD,U(z.name),1),y("div",bD,U(M(g(z))),1),y("div",yD,[z.widgetType==="energy_meter"&&z.telemetry.power!==void 0?(b(),$("span",wD,U(W(z.telemetry.power,1))+" W",1)):z.widgetType==="thermostat"&&z.telemetry.currentTemperature!==void 0?(b(),$(be,{key:1},[y("span",SD,U(W(z.telemetry.currentTemperature,1))+"°C",1),z.telemetry.targetTemperature!==void 0?(b(),$("span",CD," target "+U(W(z.telemetry.targetTemperature,1))+"°C ",1)):j("",!0)],64)):z.widgetType==="dehumidifier"&&z.telemetry.currentHumidity!==void 0?(b(),$("span",AD,U(W(z.telemetry.currentHumidity,0))+"%",1)):z.telemetry.active!==void 0?(b(),$("span",{key:3,class:Le(["summary-status",z.telemetry.active?"on":"off"])},U(z.telemetry.active?"On":"Off"),3)):j("",!0)]),z.telemetry.active!==void 0?(b(),$("div",{key:0,class:"card-controls",onClick:se[0]||(se[0]=lt(()=>{},["stop"]))},[X(pe,{name:`device-active-${z.id}`,"model-value":!!z.telemetry.active,"onUpdate:modelValue":oe=>ge(z,"active",oe)},null,8,["name","model-value","onUpdate:modelValue"])])):j("",!0),z.widgetType==="thermostat"&&z.telemetry.targetTemperature!==void 0?(b(),$("div",{key:1,class:"card-controls",onClick:se[1]||(se[1]=lt(()=>{},["stop"]))},[X(Ae,{"model-value":Number(z.telemetry.targetTemperature),size:"xs",min:5,max:35,step:1,"onUpdate:modelValue":oe=>oe!==null&&me(z.id,"targetTemperature",oe)},null,8,["model-value","onUpdate:modelValue"])])):j("",!0),z.widgetType==="dehumidifier"&&z.telemetry.targetHumidity!==void 0?(b(),$("div",{key:2,class:"card-controls",onClick:se[2]||(se[2]=lt(()=>{},["stop"]))},[X(Ae,{"model-value":Number(z.telemetry.targetHumidity),size:"xs",min:30,max:80,step:5,"onUpdate:modelValue":oe=>oe!==null&&me(z.id,"targetHumidity",oe)},null,8,["model-value","onUpdate:modelValue"])])):j("",!0)]),y("div",{class:Le(["device-reachability",z.pluginStatus==="running"?"online":"offline"])},null,2)]),_:2},1032,["class","onClick","onDblclick"]))),128)),(b(!0),$(be,null,Ve(le(t).accessories,z=>(b(),fe(B,{key:z.uuid,class:Le(["device-card hap-card",{selected:_.value===z.uuid,unreachable:!z.reachable}]),onClick:oe=>A(z)},{default:te(()=>{var oe;return[y("div",{class:Le(["device-icon hap-icon",{unreachable:!z.reachable}])},[X(ne,{name:m(z.category).icon,size:22},null,8,["name"])],2),y("div",kD,[y("div",MD,U(z.displayName),1),y("div",LD,U(m(z.category).label),1),N(z)?(b(),$("div",ED,[y("span",xD,U(N(z)),1)])):j("",!0),R(z)?(b(),$("div",{key:1,class:"card-controls",onClick:se[3]||(se[3]=lt(()=>{},["stop"]))},[X(pe,{name:`hap-on-${z.uuid}`,"model-value":!!((oe=R(z))!=null&&oe.value),"onUpdate:modelValue":he=>T(z,!!he)},null,8,["name","model-value","onUpdate:modelValue"])])):j("",!0)]),y("div",{class:Le(["device-reachability",z.reachable?"online":"offline"])},null,2)]}),_:2},1032,["class","onClick"]))),128))])):(b(),fe(Z,{key:1,columns:h,rows:d.value,"row-key":"key",size:"sm",zebra:"","sort-state":u.value,onSort:se[5]||(se[5]=z=>u.value=z),onRowClick:se[6]||(se[6]=z=>z.select())},{"cell-name":te(({row:z})=>[y("div",$D,[X(ne,{name:z.icon,size:16},null,8,["name"]),y("span",null,U(z.name),1)])]),"cell-state":te(({row:z})=>[z.state?(b(),fe(D,{key:0,variant:z.stateOn?"green":"grey"},{default:te(()=>[ce(U(z.state),1)]),_:2},1032,["variant"])):(b(),$("span",TD,"—"))]),_:1},8,["rows","sort-state"]))])),(b(),fe(Or,{to:"body"},[Y.value.visible?(b(),$("div",{key:0,class:"confirm-overlay",onClick:lt(Se,["self"])},[y("div",ND,[y("div",HD,[X(ne,{name:le(wn),size:24},null,8,["name"])]),y("p",PD,U(Y.value.message),1),y("div",OD,[X(G,{variant:"ghost",size:"sm",onClick:Se},{default:te(()=>[...se[11]||(se[11]=[ce("Cancel",-1)])]),_:1}),X(G,{variant:"primary",size:"sm",onClick:$e},{default:te(()=>[...se[12]||(se[12]=[ce("Confirm",-1)])]),_:1})])])])):j("",!0)]))])}}}),RD=Zt(ID,[["__scopeId","data-v-7ce12dbc"]]),fa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},DD=fa("arrow-left","0 0 256 256",'<path d="M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"/>'),VD=fa("arrow-left","0 0 256 256",'<path d="M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"/>'),D6=fa("arrow-left","0 0 256 256",'<path d="M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"/>'),BD=fa("arrow-left","0 0 256 256",'<path d="M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"/>'),ZD=fa("arrow-left","0 0 256 256",'<path d="M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"/>'),FD=fa("arrow-left","0 0 256 256",'<path d="M112,56V200L40,128Z" opacity="0.2"/><path d="M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"/>'),zD="arrow-left",UD=Object.freeze(Object.defineProperty({__proto__:null,bold:BD,default:D6,duotone:FD,fill:ZD,glyphName:zD,light:VD,regular:D6,thin:DD},Symbol.toStringTag,{value:"Module"})),WD={class:"device-detail"},jD={key:0,class:"detail-message"},KD={class:"summary-row"},qD=["onClick"],GD={class:"tile-label"},YD={class:"tile-value"},XD={class:"tile-unit"},JD={key:0,class:"detail-message"},QD={class:"chart-toolbar"},eV={class:"range-tabs"},tV=["onClick"],iV={key:0,class:"resolution-note"},rV={class:"chart-panel"},sV={key:1,class:"chart-empty"},nV={key:2,class:"chart-empty"},aV={key:2,class:"detail-message"},oV=Oe({__name:"DeviceDetailView",setup(e){const t=oc(),i=dl(),r=J(()=>String(t.params.id??"")),s=Q(null),n=Q([]),a=Q(""),o=Q(!1),l=Q(""),c=Q(0),u=Q([]),h=[{key:"1h",label:"1 hour",seconds:3600},{key:"24h",label:"24 hours",seconds:86400},{key:"7d",label:"7 days",seconds:7*86400},{key:"30d",label:"30 days",seconds:30*86400},{key:"1y",label:"1 year",seconds:365*86400}],d=Q("24h"),f=J(()=>{var O;return((O=s.value)==null?void 0:O.model)??"Device"}),g=J(()=>n.value.find(O=>O.key===a.value)??null),_=J(()=>{const O=g.value;if(!O||u.value.length===0)return[];const R={name:O.label,data:u.value.map(T=>({x:new Date(T.t*1e3),y:T.value??0}))};return u.value.some(T=>T.min!==void 0&&T.min!==null&&T.min!==T.value)?[R,{name:"Min",data:u.value.map(T=>({x:new Date(T.t*1e3),y:T.min??T.value??0}))},{name:"Max",data:u.value.map(T=>({x:new Date(T.t*1e3),y:T.max??T.value??0}))}]:[R]}),A=J(()=>{if(!c.value)return"";const O=c.value;return O<60?`${O}s resolution`:O<3600?`${Math.round(O/60)} min resolution`:`${Math.round(O/3600)} h resolution`});function p(O){var T,W;const R=(W=(T=s.value)==null?void 0:T.telemetry)==null?void 0:W[O.key],N=Number(R);return Number.isFinite(N)?N:null}function S(O,R){return O===null?"—":O.toFixed(R.precision??2)}function m(){i.push({name:"devices"})}function v(O){a.value!==O&&(a.value=O,M())}function k(O){d.value!==O&&(d.value=O,M())}async function x(){try{const{devices:O}=await Pe.devices(),R=O.find(N=>N.id===r.value);if(!R){l.value=`Device "${r.value}" was not found. It may have been removed, or its plugin stopped.`;return}s.value=R,n.value=R.metrics??[],!a.value&&n.value.length>0&&(a.value=n.value[0].key)}catch(O){l.value=`Could not load device: ${O.message}`}}async function M(){var T,W;if(!a.value)return;const O=h.find(q=>q.key===d.value),R=Math.floor(Date.now()/1e3),N=R-O.seconds;o.value=!0;try{const q=await Pe.deviceMetrics(r.value,{metric:a.value,from:N,to:R});u.value=((T=q.series)==null?void 0:T.points)??[],c.value=((W=q.series)==null?void 0:W.resolution)??0}catch(q){l.value=`Could not load history: ${q.message}`}finally{o.value=!1}}let F=null,P=null;return ft(async()=>{await x(),await M(),F=setInterval(()=>void x(),5e3),P=setInterval(()=>void M(),3e4)}),Zi(()=>{F&&clearInterval(F),P&&clearInterval(P)}),Fe(r,async()=>{s.value=null,n.value=[],a.value="",u.value=[],l.value="",await x(),await M()}),(O,R)=>{var ie;const N=vi,T=D4,W=rt,q=tL;return b(),$("div",WD,[X(T,{title:f.value,subtitle:((ie=s.value)==null?void 0:ie.name)??r.value},{default:te(()=>[X(N,{variant:"ghost",size:"sm",icon:UD,onClick:m},{default:te(()=>[...R[0]||(R[0]=[ce("Devices",-1)])]),_:1})]),_:1},8,["title","subtitle"]),l.value?(b(),$("div",jD,[X(W,{variant:"error"},{default:te(()=>[ce(U(l.value),1)]),_:1})])):s.value?(b(),$(be,{key:1},[y("div",KD,[(b(!0),$(be,null,Ve(n.value,ee=>(b(),$("div",{key:ee.key,class:Le(["summary-tile",{active:ee.key===a.value}]),onClick:re=>v(ee.key)},[y("span",GD,U(ee.label),1),y("span",YD,[ce(U(S(p(ee),ee))+" ",1),y("span",XD,U(ee.unit),1)])],10,qD))),128))]),n.value.length===0?(b(),$("div",JD,[X(W,{variant:"helper"},{default:te(()=>[...R[1]||(R[1]=[ce(" This device does not declare any metrics, so there is nothing to chart. Plugins opt in by describing their series in the device descriptor. ",-1)])]),_:1})])):(b(),$(be,{key:1},[y("div",QD,[y("div",eV,[(b(),$(be,null,Ve(h,ee=>y("button",{key:ee.key,class:Le(["range-tab",{active:ee.key===d.value}]),onClick:re=>k(ee.key)},U(ee.label),11,tV)),64))]),A.value?(b(),$("span",iV,U(A.value),1)):j("",!0)]),y("div",rV,[_.value.length>0&&_.value[0].data.length>0?(b(),fe(q,{key:0,series:_.value,height:320,"show-legend":_.value.length>1,"show-grid":!0,"show-tooltip":!0,points:!1,curve:"smooth"},null,8,["series","show-legend"])):o.value?(b(),$("div",sV,"Loading…")):(b(),$("div",nV," No data recorded yet for this range. History starts accumulating once the device reports. "))])],64))],64)):(b(),$("div",aV,"Loading…"))])}}}),lV=Zt(oV,[["__scopeId","data-v-df1516e5"]]),_a=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},cV=_a("magic-wand","0 0 256 256",'<path d="M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"/>'),uV=_a("magic-wand","0 0 256 256",'<path d="M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"/>'),V6=_a("magic-wand","0 0 256 256",'<path d="M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"/>'),hV=_a("magic-wand","0 0 256 256",'<path d="M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"/>'),dV=_a("magic-wand","0 0 256 256",'<path d="M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"/>'),fV=_a("magic-wand","0 0 256 256",'<path d="M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z" opacity="0.2"/><path d="M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"/>'),_V="magic-wand",pV=Object.freeze(Object.defineProperty({__proto__:null,bold:hV,default:V6,duotone:fV,fill:dV,glyphName:_V,light:uV,regular:V6,thin:cV},Symbol.toStringTag,{value:"Module"})),mV={class:"config-view"},gV={key:0,class:"error-banner"},vV={key:1,class:"loading-state"},bV=Oe({__name:"ConfigView",setup(e){const t=Ys(),{resolved:i}=Xh(),r=Q(null),s=Vr(null),n=Q(!1),a=Q(!1),o=Q(null),l=Q(!0);ft(async()=>{t.setPage("Config",void 0,{fullBleed:!0});let h="{}";try{h=(await Pe.config.get()).content}catch(f){o.value=`Failed to load config: ${f}`}finally{l.value=!1}const d=await ng.init();d.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"openbridge://config-schema",fileMatch:["*"],schema:{type:"object",properties:{bridge:{type:"object",description:"Bridge configuration",properties:{name:{type:"string",description:"Bridge display name"},port:{type:"number",description:"HTTP API port (default 8582)"},hapPort:{type:"number",description:"HomeKit HAP port (default 51829)"},pincode:{type:"string",description:"HomeKit pairing PIN (format: XXX-XX-XXX)"},username:{type:"string",description:"HAP username (MAC address format)"},logLevel:{type:"string",enum:["debug","info","warn","error"]}}},platforms:{type:"array",description:"Homebridge-compatible platform plugins",items:{type:"object",required:["platform"],properties:{platform:{type:"string",description:"Platform identifier"},plugin:{type:"string",description:"Absolute path to the plugin JS file"},enabled:{type:"boolean",default:!0}},additionalProperties:!0}},plugins:{type:"array",description:"Native OpenBridge plugins",items:{type:"object",required:["name"],properties:{name:{type:"string"},path:{type:"string"},enabled:{type:"boolean",default:!0},config:{type:"object"}}}}}}}]}),r.value&&(Fe(i,f=>d.editor.setTheme(f==="dark"?"vs-dark":"vs")),s.value=d.editor.create(r.value,{value:h,language:"json",theme:i.value==="dark"?"vs-dark":"vs",fontSize:13,fontFamily:'"MesloLGS NF", monospace',minimap:{enabled:!0},scrollBeyondLastLine:!1,formatOnPaste:!0,formatOnType:!0,tabSize:2,automaticLayout:!0,wordWrap:"off",bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0},lineNumbers:"on",renderLineHighlight:"all",smoothScrolling:!0}))}),Zi(()=>{var h;(h=s.value)==null||h.dispose()});async function c(){var h;if(!n.value){n.value=!0,o.value=null,a.value=!1;try{const d=((h=s.value)==null?void 0:h.getValue())??"";await Pe.config.save(d),a.value=!0,setTimeout(()=>{a.value=!1},2500)}catch(d){o.value=String(d)}finally{n.value=!1}}}function u(){var h,d;(d=(h=s.value)==null?void 0:h.getAction("editor.action.formatDocument"))==null||d.run()}return(h,d)=>{const f=vi,g=Ye;return b(),$("div",mV,[(b(),fe(Or,{defer:"",to:"#ob-topbar-left"},[d[0]||(d[0]=y("span",{class:"config-path"},"~/.openbridge/config.json",-1))])),(b(),fe(Or,{defer:"",to:"#ob-topbar-right"},[X(f,{variant:"ghost",size:"sm",icon:pV,title:"Format JSON",onClick:u},{default:te(()=>[...d[1]||(d[1]=[ce("Format",-1)])]),_:1}),X(f,{variant:"primary",size:"sm",icon:a.value?_s:A0,loading:n.value,disabled:n.value,title:"Changes take effect after restarting the daemon",onClick:c},{default:te(()=>[ce(U(a.value?"Saved!":n.value?"Saving…":"Save"),1)]),_:1},8,["icon","loading","disabled"])])),o.value?(b(),$("div",gV,[X(g,{name:le(wn),size:14},null,8,["name"]),ce(" "+U(o.value),1)])):j("",!0),l.value?(b(),$("div",vV,[X(g,{name:le(Ln),size:28},null,8,["name"]),d[2]||(d[2]=y("span",null,"Loading config...",-1))])):(b(),$("div",{key:2,ref_key:"editorContainer",ref:r,class:"editor-container"},null,512))])}}}),yV=Zt(bV,[["__scopeId","data-v-483debe2"]]),wV=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},SV=wV("bridge","0 0 256 256",'<path d="M232,160H200V101.34a71.89,71.89,0,0,0,29,21.42,8,8,0,0,0,6-14.83A55.78,55.78,0,0,1,200,56a8,8,0,0,0-16,0A56,56,0,0,1,72,56a8,8,0,0,0-16,0,55.78,55.78,0,0,1-35,51.93,8,8,0,0,0,6,14.83,71.89,71.89,0,0,0,29-21.42V160H24a8,8,0,0,0,0,16H56v24a8,8,0,0,0,16,0V176H184v24a8,8,0,0,0,16,0V176h32a8,8,0,0,0,0-16Zm-88-33.8V160H112V126.2a72,72,0,0,0,32,0Zm-72-25a72.47,72.47,0,0,0,24,19.27V160H72ZM160,160V120.48a72.47,72.47,0,0,0,24-19.27V160Z"/>'),CV={class:"settings-view"},AV={class:"card-header"},kV={class:"card-icon"},MV={class:"pin-row"},LV={class:"card-actions"},EV={key:0,class:"action-hint"},xV={class:"card-header"},$V={class:"card-icon"},TV={class:"update-row"},NV={class:"update-versions"},HV={class:"update-actions"},PV={class:"update-command"},OV={key:3,class:"update-error-row"},IV={class:"info-title"},RV=Oe({__name:"SettingsView",setup(e){const t=Ys(),i=[{value:"debug",label:"Debug"},{value:"info",label:"Info"},{value:"warn",label:"Warn"},{value:"error",label:"Error"}],r=Q(!1),s=Q(!1),n=Q(null),a=Q(!1),o=Q(null),l=Q(!1),c=Q(!1),u=Q(!1),h=Q(null),d=Q(""),f=Q(0),g=Q("");let _=null;async function A(){l.value=!0,h.value=null;try{o.value=await Pe.updates.check()}catch(P){h.value=String(P)}finally{l.value=!1}}function p(){const P=location.protocol==="https:"?"wss":"ws";_=new WebSocket(`${P}://${location.host}/ws/updates`),_.onmessage=O=>{try{const R=JSON.parse(O.data);d.value=R.stage??"",f.value=Math.round((R.progress??0)*100),g.value=R.message??"",R.stage==="restarting"&&S(),R.stage==="error"&&(h.value=R.message,c.value=!1)}catch{}},_.onclose=()=>{c.value&&S()}}function S(){let P=0;const O=setInterval(async()=>{P++;try{await Pe.health(),clearInterval(O),c.value=!1,d.value="",g.value="",o.value=null,await A()}catch{}P>60&&(clearInterval(O),c.value=!1,h.value="Timed out waiting for restart")},2e3)}async function m(){if(!c.value){c.value=!0,u.value=!1,h.value=null,d.value="downloading",g.value="Starting update...",f.value=0,p();try{await Pe.updates.apply(),u.value=!0}catch(P){h.value=P instanceof Error?P.message:String(P),c.value=!1}}}async function v(){if(!c.value){c.value=!0,h.value=null,g.value="Rolling back...";try{await Pe.updates.rollback(),S()}catch(P){h.value=P instanceof Error?P.message:String(P),c.value=!1}}}const k=Q({name:"OpenBridge",port:8582,hapPort:51829,pincode:"031-45-154",username:"",logLevel:"info"});ft(async()=>{t.setPage("Settings");try{const P=await Pe.bridge();P&&typeof P=="object"&&(k.value={name:P.name??"OpenBridge",port:P.port??8582,hapPort:P.hapPort??51829,pincode:P.pincode??"031-45-154",username:P.username??"",logLevel:P.logLevel??"info"})}catch{}A()}),Br(()=>{_&&(_.close(),_=null)});async function x(){if(!r.value){r.value=!0,n.value=null,s.value=!1;try{const P={name:k.value.name,port:Number(k.value.port),hapPort:Number(k.value.hapPort),pincode:k.value.pincode,logLevel:k.value.logLevel};k.value.username&&(P.username=k.value.username),await Pe.saveBridge(P),s.value=!0,setTimeout(()=>{s.value=!1},3e3)}catch(P){n.value=String(P)}finally{r.value=!1}}}async function M(){if(!a.value){a.value=!0;try{await Pe.daemon.restart();let P=0;const O=setInterval(async()=>{P++;try{await Pe.health(),clearInterval(O),location.reload()}catch{}P>60&&(clearInterval(O),a.value=!1)},1e3)}catch{a.value=!1}}}function F(){const P=()=>Math.floor(Math.random()*9)+1,O=()=>`${P()}${Math.floor(Math.random()*10)}${Math.floor(Math.random()*10)}`,R=()=>`${Math.floor(Math.random()*10)}${Math.floor(Math.random()*10)}`;k.value.pincode=`${O()}-${R()}-${O()}`}return(P,O)=>{const R=Ye,N=ul,T=Gh,W=ym,q=vi,ie=sc,ee=$r,re=rt,Y=hl,_e=Dn,me=vm;return b(),$("div",CV,[X(Y,{class:"settings-card"},{default:te(()=>[y("div",AV,[y("div",kV,[X(R,{name:le(SV),size:18},null,8,["name"])]),O[6]||(O[6]=y("div",null,[y("h2",{class:"card-title"},"Bridge"),y("p",{class:"card-subtitle"},"HomeKit bridge identity and network settings")],-1))]),X(ee,{dir:"col",gap:"sm",class:"field-grid"},{default:te(()=>[X(T,{label:"Bridge name",hint:"Displayed in the Home app"},{default:te(()=>[X(N,{modelValue:k.value.name,"onUpdate:modelValue":O[0]||(O[0]=ge=>k.value.name=ge),size:"sm",placeholder:"OpenBridge"},null,8,["modelValue"])]),_:1}),X(T,{label:"HTTP port",hint:"OpenBridge web UI & API",control:"fit"},{default:te(()=>[X(W,{modelValue:k.value.port,"onUpdate:modelValue":O[1]||(O[1]=ge=>k.value.port=ge),size:"sm",min:1024,max:65535},null,8,["modelValue"])]),_:1}),X(T,{label:"HAP port",hint:"HomeKit accessory protocol port",control:"fit"},{default:te(()=>[X(W,{modelValue:k.value.hapPort,"onUpdate:modelValue":O[2]||(O[2]=ge=>k.value.hapPort=ge),size:"sm",min:1024,max:65535},null,8,["modelValue"])]),_:1}),X(T,{label:"PIN code",hint:"Format: XXX-XX-XXX, used to pair with HomeKit"},{default:te(()=>[y("div",MV,[X(N,{modelValue:k.value.pincode,"onUpdate:modelValue":O[3]||(O[3]=ge=>k.value.pincode=ge),size:"sm",placeholder:"031-45-154"},null,8,["modelValue"]),X(q,{variant:"ghost",size:"sm",icon:zs,title:"Generate random PIN",onClick:F})])]),_:1}),X(T,{label:"Bridge MAC",hint:"Leave empty to auto-generate. Change this only if pairing with HomeKit fails."},{default:te(()=>[X(N,{modelValue:k.value.username,"onUpdate:modelValue":O[4]||(O[4]=ge=>k.value.username=ge),size:"sm",class:"mono",placeholder:"AA:BB:CC:DD:EE:FF"},null,8,["modelValue"])]),_:1}),X(T,{label:"Log level",control:"fit"},{default:te(()=>[X(ie,{modelValue:k.value.logLevel,"onUpdate:modelValue":O[5]||(O[5]=ge=>k.value.logLevel=ge),size:"sm",options:i},null,8,["modelValue"])]),_:1})]),_:1}),n.value?(b(),fe(re,{key:0,variant:"error"},{default:te(()=>[ce(U(n.value),1)]),_:1})):j("",!0),y("div",LV,[X(q,{variant:"primary",size:"sm",loading:r.value,icon:s.value?_s:A0,onClick:x},{default:te(()=>[ce(U(s.value?"Saved!":"Save"),1)]),_:1},8,["loading","icon"]),X(q,{variant:"secondary",size:"sm",outlined:"",loading:a.value,icon:a.value?Jo:zs,onClick:M},{default:te(()=>[ce(U(a.value?"Restarting…":"Save & Restart OpenBridge"),1)]),_:1},8,["loading","icon"]),s.value&&!a.value?(b(),$("span",EV,[X(R,{name:le(g0),size:12},null,8,["name"]),O[7]||(O[7]=ce(" Restart the daemon for changes to take effect ",-1))])):j("",!0)])]),_:1}),X(Y,{class:"settings-card"},{default:te(()=>{var ge,$e;return[y("div",xV,[y("div",$V,[X(R,{name:le(_u),size:18},null,8,["name"])]),O[8]||(O[8]=y("div",null,[y("h2",{class:"card-title"},"Updates"),y("p",{class:"card-subtitle"},"OpenBridge daemon and UI")],-1))]),y("div",TV,[y("div",NV,[X(_e,{variant:"grey"},{default:te(()=>{var Se;return[ce("Current: v"+U(((Se=o.value)==null?void 0:Se.current)??"…"),1)]}),_:1}),o.value&&!l.value?(b(),$(be,{key:0},[o.value.updateAvailable?(b(),fe(_e,{key:0,variant:"blue"},{default:te(()=>[ce("Available: v"+U(o.value.latest),1)]),_:1})):o.value.latest===null?(b(),fe(_e,{key:1,variant:"orange"},{default:te(()=>[...O[9]||(O[9]=[ce("Unable to check",-1)])]),_:1})):(b(),fe(_e,{key:2,variant:"green"},{default:te(()=>[...O[10]||(O[10]=[ce("Up to date",-1)])]),_:1}))],64)):j("",!0),l.value?(b(),fe(_e,{key:1,variant:"grey"},{default:te(()=>[...O[11]||(O[11]=[ce("Checking…",-1)])]),_:1})):j("",!0)]),y("div",HV,[X(q,{variant:"secondary",size:"sm",outlined:"",loading:l.value,icon:zs,onClick:A},{default:te(()=>[...O[12]||(O[12]=[ce(" Check ",-1)])]),_:1},8,["loading"]),(ge=o.value)!=null&&ge.updateAvailable&&o.value.updateMethod==="self"?(b(),fe(q,{key:0,variant:"primary",size:"sm",loading:c.value,icon:c.value?Jo:ed,onClick:m},{default:te(()=>[ce(U(c.value?"Updating…":"Install update"),1)]),_:1},8,["loading","icon"])):j("",!0)])]),c.value&&d.value?(b(),fe(me,{key:0,label:g.value,value:d.value==="downloading"&&f.value>0?f.value:void 0,max:100,status:"active",size:"sm"},null,8,["label","value"])):j("",!0),c.value&&!d.value?(b(),fe(re,{key:1,variant:"helper"},{default:te(()=>[...O[13]||(O[13]=[ce(" Starting update... This page will reconnect automatically. ",-1)])]),_:1})):j("",!0),(($e=o.value)==null?void 0:$e.updateMethod)==="manual"&&o.value.updateAvailable?(b(),fe(re,{key:2,variant:"helper"},{default:te(()=>[o.value.pinnedTo?(b(),$(be,{key:0},[ce(" This deployment is pinned to "+U(o.value.pinnedTo)+". To move version: ",1)],64)):(b(),$(be,{key:1},[ce("Self-update is not available for this install. To update:")],64)),y("code",PV,U(o.value.updateCommand),1)]),_:1})):j("",!0),h.value?(b(),$("div",OV,[X(re,{variant:"error"},{default:te(()=>[ce(U(h.value),1)]),_:1}),u.value?(b(),fe(q,{key:0,variant:"ghost",size:"sm",onClick:v},{default:te(()=>[...O[14]||(O[14]=[ce("Rollback",-1)])]),_:1})):j("",!0)])):j("",!0)]}),_:1}),X(Y,{class:"settings-card info-card"},{default:te(()=>[y("h3",IV,[X(R,{name:le(g0),size:14},null,8,["name"]),O[15]||(O[15]=ce(" How to pair with HomeKit ",-1))]),O[16]||(O[16]=y("ol",{class:"info-list"},[y("li",null,[ce(" Open the "),y("strong",null,"Home"),ce(" app on your iPhone or iPad ")]),y("li",null,[ce(" Tap "),y("strong",null,"+"),ce(" → "),y("strong",null,"Add Accessory")]),y("li",null,[ce(" Scan the QR code from the Dashboard, or tap "),y("strong",null,"More options"),ce(" and enter the PIN code manually ")]),y("li",null,"If you change the PIN or username, unpair first from the Home app, then re-pair")],-1))]),_:1})])}}}),DV=Zt(RV,[["__scopeId","data-v-c449f216"]]);/**
|
|
68
|
+
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
69
|
+
* @license MIT
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
72
|
+
* @license MIT
|
|
73
|
+
*
|
|
74
|
+
* Originally forked from (with the author's permission):
|
|
75
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
76
|
+
* http://bellard.org/jslinux/
|
|
77
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
78
|
+
*/var dg=Object.defineProperty,VV=Object.getOwnPropertyDescriptor,BV=(e,t)=>{for(var i in t)dg(e,i,{get:t[i],enumerable:!0})},Lt=(e,t,i,r)=>{for(var s=r>1?void 0:r?VV(t,i):t,n=e.length-1,a;n>=0;n--)(a=e[n])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&dg(t,i,s),s},xe=(e,t)=>(i,r)=>t(i,r,e),B6="Terminal input",wu={get:()=>B6,set:e=>B6=e},Z6="Too much output to announce, navigate to rows manually to read",Su={get:()=>Z6,set:e=>Z6=e};function ZV(e){return e.replace(/\r?\n/g,"\r")}function FV(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function zV(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function UV(e,t,i,r){if(e.stopPropagation(),e.clipboardData){let s=e.clipboardData.getData("text/plain");fg(s,t,i,r)}}function fg(e,t,i,r){e=ZV(e),e=FV(e,i.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=""}function _g(e,t,i){let r=i.getBoundingClientRect(),s=e.clientX-r.left-10,n=e.clientY-r.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${s}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function F6(e,t,i,r,s){_g(e,t,i),s&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function ts(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function _c(e,t=0,i=e.length){let r="";for(let s=t;s<i;++s){let n=e[s];n>65535?(n-=65536,r+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):r+=String.fromCharCode(n)}return r}var WV=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let r=0,s=0;if(this._interim){let n=e.charCodeAt(s++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let n=s;n<i;++n){let a=e.charCodeAt(n);if(55296<=a&&a<=56319){if(++n>=i)return this._interim=a,r;let o=e.charCodeAt(n);56320<=o&&o<=57343?t[r++]=(a-55296)*1024+o-56320+65536:(t[r++]=a,t[r++]=o);continue}a!==65279&&(t[r++]=a)}return r}},jV=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let r=0,s,n,a,o,l=0,c=0;if(this.interim[0]){let d=!1,f=this.interim[0];f&=(f&224)===192?31:(f&240)===224?15:7;let g=0,_;for(;(_=this.interim[++g]&63)&&g<4;)f<<=6,f|=_;let A=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,p=A-g;for(;c<p;){if(c>=i)return 0;if(_=e[c++],(_&192)!==128){c--,d=!0;break}else this.interim[g++]=_,f<<=6,f|=_&63}d||(A===2?f<128?c--:t[r++]=f:A===3?f<2048||f>=55296&&f<=57343||f===65279||(t[r++]=f):f<65536||f>1114111||(t[r++]=f)),this.interim.fill(0)}let u=i-4,h=c;for(;h<i;){for(;h<u&&!((s=e[h])&128)&&!((n=e[h+1])&128)&&!((a=e[h+2])&128)&&!((o=e[h+3])&128);)t[r++]=s,t[r++]=n,t[r++]=a,t[r++]=o,h+=4;if(s=e[h++],s<128)t[r++]=s;else if((s&224)===192){if(h>=i)return this.interim[0]=s,r;if(n=e[h++],(n&192)!==128){h--;continue}if(l=(s&31)<<6|n&63,l<128){h--;continue}t[r++]=l}else if((s&240)===224){if(h>=i)return this.interim[0]=s,r;if(n=e[h++],(n&192)!==128){h--;continue}if(h>=i)return this.interim[0]=s,this.interim[1]=n,r;if(a=e[h++],(a&192)!==128){h--;continue}if(l=(s&15)<<12|(n&63)<<6|a&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[r++]=l}else if((s&248)===240){if(h>=i)return this.interim[0]=s,r;if(n=e[h++],(n&192)!==128){h--;continue}if(h>=i)return this.interim[0]=s,this.interim[1]=n,r;if(a=e[h++],(a&192)!==128){h--;continue}if(h>=i)return this.interim[0]=s,this.interim[1]=n,this.interim[2]=a,r;if(o=e[h++],(o&192)!==128){h--;continue}if(l=(s&7)<<18|(n&63)<<12|(a&63)<<6|o&63,l<65536||l>1114111)continue;t[r++]=l}}return r}},pg="",ns=" ",ml=class mg{constructor(){this.fg=0,this.bg=0,this.extended=new E0}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new mg;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},E0=class gg{constructor(t=0,i=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=i}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new gg(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Bi=class vg extends ml{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new E0,this.combinedData=""}static fromCharData(t){let i=new vg;return i.setFromCharData(t),i}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?ts(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let i=!1;if(t[1].length>2)i=!0;else if(t[1].length===2){let r=t[1].charCodeAt(0);if(55296<=r&&r<=56319){let s=t[1].charCodeAt(1);56320<=s&&s<=57343?this.content=(r-55296)*1024+s-56320+65536|t[2]<<22:i=!0}else i=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;i&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},z6="di$target",Cu="di$dependencies",Qc=new Map;function KV(e){return e[Cu]||[]}function qt(e){if(Qc.has(e))return Qc.get(e);let t=function(i,r,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");qV(t,i,s)};return t._id=e,Qc.set(e,t),t}function qV(e,t,i){t[z6]===t?t[Cu].push({id:e,index:i}):(t[Cu]=[{id:e,index:i}],t[z6]=t)}var bi=qt("BufferService"),bg=qt("CoreMouseService"),Xs=qt("CoreService"),GV=qt("CharsetService"),od=qt("InstantiationService"),yg=qt("LogService"),yi=qt("OptionsService"),wg=qt("OscLinkService"),YV=qt("UnicodeService"),gl=qt("DecorationService"),Au=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){var u;let i=this._bufferService.buffer.lines.get(e-1);if(!i){t(void 0);return}let r=[],s=this._optionsService.rawOptions.linkHandler,n=new Bi,a=i.getTrimmedLength(),o=-1,l=-1,c=!1;for(let h=0;h<a;h++)if(!(l===-1&&!i.hasContent(h))){if(i.loadCell(h,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=h,o=n.extended.urlId;continue}else c=n.extended.urlId!==o;else l!==-1&&(c=!0);if(c||l!==-1&&h===a-1){let d=(u=this._oscLinkService.getLinkData(o))==null?void 0:u.uri;if(d){let f={start:{x:l+1,y:e},end:{x:h+(!c&&h===a-1?1:0),y:e}},g=!1;if(!(s!=null&&s.allowNonHttpProtocols))try{let _=new URL(d);["http:","https:"].includes(_.protocol)||(g=!0)}catch{g=!0}g||r.push({text:d,range:f,activate:(_,A)=>s?s.activate(_,A,f):XV(_,A),hover:(_,A)=>{var p;return(p=s==null?void 0:s.hover)==null?void 0:p.call(s,_,A,f)},leave:(_,A)=>{var p;return(p=s==null?void 0:s.leave)==null?void 0:p.call(s,_,A,f)}})}c=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=h,o=n.extended.urlId):(l=-1,o=-1)}}t(r)}};Au=Lt([xe(0,bi),xe(1,yi),xe(2,wg)],Au);function XV(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
79
|
+
|
|
80
|
+
WARNING: This link could potentially be dangerous`)){let i=window.open();if(i){try{i.opener=null}catch{}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}var pc=qt("CharSizeService"),zr=qt("CoreBrowserService"),ld=qt("MouseService"),Ur=qt("RenderService"),JV=qt("SelectionService"),Sg=qt("CharacterJoinerService"),pa=qt("ThemeService"),Cg=qt("LinkProviderService"),QV=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?U6.isErrorNoTelemetry(e)?new U6(e.message+`
|
|
81
|
+
|
|
82
|
+
`+e.stack):new Error(e.message+`
|
|
83
|
+
|
|
84
|
+
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},eB=new QV;function ql(e){tB(e)||eB.onUnexpectedError(e)}var ku="Canceled";function tB(e){return e instanceof iB?!0:e instanceof Error&&e.name===ku&&e.message===ku}var iB=class extends Error{constructor(){super(ku),this.name=this.message}};function rB(e){return new Error(`Illegal argument: ${e}`)}var U6=class Mu extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Mu)return t;let i=new Mu;return i.message=t.message,i.stack=t.stack,i}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Lu=class Ag extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ag.prototype)}};function Ai(e,t=0){return e[e.length-(1+t)]}var sB;(e=>{function t(n){return n<0}e.isLessThan=t;function i(n){return n<=0}e.isLessThanOrEqual=i;function r(n){return n>0}e.isGreaterThan=r;function s(n){return n===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(sB||(sB={}));function nB(e,t){let i=this,r=!1,s;return function(){return r||(r=!0,t||(s=e.apply(i,arguments))),s}}var kg;(e=>{function t(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}e.is=t;let i=Object.freeze([]);function r(){return i}e.empty=r;function*s(v){yield v}e.single=s;function n(v){return t(v)?v:s(v)}e.wrap=n;function a(v){return v||i}e.from=a;function*o(v){for(let k=v.length-1;k>=0;k--)yield v[k]}e.reverse=o;function l(v){return!v||v[Symbol.iterator]().next().done===!0}e.isEmpty=l;function c(v){return v[Symbol.iterator]().next().value}e.first=c;function u(v,k){let x=0;for(let M of v)if(k(M,x++))return!0;return!1}e.some=u;function h(v,k){for(let x of v)if(k(x))return x}e.find=h;function*d(v,k){for(let x of v)k(x)&&(yield x)}e.filter=d;function*f(v,k){let x=0;for(let M of v)yield k(M,x++)}e.map=f;function*g(v,k){let x=0;for(let M of v)yield*k(M,x++)}e.flatMap=g;function*_(...v){for(let k of v)yield*k}e.concat=_;function A(v,k,x){let M=x;for(let F of v)M=k(M,F);return M}e.reduce=A;function*p(v,k,x=v.length){for(k<0&&(k+=v.length),x<0?x+=v.length:x>v.length&&(x=v.length);k<x;k++)yield v[k]}e.slice=p;function S(v,k=Number.POSITIVE_INFINITY){let x=[];if(k===0)return[x,v];let M=v[Symbol.iterator]();for(let F=0;F<k;F++){let P=M.next();if(P.done)return[x,e.empty()];x.push(P.value)}return[x,{[Symbol.iterator](){return M}}]}e.consume=S;async function m(v){let k=[];for await(let x of v)k.push(x);return Promise.resolve(k)}e.asyncToArray=m})(kg||(kg={}));function Ks(e){if(kg.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function aB(...e){return vt(()=>Ks(e))}function vt(e){return{dispose:nB(()=>{e()})}}var Mg=class Lg{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Ks(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Lg.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),void 0)}};Mg.DISABLE_DISPOSED_WARNING=!1;var cs=Mg,We=class{constructor(){this._store=new cs,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};We.None=Object.freeze({dispose(){}});var Nn=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)==null||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)==null||e.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e}},Hr=typeof window=="object"?window:globalThis,Eu=class xu{constructor(t){this.element=t,this.next=xu.Undefined,this.prev=xu.Undefined}};Eu.Undefined=new Eu(void 0);var bt=Eu,W6=class{constructor(){this._first=bt.Undefined,this._last=bt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===bt.Undefined}clear(){let e=this._first;for(;e!==bt.Undefined;){let t=e.next;e.prev=bt.Undefined,e.next=bt.Undefined,e=t}this._first=bt.Undefined,this._last=bt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new bt(e);if(this._first===bt.Undefined)this._first=i,this._last=i;else if(t){let s=this._last;this._last=i,i.prev=s,s.next=i}else{let s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==bt.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bt.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bt.Undefined&&e.next!==bt.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bt.Undefined&&e.next===bt.Undefined?(this._first=bt.Undefined,this._last=bt.Undefined):e.next===bt.Undefined?(this._last=this._last.prev,this._last.next=bt.Undefined):e.prev===bt.Undefined&&(this._first=this._first.next,this._first.prev=bt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bt.Undefined;)yield e.element,e=e.next}},oB=globalThis.performance&&typeof globalThis.performance.now=="function",lB=class Eg{static create(t){return new Eg(t)}constructor(t){this._now=oB&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}},ei;(e=>{e.None=()=>We.None;function t(N,T){return h(N,()=>{},0,void 0,!0,void 0,T)}e.defer=t;function i(N){return(T,W=null,q)=>{let ie=!1,ee;return ee=N(re=>{if(!ie)return ee?ee.dispose():ie=!0,T.call(W,re)},null,q),ie&&ee.dispose(),ee}}e.once=i;function r(N,T,W){return c((q,ie=null,ee)=>N(re=>q.call(ie,T(re)),null,ee),W)}e.map=r;function s(N,T,W){return c((q,ie=null,ee)=>N(re=>{T(re),q.call(ie,re)},null,ee),W)}e.forEach=s;function n(N,T,W){return c((q,ie=null,ee)=>N(re=>T(re)&&q.call(ie,re),null,ee),W)}e.filter=n;function a(N){return N}e.signal=a;function o(...N){return(T,W=null,q)=>{let ie=aB(...N.map(ee=>ee(re=>T.call(W,re))));return u(ie,q)}}e.any=o;function l(N,T,W,q){let ie=W;return r(N,ee=>(ie=T(ie,ee),ie),q)}e.reduce=l;function c(N,T){let W,q={onWillAddFirstListener(){W=N(ie.fire,ie)},onDidRemoveLastListener(){W==null||W.dispose()}},ie=new Ce(q);return T==null||T.add(ie),ie.event}function u(N,T){return T instanceof Array?T.push(N):T&&T.add(N),N}function h(N,T,W=100,q=!1,ie=!1,ee,re){let Y,_e,me,ge=0,$e,Se={leakWarningThreshold:ee,onWillAddFirstListener(){Y=N(se=>{ge++,_e=T(_e,se),q&&!me&&(ae.fire(_e),_e=void 0),$e=()=>{let D=_e;_e=void 0,me=void 0,(!q||ge>1)&&ae.fire(D),ge=0},typeof W=="number"?(clearTimeout(me),me=setTimeout($e,W)):me===void 0&&(me=0,queueMicrotask($e))})},onWillRemoveListener(){ie&&ge>0&&($e==null||$e())},onDidRemoveLastListener(){$e=void 0,Y.dispose()}},ae=new Ce(Se);return re==null||re.add(ae),ae.event}e.debounce=h;function d(N,T=0,W){return e.debounce(N,(q,ie)=>q?(q.push(ie),q):[ie],T,void 0,!0,void 0,W)}e.accumulate=d;function f(N,T=(q,ie)=>q===ie,W){let q=!0,ie;return n(N,ee=>{let re=q||!T(ee,ie);return q=!1,ie=ee,re},W)}e.latch=f;function g(N,T,W){return[e.filter(N,T,W),e.filter(N,q=>!T(q),W)]}e.split=g;function _(N,T=!1,W=[],q){let ie=W.slice(),ee=N(_e=>{ie?ie.push(_e):Y.fire(_e)});q&&q.add(ee);let re=()=>{ie==null||ie.forEach(_e=>Y.fire(_e)),ie=null},Y=new Ce({onWillAddFirstListener(){ee||(ee=N(_e=>Y.fire(_e)),q&&q.add(ee))},onDidAddFirstListener(){ie&&(T?setTimeout(re):re())},onDidRemoveLastListener(){ee&&ee.dispose(),ee=null}});return q&&q.add(Y),Y.event}e.buffer=_;function A(N,T){return(W,q,ie)=>{let ee=T(new S);return N(function(re){let Y=ee.evaluate(re);Y!==p&&W.call(q,Y)},void 0,ie)}}e.chain=A;let p=Symbol("HaltChainable");class S{constructor(){this.steps=[]}map(T){return this.steps.push(T),this}forEach(T){return this.steps.push(W=>(T(W),W)),this}filter(T){return this.steps.push(W=>T(W)?W:p),this}reduce(T,W){let q=W;return this.steps.push(ie=>(q=T(q,ie),q)),this}latch(T=(W,q)=>W===q){let W=!0,q;return this.steps.push(ie=>{let ee=W||!T(ie,q);return W=!1,q=ie,ee?ie:p}),this}evaluate(T){for(let W of this.steps)if(T=W(T),T===p)break;return T}}function m(N,T,W=q=>q){let q=(...Y)=>re.fire(W(...Y)),ie=()=>N.on(T,q),ee=()=>N.removeListener(T,q),re=new Ce({onWillAddFirstListener:ie,onDidRemoveLastListener:ee});return re.event}e.fromNodeEventEmitter=m;function v(N,T,W=q=>q){let q=(...Y)=>re.fire(W(...Y)),ie=()=>N.addEventListener(T,q),ee=()=>N.removeEventListener(T,q),re=new Ce({onWillAddFirstListener:ie,onDidRemoveLastListener:ee});return re.event}e.fromDOMEventEmitter=v;function k(N){return new Promise(T=>i(N)(T))}e.toPromise=k;function x(N){let T=new Ce;return N.then(W=>{T.fire(W)},()=>{T.fire(void 0)}).finally(()=>{T.dispose()}),T.event}e.fromPromise=x;function M(N,T){return N(W=>T.fire(W))}e.forward=M;function F(N,T,W){return T(W),N(q=>T(q))}e.runAndSubscribe=F;class P{constructor(T,W){this._observable=T,this._counter=0,this._hasChanged=!1;let q={onWillAddFirstListener:()=>{T.addObserver(this)},onDidRemoveLastListener:()=>{T.removeObserver(this)}};this.emitter=new Ce(q),W&&W.add(this.emitter)}beginUpdate(T){this._counter++}handlePossibleChange(T){}handleChange(T,W){this._hasChanged=!0}endUpdate(T){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function O(N,T){return new P(N,T).emitter.event}e.fromObservable=O;function R(N){return(T,W,q)=>{let ie=0,ee=!1,re={beginUpdate(){ie++},endUpdate(){ie--,ie===0&&(N.reportChanges(),ee&&(ee=!1,T.call(W)))},handlePossibleChange(){},handleChange(){ee=!0}};N.addObserver(re),N.reportChanges();let Y={dispose(){N.removeObserver(re)}};return q instanceof cs?q.add(Y):Array.isArray(q)&&q.push(Y),Y}}e.fromObservableLight=R})(ei||(ei={}));var $u=class Tu{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Tu._idPool++}`,Tu.all.add(this)}start(t){this._stopWatch=new lB,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};$u.all=new Set,$u._idPool=0;var cB=$u,uB=-1,xg=class $g{constructor(t,i,r=($g._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=i,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)==null||t.clear()}check(t,i){let r=this.threshold;if(r<=0||i<r)return;this._stacks||(this._stacks=new Map);let s=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let[n,a]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${a}):`;console.warn(o),console.warn(n);let l=new fB(o,n);this._errorHandler(l)}return()=>{let n=this._stacks.get(t.value)||0;this._stacks.set(t.value,n-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,i=0;for(let[r,s]of this._stacks)(!t||i<s)&&(t=[r,s],i=s);return t}};xg._idPool=1;var hB=xg,dB=class Tg{constructor(t){this.value=t}static create(){let t=new Error;return new Tg(t.stack??"")}print(){console.warn(this.value.split(`
|
|
85
|
+
`).slice(2).join(`
|
|
86
|
+
`))}},fB=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},_B=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},pB=0,e1=class{constructor(e){this.value=e,this.id=pB++}},mB=2,gB,Ce=class{constructor(e){var t,i,r,s;this._size=0,this._options=e,this._leakageMon=(t=this._options)!=null&&t.leakWarningThreshold?new hB((e==null?void 0:e.onListenerError)??ql,((i=this._options)==null?void 0:i.leakWarningThreshold)??uB):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new cB(this._options._profName):void 0,this._deliveryQueue=(s=this._options)==null?void 0:s.deliveryQueue}dispose(){var e,t,i,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(t=this._options)==null?void 0:t.onDidRemoveLastListener)==null||i.call(t),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,t,i)=>{var a,o,l,c,u;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let h=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(h);let d=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],f=new _B(`${h}. HINT: Stack shows most frequent listener (${d[1]}-times)`,d[0]);return(((a=this._options)==null?void 0:a.onListenerError)||ql)(f),We.None}if(this._disposed)return We.None;t&&(e=e.bind(t));let r=new e1(e),s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=dB.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof e1?(this._deliveryQueue??(this._deliveryQueue=new vB),this._listeners=[this._listeners,r]):this._listeners.push(r):((l=(o=this._options)==null?void 0:o.onWillAddFirstListener)==null||l.call(o,this),this._listeners=r,(u=(c=this._options)==null?void 0:c.onDidAddFirstListener)==null||u.call(c,this)),this._size++;let n=vt(()=>{s==null||s(),this._removeListener(r)});return i instanceof cs?i.add(n):Array.isArray(i)&&i.push(n),n}),this._event}_removeListener(e){var s,n,a,o;if((n=(s=this._options)==null?void 0:s.onWillRemoveListener)==null||n.call(s,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(o=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||o.call(a,this),this._size=0;return}let t=this._listeners,i=t.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;let r=this._deliveryQueue.current===this;if(this._size*mB<=t.length){let l=0;for(let c=0;c<t.length;c++)t[c]?t[l++]=t[c]:r&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=l}}_deliver(e,t){var r;if(!e)return;let i=((r=this._options)==null?void 0:r.onListenerError)||ql;if(!i){e.value(t);return}try{e.value(t)}catch(s){i(s)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,i,r,s;if((t=this._deliveryQueue)!=null&&t.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof e1)this._deliver(this._listeners,e);else{let n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}(s=this._perfMon)==null||s.stop()}hasListeners(){return this._size>0}},vB=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Nu=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new Ce,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new Ce,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(t){return this.mapWindowIdToZoomLevel.get(this.getWindowId(t))??0}setZoomLevel(t,i){if(this.getZoomLevel(i)===t)return;let r=this.getWindowId(i);this.mapWindowIdToZoomLevel.set(r,t),this._onDidChangeZoomLevel.fire(r)}getZoomFactor(t){return this.mapWindowIdToZoomFactor.get(this.getWindowId(t))??1}setZoomFactor(t,i){this.mapWindowIdToZoomFactor.set(this.getWindowId(i),t)}setFullscreen(t,i){if(this.isFullscreen(i)===t)return;let r=this.getWindowId(i);this.mapWindowIdToFullScreen.set(r,t),this._onDidChangeFullscreen.fire(r)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};Nu.INSTANCE=new Nu;var cd=Nu;function bB(e,t,i){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",i)}cd.INSTANCE.onDidChangeZoomLevel;function yB(e){return cd.INSTANCE.getZoomFactor(e)}cd.INSTANCE.onDidChangeFullscreen;var ma=typeof navigator=="object"?navigator.userAgent:"",Hu=ma.indexOf("Firefox")>=0,wB=ma.indexOf("AppleWebKit")>=0,ud=ma.indexOf("Chrome")>=0,SB=!ud&&ma.indexOf("Safari")>=0;ma.indexOf("Electron/")>=0;ma.indexOf("Android")>=0;var t1=!1;if(typeof Hr.matchMedia=="function"){let e=Hr.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=Hr.matchMedia("(display-mode: fullscreen)");t1=e.matches,bB(Hr,e,({matches:i})=>{t1&&t.matches||(t1=i)})}var hn="en",Pu=!1,Ou=!1,Gl=!1,Ng=!1,Il,Yl=hn,j6=hn,CB,zi,Us=globalThis,Xt,d_;typeof Us.vscode<"u"&&typeof Us.vscode.process<"u"?Xt=Us.vscode.process:typeof process<"u"&&typeof((d_=process==null?void 0:process.versions)==null?void 0:d_.node)=="string"&&(Xt=process);var f_,AB=typeof((f_=Xt==null?void 0:Xt.versions)==null?void 0:f_.electron)=="string",kB=AB&&(Xt==null?void 0:Xt.type)==="renderer",__;if(typeof Xt=="object"){Pu=Xt.platform==="win32",Ou=Xt.platform==="darwin",Gl=Xt.platform==="linux",Gl&&Xt.env.SNAP&&Xt.env.SNAP_REVISION,Xt.env.CI||Xt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Il=hn,Yl=hn;let e=Xt.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);Il=t.userLocale,j6=t.osLocale,Yl=t.resolvedLanguage||hn,CB=(__=t.languagePack)==null?void 0:__.translationsConfigFile}catch{}Ng=!0}else typeof navigator=="object"&&!kB?(zi=navigator.userAgent,Pu=zi.indexOf("Windows")>=0,Ou=zi.indexOf("Macintosh")>=0,(zi.indexOf("Macintosh")>=0||zi.indexOf("iPad")>=0||zi.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Gl=zi.indexOf("Linux")>=0,(zi==null?void 0:zi.indexOf("Mobi"))>=0,Yl=globalThis._VSCODE_NLS_LANGUAGE||hn,Il=navigator.language.toLowerCase(),j6=Il):console.error("Unable to resolve platform.");var Hg=Pu,fr=Ou,MB=Gl,K6=Ng,pr=zi,qr=Yl,LB;(e=>{function t(){return qr}e.value=t;function i(){return qr.length===2?qr==="en":qr.length>=3?qr[0]==="e"&&qr[1]==="n"&&qr[2]==="-":!1}e.isDefaultVariant=i;function r(){return qr==="en"}e.isDefault=r})(LB||(LB={}));var EB=typeof Us.postMessage=="function"&&!Us.importScripts;(()=>{if(EB){let e=[];Us.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let r=0,s=e.length;r<s;r++){let n=e[r];if(n.id===i.data.vscodeScheduleAsyncWork){e.splice(r,1),n.callback();return}}});let t=0;return i=>{let r=++t;e.push({id:r,callback:i}),Us.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();var xB=!!(pr&&pr.indexOf("Chrome")>=0);pr&&pr.indexOf("Firefox")>=0;!xB&&pr&&pr.indexOf("Safari")>=0;pr&&pr.indexOf("Edg/")>=0;pr&&pr.indexOf("Android")>=0;var rn=typeof navigator=="object"?navigator:{};K6||document.queryCommandSupported&&document.queryCommandSupported("copy")||rn&&rn.clipboard&&rn.clipboard.writeText,K6||rn&&rn.clipboard&&rn.clipboard.readText;var hd=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},i1=new hd,q6=new hd,G6=new hd,$B=new Array(230),Pg;(e=>{function t(o){return i1.keyCodeToStr(o)}e.toString=t;function i(o){return i1.strToKeyCode(o)}e.fromString=i;function r(o){return q6.keyCodeToStr(o)}e.toUserSettingsUS=r;function s(o){return G6.keyCodeToStr(o)}e.toUserSettingsGeneral=s;function n(o){return q6.strToKeyCode(o)||G6.strToKeyCode(o)}e.fromUserSettings=n;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return i1.keyCodeToStr(o)}e.toElectronAccelerator=a})(Pg||(Pg={}));var TB=class Og{constructor(t,i,r,s,n){this.ctrlKey=t,this.shiftKey=i,this.altKey=r,this.metaKey=s,this.keyCode=n}equals(t){return t instanceof Og&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){let t=this.ctrlKey?"1":"0",i=this.shiftKey?"1":"0",r=this.altKey?"1":"0",s=this.metaKey?"1":"0";return`K${t}${i}${r}${s}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new NB([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},NB=class{constructor(e){if(e.length===0)throw rB("chords");this.chords=e}getHashCode(){let e="";for(let t=0,i=this.chords.length;t<i;t++)t!==0&&(e+=";"),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}};function HB(e){if(e.charCode){let i=String.fromCharCode(e.charCode).toUpperCase();return Pg.fromString(i)}let t=e.keyCode;if(t===3)return 7;if(Hu)switch(t){case 59:return 85;case 60:if(MB)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(fr)return 57;break}else if(wB&&(fr&&t===93||!fr&&t===92))return 57;return $B[t]||0}var PB=fr?256:2048,OB=512,IB=1024,RB=fr?2048:256,Y6=class{constructor(e){var i;this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=(i=t.getModifierState)==null?void 0:i.call(t,"AltGraph"),this.keyCode=HB(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=PB),this.altKey&&(t|=OB),this.shiftKey&&(t|=IB),this.metaKey&&(t|=RB),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new TB(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},X6=new WeakMap;function DB(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if(t.origin!=="null"&&i.origin!=="null"&&t.origin!==i.origin)return null}catch{return null}return e.parent}var VB=class{static getSameOriginWindowChain(e){let t=X6.get(e);if(!t){t=[],X6.set(e,t);let i=e,r;do r=DB(i),r?t.push({window:new WeakRef(i),iframeElement:i.frameElement||null}):t.push({window:new WeakRef(i),iframeElement:null}),i=r;while(i)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,r=0,s=this.getSameOriginWindowChain(e);for(let n of s){let a=n.window.deref();if(i+=(a==null?void 0:a.scrollY)??0,r+=(a==null?void 0:a.scrollX)??0,a===t||!n.iframeElement)break;let o=n.iframeElement.getBoundingClientRect();i+=o.top,r+=o.left}return{top:i,left:r}}},Rl=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let i=VB.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},J6=class{constructor(e,t=0,i=0){var s;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let r=!1;if(ud){let n=navigator.userAgent.match(/Chrome\/(\d+)/);r=(n?parseInt(n[1]):123)<=122}if(e){let n=e,a=e,o=((s=e.view)==null?void 0:s.devicePixelRatio)||1;if(typeof n.wheelDeltaY<"u")r?this.deltaY=n.wheelDeltaY/(120*o):this.deltaY=n.wheelDeltaY/120;else if(typeof a.VERTICAL_AXIS<"u"&&a.axis===a.VERTICAL_AXIS)this.deltaY=-a.detail/3;else if(e.type==="wheel"){let l=e;l.deltaMode===l.DOM_DELTA_LINE?Hu&&!fr?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof n.wheelDeltaX<"u")SB&&Hg?this.deltaX=-(n.wheelDeltaX/120):r?this.deltaX=n.wheelDeltaX/(120*o):this.deltaX=n.wheelDeltaX/120;else if(typeof a.HORIZONTAL_AXIS<"u"&&a.axis===a.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let l=e;l.deltaMode===l.DOM_DELTA_LINE?Hu&&!fr?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(r?this.deltaY=e.wheelDelta/(120*o):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)==null||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)==null||e.stopPropagation()}},Ig=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}),BB;(e=>{function t(i){return i===e.None||i===e.Cancelled||i instanceof ZB?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ei.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ig})})(BB||(BB={}));var ZB=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Ig:(this._emitter||(this._emitter=new Ce),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},dd=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new Lu("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new Lu("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},FB=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;(e=this.disposable)==null||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new Lu("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let r=i.setInterval(()=>{e()},t);this.disposable=vt(()=>{i.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},zB;(e=>{async function t(r){let s,n=await Promise.all(r.map(a=>a.then(o=>o,o=>{s||(s=o)})));if(typeof s<"u")throw s;return n}e.settled=t;function i(r){return new Promise(async(s,n)=>{try{await r(s,n)}catch(a){n(a)}})}e.withAsyncBody=i})(zB||(zB={}));var Q6=class Hi{static fromArray(t){return new Hi(i=>{i.emitMany(t)})}static fromPromise(t){return new Hi(async i=>{i.emitMany(await t)})}static fromPromises(t){return new Hi(async i=>{await Promise.all(t.map(async r=>i.emitOne(await r)))})}static merge(t){return new Hi(async i=>{await Promise.all(t.map(async r=>{for await(let s of r)i.emitOne(s)}))})}constructor(t,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new Ce,queueMicrotask(async()=>{let r={emitOne:s=>this.emitOne(s),emitMany:s=>this.emitMany(s),reject:s=>this.reject(s)};try{await Promise.resolve(t(r)),this.resolve()}catch(s){this.reject(s)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await ei.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var i;return(i=this._onReturn)==null||i.call(this),{done:!0,value:void 0}}}}static map(t,i){return new Hi(async r=>{for await(let s of t)r.emitOne(i(s))})}map(t){return Hi.map(this,t)}static filter(t,i){return new Hi(async r=>{for await(let s of t)i(s)&&r.emitOne(s)})}filter(t){return Hi.filter(this,t)}static coalesce(t){return Hi.filter(t,i=>!!i)}coalesce(){return Hi.coalesce(this)}static async toPromise(t){let i=[];for await(let r of t)i.push(r);return i}toPromise(){return Hi.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};Q6.EMPTY=Q6.fromArray([]);var{getWindow:or,getWindowId:UB,onDidRegisterWindow:WB}=function(){let e=new Map,t={window:Hr,disposables:new cs};e.set(Hr.vscodeWindowId,t);let i=new Ce,r=new Ce,s=new Ce;function n(a,o){return(typeof a=="number"?e.get(a):void 0)??(o?t:void 0)}return{onDidRegisterWindow:i.event,onWillUnregisterWindow:s.event,onDidUnregisterWindow:r.event,registerWindow(a){if(e.has(a.vscodeWindowId))return We.None;let o=new cs,l={window:a,disposables:o.add(new cs)};return e.set(a.vscodeWindowId,l),o.add(vt(()=>{e.delete(a.vscodeWindowId),r.fire(a)})),o.add(Be(a,Ft.BEFORE_UNLOAD,()=>{s.fire(a)})),i.fire(l),o},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(a){return a.vscodeWindowId},hasWindow(a){return e.has(a)},getWindowById:n,getWindow(a){var c;let o=a;if((c=o==null?void 0:o.ownerDocument)!=null&&c.defaultView)return o.ownerDocument.defaultView.window;let l=a;return l!=null&&l.view?l.view.window:Hr},getDocument(a){return or(a).document}}}(),jB=class{constructor(e,t,i,r){this._node=e,this._type=t,this._handler=i,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function Be(e,t,i,r){return new jB(e,t,i,r)}var e8=function(e,t,i,r){return Be(e,t,i,r)},fd,KB=class extends FB{constructor(e){super(),this.defaultTarget=e&&or(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}},t8=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){ql(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,i=new Map,r=new Map,s=n=>{i.set(n,!1);let a=e.get(n)??[];for(t.set(n,a),e.set(n,[]),r.set(n,!0);a.length>0;)a.sort(t8.sort),a.shift().execute();r.set(n,!1)};fd=(n,a,o=0)=>{let l=UB(n),c=new t8(a,o),u=e.get(l);return u||(u=[],e.set(l,u)),u.push(c),i.get(l)||(i.set(l,!0),n.requestAnimationFrame(()=>s(l))),c}})();function qB(e){let t=e.getBoundingClientRect(),i=or(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}var Ft={CLICK:"click",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",CHANGE:"change",FOCUS:"focus",BLUR:"blur",INPUT:"input"},GB=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingTop="",this._paddingLeft="",this._paddingBottom="",this._paddingRight="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=wi(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=wi(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=wi(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=wi(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=wi(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=wi(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=wi(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=wi(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=wi(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=wi(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=wi(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=wi(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=wi(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=wi(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function wi(e){return typeof e=="number"?`${e}px`:e}function $o(e){return new GB(e)}var Rg=class{constructor(){this._hooks=new cs,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,s){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=s;let n=e;try{e.setPointerCapture(t),this._hooks.add(vt(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{n=or(e)}this._hooks.add(Be(n,Ft.POINTER_MOVE,a=>{if(a.buttons!==i){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(Be(n,Ft.POINTER_UP,a=>this.stopMonitoring(!0)))}};function YB(e,t,i){let r=null,s=null;if(typeof i.value=="function"?(r="value",s=i.value,s.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof i.get=="function"&&(r="get",s=i.get),!s)throw new Error("not supported");let n=`$memoize$${t}`;i[r]=function(...a){return this.hasOwnProperty(n)||Object.defineProperty(this,n,{configurable:!1,enumerable:!1,writable:!1,value:s.apply(this,a)}),this[n]}}var ir;(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(ir||(ir={}));var po=class ri extends We{constructor(){super(),this.dispatched=!1,this.targets=new W6,this.ignoreTargets=new W6,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(ei.runAndSubscribe(WB,({window:t,disposables:i})=>{i.add(Be(t.document,"touchstart",r=>this.onTouchStart(r),{passive:!1})),i.add(Be(t.document,"touchend",r=>this.onTouchEnd(t,r))),i.add(Be(t.document,"touchmove",r=>this.onTouchMove(r),{passive:!1}))},{window:Hr,disposables:this._store}))}static addTarget(t){if(!ri.isTouchDevice())return We.None;ri.INSTANCE||(ri.INSTANCE=new ri);let i=ri.INSTANCE.targets.push(t);return vt(i)}static ignoreTarget(t){if(!ri.isTouchDevice())return We.None;ri.INSTANCE||(ri.INSTANCE=new ri);let i=ri.INSTANCE.ignoreTargets.push(t);return vt(i)}static isTouchDevice(){return"ontouchstart"in Hr||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(t){let i=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let r=0,s=t.targetTouches.length;r<s;r++){let n=t.targetTouches.item(r);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:i,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[i],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};let a=this.newGestureEvent(ir.Start,n.target);a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,i){let r=Date.now(),s=Object.keys(this.activeTouches).length;for(let n=0,a=i.changedTouches.length;n<a;n++){let o=i.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("move of an UNKNOWN touch",o);continue}let l=this.activeTouches[o.identifier],c=Date.now()-l.initialTimeStamp;if(c<ri.HOLD_DELAY&&Math.abs(l.initialPageX-Ai(l.rollingPageX))<30&&Math.abs(l.initialPageY-Ai(l.rollingPageY))<30){let u=this.newGestureEvent(ir.Tap,l.initialTarget);u.pageX=Ai(l.rollingPageX),u.pageY=Ai(l.rollingPageY),this.dispatchEvent(u)}else if(c>=ri.HOLD_DELAY&&Math.abs(l.initialPageX-Ai(l.rollingPageX))<30&&Math.abs(l.initialPageY-Ai(l.rollingPageY))<30){let u=this.newGestureEvent(ir.Contextmenu,l.initialTarget);u.pageX=Ai(l.rollingPageX),u.pageY=Ai(l.rollingPageY),this.dispatchEvent(u)}else if(s===1){let u=Ai(l.rollingPageX),h=Ai(l.rollingPageY),d=Ai(l.rollingTimestamps)-l.rollingTimestamps[0],f=u-l.rollingPageX[0],g=h-l.rollingPageY[0],_=[...this.targets].filter(A=>l.initialTarget instanceof Node&&A.contains(l.initialTarget));this.inertia(t,_,r,Math.abs(f)/d,f>0?1:-1,u,Math.abs(g)/d,g>0?1:-1,h)}this.dispatchEvent(this.newGestureEvent(ir.End,l.initialTarget)),delete this.activeTouches[o.identifier]}this.dispatched&&(i.preventDefault(),i.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,i){let r=document.createEvent("CustomEvent");return r.initEvent(t,!1,!0),r.initialTarget=i,r.tapCount=0,r}dispatchEvent(t){if(t.type===ir.Tap){let i=new Date().getTime(),r=0;i-this._lastSetTapCountTime>ri.CLEAR_TAP_COUNT_TIME?r=1:r=2,this._lastSetTapCountTime=i,t.tapCount=r}else(t.type===ir.Change||t.type===ir.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let r of this.ignoreTargets)if(r.contains(t.initialTarget))return;let i=[];for(let r of this.targets)if(r.contains(t.initialTarget)){let s=0,n=t.initialTarget;for(;n&&n!==r;)s++,n=n.parentElement;i.push([s,r])}i.sort((r,s)=>r[0]-s[0]);for(let[r,s]of i)s.dispatchEvent(t),this.dispatched=!0}}inertia(t,i,r,s,n,a,o,l,c){this.handle=fd(t,()=>{let u=Date.now(),h=u-r,d=0,f=0,g=!0;s+=ri.SCROLL_FRICTION*h,o+=ri.SCROLL_FRICTION*h,s>0&&(g=!1,d=n*s*h),o>0&&(g=!1,f=l*o*h);let _=this.newGestureEvent(ir.Change);_.translationX=d,_.translationY=f,i.forEach(A=>A.dispatchEvent(_)),g||this.inertia(t,i,u,s,n,a+d,o,l,c+f)})}onTouchMove(t){let i=Date.now();for(let r=0,s=t.changedTouches.length;r<s;r++){let n=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}let a=this.activeTouches[n.identifier],o=this.newGestureEvent(ir.Change,a.initialTarget);o.translationX=n.pageX-Ai(a.rollingPageX),o.translationY=n.pageY-Ai(a.rollingPageY),o.pageX=n.pageX,o.pageY=n.pageY,this.dispatchEvent(o),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(n.pageX),a.rollingPageY.push(n.pageY),a.rollingTimestamps.push(i)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};po.SCROLL_FRICTION=-.005,po.HOLD_DELAY=700,po.CLEAR_TAP_COUNT_TIME=400,Lt([YB],po,"isTouchDevice",1);var XB=po,_d=class extends We{onclick(e,t){this._register(Be(e,Ft.CLICK,i=>t(new Rl(or(e),i))))}onmousedown(e,t){this._register(Be(e,Ft.MOUSE_DOWN,i=>t(new Rl(or(e),i))))}onmouseover(e,t){this._register(Be(e,Ft.MOUSE_OVER,i=>t(new Rl(or(e),i))))}onmouseleave(e,t){this._register(Be(e,Ft.MOUSE_LEAVE,i=>t(new Rl(or(e),i))))}onkeydown(e,t){this._register(Be(e,Ft.KEY_DOWN,i=>t(new Y6(i))))}onkeyup(e,t){this._register(Be(e,Ft.KEY_UP,i=>t(new Y6(i))))}oninput(e,t){this._register(Be(e,Ft.INPUT,t))}onblur(e,t){this._register(Be(e,Ft.BLUR,t))}onfocus(e,t){this._register(Be(e,Ft.FOCUS,t))}onchange(e,t){this._register(Be(e,Ft.CHANGE,t))}ignoreGesture(e){return XB.ignoreTarget(e)}},i8=11,JB=class extends _d{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.style.position="absolute",this.domNode.style.width=i8+"px",this.domNode.style.height=i8+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new Rg),this._register(e8(this.bgDomNode,Ft.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(e8(this.domNode,Ft.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new KB),this._pointerdownScheduleRepeatTimer=this._register(new dd)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,or(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}},QB=class Iu{constructor(t,i,r,s,n,a,o){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(i=i|0,r=r|0,s=s|0,n=n|0,a=a|0,o=o|0),this.rawScrollLeft=s,this.rawScrollTop=o,i<0&&(i=0),s+i>r&&(s=r-i),s<0&&(s=0),n<0&&(n=0),o+n>a&&(o=a-n),o<0&&(o=0),this.width=i,this.scrollWidth=r,this.scrollLeft=s,this.height=n,this.scrollHeight=a,this.scrollTop=o}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,i){return new Iu(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,i?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,i?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new Iu(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,i){let r=this.width!==t.width,s=this.scrollWidth!==t.scrollWidth,n=this.scrollLeft!==t.scrollLeft,a=this.height!==t.height,o=this.scrollHeight!==t.scrollHeight,l=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:i,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:r,scrollWidthChanged:s,scrollLeftChanged:n,heightChanged:a,scrollHeightChanged:o,scrollTopChanged:l}}},eZ=class extends We{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new Ce),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new QB(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var r;let i=this._state.withScrollDimensions(e,t);this._setState(i,!!this._smoothScrolling),(r=this._smoothScrolling)==null||r.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};let i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let r;t?r=new s8(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):r=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=r}else{let i=this._state.withScrollPosition(e);this._smoothScrolling=s8.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}},r8=class{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}};function r1(e,t){let i=t-e;return function(r){return e+i*rZ(r)}}function tZ(e,t,i){return function(r){return r<i?e(r/i):t((r-i)/(1-i))}}var s8=class Ru{constructor(t,i,r,s){this.from=t,this.to=i,this.duration=s,this.startTime=r,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,i,r){if(Math.abs(t-i)>2.5*r){let s,n;return t<i?(s=t+.75*r,n=i-.75*r):(s=t-.75*r,n=i+.75*r),tZ(r1(t,s),r1(n,i),.33)}return r1(t,i)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){let i=(t-this.startTime)/this.duration;if(i<1){let r=this.scrollLeft(i),s=this.scrollTop(i);return new r8(r,s,!1)}return new r8(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,i,r){return Ru.start(t,i,r)}static start(t,i,r){r=r+10;let s=Date.now()-10;return new Ru(t,i,s,r)}};function iZ(e){return Math.pow(e,3)}function rZ(e){return 1-iZ(1-e)}var sZ=class extends We{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new dd)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)==null||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)==null||t.setClassName(this._invisibleClassName+(e?" fade":"")))}},nZ=140,Dg=class extends _d{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new sZ(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new Rg),this._shouldRender=!0,this.domNode=$o(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(Be(this.domNode.domNode,Ft.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new JB(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,r){this.slider=$o(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof i=="number"&&this.slider.setWidth(i),typeof r=="number"&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Be(this.slider.domNode,Ft.POINTER_DOWN,s=>{s.button===0&&(s.preventDefault(),this._sliderPointerDown(s))})),this.onclick(this.slider.domNode,s=>{s.leftButton&&s.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=r?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,i=e.offsetY;else{let s=qB(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}let r=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,s=>{let n=this._sliderOrthogonalPointerPosition(s),a=Math.abs(n-i);if(Hg&&a>nZ){this._setDesiredScrollPositionNow(r.getScrollPosition());return}let o=this._sliderPointerPosition(s)-t;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(o))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},Vg=class Du{constructor(t,i,r,s,n,a){this._scrollbarSize=Math.round(i),this._oppositeScrollbarSize=Math.round(r),this._arrowSize=Math.round(t),this._visibleSize=s,this._scrollSize=n,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Du(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){let i=Math.round(t);return this._visibleSize!==i?(this._visibleSize=i,this._refreshComputedValues(),!0):!1}setScrollSize(t){let i=Math.round(t);return this._scrollSize!==i?(this._scrollSize=i,this._refreshComputedValues(),!0):!1}setScrollPosition(t){let i=Math.round(t);return this._scrollPosition!==i?(this._scrollPosition=i,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,i,r,s,n){let a=Math.max(0,r-t),o=Math.max(0,a-2*i),l=s>0&&s>r;if(!l)return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(r*o/s))),u=(o-c)/(s-r),h=n*u;return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){let t=Du._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(t){if(!this._computedIsNeeded)return 0;let i=t-this._arrowSize-this._computedSliderSize/2;return Math.round(i/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;let i=t-this._arrowSize,r=this._scrollPosition;return i<this._computedSliderPosition?r-=this._visibleSize:r+=this._visibleSize,r}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let i=this._computedSliderPosition+t;return Math.round(i/this._computedSliderRatio)}},aZ=class extends Dg{constructor(e,t,i){let r=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new Vg(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,r.width,r.scrollWidth,s.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}},oZ=class extends Dg{constructor(e,t,i){let r=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new Vg(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,r.height,r.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}},lZ=500,n8=50,cZ=class{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}},Vu=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let t=1,i=0,r=1,s=this._rear;do{let n=s===this._front?t:Math.pow(2,-r);if(t-=n,i+=this._memory[s].score*n,s===this._front)break;s=(this._capacity+s-1)%this._capacity,r++}while(!0);return i<=.5}acceptStandardWheelEvent(t){if(ud){let i=or(t.browserEvent),r=yB(i);this.accept(Date.now(),t.deltaX*r,t.deltaY*r)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,i,r){let s=null,n=new cZ(t,i,r);this._front===-1&&this._rear===-1?(this._memory[0]=n,this._front=0,this._rear=0):(s=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,s)}_computeScore(t,i){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let r=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(r+=.25),i){let s=Math.abs(t.deltaX),n=Math.abs(t.deltaY),a=Math.abs(i.deltaX),o=Math.abs(i.deltaY),l=Math.max(Math.min(s,a),1),c=Math.max(Math.min(n,o),1),u=Math.max(s,a),h=Math.max(n,o);u%l===0&&h%c===0&&(r-=.5)}return Math.min(Math.max(r,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};Vu.INSTANCE=new Vu;var uZ=Vu,hZ=class extends _d{constructor(e,t,i){super(),this._onScroll=this._register(new Ce),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new Ce),this.onWillScroll=this._onWillScroll.event,this._options=fZ(t),this._scrollable=i,this._register(this._scrollable.onScroll(s=>{this._onWillScroll.fire(s),this._onDidScroll(s),this._onScroll.fire(s)}));let r={onMouseWheel:s=>this._onMouseWheel(s),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new oZ(this._scrollable,this._options,r)),this._horizontalScrollbar=this._register(new aZ(this._scrollable,this._options,r)),this._domNode=document.createElement("div"),this._domNode.className="xterm-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=$o(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=$o(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=$o(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,s=>this._onMouseOver(s)),this.onmouseleave(this._listenOnDomNode,s=>this._onMouseLeave(s)),this._hideTimeout=this._register(new dd),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=Ks(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,fr&&(this._options.className+=" mac"),this._domNode.className="xterm-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new J6(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Ks(this._mouseWheelToDispose),e)){let t=i=>{this._onMouseWheel(new J6(i))};this._mouseWheelToDispose.push(Be(this._listenOnDomNode,Ft.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){var s;if((s=e.browserEvent)!=null&&s.defaultPrevented)return;let t=uZ.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let n=e.deltaY*this._options.mouseWheelScrollSensitivity,a=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&a+n===0?a=n=0:Math.abs(n)>=Math.abs(a)?a=0:n=0),this._options.flipAxes&&([n,a]=[a,n]);let o=!fr&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||o)&&!a&&(a=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(a=a*this._options.fastScrollSensitivity,n=n*this._options.fastScrollSensitivity);let l=this._scrollable.getFutureScrollPosition(),c={};if(n){let u=n8*n,h=l.scrollTop-(u<0?Math.floor(u):Math.ceil(u));this._verticalScrollbar.writeScrollPosition(c,h)}if(a){let u=n8*a,h=l.scrollLeft-(u<0?Math.floor(u):Math.ceil(u));this._horizontalScrollbar.writeScrollPosition(c,h)}c=this._scrollable.validateScrollPosition(c),(l.scrollLeft!==c.scrollLeft||l.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let r=i;!r&&this._options.alwaysConsumeMouseWheel&&(r=!0),!r&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(r=!0),r&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,r=i?" left":"",s=t?" top":"",n=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${r}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${n}${s}${r}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),lZ)}},dZ=class extends hZ{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function fZ(e){let t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,fr&&(t.className+=" mac"),t}var Bu=class extends We{constructor(e,t,i,r,s,n,a,o){super(),this._bufferService=i,this._optionsService=a,this._renderService=o,this._onRequestScrollLines=this._register(new Ce),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let l=this._register(new eZ({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:c=>fd(r.window,c)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{l.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new dZ(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},l)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(s.onProtocolChange(c=>{this._scrollableElement.updateOptions({handleMouseWheel:!(c&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(ei.runAndSubscribe(n.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=n.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(vt(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=r.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(vt(()=>this._styleElement.remove())),this._register(ei.runAndSubscribe(n.onChangeColors,()=>{this._styleElement.textContent=[".xterm .xterm-scrollable-element > .scrollbar > .slider {",` background: ${n.colors.scrollbarSliderBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider:hover {",` background: ${n.colors.scrollbarSliderHoverBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider.active {",` background: ${n.colors.scrollbarSliderActiveBackground.css};`,"}"].join(`
|
|
87
|
+
`)})),this._register(this._bufferService.onResize(()=>this.queueSync())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._latestYDisp=void 0,this.queueSync()})),this._register(this._bufferService.onScroll(()=>this._sync())),this._register(this._scrollableElement.onScroll(c=>this._handleScroll(c)))}scrollLines(e){let t=this._scrollableElement.getScrollPosition();this._scrollableElement.setScrollPosition({reuseAnimation:!0,scrollTop:t.scrollTop+e*this._renderService.dimensions.css.cell.height})}scrollToLine(e,t){t&&(this._latestYDisp=e),this._scrollableElement.setScrollPosition({reuseAnimation:!t,scrollTop:e*this._renderService.dimensions.css.cell.height})}_getChangeOptions(){var e;return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:((e=this._optionsService.rawOptions.overviewRuler)==null?void 0:e.width)||14}}queueSync(e){e!==void 0&&(this._latestYDisp=e),this._queuedAnimationFrame===void 0&&(this._queuedAnimationFrame=this._renderService.addRefreshCallback(()=>{this._queuedAnimationFrame=void 0,this._sync(this._latestYDisp)}))}_sync(e=this._bufferService.buffer.ydisp){!this._renderService||this._isSyncing||(this._isSyncing=!0,this._suppressOnScrollHandler=!0,this._scrollableElement.setScrollDimensions({height:this._renderService.dimensions.css.canvas.height,scrollHeight:this._renderService.dimensions.css.cell.height*this._bufferService.buffer.lines.length}),this._suppressOnScrollHandler=!1,e!==this._latestYDisp&&this._scrollableElement.setScrollPosition({scrollTop:e*this._renderService.dimensions.css.cell.height}),this._isSyncing=!1)}_handleScroll(e){if(!this._renderService||this._isHandlingScroll||this._suppressOnScrollHandler)return;this._isHandlingScroll=!0;let t=Math.round(e.scrollTop/this._renderService.dimensions.css.cell.height),i=t-this._bufferService.buffer.ydisp;i!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(i)),this._isHandlingScroll=!1}};Bu=Lt([xe(2,bi),xe(3,zr),xe(4,bg),xe(5,pa),xe(6,yi),xe(7,Ur)],Bu);var Zu=class extends We{constructor(e,t,i,r,s){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=i,this._decorationService=r,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this._register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this._register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this._register(this._decorationService.onDecorationRemoved(n=>this._removeDecoration(n))),this._register(vt(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var r;let t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer",((r=e==null?void 0:e.options)==null?void 0:r.layer)==="top"),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,t.style.top=`${(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height}px`,t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let i=e.options.x??0;return i&&i>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let i=this._decorationElements.get(e);i||(i=this._createElement(e),e.element=i,this._decorationElements.set(e,i),this._container.appendChild(i),e.onDispose(()=>{this._decorationElements.delete(e),i.remove()})),i.style.display=this._altBufferIsActive?"none":"block",this._altBufferIsActive||(i.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,i.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,i.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,i.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(i)}}_refreshXPosition(e,t=e.element){if(!t)return;let i=e.options.x??0;(e.options.anchor||"left")==="right"?t.style.right=i?`${i*this._renderService.dimensions.css.cell.width}px`:"":t.style.left=i?`${i*this._renderService.dimensions.css.cell.width}px`:""}_removeDecoration(e){var t;(t=this._decorationElements.get(e))==null||t.remove(),this._decorationElements.delete(e),e.dispose()}};Zu=Lt([xe(1,bi),xe(2,zr),xe(3,gl),xe(4,Ur)],Zu);var _Z=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position)){this._addLineToZone(t,e.marker.line);return}}if(this._zonePoolIndex<this._zonePool.length){this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,this._zones.push(this._zonePool[this._zonePoolIndex++]);return}this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},er={full:0,left:0,center:0,right:0},Gr={full:0,left:0,center:0,right:0},no={full:0,left:0,center:0,right:0},x0=class extends We{constructor(e,t,i,r,s,n,a,o){var c;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=r,this._renderService=s,this._optionsService=n,this._themeService=a,this._coreBrowserService=o,this._colorZoneStore=new _Z,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(c=this._viewportElement.parentElement)==null||c.insertBefore(this._canvas,this._viewportElement),this._register(vt(()=>{var u;return(u=this._canvas)==null?void 0:u.remove()}));let l=this._canvas.getContext("2d");if(l)this._ctx=l;else throw new Error("Ctx cannot be null");this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{(!this._containerHeight||this._containerHeight!==this._screenElement.clientHeight)&&(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange("overviewRuler",()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){var e;return((e=this._optionsService.options.overviewRuler)==null?void 0:e.width)||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);Gr.full=this._canvas.width,Gr.left=e,Gr.center=t,Gr.right=e,this._refreshDrawHeightConstants(),no.full=1,no.left=1,no.center=1+Gr.left,no.right=1+Gr.left+Gr.center}_refreshDrawHeightConstants(){er.full=Math.round(2*this._coreBrowserService.dpr);let e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);er.left=t,er.center=t,er.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*er.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*er.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*er.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*er.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1,this._renderRulerOutline();let e=this._colorZoneStore.zones;for(let t of e)t.position!=="full"&&this._renderColorZone(t);for(let t of e)t.position==="full"&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderRulerOutline(){this._ctx.fillStyle=this._themeService.colors.overviewRulerBorder.css,this._ctx.fillRect(0,0,1,this._canvas.height),this._optionsService.rawOptions.overviewRuler.showTopBorder&&this._ctx.fillRect(1,0,this._canvas.width-1,1),this._optionsService.rawOptions.overviewRuler.showBottomBorder&&this._ctx.fillRect(1,this._canvas.height-1,this._canvas.width-1,this._canvas.height)}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(no[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-er[e.position||"full"]/2),Gr[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+er[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};x0=Lt([xe(2,bi),xe(3,gl),xe(4,Ur),xe(5,yi),xe(6,pa),xe(7,zr)],x0);var ve;(e=>(e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="\x07",e.BS="\b",e.HT=" ",e.LF=`
|
|
88
|
+
`,e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="\x1B",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""))(ve||(ve={}));var Xl;(e=>(e.PAD="",e.HOP="",e.BPH="",e.NBH="",e.IND="",e.NEL="
",e.SSA="",e.ESA="",e.HTS="",e.HTJ="",e.VTS="",e.PLD="",e.PLU="",e.RI="",e.SS2="",e.SS3="",e.DCS="",e.PU1="",e.PU2="",e.STS="",e.CCH="",e.MW="",e.SPA="",e.EPA="",e.SOS="",e.SGCI="",e.SCI="",e.CSI="",e.ST="",e.OSC="",e.PM="",e.APC=""))(Xl||(Xl={}));var Bg;(e=>e.ST=`${ve.ESC}\\`)(Bg||(Bg={}));var Fu=class{constructor(e,t,i,r,s,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=r,this._coreService=s,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(e.keyCode===20||e.keyCode===229||e.keyCode===16||e.keyCode===17||e.keyCode===18)return!1;this._finalizeComposition(!1)}return e.keyCode===229?(this._handleAnyTextareaChanges(),!1):!0}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){let t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){this._isSendingComposition=!1;let i;t.start+=this._dataAlreadySent.length,this._isComposing?i=this._textarea.value.substring(t.start,this._compositionPosition.start):i=this._textarea.value.substring(t.start),i.length>0&&this._coreService.triggerDataEvent(i,!0)}},0)}else{this._isSendingComposition=!1;let t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,i=t.replace(e,"");this._dataAlreadySent=i,t.length>e.length?this._coreService.triggerDataEvent(i,!0):t.length<e.length?this._coreService.triggerDataEvent(`${ve.DEL}`,!0):t.length===e.length&&t!==e&&this._coreService.triggerDataEvent(t,!0)}},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){let t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._renderService.dimensions.css.cell.height,r=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,s=t*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=s+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";let n=this._compositionView.getBoundingClientRect();this._textarea.style.left=s+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(n.width,1)+"px",this._textarea.style.height=Math.max(n.height,1)+"px",this._textarea.style.lineHeight=n.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}};Fu=Lt([xe(2,bi),xe(3,yi),xe(4,Xs),xe(5,Ur)],Fu);var zt=0,Ut=0,Wt=0,At=0,a8={css:"#00000000",rgba:0},Nt;(e=>{function t(s,n,a,o){return o!==void 0?`#${xs(s)}${xs(n)}${xs(a)}${xs(o)}`:`#${xs(s)}${xs(n)}${xs(a)}`}e.toCss=t;function i(s,n,a,o=255){return(s<<24|n<<16|a<<8|o)>>>0}e.toRgba=i;function r(s,n,a,o){return{css:e.toCss(s,n,a,o),rgba:e.toRgba(s,n,a,o)}}e.toColor=r})(Nt||(Nt={}));var _t;(e=>{function t(l,c){if(At=(c.rgba&255)/255,At===1)return{css:c.css,rgba:c.rgba};let u=c.rgba>>24&255,h=c.rgba>>16&255,d=c.rgba>>8&255,f=l.rgba>>24&255,g=l.rgba>>16&255,_=l.rgba>>8&255;zt=f+Math.round((u-f)*At),Ut=g+Math.round((h-g)*At),Wt=_+Math.round((d-_)*At);let A=Nt.toCss(zt,Ut,Wt),p=Nt.toRgba(zt,Ut,Wt);return{css:A,rgba:p}}e.blend=t;function i(l){return(l.rgba&255)===255}e.isOpaque=i;function r(l,c,u){let h=Jl.ensureContrastRatio(l.rgba,c.rgba,u);if(h)return Nt.toColor(h>>24&255,h>>16&255,h>>8&255)}e.ensureContrastRatio=r;function s(l){let c=(l.rgba|255)>>>0;return[zt,Ut,Wt]=Jl.toChannels(c),{css:Nt.toCss(zt,Ut,Wt),rgba:c}}e.opaque=s;function n(l,c){return At=Math.round(c*255),[zt,Ut,Wt]=Jl.toChannels(l.rgba),{css:Nt.toCss(zt,Ut,Wt,At),rgba:Nt.toRgba(zt,Ut,Wt,At)}}e.opacity=n;function a(l,c){return At=l.rgba&255,n(l,At*c/255)}e.multiplyOpacity=a;function o(l){return[l.rgba>>24&255,l.rgba>>16&255,l.rgba>>8&255]}e.toColorRGB=o})(_t||(_t={}));var yt;(e=>{let t,i;try{let s=document.createElement("canvas");s.width=1,s.height=1;let n=s.getContext("2d",{willReadFrequently:!0});n&&(t=n,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}catch{}function r(s){if(s.match(/#[\da-f]{3,8}/i))switch(s.length){case 4:return zt=parseInt(s.slice(1,2).repeat(2),16),Ut=parseInt(s.slice(2,3).repeat(2),16),Wt=parseInt(s.slice(3,4).repeat(2),16),Nt.toColor(zt,Ut,Wt);case 5:return zt=parseInt(s.slice(1,2).repeat(2),16),Ut=parseInt(s.slice(2,3).repeat(2),16),Wt=parseInt(s.slice(3,4).repeat(2),16),At=parseInt(s.slice(4,5).repeat(2),16),Nt.toColor(zt,Ut,Wt,At);case 7:return{css:s,rgba:(parseInt(s.slice(1),16)<<8|255)>>>0};case 9:return{css:s,rgba:parseInt(s.slice(1),16)>>>0}}let n=s.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(n)return zt=parseInt(n[1]),Ut=parseInt(n[2]),Wt=parseInt(n[3]),At=Math.round((n[5]===void 0?1:parseFloat(n[5]))*255),Nt.toColor(zt,Ut,Wt,At);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=s,typeof t.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[zt,Ut,Wt,At]=t.getImageData(0,0,1,1).data,At!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:Nt.toRgba(zt,Ut,Wt,At),css:s}}e.toColor=r})(yt||(yt={}));var ui;(e=>{function t(r){return i(r>>16&255,r>>8&255,r&255)}e.relativeLuminance=t;function i(r,s,n){let a=r/255,o=s/255,l=n/255,c=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),u=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),h=l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4);return c*.2126+u*.7152+h*.0722}e.relativeLuminance2=i})(ui||(ui={}));var Jl;(e=>{function t(a,o){if(At=(o&255)/255,At===1)return o;let l=o>>24&255,c=o>>16&255,u=o>>8&255,h=a>>24&255,d=a>>16&255,f=a>>8&255;return zt=h+Math.round((l-h)*At),Ut=d+Math.round((c-d)*At),Wt=f+Math.round((u-f)*At),Nt.toRgba(zt,Ut,Wt)}e.blend=t;function i(a,o,l){let c=ui.relativeLuminance(a>>8),u=ui.relativeLuminance(o>>8);if(Sr(c,u)<l){if(u<c){let f=r(a,o,l),g=Sr(c,ui.relativeLuminance(f>>8));if(g<l){let _=s(a,o,l),A=Sr(c,ui.relativeLuminance(_>>8));return g>A?f:_}return f}let h=s(a,o,l),d=Sr(c,ui.relativeLuminance(h>>8));if(d<l){let f=r(a,o,l),g=Sr(c,ui.relativeLuminance(f>>8));return d>g?h:f}return h}}e.ensureContrastRatio=i;function r(a,o,l){let c=a>>24&255,u=a>>16&255,h=a>>8&255,d=o>>24&255,f=o>>16&255,g=o>>8&255,_=Sr(ui.relativeLuminance2(d,f,g),ui.relativeLuminance2(c,u,h));for(;_<l&&(d>0||f>0||g>0);)d-=Math.max(0,Math.ceil(d*.1)),f-=Math.max(0,Math.ceil(f*.1)),g-=Math.max(0,Math.ceil(g*.1)),_=Sr(ui.relativeLuminance2(d,f,g),ui.relativeLuminance2(c,u,h));return(d<<24|f<<16|g<<8|255)>>>0}e.reduceLuminance=r;function s(a,o,l){let c=a>>24&255,u=a>>16&255,h=a>>8&255,d=o>>24&255,f=o>>16&255,g=o>>8&255,_=Sr(ui.relativeLuminance2(d,f,g),ui.relativeLuminance2(c,u,h));for(;_<l&&(d<255||f<255||g<255);)d=Math.min(255,d+Math.ceil((255-d)*.1)),f=Math.min(255,f+Math.ceil((255-f)*.1)),g=Math.min(255,g+Math.ceil((255-g)*.1)),_=Sr(ui.relativeLuminance2(d,f,g),ui.relativeLuminance2(c,u,h));return(d<<24|f<<16|g<<8|255)>>>0}e.increaseLuminance=s;function n(a){return[a>>24&255,a>>16&255,a>>8&255,a&255]}e.toChannels=n})(Jl||(Jl={}));function xs(e){let t=e.toString(16);return t.length<2?"0"+t:t}function Sr(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var pZ=class extends ml{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},$0=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new Bi}register(e){let t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}getJoinedCharacters(e){if(this._characterJoiners.length===0)return[];let t=this._bufferService.buffer.lines.get(e);if(!t||t.length===0)return[];let i=[],r=t.translateToString(!0),s=0,n=0,a=0,o=t.getFg(0),l=t.getBg(0);for(let c=0;c<t.getTrimmedLength();c++)if(t.loadCell(c,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==o||this._workCell.bg!==l){if(c-s>1){let u=this._getJoinedRanges(r,a,n,t,s);for(let h=0;h<u.length;h++)i.push(u[h])}s=c,a=n,o=this._workCell.fg,l=this._workCell.bg}n+=this._workCell.getChars().length||ns.length}if(this._bufferService.cols-s>1){let c=this._getJoinedRanges(r,a,n,t,s);for(let u=0;u<c.length;u++)i.push(c[u])}return i}_getJoinedRanges(e,t,i,r,s){let n=e.substring(t,i),a=[];try{a=this._characterJoiners[0].handler(n)}catch(o){console.error(o)}for(let o=1;o<this._characterJoiners.length;o++)try{let l=this._characterJoiners[o].handler(n);for(let c=0;c<l.length;c++)$0._mergeRanges(a,l[c])}catch(l){console.error(l)}return this._stringRangesToCellRanges(a,r,s),a}_stringRangesToCellRanges(e,t,i){let r=0,s=!1,n=0,a=e[r];if(a){for(let o=i;o<this._bufferService.cols;o++){let l=t.getWidth(o),c=t.getString(o).length||ns.length;if(l!==0){if(!s&&a[0]<=n&&(a[0]=o,s=!0),a[1]<=n){if(a[1]=o,a=e[++r],!a)break;a[0]<=n?(a[0]=o,s=!0):s=!1}n+=c}}a&&(a[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let i=!1;for(let r=0;r<e.length;r++){let s=e[r];if(i){if(t[1]<=s[0])return e[r-1][1]=t[1],e;if(t[1]<=s[1])return e[r-1][1]=Math.max(t[1],s[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=s[0])return e.splice(r,0,t),e;if(t[1]<=s[1])return s[0]=Math.min(t[0],s[0]),e;t[0]<s[1]&&(s[0]=Math.min(t[0],s[0]),i=!0);continue}}return i?e[e.length-1][1]=t[1]:e.push(t),e}};$0=Lt([xe(0,bi)],$0);function mZ(e){return 57508<=e&&e<=57558}function gZ(e){return 9472<=e&&e<=9631}function vZ(e){return mZ(e)||gZ(e)}function bZ(){return{css:{canvas:Dl(),cell:Dl()},device:{canvas:Dl(),cell:Dl(),char:{width:0,height:0,left:0,top:0}}}}function Dl(){return{width:0,height:0}}var zu=class{constructor(e,t,i,r,s,n,a){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=r,this._coreService=s,this._decorationService=n,this._themeService=a,this._workCell=new Bi,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,t,i,r,s,n,a,o,l,c,u){let h=[],d=this._characterJoinerService.getJoinedCharacters(t),f=this._themeService.colors,g=e.getNoBgTrimmedLength();i&&g<n+1&&(g=n+1);let _,A=0,p="",S=0,m=0,v=0,k=0,x=!1,M=0,F=!1,P=0,O=0,R=[],N=c!==-1&&u!==-1;for(let T=0;T<g;T++){e.loadCell(T,this._workCell);let W=this._workCell.getWidth();if(W===0)continue;let q=!1,ie=T>=O,ee=T,re=this._workCell;if(d.length>0&&T===d[0][0]&&ie){let Z=d.shift(),z=this._isCellInSelection(Z[0],t);for(S=Z[0]+1;S<Z[1];S++)ie&&(ie=z===this._isCellInSelection(S,t));ie&&(ie=!i||n<Z[0]||n>=Z[1]),ie?(q=!0,re=new pZ(this._workCell,e.translateToString(!0,Z[0],Z[1]),Z[1]-Z[0]),ee=Z[1]-1,W=re.getWidth()):O=Z[1]}let Y=this._isCellInSelection(T,t),_e=i&&T===n,me=N&&T>=c&&T<=u,ge=!1;this._decorationService.forEachDecorationAtCell(T,t,void 0,Z=>{ge=!0});let $e=re.getChars()||ns;if($e===" "&&(re.isUnderline()||re.isOverline())&&($e=" "),P=W*o-l.get($e,re.isBold(),re.isItalic()),!_)_=this._document.createElement("span");else if(A&&(Y&&F||!Y&&!F&&re.bg===m)&&(Y&&F&&f.selectionForeground||re.fg===v)&&re.extended.ext===k&&me===x&&P===M&&!_e&&!q&&!ge&&ie){re.isInvisible()?p+=ns:p+=$e,A++;continue}else A&&(_.textContent=p),_=this._document.createElement("span"),A=0,p="";if(m=re.bg,v=re.fg,k=re.extended.ext,x=me,M=P,F=Y,q&&n>=T&&n<=ee&&(n=T),!this._coreService.isCursorHidden&&_e&&this._coreService.isCursorInitialized){if(R.push("xterm-cursor"),this._coreBrowserService.isFocused)a&&R.push("xterm-cursor-blink"),R.push(r==="bar"?"xterm-cursor-bar":r==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(s)switch(s){case"outline":R.push("xterm-cursor-outline");break;case"block":R.push("xterm-cursor-block");break;case"bar":R.push("xterm-cursor-bar");break;case"underline":R.push("xterm-cursor-underline");break}}if(re.isBold()&&R.push("xterm-bold"),re.isItalic()&&R.push("xterm-italic"),re.isDim()&&R.push("xterm-dim"),re.isInvisible()?p=ns:p=re.getChars()||ns,re.isUnderline()&&(R.push(`xterm-underline-${re.extended.underlineStyle}`),p===" "&&(p=" "),!re.isUnderlineColorDefault()))if(re.isUnderlineColorRGB())_.style.textDecorationColor=`rgb(${ml.toColorRGB(re.getUnderlineColor()).join(",")})`;else{let Z=re.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&re.isBold()&&Z<8&&(Z+=8),_.style.textDecorationColor=f.ansi[Z].css}re.isOverline()&&(R.push("xterm-overline"),p===" "&&(p=" ")),re.isStrikethrough()&&R.push("xterm-strikethrough"),me&&(_.style.textDecoration="underline");let Se=re.getFgColor(),ae=re.getFgColorMode(),se=re.getBgColor(),D=re.getBgColorMode(),G=!!re.isInverse();if(G){let Z=Se;Se=se,se=Z;let z=ae;ae=D,D=z}let ne,pe,Ae=!1;this._decorationService.forEachDecorationAtCell(T,t,void 0,Z=>{Z.options.layer!=="top"&&Ae||(Z.backgroundColorRGB&&(D=50331648,se=Z.backgroundColorRGB.rgba>>8&16777215,ne=Z.backgroundColorRGB),Z.foregroundColorRGB&&(ae=50331648,Se=Z.foregroundColorRGB.rgba>>8&16777215,pe=Z.foregroundColorRGB),Ae=Z.options.layer==="top")}),!Ae&&Y&&(ne=this._coreBrowserService.isFocused?f.selectionBackgroundOpaque:f.selectionInactiveBackgroundOpaque,se=ne.rgba>>8&16777215,D=50331648,Ae=!0,f.selectionForeground&&(ae=50331648,Se=f.selectionForeground.rgba>>8&16777215,pe=f.selectionForeground)),Ae&&R.push("xterm-decoration-top");let B;switch(D){case 16777216:case 33554432:B=f.ansi[se],R.push(`xterm-bg-${se}`);break;case 50331648:B=Nt.toColor(se>>16,se>>8&255,se&255),this._addStyle(_,`background-color:#${o8((se>>>0).toString(16),"0",6)}`);break;case 0:default:G?(B=f.foreground,R.push("xterm-bg-257")):B=f.background}switch(ne||re.isDim()&&(ne=_t.multiplyOpacity(B,.5)),ae){case 16777216:case 33554432:re.isBold()&&Se<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Se+=8),this._applyMinimumContrast(_,B,f.ansi[Se],re,ne,void 0)||R.push(`xterm-fg-${Se}`);break;case 50331648:let Z=Nt.toColor(Se>>16&255,Se>>8&255,Se&255);this._applyMinimumContrast(_,B,Z,re,ne,pe)||this._addStyle(_,`color:#${o8(Se.toString(16),"0",6)}`);break;case 0:default:this._applyMinimumContrast(_,B,f.foreground,re,ne,pe)||G&&R.push("xterm-fg-257")}R.length&&(_.className=R.join(" "),R.length=0),!_e&&!q&&!ge&&ie?A++:_.textContent=p,P!==this.defaultSpacing&&(_.style.letterSpacing=`${P}px`),h.push(_),T=ee}return _&&A&&(_.textContent=p),h}_applyMinimumContrast(e,t,i,r,s,n){if(this._optionsService.rawOptions.minimumContrastRatio===1||vZ(r.getCode()))return!1;let a=this._getContrastCache(r),o;if(!s&&!n&&(o=a.getColor(t.rgba,i.rgba)),o===void 0){let l=this._optionsService.rawOptions.minimumContrastRatio/(r.isDim()?2:1);o=_t.ensureContrastRatio(s||t,n||i,l),a.setColor((s||t).rgba,(n||i).rgba,o??null)}return o?(this._addStyle(e,`color:${o.css}`),!0):!1}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){let i=this._selectionStart,r=this._selectionEnd;return!i||!r?!1:this._columnSelectMode?i[0]<=r[0]?e>=i[0]&&t>=i[1]&&e<r[0]&&t<=r[1]:e<i[0]&&t>=i[1]&&e>=r[0]&&t<=r[1]:t>i[1]&&t<r[1]||i[1]===r[1]&&t===i[1]&&e>=i[0]&&e<r[0]||i[1]<r[1]&&t===r[1]&&e<r[0]||i[1]<r[1]&&t===i[1]&&e>=i[0]}};zu=Lt([xe(1,Sg),xe(2,yi),xe(3,zr),xe(4,Xs),xe(5,gl),xe(6,pa)],zu);function o8(e,t,i){for(;e.length<i;)e=t+e;return e}var yZ=class{constructor(e,t){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let i=e.createElement("span");i.classList.add("xterm-char-measure-element");let r=e.createElement("span");r.classList.add("xterm-char-measure-element"),r.style.fontWeight="bold";let s=e.createElement("span");s.classList.add("xterm-char-measure-element"),s.style.fontStyle="italic";let n=e.createElement("span");n.classList.add("xterm-char-measure-element"),n.style.fontWeight="bold",n.style.fontStyle="italic",this._measureElements=[i,r,s,n],this._container.appendChild(i),this._container.appendChild(r),this._container.appendChild(s),this._container.appendChild(n),t.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,i,r){e===this._font&&t===this._fontSize&&i===this._weight&&r===this._weightBold||(this._font=e,this._fontSize=t,this._weight=i,this._weightBold=r,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${i}`,this._measureElements[1].style.fontWeight=`${r}`,this._measureElements[2].style.fontWeight=`${i}`,this._measureElements[3].style.fontWeight=`${r}`,this.clear())}get(e,t,i){let r=0;if(!t&&!i&&e.length===1&&(r=e.charCodeAt(0))<256){if(this._flat[r]!==-9999)return this._flat[r];let a=this._measure(e,0);return a>0&&(this._flat[r]=a),a}let s=e;t&&(s+="B"),i&&(s+="I");let n=this._holey.get(s);if(n===void 0){let a=0;t&&(a|=1),i&&(a|=2),n=this._measure(e,a),n>0&&this._holey.set(s,n)}return n}_measure(e,t){let i=this._measureElements[t];return i.textContent=e.repeat(32),i.offsetWidth/32}},wZ=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,i,r=!1){if(this.selectionStart=t,this.selectionEnd=i,!t||!i||t[0]===i[0]&&t[1]===i[1]){this.clear();return}let s=e.buffers.active.ydisp,n=t[1]-s,a=i[1]-s,o=Math.max(n,0),l=Math.min(a,e.rows-1);if(o>=e.rows||l<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=r,this.viewportStartRow=n,this.viewportEndRow=a,this.viewportCappedStartRow=o,this.viewportCappedEndRow=l,this.startCol=t[0],this.endCol=i[0]}isCellSelected(e,t,i){return this.hasSelection?(i-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&i>=this.viewportCappedStartRow&&t<this.endCol&&i<=this.viewportCappedEndRow:t<this.startCol&&i>=this.viewportCappedStartRow&&t>=this.endCol&&i<=this.viewportCappedEndRow:i>this.viewportStartRow&&i<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&i===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&i===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&i===this.viewportStartRow&&t>=this.startCol):!1}};function SZ(){return new wZ}var s1="xterm-dom-renderer-owner-",Ni="xterm-rows",Vl="xterm-fg-",l8="xterm-bg-",ao="xterm-focus",Bl="xterm-selection",CZ=1,Uu=class extends We{constructor(e,t,i,r,s,n,a,o,l,c,u,h,d,f){super(),this._terminal=e,this._document=t,this._element=i,this._screenElement=r,this._viewportElement=s,this._helperContainer=n,this._linkifier2=a,this._charSizeService=l,this._optionsService=c,this._bufferService=u,this._coreService=h,this._coreBrowserService=d,this._themeService=f,this._terminalClass=CZ++,this._rowElements=[],this._selectionRenderModel=SZ(),this.onRequestRedraw=this._register(new Ce).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(Ni),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(Bl),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=bZ(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(g=>this._injectCss(g))),this._injectCss(this._themeService.colors),this._rowFactory=o.createInstance(zu,document),this._element.classList.add(s1+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(g=>this._handleLinkHover(g))),this._register(this._linkifier2.onHideLinkUnderline(g=>this._handleLinkLeave(g))),this._register(vt(()=>{this._element.classList.remove(s1+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new yZ(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let i of this._rowElements)i.style.width=`${this.dimensions.css.canvas.width}px`,i.style.height=`${this.dimensions.css.cell.height}px`,i.style.lineHeight=`${this.dimensions.css.cell.height}px`,i.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${Ni} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${Ni} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${Ni} .xterm-dim { color: ${_t.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let i=`blink_underline_${this._terminalClass}`,r=`blink_bar_${this._terminalClass}`,s=`blink_block_${this._terminalClass}`;t+=`@keyframes ${i} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${r} { 50% { box-shadow: none; }}`,t+=`@keyframes ${s} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${Ni}.${ao} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${Ni}.${ao} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${Ni}.${ao} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${s} 1s step-end infinite;}${this._terminalSelector} .${Ni} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${Ni} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${Ni} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${Ni} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${Ni} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${Bl} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${Bl} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${Bl} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[n,a]of e.ansi.entries())t+=`${this._terminalSelector} .${Vl}${n} { color: ${a.css}; }${this._terminalSelector} .${Vl}${n}.xterm-dim { color: ${_t.multiplyOpacity(a,.5).css}; }${this._terminalSelector} .${l8}${n} { background-color: ${a.css}; }`;t+=`${this._terminalSelector} .${Vl}257 { color: ${_t.opaque(e.background).css}; }${this._terminalSelector} .${Vl}257.xterm-dim { color: ${_t.multiplyOpacity(_t.opaque(e.background),.5).css}; }${this._terminalSelector} .${l8}257 { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let i=this._rowElements.length;i<=t;i++){let r=this._document.createElement("div");this._rowContainer.appendChild(r),this._rowElements.push(r)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(ao),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(ao),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,i){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,i),!this._selectionRenderModel.hasSelection))return;let r=this._selectionRenderModel.viewportStartRow,s=this._selectionRenderModel.viewportEndRow,n=this._selectionRenderModel.viewportCappedStartRow,a=this._selectionRenderModel.viewportCappedEndRow,o=this._document.createDocumentFragment();if(i){let l=e[0]>t[0];o.appendChild(this._createSelectionElement(n,l?t[0]:e[0],l?e[0]:t[0],a-n+1))}else{let l=r===n?e[0]:0,c=n===s?t[0]:this._bufferService.cols;o.appendChild(this._createSelectionElement(n,l,c));let u=a-n-1;if(o.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,u)),n!==a){let h=s===a?t[0]:this._bufferService.cols;o.appendChild(this._createSelectionElement(a,0,h))}}this._selectionContainer.appendChild(o)}_createSelectionElement(e,t,i,r=1){let s=this._document.createElement("div"),n=t*this.dimensions.css.cell.width,a=this.dimensions.css.cell.width*(i-t);return n+a>this.dimensions.css.canvas.width&&(a=this.dimensions.css.canvas.width-n),s.style.height=`${r*this.dimensions.css.cell.height}px`,s.style.top=`${e*this.dimensions.css.cell.height}px`,s.style.left=`${n}px`,s.style.width=`${a}px`,s}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let i=this._bufferService.buffer,r=i.ybase+i.y,s=Math.min(i.x,this._bufferService.cols-1),n=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,a=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,o=this._optionsService.rawOptions.cursorInactiveStyle;for(let l=e;l<=t;l++){let c=l+i.ydisp,u=this._rowElements[l],h=i.lines.get(c);if(!u||!h)break;u.replaceChildren(...this._rowFactory.createRow(h,c,c===r,a,o,s,n,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${s1}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,r,s,n){i<0&&(e=0),r<0&&(t=0);let a=this._bufferService.rows-1;i=Math.max(Math.min(i,a),0),r=Math.max(Math.min(r,a),0),s=Math.min(s,this._bufferService.cols);let o=this._bufferService.buffer,l=o.ybase+o.y,c=Math.min(o.x,s-1),u=this._optionsService.rawOptions.cursorBlink,h=this._optionsService.rawOptions.cursorStyle,d=this._optionsService.rawOptions.cursorInactiveStyle;for(let f=i;f<=r;++f){let g=f+o.ydisp,_=this._rowElements[f],A=o.lines.get(g);if(!_||!A)break;_.replaceChildren(...this._rowFactory.createRow(A,g,g===l,h,d,c,u,this.dimensions.css.cell.width,this._widthCache,n?f===i?e:0:-1,n?(f===r?t:s)-1:-1))}}};Uu=Lt([xe(7,od),xe(8,pc),xe(9,yi),xe(10,bi),xe(11,Xs),xe(12,zr),xe(13,pa)],Uu);var Wu=class extends We{constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this._register(new Ce),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new kZ(this._optionsService))}catch{this._measureStrategy=this._register(new AZ(e,t,this._optionsService))}this._register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){let e=this._measureStrategy.measure();(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};Wu=Lt([xe(2,yi)],Wu);var Zg=class extends We{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){e!==void 0&&e>0&&t!==void 0&&t>0&&(this._result.width=e,this._result.height=t)}},AZ=class extends Zg{constructor(e,t,i){super(),this._document=e,this._parentElement=t,this._optionsService=i,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}},kZ=class extends Zg{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");let t=this._ctx.measureText("W");if(!("width"in t&&"fontBoundingBoxAscent"in t&&"fontBoundingBoxDescent"in t))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let e=this._ctx.measureText("W");return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}},MZ=class extends We{constructor(e,t,i){super(),this._textarea=e,this._window=t,this.mainDocument=i,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new LZ(this._window)),this._onDprChange=this._register(new Ce),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new Ce),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(r=>this._screenDprMonitor.setWindow(r))),this._register(ei.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(Be(this._textarea,"focus",()=>this._isFocused=!0)),this._register(Be(this._textarea,"blur",()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}},LZ=class extends We{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new Nn),this._onDprChange=this._register(new Ce),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(vt(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=Be(this._parentWindow,"resize",()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var e;this._outerListener&&((e=this._resolutionMediaMatchList)==null||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){!this._resolutionMediaMatchList||!this._outerListener||(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}},EZ=class extends We{constructor(){super(),this.linkProviders=[],this._register(vt(()=>this.linkProviders.length=0))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{let t=this.linkProviders.indexOf(e);t!==-1&&this.linkProviders.splice(t,1)}}}};function pd(e,t,i){let r=i.getBoundingClientRect(),s=e.getComputedStyle(i),n=parseInt(s.getPropertyValue("padding-left")),a=parseInt(s.getPropertyValue("padding-top"));return[t.clientX-r.left-n,t.clientY-r.top-a]}function xZ(e,t,i,r,s,n,a,o,l){if(!n)return;let c=pd(e,t,i);if(c)return c[0]=Math.ceil((c[0]+(l?a/2:0))/a),c[1]=Math.ceil(c[1]/o),c[0]=Math.min(Math.max(c[0],1),r+(l?1:0)),c[1]=Math.min(Math.max(c[1],1),s),c}var ju=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,r,s){return xZ(window,e,t,i,r,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,s)}getMouseReportCoords(e,t){let i=pd(window,e,t);if(this._charSizeService.hasValidSize)return i[0]=Math.min(Math.max(i[0],0),this._renderService.dimensions.css.canvas.width-1),i[1]=Math.min(Math.max(i[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(i[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(i[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(i[0]),y:Math.floor(i[1])}}};ju=Lt([xe(0,Ur),xe(1,pc)],ju);var $Z=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t,!this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0){this._runRefreshCallbacks();return}let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}},Fg={};BV(Fg,{getSafariVersion:()=>NZ,isChromeOS:()=>jg,isFirefox:()=>zg,isIpad:()=>HZ,isIphone:()=>PZ,isLegacyEdge:()=>TZ,isLinux:()=>md,isMac:()=>T0,isNode:()=>mc,isSafari:()=>Ug,isWindows:()=>Wg});var mc=typeof process<"u"&&"title"in process,vl=mc?"node":navigator.userAgent,bl=mc?"node":navigator.platform,zg=vl.includes("Firefox"),TZ=vl.includes("Edge"),Ug=/^((?!chrome|android).)*safari/i.test(vl);function NZ(){if(!Ug)return 0;let e=vl.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var T0=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(bl),HZ=bl==="iPad",PZ=bl==="iPhone",Wg=["Windows","Win16","Win32","WinCE"].includes(bl),md=bl.indexOf("Linux")>=0,jg=/\bCrOS\b/.test(vl),Kg=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(e){this._idleCallback=void 0;let t=0,i=0,r=e.timeRemaining(),s=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),i=Math.max(t,i),s=e.timeRemaining(),i*1.5>s){r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),this._start();return}r=s}this.clear()}},OZ=class extends Kg{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},IZ=class extends Kg{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},N0=!mc&&"requestIdleCallback"in window?IZ:OZ,RZ=class{constructor(){this._queue=new N0}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},Ku=class extends We{constructor(e,t,i,r,s,n,a,o,l){super(),this._rowCount=e,this._optionsService=i,this._charSizeService=r,this._coreService=s,this._coreBrowserService=o,this._renderer=this._register(new Nn),this._pausedResizeTask=new RZ,this._observerDisposable=this._register(new Nn),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this._register(new Ce),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new Ce),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new Ce),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new Ce),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new $Z((c,u)=>this._renderRows(c,u),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new DZ(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(vt(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(a.onResize(()=>this._fullRefresh())),this._register(a.buffers.onBufferActivate(()=>{var c;return(c=this._renderer.value)==null?void 0:c.clear()})),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this._register(n.onDecorationRegistered(()=>this._fullRefresh())),this._register(n.onDecorationRemoved(()=>this._fullRefresh())),this._register(this._optionsService.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],()=>{this.clear(),this.handleResize(a.cols,a.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(a.buffer.y,a.buffer.y,!0))),this._register(l.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(c=>this._registerIntersectionObserver(c,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if("IntersectionObserver"in e){let i=new e.IntersectionObserver(r=>this._handleIntersectionChange(r[r.length-1]),{threshold:0});i.observe(t),this._observerDisposable.value=vt(()=>i.disconnect())}}_handleIntersectionChange(e){this._isPaused=e.isIntersecting===void 0?e.intersectionRatio===0:!e.isIntersecting,!this._isPaused&&!this._charSizeService.hasValidSize&&this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let r=this._syncOutputHandler.flush();r&&(e=Math.min(e,r.start),t=Math.max(t,r.end)),i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount)}_renderRows(e,t){if(this._renderer.value){if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw(t=>this.refreshRows(t.start,t.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer.value&&((t=(e=this._renderer.value).clearTextureAtlas)==null||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>{var i;return(i=this._renderer.value)==null?void 0:i.handleResize(e,t)}):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;(e=this._renderer.value)==null||e.handleCharSizeChanged()}handleBlur(){var e;(e=this._renderer.value)==null||e.handleBlur()}handleFocus(){var e;(e=this._renderer.value)==null||e.handleFocus()}handleSelectionChanged(e,t,i){var r;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,(r=this._renderer.value)==null||r.handleSelectionChanged(e,t,i)}handleCursorMove(){var e;(e=this._renderer.value)==null||e.handleCursorMove()}clear(){var e;(e=this._renderer.value)==null||e.clear()}};Ku=Lt([xe(2,yi),xe(3,pc),xe(4,Xs),xe(5,gl),xe(6,bi),xe(7,zr),xe(8,pa)],Ku);var DZ=class{constructor(e,t,i){this._coreBrowserService=e,this._coreService=t,this._onTimeout=i,this._start=0,this._end=0,this._isBuffering=!1}bufferRows(e,t){this._isBuffering?(this._start=Math.min(this._start,e),this._end=Math.max(this._end,t)):(this._start=e,this._end=t,this._isBuffering=!0),this._timeout===void 0&&(this._timeout=this._coreBrowserService.window.setTimeout(()=>{this._timeout=void 0,this._coreService.decPrivateModes.synchronizedOutput=!1,this._onTimeout()},1e3))}flush(){if(this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0),!this._isBuffering)return;let e={start:this._start,end:this._end};return this._isBuffering=!1,e}dispose(){this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0)}};function VZ(e,t,i,r){let s=i.buffer.x,n=i.buffer.y;if(!i.buffer.hasScrollback)return FZ(s,n,e,t,i,r)+gc(n,t,i,r)+zZ(s,n,e,t,i,r);let a;if(n===t)return a=s>e?"D":"C",il(Math.abs(s-e),tl(a,r));a=n>t?"D":"C";let o=Math.abs(n-t),l=ZZ(n>t?e:s,i)+(o-1)*i.cols+1+BZ(n>t?s:e);return il(l,tl(a,r))}function BZ(e,t){return e-1}function ZZ(e,t){return t.cols-e}function FZ(e,t,i,r,s,n){return gc(t,r,s,n).length===0?"":il(Gg(e,t,e,t-qs(t,s),!1,s).length,tl("D",n))}function gc(e,t,i,r){let s=e-qs(e,i),n=t-qs(t,i),a=Math.abs(s-n)-UZ(e,t,i);return il(a,tl(qg(e,t),r))}function zZ(e,t,i,r,s,n){let a;gc(t,r,s,n).length>0?a=r-qs(r,s):a=t;let o=r,l=WZ(e,t,i,r,s,n);return il(Gg(e,a,i,o,l==="C",s).length,tl(l,n))}function UZ(e,t,i){var a;let r=0,s=e-qs(e,i),n=t-qs(t,i);for(let o=0;o<Math.abs(s-n);o++){let l=qg(e,t)==="A"?-1:1;(a=i.buffer.lines.get(s+l*o))!=null&&a.isWrapped&&r++}return r}function qs(e,t){let i=0,r=t.buffer.lines.get(e),s=r==null?void 0:r.isWrapped;for(;s&&e>=0&&e<t.rows;)i++,r=t.buffer.lines.get(--e),s=r==null?void 0:r.isWrapped;return i}function WZ(e,t,i,r,s,n){let a;return gc(i,r,s,n).length>0?a=r-qs(r,s):a=t,e<i&&a<=r||e>=i&&a<r?"C":"D"}function qg(e,t){return e>t?"A":"B"}function Gg(e,t,i,r,s,n){let a=e,o=t,l="";for(;(a!==i||o!==r)&&o>=0&&o<n.buffer.lines.length;)a+=s?1:-1,s&&a>n.cols-1?(l+=n.buffer.translateBufferLineToString(o,!1,e,a),a=0,e=0,o++):!s&&a<0&&(l+=n.buffer.translateBufferLineToString(o,!1,0,e+1),a=n.cols-1,e=a,o--);return l+n.buffer.translateBufferLineToString(o,!1,e,a)}function tl(e,t){let i=t?"O":"[";return ve.ESC+i+e}function il(e,t){e=Math.floor(e);let i="";for(let r=0;r<e;r++)i+=t;return i}var jZ=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:!this.selectionEnd||!this.selectionStart?this.selectionStart:this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols===0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!e||!t?!1:e[1]>t[1]||e[1]===t[1]&&e[0]>t[0]}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}};function c8(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}var n1=50,KZ=15,qZ=50,GZ=500,YZ=" ",XZ=new RegExp(YZ,"g"),qu=class extends We{constructor(e,t,i,r,s,n,a,o,l){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=r,this._coreService=s,this._mouseService=n,this._optionsService=a,this._renderService=o,this._coreBrowserService=l,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new Bi,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new Ce),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new Ce),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new Ce),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new Ce),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=c=>this._handleMouseMove(c),this._mouseUpListener=c=>this._handleMouseUp(c),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(c=>this._handleTrim(c)),this._register(this._bufferService.buffers.onBufferActivate(c=>this._handleBufferActivate(c))),this.enable(),this._model=new jZ(this._bufferService),this._activeSelectionMode=0,this._register(vt(()=>{this._removeMouseDownListeners()})),this._register(this._bufferService.onResize(c=>{c.rowsChanged&&this.clearSelection()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!e||!t?!1:e[0]!==t[0]||e[1]!==t[1]}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";let i=this._bufferService.buffer,r=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return"";let s=e[0]<t[0]?e[0]:t[0],n=e[0]<t[0]?t[0]:e[0];for(let a=e[1];a<=t[1];a++){let o=i.translateBufferLineToString(a,!0,s,n);r.push(o)}}else{let s=e[1]===t[1]?t[0]:void 0;r.push(i.translateBufferLineToString(e[1],!0,e[0],s));for(let n=e[1]+1;n<=t[1]-1;n++){let a=i.lines.get(n),o=i.translateBufferLineToString(n,!0);a!=null&&a.isWrapped?r[r.length-1]+=o:r.push(o)}if(e[1]!==t[1]){let n=i.lines.get(t[1]),a=i.translateBufferLineToString(t[1],!0,0,t[0]);n&&n.isWrapped?r[r.length-1]+=a:r.push(a)}}return r.map(s=>s.replace(XZ," ")).join(Wg?`\r
|
|
89
|
+
`:`
|
|
90
|
+
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),md&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!i||!r||!t?!1:this._areCoordsInSelection(t,i,r)}isCellInSelection(e,t){let i=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!i||!r?!1:this._areCoordsInSelection([e,t],i,r)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]<i[1]||t[1]===i[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<i[0]||t[1]<i[1]&&e[1]===i[1]&&e[0]<i[0]||t[1]<i[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){var s,n;let i=(n=(s=this._linkifier.currentLink)==null?void 0:s.link)==null?void 0:n.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=c8(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let r=this._getMouseBufferCoords(e);return r?(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=pd(this._coreBrowserService.window,e,this._screenElement)[1],i=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-n1),n1),t/=n1,t/Math.abs(t)+Math.round(t*(KZ-1)))}shouldForceSelection(e){return T0?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,!(e.button===2&&this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),qZ)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(T0&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd){this.refresh(!0);return}this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let i=this._bufferService.buffer;if(this._model.selectionEnd[1]<i.lines.length){let r=i.lines.get(this._model.selectionEnd[1]);r&&r.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}(!t||t[0]!==this._model.selectionEnd[0]||t[1]!==this._model.selectionEnd[1])&&this.refresh(!0)}_dragScroll(){if(!(!this._model.selectionEnd||!this._model.selectionStart)&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<GZ&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let i=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(i&&i[0]!==void 0&&i[1]!==void 0){let r=VZ(i[0]-1,i[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(r,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!!e&&!!t&&(e[0]!==t[0]||e[1]!==t[1]);if(!i){this._oldHasSelection&&this._fireOnSelectionChange(e,t,i);return}!e||!t||(!this._oldSelectionStart||!this._oldSelectionEnd||e[0]!==this._oldSelectionStart[0]||e[1]!==this._oldSelectionStart[1]||t[0]!==this._oldSelectionEnd[0]||t[1]!==this._oldSelectionEnd[1])&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(t=>this._handleTrim(t))}_convertViewportColToCharacterIndex(e,t){let i=t;for(let r=0;t>=r;r++){let s=e.loadCell(r,this._workCell).getChars().length;this._workCell.getWidth()===0?i--:s>1&&t!==r&&(i+=s-1)}return i}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,i=!0,r=!0){if(e[0]>=this._bufferService.cols)return;let s=this._bufferService.buffer,n=s.lines.get(e[1]);if(!n)return;let a=s.translateBufferLineToString(e[1],!1),o=this._convertViewportColToCharacterIndex(n,e[0]),l=o,c=e[0]-o,u=0,h=0,d=0,f=0;if(a.charAt(o)===" "){for(;o>0&&a.charAt(o-1)===" ";)o--;for(;l<a.length&&a.charAt(l+1)===" ";)l++}else{let A=e[0],p=e[0];n.getWidth(A)===0&&(u++,A--),n.getWidth(p)===2&&(h++,p++);let S=n.getString(p).length;for(S>1&&(f+=S-1,l+=S-1);A>0&&o>0&&!this._isCharWordSeparator(n.loadCell(A-1,this._workCell));){n.loadCell(A-1,this._workCell);let m=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,A--):m>1&&(d+=m-1,o-=m-1),o--,A--}for(;p<n.length&&l+1<a.length&&!this._isCharWordSeparator(n.loadCell(p+1,this._workCell));){n.loadCell(p+1,this._workCell);let m=this._workCell.getChars().length;this._workCell.getWidth()===2?(h++,p++):m>1&&(f+=m-1,l+=m-1),l++,p++}}l++;let g=o+c-u+d,_=Math.min(this._bufferService.cols,l-o+u+h-d-f);if(!(!t&&a.slice(o,l).trim()==="")){if(i&&g===0&&n.getCodePoint(0)!==32){let A=s.lines.get(e[1]-1);if(A&&n.isWrapped&&A.getCodePoint(this._bufferService.cols-1)!==32){let p=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(p){let S=this._bufferService.cols-p.start;g-=S,_+=S}}}if(r&&g+_===this._bufferService.cols&&n.getCodePoint(this._bufferService.cols-1)!==32){let A=s.lines.get(e[1]+1);if(A!=null&&A.isWrapped&&A.getCodePoint(0)!==32){let p=this._getWordAt([0,e[1]+1],!1,!1,!0);p&&(_+=p.length)}}return{start:g,length:_}}}_selectWordAt(e,t){let i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let i=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}}_isCharWordSeparator(e){return e.getWidth()===0?!1:this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),i={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=c8(i,this._bufferService.cols)}};qu=Lt([xe(3,bi),xe(4,Xs),xe(5,ld),xe(6,yi),xe(7,Ur),xe(8,zr)],qu);var u8=class{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},h8=class{constructor(){this._color=new u8,this._css=new u8}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},Ot=Object.freeze((()=>{let e=[yt.toColor("#2e3436"),yt.toColor("#cc0000"),yt.toColor("#4e9a06"),yt.toColor("#c4a000"),yt.toColor("#3465a4"),yt.toColor("#75507b"),yt.toColor("#06989a"),yt.toColor("#d3d7cf"),yt.toColor("#555753"),yt.toColor("#ef2929"),yt.toColor("#8ae234"),yt.toColor("#fce94f"),yt.toColor("#729fcf"),yt.toColor("#ad7fa8"),yt.toColor("#34e2e2"),yt.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){let r=t[i/36%6|0],s=t[i/6%6|0],n=t[i%6];e.push({css:Nt.toCss(r,s,n),rgba:Nt.toRgba(r,s,n)})}for(let i=0;i<24;i++){let r=8+i*10;e.push({css:Nt.toCss(r,r,r),rgba:Nt.toRgba(r,r,r)})}return e})()),Ns=yt.toColor("#ffffff"),mo=yt.toColor("#000000"),d8=yt.toColor("#ffffff"),f8=mo,oo={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117},JZ=Ns,Gu=class extends We{constructor(e){super(),this._optionsService=e,this._contrastCache=new h8,this._halfContrastCache=new h8,this._onChangeColors=this._register(new Ce),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:Ns,background:mo,cursor:d8,cursorAccent:f8,selectionForeground:void 0,selectionBackgroundTransparent:oo,selectionBackgroundOpaque:_t.blend(mo,oo),selectionInactiveBackgroundTransparent:oo,selectionInactiveBackgroundOpaque:_t.blend(mo,oo),scrollbarSliderBackground:_t.opacity(Ns,.2),scrollbarSliderHoverBackground:_t.opacity(Ns,.4),scrollbarSliderActiveBackground:_t.opacity(Ns,.5),overviewRulerBorder:Ns,ansi:Ot.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this._register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this._register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(e={}){let t=this._colors;if(t.foreground=nt(e.foreground,Ns),t.background=nt(e.background,mo),t.cursor=_t.blend(t.background,nt(e.cursor,d8)),t.cursorAccent=_t.blend(t.background,nt(e.cursorAccent,f8)),t.selectionBackgroundTransparent=nt(e.selectionBackground,oo),t.selectionBackgroundOpaque=_t.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=nt(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=_t.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?nt(e.selectionForeground,a8):void 0,t.selectionForeground===a8&&(t.selectionForeground=void 0),_t.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=_t.opacity(t.selectionBackgroundTransparent,.3)),_t.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=_t.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=nt(e.scrollbarSliderBackground,_t.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=nt(e.scrollbarSliderHoverBackground,_t.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=nt(e.scrollbarSliderActiveBackground,_t.opacity(t.foreground,.5)),t.overviewRulerBorder=nt(e.overviewRulerBorder,JZ),t.ansi=Ot.slice(),t.ansi[0]=nt(e.black,Ot[0]),t.ansi[1]=nt(e.red,Ot[1]),t.ansi[2]=nt(e.green,Ot[2]),t.ansi[3]=nt(e.yellow,Ot[3]),t.ansi[4]=nt(e.blue,Ot[4]),t.ansi[5]=nt(e.magenta,Ot[5]),t.ansi[6]=nt(e.cyan,Ot[6]),t.ansi[7]=nt(e.white,Ot[7]),t.ansi[8]=nt(e.brightBlack,Ot[8]),t.ansi[9]=nt(e.brightRed,Ot[9]),t.ansi[10]=nt(e.brightGreen,Ot[10]),t.ansi[11]=nt(e.brightYellow,Ot[11]),t.ansi[12]=nt(e.brightBlue,Ot[12]),t.ansi[13]=nt(e.brightMagenta,Ot[13]),t.ansi[14]=nt(e.brightCyan,Ot[14]),t.ansi[15]=nt(e.brightWhite,Ot[15]),e.extendedAnsi){let i=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let r=0;r<i;r++)t.ansi[r+16]=nt(e.extendedAnsi[r],Ot[r+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e===void 0){for(let t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t];return}switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};Gu=Lt([xe(0,yi)],Gu);function nt(e,t){if(e!==void 0)try{return yt.toColor(e)}catch{}return t}var QZ=class{constructor(...e){this._entries=new Map;for(let[t,i]of e)this.set(t,i)}set(e,t){let i=this._entries.get(e);return this._entries.set(e,t),i}forEach(e){for(let[t,i]of this._entries.entries())e(t,i)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},eF=class{constructor(){this._services=new QZ,this._services.set(od,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let i=KV(e).sort((n,a)=>n.index-a.index),r=[];for(let n of i){let a=this._services.get(n.id);if(!a)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${n.id._id}.`);r.push(a)}let s=i.length>0?i[0].index:t.length;if(t.length!==s)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${s+1} conflicts with ${t.length} static arguments`);return new e(...t,...r)}},tF={trace:0,debug:1,info:2,warn:3,error:4,off:5},iF="xterm.js: ",Yu=class extends We{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel()))}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=tF[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]=="function"&&(e[t]=e[t]())}_log(e,t,i){this._evalLazyOptionalParams(i),e.call(console,(this._optionsService.options.logger?"":iF)+t,...i)}trace(e,...t){var i;this._logLevel<=0&&this._log(((i=this._optionsService.options.logger)==null?void 0:i.trace.bind(this._optionsService.options.logger))??console.log,e,t)}debug(e,...t){var i;this._logLevel<=1&&this._log(((i=this._optionsService.options.logger)==null?void 0:i.debug.bind(this._optionsService.options.logger))??console.log,e,t)}info(e,...t){var i;this._logLevel<=2&&this._log(((i=this._optionsService.options.logger)==null?void 0:i.info.bind(this._optionsService.options.logger))??console.info,e,t)}warn(e,...t){var i;this._logLevel<=3&&this._log(((i=this._optionsService.options.logger)==null?void 0:i.warn.bind(this._optionsService.options.logger))??console.warn,e,t)}error(e,...t){var i;this._logLevel<=4&&this._log(((i=this._optionsService.options.logger)==null?void 0:i.error.bind(this._optionsService.options.logger))??console.error,e,t)}};Yu=Lt([xe(0,yi)],Yu);var _8=class extends We{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new Ce),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new Ce),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new Ce),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=new Array(e);for(let i=0;i<Math.min(e,this.length);i++)t[i]=this._array[this._getCyclicIndex(i)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...i){if(t){for(let r=e;r<this._length-t;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let r=this._length-1;r>=e;r--)this._array[this._getCyclicIndex(r+i.length)]=this._array[this._getCyclicIndex(r)];for(let r=0;r<i.length;r++)this._array[this._getCyclicIndex(e+r)]=i[r];if(i.length&&this.onInsertEmitter.fire({index:e,amount:i.length}),this._length+i.length>this._maxLength){let r=this._length+i.length-this._maxLength;this._startIndex+=r,this._length=this._maxLength,this.onTrimEmitter.fire(r)}else this._length+=i.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(let s=t-1;s>=0;s--)this.set(e+s+i,this.get(e+s));let r=e+t+i-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let r=0;r<t;r++)this.set(e+r+i,this.get(e+r))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},Ue=3,Tt=Object.freeze(new ml),Zl=0,a1=2,go=class Yg{constructor(t,i,r=!1){this.isWrapped=r,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(t*Ue);let s=i||Bi.fromCharData([0,pg,1,0]);for(let n=0;n<t;++n)this.setCell(n,s);this.length=t}get(t){let i=this._data[t*Ue+0],r=i&2097151;return[this._data[t*Ue+1],i&2097152?this._combined[t]:r?ts(r):"",i>>22,i&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):r]}set(t,i){this._data[t*Ue+1]=i[0],i[1].length>1?(this._combined[t]=i[1],this._data[t*Ue+0]=t|2097152|i[2]<<22):this._data[t*Ue+0]=i[1].charCodeAt(0)|i[2]<<22}getWidth(t){return this._data[t*Ue+0]>>22}hasWidth(t){return this._data[t*Ue+0]&12582912}getFg(t){return this._data[t*Ue+1]}getBg(t){return this._data[t*Ue+2]}hasContent(t){return this._data[t*Ue+0]&4194303}getCodePoint(t){let i=this._data[t*Ue+0];return i&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):i&2097151}isCombined(t){return this._data[t*Ue+0]&2097152}getString(t){let i=this._data[t*Ue+0];return i&2097152?this._combined[t]:i&2097151?ts(i&2097151):""}isProtected(t){return this._data[t*Ue+2]&536870912}loadCell(t,i){return Zl=t*Ue,i.content=this._data[Zl+0],i.fg=this._data[Zl+1],i.bg=this._data[Zl+2],i.content&2097152&&(i.combinedData=this._combined[t]),i.bg&268435456&&(i.extended=this._extendedAttrs[t]),i}setCell(t,i){i.content&2097152&&(this._combined[t]=i.combinedData),i.bg&268435456&&(this._extendedAttrs[t]=i.extended),this._data[t*Ue+0]=i.content,this._data[t*Ue+1]=i.fg,this._data[t*Ue+2]=i.bg}setCellFromCodepoint(t,i,r,s){s.bg&268435456&&(this._extendedAttrs[t]=s.extended),this._data[t*Ue+0]=i|r<<22,this._data[t*Ue+1]=s.fg,this._data[t*Ue+2]=s.bg}addCodepointToCell(t,i,r){let s=this._data[t*Ue+0];s&2097152?this._combined[t]+=ts(i):s&2097151?(this._combined[t]=ts(s&2097151)+ts(i),s&=-2097152,s|=2097152):s=i|1<<22,r&&(s&=-12582913,s|=r<<22),this._data[t*Ue+0]=s}insertCells(t,i,r){if(t%=this.length,t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),i<this.length-t){let s=new Bi;for(let n=this.length-t-i-1;n>=0;--n)this.setCell(t+i+n,this.loadCell(t+n,s));for(let n=0;n<i;++n)this.setCell(t+n,r)}else for(let s=t;s<this.length;++s)this.setCell(s,r);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,r)}deleteCells(t,i,r){if(t%=this.length,i<this.length-t){let s=new Bi;for(let n=0;n<this.length-t-i;++n)this.setCell(t+n,this.loadCell(t+i+n,s));for(let n=this.length-i;n<this.length;++n)this.setCell(n,r)}else for(let s=t;s<this.length;++s)this.setCell(s,r);t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),this.getWidth(t)===0&&!this.hasContent(t)&&this.setCellFromCodepoint(t,0,1,r)}replaceCells(t,i,r,s=!1){if(s){for(t&&this.getWidth(t-1)===2&&!this.isProtected(t-1)&&this.setCellFromCodepoint(t-1,0,1,r),i<this.length&&this.getWidth(i-1)===2&&!this.isProtected(i)&&this.setCellFromCodepoint(i,0,1,r);t<i&&t<this.length;)this.isProtected(t)||this.setCell(t,r),t++;return}for(t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),i<this.length&&this.getWidth(i-1)===2&&this.setCellFromCodepoint(i,0,1,r);t<i&&t<this.length;)this.setCell(t++,r)}resize(t,i){if(t===this.length)return this._data.length*4*a1<this._data.buffer.byteLength;let r=t*Ue;if(t>this.length){if(this._data.buffer.byteLength>=r*4)this._data=new Uint32Array(this._data.buffer,0,r);else{let s=new Uint32Array(r);s.set(this._data),this._data=s}for(let s=this.length;s<t;++s)this.setCell(s,i)}else{this._data=this._data.subarray(0,r);let s=Object.keys(this._combined);for(let a=0;a<s.length;a++){let o=parseInt(s[a],10);o>=t&&delete this._combined[o]}let n=Object.keys(this._extendedAttrs);for(let a=0;a<n.length;a++){let o=parseInt(n[a],10);o>=t&&delete this._extendedAttrs[o]}}return this.length=t,r*4*a1<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*a1<this._data.buffer.byteLength){let t=new Uint32Array(this._data.length);return t.set(this._data),this._data=t,1}return 0}fill(t,i=!1){if(i){for(let r=0;r<this.length;++r)this.isProtected(r)||this.setCell(r,t);return}this._combined={},this._extendedAttrs={};for(let r=0;r<this.length;++r)this.setCell(r,t)}copyFrom(t){this.length!==t.length?this._data=new Uint32Array(t._data):this._data.set(t._data),this.length=t.length,this._combined={};for(let i in t._combined)this._combined[i]=t._combined[i];this._extendedAttrs={};for(let i in t._extendedAttrs)this._extendedAttrs[i]=t._extendedAttrs[i];this.isWrapped=t.isWrapped}clone(){let t=new Yg(0);t._data=new Uint32Array(this._data),t.length=this.length;for(let i in this._combined)t._combined[i]=this._combined[i];for(let i in this._extendedAttrs)t._extendedAttrs[i]=this._extendedAttrs[i];return t.isWrapped=this.isWrapped,t}getTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Ue+0]&4194303)return t+(this._data[t*Ue+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Ue+0]&4194303||this._data[t*Ue+2]&50331648)return t+(this._data[t*Ue+0]>>22);return 0}copyCellsFrom(t,i,r,s,n){let a=t._data;if(n)for(let l=s-1;l>=0;l--){for(let c=0;c<Ue;c++)this._data[(r+l)*Ue+c]=a[(i+l)*Ue+c];a[(i+l)*Ue+2]&268435456&&(this._extendedAttrs[r+l]=t._extendedAttrs[i+l])}else for(let l=0;l<s;l++){for(let c=0;c<Ue;c++)this._data[(r+l)*Ue+c]=a[(i+l)*Ue+c];a[(i+l)*Ue+2]&268435456&&(this._extendedAttrs[r+l]=t._extendedAttrs[i+l])}let o=Object.keys(t._combined);for(let l=0;l<o.length;l++){let c=parseInt(o[l],10);c>=i&&(this._combined[c-i+r]=t._combined[c])}}translateToString(t,i,r,s){i=i??0,r=r??this.length,t&&(r=Math.min(r,this.getTrimmedLength())),s&&(s.length=0);let n="";for(;i<r;){let a=this._data[i*Ue+0],o=a&2097151,l=a&2097152?this._combined[i]:o?ts(o):ns;if(n+=l,s)for(let c=0;c<l.length;++c)s.push(i);i+=a>>22||1}return s&&s.push(i),n}};function rF(e,t,i,r,s,n){let a=[];for(let o=0;o<e.length-1;o++){let l=o,c=e.get(++l);if(!c.isWrapped)continue;let u=[e.get(o)];for(;l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(!n&&r>=o&&r<l){o+=u.length-1;continue}let h=0,d=rl(u,h,t),f=1,g=0;for(;f<u.length;){let A=rl(u,f,t),p=A-g,S=i-d,m=Math.min(p,S);u[h].copyCellsFrom(u[f],g,d,m,!1),d+=m,d===i&&(h++,d=0),g+=m,g===A&&(f++,g=0),d===0&&h!==0&&u[h-1].getWidth(i-1)===2&&(u[h].copyCellsFrom(u[h-1],i-1,d++,1,!1),u[h-1].setCell(i-1,s))}u[h].replaceCells(d,i,s);let _=0;for(let A=u.length-1;A>0&&(A>h||u[A].getTrimmedLength()===0);A--)_++;_>0&&(a.push(o+u.length-_),a.push(_)),o+=u.length-1}return a}function sF(e,t){let i=[],r=0,s=t[r],n=0;for(let a=0;a<e.length;a++)if(s===a){let o=t[++r];e.onDeleteEmitter.fire({index:a-n,amount:o}),a+=o-1,n+=o,s=t[++r]}else i.push(a);return{layout:i,countRemoved:n}}function nF(e,t){let i=[];for(let r=0;r<t.length;r++)i.push(e.get(t[r]));for(let r=0;r<i.length;r++)e.set(r,i[r]);e.length=t.length}function aF(e,t,i){let r=[],s=e.map((l,c)=>rl(e,c,t)).reduce((l,c)=>l+c),n=0,a=0,o=0;for(;o<s;){if(s-o<i){r.push(s-o);break}n+=i;let l=rl(e,a,t);n>l&&(n-=l,a++);let c=e[a].getWidth(n-1)===2;c&&n--;let u=c?i-1:i;r.push(u),o+=u}return r}function rl(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();let r=!e[t].hasContent(i-1)&&e[t].getWidth(i-1)===1,s=e[t+1].getWidth(0)===2;return r&&s?i-1:i}var Xg=class Jg{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=Jg._nextId++,this._onDispose=this.register(new Ce),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),Ks(this._disposables),this._disposables.length=0)}register(t){return this._disposables.push(t),t}};Xg._nextId=1;var oF=Xg,Bt={},Hs=Bt.B;Bt[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"};Bt.A={"#":"£"};Bt.B=void 0;Bt[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"};Bt.C=Bt[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};Bt.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"};Bt.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"};Bt.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"};Bt.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"};Bt.E=Bt[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"};Bt.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"};Bt.H=Bt[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};Bt["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"};var p8=4294967295,m8=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=Tt.clone(),this.savedCharset=Hs,this.markers=[],this._nullCell=Bi.fromCharData([0,pg,1,0]),this._whitespaceCell=Bi.fromCharData([0,ns,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new N0,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new _8(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new E0),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new E0),this._whitespaceCell}getBlankLine(e,t){return new go(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;let t=e+this._optionsService.rawOptions.scrollback;return t>p8?p8:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=Tt);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new _8(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let i=this.getNullCell(Tt),r=0,s=this._getCorrectBufferLength(t);if(s>this.lines.maxLength&&(this.lines.maxLength=s),this.lines.length>0){if(this._cols<e)for(let a=0;a<this.lines.length;a++)r+=+this.lines.get(a).resize(e,i);let n=0;if(this._rows<t)for(let a=this._rows;a<t;a++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new go(e,i)):this.ybase>0&&this.lines.length<=this.ybase+this.y+n+1?(this.ybase--,n++,this.ydisp>0&&this.ydisp--):this.lines.push(new go(e,i)));else for(let a=this._rows;a>t;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(s<this.lines.maxLength){let a=this.lines.length-s;a>0&&(this.lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0),this.savedY=Math.max(this.savedY-a,0)),this.lines.maxLength=s}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),n&&(this.y+=n),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let n=0;n<this.lines.length;n++)r+=+this.lines.get(n).resize(e,i);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),r>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend==="conpty"&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let i=this._optionsService.rawOptions.reflowCursorLine,r=rF(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(Tt),i);if(r.length>0){let s=sF(this.lines,r);nF(this.lines,s.layout),this._reflowLargerAdjustViewport(e,t,s.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){let r=this.getNullCell(Tt),s=i;for(;s-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new go(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-i,0)}_reflowSmaller(e,t){let i=this._optionsService.rawOptions.reflowCursorLine,r=this.getNullCell(Tt),s=[],n=0;for(let a=this.lines.length-1;a>=0;a--){let o=this.lines.get(a);if(!o||!o.isWrapped&&o.getTrimmedLength()<=e)continue;let l=[o];for(;o.isWrapped&&a>0;)o=this.lines.get(--a),l.unshift(o);if(!i){let m=this.ybase+this.y;if(m>=a&&m<a+l.length)continue}let c=l[l.length-1].getTrimmedLength(),u=aF(l,this._cols,e),h=u.length-l.length,d;this.ybase===0&&this.y!==this.lines.length-1?d=Math.max(0,this.y-this.lines.maxLength+h):d=Math.max(0,this.lines.length-this.lines.maxLength+h);let f=[];for(let m=0;m<h;m++){let v=this.getBlankLine(Tt,!0);f.push(v)}f.length>0&&(s.push({start:a+l.length+n,newLines:f}),n+=f.length),l.push(...f);let g=u.length-1,_=u[g];_===0&&(g--,_=u[g]);let A=l.length-h-1,p=c;for(;A>=0;){let m=Math.min(p,_);if(l[g]===void 0)break;if(l[g].copyCellsFrom(l[A],p-m,_-m,m,!0),_-=m,_===0&&(g--,_=u[g]),p-=m,p===0){A--;let v=Math.max(A,0);p=rl(l,v,this._cols)}}for(let m=0;m<l.length;m++)u[m]<e&&l[m].setCell(u[m],r);let S=h-d;for(;S-- >0;)this.ybase===0?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+n)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+h,this.ybase+t-1)}if(s.length>0){let a=[],o=[];for(let _=0;_<this.lines.length;_++)o.push(this.lines.get(_));let l=this.lines.length,c=l-1,u=0,h=s[u];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+n);let d=0;for(let _=Math.min(this.lines.maxLength-1,l+n-1);_>=0;_--)if(h&&h.start>c+d){for(let A=h.newLines.length-1;A>=0;A--)this.lines.set(_--,h.newLines[A]);_++,a.push({index:c+1,amount:h.newLines.length}),d+=h.newLines.length,h=s[++u]}else this.lines.set(_,o[c--]);let f=0;for(let _=a.length-1;_>=0;_--)a[_].index+=f,this.lines.onInsertEmitter.fire(a[_]),f+=a[_].amount;let g=Math.max(0,l+n-this.lines.maxLength);g>0&&this.lines.onTrimEmitter.fire(g)}}translateBufferLineToString(e,t,i=0,r){let s=this.lines.get(e);return s?s.translateToString(t,i,r):""}getWrappedRangeForLine(e){let t=e,i=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+1<this.lines.length&&this.lines.get(i+1).isWrapped;)i++;return{first:t,last:i}}setupTabStops(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose();this.markers.length=0,this._isClearing=!1}addMarker(e){let t=new oF(e);return this.markers.push(t),t.register(this.lines.onTrim(i=>{t.line-=i,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(i=>{t.line>=i.index&&(t.line+=i.amount)})),t.register(this.lines.onDelete(i=>{t.line>=i.index&&t.line<i.index+i.amount&&t.dispose(),t.line>i.index&&(t.line-=i.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},lF=class extends We{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new Ce),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this._register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this._register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new m8(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new m8(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}},Qg=2,ev=1,Xu=class extends We{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new Ce),this.onResize=this._onResize.event,this._onScroll=this._register(new Ce),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,Qg),this.rows=Math.max(e.rawOptions.rows||0,ev),this.buffers=this._register(new lF(e,this)),this._register(this.buffers.onBufferActivate(t=>{this._onScroll.fire(t.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let i=this.cols!==e,r=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:i,rowsChanged:r})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let i=this.buffer,r;r=this._cachedBlankLine,(!r||r.length!==this.cols||r.getFg(0)!==e.fg||r.getBg(0)!==e.bg)&&(r=i.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;let s=i.ybase+i.scrollTop,n=i.ybase+i.scrollBottom;if(i.scrollTop===0){let a=i.lines.isFull;n===i.lines.length-1?a?i.lines.recycle().copyFrom(r):i.lines.push(r.clone()):i.lines.splice(n+1,0,r.clone()),a?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{let a=n-s+1;i.lines.shiftElements(s+1,a-1,-1),i.lines.set(n,r.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t){let i=this.buffer;if(e<0){if(i.ydisp===0)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);let r=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),r!==i.ydisp&&(t||this._onScroll.fire(i.ydisp))}};Xu=Lt([xe(0,yi)],Xu);var sn={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnEraseInDisplay:!1,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},reflowCursorLine:!1,rescaleOverlappingGlyphs:!1,rightClickSelectsWord:T0,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRuler:{}},cF=["normal","bold","100","200","300","400","500","600","700","800","900"],uF=class extends We{constructor(e){super(),this._onOptionChange=this._register(new Ce),this.onOptionChange=this._onOptionChange.event;let t={...sn};for(let i in e)if(i in t)try{let r=e[i];t[i]=this._sanitizeAndValidateOption(i,r)}catch(r){console.error(r)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(vt(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(i=>{i===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(i=>{e.indexOf(i)!==-1&&t()})}_setupOptions(){let e=i=>{if(!(i in sn))throw new Error(`No option with key "${i}"`);return this.rawOptions[i]},t=(i,r)=>{if(!(i in sn))throw new Error(`No option with key "${i}"`);r=this._sanitizeAndValidateOption(i,r),this.rawOptions[i]!==r&&(this.rawOptions[i]=r,this._onOptionChange.fire(i))};for(let i in this.rawOptions){let r={get:e.bind(this,i),set:t.bind(this,i)};Object.defineProperty(this.options,i,r)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if(t||(t=sn[e]),!hF(t))throw new Error(`"${t}" is not a valid value for ${e}`);break;case"wordSeparator":t||(t=sn[e]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=cF.includes(t)?t:sn[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(`${e} cannot be less than 1, value: ${t}`);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(t*10)/10));break;case"scrollback":if(t=Math.min(t,4294967295),t<0)throw new Error(`${e} cannot be less than 0, value: ${t}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${t}`);break;case"rows":case"cols":if(!t&&t!==0)throw new Error(`${e} must be numeric, value: ${t}`);break;case"windowsPty":t=t??{};break}return t}};function hF(e){return e==="block"||e==="underline"||e==="bar"}function vo(e,t=5){if(typeof e!="object")return e;let i=Array.isArray(e)?[]:{};for(let r in e)i[r]=t<=1?e[r]:e[r]&&vo(e[r],t-1);return i}var g8=Object.freeze({insertMode:!1}),v8=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),Ju=class extends We{constructor(e,t,i){super(),this._bufferService=e,this._logService=t,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new Ce),this.onData=this._onData.event,this._onUserInput=this._register(new Ce),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new Ce),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new Ce),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=vo(g8),this.decPrivateModes=vo(v8)}reset(){this.modes=vo(g8),this.decPrivateModes=vo(v8)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let i=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&i.ybase!==i.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace("sending data (codes)",()=>e.split("").map(r=>r.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace("sending binary (codes)",()=>e.split("").map(t=>t.charCodeAt(0))),this._onBinary.fire(e))}};Ju=Lt([xe(0,bi),xe(1,yg),xe(2,yi)],Ju);var b8={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button===4||e.action!==1?!1:(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>!(e.action===32&&e.button===3)},ANY:{events:31,restrict:e=>!0}};function o1(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(i|=64,i|=e.action):(i|=e.button&3,e.button&4&&(i|=64),e.button&8&&(i|=128),e.action===32?i|=32:e.action===0&&!t&&(i|=3)),i}var l1=String.fromCharCode,y8={DEFAULT:e=>{let t=[o1(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1B[M${l1(t[0])}${l1(t[1])}${l1(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${o1(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${o1(e,!0)};${e.x};${e.y}${t}`}},Qu=class extends We{constructor(e,t,i){super(),this._bufferService=e,this._coreService=t,this._optionsService=i,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new Ce),this.onProtocolChange=this._onProtocolChange.event;for(let r of Object.keys(b8))this.addProtocol(r,b8[r]);for(let r of Object.keys(y8))this.addEncoding(r,y8[r]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,i){if(e.deltaY===0||e.shiftKey||t===void 0||i===void 0)return 0;let r=t/i,s=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(s/=r+0,Math.abs(e.deltaY)<50&&(s*=.3),this._wheelPartialScroll+=s,s=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s}_applyScrollModifier(e,t){return t.altKey||t.ctrlKey||t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(e&1),up:!!(e&2),drag:!!(e&4),move:!!(e&8),wheel:!!(e&16)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return!(e.button!==t.button||e.action!==t.action||e.ctrl!==t.ctrl||e.alt!==t.alt||e.shift!==t.shift)}};Qu=Lt([xe(0,bi),xe(1,Xs),xe(2,yi)],Qu);var c1=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],dF=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],It;function fF(e,t){let i=0,r=t.length-1,s;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=i;)if(s=i+r>>1,e>t[s][1])i=s+1;else if(e<t[s][0])r=s-1;else return!0;return!1}var _F=class{constructor(){if(this.version="6",!It){It=new Uint8Array(65536),It.fill(1),It[0]=0,It.fill(0,1,32),It.fill(0,127,160),It.fill(2,4352,4448),It[9001]=2,It[9002]=2,It.fill(2,11904,42192),It[12351]=1,It.fill(2,44032,55204),It.fill(2,63744,64256),It.fill(2,65040,65050),It.fill(2,65072,65136),It.fill(2,65280,65377),It.fill(2,65504,65511);for(let e=0;e<c1.length;++e)It.fill(0,c1[e][0],c1[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?It[e]:fF(e,dF)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let i=this.wcwidth(e),r=i===0&&t!==0;if(r){let s=Vs.extractWidth(t);s===0?r=!1:s>i&&(i=s)}return Vs.createPropertyValue(0,i,r)}},Vs=class Ql{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new Ce,this.onChange=this._onChange.event;let t=new _F;this.register(t),this._active=t.version,this._activeProvider=t}static extractShouldJoin(t){return(t&1)!==0}static extractWidth(t){return t>>1&3}static extractCharKind(t){return t>>3}static createPropertyValue(t,i,r=!1){return(t&16777215)<<3|(i&3)<<1|(r?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(t){if(!this._providers[t])throw new Error(`unknown Unicode version "${t}"`);this._active=t,this._activeProvider=this._providers[t],this._onChange.fire(t)}register(t){this._providers[t.version]=t}wcwidth(t){return this._activeProvider.wcwidth(t)}getStringCellWidth(t){let i=0,r=0,s=t.length;for(let n=0;n<s;++n){let a=t.charCodeAt(n);if(55296<=a&&a<=56319){if(++n>=s)return i+this.wcwidth(a);let c=t.charCodeAt(n);56320<=c&&c<=57343?a=(a-55296)*1024+c-56320+65536:i+=this.wcwidth(c)}let o=this.charProperties(a,r),l=Ql.extractWidth(o);Ql.extractShouldJoin(o)&&(l-=Ql.extractWidth(r)),i+=l,r=o}return i}charProperties(t,i){return this._activeProvider.charProperties(t,i)}},pF=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}};function w8(e){var r;let t=(r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1))==null?void 0:r.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&t&&(i.isWrapped=t[3]!==0&&t[3]!==32)}var lo=2147483647,mF=256,tv=class eh{constructor(t=32,i=32){if(this.maxLength=t,this.maxSubParamsLength=i,i>mF)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(i),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let i=new eh;if(!t.length)return i;for(let r=Array.isArray(t[0])?1:0;r<t.length;++r){let s=t[r];if(Array.isArray(s))for(let n=0;n<s.length;++n)i.addSubParam(s[n]);else i.addParam(s)}return i}clone(){let t=new eh(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}toArray(){let t=[];for(let i=0;i<this.length;++i){t.push(this.params[i]);let r=this._subParamsIdx[i]>>8,s=this._subParamsIdx[i]&255;s-r>0&&t.push(Array.prototype.slice.call(this._subParams,r,s))}return t}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(t){if(this._digitIsSub=!1,this.length>=this.maxLength){this._rejectDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=t>lo?lo:t}addSubParam(t){if(this._digitIsSub=!0,!!this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength){this._rejectSubDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=t>lo?lo:t,this._subParamsIdx[this.length-1]++}}hasSubParams(t){return(this._subParamsIdx[t]&255)-(this._subParamsIdx[t]>>8)>0}getSubParams(t){let i=this._subParamsIdx[t]>>8,r=this._subParamsIdx[t]&255;return r-i>0?this._subParams.subarray(i,r):null}getSubParamsAll(){let t={};for(let i=0;i<this.length;++i){let r=this._subParamsIdx[i]>>8,s=this._subParamsIdx[i]&255;s-r>0&&(t[i]=this._subParams.slice(r,s))}return t}addDigit(t){let i;if(this._rejectDigits||!(i=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let r=this._digitIsSub?this._subParams:this.params,s=r[i-1];r[i-1]=~s?Math.min(s*10+t,lo):t}},co=[],gF=class{constructor(){this._state=0,this._active=co,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let i=this._handlers[e];return i.push(t),{dispose:()=>{let r=i.indexOf(t);r!==-1&&i.splice(r,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=co}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=co,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||co,!this._active.length)this._handlerFb(this._id,"START");else for(let e=this._active.length-1;e>=0;e--)this._active[e].start()}_put(e,t,i){if(!this._active.length)this._handlerFb(this._id,"PUT",_c(e,t,i));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,i)}start(){this.reset(),this._state=1}put(e,t,i){if(this._state!==3){if(this._state===1)for(;t<i;){let r=e[t++];if(r===59){this._state=2,this._start();break}if(r<48||57<r){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+r-48}this._state===2&&i-t>0&&this._put(e,t,i)}}end(e,t=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),!this._active.length)this._handlerFb(this._id,"END",e);else{let i=!1,r=this._active.length-1,s=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,i=t,s=this._stack.fallThrough,this._stack.paused=!1),!s&&i===!1){for(;r>=0&&(i=this._active[r].end(e),i!==!0);r--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,i;r--}for(;r>=0;r--)if(i=this._active[r].end(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,i}this._active=co,this._id=-1,this._state=0}}},ki=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=_c(e,t,i),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(i=>(this._data="",this._hitLimit=!1,i));return this._data="",this._hitLimit=!1,t}},uo=[],vF=class{constructor(){this._handlers=Object.create(null),this._active=uo,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=uo}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let i=this._handlers[e];return i.push(t),{dispose:()=>{let r=i.indexOf(t);r!==-1&&i.splice(r,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=uo,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||uo,!this._active.length)this._handlerFb(this._ident,"HOOK",t);else for(let i=this._active.length-1;i>=0;i--)this._active[i].hook(t)}put(e,t,i){if(!this._active.length)this._handlerFb(this._ident,"PUT",_c(e,t,i));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,i)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,"UNHOOK",e);else{let i=!1,r=this._active.length-1,s=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,i=t,s=this._stack.fallThrough,this._stack.paused=!1),!s&&i===!1){for(;r>=0&&(i=this._active[r].unhook(e),i!==!0);r--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,i;r--}for(;r>=0;r--)if(i=this._active[r].unhook(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,i}this._active=uo,this._ident=0}},bo=new tv;bo.addParam(0);var S8=class{constructor(e){this._handler=e,this._data="",this._params=bo,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():bo,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=_c(e,t,i),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(i=>(this._params=bo,this._data="",this._hitLimit=!1,i));return this._params=bo,this._data="",this._hitLimit=!1,t}},bF=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,r){this.table[t<<8|e]=i<<4|r}addMany(e,t,i,r){for(let s=0;s<e.length;s++)this.table[t<<8|e[s]]=i<<4|r}},Pi=160,yF=function(){let e=new bF(4095),t=Array.apply(null,Array(256)).map((o,l)=>l),i=(o,l)=>t.slice(o,l),r=i(32,127),s=i(0,24);s.push(25),s.push.apply(s,i(28,32));let n=i(0,14),a;e.setDefault(1,0),e.addMany(r,0,2,0);for(a in n)e.addMany([24,26,153,154],a,3,0),e.addMany(i(128,144),a,3,0),e.addMany(i(144,152),a,3,0),e.add(156,a,0,0),e.add(27,a,11,1),e.add(157,a,4,8),e.addMany([152,158,159],a,0,7),e.add(155,a,11,3),e.add(144,a,11,9);return e.addMany(s,0,3,0),e.addMany(s,1,3,1),e.add(127,1,0,1),e.addMany(s,8,0,8),e.addMany(s,3,3,3),e.add(127,3,0,3),e.addMany(s,4,3,4),e.add(127,4,0,4),e.addMany(s,6,3,6),e.addMany(s,5,3,5),e.add(127,5,0,5),e.addMany(s,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(i(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(s,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(i(64,127),3,7,0),e.addMany(i(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(i(48,60),4,8,4),e.addMany(i(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(i(32,64),6,0,6),e.add(127,6,0,6),e.addMany(i(64,127),6,0,0),e.addMany(i(32,48),3,9,5),e.addMany(i(32,48),5,9,5),e.addMany(i(48,64),5,0,6),e.addMany(i(64,127),5,7,0),e.addMany(i(32,48),4,9,5),e.addMany(i(32,48),1,9,2),e.addMany(i(32,48),2,9,2),e.addMany(i(48,127),2,10,0),e.addMany(i(48,80),1,10,0),e.addMany(i(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(i(96,127),1,10,0),e.add(80,1,11,9),e.addMany(s,9,0,9),e.add(127,9,0,9),e.addMany(i(28,32),9,0,9),e.addMany(i(32,48),9,9,12),e.addMany(i(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(s,11,0,11),e.addMany(i(32,128),11,0,11),e.addMany(i(28,32),11,0,11),e.addMany(s,10,0,10),e.add(127,10,0,10),e.addMany(i(28,32),10,0,10),e.addMany(i(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(i(32,48),10,9,12),e.addMany(s,12,0,12),e.add(127,12,0,12),e.addMany(i(28,32),12,0,12),e.addMany(i(32,48),12,9,12),e.addMany(i(48,64),12,0,11),e.addMany(i(64,127),12,12,13),e.addMany(i(64,127),10,12,13),e.addMany(i(64,127),9,12,13),e.addMany(s,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(Pi,0,2,0),e.add(Pi,8,5,8),e.add(Pi,6,0,6),e.add(Pi,11,0,11),e.add(Pi,13,13,13),e}(),wF=class extends We{constructor(e=yF){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new tv,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(t,i,r)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,i)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._register(vt(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new gF),this._dcsParser=this._register(new vF),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let i=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=e.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let s=0;s<e.intermediates.length;++s){let n=e.intermediates.charCodeAt(s);if(32>n||n>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=n}}if(e.final.length!==1)throw new Error("final must be a single byte");let r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=r,i}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(e&255)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let i=this._identifier(e,[48,126]);this._escHandlers[i]===void 0&&(this._escHandlers[i]=[]);let r=this._escHandlers[i];return r.push(t),{dispose:()=>{let s=r.indexOf(t);s!==-1&&r.splice(s,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let i=this._identifier(e);this._csiHandlers[i]===void 0&&(this._csiHandlers[i]=[]);let r=this._csiHandlers[i];return r.push(t),{dispose:()=>{let s=r.indexOf(t);s!==-1&&r.splice(s,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,r,s){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=r,this._parseStack.chunkPos=s}parse(e,t,i){let r=0,s=0,n=0,a;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,n=this._parseStack.chunkPos+1;else{if(i===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let o=this._parseStack.handlers,l=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(i===!1&&l>-1){for(;l>=0&&(a=o[l](this._params),a!==!0);l--)if(a instanceof Promise)return this._parseStack.handlerPos=l,a}this._parseStack.handlers=[];break;case 4:if(i===!1&&l>-1){for(;l>=0&&(a=o[l](),a!==!0);l--)if(a instanceof Promise)return this._parseStack.handlerPos=l,a}this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],a=this._dcsParser.unhook(r!==24&&r!==26,i),a)return a;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],a=this._oscParser.end(r!==24&&r!==26,i),a)return a;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break}this._parseStack.state=0,n=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}for(let o=n;o<t;++o){switch(r=e[o],s=this._transitions.table[this.currentState<<8|(r<160?r:Pi)],s>>4){case 2:for(let d=o+1;;++d){if(d>=t||(r=e[d])<32||r>126&&r<Pi){this._printHandler(e,o,d),o=d-1;break}if(++d>=t||(r=e[d])<32||r>126&&r<Pi){this._printHandler(e,o,d),o=d-1;break}if(++d>=t||(r=e[d])<32||r>126&&r<Pi){this._printHandler(e,o,d),o=d-1;break}if(++d>=t||(r=e[d])<32||r>126&&r<Pi){this._printHandler(e,o,d),o=d-1;break}}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:o,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let l=this._csiHandlers[this._collect<<8|r],c=l?l.length-1:-1;for(;c>=0&&(a=l[c](this._params),a!==!0);c--)if(a instanceof Promise)return this._preserveStack(3,l,c,s,o),a;c<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingJoinState=0;break;case 8:do switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}while(++o<t&&(r=e[o])>47&&r<60);o--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:let u=this._escHandlers[this._collect<<8|r],h=u?u.length-1:-1;for(;h>=0&&(a=u[h](),a!==!0);h--)if(a instanceof Promise)return this._preserveStack(4,u,h,s,o),a;h<0&&this._escHandlerFb(this._collect<<8|r),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let d=o+1;;++d)if(d>=t||(r=e[d])===24||r===26||r===27||r>127&&r<Pi){this._dcsParser.put(e,o,d),o=d-1;break}break;case 14:if(a=this._dcsParser.unhook(r!==24&&r!==26),a)return this._preserveStack(6,[],0,s,o),a;r===27&&(s|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let d=o+1;;d++)if(d>=t||(r=e[d])<32||r>127&&r<Pi){this._oscParser.put(e,o,d),o=d-1;break}break;case 6:if(a=this._oscParser.end(r!==24&&r!==26),a)return this._preserveStack(5,[],0,s,o),a;r===27&&(s|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break}this.currentState=s&15}}},SF=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,CF=/^[\da-f]+$/;function C8(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let i=SF.exec(t);if(i){let r=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/r*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/r*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/r*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),CF.exec(t)&&[3,6,9,12].includes(t.length))){let i=t.length/3,r=[0,0,0];for(let s=0;s<3;++s){let n=parseInt(t.slice(i*s,i*s+i),16);r[s]=i===1?n<<4:i===2?n:i===3?n>>4:n>>8}return r}}function u1(e,t){let i=e.toString(16),r=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}function AF(e,t=16){let[i,r,s]=e;return`rgb:${u1(i,t)}/${u1(r,t)}/${u1(s,t)}`}var kF={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Yr=131072,A8=10;function k8(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var M8=5e3,L8=0,MF=class extends We{constructor(e,t,i,r,s,n,a,o,l=new wF){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=r,this._optionsService=s,this._oscLinkService=n,this._coreMouseService=a,this._unicodeService=o,this._parser=l,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new WV,this._utf8Decoder=new jV,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=Tt.clone(),this._eraseAttrDataInternal=Tt.clone(),this._onRequestBell=this._register(new Ce),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new Ce),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new Ce),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new Ce),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new Ce),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new Ce),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new Ce),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new Ce),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new Ce),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new Ce),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new Ce),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new Ce),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new Ce),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this._register(this._parser),this._dirtyRowTracker=new th(this._bufferService),this._activeBuffer=this._bufferService.buffer,this._register(this._bufferService.buffers.onBufferActivate(c=>this._activeBuffer=c.activeBuffer)),this._parser.setCsiHandlerFallback((c,u)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(c),params:u.toArray()})}),this._parser.setEscHandlerFallback(c=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(c)})}),this._parser.setExecuteHandlerFallback(c=>{this._logService.debug("Unknown EXECUTE code: ",{code:c})}),this._parser.setOscHandlerFallback((c,u,h)=>{this._logService.debug("Unknown OSC code: ",{identifier:c,action:u,data:h})}),this._parser.setDcsHandlerFallback((c,u,h)=>{u==="HOOK"&&(h=h.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(c),action:u,payload:h})}),this._parser.setPrintHandler((c,u,h)=>this.print(c,u,h)),this._parser.registerCsiHandler({final:"@"},c=>this.insertChars(c)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},c=>this.scrollLeft(c)),this._parser.registerCsiHandler({final:"A"},c=>this.cursorUp(c)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},c=>this.scrollRight(c)),this._parser.registerCsiHandler({final:"B"},c=>this.cursorDown(c)),this._parser.registerCsiHandler({final:"C"},c=>this.cursorForward(c)),this._parser.registerCsiHandler({final:"D"},c=>this.cursorBackward(c)),this._parser.registerCsiHandler({final:"E"},c=>this.cursorNextLine(c)),this._parser.registerCsiHandler({final:"F"},c=>this.cursorPrecedingLine(c)),this._parser.registerCsiHandler({final:"G"},c=>this.cursorCharAbsolute(c)),this._parser.registerCsiHandler({final:"H"},c=>this.cursorPosition(c)),this._parser.registerCsiHandler({final:"I"},c=>this.cursorForwardTab(c)),this._parser.registerCsiHandler({final:"J"},c=>this.eraseInDisplay(c,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},c=>this.eraseInDisplay(c,!0)),this._parser.registerCsiHandler({final:"K"},c=>this.eraseInLine(c,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},c=>this.eraseInLine(c,!0)),this._parser.registerCsiHandler({final:"L"},c=>this.insertLines(c)),this._parser.registerCsiHandler({final:"M"},c=>this.deleteLines(c)),this._parser.registerCsiHandler({final:"P"},c=>this.deleteChars(c)),this._parser.registerCsiHandler({final:"S"},c=>this.scrollUp(c)),this._parser.registerCsiHandler({final:"T"},c=>this.scrollDown(c)),this._parser.registerCsiHandler({final:"X"},c=>this.eraseChars(c)),this._parser.registerCsiHandler({final:"Z"},c=>this.cursorBackwardTab(c)),this._parser.registerCsiHandler({final:"`"},c=>this.charPosAbsolute(c)),this._parser.registerCsiHandler({final:"a"},c=>this.hPositionRelative(c)),this._parser.registerCsiHandler({final:"b"},c=>this.repeatPrecedingCharacter(c)),this._parser.registerCsiHandler({final:"c"},c=>this.sendDeviceAttributesPrimary(c)),this._parser.registerCsiHandler({prefix:">",final:"c"},c=>this.sendDeviceAttributesSecondary(c)),this._parser.registerCsiHandler({final:"d"},c=>this.linePosAbsolute(c)),this._parser.registerCsiHandler({final:"e"},c=>this.vPositionRelative(c)),this._parser.registerCsiHandler({final:"f"},c=>this.hVPosition(c)),this._parser.registerCsiHandler({final:"g"},c=>this.tabClear(c)),this._parser.registerCsiHandler({final:"h"},c=>this.setMode(c)),this._parser.registerCsiHandler({prefix:"?",final:"h"},c=>this.setModePrivate(c)),this._parser.registerCsiHandler({final:"l"},c=>this.resetMode(c)),this._parser.registerCsiHandler({prefix:"?",final:"l"},c=>this.resetModePrivate(c)),this._parser.registerCsiHandler({final:"m"},c=>this.charAttributes(c)),this._parser.registerCsiHandler({final:"n"},c=>this.deviceStatus(c)),this._parser.registerCsiHandler({prefix:"?",final:"n"},c=>this.deviceStatusPrivate(c)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},c=>this.softReset(c)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},c=>this.setCursorStyle(c)),this._parser.registerCsiHandler({final:"r"},c=>this.setScrollRegion(c)),this._parser.registerCsiHandler({final:"s"},c=>this.saveCursor(c)),this._parser.registerCsiHandler({final:"t"},c=>this.windowOptions(c)),this._parser.registerCsiHandler({final:"u"},c=>this.restoreCursor(c)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},c=>this.insertColumns(c)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},c=>this.deleteColumns(c)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},c=>this.selectProtected(c)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},c=>this.requestMode(c,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},c=>this.requestMode(c,!1)),this._parser.setExecuteHandler(ve.BEL,()=>this.bell()),this._parser.setExecuteHandler(ve.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(ve.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(ve.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(ve.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(ve.BS,()=>this.backspace()),this._parser.setExecuteHandler(ve.HT,()=>this.tab()),this._parser.setExecuteHandler(ve.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(ve.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(Xl.IND,()=>this.index()),this._parser.setExecuteHandler(Xl.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(Xl.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new ki(c=>(this.setTitle(c),this.setIconName(c),!0))),this._parser.registerOscHandler(1,new ki(c=>this.setIconName(c))),this._parser.registerOscHandler(2,new ki(c=>this.setTitle(c))),this._parser.registerOscHandler(4,new ki(c=>this.setOrReportIndexedColor(c))),this._parser.registerOscHandler(8,new ki(c=>this.setHyperlink(c))),this._parser.registerOscHandler(10,new ki(c=>this.setOrReportFgColor(c))),this._parser.registerOscHandler(11,new ki(c=>this.setOrReportBgColor(c))),this._parser.registerOscHandler(12,new ki(c=>this.setOrReportCursorColor(c))),this._parser.registerOscHandler(104,new ki(c=>this.restoreIndexedColor(c))),this._parser.registerOscHandler(110,new ki(c=>this.restoreFgColor(c))),this._parser.registerOscHandler(111,new ki(c=>this.restoreBgColor(c))),this._parser.registerOscHandler(112,new ki(c=>this.restoreCursorColor(c))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let c in Bt)this._parser.registerEscHandler({intermediates:"(",final:c},()=>this.selectCharset("("+c)),this._parser.registerEscHandler({intermediates:")",final:c},()=>this.selectCharset(")"+c)),this._parser.registerEscHandler({intermediates:"*",final:c},()=>this.selectCharset("*"+c)),this._parser.registerEscHandler({intermediates:"+",final:c},()=>this.selectCharset("+"+c)),this._parser.registerEscHandler({intermediates:"-",final:c},()=>this.selectCharset("-"+c)),this._parser.registerEscHandler({intermediates:".",final:c},()=>this.selectCharset("."+c)),this._parser.registerEscHandler({intermediates:"/",final:c},()=>this.selectCharset("/"+c));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(c=>(this._logService.error("Parsing error: ",c),c)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new S8((c,u)=>this.requestStatusString(c,u)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,i,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=r}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((t,i)=>setTimeout(()=>i("#SLOW_TIMEOUT"),M8))]).catch(t=>{if(t!=="#SLOW_TIMEOUT")throw t;console.warn(`async parser handler taking longer than ${M8} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,r=this._activeBuffer.x,s=this._activeBuffer.y,n=0,a=this._parseStack.paused;if(a){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;r=this._parseStack.cursorStartX,s=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>Yr&&(n=this._parseStack.position+Yr)}if(this._logService.logLevel<=1&&this._logService.debug(`parsing data ${typeof e=="string"?` "${e}"`:` "${Array.prototype.map.call(e,c=>String.fromCharCode(c)).join("")}"`}`),this._logService.logLevel===0&&this._logService.trace("parsing data (codes)",typeof e=="string"?e.split("").map(c=>c.charCodeAt(0)):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<Yr&&(this._parseBuffer=new Uint32Array(Math.min(e.length,Yr))),a||this._dirtyRowTracker.clearRange(),e.length>Yr)for(let c=n;c<e.length;c+=Yr){let u=c+Yr<e.length?c+Yr:e.length,h=typeof e=="string"?this._stringDecoder.decode(e.substring(c,u),this._parseBuffer):this._utf8Decoder.decode(e.subarray(c,u),this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,h))return this._preserveStack(r,s,h,c),this._logSlowResolvingAsync(i),i}else if(!a){let c=typeof e=="string"?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(i=this._parser.parse(this._parseBuffer,c))return this._preserveStack(r,s,c,0),this._logSlowResolvingAsync(i),i}(this._activeBuffer.x!==r||this._activeBuffer.y!==s)&&this._onCursorMove.fire();let o=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),l=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);l<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(l,this._bufferService.rows-1),end:Math.min(o,this._bufferService.rows-1)})}print(e,t,i){let r,s,n=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,o=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,u=this._curAttrData,h=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&i-t>0&&h.getWidth(this._activeBuffer.x-1)===2&&h.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let d=this._parser.precedingJoinState;for(let f=t;f<i;++f){if(r=e[f],r<127&&n){let p=n[String.fromCharCode(r)];p&&(r=p.charCodeAt(0))}let g=this._unicodeService.charProperties(r,d);s=Vs.extractWidth(g);let _=Vs.extractShouldJoin(g),A=_?Vs.extractWidth(d):0;if(d=g,a&&this._onA11yChar.fire(ts(r)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+s-A>o){if(l){let p=h,S=this._activeBuffer.x-A;for(this._activeBuffer.x=A,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),h=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),A>0&&h instanceof go&&h.copyCellsFrom(p,S,0,A,!1);S<o;)p.setCellFromCodepoint(S++,0,1,u)}else if(this._activeBuffer.x=o-1,s===2)continue}if(_&&this._activeBuffer.x){let p=h.getWidth(this._activeBuffer.x-1)?1:2;h.addCodepointToCell(this._activeBuffer.x-p,r,s);for(let S=s-A;--S>=0;)h.setCellFromCodepoint(this._activeBuffer.x++,0,0,u);continue}if(c&&(h.insertCells(this._activeBuffer.x,s-A,this._activeBuffer.getNullCell(u)),h.getWidth(o-1)===2&&h.setCellFromCodepoint(o-1,0,1,u)),h.setCellFromCodepoint(this._activeBuffer.x++,r,s,u),s>0)for(;--s;)h.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=d,this._activeBuffer.x<o&&i-t>0&&h.getWidth(this._activeBuffer.x)===0&&!h.hasContent(this._activeBuffer.x)&&h.setCellFromCodepoint(this._activeBuffer.x,0,1,u),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final==="t"&&!e.prefix&&!e.intermediates?this._parser.registerCsiHandler(e,i=>k8(i.params[0],this._optionsService.rawOptions.windowOptions)?t(i):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new S8(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new ki(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),(t===2||t===0)&&(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,r=!1,s=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),s),r&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){let i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i&&(i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1)}eraseInDisplay(e,t=!1){var r;this._restrictCursor(this._bufferService.cols);let i;switch(e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);i<this._bufferService.rows;i++)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(i);break;case 1:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(i=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,i-1);i--&&!((r=this._activeBuffer.lines.get(this._activeBuffer.ybase+i))!=null&&r.getTrimmedLength()););for(;i>=0;i--)this._bufferService.scroll(this._eraseAttrData())}else{for(i=this._bufferService.rows,this._dirtyRowTracker.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0)}break;case 3:let s=this._activeBuffer.lines.length-this._bufferService.rows;s>0&&(this._activeBuffer.lines.trimStart(s),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-s,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-s,0),this._onScroll.fire(0));break}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t);break}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let i=this._activeBuffer.ybase+this._activeBuffer.y,r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,s=this._bufferService.rows-1+this._activeBuffer.ybase-r+1;for(;t--;)this._activeBuffer.lines.splice(s-1,1),this._activeBuffer.lines.splice(i,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let i=this._activeBuffer.ybase+this._activeBuffer.y,r;for(r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-r;t--;)this._activeBuffer.lines.splice(i,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(Tt));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);r.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);r.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);r.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let i=this._activeBuffer.scrollTop;i<=this._activeBuffer.scrollBottom;++i){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);r.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){let t=this._parser.precedingJoinState;if(!t)return!0;let i=e.params[0]||1,r=Vs.extractWidth(t),s=this._activeBuffer.x-r,n=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(s),a=new Uint32Array(n.length*i),o=0;for(let c=0;c<n.length;){let u=n.codePointAt(c)||0;a[o++]=u,c+=u>65535?2:1}let l=o;for(let c=1;c<i;++c)a.copyWithin(l,0,o),l+=o;return this.print(a,0,l),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(ve.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(ve.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(ve.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(ve.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(ve.ESC+"[>83;40003;0c")),!0}_is(e){return(this._optionsService.rawOptions.termName+"").indexOf(e)===0}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0;break}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,Hs),this._charsetService.setgCharset(1,Hs),this._charsetService.setgCharset(2,Hs),this._charsetService.setgCharset(3,Hs);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!0;break}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1;break}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),e.params[t]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!1,this._onRequestRefreshRows.fire(void 0);break}return!0}requestMode(e,t){(_=>(_[_.NOT_RECOGNIZED=0]="NOT_RECOGNIZED",_[_.SET=1]="SET",_[_.RESET=2]="RESET",_[_.PERMANENTLY_SET=3]="PERMANENTLY_SET",_[_.PERMANENTLY_RESET=4]="PERMANENTLY_RESET"))(void 0||(i={}));let r=this._coreService.decPrivateModes,{activeProtocol:s,activeEncoding:n}=this._coreMouseService,a=this._coreService,{buffers:o,cols:l}=this._bufferService,{active:c,alt:u}=o,h=this._optionsService.rawOptions,d=(_,A)=>(a.triggerDataEvent(`${ve.ESC}[${t?"":"?"}${_};${A}$y`),!0),f=_=>_?1:2,g=e.params[0];return t?g===2?d(g,4):g===4?d(g,f(a.modes.insertMode)):g===12?d(g,3):g===20?d(g,f(h.convertEol)):d(g,0):g===1?d(g,f(r.applicationCursorKeys)):g===3?d(g,h.windowOptions.setWinLines?l===80?2:l===132?1:0:0):g===6?d(g,f(r.origin)):g===7?d(g,f(r.wraparound)):g===8?d(g,3):g===9?d(g,f(s==="X10")):g===12?d(g,f(h.cursorBlink)):g===25?d(g,f(!a.isCursorHidden)):g===45?d(g,f(r.reverseWraparound)):g===66?d(g,f(r.applicationKeypad)):g===67?d(g,4):g===1e3?d(g,f(s==="VT200")):g===1002?d(g,f(s==="DRAG")):g===1003?d(g,f(s==="ANY")):g===1004?d(g,f(r.sendFocus)):g===1005?d(g,4):g===1006?d(g,f(n==="SGR")):g===1015?d(g,4):g===1016?d(g,f(n==="SGR_PIXELS")):g===1048?d(g,1):g===47||g===1047||g===1049?d(g,f(c===u)):g===2004?d(g,f(r.bracketedPasteMode)):g===2026?d(g,f(r.synchronizedOutput)):d(g,0)}_updateAttrColor(e,t,i,r,s){return t===2?(e|=50331648,e&=-16777216,e|=ml.fromColorRGB([i,r,s])):t===5&&(e&=-50331904,e|=33554432|i&255),e}_extractColor(e,t,i){let r=[0,0,-1,0,0,0],s=0,n=0;do{if(r[n+s]=e.params[t+n],e.hasSubParams(t+n)){let a=e.getSubParams(t+n),o=0;do r[1]===5&&(s=1),r[n+o+1+s]=a[o];while(++o<a.length&&o+n+1+s<r.length);break}if(r[1]===5&&n+s>=2||r[1]===2&&n+s>=5)break;r[1]&&(s=1)}while(++n+t<e.length&&n+s<r.length);for(let a=2;a<r.length;++a)r[a]===-1&&(r[a]=0);switch(r[0]){case 38:i.fg=this._updateAttrColor(i.fg,r[1],r[3],r[4],r[5]);break;case 48:i.bg=this._updateAttrColor(i.bg,r[1],r[3],r[4],r[5]);break;case 58:i.extended=i.extended.clone(),i.extended.underlineColor=this._updateAttrColor(i.extended.underlineColor,r[1],r[3],r[4],r[5])}return n}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=Tt.fg,e.bg=Tt.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,i,r=this._curAttrData;for(let s=0;s<t;s++)i=e.params[s],i>=30&&i<=37?(r.fg&=-50331904,r.fg|=16777216|i-30):i>=40&&i<=47?(r.bg&=-50331904,r.bg|=16777216|i-40):i>=90&&i<=97?(r.fg&=-50331904,r.fg|=16777216|i-90|8):i>=100&&i<=107?(r.bg&=-50331904,r.bg|=16777216|i-100|8):i===0?this._processSGR0(r):i===1?r.fg|=134217728:i===3?r.bg|=67108864:i===4?(r.fg|=268435456,this._processUnderline(e.hasSubParams(s)?e.getSubParams(s)[0]:1,r)):i===5?r.fg|=536870912:i===7?r.fg|=67108864:i===8?r.fg|=1073741824:i===9?r.fg|=2147483648:i===2?r.bg|=134217728:i===21?this._processUnderline(2,r):i===22?(r.fg&=-134217729,r.bg&=-134217729):i===23?r.bg&=-67108865:i===24?(r.fg&=-268435457,this._processUnderline(0,r)):i===25?r.fg&=-536870913:i===27?r.fg&=-67108865:i===28?r.fg&=-1073741825:i===29?r.fg&=2147483647:i===39?(r.fg&=-67108864,r.fg|=Tt.fg&16777215):i===49?(r.bg&=-67108864,r.bg|=Tt.bg&16777215):i===38||i===48||i===58?s+=this._extractColor(e,s,r):i===53?r.bg|=1073741824:i===55?r.bg&=-1073741825:i===59?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):i===100?(r.fg&=-67108864,r.fg|=Tt.fg&16777215,r.bg&=-67108864,r.bg|=Tt.bg&16777215):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${ve.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,i=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${ve.ESC}[${t};${i}R`);break}return!0}deviceStatusPrivate(e){switch(e.params[0]){case 6:let t=this._activeBuffer.y+1,i=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${ve.ESC}[?${t};${i}R`);break}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=Tt.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.length===0?1:e.params[0];if(t===0)this._coreService.decPrivateModes.cursorStyle=void 0,this._coreService.decPrivateModes.cursorBlink=void 0;else{switch(t){case 1:case 2:this._coreService.decPrivateModes.cursorStyle="block";break;case 3:case 4:this._coreService.decPrivateModes.cursorStyle="underline";break;case 5:case 6:this._coreService.decPrivateModes.cursorStyle="bar";break}let i=t%2===1;this._coreService.decPrivateModes.cursorBlink=i}return!0}setScrollRegion(e){let t=e.params[0]||1,i;return(e.length<2||(i=e.params[1])>this._bufferService.rows||i===0)&&(i=this._bufferService.rows),i>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(!k8(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(0);break;case 16:this._onRequestWindowsOptionsReport.fire(1);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${ve.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>A8&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>A8&&this._iconNameStack.shift());break;case 23:(t===0||t===2)&&this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),(t===0||t===1)&&this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop());break}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],i=e.split(";");for(;i.length>1;){let r=i.shift(),s=i.shift();if(/^\d+$/.exec(r)){let n=parseInt(r);if(E8(n))if(s==="?")t.push({type:0,index:n});else{let a=C8(s);a&&t.push({type:1,index:n,color:a})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(";");if(t===-1)return!0;let i=e.slice(0,t).trim(),r=e.slice(t+1);return r?this._createHyperlink(i,r):i.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let i=e.split(":"),r,s=i.findIndex(n=>n.startsWith("id="));return s!==-1&&(r=i[s].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:r,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let i=e.split(";");for(let r=0;r<i.length&&!(t>=this._specialColors.length);++r,++t)if(i[r]==="?")this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let s=C8(i[r]);s&&this._onColor.fire([{type:1,index:this._specialColors[t],color:s}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],i=e.split(";");for(let r=0;r<i.length;++r)if(/^\d+$/.exec(i[r])){let s=parseInt(i[r]);E8(s)&&t.push({type:2,index:s})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,Hs),!0}selectCharset(e){return e.length!==2?(this.selectDefaultCharset(),!0):(e[0]==="/"||this._charsetService.setgCharset(kF[e[0]],Bt[e[1]]||Hs),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=Tt.clone(),this._eraseAttrDataInternal=Tt.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=this._curAttrData.bg&67108863,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new Bi;e.content=1<<22|69,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){let i=this._activeBuffer.ybase+this._activeBuffer.y+t,r=this._activeBuffer.lines.get(i);r&&(r.fill(e),r.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let i=a=>(this._coreService.triggerDataEvent(`${ve.ESC}${a}${ve.ESC}\\`),!0),r=this._bufferService.buffer,s=this._optionsService.rawOptions;return i(e==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:e==='"p'?'P1$r61;1"p':e==="r"?`P1$r${r.scrollTop+1};${r.scrollBottom+1}r`:e==="m"?"P1$r0m":e===" q"?`P1$r${{block:2,underline:4,bar:6}[s.cursorStyle]-(s.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},th=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(L8=e,e=t,t=L8),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};th=Lt([xe(0,bi)],th);function E8(e){return 0<=e&&e<256}var LF=5e7,x8=12,EF=50,xF=class extends We{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this._register(new Ce),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t){this._syncCalls=0;return}if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;this._isSyncWriting=!0;let i;for(;i=this._writeBuffer.shift();){this._action(i);let r=this._callbacks.shift();r&&r()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>LF)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput){this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),this._innerWrite();return}setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let i=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let r=this._writeBuffer[this._bufferOffset],s=this._action(r,t);if(s){let a=o=>performance.now()-i>=x8?setTimeout(()=>this._innerWrite(0,o)):this._innerWrite(i,o);s.catch(o=>(queueMicrotask(()=>{throw o}),Promise.resolve(!1))).then(a);return}let n=this._callbacks[this._bufferOffset];if(n&&n(),this._bufferOffset++,this._pendingData-=r.length,performance.now()-i>=x8)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>EF&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}},ih=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let o=t.addMarker(t.ybase+t.y),l={data:e,id:this._nextId++,lines:[o]};return o.onDispose(()=>this._removeMarkerFromLink(l,o)),this._dataByLinkId.set(l.id,l),l.id}let i=e,r=this._getEntryIdKey(i),s=this._entriesWithId.get(r);if(s)return this.addLineToLink(s.id,t.ybase+t.y),s.id;let n=t.addMarker(t.ybase+t.y),a={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[n]};return n.onDispose(()=>this._removeMarkerFromLink(a,n)),this._entriesWithId.set(a.key,a),this._dataByLinkId.set(a.id,a),a.id}addLineToLink(e,t){let i=this._dataByLinkId.get(e);if(i&&i.lines.every(r=>r.line!==t)){let r=this._bufferService.buffer.addMarker(t);i.lines.push(r),r.onDispose(()=>this._removeMarkerFromLink(i,r))}}getLinkData(e){var t;return(t=this._dataByLinkId.get(e))==null?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let i=e.lines.indexOf(t);i!==-1&&(e.lines.splice(i,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};ih=Lt([xe(0,bi)],ih);var $8=!1,$F=class extends We{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new Nn),this._onBinary=this._register(new Ce),this.onBinary=this._onBinary.event,this._onData=this._register(new Ce),this.onData=this._onData.event,this._onLineFeed=this._register(new Ce),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new Ce),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new Ce),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new Ce),this._instantiationService=new eF,this.optionsService=this._register(new uF(e)),this._instantiationService.setService(yi,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(Xu)),this._instantiationService.setService(bi,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(Yu)),this._instantiationService.setService(yg,this._logService),this.coreService=this._register(this._instantiationService.createInstance(Ju)),this._instantiationService.setService(Xs,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(Qu)),this._instantiationService.setService(bg,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(Vs)),this._instantiationService.setService(YV,this.unicodeService),this._charsetService=this._instantiationService.createInstance(pF),this._instantiationService.setService(GV,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(ih),this._instantiationService.setService(wg,this._oscLinkService),this._inputHandler=this._register(new MF(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(ei.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(ei.forward(this._bufferService.onResize,this._onResize)),this._register(ei.forward(this.coreService.onData,this._onData)),this._register(ei.forward(this.coreService.onBinary,this._onBinary)),this._register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom(!0))),this._register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this._register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this._register(this._bufferService.onScroll(()=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this._register(new xF((t,i)=>this._inputHandler.parse(t,i))),this._register(ei.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new Ce),this._onScroll.event(e=>{var t;(t=this._onScrollApi)==null||t.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=3&&!$8&&(this._logService.warn("writeSync is unreliable and will be removed soon."),$8=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,Qg),t=Math.max(t,ev),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t){this._bufferService.scrollLines(e,t)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend==="conpty"&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(w8.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>(w8(this._bufferService),!1))),this._windowsWrappingHeuristics.value=vt(()=>{for(let t of e)t.dispose()})}}},TF={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};function NF(e,t,i,r){var a;let s={type:0,cancel:!1,key:void 0},n=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key==="UIKeyInputUpArrow"?t?s.key=ve.ESC+"OA":s.key=ve.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?s.key=ve.ESC+"OD":s.key=ve.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?s.key=ve.ESC+"OC":s.key=ve.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?s.key=ve.ESC+"OB":s.key=ve.ESC+"[B");break;case 8:s.key=e.ctrlKey?"\b":ve.DEL,e.altKey&&(s.key=ve.ESC+s.key);break;case 9:if(e.shiftKey){s.key=ve.ESC+"[Z";break}s.key=ve.HT,s.cancel=!0;break;case 13:s.key=e.altKey?ve.ESC+ve.CR:ve.CR,s.cancel=!0;break;case 27:s.key=ve.ESC,e.altKey&&(s.key=ve.ESC+ve.ESC),s.cancel=!0;break;case 37:if(e.metaKey)break;n?s.key=ve.ESC+"[1;"+(n+1)+"D":t?s.key=ve.ESC+"OD":s.key=ve.ESC+"[D";break;case 39:if(e.metaKey)break;n?s.key=ve.ESC+"[1;"+(n+1)+"C":t?s.key=ve.ESC+"OC":s.key=ve.ESC+"[C";break;case 38:if(e.metaKey)break;n?s.key=ve.ESC+"[1;"+(n+1)+"A":t?s.key=ve.ESC+"OA":s.key=ve.ESC+"[A";break;case 40:if(e.metaKey)break;n?s.key=ve.ESC+"[1;"+(n+1)+"B":t?s.key=ve.ESC+"OB":s.key=ve.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(s.key=ve.ESC+"[2~");break;case 46:n?s.key=ve.ESC+"[3;"+(n+1)+"~":s.key=ve.ESC+"[3~";break;case 36:n?s.key=ve.ESC+"[1;"+(n+1)+"H":t?s.key=ve.ESC+"OH":s.key=ve.ESC+"[H";break;case 35:n?s.key=ve.ESC+"[1;"+(n+1)+"F":t?s.key=ve.ESC+"OF":s.key=ve.ESC+"[F";break;case 33:e.shiftKey?s.type=2:e.ctrlKey?s.key=ve.ESC+"[5;"+(n+1)+"~":s.key=ve.ESC+"[5~";break;case 34:e.shiftKey?s.type=3:e.ctrlKey?s.key=ve.ESC+"[6;"+(n+1)+"~":s.key=ve.ESC+"[6~";break;case 112:n?s.key=ve.ESC+"[1;"+(n+1)+"P":s.key=ve.ESC+"OP";break;case 113:n?s.key=ve.ESC+"[1;"+(n+1)+"Q":s.key=ve.ESC+"OQ";break;case 114:n?s.key=ve.ESC+"[1;"+(n+1)+"R":s.key=ve.ESC+"OR";break;case 115:n?s.key=ve.ESC+"[1;"+(n+1)+"S":s.key=ve.ESC+"OS";break;case 116:n?s.key=ve.ESC+"[15;"+(n+1)+"~":s.key=ve.ESC+"[15~";break;case 117:n?s.key=ve.ESC+"[17;"+(n+1)+"~":s.key=ve.ESC+"[17~";break;case 118:n?s.key=ve.ESC+"[18;"+(n+1)+"~":s.key=ve.ESC+"[18~";break;case 119:n?s.key=ve.ESC+"[19;"+(n+1)+"~":s.key=ve.ESC+"[19~";break;case 120:n?s.key=ve.ESC+"[20;"+(n+1)+"~":s.key=ve.ESC+"[20~";break;case 121:n?s.key=ve.ESC+"[21;"+(n+1)+"~":s.key=ve.ESC+"[21~";break;case 122:n?s.key=ve.ESC+"[23;"+(n+1)+"~":s.key=ve.ESC+"[23~";break;case 123:n?s.key=ve.ESC+"[24;"+(n+1)+"~":s.key=ve.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?s.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?s.key=ve.NUL:e.keyCode>=51&&e.keyCode<=55?s.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?s.key=ve.DEL:e.keyCode===219?s.key=ve.ESC:e.keyCode===220?s.key=ve.FS:e.keyCode===221&&(s.key=ve.GS);else if((!i||r)&&e.altKey&&!e.metaKey){let o=(a=TF[e.keyCode])==null?void 0:a[e.shiftKey?1:0];if(o)s.key=ve.ESC+o;else if(e.keyCode>=65&&e.keyCode<=90){let l=e.ctrlKey?e.keyCode-64:e.keyCode+32,c=String.fromCharCode(l);e.shiftKey&&(c=c.toUpperCase()),s.key=ve.ESC+c}else if(e.keyCode===32)s.key=ve.ESC+(e.ctrlKey?ve.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let l=e.code.slice(3,4);e.shiftKey||(l=l.toLowerCase()),s.key=ve.ESC+l,s.cancel=!0}}else i&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(s.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?s.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(s.key=ve.US),e.key==="@"&&(s.key=ve.NUL));break}return s}var Et=0,HF=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new N0,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new N0,this._isFlushingDeleted=!1}clear(){this._array.length=0,this._insertedValues.length=0,this._flushInsertedTask.clear(),this._isFlushingInserted=!1,this._deletedIndices.length=0,this._flushDeletedTask.clear(),this._isFlushingDeleted=!1}insert(e){this._flushCleanupDeleted(),this._insertedValues.length===0&&this._flushInsertedTask.enqueue(()=>this._flushInserted()),this._insertedValues.push(e)}_flushInserted(){let e=this._insertedValues.sort((s,n)=>this._getKey(s)-this._getKey(n)),t=0,i=0,r=new Array(this._array.length+this._insertedValues.length);for(let s=0;s<r.length;s++)i>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[i])?(r[s]=e[t],t++):r[s]=this._array[i++];this._array=r,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(Et=this._search(t),Et===-1)||this._getKey(this._array[Et])!==t)return!1;do if(this._array[Et]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(Et),!0;while(++Et<this._array.length&&this._getKey(this._array[Et])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((s,n)=>s-n),t=0,i=new Array(this._array.length-e.length),r=0;for(let s=0;s<this._array.length;s++)e[t]===s?t++:i[r++]=this._array[s];this._array=i,this._deletedIndices.length=0,this._isFlushingDeleted=!1}_flushCleanupDeleted(){!this._isFlushingDeleted&&this._deletedIndices.length>0&&this._flushDeletedTask.flush()}*getKeyIterator(e){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(Et=this._search(e),!(Et<0||Et>=this._array.length)&&this._getKey(this._array[Et])===e))do yield this._array[Et];while(++Et<this._array.length&&this._getKey(this._array[Et])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(Et=this._search(e),!(Et<0||Et>=this._array.length)&&this._getKey(this._array[Et])===e))do t(this._array[Et]);while(++Et<this._array.length&&this._getKey(this._array[Et])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,i=this._array.length-1;for(;i>=t;){let r=t+i>>1,s=this._getKey(this._array[r]);if(s>e)i=r-1;else if(s<e)t=r+1;else{for(;r>0&&this._getKey(this._array[r-1])===e;)r--;return r}}return t}},h1=0,T8=0,PF=class extends We{constructor(){super(),this._decorations=new HF(e=>e==null?void 0:e.marker.line),this._onDecorationRegistered=this._register(new Ce),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new Ce),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(vt(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new OF(e);if(t){let i=t.marker.onDispose(()=>t.dispose()),r=t.onDispose(()=>{r.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),i.dispose())});this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){let r=0,s=0;for(let n of this._decorations.getKeyIterator(t))r=n.options.x??0,s=r+(n.options.width??1),e>=r&&e<s&&(!i||(n.options.layer??"bottom")===i)&&(yield n)}forEachDecorationAtCell(e,t,i,r){this._decorations.forEachByKey(t,s=>{h1=s.options.x??0,T8=h1+(s.options.width??1),e>=h1&&e<T8&&(!i||(s.options.layer??"bottom")===i)&&r(s)})}},OF=class extends cs{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new Ce),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new Ce),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=yt.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=yt.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},IF=1e3,RF=class{constructor(e,t=IF){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t;let r=performance.now();if(r-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=r,this._innerRefresh();else if(!this._additionalRefreshRequested){let s=r-this._lastRefreshMs,n=this._debounceThresholdMS-s;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},n)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},N8=20,H0=class extends We{constructor(e,t,i,r){super(),this._terminal=e,this._coreBrowserService=i,this._renderService=r,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="";let s=this._coreBrowserService.mainDocument;this._accessibilityContainer=s.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=s.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let n=0;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);if(this._topBoundaryFocusListener=n=>this._handleBoundaryFocus(n,0),this._bottomBoundaryFocusListener=n=>this._handleBoundaryFocus(n,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=s.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new RF(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this._register(this._terminal.onResize(n=>this._handleResize(n.rows))),this._register(this._terminal.onRender(n=>this._refreshRows(n.start,n.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(n=>this._handleChar(n))),this._register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
91
|
+
`))),this._register(this._terminal.onA11yTab(n=>this._handleTab(n))),this._register(this._terminal.onKey(n=>this._handleKey(n.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(Be(s,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(vt(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<N8+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
|
92
|
+
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===N8+1&&(this._liveRegion.textContent+=Su.get())))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let i=this._terminal.buffer,r=i.lines.length.toString();for(let s=e;s<=t;s++){let n=i.lines.get(i.ydisp+s),a=[],o=(n==null?void 0:n.translateToString(!0,void 0,void 0,a))||"",l=(i.ydisp+s+1).toString(),c=this._rowElements[s];c&&(o.length===0?(c.textContent=" ",this._rowColumns.set(c,[0,1])):(c.textContent=o,this._rowColumns.set(c,a)),c.setAttribute("aria-posinset",l),c.setAttribute("aria-setsize",r),this._alignRowWidth(c))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let i=e.target,r=this._rowElements[t===0?1:this._rowElements.length-2],s=i.getAttribute("aria-posinset"),n=t===0?"1":`${this._terminal.buffer.lines.length}`;if(s===n||e.relatedTarget!==r)return;let a,o;if(t===0?(a=i,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(a=this._rowElements.shift(),o=i,this._rowContainer.removeChild(a)),a.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{let l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){var o;if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error("anchorNode and/or focusNode are null");return}let t={node:e.anchorNode,offset:e.anchorOffset},i={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(i.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===i.node&&t.offset>i.offset)&&([t,i]=[i,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let r=this._rowElements.slice(-1)[0];if(i.node.compareDocumentPosition(r)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(i={node:r,offset:((o=r.textContent)==null?void 0:o.length)??0}),!this._rowContainer.contains(i.node))return;let s=({node:l,offset:c})=>{let u=l instanceof Text?l.parentNode:l,h=parseInt(u==null?void 0:u.getAttribute("aria-posinset"),10)-1;if(isNaN(h))return console.warn("row is invalid. Race condition?"),null;let d=this._rowColumns.get(u);if(!d)return console.warn("columns is null. Race condition?"),null;let f=c<d.length?d[c]:d.slice(-1)[0]+1;return f>=this._terminal.cols&&(++h,f=0),{row:h,column:f}},n=s(t),a=s(i);if(!(!n||!a)){if(n.row>a.row||n.row===a.row&&n.column>=a.column)throw new Error("invalid range");this._terminal.select(n.column,n.row,(a.row-n.row)*this._terminal.cols-n.column+a.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e]),this._alignRowWidth(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}_alignRowWidth(e){var s,n;e.style.transform="";let t=e.getBoundingClientRect().width,i=(n=(s=this._rowColumns.get(e))==null?void 0:s.slice(-1))==null?void 0:n[0];if(!i)return;let r=i*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${r/t})`}};H0=Lt([xe(1,od),xe(2,zr),xe(3,Ur)],H0);var rh=class extends We{constructor(e,t,i,r,s){super(),this._element=e,this._mouseService=t,this._renderService=i,this._bufferService=r,this._linkProviderService=s,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new Ce),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new Ce),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(vt(()=>{var n;Ks(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,(n=this._activeProviderReplies)==null||n.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(Be(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(Be(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(Be(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(Be(this._element,"mouseup",this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let i=e.composedPath();for(let r=0;r<i.length;r++){let s=i[r];if(s.classList.contains("xterm"))break;if(s.classList.contains("xterm-hover"))return}(!this._lastBufferCell||t.x!==this._lastBufferCell.x||t.y!==this._lastBufferCell.y)&&(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized){this._clearCurrentLink(),this._askForLink(e,!1),this._wasResized=!1;return}this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){var r,s;(!this._activeProviderReplies||!t)&&((r=this._activeProviderReplies)==null||r.forEach(n=>{n==null||n.forEach(a=>{a.link.dispose&&a.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let i=!1;for(let[n,a]of this._linkProviderService.linkProviders.entries())t?(s=this._activeProviderReplies)!=null&&s.get(n)&&(i=this._checkLinkProviderResult(n,e,i)):a.provideLinks(e.y,o=>{var c,u;if(this._isMouseOut)return;let l=o==null?void 0:o.map(h=>({link:h}));(c=this._activeProviderReplies)==null||c.set(n,l),i=this._checkLinkProviderResult(n,e,i),((u=this._activeProviderReplies)==null?void 0:u.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let i=new Set;for(let r=0;r<t.size;r++){let s=t.get(r);if(s)for(let n=0;n<s.length;n++){let a=s[n],o=a.link.range.start.y<e?0:a.link.range.start.x,l=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x;for(let c=o;c<=l;c++){if(i.has(c)){s.splice(n--,1);break}i.add(c)}}}}_checkLinkProviderResult(e,t,i){var n;if(!this._activeProviderReplies)return i;let r=this._activeProviderReplies.get(e),s=!1;for(let a=0;a<e;a++)(!this._activeProviderReplies.has(a)||this._activeProviderReplies.get(a))&&(s=!0);if(!s&&r){let a=r.find(o=>this._linkAtPosition(o.link,t));a&&(i=!0,this._handleNewLink(a))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!i)for(let a=0;a<this._activeProviderReplies.size;a++){let o=(n=this._activeProviderReplies.get(a))==null?void 0:n.find(l=>this._linkAtPosition(l.link,t));if(o){i=!0,this._handleNewLink(o);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&DF(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,Ks(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0?!0:e.link.decorations.underline,pointerCursor:e.link.decorations===void 0?!0:e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var i,r;return(r=(i=this._currentLink)==null?void 0:i.state)==null?void 0:r.decorations.pointerCursor},set:i=>{var r;(r=this._currentLink)!=null&&r.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",i))}},underline:{get:()=>{var i,r;return(r=(i=this._currentLink)==null?void 0:i.state)==null?void 0:r.decorations.underline},set:i=>{var r,s,n;(r=this._currentLink)!=null&&r.state&&((n=(s=this._currentLink)==null?void 0:s.state)==null?void 0:n.decorations.underline)!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,i))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(i=>{if(!this._currentLink)return;let r=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,s=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=s&&(this._clearCurrentLink(r,s),this._lastMouseEvent)){let n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._askForLink(n,!1)}})))}_linkHover(e,t,i){var r;(r=this._currentLink)!=null&&r.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){let i=e.range,r=this._bufferService.buffer.ydisp,s=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-r-1,i.end.x,i.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(s)}_linkLeave(e,t,i){var r;(r=this._currentLink)!=null&&r.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){let i=e.range.start.y*this._bufferService.cols+e.range.start.x,r=e.range.end.y*this._bufferService.cols+e.range.end.x,s=t.y*this._bufferService.cols+t.x;return i<=s&&s<=r}_positionFromMouseEvent(e,t,i){let r=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,r,s){return{x1:e,y1:t,x2:i,y2:r,cols:this._bufferService.cols,fg:s}}};rh=Lt([xe(1,ld),xe(2,Ur),xe(3,bi),xe(4,Cg)],rh);function DF(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var VF=class extends $F{constructor(e={}){super(e),this._linkifier=this._register(new Nn),this.browser=Fg,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new Nn),this._onCursorMove=this._register(new Ce),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new Ce),this.onKey=this._onKey.event,this._onRender=this._register(new Ce),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new Ce),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new Ce),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new Ce),this.onBell=this._onBell.event,this._onFocus=this._register(new Ce),this._onBlur=this._register(new Ce),this._onA11yCharEmitter=this._register(new Ce),this._onA11yTabEmitter=this._register(new Ce),this._onWillOpen=this._register(new Ce),this._setup(),this._decorationService=this._instantiationService.createInstance(PF),this._instantiationService.setService(gl,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(EZ),this._instantiationService.setService(Cg,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(Au)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(t=>this.refresh((t==null?void 0:t.start)??0,(t==null?void 0:t.end)??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(t=>this._reportWindowsOptions(t))),this._register(this._inputHandler.onColor(t=>this._handleColorEvent(t))),this._register(ei.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(ei.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(ei.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(ei.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(vt(()=>{var t,i;this._customKeyEventHandler=void 0,(i=(t=this.element)==null?void 0:t.parentNode)==null||i.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let i,r="";switch(t.index){case 256:i="foreground",r="10";break;case 257:i="background",r="11";break;case 258:i="cursor",r="12";break;default:i="ansi",r="4;"+t.index}switch(t.type){case 0:let s=_t.toColorRGB(i==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[i]);this.coreService.triggerDataEvent(`${ve.ESC}]${r};${AF(s)}${Bg.ST}`);break;case 1:if(i==="ansi")this._themeService.modifyColors(n=>n.ansi[t.index]=Nt.toColor(...t.color));else{let n=i;this._themeService.modifyColors(a=>a[n]=Nt.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index);break}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(H0,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(ve.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return(e=this.textarea)==null?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(ve.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let i=Math.min(this.buffer.x,this.cols-1),r=this._renderService.dimensions.css.cell.height,s=t.getWidth(i),n=this._renderService.dimensions.css.cell.width*s,a=this.buffer.y*this._renderService.dimensions.css.cell.height,o=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=o+"px",this.textarea.style.top=a+"px",this.textarea.style.width=n+"px",this.textarea.style.height=r+"px",this.textarea.style.lineHeight=r+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(Be(this.element,"copy",t=>{this.hasSelection()&&zV(t,this._selectionService)}));let e=t=>UV(t,this.textarea,this.coreService,this.optionsService);this._register(Be(this.textarea,"paste",e)),this._register(Be(this.element,"paste",e)),zg?this._register(Be(this.element,"mousedown",t=>{t.button===2&&F6(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(Be(this.element,"contextmenu",t=>{F6(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),md&&this._register(Be(this.element,"auxclick",t=>{t.button===1&&_g(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(Be(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(Be(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(Be(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(Be(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(Be(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(Be(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(Be(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){var s;if(!e)throw new Error("Terminal requires a parent element.");if(e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((s=this.element)==null?void 0:s.ownerDocument.defaultView)&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._register(Be(this.screenElement,"mousemove",n=>this.updateCursorStyle(n))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let i=this.textarea=this._document.createElement("textarea");this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",wu.get()),jg||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange("disableStdin",()=>i.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(MZ,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(zr,this._coreBrowserService),this._register(Be(this.textarea,"focus",n=>this._handleTextAreaFocus(n))),this._register(Be(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(Wu,this._document,this._helperContainer),this._instantiationService.setService(pc,this._charSizeService),this._themeService=this._instantiationService.createInstance(Gu),this._instantiationService.setService(pa,this._themeService),this._characterJoinerService=this._instantiationService.createInstance($0),this._instantiationService.setService(Sg,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(Ku,this.rows,this.screenElement)),this._instantiationService.setService(Ur,this._renderService),this._register(this._renderService.onRenderedViewportChange(n=>this._onRender.fire(n))),this.onResize(n=>this._renderService.resize(n.cols,n.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(Fu,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(ju),this._instantiationService.setService(ld,this._mouseService);let r=this._linkifier.value=this._register(this._instantiationService.createInstance(rh,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(Bu,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(n=>{super.scrollLines(n,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(qu,this.element,this.screenElement,r)),this._instantiationService.setService(JV,this._selectionService),this._register(this._selectionService.onRequestScrollLines(n=>this.scrollLines(n.amount,n.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(n=>this._renderService.handleSelectionChanged(n.start,n.end,n.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(n=>{this.textarea.value=n,this.textarea.focus(),this.textarea.select()})),this._register(ei.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{var n;this._selectionService.refresh(),(n=this._viewport)==null||n.queueSync()})),this._register(this._instantiationService.createInstance(Zu,this.screenElement)),this._register(Be(this.element,"mousedown",n=>this._selectionService.handleMouseDown(n))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(H0,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",n=>this._handleScreenReaderModeOptionChange(n))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(x0,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",n=>{!this._overviewRulerRenderer&&n&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(x0,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(Uu,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function i(n){var c,u,h,d,f;let a=e._mouseService.getMouseReportCoords(n,e.screenElement);if(!a)return!1;let o,l;switch(n.overrideType||n.type){case"mousemove":l=32,n.buttons===void 0?(o=3,n.button!==void 0&&(o=n.button<3?n.button:3)):o=n.buttons&1?0:n.buttons&4?1:n.buttons&2?2:3;break;case"mouseup":l=0,o=n.button<3?n.button:3;break;case"mousedown":l=1,o=n.button<3?n.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(n)===!1)return!1;let g=n.deltaY;if(g===0||e.coreMouseService.consumeWheelEvent(n,(d=(h=(u=(c=e._renderService)==null?void 0:c.dimensions)==null?void 0:u.device)==null?void 0:h.cell)==null?void 0:d.height,(f=e._coreBrowserService)==null?void 0:f.dpr)===0)return!1;l=g<0?0:1,o=4;break;default:return!1}return l===void 0||o===void 0||o>4?!1:e.coreMouseService.triggerMouseEvent({col:a.col,row:a.row,x:a.x,y:a.y,button:o,action:l,ctrl:n.ctrlKey,alt:n.altKey,shift:n.shiftKey})}let r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},s={mouseup:n=>(i(n),n.buttons||(this._document.removeEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.removeEventListener("mousemove",r.mousedrag)),this.cancel(n)),wheel:n=>(i(n),this.cancel(n,!0)),mousedrag:n=>{n.buttons&&i(n)},mousemove:n=>{n.buttons||i(n)}};this._register(this.coreMouseService.onProtocolChange(n=>{n?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(n)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),n&8?r.mousemove||(t.addEventListener("mousemove",s.mousemove),r.mousemove=s.mousemove):(t.removeEventListener("mousemove",r.mousemove),r.mousemove=null),n&16?r.wheel||(t.addEventListener("wheel",s.wheel,{passive:!1}),r.wheel=s.wheel):(t.removeEventListener("wheel",r.wheel),r.wheel=null),n&2?r.mouseup||(r.mouseup=s.mouseup):(this._document.removeEventListener("mouseup",r.mouseup),r.mouseup=null),n&4?r.mousedrag||(r.mousedrag=s.mousedrag):(this._document.removeEventListener("mousemove",r.mousedrag),r.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(Be(t,"mousedown",n=>{if(n.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(n)))return i(n),r.mouseup&&this._document.addEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.addEventListener("mousemove",r.mousedrag),this.cancel(n)})),this._register(Be(t,"wheel",n=>{var a,o,l,c,u;if(!r.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(n)===!1)return!1;if(!this.buffer.hasScrollback){if(n.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(n,(c=(l=(o=(a=e._renderService)==null?void 0:a.dimensions)==null?void 0:o.device)==null?void 0:l.cell)==null?void 0:c.height,(u=e._coreBrowserService)==null?void 0:u.dpr)===0)return this.cancel(n,!0);let h=ve.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(n.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(h,!0),this.cancel(n,!0)}}},{passive:!1}))}refresh(e,t){var i;(i=this._renderService)==null||i.refreshRows(e,t)}updateCursorStyle(e){var t;(t=this._selectionService)!=null&&t.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){fg(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(!(!this._selectionService||!this._selectionService.hasSelection))return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;(e=this._selectionService)==null||e.clearSelection()}selectAll(){var e;(e=this._selectionService)==null||e.selectAll()}selectLines(e,t){var i;(i=this._selectionService)==null||i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;!t&&(e.key==="Dead"||e.key==="AltGraph")&&(this._unprocessedDeadKey=!0);let i=NF(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),i.type===3||i.type===2){let r=this.rows-1;return this.scrollLines(i.type===2?-r:r),this.cancel(e,!0)}if(i.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((i.key===ve.ETX||i.key===ve.CR)&&(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return t.type==="keypress"?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(BF(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType==="insertText"&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){if(e===this.cols&&t===this.rows){this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure();return}super.resize(e,t)}_afterResize(e,t){var i;(i=this._charSizeService)==null||i.measure()}clear(){if(!(this.buffer.ybase===0&&this.buffer.y===0)){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(Tt));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){var t;this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),(t=this._selectionService)==null||t.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){var e;(e=this._renderService)==null||e.clearTextureAtlas()}_reportFocus(){var e;(e=this.element)!=null&&e.classList.contains("focus")?this.coreService.triggerDataEvent(ve.ESC+"[I"):this.coreService.triggerDataEvent(ve.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let t=this._renderService.dimensions.css.canvas.width.toFixed(0),i=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${ve.ESC}[4;${i};${t}t`);break;case 1:let r=this._renderService.dimensions.css.cell.width.toFixed(0),s=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${ve.ESC}[6;${s};${r}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};function BF(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var ZF=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i<this._addons.length;i++)if(this._addons[i]===e){t=i;break}if(t===-1)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},FF=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new Bi)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}},H8=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new FF(t)}getNullCell(){return new Bi}},zF=class extends We{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new Ce),this.onBufferChange=this._onBufferChange.event,this._normal=new H8(this._core.buffers.normal,"normal"),this._alternate=new H8(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},UF=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,i=>t(i.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(i,r)=>t(i,r.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},WF=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},jF=["cols","rows"],tr=0,KF=class extends We{constructor(e){super(),this._core=this._register(new VF(e)),this._addonManager=this._register(new ZF),this._publicOptions={...this._core.options};let t=r=>this._core.options[r],i=(r,s)=>{this._checkReadonlyOptions(r),this._core.options[r]=s};for(let r in this._core.options){let s={get:t.bind(this,r),set:i.bind(this,r)};Object.defineProperty(this._publicOptions,r,s)}}_checkReadonlyOptions(e){if(jF.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new UF(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new WF(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this._register(new zF(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any";break}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
|
|
93
|
+
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return wu.get()},set promptLabel(e){wu.set(e)},get tooMuchOutput(){return Su.get()},set tooMuchOutput(e){Su.set(e)}}}_verifyIntegers(...e){for(tr of e)if(tr===1/0||isNaN(tr)||tr%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(tr of e)if(tr&&(tr===1/0||isNaN(tr)||tr%1!==0||tr<0))throw new Error("This API only accepts positive integers")}};/**
|
|
94
|
+
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
95
|
+
* @license MIT
|
|
96
|
+
*
|
|
97
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
98
|
+
* @license MIT
|
|
99
|
+
*
|
|
100
|
+
* Originally forked from (with the author's permission):
|
|
101
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
102
|
+
* http://bellard.org/jslinux/
|
|
103
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
104
|
+
*/var qF=2,GF=1,YF=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){var h;if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:((h=this._terminal.options.overviewRuler)==null?void 0:h.width)||14,i=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(i.getPropertyValue("height")),s=Math.max(0,parseInt(i.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),a={top:parseInt(n.getPropertyValue("padding-top")),bottom:parseInt(n.getPropertyValue("padding-bottom")),right:parseInt(n.getPropertyValue("padding-right")),left:parseInt(n.getPropertyValue("padding-left"))},o=a.top+a.bottom,l=a.right+a.left,c=r-o,u=s-l-t;return{cols:Math.max(qF,Math.floor(u/e.css.cell.width)),rows:Math.max(GF,Math.floor(c/e.css.cell.height))}}};const XF={class:"terminal-view"},JF={class:"conn-status"},QF={class:"conn-label"},ez=Oe({__name:"TerminalView",setup(e){const t=Ys(),i=Q(null),r=Vr(null),s=Vr(null);let n=null,a=null;const o=Q(!1);function l(){const u=location.protocol==="https:"?"wss:":"ws:";n=new WebSocket(`${u}//${location.host}/ws/shell`),n.onopen=()=>{o.value=!0,c()},n.onmessage=h=>{var d;(d=r.value)==null||d.write(h.data)},n.onclose=()=>{var h;o.value=!1,(h=r.value)==null||h.write(`\r
|
|
105
|
+
\x1B[90m- disconnected -\x1B[0m\r
|
|
106
|
+
`)},n.onerror=()=>n==null?void 0:n.close()}function c(){!n||n.readyState!==n.OPEN||!r.value||n.send(JSON.stringify({type:"resize",cols:r.value.cols,rows:r.value.rows}))}return ft(async()=>{t.setPage("Terminal",void 0,{fullBleed:!0}),await document.fonts.ready;const u=new KF({theme:{background:"#0d1117",foreground:"#e6edf3",cursor:"#58a6ff",selectionBackground:"rgba(88,166,255,0.3)",black:"#0d1117",brightBlack:"#6e7681",red:"#ff7b72",brightRed:"#ffa198",green:"#3fb950",brightGreen:"#56d364",yellow:"#d29922",brightYellow:"#e3b341",blue:"#58a6ff",brightBlue:"#79c0ff",magenta:"#bc8cff",brightMagenta:"#d2a8ff",cyan:"#39c5cf",brightCyan:"#56d4dd",white:"#b1bac4",brightWhite:"#f0f6fc"},fontFamily:'"MesloLGS NF", monospace',fontSize:13,lineHeight:1.45,cursorStyle:"block",cursorBlink:!0,scrollback:5e3,convertEol:!0,disableStdin:!1,allowTransparency:!1}),h=new YF;u.loadAddon(h),r.value=u,s.value=h,i.value&&(u.open(i.value),h.fit()),u.onData(d=>{(n==null?void 0:n.readyState)===WebSocket.OPEN&&n.send(JSON.stringify({type:"input",data:d}))}),a=new ResizeObserver(()=>{h.fit(),c()}),i.value&&a.observe(i.value),l()}),Zi(()=>{var u;n==null||n.close(),n=null,a==null||a.disconnect(),(u=r.value)==null||u.dispose()}),(u,h)=>(b(),$("div",XF,[(b(),fe(Or,{defer:"",to:"#ob-topbar-right"},[y("div",JF,[y("div",{class:Le(["conn-dot",o.value?"live":"dead"])},null,2),y("span",QF,U(o.value?"Connected":"Disconnected"),1)])])),y("div",{ref_key:"containerEl",ref:i,class:"terminal-container"},null,512)]))}}),tz=Zt(ez,[["__scopeId","data-v-be882a56"]]),iz={class:"login-page"},rz={class:"login-card"},sz={key:0},nz={key:1},P8="openbridge_auto_resume_attempted",az=Oe({__name:"LoginView",setup(e){const t=oc(),i=dl(),{user:r,loadConfig:s,checkAuth:n,startPlatformLogin:a,resumeLastAccount:o,chooseAccount:l}=lc(),c=Q(!1),u=Q(null),h=J(()=>t.query.logged_out==="1");async function d(){c.value=!0,u.value=null;try{const g=typeof t.query.login_hint=="string"?t.query.login_hint:void 0;await a(g?{loginHint:g}:{})}catch(g){c.value=!1,u.value=g instanceof Error?g.message:"Unable to start sign-in."}}async function f(){c.value=!0,u.value=null;try{await l()}catch(g){c.value=!1,u.value=g instanceof Error?g.message:"Unable to start sign-in."}}return ft(async()=>{if(!(await s()).enabled){i.replace("/");return}if(t.query.error==="account_changed"){u.value="Your platform account changed. Please sign in again.";return}const _=typeof t.query.login_hint=="string"?t.query.login_hint:"";if(await n()){if(_&&r.value&&r.value.email.toLowerCase()!==_.toLowerCase()){c.value=!0,await a({loginHint:_});return}i.replace("/");return}if(_){c.value=!0,await a({loginHint:_});return}if(!h.value&&!sessionStorage.getItem(P8)){if(sessionStorage.setItem(P8,"1"),c.value=!0,await o())return;c.value=!1}}),(g,_)=>{const A=rt,p=vi;return b(),$("div",iz,[y("div",rz,[_[2]||(_[2]=y("h1",{class:"login-title"},"OpenBridge",-1)),_[3]||(_[3]=y("p",{class:"login-subtitle"},"Sign in via Nubisco Platform to manage this OpenBridge instance.",-1)),u.value?(b(),fe(A,{key:0,variant:"error",class:"login-error"},{default:te(()=>[ce(U(u.value),1)]),_:1})):h.value?(b(),fe(A,{key:1,variant:"success",class:"login-error"},{default:te(()=>[..._[0]||(_[0]=[ce("You have been signed out.",-1)])]),_:1})):j("",!0),X(p,{variant:"primary",size:"lg",disabled:c.value,class:"login-btn",onClick:d},{default:te(()=>[c.value?(b(),$("span",sz,"Redirecting…")):(b(),$("span",nz,"Sign in via Nubisco Platform"))]),_:1},8,["disabled"]),X(p,{variant:"ghost",size:"sm",disabled:c.value,onClick:f},{default:te(()=>[..._[1]||(_[1]=[ce("Use a different account",-1)])]),_:1},8,["disabled"])])])}}}),oz=Zt(az,[["__scopeId","data-v-de234ae2"]]),lz={class:"callback-page"},cz={key:1,class:"callback-loading"},uz=Oe({__name:"AuthCallbackView",setup(e){const t=oc(),i=dl(),{checkAuth:r,clearLastAccount:s}=lc(),n=Q(null);return ft(async()=>{const a=typeof t.query.token=="string"?t.query.token:"",o=typeof t.query.state=="string"?t.query.state:"",l=typeof t.query.error=="string"?t.query.error:"",c=sessionStorage.getItem("openbridge_platform_state");sessionStorage.removeItem("openbridge_platform_state");const u=sessionStorage.getItem("openbridge_platform_expected_sub");if(sessionStorage.removeItem("openbridge_platform_expected_sub"),l){n.value=l==="not_a_member"?"Your account does not have access to this OpenBridge instance.":l==="domain_not_allowed"?"Your account is not eligible for this OpenBridge instance.":`Sign-in failed: ${l}`;return}if(!c||!o||c!==o){n.value="The sign-in request is no longer valid. Please try again.";return}if(!a){n.value="Platform did not return an OpenBridge access token.";return}const h=await fetch("/auth/platform/callback",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({token:a,...u?{expected_sub:u}:{}})});if(!h.ok){const d=await h.json().catch(()=>null);if((d==null?void 0:d.error)==="subject_mismatch"){s(),i.replace({path:"/login",query:{error:"account_changed"}});return}n.value=(d==null?void 0:d.error)==="invalid_token"?"Your platform sign-in is no longer valid. Please try again.":(d==null?void 0:d.error)==="wrong_app"?"The sign-in was issued for a different application. Please try again.":"Sign-in failed. Please try again.";return}await r(),sessionStorage.removeItem("openbridge_auto_resume_attempted"),i.replace("/")}),(a,o)=>{const l=rt;return b(),$("div",lz,[n.value?(b(),fe(l,{key:0,variant:"error"},{default:te(()=>[ce(U(n.value),1)]),_:1})):(b(),$("p",cz,"Signing you in…"))])}}}),hz=Zt(uz,[["__scopeId","data-v-6ea5c514"]]),iv=n$({history:Rx(),routes:[{path:"/login",name:"login",component:oz},{path:"/auth/callback",name:"auth-callback",component:hz},{path:"/",component:GO,redirect:"/dashboard",children:[{path:"dashboard",name:"dashboard",component:pR},{path:"plugins",name:"plugins",component:nD},{path:"devices",name:"devices",component:RD},{path:"devices/:id",name:"device-detail",component:lV},{path:"config",name:"config",component:yV},{path:"settings",name:"settings",component:DV},{path:"terminal",name:"terminal",component:tz}]}]});let O8=!1;iv.beforeEach(async e=>{var a;if(e.name==="login"||e.name==="auth-callback")return!0;const{config:t,user:i,loadConfig:r,checkAuth:s}=lc();if(t.value||await r(),!((a=t.value)!=null&&a.enabled))return!0;const n=typeof e.query.login_hint=="string"?e.query.login_hint:"";if(O8){if(!i.value)return n?{path:"/login",query:{login_hint:n}}:"/login"}else{const o=await s();if(O8=!0,!o)return n?{path:"/login",query:{login_hint:n}}:"/login"}if(n){if(i.value&&i.value.email.toLowerCase()!==n.toLowerCase())return{path:"/login",query:{login_hint:n}};const o={...e.query};return delete o.login_hint,{path:e.path,query:o}}return!0});const ga=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},dz=ga("app-window","0 0 256 256",'<path d="M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44Zm4,156a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4ZM76,84a8,8,0,1,1-8-8A8,8,0,0,1,76,84Zm40,0a8,8,0,1,1-8-8A8,8,0,0,1,116,84Z"/>'),fz=ga("app-window","0 0 256 256",'<path d="M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42Zm2,158a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2ZM78,84A10,10,0,1,1,68,74,10,10,0,0,1,78,84Zm40,0a10,10,0,1,1-10-10A10,10,0,0,1,118,84Z"/>'),I8=ga("app-window","0 0 256 256",'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200ZM80,84A12,12,0,1,1,68,72,12,12,0,0,1,80,84Zm40,0a12,12,0,1,1-12-12A12,12,0,0,1,120,84Z"/>'),_z=ga("app-window","0 0 256 256",'<path d="M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,160H44V60H212ZM60,92a16,16,0,1,1,16,16A16,16,0,0,1,60,92Zm48,0a16,16,0,1,1,16,16A16,16,0,0,1,108,92Z"/>'),pz=ga("app-window","0 0 256 256",'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM68,96A12,12,0,1,1,80,84,12,12,0,0,1,68,96Zm40,0a12,12,0,1,1,12-12A12,12,0,0,1,108,96Z"/>'),mz=ga("app-window","0 0 256 256",'<path d="M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z" opacity="0.2"/><path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H40V56H216V200ZM80,84A12,12,0,1,1,68,72,12,12,0,0,1,80,84Zm40,0a12,12,0,1,1-12-12A12,12,0,0,1,120,84Z"/>'),gz="app-window",vz=Object.freeze(Object.defineProperty({__proto__:null,bold:_z,default:I8,duotone:mz,fill:pz,glyphName:gz,light:fz,regular:I8,thin:dz},Symbol.toStringTag,{value:"Module"})),va=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},bz=va("brackets-curly","0 0 256 256",'<path d="M35.89,128C52,136.23,52,155.64,52,172c0,24.8,1.35,40,28,40a4,4,0,0,1,0,8c-36,0-36-26.61-36-48,0-24.8-1.35-40-28-40a4,4,0,0,1,0-8c26.65,0,28-15.2,28-40,0-21.39,0-48,36-48a4,4,0,0,1,0,8C53.35,44,52,59.2,52,84,52,100.36,52,119.77,35.89,128ZM240,124c-26.65,0-28-15.2-28-40,0-21.39,0-48-36-48a4,4,0,0,0,0,8c26.65,0,28,15.2,28,40,0,16.36,0,35.77,16.11,44C204,136.23,204,155.64,204,172c0,24.8-1.35,40-28,40a4,4,0,0,0,0,8c36,0,36-26.61,36-48,0-24.8,1.35-40,28-40a4,4,0,0,0,0-8Z"/>'),yz=va("brackets-curly","0 0 256 256",'<path d="M39.91,128a27.68,27.68,0,0,1,9.49,11.13C54,148.62,54,160.51,54,172c0,24.27,1.21,38,26,38a6,6,0,0,1,0,12c-16.88,0-27.81-5.6-33.4-17.13C42,195.38,42,183.49,42,172c0-24.27-1.21-38-26-38a6,6,0,0,1,0-12c24.79,0,26-13.73,26-38,0-11.49,0-23.38,4.6-32.87C52.19,39.6,63.12,34,80,34a6,6,0,0,1,0,12C55.21,46,54,59.73,54,84c0,11.49,0,23.38-4.6,32.87A27.68,27.68,0,0,1,39.91,128ZM240,122c-24.79,0-26-13.73-26-38,0-11.49,0-23.38-4.6-32.87C203.81,39.6,192.88,34,176,34a6,6,0,0,0,0,12c24.79,0,26,13.73,26,38,0,11.49,0,23.38,4.6,32.87A27.68,27.68,0,0,0,216.09,128a27.68,27.68,0,0,0-9.49,11.13C202,148.62,202,160.51,202,172c0,24.27-1.21,38-26,38a6,6,0,0,0,0,12c16.88,0,27.81-5.6,33.4-17.13,4.6-9.49,4.6-21.38,4.6-32.87,0-24.27,1.21-38,26-38a6,6,0,0,0,0-12Z"/>'),R8=va("brackets-curly","0 0 256 256",'<path d="M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"/>'),wz=va("brackets-curly","0 0 256 256",'<path d="M54.8,119.49A35.06,35.06,0,0,1,49.05,128a35.06,35.06,0,0,1,5.75,8.51C60,147.24,60,159.83,60,172c0,25.94,1.84,32,20,32a12,12,0,0,1,0,24c-19.14,0-32.2-6.9-38.8-20.51C36,196.76,36,184.17,36,172c0-25.94-1.84-32-20-32a12,12,0,0,1,0-24c18.16,0,20-6.06,20-32,0-12.17,0-24.76,5.2-35.49C47.8,34.9,60.86,28,80,28a12,12,0,0,1,0,24c-18.16,0-20,6.06-20,32C60,96.17,60,108.76,54.8,119.49ZM240,116c-18.16,0-20-6.06-20-32,0-12.17,0-24.76-5.2-35.49C208.2,34.9,195.14,28,176,28a12,12,0,0,0,0,24c18.16,0,20,6.06,20,32,0,12.17,0,24.76,5.2,35.49A35.06,35.06,0,0,0,207,128a35.06,35.06,0,0,0-5.75,8.51C196,147.24,196,159.83,196,172c0,25.94-1.84,32-20,32a12,12,0,0,0,0,24c19.14,0,32.2-6.9,38.8-20.51C220,196.76,220,184.17,220,172c0-25.94,1.84-32,20-32a12,12,0,0,0,0-24Z"/>'),Sz=va("brackets-curly","0 0 256 256",'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM88,155.84c.29,14.26.41,20.16,16,20.16a8,8,0,0,1,0,16c-31.27,0-31.72-22.43-32-35.84C71.71,141.9,71.59,136,56,136a8,8,0,0,1,0-16c15.59,0,15.71-5.9,16-20.16C72.28,86.43,72.73,64,104,64a8,8,0,0,1,0,16c-15.59,0-15.71,5.9-16,20.16-.17,8.31-.41,20.09-8,27.84C87.59,135.75,87.83,147.53,88,155.84ZM200,136c-15.59,0-15.71,5.9-16,20.16-.28,13.41-.73,35.84-32,35.84a8,8,0,0,1,0-16c15.59,0,15.71-5.9,16-20.16.17-8.31.41-20.09,8-27.84-7.6-7.75-7.84-19.53-8-27.84C167.71,85.9,167.59,80,152,80a8,8,0,0,1,0-16c31.27,0,31.72,22.43,32,35.84.29,14.26.41,20.16,16,20.16a8,8,0,0,1,0,16Z"/>'),Cz=va("brackets-curly","0 0 256 256",'<path d="M240,128c-64,0,0,88-64,88H80c-64,0,0-88-64-88,64,0,0-88,64-88h96C240,40,176,128,240,128Z" opacity="0.2"/><path d="M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"/>'),Az="brackets-curly",kz=Object.freeze(Object.defineProperty({__proto__:null,bold:wz,default:R8,duotone:Cz,fill:Sz,glyphName:Az,light:yz,regular:R8,thin:bz},Symbol.toStringTag,{value:"Module"})),ba=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Mz=ba("broadcast","0 0 256 256",'<path d="M128,92a36,36,0,1,0,36,36A36,36,0,0,0,128,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm76-28a75.74,75.74,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,67.92,67.92,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.74,75.74,0,0,1,204,128ZM65.34,101.53a67.92,67.92,0,0,0,12,71.8,4,4,0,0,1-6,5.34,75.93,75.93,0,0,1,0-101.34,4,4,0,1,1,6,5.34A68,68,0,0,0,65.34,101.53ZM244,128a115.68,115.68,0,0,1-33.14,81.18,4,4,0,0,1-5.72-5.6,107.89,107.89,0,0,0,0-151.16,4,4,0,0,1,5.72-5.6A115.68,115.68,0,0,1,244,128ZM50.86,203.58a4,4,0,0,1-5.72,5.6,115.91,115.91,0,0,1,0-162.36,4,4,0,1,1,5.72,5.6,107.89,107.89,0,0,0,0,151.16Z"/>'),Lz=ba("broadcast","0 0 256 256",'<path d="M128,90a38,38,0,1,0,38,38A38,38,0,0,0,128,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,154Zm78-26a77.74,77.74,0,0,1-19.86,52,6,6,0,0,1-8.94-8,65.93,65.93,0,0,0,0-88,6,6,0,1,1,8.94-8A77.74,77.74,0,0,1,206,128ZM67.18,102.31A65.93,65.93,0,0,0,78.8,172a6,6,0,0,1-.47,8.47,6,6,0,0,1-8.47-.47,77.93,77.93,0,0,1,0-104,6,6,0,1,1,8.94,8A66.21,66.21,0,0,0,67.18,102.31ZM246,128a117.71,117.71,0,0,1-33.71,82.58,6,6,0,0,1-8.58-8.4,105.88,105.88,0,0,0,0-148.36,6,6,0,0,1,8.58-8.4A117.71,117.71,0,0,1,246,128ZM52.29,202.18a6,6,0,0,1-8.58,8.4,117.92,117.92,0,0,1,0-165.16,6,6,0,1,1,8.58,8.4,105.88,105.88,0,0,0,0,148.36Z"/>'),D8=ba("broadcast","0 0 256 256",'<path d="M128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Zm73.71,7.14a80,80,0,0,1-14.08,22.2,8,8,0,0,1-11.92-10.67,63.95,63.95,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67,80.08,80.08,0,0,1,14.08,84.47ZM69,103.09a64,64,0,0,0,11.26,67.58,8,8,0,0,1-11.92,10.67,79.93,79.93,0,0,1,0-106.67A8,8,0,1,1,80.29,85.34,63.77,63.77,0,0,0,69,103.09ZM248,128a119.58,119.58,0,0,1-34.29,84,8,8,0,1,1-11.42-11.2,103.9,103.9,0,0,0,0-145.56A8,8,0,1,1,213.71,44,119.58,119.58,0,0,1,248,128ZM53.71,200.78A8,8,0,1,1,42.29,212a119.87,119.87,0,0,1,0-168,8,8,0,1,1,11.42,11.2,103.9,103.9,0,0,0,0,145.56Z"/>'),Ez=ba("broadcast","0 0 256 256",'<path d="M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Zm77.39,12.7A83.94,83.94,0,0,1,190.61,184a12,12,0,0,1-17.89-16,59.92,59.92,0,0,0,0-80,12,12,0,0,1,17.89-16,84.07,84.07,0,0,1,14.78,88.7ZM83.28,168a12,12,0,0,1-17.89,16,83.94,83.94,0,0,1,0-112A12,12,0,0,1,83.28,88a59.92,59.92,0,0,0,0,80ZM252,128a123.63,123.63,0,0,1-35.43,86.78A12,12,0,1,1,199.43,198a99.88,99.88,0,0,0,0-140,12,12,0,0,1,17.14-16.8A123.63,123.63,0,0,1,252,128ZM56.57,198a12,12,0,0,1-17.14,16.8,123.89,123.89,0,0,1,0-173.56A12,12,0,0,1,56.57,58a99.88,99.88,0,0,0,0,140Z"/>'),xz=ba("broadcast","0 0 256 256",'<path d="M168,128a40,40,0,1,1-40-40A40,40,0,0,1,168,128Zm40,0a79.74,79.74,0,0,0-20.37-53.33,8,8,0,1,0-11.92,10.67,64,64,0,0,1,0,85.33,8,8,0,0,0,11.92,10.67A79.79,79.79,0,0,0,208,128ZM80.29,85.34A8,8,0,1,0,68.37,74.67a79.94,79.94,0,0,0,0,106.67,8,8,0,0,0,11.92-10.67,63.95,63.95,0,0,1,0-85.33Zm158.28-4A119.48,119.48,0,0,0,213.71,44a8,8,0,1,0-11.42,11.2,103.9,103.9,0,0,1,0,145.56A8,8,0,1,0,213.71,212,120.12,120.12,0,0,0,238.57,81.29ZM32.17,168.48A103.9,103.9,0,0,1,53.71,55.22,8,8,0,1,0,42.29,44a119.87,119.87,0,0,0,0,168,8,8,0,1,0,11.42-11.2A103.61,103.61,0,0,1,32.17,168.48Z"/>'),$z=ba("broadcast","0 0 256 256",'<path d="M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z" opacity="0.2"/><path d="M128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Zm73.71,7.14a80,80,0,0,1-14.08,22.2,8,8,0,0,1-11.92-10.67,63.95,63.95,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67,80.08,80.08,0,0,1,14.08,84.47ZM69,103.09a64,64,0,0,0,11.26,67.58,8,8,0,0,1-11.92,10.67,79.93,79.93,0,0,1,0-106.67A8,8,0,1,1,80.29,85.34,63.77,63.77,0,0,0,69,103.09ZM248,128a119.58,119.58,0,0,1-34.29,84,8,8,0,1,1-11.42-11.2,103.9,103.9,0,0,0,0-145.56A8,8,0,1,1,213.71,44,119.58,119.58,0,0,1,248,128ZM53.71,200.78A8,8,0,1,1,42.29,212a119.87,119.87,0,0,1,0-168,8,8,0,1,1,11.42,11.2,103.9,103.9,0,0,0,0,145.56Z"/>'),Tz="broadcast",Nz=Object.freeze(Object.defineProperty({__proto__:null,bold:Ez,default:D8,duotone:$z,fill:xz,glyphName:Tz,light:Lz,regular:D8,thin:Mz},Symbol.toStringTag,{value:"Module"})),ya=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Hz=ya("camera","0 0 256 256",'<path d="M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"/>'),Pz=ya("camera","0 0 256 256",'<path d="M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"/>'),V8=ya("camera","0 0 256 256",'<path d="M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"/>'),Oz=ya("camera","0 0 256 256",'<path d="M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"/>'),Iz=ya("camera","0 0 256 256",'<path d="M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"/>'),Rz=ya("camera","0 0 256 256",'<path d="M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z" opacity="0.2"/><path d="M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"/>'),Dz="camera",Vz=Object.freeze(Object.defineProperty({__proto__:null,bold:Oz,default:V8,duotone:Rz,fill:Iz,glyphName:Dz,light:Pz,regular:V8,thin:Hz},Symbol.toStringTag,{value:"Module"})),wa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Bz=wa("cube","0 0 256 256",'<path d="M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"/>'),Zz=wa("cube","0 0 256 256",'<path d="M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"/>'),B8=wa("cube","0 0 256 256",'<path d="M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"/>'),Fz=wa("cube","0 0 256 256",'<path d="M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"/>'),zz=wa("cube","0 0 256 256",'<path d="M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"/>'),Uz=wa("cube","0 0 256 256",'<path d="M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z" opacity="0.2"/><path d="M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"/>'),Wz="cube",jz=Object.freeze(Object.defineProperty({__proto__:null,bold:Fz,default:B8,duotone:Uz,fill:zz,glyphName:Wz,light:Zz,regular:B8,thin:Bz},Symbol.toStringTag,{value:"Module"})),Sa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Kz=Sa("door","0 0 256 256",'<path d="M232,220H204V40a12,12,0,0,0-12-12H64A12,12,0,0,0,52,40V220H24a4,4,0,0,0,0,8H232a4,4,0,0,0,0-8ZM60,40a4,4,0,0,1,4-4H192a4,4,0,0,1,4,4V220H60Zm104,92a8,8,0,1,1-8-8A8,8,0,0,1,164,132Z"/>'),qz=Sa("door","0 0 256 256",'<path d="M232,218H206V40a14,14,0,0,0-14-14H64A14,14,0,0,0,50,40V218H24a6,6,0,0,0,0,12H232a6,6,0,0,0,0-12ZM62,40a2,2,0,0,1,2-2H192a2,2,0,0,1,2,2V218H62Zm104,92a10,10,0,1,1-10-10A10,10,0,0,1,166,132Z"/>'),Z8=Sa("door","0 0 256 256",'<path d="M232,216H208V40a16,16,0,0,0-16-16H64A16,16,0,0,0,48,40V216H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16ZM64,40H192V216H64Zm104,92a12,12,0,1,1-12-12A12,12,0,0,1,168,132Z"/>'),Gz=Sa("door","0 0 256 256",'<path d="M232,212H212V40a20,20,0,0,0-20-20H64A20,20,0,0,0,44,40V212H24a12,12,0,0,0,0,24H232a12,12,0,0,0,0-24ZM68,44H188V212H68Zm104,88a16,16,0,1,1-16-16A16,16,0,0,1,172,132Z"/>'),Yz=Sa("door","0 0 256 256",'<path d="M232,216H208V40a16,16,0,0,0-16-16H64A16,16,0,0,0,48,40V216H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16Zm-68-72a12,12,0,1,1,12-12A12,12,0,0,1,164,144Z"/>'),Xz=Sa("door","0 0 256 256",'<path d="M200,40V224H56V40a8,8,0,0,1,8-8H192A8,8,0,0,1,200,40Z" opacity="0.2"/><path d="M232,216H208V40a16,16,0,0,0-16-16H64A16,16,0,0,0,48,40V216H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16ZM64,40H192V216H64Zm104,92a12,12,0,1,1-12-12A12,12,0,0,1,168,132Z"/>'),Jz="door",Qz=Object.freeze(Object.defineProperty({__proto__:null,bold:Gz,default:Z8,duotone:Xz,fill:Yz,glyphName:Jz,light:qz,regular:Z8,thin:Kz},Symbol.toStringTag,{value:"Module"})),Ca=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},eU=Ca("drop","0 0 256 256",'<path d="M171,50.38a250,250,0,0,0-40.73-37.66,4,4,0,0,0-4.58,0A250,250,0,0,0,85,50.38C58.17,81.21,44,113.58,44,144a84,84,0,0,0,168,0C212,113.58,197.83,81.21,171,50.38ZM128,220a76.08,76.08,0,0,1-76-76c0-35.9,21.15-67.8,38.9-88.24A255,255,0,0,1,128,21a255,255,0,0,1,37.1,34.8C182.85,76.2,204,108.1,204,144A76.08,76.08,0,0,1,128,220Zm51.94-67.33a53.51,53.51,0,0,1-43.28,43.27,3.68,3.68,0,0,1-.66.06,4,4,0,0,1-.66-7.94c18.18-3.06,33.63-18.51,36.72-36.73a4,4,0,0,1,7.88,1.34Z"/>'),tU=Ca("drop","0 0 256 256",'<path d="M172.53,49.06a252.86,252.86,0,0,0-41.09-38,6,6,0,0,0-6.88,0,252.86,252.86,0,0,0-41.09,38C56.34,80.26,42,113.09,42,144a86,86,0,0,0,172,0C214,113.09,199.66,80.26,172.53,49.06ZM128,218a74.09,74.09,0,0,1-74-74c0-59.62,59-108.93,74-120.51C143,35.07,202,84.38,202,144A74.09,74.09,0,0,1,128,218Zm53.92-65A55.58,55.58,0,0,1,137,197.92a7,7,0,0,1-1,.08,6,6,0,0,1-1-11.92c17.38-2.92,32.13-17.68,35.08-35.08a6,6,0,1,1,11.84,2Z"/>'),F8=Ca("drop","0 0 256 256",'<path d="M174,47.75a254.19,254.19,0,0,0-41.45-38.3,8,8,0,0,0-9.18,0A254.19,254.19,0,0,0,82,47.75C54.51,79.32,40,112.6,40,144a88,88,0,0,0,176,0C216,112.6,201.49,79.32,174,47.75ZM128,216a72.08,72.08,0,0,1-72-72c0-57.23,55.47-105,72-118,16.53,13,72,60.75,72,118A72.08,72.08,0,0,1,128,216Zm55.89-62.66a57.6,57.6,0,0,1-46.56,46.55A8.75,8.75,0,0,1,136,200a8,8,0,0,1-1.32-15.89c16.57-2.79,30.63-16.85,33.44-33.45a8,8,0,0,1,15.78,2.68Z"/>'),iU=Ca("drop","0 0 256 256",'<path d="M134.88,6.17a12,12,0,0,0-13.76,0,259,259,0,0,0-42.18,39C50.85,77.43,36,111.62,36,144a92,92,0,0,0,184,0C220,66.64,138.36,8.6,134.88,6.17ZM128,212a68.07,68.07,0,0,1-68-68c0-33.31,20-63.37,36.7-82.71A249.35,249.35,0,0,1,128,31.11a249.35,249.35,0,0,1,31.3,30.18C176,80.63,196,110.69,196,144A68.07,68.07,0,0,1,128,212Zm49.62-52.4a52,52,0,0,1-34,34,12.2,12.2,0,0,1-3.6.55,12,12,0,0,1-3.6-23.45,28,28,0,0,0,18.32-18.32,12,12,0,0,1,22.9,7.2Z"/>'),rU=Ca("drop","0 0 256 256",'<path d="M174,47.75a254.19,254.19,0,0,0-41.45-38.3,8,8,0,0,0-9.18,0A254.19,254.19,0,0,0,82,47.75C54.51,79.32,40,112.6,40,144a88,88,0,0,0,176,0C216,112.6,201.49,79.32,174,47.75Zm9.85,105.59a57.6,57.6,0,0,1-46.56,46.55A8.75,8.75,0,0,1,136,200a8,8,0,0,1-1.32-15.89c16.57-2.79,30.63-16.85,33.44-33.45a8,8,0,0,1,15.78,2.68Z"/>'),sU=Ca("drop","0 0 256 256",'<path d="M208,144a80,80,0,0,1-160,0c0-72,80-128,80-128S208,72,208,144Z" opacity="0.2"/><path d="M174,47.75a254.19,254.19,0,0,0-41.45-38.3,8,8,0,0,0-9.18,0A254.19,254.19,0,0,0,82,47.75C54.51,79.32,40,112.6,40,144a88,88,0,0,0,176,0C216,112.6,201.49,79.32,174,47.75ZM128,216a72.08,72.08,0,0,1-72-72c0-57.23,55.47-105,72-118,16.53,13,72,60.75,72,118A72.08,72.08,0,0,1,128,216Zm55.89-62.66a57.6,57.6,0,0,1-46.56,46.55A8.75,8.75,0,0,1,136,200a8,8,0,0,1-1.32-15.89c16.57-2.79,30.63-16.85,33.44-33.45a8,8,0,0,1,15.78,2.68Z"/>'),nU="drop",aU=Object.freeze(Object.defineProperty({__proto__:null,bold:iU,default:F8,duotone:sU,fill:rU,glyphName:nU,light:tU,regular:F8,thin:eU},Symbol.toStringTag,{value:"Module"})),Aa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},oU=Aa("fan","0 0 256 256",'<path d="M229.12,136a56,56,0,0,0-86-31.56,28.25,28.25,0,0,0-4.56-2.39l17.27-68.94a4,4,0,0,0-1.72-4.34A56,56,0,1,0,100,126.62c0,.46,0,.92,0,1.38a27.39,27.39,0,0,0,.26,3.76L31.91,151.28A4,4,0,0,0,29,154.94a56,56,0,0,0,41.45,56.62,56.46,56.46,0,0,0,14.59,1.93,56.07,56.07,0,0,0,55.73-60.59,27.93,27.93,0,0,0,4.33-2.77l51.09,49.44A4,4,0,0,0,199,200.7a4.06,4.06,0,0,0,1.84-.45A56,56,0,0,0,229.12,136ZM128,148a20,20,0,1,1,20-20A20,20,0,0,1,128,148ZM76,76a48,48,0,0,1,71.4-41.92l-16.55,66.06c-.94-.09-1.89-.14-2.85-.14a28.06,28.06,0,0,0-26.34,18.49A47.82,47.82,0,0,1,76,76Zm33,123a48,48,0,0,1-72-40.87l65.5-18.7A28,28,0,0,0,128,156a28.81,28.81,0,0,0,4.94-.44A47.81,47.81,0,0,1,109,199ZM216.6,174.54a47.93,47.93,0,0,1-17,17.22l-49-47.37a27.91,27.91,0,0,0-1.3-34.44,48,48,0,0,1,67.22,64.59Z"/>'),lU=Aa("fan","0 0 256 256",'<path d="M231.06,135.52a58,58,0,0,0-88-33.42c-.69-.41-1.41-.8-2.14-1.15l16.86-67.32a6,6,0,0,0-2.58-6.51A58,58,0,1,0,98,127.86V128c0,.77,0,1.54.1,2.3L31.37,149.36A6,6,0,0,0,27,154.85,58,58,0,1,0,142.88,154c.7-.4,1.39-.83,2.06-1.29L194.81,201a6,6,0,0,0,6.94,1,58,58,0,0,0,29.31-66.51ZM110,128a18,18,0,1,1,18,18A18,18,0,0,1,110,128ZM78,76a46,46,0,0,1,67.08-40.9L129.32,98q-.66,0-1.32,0a30,30,0,0,0-27.33,17.66A45.84,45.84,0,0,1,78,76Zm30,121.3a46,46,0,0,1-69-37.64l62.39-17.82A30,30,0,0,0,128,158a29.29,29.29,0,0,0,3-.15A45.85,45.85,0,0,1,108,197.3Zm106.9-23.76a45.91,45.91,0,0,1-15,15.7l-46.63-45.12a29.91,29.91,0,0,0-.93-33.62,46,46,0,0,1,62.52,63Z"/>'),z8=Aa("fan","0 0 256 256",'<path d="M233,135a60,60,0,0,0-89.62-35.45l16.39-65.44a8,8,0,0,0-3.45-8.68A60,60,0,1,0,95.69,128.91L30.82,147.44a8,8,0,0,0-5.8,7.32,60,60,0,0,0,44.42,60.66,60.52,60.52,0,0,0,15.62,2.07,60.07,60.07,0,0,0,59.88-62l48.48,46.92a8,8,0,0,0,9.25,1.35A60,60,0,0,0,233,135Zm-121-7a16,16,0,1,1,16,16A16,16,0,0,1,112,128ZM80,76a44,44,0,0,1,62.75-39.82L127.77,96A32,32,0,0,0,99.85,112.8,43.85,43.85,0,0,1,80,76Zm27,119.57a44,44,0,0,1-65.86-34.43l59.31-16.94A32,32,0,0,0,128,160l.91,0A43.82,43.82,0,0,1,107,195.57Zm106.17-23a43.92,43.92,0,0,1-13,14.14l-44.32-42.89a31.91,31.91,0,0,0-.59-32.57,44,44,0,0,1,57.91,61.32Z"/>'),cU=Aa("fan","0 0 256 256",'<path d="M236.85,134a64,64,0,0,0-87.43-42.11l14.22-56.77a12,12,0,0,0-5.17-13A64,64,0,0,0,86,127.52L29.72,143.59a12,12,0,0,0-8.69,11,64,64,0,0,0,127.56,10l42,40.7a12,12,0,0,0,13.86,2A64,64,0,0,0,236.85,134ZM116,128a12,12,0,1,1,12,12A12,12,0,0,1,116,128Zm8-92a40,40,0,0,1,14,2.53L124.6,92.17a36,36,0,0,0-25.85,14.88A40,40,0,0,1,124,36ZM105,192.1A40,40,0,0,1,45.5,164l53.18-15.19a36,36,0,0,0,25.8,15A39.84,39.84,0,0,1,105,192.1Zm104.7-21.56a39.92,39.92,0,0,1-9.21,10.89L160.73,143a35.9,35.9,0,0,0,.05-29.83,40,40,0,0,1,48.89,57.4Z"/>'),uU=Aa("fan","0 0 256 256",'<path d="M233,135a60,60,0,0,0-89.62-35.45l16.39-65.44a8,8,0,0,0-3.45-8.68A60,60,0,1,0,95.69,128.91L30.82,147.44a8,8,0,0,0-5.8,7.32,60,60,0,0,0,44.42,60.66,60.52,60.52,0,0,0,15.62,2.07,60.07,60.07,0,0,0,59.88-62l48.48,46.92a8,8,0,0,0,9.25,1.35A60,60,0,0,0,233,135ZM130.44,147.85a20,20,0,1,1,17.41-22.29A20,20,0,0,1,130.44,147.85Z"/>'),hU=Aa("fan","0 0 256 256",'<path d="M136.5,150.45A52,52,0,1,1,33,155.13l71.91-20.54h0A24,24,0,0,0,128,152a23.75,23.75,0,0,0,8.5-1.56Zm-32.19-26.31h0a24,24,0,0,1,29.52-19.42h0L152,32.17a52,52,0,1,0-47.69,92ZM201,105.5a52,52,0,0,0-57.84,3.91h0a24,24,0,0,1,2.06,35.26h0l53.74,52a52,52,0,0,0,2-91.2Z" opacity="0.2"/><path d="M233,135a60,60,0,0,0-89.62-35.45l16.39-65.44a8,8,0,0,0-3.45-8.68A60,60,0,1,0,95.69,128.91L30.82,147.44a8,8,0,0,0-5.8,7.32,60,60,0,0,0,44.42,60.66,60.52,60.52,0,0,0,15.62,2.07,60.07,60.07,0,0,0,59.88-62l48.48,46.92a8,8,0,0,0,9.25,1.35A60,60,0,0,0,233,135Zm-121-7a16,16,0,1,1,16,16A16,16,0,0,1,112,128ZM80,76a44,44,0,0,1,62.75-39.82L127.77,96A32,32,0,0,0,99.85,112.8,43.85,43.85,0,0,1,80,76Zm27,119.57a44,44,0,0,1-65.86-34.43l59.31-16.94A32,32,0,0,0,128,160l.91,0A43.82,43.82,0,0,1,107,195.57Zm106.17-23a43.92,43.92,0,0,1-13,14.14l-44.32-42.89a31.91,31.91,0,0,0-.59-32.57,44,44,0,0,1,57.91,61.32Z"/>'),dU="fan",fU=Object.freeze(Object.defineProperty({__proto__:null,bold:cU,default:z8,duotone:hU,fill:uU,glyphName:dU,light:lU,regular:z8,thin:oU},Symbol.toStringTag,{value:"Module"})),ka=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},_U=ka("game-controller","0 0 256 256",'<path d="M176,108H152a4,4,0,0,1,0-8h24a4,4,0,0,1,0,8Zm-72-8H92V88a4,4,0,0,0-8,0v12H72a4,4,0,0,0,0,8H84v12a4,4,0,0,0,8,0V108h12a4,4,0,0,0,0-8Zm134.21,98.36a32,32,0,0,1-48.84,4.27l-.17-.18L148.29,156H107.72L66.81,202.44l-.18.19A32.08,32.08,0,0,1,44,212a32,32,0,0,1-31.5-37.56L28.87,90.21A55.87,55.87,0,0,1,83.89,44H172a56.07,56.07,0,0,1,55.1,46.1.29.29,0,0,1,0,.1l16.37,84.16A31.86,31.86,0,0,1,238.21,198.36ZM172,148a48,48,0,1,0,0-96H83.9A47.9,47.9,0,0,0,36.74,91.67L20.36,175.9a24,24,0,0,0,19.48,27.73,24,24,0,0,0,21-6.58l42-47.69a4,4,0,0,1,3-1.36Zm63.63,27.83-11-56.66A56.09,56.09,0,0,1,172,156H159l36.16,41.06a24,24,0,0,0,40.52-21.23Z"/>'),pU=ka("game-controller","0 0 256 256",'<path d="M176,110H152a6,6,0,0,1,0-12h24a6,6,0,0,1,0,12ZM104,98H94V88a6,6,0,0,0-12,0V98H72a6,6,0,0,0,0,12H82v10a6,6,0,0,0,12,0V110h10a6,6,0,0,0,0-12ZM239.84,199.5A34,34,0,0,1,212,214,34.11,34.11,0,0,1,188,204.05l-.26-.28L147.38,158H108.62L68.31,203.76,68,204A34,34,0,0,1,44,214a34,34,0,0,1-33.46-39.91s0-.06,0-.1L26.9,89.88A57.89,57.89,0,0,1,83.89,42H172a58.07,58.07,0,0,1,57.05,47.63c0,.07,0,.12,0,.19L245.46,174s0,.07,0,.11A33.75,33.75,0,0,1,239.84,199.5ZM172,146a46,46,0,0,0,0-92H83.89A45.9,45.9,0,0,0,38.71,92a.36.36,0,0,0,0,.1L22.33,176.23a22,22,0,0,0,37.11,19.45l42-47.65a6,6,0,0,1,4.5-2Zm61.67,30.23-9.79-50.35A58.06,58.06,0,0,1,172,158h-8.63l33.19,37.68a22,22,0,0,0,37.11-19.45Z"/>'),U8=ka("game-controller","0 0 256 256",'<path d="M176,112H152a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16ZM104,96H96V88a8,8,0,0,0-16,0v8H72a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM241.48,200.65a36,36,0,0,1-54.94,4.81c-.12-.12-.24-.24-.35-.37L146.48,160h-37L69.81,205.09l-.35.37A36.08,36.08,0,0,1,44,216,36,36,0,0,1,8.56,173.75a.68.68,0,0,1,0-.14L24.93,89.52A59.88,59.88,0,0,1,83.89,40H172a60.08,60.08,0,0,1,59,49.25c0,.06,0,.12,0,.18l16.37,84.17a.68.68,0,0,1,0,.14A35.74,35.74,0,0,1,241.48,200.65ZM172,144a44,44,0,0,0,0-88H83.89A43.9,43.9,0,0,0,40.68,92.37l0,.13L24.3,176.59A20,20,0,0,0,58,194.3l41.92-47.59a8,8,0,0,1,6-2.71Zm59.7,32.59-8.74-45A60,60,0,0,1,172,160h-4.2L198,194.31a20.09,20.09,0,0,0,17.46,5.39,20,20,0,0,0,16.23-23.11Z"/>'),mU=ka("game-controller","0 0 256 256",'<path d="M176,116H152a12,12,0,0,1,0-24h24a12,12,0,0,1,0,24ZM104,92h-4V88a12,12,0,0,0-24,0v4H72a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM244.76,202.94a40,40,0,0,1-61,5.35,7,7,0,0,1-.53-.56L144.67,164H111.33L72.81,207.73c-.17.19-.35.38-.53.56A40,40,0,0,1,4.62,173.05a1.18,1.18,0,0,1,0-.2L21,88.79A63.88,63.88,0,0,1,83.88,36H172a64.08,64.08,0,0,1,62.93,52.48,1.8,1.8,0,0,1,0,.19l16.36,84.17a1.77,1.77,0,0,1,0,.2A39.74,39.74,0,0,1,244.76,202.94ZM172,140a40,40,0,0,0,0-80H83.89A39.9,39.9,0,0,0,44.62,93.06a1.55,1.55,0,0,0,0,.21l-16.34,84a16,16,0,0,0,13,18.44,16.07,16.07,0,0,0,13.86-4.21L96.9,144.07a12,12,0,0,1,9-4.07Zm55.76,37.31-7-35.95a63.84,63.84,0,0,1-44.27,22.46l24.41,27.72a16,16,0,0,0,26.85-14.23Z"/>'),gU=ka("game-controller","0 0 256 256",'<path d="M247.44,173.75a.68.68,0,0,0,0-.14L231.05,89.44c0-.06,0-.12,0-.18A60.08,60.08,0,0,0,172,40H83.89a59.88,59.88,0,0,0-59,49.52L8.58,173.61a.68.68,0,0,0,0,.14,36,36,0,0,0,60.9,31.71l.35-.37L109.52,160h37l39.71,45.09c.11.13.23.25.35.37A36.08,36.08,0,0,0,212,216a36,36,0,0,0,35.43-42.25ZM104,112H96v8a8,8,0,0,1-16,0v-8H72a8,8,0,0,1,0-16h8V88a8,8,0,0,1,16,0v8h8a8,8,0,0,1,0,16Zm40-8a8,8,0,0,1,8-8h24a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm84.37,87.47a19.84,19.84,0,0,1-12.9,8.23A20.09,20.09,0,0,1,198,194.31L167.8,160H172a60,60,0,0,0,51-28.38l8.74,45A19.82,19.82,0,0,1,228.37,191.47Z"/>'),vU=ka("game-controller","0 0 256 256",'<path d="M216.86,207.57a28,28,0,0,1-24.66-7.77L150.09,152H172a51.94,51.94,0,0,0,51.2-61h0l16.36,84.17A28,28,0,0,1,216.86,207.57Z" opacity="0.2"/><path d="M176,112H152a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16ZM104,96H96V88a8,8,0,0,0-16,0v8H72a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM241.48,200.65a36,36,0,0,1-54.94,4.81c-.12-.12-.24-.24-.35-.37L146.48,160h-37L69.81,205.09l-.35.37A36.08,36.08,0,0,1,44,216,36,36,0,0,1,8.56,173.75a.68.68,0,0,1,0-.14L24.93,89.52A59.88,59.88,0,0,1,83.89,40H172a60.08,60.08,0,0,1,59,49.25c0,.06,0,.12,0,.18l16.37,84.17a.68.68,0,0,1,0,.14A35.74,35.74,0,0,1,241.48,200.65ZM172,144a44,44,0,0,0,0-88H83.89A43.9,43.9,0,0,0,40.68,92.37l0,.13L24.3,176.59A20,20,0,0,0,58,194.3l41.92-47.59a8,8,0,0,1,6-2.71Zm59.7,32.59-8.74-45A60,60,0,0,1,172,160h-4.2L198,194.31a20.09,20.09,0,0,0,17.46,5.39,20,20,0,0,0,16.23-23.11Z"/>'),bU="game-controller",yU=Object.freeze(Object.defineProperty({__proto__:null,bold:mU,default:U8,duotone:vU,fill:gU,glyphName:bU,light:pU,regular:U8,thin:_U},Symbol.toStringTag,{value:"Module"})),Ma=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},wU=Ma("garage","0 0 256 256",'<path d="M240,196H228V98.67a12,12,0,0,0-5.34-10L134.66,30a12,12,0,0,0-13.32,0l-88,58.67a12,12,0,0,0-5.34,10V196H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM36,98.67a4,4,0,0,1,1.78-3.33l88-58.66a4,4,0,0,1,4.44,0l88,58.66A4,4,0,0,1,220,98.67V196H188V136a4,4,0,0,0-4-4H72a4,4,0,0,0-4,4v60H36ZM180,140v24H132V140Zm-56,24H76V140h48Zm-48,8h48v24H76Zm56,0h48v24H132Z"/>'),SU=Ma("garage","0 0 256 256",'<path d="M240,194H230V98.67A14,14,0,0,0,223.77,87l-88-58.66a14,14,0,0,0-15.54,0L32.23,87A14,14,0,0,0,26,98.67V194H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM38,98.67A2,2,0,0,1,38.89,97l88-58.67a2,2,0,0,1,2.22,0l88,58.67a2,2,0,0,1,.89,1.66V194H190V136a6,6,0,0,0-6-6H72a6,6,0,0,0-6,6v58H38ZM178,142v20H134V142Zm-56,20H78V142h44ZM78,174h44v20H78Zm56,0h44v20H134Z"/>'),W8=Ma("garage","0 0 256 256",'<path d="M240,192h-8V98.67a16,16,0,0,0-7.12-13.31l-88-58.67a16,16,0,0,0-17.75,0l-88,58.67A16,16,0,0,0,24,98.67V192H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM40,98.67,128,40l88,58.66V192H192V136a8,8,0,0,0-8-8H72a8,8,0,0,0-8,8v56H40ZM176,144v16H136V144Zm-56,16H80V144h40ZM80,176h40v16H80Zm56,0h40v16H136Z"/>'),CU=Ma("garage","0 0 256 256",'<path d="M240,188h-4V98.67A20,20,0,0,0,227.09,82l-88-58.66a19.94,19.94,0,0,0-22.18,0L28.91,82A20,20,0,0,0,20,98.67V188H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM44,100.81l84-56,84,56V188H196V120a12,12,0,0,0-12-12H72a12,12,0,0,0-12,12v68H44ZM172,132v16H140V132Zm-56,16H84V132h32ZM84,172h32v16H84Zm56,0h32v16H140Z"/>'),AU=Ma("garage","0 0 256 256",'<path d="M240,192h-8V98.67a16,16,0,0,0-7.12-13.31l-88-58.67a16,16,0,0,0-17.75,0l-88,58.67A16,16,0,0,0,24,98.67V192H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM136,128h56v24H136Zm-16,24H64V128h56ZM64,168h56v24H64Zm72,0h56v24H136Z"/>'),kU=Ma("garage","0 0 256 256",'<path d="M184,136v64H72V136Z" opacity="0.2"/><path d="M240,192h-8V98.67a16,16,0,0,0-7.12-13.31l-88-58.67a16,16,0,0,0-17.75,0l-88,58.67A16,16,0,0,0,24,98.67V192H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM40,98.67,128,40l88,58.66V192H192V136a8,8,0,0,0-8-8H72a8,8,0,0,0-8,8v56H40ZM176,144v16H136V144Zm-56,16H80V144h40ZM80,176h40v16H80Zm56,0h40v16H136Z"/>'),MU="garage",LU=Object.freeze(Object.defineProperty({__proto__:null,bold:CU,default:W8,duotone:kU,fill:AU,glyphName:MU,light:SU,regular:W8,thin:wU},Symbol.toStringTag,{value:"Module"})),La=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},EU=La("gear","0 0 256 256",'<path d="M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"/>'),xU=La("gear","0 0 256 256",'<path d="M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"/>'),j8=La("gear","0 0 256 256",'<path d="M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"/>'),$U=La("gear","0 0 256 256",'<path d="M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"/>'),TU=La("gear","0 0 256 256",'<path d="M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"/>'),NU=La("gear","0 0 256 256",'<path d="M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z" opacity="0.2"/><path d="M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"/>'),HU="gear",PU=Object.freeze(Object.defineProperty({__proto__:null,bold:$U,default:j8,duotone:NU,fill:TU,glyphName:HU,light:xU,regular:j8,thin:EU},Symbol.toStringTag,{value:"Module"})),Ea=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},OU=Ea("house","0 0 256 256",'<path d="M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"/>'),IU=Ea("house","0 0 256 256",'<path d="M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"/>'),K8=Ea("house","0 0 256 256",'<path d="M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"/>'),RU=Ea("house","0 0 256 256",'<path d="M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"/>'),DU=Ea("house","0 0 256 256",'<path d="M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"/>'),VU=Ea("house","0 0 256 256",'<path d="M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z" opacity="0.2"/><path d="M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"/>'),BU="house",ZU=Object.freeze(Object.defineProperty({__proto__:null,bold:RU,default:K8,duotone:VU,fill:DU,glyphName:BU,light:IU,regular:K8,thin:OU},Symbol.toStringTag,{value:"Module"})),xa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},FU=xa("intersect","0 0 256 256",'<path d="M171.17,84.83a76,76,0,1,0-86.34,86.34,76,76,0,1,0,86.34-86.34ZM28,96A68,68,0,0,1,162.93,84.07c-1,0-2-.07-2.93-.07a76.08,76.08,0,0,0-76,76c0,1,0,2,.07,2.93A68.1,68.1,0,0,1,28,96Zm136,0a67.59,67.59,0,0,1-7.45,30.89L129.11,99.45A67.59,67.59,0,0,1,160,92c1.3,0,2.6,0,3.88.12C164,93.4,164,94.7,164,96ZM92,160a67.59,67.59,0,0,1,7.45-30.89l27.44,27.44A67.59,67.59,0,0,1,96,164c-1.3,0-2.6-.05-3.88-.12C92.05,162.6,92,161.3,92,160Zm42-7.64L103.64,122A68.74,68.74,0,0,1,122,103.64L152.36,134A68.74,68.74,0,0,1,134,152.36ZM160,228a68.1,68.1,0,0,1-66.93-56.07c1,0,2,.07,2.93.07a76.08,76.08,0,0,0,76-76c0-1,0-2-.07-2.93A68,68,0,0,1,160,228Z"/>'),zU=xa("intersect","0 0 256 256",'<path d="M172.91,83.09a78,78,0,1,0-89.82,89.82,78,78,0,1,0,89.82-89.82ZM30,96A66,66,0,0,1,160.49,82H160a78.09,78.09,0,0,0-78,78c0,.17,0,.33,0,.49A66.1,66.1,0,0,1,30,96Zm64,64a65.62,65.62,0,0,1,6-27.49L123.49,156A65.62,65.62,0,0,1,96,162c-.65,0-1.3,0-2-.05C94,161.3,94,160.65,94,160Zm40.23-10.25-28-28a66.47,66.47,0,0,1,15.52-15.52l28,28A66.47,66.47,0,0,1,134.23,149.75ZM162,96a65.62,65.62,0,0,1-6,27.49L132.51,100A65.62,65.62,0,0,1,160,94c.65,0,1.3,0,1.95,0C162,94.7,162,95.35,162,96Zm-2,130a66.1,66.1,0,0,1-64.49-52H96a78.09,78.09,0,0,0,78-78c0-.17,0-.33,0-.49A66,66,0,0,1,160,226Z"/>'),q8=xa("intersect","0 0 256 256",'<path d="M174.63,81.37a80,80,0,1,0-93.26,93.26,80,80,0,1,0,93.26-93.26ZM100.69,136,120,155.31A63.48,63.48,0,0,1,96,160,63.48,63.48,0,0,1,100.69,136Zm33.75,11.13-25.57-25.57a64.65,64.65,0,0,1,12.69-12.69l25.57,25.57A64.65,64.65,0,0,1,134.44,147.13ZM155.31,120,136,100.69A63.48,63.48,0,0,1,160,96,63.48,63.48,0,0,1,155.31,120ZM32,96a64,64,0,0,1,126-16A80.08,80.08,0,0,0,80.05,158,64.11,64.11,0,0,1,32,96ZM160,224A64.11,64.11,0,0,1,98,176,80.08,80.08,0,0,0,176,98,64,64,0,0,1,160,224Z"/>'),UU=xa("intersect","0 0 256 256",'<path d="M178,78A84,84,0,1,0,78,178,84,84,0,1,0,178,78Zm-22.19,22.19a59.57,59.57,0,0,1-9.81,28.9L126.94,110A59.57,59.57,0,0,1,155.84,100.16Zm-79.5,52.51a60,60,0,1,1,76.33-76.33A84.11,84.11,0,0,0,76.34,152.67Zm23.82,3.17a59.57,59.57,0,0,1,9.81-28.9L129.06,146A59.57,59.57,0,0,1,100.16,155.84ZM160,220a60.09,60.09,0,0,1-56.67-40.34,84.11,84.11,0,0,0,76.33-76.33A60,60,0,0,1,160,220Z"/>'),WU=xa("intersect","0 0 256 256",'<path d="M174.63,81.37a80,80,0,1,0-93.26,93.26,80,80,0,1,0,93.26-93.26ZM32,96a64,64,0,0,1,126-16A80.08,80.08,0,0,0,80.05,158,64.11,64.11,0,0,1,32,96ZM160,224A64.11,64.11,0,0,1,98,176,80.08,80.08,0,0,0,176,98,64,64,0,0,1,160,224Z"/>'),jU=xa("intersect","0 0 256 256",'<path d="M168,96a72,72,0,0,1-72,72,73.37,73.37,0,0,1-7.6-.4A73.37,73.37,0,0,1,88,160a72,72,0,0,1,72-72,73.37,73.37,0,0,1,7.6.4A73.37,73.37,0,0,1,168,96Z" opacity="0.2"/><path d="M174.63,81.37a80,80,0,1,0-93.26,93.26,80,80,0,1,0,93.26-93.26ZM32,96a64,64,0,0,1,126-16A80.08,80.08,0,0,0,80.05,158,64.11,64.11,0,0,1,32,96Zm128,0a64.07,64.07,0,0,1-64,64A64.07,64.07,0,0,1,160,96Zm0,128A64.11,64.11,0,0,1,98,176,80.08,80.08,0,0,0,176,98,64,64,0,0,1,160,224Z"/>'),KU="intersect",qU=Object.freeze(Object.defineProperty({__proto__:null,bold:UU,default:q8,duotone:jU,fill:WU,glyphName:KU,light:zU,regular:q8,thin:FU},Symbol.toStringTag,{value:"Module"})),$a=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},GU=$a("lamp","0 0 256 256",'<path d="M243.68,150.42l-48-112A4,4,0,0,0,192,36H64a4,4,0,0,0-3.68,2.42l-48,112A4,4,0,0,0,16,156H124v56H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8H132V156h64v36a4,4,0,0,0,8,0V156h36a4,4,0,0,0,3.68-5.58ZM22.07,148,66.64,44H189.36l44.57,104Z"/>'),YU=$a("lamp","0 0 256 256",'<path d="M245.51,149.64l-48-112A6,6,0,0,0,192,34H64a6,6,0,0,0-5.51,3.64l-48,112A6,6,0,0,0,16,158H122v52H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12H134V158h60v34a6,6,0,0,0,12,0V158h34a6,6,0,0,0,5.51-8.36ZM25.1,146,68,46H188L230.9,146Z"/>'),G8=$a("lamp","0 0 256 256",'<path d="M247.35,148.85l-48-112A8,8,0,0,0,192,32H64a8,8,0,0,0-7.35,4.85l-48,112A8,8,0,0,0,16,160H120v48H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V160h56v32a8,8,0,0,0,16,0V160h32a8,8,0,0,0,7.35-11.15ZM28.13,144,69.28,48H186.72l41.15,96Z"/>'),XU=$a("lamp","0 0 256 256",'<path d="M251,147.27l-48-112A12,12,0,0,0,192,28H64a12,12,0,0,0-11,7.27l-48,112A12,12,0,0,0,16,164H116v40H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24H140V164h48v28a12,12,0,0,0,24,0V164h28a12,12,0,0,0,11-16.73ZM34.2,140,71.91,52H184.09l37.71,88Z"/>'),JU=$a("lamp","0 0 256 256",'<path d="M246.68,156.4A8,8,0,0,1,240,160H208v32a8,8,0,0,1-16,0V160H136v48h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V160H16a8,8,0,0,1-7.35-11.15l48-112A8,8,0,0,1,64,32H192a8,8,0,0,1,7.35,4.85l48,112A8,8,0,0,1,246.68,156.4Z"/>'),QU=$a("lamp","0 0 256 256",'<path d="M240,152H16L64,40H192Z" opacity="0.2"/><path d="M247.35,148.85l-48-112A8,8,0,0,0,192,32H64a8,8,0,0,0-7.35,4.85l-48,112A8,8,0,0,0,16,160H120v48H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V160h56v32a8,8,0,0,0,16,0V160h32a8,8,0,0,0,7.35-11.15ZM28.13,144,69.28,48H186.72l41.15,96Z"/>'),eW="lamp",tW=Object.freeze(Object.defineProperty({__proto__:null,bold:XU,default:G8,duotone:QU,fill:JU,glyphName:eW,light:YU,regular:G8,thin:GU},Symbol.toStringTag,{value:"Module"})),Ta=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},iW=Ta("lightbulb","0 0 256 256",'<path d="M172,232a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,232Zm40-128a83.59,83.59,0,0,1-32.11,66.06A20.2,20.2,0,0,0,172,186v6a12,12,0,0,1-12,12H96a12,12,0,0,1-12-12v-6a20,20,0,0,0-7.76-15.81A83.58,83.58,0,0,1,44,104.47C43.75,59,80.52,21.09,126,20a84,84,0,0,1,86,84Zm-8,0a76,76,0,0,0-77.83-76C85,29,51.77,63.27,52,104.43a75.62,75.62,0,0,0,29.17,59.43A28,28,0,0,1,92,186v6a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4v-6a28.14,28.14,0,0,1,10.94-22.2A75.62,75.62,0,0,0,204,104ZM136.66,52.06a4,4,0,0,0-1.32,7.88C153.53,63,169,78.45,172.06,96.67A4,4,0,0,0,176,100a3.88,3.88,0,0,0,.67-.06,4,4,0,0,0,3.27-4.61A53.51,53.51,0,0,0,136.66,52.06Z"/>'),rW=Ta("lightbulb","0 0 256 256",'<path d="M174,232a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,232Zm40-128a85.56,85.56,0,0,1-32.88,67.64A18.23,18.23,0,0,0,174,186v6a14,14,0,0,1-14,14H96a14,14,0,0,1-14-14v-6a18,18,0,0,0-7-14.23h0a85.59,85.59,0,0,1-33-67.24C41.74,57.91,79.39,19.12,125.93,18A86,86,0,0,1,214,104Zm-12,0a74,74,0,0,0-75.79-74C86.17,31,53.78,64.34,54,104.42a73.67,73.67,0,0,0,28.4,57.87A29.92,29.92,0,0,1,94,186v6a2,2,0,0,0,2,2h64a2,2,0,0,0,2-2v-6a30.18,30.18,0,0,1,11.7-23.78A73.59,73.59,0,0,0,202,104Zm-20.08-9A55.58,55.58,0,0,0,137,50.08a6,6,0,1,0-2,11.84C152.38,64.84,167.13,79.6,170.08,97a6,6,0,0,0,5.91,5,6.87,6.87,0,0,0,1-.08A6,6,0,0,0,181.92,95Z"/>'),Y8=Ta("lightbulb","0 0 256 256",'<path d="M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"/>'),sW=Ta("lightbulb","0 0 256 256",'<path d="M180,232a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,232Zm40-128a91.51,91.51,0,0,1-35.17,72.35A12.26,12.26,0,0,0,180,186v2a20,20,0,0,1-20,20H96a20,20,0,0,1-20-20v-2a12,12,0,0,0-4.7-9.51A91.57,91.57,0,0,1,36,104.52C35.73,54.69,76,13.2,125.79,12A92,92,0,0,1,220,104Zm-24,0a68,68,0,0,0-69.65-68C89.56,36.88,59.8,67.55,60,104.38a67.71,67.71,0,0,0,26.1,53.19A35.87,35.87,0,0,1,100,184h56.1A36.13,36.13,0,0,1,170,157.49,67.68,67.68,0,0,0,196,104Zm-20.07-5.32a48.5,48.5,0,0,0-31.91-40,12,12,0,0,0-8,22.62,24.31,24.31,0,0,1,16.09,20,12,12,0,0,0,23.86-2.64Z"/>'),nW=Ta("lightbulb","0 0 256 256",'<path d="M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-32.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"/>'),aW=Ta("lightbulb","0 0 256 256",'<path d="M208,104a79.86,79.86,0,0,1-30.59,62.92A24.29,24.29,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6a24.11,24.11,0,0,0-9.3-19A79.87,79.87,0,0,1,48,104.45C47.76,61.09,82.72,25,126.07,24A80,80,0,0,1,208,104Z" opacity="0.2"/><path d="M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"/>'),oW="lightbulb",lW=Object.freeze(Object.defineProperty({__proto__:null,bold:sW,default:Y8,duotone:aW,fill:nW,glyphName:oW,light:rW,regular:Y8,thin:iW},Symbol.toStringTag,{value:"Module"})),Na=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},cW=Na("lightning","0 0 256 256",'<path d="M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"/>'),uW=Na("lightning","0 0 256 256",'<path d="M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"/>'),X8=Na("lightning","0 0 256 256",'<path d="M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"/>'),hW=Na("lightning","0 0 256 256",'<path d="M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"/>'),dW=Na("lightning","0 0 256 256",'<path d="M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"/>'),fW=Na("lightning","0 0 256 256",'<path d="M96,240l16-80L48,136,160,16,144,96l64,24Z" opacity="0.2"/><path d="M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"/>'),_W="lightning",pW=Object.freeze(Object.defineProperty({__proto__:null,bold:hW,default:X8,duotone:fW,fill:dW,glyphName:_W,light:uW,regular:X8,thin:cW},Symbol.toStringTag,{value:"Module"})),Ha=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},mW=Ha("lock","0 0 256 256",'<path d="M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z"/>'),gW=Ha("lock","0 0 256 256",'<path d="M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z"/>'),J8=Ha("lock","0 0 256 256",'<path d="M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"/>'),vW=Ha("lock","0 0 256 256",'<path d="M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z"/>'),bW=Ha("lock","0 0 256 256",'<path d="M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z"/>'),yW=Ha("lock","0 0 256 256",'<path d="M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z" opacity="0.2"/><path d="M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"/>'),wW="lock",SW=Object.freeze(Object.defineProperty({__proto__:null,bold:vW,default:J8,duotone:yW,fill:bW,glyphName:wW,light:gW,regular:J8,thin:mW},Symbol.toStringTag,{value:"Module"})),Pa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},CW=Pa("plugs","0 0 256 256",'<path d="M146.83,141.17a4,4,0,0,0-5.66,0L120,162.34,93.66,136l21.17-21.17a4,4,0,0,0-5.66-5.66L88,130.34,66.83,109.17a4,4,0,0,0-5.66,5.66L70.34,124,44.2,150.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L58.06,203.6l8.2,8.2a28,28,0,0,0,39.6,0L132,185.66l9.17,9.17a4,4,0,0,0,5.66-5.66L125.66,168l21.17-21.17A4,4,0,0,0,146.83,141.17Zm-46.63,65a20,20,0,0,1-28.28,0L49.86,184.08a20,20,0,0,1,0-28.28L76,129.66,126.34,180Zm134.63-185a4,4,0,0,0-5.66,0L197.94,52.4l-8.2-8.2a28,28,0,0,0-39.6,0L124,70.34l-9.17-9.17a4,4,0,0,0-5.66,5.66l80,80a4,4,0,0,0,5.66-5.66L185.66,132l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,31.23-31.23A4,4,0,0,0,234.83,21.17ZM212,86.06a19.86,19.86,0,0,1-5.86,14.14L180,126.34,129.66,76,155.8,49.86a20,20,0,0,1,28.28,0l22.06,22.06A19.85,19.85,0,0,1,212,86.06Z"/>'),AW=Pa("plugs","0 0 256 256",'<path d="M148.24,139.76a6,6,0,0,0-8.48,0L120,159.51,96.49,136l19.75-19.76a6,6,0,0,0-8.48-8.48L88,127.51,68.24,107.76a6,6,0,0,0-8.48,8.48L67.51,124,42.79,148.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l29.82-29.81,6.79,6.78a30,30,0,0,0,42.42,0L132,188.49l7.76,7.75a6,6,0,0,0,8.48-8.48L128.49,168l19.75-19.76A6,6,0,0,0,148.24,139.76Zm-49.45,65a18,18,0,0,1-25.46,0L51.27,182.67a18,18,0,0,1,0-25.46L76,132.49,123.51,180Zm137.45-185a6,6,0,0,0-8.48,0L197.94,49.57l-6.79-6.78a30,30,0,0,0-42.42,0L124,67.51l-7.76-7.75a6,6,0,0,0-8.48,8.48l80,80a6,6,0,0,0,8.48-8.48L188.49,132l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,29.81-29.82A6,6,0,0,0,236.24,19.76Zm-31.51,79L180,123.51,132.49,76l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46Z"/>'),Q8=Pa("plugs","0 0 256 256",'<path d="M149.66,138.34a8,8,0,0,0-11.32,0L120,156.69,99.31,136l18.35-18.34a8,8,0,0,0-11.32-11.32L88,124.69,69.66,106.34a8,8,0,0,0-11.32,11.32L64.69,124,41.37,147.31a32,32,0,0,0,0,45.26l5.38,5.37-28.41,28.4a8,8,0,0,0,11.32,11.32l28.4-28.41,5.37,5.38a32,32,0,0,0,45.26,0L132,191.31l6.34,6.35a8,8,0,0,0,11.32-11.32L131.31,168l18.35-18.34A8,8,0,0,0,149.66,138.34Zm-52.29,65a16,16,0,0,1-22.62,0L52.69,181.25a16,16,0,0,1,0-22.62L76,135.31,120.69,180Zm140.29-185a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Zm-34.35,79L180,120.69,135.31,76l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,203.31,97.37Z"/>'),kW=Pa("plugs","0 0 256 256",'<path d="M137,168l11.52-11.51a12,12,0,0,0-17-17L120,151l-15-15,11.52-11.51a12,12,0,0,0-17-17L88,119,72.49,103.51a12,12,0,0,0-17,17L59,124,38.54,144.49a36,36,0,0,0,0,50.91l2.55,2.54L15.51,223.51a12,12,0,0,0,17,17l25.57-25.58,2.54,2.55a36.06,36.06,0,0,0,50.91,0L132,197l3.51,3.52a12,12,0,0,0,17-17ZM94.54,200.49a12,12,0,0,1-17,0L55.51,178.43a12,12,0,0,1,0-17L76,141l39,39Zm146-185a12,12,0,0,0-17,0L197.94,41.09l-2.54-2.55a36.05,36.05,0,0,0-50.91,0L124,59l-3.51-3.52a12,12,0,0,0-17,17l80,80a12,12,0,0,0,17-17L197,132l20.49-20.49a36,36,0,0,0,0-50.91l-2.55-2.54,25.58-25.57A12,12,0,0,0,240.49,15.51Zm-40,79L180,115,141,76l20.49-20.49a12,12,0,0,1,17,0l22.06,22.06a12,12,0,0,1,0,17Z"/>'),MW=Pa("plugs","0 0 256 256",'<path d="M149.66,149.66,131.31,168l18.35,18.34a8,8,0,0,1-11.32,11.32L132,191.31l-23.31,23.32a32.06,32.06,0,0,1-45.26,0l-5.37-5.38-28.4,28.41a8,8,0,0,1-11.32-11.32l28.41-28.4-5.38-5.37a32,32,0,0,1,0-45.26L64.69,124l-6.35-6.34a8,8,0,0,1,11.32-11.32L88,124.69l18.34-18.35a8,8,0,0,1,11.32,11.32L99.31,136,120,156.69l18.34-18.35a8,8,0,0,1,11.32,11.32Zm88-131.32a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Z"/>'),LW=Pa("plugs","0 0 256 256",'<path d="M76,124l56,56-29,29a24,24,0,0,1-33.94,0L47,186.91A24,24,0,0,1,47,153ZM209,69.09,186.91,47A24,24,0,0,0,153,47L124,76l56,56,29-29A24,24,0,0,0,209,69.09Z" opacity="0.2"/><path d="M149.66,138.34a8,8,0,0,0-11.32,0L120,156.69,99.31,136l18.35-18.34a8,8,0,0,0-11.32-11.32L88,124.69,69.66,106.34a8,8,0,0,0-11.32,11.32L64.69,124,41.37,147.31a32,32,0,0,0,0,45.26l5.38,5.37-28.41,28.4a8,8,0,0,0,11.32,11.32l28.4-28.41,5.37,5.38a32,32,0,0,0,45.26,0L132,191.31l6.34,6.35a8,8,0,0,0,11.32-11.32L131.31,168l18.35-18.34A8,8,0,0,0,149.66,138.34Zm-52.29,65a16,16,0,0,1-22.62,0L52.69,181.25a16,16,0,0,1,0-22.62L76,135.31,120.69,180Zm140.29-185a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Zm-34.35,79L180,120.69,135.31,76l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,203.31,97.37Z"/>'),EW="plugs",xW=Object.freeze(Object.defineProperty({__proto__:null,bold:kW,default:Q8,duotone:LW,fill:MW,glyphName:EW,light:AW,regular:Q8,thin:CW},Symbol.toStringTag,{value:"Module"})),Oa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},$W=Oa("rows","0 0 256 256",'<path d="M208,140H48a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V152A12,12,0,0,0,208,140Zm4,52a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,52H48A12,12,0,0,0,36,64v40a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V64A12,12,0,0,0,208,52Zm4,52a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"/>'),TW=Oa("rows","0 0 256 256",'<path d="M208,138H48a14,14,0,0,0-14,14v40a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V152A14,14,0,0,0,208,138Zm2,54a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,50H48A14,14,0,0,0,34,64v40a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V64A14,14,0,0,0,208,50Zm2,54a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"/>'),e_=Oa("rows","0 0 256 256",'<path d="M208,136H48a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,56H48V152H208v40Zm0-144H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Zm0,56H48V64H208v40Z"/>'),NW=Oa("rows","0 0 256 256",'<path d="M208,136H48a20,20,0,0,0-20,20v36a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V156A20,20,0,0,0,208,136Zm-4,52H52V160H204Zm4-144H48A20,20,0,0,0,28,64v36a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm-4,52H52V68H204Z"/>'),HW=Oa("rows","0 0 256 256",'<path d="M224,152v40a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V152a16,16,0,0,1,16-16H208A16,16,0,0,1,224,152ZM208,48H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Z"/>'),PW=Oa("rows","0 0 256 256",'<path d="M216,152v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8H208A8,8,0,0,1,216,152Zm-8-96H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V64A8,8,0,0,0,208,56Z" opacity="0.2"/><path d="M208,136H48a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,56H48V152H208v40Zm0-144H48A16,16,0,0,0,32,64v40a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V64A16,16,0,0,0,208,48Zm0,56H48V64H208v40Z"/>'),OW="rows",IW=Object.freeze(Object.defineProperty({__proto__:null,bold:NW,default:e_,duotone:PW,fill:HW,glyphName:OW,light:TW,regular:e_,thin:$W},Symbol.toStringTag,{value:"Module"})),Ia=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},RW=Ia("shield","0 0 256 256",'<path d="M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"/>'),DW=Ia("shield","0 0 256 256",'<path d="M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"/>'),t_=Ia("shield","0 0 256 256",'<path d="M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"/>'),VW=Ia("shield","0 0 256 256",'<path d="M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204Z"/>'),BW=Ia("shield","0 0 256 256",'<path d="M224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Z"/>'),ZW=Ia("shield","0 0 256 256",'<path d="M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z" opacity="0.2"/><path d="M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"/>'),FW="shield",zW=Object.freeze(Object.defineProperty({__proto__:null,bold:VW,default:t_,duotone:ZW,fill:BW,glyphName:FW,light:DW,regular:t_,thin:RW},Symbol.toStringTag,{value:"Module"})),Ra=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},UW=Ra("sliders","0 0 256 256",'<path d="M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"/>'),WW=Ra("sliders","0 0 256 256",'<path d="M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"/>'),i_=Ra("sliders","0 0 256 256",'<path d="M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"/>'),jW=Ra("sliders","0 0 256 256",'<path d="M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"/>'),KW=Ra("sliders","0 0 256 256",'<path d="M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"/>'),qW=Ra("sliders","0 0 256 256",'<path d="M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z" opacity="0.2"/><path d="M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"/>'),GW="sliders",YW=Object.freeze(Object.defineProperty({__proto__:null,bold:jW,default:i_,duotone:qW,fill:KW,glyphName:GW,light:WW,regular:i_,thin:UW},Symbol.toStringTag,{value:"Module"})),Da=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},XW=Da("snowflake","0 0 256 256",'<path d="M219.88,151.05a4,4,0,0,1-2.93,4.83l-28.6,7L195.86,191a4,4,0,0,1-2.83,4.9,3.65,3.65,0,0,1-1,.14,4,4,0,0,1-3.86-3L180,162.64l-48-27.71v55.41l22.83,22.83a4,4,0,0,1-5.66,5.66L128,197.66l-21.17,21.17a4,4,0,0,1-5.66-5.66L124,190.34V134.93L76,162.64,67.86,193A4,4,0,0,1,64,196a3.65,3.65,0,0,1-1-.14,4,4,0,0,1-2.83-4.9l7.51-28.05-28.6-7A4,4,0,1,1,41,148.12l31,7.61L120,128,72,100.27l-31,7.61a4.07,4.07,0,0,1-1,.12,4,4,0,0,1-1-7.88l28.6-7L60.14,65A4,4,0,0,1,67.86,63L76,93.36l48,27.71V65.66L101.17,42.83a4,4,0,0,1,5.66-5.66L128,58.34l21.17-21.17a4,4,0,1,1,5.66,5.66L132,65.66v55.41l48-27.71L188.14,63A4,4,0,0,1,195.86,65l-7.51,28.05,28.6,7A4,4,0,0,1,216,108a4.07,4.07,0,0,1-1-.12l-31-7.61L136,128l48,27.73,31-7.61A4,4,0,0,1,219.88,151.05Z"/>'),JW=Da("snowflake","0 0 256 256",'<path d="M221.83,150.57a6,6,0,0,1-4.4,7.26l-26.62,6.54,7,26.08a6,6,0,0,1-4.24,7.35,6.4,6.4,0,0,1-1.55.2,6,6,0,0,1-5.8-4.45L178.27,164,134,138.39v51.13l22.24,22.24a6,6,0,1,1-8.48,8.48L128,200.49l-19.76,19.75a6,6,0,0,1-8.48-8.48L122,189.52V138.39L77.73,164l-7.93,29.6A6,6,0,0,1,64,198a6.4,6.4,0,0,1-1.55-.2,6,6,0,0,1-4.24-7.35l7-26.08-26.62-6.54a6,6,0,0,1,2.86-11.66l30.23,7.43L116,128,71.66,102.4l-30.23,7.43A5.88,5.88,0,0,1,40,110a6,6,0,0,1-1.43-11.83l26.62-6.54-7-26.08a6,6,0,1,1,11.59-3.1l7.93,29.6L122,117.61V66.48L99.76,44.24a6,6,0,0,1,8.48-8.48L128,55.51l19.76-19.75a6,6,0,0,1,8.48,8.48L134,66.48v51.13l44.27-25.56,7.93-29.6a6,6,0,1,1,11.59,3.1l-7,26.08,26.62,6.54A6,6,0,0,1,216,110a5.88,5.88,0,0,1-1.43-.17l-30.23-7.43L140,128l44.34,25.6,30.23-7.43A6,6,0,0,1,221.83,150.57Z"/>'),r_=Da("snowflake","0 0 256 256",'<path d="M223.77,150.09a8,8,0,0,1-5.86,9.68l-24.64,6,6.46,24.11a8,8,0,0,1-5.66,9.8A8.25,8.25,0,0,1,192,200a8,8,0,0,1-7.72-5.93l-7.72-28.8L136,141.86v46.83l21.66,21.65a8,8,0,0,1-11.32,11.32L128,203.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L120,188.69V141.86L79.45,165.27l-7.72,28.8A8,8,0,0,1,64,200a8.25,8.25,0,0,1-2.08-.27,8,8,0,0,1-5.66-9.8l6.46-24.11-24.64-6a8,8,0,0,1,3.82-15.54l29.45,7.23L112,128,71.36,104.54l-29.45,7.23A7.85,7.85,0,0,1,40,112a8,8,0,0,1-1.91-15.77l24.64-6L56.27,66.07a8,8,0,0,1,15.46-4.14l7.72,28.8L120,114.14V67.31L98.34,45.66a8,8,0,0,1,11.32-11.32L128,52.69l18.34-18.35a8,8,0,0,1,11.32,11.32L136,67.31v46.83l40.55-23.41,7.72-28.8a8,8,0,0,1,15.46,4.14l-6.46,24.11,24.64,6A8,8,0,0,1,216,112a7.85,7.85,0,0,1-1.91-.23l-29.45-7.23L144,128l40.64,23.46,29.45-7.23A8,8,0,0,1,223.77,150.09Z"/>'),QW=Da("snowflake","0 0 256 256",'<path d="M227.65,149.14a12,12,0,0,1-8.79,14.51l-20.67,5.08,5.4,20.16a12,12,0,0,1-23.18,6.22l-7.29-27.2L140,148.78V187l20.48,20.48a12,12,0,0,1-17,17L128,209l-15.51,15.52a12,12,0,0,1-17-17L116,187V148.78L82.88,167.91l-7.29,27.2a12,12,0,0,1-23.18-6.22l5.4-20.16-20.67-5.08a12,12,0,1,1,5.72-23.3l27.89,6.85L104,128,70.75,108.8l-27.89,6.85A11.8,11.8,0,0,1,40,116a12,12,0,0,1-2.85-23.65l20.67-5.08-5.4-20.16a12,12,0,0,1,23.18-6.22l7.29,27.2L116,107.21V69L95.52,48.48a12,12,0,0,1,17-17L128,47l15.51-15.52a12,12,0,1,1,17,17L140,69v38.24l33.12-19.12,7.29-27.2a12,12,0,0,1,23.18,6.22l-5.4,20.16,20.67,5.08A12,12,0,0,1,216,116a11.8,11.8,0,0,1-2.87-.35l-27.89-6.85L152,128l33.25,19.2,27.89-6.85A12,12,0,0,1,227.65,149.14Z"/>'),ej=Da("snowflake","0 0 256 256",'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm42.37,119.22,18.94-6.76a8,8,0,1,1,5.38,15.08l-15.48,5.52,4.52,16.87a8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,176,184a8,8,0,0,1-7.73-5.93l-5.57-20.8L136,141.86v30.83l13.66,13.65a8,8,0,0,1-11.32,11.32L128,187.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L120,172.69V141.86L93.3,157.27l-5.57,20.8A8,8,0,0,1,80,184a8.23,8.23,0,0,1-2.07-.27,8,8,0,0,1-5.66-9.8l4.52-16.87-15.48-5.52a8,8,0,0,1,5.38-15.08l18.94,6.76L112,128,85.63,112.78l-18.94,6.76A8.18,8.18,0,0,1,64,120a8,8,0,0,1-2.69-15.54l15.48-5.52L72.27,82.07a8,8,0,0,1,15.46-4.14l5.57,20.8L120,114.14V83.31L106.34,69.66a8,8,0,0,1,11.32-11.32L128,68.69l10.34-10.35a8,8,0,0,1,11.32,11.32L136,83.31v30.83l26.7-15.41,5.57-20.8a8,8,0,0,1,15.46,4.14l-4.52,16.87,15.48,5.52A8,8,0,0,1,192,120a8.18,8.18,0,0,1-2.69-.46l-18.94-6.76L144,128Z"/>'),tj=Da("snowflake","0 0 256 256",'<path d="M220,128a92,92,0,1,1-92-92A92.1,92.1,0,0,1,220,128Z" opacity="0.2"/><path d="M223.77,150.09a8,8,0,0,1-5.86,9.68l-24.64,6,6.46,24.11a8,8,0,0,1-5.66,9.8A8.25,8.25,0,0,1,192,200a8,8,0,0,1-7.72-5.93l-7.72-28.8L136,141.86v46.83l21.66,21.65a8,8,0,0,1-11.32,11.32L128,203.31l-18.34,18.35a8,8,0,0,1-11.32-11.32L120,188.69V141.86L79.45,165.27l-7.72,28.8A8,8,0,0,1,64,200a8.25,8.25,0,0,1-2.08-.27,8,8,0,0,1-5.66-9.8l6.46-24.11-24.64-6a8,8,0,0,1,3.82-15.54l29.45,7.23L112,128,71.36,104.54l-29.45,7.23A7.85,7.85,0,0,1,40,112a8,8,0,0,1-1.91-15.77l24.64-6L56.27,66.07a8,8,0,0,1,15.46-4.14l7.72,28.8L120,114.14V67.31L98.34,45.66a8,8,0,0,1,11.32-11.32L128,52.69l18.34-18.35a8,8,0,0,1,11.32,11.32L136,67.31v46.83l40.55-23.41,7.72-28.8a8,8,0,0,1,15.46,4.14l-6.46,24.11,24.64,6A8,8,0,0,1,216,112a7.85,7.85,0,0,1-1.91-.23l-29.45-7.23L144,128l40.64,23.46,29.45-7.23A8,8,0,0,1,223.77,150.09Z"/>'),ij="snowflake",rj=Object.freeze(Object.defineProperty({__proto__:null,bold:QW,default:r_,duotone:tj,fill:ej,glyphName:ij,light:JW,regular:r_,thin:XW},Symbol.toStringTag,{value:"Module"})),Va=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},sj=Va("speaker-hifi","0 0 256 256",'<path d="M192,28H64A12,12,0,0,0,52,40V216a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V40A12,12,0,0,0,192,28Zm4,188a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H192a4,4,0,0,1,4,4ZM120,76a8,8,0,1,1,8,8A8,8,0,0,1,120,76Zm8,40a36,36,0,1,0,36,36A36,36,0,0,0,128,116Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,180Z"/>'),nj=Va("speaker-hifi","0 0 256 256",'<path d="M192,26H64A14,14,0,0,0,50,40V216a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V40A14,14,0,0,0,192,26Zm2,190a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H192a2,2,0,0,1,2,2ZM118,76a10,10,0,1,1,10,10A10,10,0,0,1,118,76Zm10,38a38,38,0,1,0,38,38A38,38,0,0,0,128,114Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,178Z"/>'),s_=Va("speaker-hifi","0 0 256 256",'<path d="M192,24H64A16,16,0,0,0,48,40V216a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V40A16,16,0,0,0,192,24Zm0,192H64V40H192ZM116,76a12,12,0,1,1,12,12A12,12,0,0,1,116,76Zm12,116a40,40,0,1,0-40-40A40,40,0,0,0,128,192Zm0-64a24,24,0,1,1-24,24A24,24,0,0,1,128,128Z"/>'),aj=Va("speaker-hifi","0 0 256 256",'<path d="M192,20H64A20,20,0,0,0,44,40V216a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V40A20,20,0,0,0,192,20Zm-4,192H68V44H188ZM112,76a16,16,0,1,1,16,16A16,16,0,0,1,112,76Zm16,120a44,44,0,1,0-44-44A44.05,44.05,0,0,0,128,196Zm0-64a20,20,0,1,1-20,20A20,20,0,0,1,128,132Z"/>'),oj=Va("speaker-hifi","0 0 256 256",'<path d="M152,160a24,24,0,1,1-24-24A24,24,0,0,1,152,160ZM208,40V216a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V40A16,16,0,0,1,64,24H192A16,16,0,0,1,208,40ZM116,68a12,12,0,1,0,12-12A12,12,0,0,0,116,68Zm52,92a40,40,0,1,0-40,40A40,40,0,0,0,168,160Z"/>'),lj=Va("speaker-hifi","0 0 256 256",'<path d="M192,32H64a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V40A8,8,0,0,0,192,32ZM128,184a32,32,0,1,1,32-32A32,32,0,0,1,128,184Z" opacity="0.2"/><path d="M192,24H64A16,16,0,0,0,48,40V216a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V40A16,16,0,0,0,192,24Zm0,192H64V40H192ZM116,76a12,12,0,1,1,12,12A12,12,0,0,1,116,76Zm12,116a40,40,0,1,0-40-40A40,40,0,0,0,128,192Zm0-64a24,24,0,1,1-24,24A24,24,0,0,1,128,128Z"/>'),cj="speaker-hifi",uj=Object.freeze(Object.defineProperty({__proto__:null,bold:aj,default:s_,duotone:lj,fill:oj,glyphName:cj,light:nj,regular:s_,thin:sj},Symbol.toStringTag,{value:"Module"})),Ba=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},hj=Ba("speaker-high","0 0 256 256",'<path d="M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"/>'),dj=Ba("speaker-high","0 0 256 256",'<path d="M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"/>'),n_=Ba("speaker-high","0 0 256 256",'<path d="M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"/>'),fj=Ba("speaker-high","0 0 256 256",'<path d="M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"/>'),_j=Ba("speaker-high","0 0 256 256",'<path d="M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"/>'),pj=Ba("speaker-high","0 0 256 256",'<path d="M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z" opacity="0.2"/><path d="M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"/>'),mj="speaker-high",gj=Object.freeze(Object.defineProperty({__proto__:null,bold:fj,default:n_,duotone:pj,fill:_j,glyphName:mj,light:dj,regular:n_,thin:hj},Symbol.toStringTag,{value:"Module"})),Za=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},vj=Za("television","0 0 256 256",'<path d="M216,68H137.66l41.17-41.17a4,4,0,1,0-5.66-5.66L128,66.34,82.83,21.17a4,4,0,0,0-5.66,5.66L118.34,68H40A12,12,0,0,0,28,80V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V80A12,12,0,0,0,216,68ZM36,200V80a4,4,0,0,1,4-4H148V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H156V76h60a4,4,0,0,1,4,4Zm-24-84a8,8,0,1,1-8-8A8,8,0,0,1,196,116Zm0,48a8,8,0,1,1-8-8A8,8,0,0,1,196,164Z"/>'),bj=Za("television","0 0 256 256",'<path d="M216,66H142.48l37.76-37.76a6,6,0,0,0-8.48-8.48L128,63.51,84.24,19.76a6,6,0,1,0-8.48,8.48L113.52,66H40A14,14,0,0,0,26,80V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V80A14,14,0,0,0,216,66ZM38,200V80a2,2,0,0,1,2-2H146V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H158V78h58a2,2,0,0,1,2,2Zm-20-84a10,10,0,1,1-10-10A10,10,0,0,1,198,116Zm0,48a10,10,0,1,1-10-10A10,10,0,0,1,198,164Z"/>'),a_=Za("television","0 0 256 256",'<path d="M216,64H147.31l34.35-34.34a8,8,0,1,0-11.32-11.32L128,60.69,85.66,18.34A8,8,0,0,0,74.34,29.66L108.69,64H40A16,16,0,0,0,24,80V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64ZM40,80H144V200H40ZM216,200H160V80h56V200Zm-16-84a12,12,0,1,1-12-12A12,12,0,0,1,200,116Zm0,48a12,12,0,1,1-12-12A12,12,0,0,1,200,164Z"/>'),yj=Za("television","0 0 256 256",'<path d="M216,60H157l27.52-27.52a12,12,0,0,0-17-17L128,55,88.49,15.51a12,12,0,0,0-17,17L99,60H40A20,20,0,0,0,20,80V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V80A20,20,0,0,0,216,60ZM44,84h84V196H44ZM212,196H152V84h60Zm-44-80a16,16,0,1,1,16,16A16,16,0,0,1,168,116Zm32,48a16,16,0,1,1-16-16A16,16,0,0,1,200,164Z"/>'),wj=Za("television","0 0 256 256",'<path d="M216,64H147.31l34.35-34.34a8,8,0,1,0-11.32-11.32L128,60.69,85.66,18.34A8,8,0,0,0,74.34,29.66L108.69,64H40A16,16,0,0,0,24,80V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64Zm0,136H160V80h56V200Zm-16-84a12,12,0,1,1-12-12A12,12,0,0,1,200,116Zm0,48a12,12,0,1,1-12-12A12,12,0,0,1,200,164Z"/>'),Sj=Za("television","0 0 256 256",'<path d="M152,72V208H40a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8Z" opacity="0.2"/><path d="M216,64H147.31l34.35-34.34a8,8,0,1,0-11.32-11.32L128,60.69,85.66,18.34A8,8,0,0,0,74.34,29.66L108.69,64H40A16,16,0,0,0,24,80V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64ZM40,80H144V200H40ZM216,200H160V80h56V200Zm-16-84a12,12,0,1,1-12-12A12,12,0,0,1,200,116Zm0,48a12,12,0,1,1-12-12A12,12,0,0,1,200,164Z"/>'),Cj="television",Aj=Object.freeze(Object.defineProperty({__proto__:null,bold:yj,default:a_,duotone:Sj,fill:wj,glyphName:Cj,light:bj,regular:a_,thin:vj},Symbol.toStringTag,{value:"Module"})),Fa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},kj=Fa("terminal","0 0 256 256",'<path d="M116,128a4,4,0,0,1-1.34,3l-72,64a4,4,0,1,1-5.32-6L106,128,37.34,67a4,4,0,0,1,5.32-6l72,64A4,4,0,0,1,116,128Zm100,60H120a4,4,0,0,0,0,8h96a4,4,0,0,0,0-8Z"/>'),Mj=Fa("terminal","0 0 256 256",'<path d="M116,132.48l-72,64a6,6,0,0,1-8-9L103,128,36,68.49a6,6,0,0,1,8-9l72,64a6,6,0,0,1,0,9ZM216,186H120a6,6,0,0,0,0,12h96a6,6,0,0,0,0-12Z"/>'),o_=Fa("terminal","0 0 256 256",'<path d="M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"/>'),Lj=Fa("terminal","0 0 256 256",'<path d="M120,137,48,201A12,12,0,1,1,32,183l61.91-55L32,73A12,12,0,1,1,48,55l72,64A12,12,0,0,1,120,137Zm96,43H120a12,12,0,0,0,0,24h96a12,12,0,0,0,0-24Z"/>'),Ej=Fa("terminal","0 0 256 256",'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM77.66,173.66a8,8,0,0,1-11.32-11.32L100.69,128,66.34,93.66A8,8,0,0,1,77.66,82.34l40,40a8,8,0,0,1,0,11.32ZM192,176H128a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"/>'),xj=Fa("terminal","0 0 256 256",'<path d="M216,80V192H40V64H200A16,16,0,0,1,216,80Z" opacity="0.2"/><path d="M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"/>'),$j="terminal",Tj=Object.freeze(Object.defineProperty({__proto__:null,bold:Lj,default:o_,duotone:xj,fill:Ej,glyphName:$j,light:Mj,regular:o_,thin:kj},Symbol.toStringTag,{value:"Module"})),za=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Nj=za("thermometer","0 0 256 256",'<path d="M212,60a24,24,0,1,0,24,24A24,24,0,0,0,212,60Zm0,40a16,16,0,1,1,16-16A16,16,0,0,1,212,100Zm-88,56.29V88a4,4,0,0,0-8,0v68.29a28,28,0,1,0,8,0ZM120,204a20,20,0,1,1,20-20A20,20,0,0,1,120,204Zm36-68V48a36,36,0,0,0-72,0v88a60,60,0,1,0,72,0ZM120,236a52,52,0,0,1-29.71-94.68A4,4,0,0,0,92,138V48a28,28,0,0,1,56,0v90a4,4,0,0,0,1.71,3.28A52,52,0,0,1,120,236Z"/>'),Hj=za("thermometer","0 0 256 256",'<path d="M212,58a26,26,0,1,0,26,26A26,26,0,0,0,212,58Zm0,40a14,14,0,1,1,14-14A14,14,0,0,1,212,98Zm-86,56.6V88a6,6,0,0,0-12,0v66.6a30,30,0,1,0,12,0ZM120,202a18,18,0,1,1,18-18A18,18,0,0,1,120,202Zm38-67V48a38,38,0,0,0-76,0v87a62,62,0,1,0,76,0Zm-38,99a50,50,0,0,1-28.57-91A6,6,0,0,0,94,138V48a26,26,0,0,1,52,0v90a6,6,0,0,0,2.57,4.92A50,50,0,0,1,120,234Z"/>'),l_=za("thermometer","0 0 256 256",'<path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z"/>'),Pj=za("thermometer","0 0 256 256",'<path d="M212,52a32,32,0,1,0,32,32A32,32,0,0,0,212,52Zm0,40a8,8,0,1,1,8-8A8,8,0,0,1,212,92ZM160,56A52,52,0,0,0,56,56v94.69a64,64,0,1,0,104,0ZM108,228a40,40,0,0,1-30.91-65.39A12,12,0,0,0,80,154.78V56a28,28,0,0,1,56,0v98.77a12,12,0,0,0,2.77,7.68A40,40,0,0,1,108,228Zm24-40a24,24,0,1,1-36-20.78V92a12,12,0,0,1,24,0v75.22A24,24,0,0,1,132,188Z"/>'),Oj=za("thermometer","0 0 256 256",'<path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-60,50.08V40a32,32,0,0,0-64,0V146.08a56,56,0,1,0,64,0ZM136,104H104V40a16,16,0,0,1,32,0Z"/>'),Ij=za("thermometer","0 0 256 256",'<path d="M152,138V48a32,32,0,0,0-64,0v90a56,56,0,1,0,64,0Zm-32,70a24,24,0,1,1,24-24A24,24,0,0,1,120,208Z" opacity="0.2"/><path d="M212,56a28,28,0,1,0,28,28A28,28,0,0,0,212,56Zm0,40a12,12,0,1,1,12-12A12,12,0,0,1,212,96Zm-84,57V88a8,8,0,0,0-16,0v65a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232Z"/>'),Rj="thermometer",Dj=Object.freeze(Object.defineProperty({__proto__:null,bold:Pj,default:l_,duotone:Ij,fill:Oj,glyphName:Rj,light:Hj,regular:l_,thin:Nj},Symbol.toStringTag,{value:"Module"})),Ua=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Vj=Ua("thermometer-hot","0 0 256 256",'<path d="M124,156.29V48a4,4,0,0,0-8,0V156.29a28,28,0,1,0,8,0ZM120,204a20,20,0,1,1,20-20A20,20,0,0,1,120,204Zm36-68V48a36,36,0,0,0-72,0v88a60,60,0,1,0,72,0ZM120,236a52,52,0,0,1-29.71-94.68A4,4,0,0,0,92,138V48a28,28,0,0,1,56,0v90a4,4,0,0,0,1.71,3.28A52,52,0,0,1,120,236ZM180.65,78.59a4,4,0,0,1,1.17-5.54c13.24-8.63,23.07-4.43,31.75-.73,8.15,3.48,14.58,6.22,24.25-.07a4,4,0,1,1,4.36,6.7C236.43,82.7,231.32,84,226.67,84c-6.06,0-11.33-2.25-16.24-4.34-8.15-3.47-14.58-6.22-24.25.07A4,4,0,0,1,180.65,78.59Zm62.7,26.82a4,4,0,0,1-1.17,5.54c-5.75,3.75-10.86,5.07-15.51,5.07-6.06,0-11.33-2.25-16.24-4.34-8.15-3.47-14.58-6.22-24.25.07a4,4,0,1,1-4.36-6.7c13.24-8.63,23.07-4.43,31.75-.73,8.15,3.48,14.58,6.22,24.25-.07A4,4,0,0,1,243.35,105.41Z"/>'),Bj=Ua("thermometer-hot","0 0 256 256",'<path d="M126,154.6V48a6,6,0,0,0-12,0V154.6a30,30,0,1,0,12,0ZM120,202a18,18,0,1,1,18-18A18,18,0,0,1,120,202Zm38-67V48a38,38,0,0,0-76,0v87a62,62,0,1,0,76,0Zm-38,99a50,50,0,0,1-28.57-91A6,6,0,0,0,94,138V48a26,26,0,0,1,52,0v90a6,6,0,0,0,2.57,4.92A50,50,0,0,1,120,234ZM179,79.68a6,6,0,0,1,1.75-8.3c14.14-9.21,24.95-4.61,33.63-.9,7.9,3.37,13.6,5.8,22.37.09a6,6,0,1,1,6.55,10.05c-6.12,4-11.62,5.39-16.59,5.39-6.51,0-12.11-2.39-17-4.49-7.89-3.37-13.59-5.8-22.37-.09A6,6,0,0,1,179,79.68ZM245,104.32a6,6,0,0,1-1.76,8.3c-6.12,4-11.62,5.39-16.59,5.39-6.51,0-12.11-2.39-17-4.49-7.89-3.37-13.59-5.8-22.37-.09a6,6,0,0,1-6.55-10.05c14.14-9.21,24.95-4.6,33.63-.9,7.9,3.37,13.6,5.8,22.37.09A6,6,0,0,1,245,104.32Z"/>'),c_=Ua("thermometer-hot","0 0 256 256",'<path d="M128,153V48a8,8,0,0,0-16,0V153a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232ZM177.3,80.77a8,8,0,0,1,2.33-11.07c15-9.79,26.87-4.75,35.51-1.06C223,72,227.76,74,235.63,68.89a8,8,0,0,1,8.74,13.41C237.88,86.53,232,88,226.69,88c-7,0-12.92-2.54-17.83-4.63C201,80,196.24,78,188.37,83.11A8,8,0,0,1,177.3,80.77Zm69.4,22.46a8,8,0,0,1-2.33,11.07C237.88,118.53,232,120,226.69,120c-7,0-12.92-2.54-17.83-4.63-7.87-3.36-12.62-5.38-20.49-.25a8,8,0,0,1-8.74-13.41c15-9.79,26.87-4.75,35.51-1.06,7.87,3.36,12.62,5.39,20.49.25A8,8,0,0,1,246.7,103.23Z"/>'),Zj=Ua("thermometer-hot","0 0 256 256",'<path d="M160,56A52,52,0,0,0,56,56v94.69a64,64,0,1,0,104,0ZM108,228a40,40,0,0,1-30.91-65.39A12,12,0,0,0,80,154.78V56a28,28,0,0,1,56,0v98.77a12,12,0,0,0,2.77,7.68A40,40,0,0,1,108,228Zm24-40a24,24,0,1,1-36-20.78V56a12,12,0,0,1,24,0V167.22A24,24,0,0,1,132,188ZM173.94,83a12,12,0,0,1,3.51-16.6c16.82-11,30.32-5.2,39.26-1.39,8.09,3.46,10.93,4.37,16.74.58a12,12,0,0,1,13.1,20.11C239.28,90.38,232.64,92,226.71,92c-7.79,0-14.34-2.8-19.42-5-8.09-3.46-10.93-4.37-16.74-.58A12,12,0,0,1,173.94,83Zm76.11,26.1a12,12,0,0,1-3.5,16.6c-7.27,4.73-13.91,6.35-19.84,6.35-7.79,0-14.34-2.8-19.42-5-8.09-3.46-10.93-4.37-16.74-.58a12,12,0,1,1-13.1-20.11c16.82-11,30.32-5.2,39.26-1.39,8.09,3.46,10.93,4.37,16.74.58A12,12,0,0,1,250.05,109.05Z"/>'),Fj=Ua("thermometer-hot","0 0 256 256",'<path d="M152,146.08V40a32,32,0,0,0-64,0V146.08a56,56,0,1,0,64,0ZM136,56H104V40a16,16,0,0,1,32,0Zm41.3,24.77a8,8,0,0,1,2.33-11.07c15-9.79,26.87-4.75,35.51-1.06C223,72,227.76,74,235.63,68.89a8,8,0,0,1,8.74,13.41C237.88,86.53,232,88,226.69,88c-7,0-12.92-2.54-17.83-4.63C201,80,196.24,78,188.37,83.11A8,8,0,0,1,177.3,80.77Zm69.4,22.46a8,8,0,0,1-2.33,11.07C237.88,118.53,232,120,226.69,120c-7,0-12.92-2.54-17.83-4.63-7.87-3.36-12.62-5.38-20.49-.25a8,8,0,0,1-8.74-13.41c15-9.79,26.87-4.75,35.51-1.06,7.87,3.36,12.62,5.39,20.49.25A8,8,0,0,1,246.7,103.23Z"/>'),zj=Ua("thermometer-hot","0 0 256 256",'<path d="M152,138V48a32,32,0,0,0-64,0v90a56,56,0,1,0,64,0Zm-32,70a24,24,0,1,1,24-24A24,24,0,0,1,120,208Z" opacity="0.2"/><path d="M128,153V48a8,8,0,0,0-16,0V153a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,120,200Zm40-66V48a40,40,0,0,0-80,0v86a64,64,0,1,0,80,0Zm-40,98a48,48,0,0,1-27.42-87.4A8,8,0,0,0,96,138V48a24,24,0,0,1,48,0v90a8,8,0,0,0,3.42,6.56A48,48,0,0,1,120,232ZM177.3,80.77a8,8,0,0,1,2.33-11.07c15-9.79,26.87-4.75,35.51-1.06C223,72,227.76,74,235.63,68.89a8,8,0,0,1,8.74,13.41C237.88,86.53,232,88,226.69,88c-7,0-12.92-2.54-17.83-4.63C201,80,196.24,78,188.37,83.11A8,8,0,0,1,177.3,80.77Zm69.4,22.46a8,8,0,0,1-2.33,11.07C237.88,118.53,232,120,226.69,120c-7,0-12.92-2.54-17.83-4.63-7.87-3.36-12.62-5.38-20.49-.25a8,8,0,0,1-8.74-13.41c15-9.79,26.87-4.75,35.51-1.06,7.87,3.36,12.62,5.39,20.49.25A8,8,0,0,1,246.7,103.23Z"/>'),Uj="thermometer-hot",Wj=Object.freeze(Object.defineProperty({__proto__:null,bold:Zj,default:c_,duotone:zj,fill:Fj,glyphName:Uj,light:Bj,regular:c_,thin:Vj},Symbol.toStringTag,{value:"Module"})),Wa=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},jj=Wa("toggle-right","0 0 256 256",'<path d="M176,60H80a68,68,0,0,0,0,136h96a68,68,0,0,0,0-136Zm0,128H80A60,60,0,0,1,80,68h96a60,60,0,0,1,0,120Zm0-96a36,36,0,1,0,36,36A36,36,0,0,0,176,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,176,156Z"/>'),Kj=Wa("toggle-right","0 0 256 256",'<path d="M176,58H80a70,70,0,0,0,0,140h96a70,70,0,0,0,0-140Zm0,128H80A58,58,0,0,1,80,70h96a58,58,0,0,1,0,116Zm0-96a38,38,0,1,0,38,38A38,38,0,0,0,176,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,176,154Z"/>'),u_=Wa("toggle-right","0 0 256 256",'<path d="M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112Zm0-96a40,40,0,1,0,40,40A40,40,0,0,0,176,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,176,152Z"/>'),qj=Wa("toggle-right","0 0 256 256",'<path d="M176,52H80a76,76,0,0,0,0,152h96a76,76,0,0,0,0-152Zm0,128H80A52,52,0,0,1,80,76h96a52,52,0,0,1,0,104Zm0-92a40,40,0,1,0,40,40A40,40,0,0,0,176,88Zm0,56a16,16,0,1,1,16-16A16,16,0,0,1,176,144Z"/>'),Gj=Wa("toggle-right","0 0 256 256",'<path d="M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,176,168Z"/>'),Yj=Wa("toggle-right","0 0 256 256",'<path d="M208,128a32,32,0,1,1-32-32A32,32,0,0,1,208,128Z" opacity="0.2"/><path d="M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112Zm0-96a40,40,0,1,0,40,40A40,40,0,0,0,176,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,176,152Z"/>'),Xj="toggle-right",Jj=Object.freeze(Object.defineProperty({__proto__:null,bold:qj,default:u_,duotone:Yj,fill:Gj,glyphName:Xj,light:Kj,regular:u_,thin:jj},Symbol.toStringTag,{value:"Module"})),ja=(e,t,i)=>{const r=s=>ke("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...s,innerHTML:i});return r.displayName="NbGlyph",r.glyphName=e,r},Qj=ja("wind","0 0 256 256",'<path d="M180,184a28,28,0,0,1-28,28c-12.09,0-23.76-7.83-27.75-18.61a4,4,0,1,1,7.5-2.78C134.58,198.24,143.28,204,152,204a20,20,0,0,0,0-40H40a4,4,0,0,1,0-8H152A28,28,0,0,1,180,184ZM148,72a28,28,0,0,0-28-28c-12.09,0-23.76,7.83-27.75,18.61a4,4,0,0,0,7.5,2.78C102.58,57.76,111.28,52,120,52a20,20,0,0,1,0,40H24a4,4,0,0,0,0,8h96A28,28,0,0,0,148,72Zm60,4c-12.09,0-23.76,7.83-27.75,18.61a4,4,0,1,0,7.5,2.78C190.58,89.76,199.28,84,208,84a20,20,0,0,1,0,40H32a4,4,0,0,0,0,8H208a28,28,0,0,0,0-56Z"/>'),eK=ja("wind","0 0 256 256",'<path d="M182,184a30,30,0,0,1-30,30c-12.9,0-25.36-8.38-29.63-19.92a6,6,0,0,1,11.26-4.16C136.13,196.69,144.2,202,152,202a18,18,0,0,0,0-36H40a6,6,0,0,1,0-12H152A30,30,0,0,1,182,184ZM150,72a30,30,0,0,0-30-30c-12.9,0-25.36,8.38-29.63,19.92a6,6,0,1,0,11.26,4.16C104.13,59.31,112.2,54,120,54a18,18,0,0,1,0,36H24a6,6,0,0,0,0,12h96A30,30,0,0,0,150,72Zm58,2c-12.9,0-25.36,8.38-29.63,19.92a6,6,0,1,0,11.26,4.16C192.13,91.31,200.2,86,208,86a18,18,0,0,1,0,36H32a6,6,0,0,0,0,12H208a30,30,0,0,0,0-60Z"/>'),h_=ja("wind","0 0 256 256",'<path d="M184,184a32,32,0,0,1-32,32c-13.7,0-26.95-8.93-31.5-21.22a8,8,0,0,1,15-5.56C137.74,195.27,145,200,152,200a16,16,0,0,0,0-32H40a8,8,0,0,1,0-16H152A32,32,0,0,1,184,184Zm-64-80a32,32,0,0,0,0-64c-13.7,0-26.95,8.93-31.5,21.22a8,8,0,0,0,15,5.56C105.74,60.73,113,56,120,56a16,16,0,0,1,0,32H24a8,8,0,0,0,0,16Zm88-32c-13.7,0-26.95,8.93-31.5,21.22a8,8,0,0,0,15,5.56C193.74,92.73,201,88,208,88a16,16,0,0,1,0,32H32a8,8,0,0,0,0,16H208a32,32,0,0,0,0-64Z"/>'),tK=ja("wind","0 0 256 256",'<path d="M24,104a12,12,0,0,1,0-24h96a12,12,0,0,0,0-24,15.07,15.07,0,0,0-10.26,4.45,12,12,0,0,1-17-16.9A39.34,39.34,0,0,1,120,32a36,36,0,0,1,0,72ZM208,68a39.34,39.34,0,0,0-27.3,11.55,12,12,0,0,0,17,16.9A15.07,15.07,0,0,1,208,92a12,12,0,0,1,0,24H32a12,12,0,0,0,0,24H208a36,36,0,0,0,0-72Zm-56,84H40a12,12,0,0,0,0,24H152a12,12,0,0,1,0,24,15.11,15.11,0,0,1-10.27-4.45,12,12,0,1,0-17,16.9A39.34,39.34,0,0,0,152,224a36,36,0,0,0,0-72Z"/>'),iK=ja("wind","0 0 256 256",'<path d="M120,104H24a8,8,0,0,1-8-8.53A8.17,8.17,0,0,1,24.27,88H112a8,8,0,0,0,8-8.53A8.17,8.17,0,0,0,111.73,72H92.29a4,4,0,0,1-4-4.58A32,32,0,1,1,120,104Zm119.92-2.29a32,32,0,0,0-63.59-2.29,4,4,0,0,0,4,4.58h19.44a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H32.27A8.17,8.17,0,0,0,24,127.47,8,8,0,0,0,32,136H208A32,32,0,0,0,239.92,101.71ZM152,152H40.27A8.17,8.17,0,0,0,32,159.47,8,8,0,0,0,40,168H143.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H124.29a4,4,0,0,0-4,4.58A32,32,0,1,0,152,152Z"/>'),rK=ja("wind","0 0 256 256",'<path d="M120,96a24,24,0,1,1,24-24A24,24,0,0,1,120,96Zm88-16a24,24,0,1,0,24,24A24,24,0,0,0,208,80Zm-56,80a24,24,0,1,0,24,24A24,24,0,0,0,152,160Z" opacity="0.2"/><path d="M184,184a32,32,0,0,1-32,32c-13.7,0-26.95-8.93-31.5-21.22a8,8,0,0,1,15-5.56C137.74,195.27,145,200,152,200a16,16,0,0,0,0-32H40a8,8,0,0,1,0-16H152A32,32,0,0,1,184,184Zm-64-80a32,32,0,0,0,0-64c-13.7,0-26.95,8.93-31.5,21.22a8,8,0,0,0,15,5.56C105.74,60.73,113,56,120,56a16,16,0,0,1,0,32H24a8,8,0,0,0,0,16Zm88-32c-13.7,0-26.95,8.93-31.5,21.22a8,8,0,0,0,15,5.56C193.74,92.73,201,88,208,88a16,16,0,0,1,0,32H32a8,8,0,0,0,0,16H208a32,32,0,0,0,0-64Z"/>'),sK="wind",nK=Object.freeze(Object.defineProperty({__proto__:null,bold:tK,default:h_,duotone:rK,fill:iK,glyphName:sK,light:eK,regular:h_,thin:Qj},Symbol.toStringTag,{value:"Module"}));function aK(){J7({"app-window":vz,bell:sE,"brackets-curly":kz,broadcast:Nz,camera:Vz,cube:jz,devices:dD,door:Qz,drop:aU,fan:fU,"game-controller":yU,garage:LU,gear:PU,house:ZU,intersect:qU,lamp:tW,lightbulb:lW,lightning:pW,lock:SW,plugs:xW,pulse:uI,"puzzle-piece":w$,rows:IW,shield:zW,sliders:YW,snowflake:rj,"speaker-hifi":uj,"speaker-high":gj,television:Aj,terminal:Tj,thermometer:Dj,"thermometer-hot":Wj,"toggle-right":Jj,wind:nK})}const oK={key:0,class:"pcf-section"},lK={class:"pcf-section-label"},cK={class:"pcf-section-body"},uK={key:1,class:"pcf-row pcf-row--switch"},hK={class:"pcf-label-wrap"},dK={class:"pcf-label"},fK={key:0,class:"pcf-required"},_K={key:0,class:"pcf-hint"},pK={key:2,class:"pcf-row"},mK={class:"pcf-label"},gK={key:0,class:"pcf-required"},vK={class:"pcf-control"},bK={key:0,class:"pcf-hint"},yK={key:3,class:"pcf-row pcf-row--array"},wK={class:"pcf-label"},SK={key:0,class:"pcf-required"},CK={class:"pcf-control"},AK={class:"pcf-array"},kK={key:0,class:"pcf-hint"},MK={key:4,class:"pcf-row"},LK={class:"pcf-label"},EK={key:0,class:"pcf-required"},xK={class:"pcf-control"},$K={key:0,class:"pcf-hint"},TK={key:5,class:"pcf-row"},NK={class:"pcf-label"},HK={key:0,class:"pcf-required"},PK={class:"pcf-control"},OK={key:0,class:"pcf-hint"},IK=Oe({__name:"PluginConfigField",props:{fieldKey:{},field:{},path:{},required:{type:Boolean},value:{}},emits:["change","addArray","removeArray","updateArray"],setup(e,{emit:t}){const i=e,r=t;function s(){return Array.isArray(i.field.type)?i.field.type[0]:i.field.type??"string"}function n(){return i.field.title??i.fieldKey.replace(/([A-Z])/g," $1").replace(/^./,h=>h.toUpperCase())}function a(){return(i.field.enum??[]).map((h,d)=>{var f;return{value:h,label:((f=i.field.enumNames)==null?void 0:f[d])??String(h)}})}function o(){return i.value??i.field.default??""}function l(h){const d=i.value;return d==null?void 0:d[h]}function c(h,d){const f=typeof i.value=="object"&&i.value!==null?{...i.value}:{};f[h]=d,r("change",f)}function u(){return Array.isArray(i.value)?i.value:[]}return(h,d)=>{const f=Io("PluginConfigField",!0),g=rc,_=sc,A=ul,p=vi;return s()==="object"&&e.field.properties?(b(),$("div",oK,[y("div",lK,U(n()),1),y("div",cK,[(b(!0),$(be,null,Ve(e.field.properties,(S,m)=>{var v;return b(),fe(f,{key:m,"field-key":String(m),field:S,path:[...e.path,String(m)],required:((v=e.field.required)==null?void 0:v.includes(String(m)))??!1,value:l(String(m)),onChange:k=>c(String(m),k),onAddArray:d[0]||(d[0]=(k,x)=>r("addArray",k,x)),onRemoveArray:d[1]||(d[1]=(k,x)=>r("removeArray",k,x)),onUpdateArray:d[2]||(d[2]=(k,x,M)=>r("updateArray",k,x,M))},null,8,["field-key","field","path","required","value","onChange"])}),128))])])):s()==="boolean"?(b(),$("div",uK,[y("div",hK,[y("span",dK,[ce(U(n())+" ",1),e.required?(b(),$("span",fK,"*")):j("",!0)]),e.field.description?(b(),$("span",_K,U(e.field.description),1)):j("",!0)]),X(g,{"model-value":!!(e.value??e.field.default??!1),name:`pcf-${e.path.join("-")}`,size:"sm",variant:"primary","onUpdate:modelValue":d[3]||(d[3]=S=>r("change",S))},null,8,["model-value","name"])])):e.field.enum?(b(),$("div",pK,[y("label",mK,[ce(U(n())+" ",1),e.required?(b(),$("span",gK,"*")):j("",!0)]),y("div",vK,[X(_,{"model-value":o(),options:a(),size:"sm","onUpdate:modelValue":d[4]||(d[4]=S=>r("change",S))},null,8,["model-value","options"]),e.field.description?(b(),$("span",bK,U(e.field.description),1)):j("",!0)])])):s()==="array"?(b(),$("div",yK,[y("label",wK,[ce(U(n())+" ",1),e.required?(b(),$("span",SK,"*")):j("",!0)]),y("div",CK,[y("div",AK,[(b(!0),$(be,null,Ve(u(),(S,m)=>(b(),$("div",{key:m,class:"pcf-array-row"},[X(A,{"model-value":String(S),size:"sm",placeholder:`${n()} ${m+1}`,style:{flex:"1"},"onUpdate:modelValue":v=>r("updateArray",e.path,m,v)},null,8,["model-value","placeholder","onUpdate:modelValue"]),X(p,{variant:"ghost",size:"sm",icon:td,"aria-label":`Remove ${n()} ${m+1}`,onClick:v=>r("removeArray",e.path,m)},null,8,["aria-label","onClick"])]))),128)),X(p,{variant:"ghost",size:"sm",icon:DA,onClick:d[5]||(d[5]=S=>r("addArray",e.path,e.field.items??{type:"string"}))},{default:te(()=>[...d[8]||(d[8]=[ce(" Add ",-1)])]),_:1})]),e.field.description?(b(),$("span",kK,U(e.field.description),1)):j("",!0)])])):s()==="number"||s()==="integer"?(b(),$("div",MK,[y("label",LK,[ce(U(n())+" ",1),e.required?(b(),$("span",EK,"*")):j("",!0)]),y("div",xK,[X(A,{"model-value":e.value!==void 0?String(e.value):e.field.default!==void 0?String(e.field.default):"",type:"number",size:"sm",placeholder:e.field.default!==void 0?String(e.field.default):"",style:{"max-width":"180px"},"onUpdate:modelValue":d[6]||(d[6]=S=>r("change",Number(S)))},null,8,["model-value","placeholder"]),e.field.description?(b(),$("span",$K,U(e.field.description),1)):j("",!0)])])):(b(),$("div",TK,[y("label",NK,[ce(U(n())+" ",1),e.required?(b(),$("span",HK,"*")):j("",!0)]),y("div",PK,[X(A,{"model-value":e.value!==void 0?String(e.value):e.field.default!==void 0?String(e.field.default):"",size:"sm",placeholder:e.field.default!==void 0?String(e.field.default):"","onUpdate:modelValue":d[7]||(d[7]=S=>r("change",S))},null,8,["model-value","placeholder"]),e.field.description?(b(),$("span",OK,U(e.field.description),1)):j("",!0)])]))}}}),RK=Zt(IK,[["__scopeId","data-v-79b9818f"]]);WE({storageKey:"openbridge.theme"});const Ka=Z3(QE);Ka.use(U3());Ka.use(iv);Ka.use(Vy({legacy:!1,locale:navigator.language,fallbackLocale:"en"}));Ka.use(Y7);aK();Ka.component("PluginConfigField",RK);Ka.mount("#app");
|