@nubisco/openbridge 1.7.1 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/__tests__/shell.test.d.ts +2 -0
  2. package/dist/__tests__/shell.test.d.ts.map +1 -0
  3. package/dist/__tests__/shell.test.js +22 -0
  4. package/dist/__tests__/shell.test.js.map +1 -0
  5. package/dist/server.d.ts.map +1 -1
  6. package/dist/server.js +5 -2
  7. package/dist/server.js.map +1 -1
  8. package/dist/shell.d.ts +11 -0
  9. package/dist/shell.d.ts.map +1 -0
  10. package/dist/shell.js +26 -0
  11. package/dist/shell.js.map +1 -0
  12. package/package.json +5 -5
  13. package/ui-dist/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  14. package/ui-dist/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  15. package/ui-dist/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
  16. package/ui-dist/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
  17. package/ui-dist/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  18. package/ui-dist/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  19. package/ui-dist/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
  20. package/ui-dist/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
  21. package/ui-dist/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  22. package/ui-dist/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  23. package/ui-dist/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  24. package/ui-dist/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
  25. package/ui-dist/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  26. package/ui-dist/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  27. package/ui-dist/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
  28. package/ui-dist/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
  29. package/ui-dist/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  30. package/ui-dist/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  31. package/ui-dist/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
  32. package/ui-dist/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
  33. package/ui-dist/assets/ibm-plex-sans-cyrillic-300-normal-LoaTnByX.woff +0 -0
  34. package/ui-dist/assets/ibm-plex-sans-cyrillic-300-normal-RhT0Ayi3.woff2 +0 -0
  35. package/ui-dist/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff +0 -0
  36. package/ui-dist/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2 +0 -0
  37. package/ui-dist/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2 +0 -0
  38. package/ui-dist/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff +0 -0
  39. package/ui-dist/assets/ibm-plex-sans-cyrillic-ext-300-normal-Bbd5v1xK.woff +0 -0
  40. package/ui-dist/assets/ibm-plex-sans-cyrillic-ext-300-normal-DqmgDkIN.woff2 +0 -0
  41. package/ui-dist/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff +0 -0
  42. package/ui-dist/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2 +0 -0
  43. package/ui-dist/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff +0 -0
  44. package/ui-dist/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2 +0 -0
  45. package/ui-dist/assets/ibm-plex-sans-greek-300-normal-J-CBqZoJ.woff2 +0 -0
  46. package/ui-dist/assets/ibm-plex-sans-greek-300-normal-STc8XiDr.woff +0 -0
  47. package/ui-dist/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff +0 -0
  48. package/ui-dist/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2 +0 -0
  49. package/ui-dist/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff +0 -0
  50. package/ui-dist/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2 +0 -0
  51. package/ui-dist/assets/ibm-plex-sans-latin-300-normal-C9Of02-5.woff +0 -0
  52. package/ui-dist/assets/ibm-plex-sans-latin-300-normal-b4i7YzLG.woff2 +0 -0
  53. package/ui-dist/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
  54. package/ui-dist/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
  55. package/ui-dist/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
  56. package/ui-dist/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
  57. package/ui-dist/assets/ibm-plex-sans-latin-ext-300-normal-B8Zgwjh3.woff +0 -0
  58. package/ui-dist/assets/ibm-plex-sans-latin-ext-300-normal-BLFuR0P1.woff2 +0 -0
  59. package/ui-dist/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
  60. package/ui-dist/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff +0 -0
  61. package/ui-dist/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff +0 -0
  62. package/ui-dist/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
  63. package/ui-dist/assets/ibm-plex-sans-vietnamese-300-normal-CkYRZD2a.woff +0 -0
  64. package/ui-dist/assets/ibm-plex-sans-vietnamese-300-normal-SDfX6ktj.woff2 +0 -0
  65. package/ui-dist/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2 +0 -0
  66. package/ui-dist/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff +0 -0
  67. package/ui-dist/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff +0 -0
  68. package/ui-dist/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2 +0 -0
  69. package/ui-dist/assets/index-BWdUx8PX.css +32 -0
  70. package/ui-dist/assets/index-D685dWrS.js +110 -0
  71. package/ui-dist/index.html +2 -2
  72. package/ui-dist/assets/index-CobsrVaQ.css +0 -32
  73. package/ui-dist/assets/index-HkwdcyTW.js +0 -109
@@ -1,109 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function i(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=i(r);fetch(r.href,s)}})();/**
2
- * @vue/shared v3.5.44
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function Qh(e){const t=Object.create(null);for(const i of e.split(","))t[i]=1;return i=>i in t}const ut={},$s=[],Dn=()=>{},Um=()=>!1,du=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hu=e=>e.startsWith("onUpdate:"),Ft=Object.assign,e2=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},i3=Object.prototype.hasOwnProperty,ht=(e,t)=>i3.call(e,t),Ue=Array.isArray,Wr=e=>f0(e)==="[object Map]",gr=e=>f0(e)==="[object Set]",Lf=e=>f0(e)==="[object Date]",Je=e=>typeof e=="function",Nt=e=>typeof e=="string",en=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Wm=e=>(ft(e)||Je(e))&&Je(e.then)&&Je(e.catch),jm=Object.prototype.toString,f0=e=>jm.call(e),n3=e=>f0(e).slice(8,-1),Km=e=>f0(e)==="[object Object]",fu=e=>Nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mo=Qh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pu=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},r3=/-\w/g,Li=pu(e=>e.replace(r3,t=>t.slice(1).toUpperCase())),s3=/\B([A-Z])/g,wr=pu(e=>e.replace(s3,"-$1").toLowerCase()),_u=pu(e=>e.charAt(0).toUpperCase()+e.slice(1)),i1=pu(e=>e?`on${_u(e)}`:""),gi=(e,t)=>!Object.is(e,t),oc=(e,...t)=>{for(let i=0;i<e.length;i++)e[i](...t)},qm=(e,t,i,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:i})},mu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},a3=e=>{const t=Nt(e)?Number(e):NaN;return isNaN(t)?e:t};let Ef;const vu=()=>Ef||(Ef=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $t(e){if(Ue(e)){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=Nt(n)?u3(n):$t(n);if(r)for(const s in r)t[s]=r[s]}return t}else if(Nt(e)||ft(e))return e}const l3=/;(?![^(]*\))/g,o3=/:([^]+)/,c3=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function u3(e){const t={};return e.replace(c3,i=>i.startsWith("/*")?"":i).split(l3).forEach(i=>{if(i){const n=i.split(o3);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ee(e){let t="";if(Nt(e))t=e;else if(Ue(e))for(let i=0;i<e.length;i++){const n=Ee(e[i]);n&&(t+=n+" ")}else if(ft(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function d3(e){if(!e)return null;let{class:t,style:i}=e;return t&&!Nt(t)&&(e.class=Ee(t)),i&&(e.style=$t(i)),e}const h3="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",f3=Qh(h3);function Gm(e){return!!e||e===""}function p3(e,t,i){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Sn(e[r],t[r],i);return n}function xf(e,t,i){if(e.size!==t.size)return!1;const n=Array.from(t),r=new Uint8Array(n.length);for(const s of e){let a=-1;for(let l=0;l<n.length;l++)if(!r[l]&&Sn(s,n[l],i)){a=l;break}if(a<0)return!1;r[a]=1}return!0}function _3(e,t,i){let n=Wr(e),r=Wr(t);if(n||r||(n=gr(e),r=gr(t),n||r))return n&&r?xf(e,t,i):!1;const s=Object.keys(e).length,a=Object.keys(t).length;if(s!==a)return!1;for(const l in e){const o=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(o&&!c||!o&&c||!Sn(e[l],t[l],i))return!1}return String(e)===String(t)}function Hf(e,t,i,n){i||(i=[new Map,new Map]);const[r,s]=i;if(r.has(e)||s.has(t))return r.get(e)===t&&s.get(t)===e;r.set(e,t),s.set(t,e);const a=n(e,t,i);return r.delete(e),s.delete(t),a}function Sn(e,t,i){if(e===t)return!0;let n=Lf(e),r=Lf(t);return n||r?n&&r?e.getTime()===t.getTime():!1:(n=en(e),r=en(t),n||r?e===t:(n=Ue(e),r=Ue(t),n||r?n&&r?Hf(e,t,i,p3):!1:(n=ft(e),r=ft(t),n||r?!n||!r?!1:Hf(e,t,i,_3):String(e)===String(t))))}function t2(e,t){return e.findIndex(i=>Sn(i,t))}const Ym=e=>!!(e&&e.__v_isRef===!0),Z=e=>Nt(e)?e:e==null?"":Ue(e)||ft(e)&&(e.toString===jm||!Je(e.toString))?Ym(e)?Z(e.value):JSON.stringify(e,Xm,2):String(e),Xm=(e,t)=>Ym(t)?Xm(e,t.value):Wr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[n,r],s)=>(i[n1(n,s)+" =>"]=r,i),{})}:gr(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>n1(i))}:en(t)?n1(t):ft(t)&&!Ue(t)&&!Km(t)?String(t):t,n1=(e,t="")=>{var i;return en(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/**
6
- * @vue/reactivity v3.5.44
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let ri;class Jm{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ri&&(ri.active?(this.parent=ri,this.index=(ri.scopes||(ri.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,i;if(this.scopes){const n=this.scopes.slice();for(t=0,i=n.length;t<i;t++)n[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){const r=this.scopes.slice();for(t=0,i=r.length;t<i;t++)r[t].resume()}const n=this.effects.slice();for(t=0,i=n.length;t<i;t++)n[t].resume()}}run(t){if(this._active){const i=ri;try{return ri=this,t()}finally{ri=i}}}on(){++this._on===1&&(this.prevScope=ri,ri=this)}off(){if(this._on>0&&--this._on===0){if(ri===this)ri=this.prevScope;else{let t=ri;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let i,n;for(i=0,n=this.effects.length;i<n;i++)this.effects[i].stop();for(this.effects.length=0,i=0,n=this.cleanups.length;i<n;i++)this.cleanups[i]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(i=0,n=r.length;i<n;i++)r[i].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function i2(e){return new Jm(e)}function Qm(){return ri}function Cc(e,t=!1){ri&&ri.cleanups.push(e)}let Ht;const r1=new WeakSet;class e4{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,ri&&(ri.active?ri.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,r1.has(this)&&(r1.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||i4(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tf(this),n4(this);const t=Ht,i=wn;Ht=this,wn=!0;try{return this.fn()}finally{r4(this),Ht=t,wn=i,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)s2(t);this.deps=this.depsTail=void 0,Tf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?r1.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){id(this)&&this.run()}get dirty(){return id(this)}}let t4=0,Lo,Eo;function i4(e,t=!1){if(e.flags|=8,t){e.next=Eo,Eo=e;return}e.next=Lo,Lo=e}function n2(){t4++}function r2(){if(--t4>0)return;if(Eo){let t=Eo;for(Eo=void 0;t;){const i=t.next;t.next=void 0,t.flags&=-9,t=i}}let e;for(;Lo;){let t=Lo;for(Lo=void 0;t;){const i=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=i}}if(e)throw e}function n4(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function r4(e){let t,i=e.depsTail,n=i;for(;n;){const r=n.prevDep;n.version===-1?(n===i&&(i=r),s2(n),m3(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=i}function id(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(s4(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function s4(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zo)||(e.globalVersion=Zo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!id(e))))return;e.flags|=2;const t=e.dep,i=Ht,n=wn;Ht=e,wn=!0;try{n4(e);const r=e.fn(e._value);(t.version===0||gi(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ht=i,wn=n,r4(e),e.flags&=-3}}function s2(e,t=!1){const{dep:i,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),i.subs===e&&(i.subs=n,!n&&i.computed)){i.computed.flags&=-5;for(let s=i.computed.deps;s;s=s.nextDep)s2(s,!0)}!t&&!--i.sc&&i.map&&i.map.delete(i.key)}function m3(e){const{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}let wn=!0;const a4=[];function jn(){a4.push(wn),wn=!1}function Kn(){const e=a4.pop();wn=e===void 0?!0:e}function Tf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const i=Ht;Ht=void 0;try{t()}finally{Ht=i}}}let Zo=0;class v3{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 gu{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(!Ht||!wn||Ht===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ht)i=this.activeLink=new v3(Ht,this),Ht.deps?(i.prevDep=Ht.depsTail,Ht.depsTail.nextDep=i,Ht.depsTail=i):Ht.deps=Ht.depsTail=i,l4(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const n=i.nextDep;n.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=n),i.prevDep=Ht.depsTail,i.nextDep=void 0,Ht.depsTail.nextDep=i,Ht.depsTail=i,Ht.deps===i&&(Ht.deps=n)}return i}trigger(t){this.version++,Zo++,this.notify(t)}notify(t){n2();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{r2()}}}function l4(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)l4(n)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}}const kc=new WeakMap,Ts=Symbol(""),nd=Symbol(""),Bo=Symbol("");function $i(e,t,i){if(wn&&Ht){let n=kc.get(e);n||kc.set(e,n=new Map);let r=n.get(i);r||(n.set(i,r=new gu),r.map=n,r.key=i),r.track()}}function cr(e,t,i,n,r,s){const a=kc.get(e);if(!a){Zo++;return}const l=o=>{o&&o.trigger()};if(n2(),t==="clear")a.forEach(l);else{const o=Ue(e),c=o&&fu(i);if(o&&i==="length"){const u=Number(n);a.forEach((d,f)=>{(f==="length"||f===Bo||!en(f)&&f>=u)&&l(d)})}else switch((i!==void 0||a.has(void 0))&&l(a.get(i)),c&&l(a.get(Bo)),t){case"add":o?c&&l(a.get("length")):(l(a.get(Ts)),Wr(e)&&l(a.get(nd)));break;case"delete":o||(l(a.get(Ts)),Wr(e)&&l(a.get(nd)));break;case"set":Wr(e)&&l(a.get(Ts));break}}r2()}function g3(e,t){const i=kc.get(e);return i&&i.get(t)}function Us(e){const t=lt(e);return t===e||($i(t,"iterate",Bo),Ji(e))?t:qn(e)?Zn(e)?t.map(i=>Xr(_n(i))):t.map(Xr):t.map(_n)}function bu(e){return $i(e=lt(e),"iterate",Bo),e}function Pn(e,t){return qn(e)?Xr(Zn(e)?_n(t):t):_n(t)}const b3={__proto__:null,[Symbol.iterator](){return s1(this,Symbol.iterator,e=>Pn(this,e))},concat(...e){return Us(this).concat(...e.map(t=>Ue(t)?Us(t):t))},entries(){return s1(this,"entries",e=>(e[1]=Pn(this,e[1]),e))},every(e,t){return ir(this,"every",e,t,void 0,arguments)},filter(e,t){return ir(this,"filter",e,t,i=>i.map(n=>Pn(this,n)),arguments)},find(e,t){return ir(this,"find",e,t,i=>Pn(this,i),arguments)},findIndex(e,t){return ir(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ir(this,"findLast",e,t,i=>Pn(this,i),arguments)},findLastIndex(e,t){return ir(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ir(this,"forEach",e,t,void 0,arguments)},includes(...e){return a1(this,"includes",e)},indexOf(...e){return a1(this,"indexOf",e)},join(e){return Us(this).join(e)},lastIndexOf(...e){return a1(this,"lastIndexOf",e)},map(e,t){return ir(this,"map",e,t,void 0,arguments)},pop(){return to(this,"pop")},push(...e){return to(this,"push",e)},reduce(e,...t){return Pf(this,"reduce",e,t)},reduceRight(e,...t){return Pf(this,"reduceRight",e,t)},shift(){return to(this,"shift")},some(e,t){return ir(this,"some",e,t,void 0,arguments)},splice(...e){return to(this,"splice",e)},toReversed(){return Us(this).toReversed()},toSorted(e){return Us(this).toSorted(e)},toSpliced(...e){return Us(this).toSpliced(...e)},unshift(...e){return to(this,"unshift",e)},values(){return s1(this,"values",e=>Pn(this,e))}};function s1(e,t,i){const n=bu(e),r=n[t],s=r.call(n);if(n!==e&&!Ji(e)){if(s[Symbol.toStringTag]==="Array Iterator"){const a=Object.create(Object.getPrototypeOf(s));return a.next=()=>Nf(s.next(),i),r!==o4[t]&&Object.defineProperties(a,{return:{get(){const l=s.return;return typeof l=="function"?l.bind(s):l}},throw:{get(){const l=s.throw;return typeof l=="function"?l.bind(s):l}}}),a}s._next=s.next,s.next=()=>Nf(s._next(),i)}return s}function Nf(e,t){return e.done||(e.value=t(e.value)),e}const o4=Array.prototype;function ir(e,t,i,n,r,s){const a=bu(e),l=a!==e&&!Ji(e),o=a[t];if(o!==o4[t]){const d=o.apply(e,s);return l?_n(d):d}let c=i;a!==e&&(l?c=function(d,f){return i.call(this,Pn(e,d),f,e)}:i.length>2&&(c=function(d,f){return i.call(this,d,f,e)}));const u=o.call(a,c,n);return l&&r?r(u):u}function Pf(e,t,i,n){const r=bu(e),s=r!==e&&!Ji(e);let a=i,l=!1;r!==e&&(s?(l=n.length===0,a=function(c,u,d){return l&&(l=!1,c=Pn(e,c)),i.call(this,c,Pn(e,u),d,e)}):i.length>3&&(a=function(c,u,d){return i.call(this,c,u,d,e)}));const o=r[t](a,...n);return l?Pn(e,o):o}function a1(e,t,i){const n=lt(e);$i(n,"iterate",Bo);const r=n[t](...i);return(r===-1||r===!1)&&yu(i[0])?(i[0]=lt(i[0]),n[t](...i)):r}function to(e,t,i=[]){jn(),n2();const n=lt(e)[t].apply(e,i);return r2(),Kn(),n}const y3=Qh("__proto__,__v_isRef,__isVue"),c4=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(en));function w3(e){en(e)||(e=String(e));const t=lt(this);return $i(t,"has",e),t.hasOwnProperty(e)}class u4{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,n){if(i==="__v_skip")return t.__v_skip;const r=this._isReadonly,s=this._isShallow;if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return s;if(i==="__v_raw")return n===(r?s?H3:p4:s?f4:h4).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=Ue(t);if(!r){let o;if(a&&(o=b3[i]))return o;if(i==="hasOwnProperty")return w3}const l=Reflect.get(t,i,Vt(t)?t:n);if((en(i)?c4.has(i):y3(i))||(r||$i(t,"get",i),s))return l;if(Vt(l)){const o=a&&fu(i)?l:l.value;return r&&ft(o)?Yr(o):o}return ft(l)?r?Yr(l):br(l):l}}class d4 extends u4{constructor(t=!1){super(!1,t)}set(t,i,n,r){let s=t[i];const a=Ue(t)&&fu(i);if(!this._isShallow){const c=qn(s);if(!Ji(n)&&!qn(n)&&(s=lt(s),n=lt(n)),!a&&Vt(s)&&!Vt(n))return c||(s.value=n),!0}const l=a?Number(i)<t.length:ht(t,i),o=Reflect.set(t,i,n,Vt(t)?t:r);return t===lt(r)&&o&&(l?gi(n,s)&&cr(t,"set",i,n):cr(t,"add",i,n)),o}deleteProperty(t,i){const n=ht(t,i);t[i];const r=Reflect.deleteProperty(t,i);return r&&n&&cr(t,"delete",i,void 0),r}has(t,i){const n=Reflect.has(t,i);return(!en(i)||!c4.has(i))&&$i(t,"has",i),n}ownKeys(t){return $i(t,"iterate",Ue(t)?"length":Ts),Reflect.ownKeys(t)}}class S3 extends u4{constructor(t=!1){super(!0,t)}set(t,i){return!0}deleteProperty(t,i){return!0}}const C3=new d4,k3=new S3,A3=new d4(!0);const rd=e=>e,x0=e=>Reflect.getPrototypeOf(e);function $3(e,t,i){return function(...n){const r=this.__v_raw,s=lt(r),a=Wr(s),l=e==="entries"||e===Symbol.iterator&&a,o=e==="keys"&&a,c=r[e](...n),u=i?rd:t?Xr:_n;return!t&&$i(s,"iterate",o?nd:Ts),Ft(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function H0(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function M3(e,t){const i={get(r){const s=this.__v_raw,a=lt(s),l=lt(r);e||(gi(r,l)&&$i(a,"get",r),$i(a,"get",l));const{has:o}=x0(a),c=t?rd:e?Xr:_n;if(o.call(a,r))return c(s.get(r));if(o.call(a,l))return c(s.get(l));s!==a&&s.get(r)},get size(){const r=this.__v_raw;return!e&&$i(lt(r),"iterate",Ts),r.size},has(r){const s=this.__v_raw,a=lt(s),l=lt(r);return e||(gi(r,l)&&$i(a,"has",r),$i(a,"has",l)),r===l?s.has(r):s.has(r)||s.has(l)},forEach(r,s){const a=this,l=a.__v_raw,o=lt(l),c=t?rd:e?Xr:_n;return!e&&$i(o,"iterate",Ts),l.forEach((u,d)=>r.call(s,c(u),c(d),a))}};return Ft(i,e?{add:H0("add"),set:H0("set"),delete:H0("delete"),clear:H0("clear")}:{add(r){const s=lt(this),a=x0(s),l=lt(r),o=!t&&!Ji(r)&&!qn(r)?l:r;return a.has.call(s,o)||gi(r,o)&&a.has.call(s,r)||gi(l,o)&&a.has.call(s,l)||(s.add(o),cr(s,"add",o,o)),this},set(r,s){!t&&!Ji(s)&&!qn(s)&&(s=lt(s));const a=lt(this),{has:l,get:o}=x0(a);let c=l.call(a,r);c||(r=lt(r),c=l.call(a,r));const u=o.call(a,r);return a.set(r,s),c?gi(s,u)&&cr(a,"set",r,s):cr(a,"add",r,s),this},delete(r){const s=lt(this),{has:a,get:l}=x0(s);let o=a.call(s,r);o||(r=lt(r),o=a.call(s,r)),l&&l.call(s,r);const c=s.delete(r);return o&&cr(s,"delete",r,void 0),c},clear(){const r=lt(this),s=r.size!==0,a=r.clear();return s&&cr(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{i[r]=$3(r,e,t)}),i}function a2(e,t){const i=M3(e,t);return(n,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_isShallow"?t:r==="__v_raw"?n:Reflect.get(ht(i,r)&&r in n?i:n,r,s)}const L3={get:a2(!1,!1)},E3={get:a2(!1,!0)},x3={get:a2(!0,!1)};const h4=new WeakMap,f4=new WeakMap,p4=new WeakMap,H3=new WeakMap;function T3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function br(e){return qn(e)?e:l2(e,!1,C3,L3,h4)}function _4(e){return l2(e,!1,A3,E3,f4)}function Yr(e){return l2(e,!0,k3,x3,p4)}function l2(e,t,i,n,r){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=r.get(e);if(s)return s;const a=T3(n3(e));if(a===0)return e;const l=new Proxy(e,a===2?n:i);return r.set(e,l),l}function Zn(e){return qn(e)?Zn(e.__v_raw):!!(e&&e.__v_isReactive)}function qn(e){return!!(e&&e.__v_isReadonly)}function Ji(e){return!!(e&&e.__v_isShallow)}function yu(e){return e?!!e.__v_raw:!1}function lt(e){const t=e&&e.__v_raw;return t?lt(t):e}function o2(e){return!ht(e,"__v_skip")&&Object.isExtensible(e)&&qm(e,"__v_skip",!0),e}const _n=e=>ft(e)?br(e):e,Xr=e=>ft(e)?Yr(e):e;function Vt(e){return e?e.__v_isRef===!0:!1}function G(e){return m4(e,!1)}function Gn(e){return m4(e,!0)}function m4(e,t){return Vt(e)?e:new N3(e,t)}class N3{constructor(t,i){this.dep=new gu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?t:lt(t),this._value=i?t:_n(t),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(t){const i=this._rawValue,n=this.__v_isShallow||Ji(t)||qn(t);t=n?t:lt(t),gi(t,i)&&(this._rawValue=t,this._value=n?t:_n(t),this.dep.trigger())}}function _e(e){return Vt(e)?e.value:e}function P3(e){return Je(e)?e():_e(e)}const O3={get:(e,t,i)=>t==="__v_raw"?e:_e(Reflect.get(e,t,i)),set:(e,t,i,n)=>{const r=e[t];return Vt(r)&&!Vt(i)?(r.value=i,!0):Reflect.set(e,t,i,n)}};function v4(e){return Zn(e)?e:new Proxy(e,O3)}class R3{constructor(t){this.__v_isRef=!0,this._value=void 0;const i=this.dep=new gu,{get:n,set:r}=t(i.track.bind(i),i.trigger.bind(i));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function I3(e){return new R3(e)}function V3(e){const t=Ue(e)?new Array(e.length):{};for(const i in e)t[i]=b4(e,i);return t}class D3{constructor(t,i,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=en(i)?i:String(i),this._raw=lt(t);let r=!0,s=t;if(!Ue(t)||en(this._key)||!fu(this._key))do r=!yu(s)||Ji(s);while(r&&(s=s.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=_e(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Vt(this._raw[this._key])){const i=this._object[this._key];if(Vt(i)){i.value=t;return}}this._object[this._key]=t}get dep(){return g3(this._raw,this._key)}}class Z3{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 g4(e,t,i){return Vt(e)?e:Je(e)?new Z3(e):ft(e)&&arguments.length>1?b4(e,t,i):G(e)}function b4(e,t,i){return new D3(e,t,i)}class B3{constructor(t,i,n){this.fn=t,this.setter=i,this._value=void 0,this.dep=new gu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ht!==this)return i4(this,!0),!0}get value(){const t=this.dep.track();return s4(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function F3(e,t,i=!1){let n,r;return Je(e)?n=e:(n=e.get,r=e.set),new B3(n,r,i)}const T0={},Ac=new WeakMap;let ys;function z3(e,t=!1,i=ys){if(i){let n=Ac.get(i);n||Ac.set(i,n=[]),n.push(e)}}function U3(e,t,i=ut){const{immediate:n,deep:r,once:s,scheduler:a,augmentJob:l,call:o}=i,c=g=>r?g:Ji(g)||r===!1||r===0?ur(g,1):ur(g);let u,d,f,h,m=!1,p=!1;if(Vt(e)?(d=()=>e.value,m=Ji(e)):Zn(e)?(d=()=>c(e),m=!0):Ue(e)?(p=!0,m=e.some(g=>Zn(g)||Ji(g)),d=()=>e.map(g=>{if(Vt(g))return g.value;if(Zn(g))return c(g);if(Je(g))return o?o(g,2):g()})):Je(e)?t?d=o?()=>o(e,2):e:d=()=>{if(f){jn();try{f()}finally{Kn()}}const g=ys;ys=u;try{return o?o(e,3,[h]):e(h)}finally{ys=g}}:d=Dn,t&&r){const g=d,L=r===!0?1/0:r;d=()=>ur(g(),L)}const b=Qm(),v=()=>{u.stop(),b&&b.active&&e2(b.effects,u)};if(s&&t){const g=t;t=(...L)=>{try{return g(...L)}finally{v()}}}let C=p?new Array(e.length).fill(T0):T0;const y=g=>{if(!(!(u.flags&1)||!u.dirty&&!g))if(t){const L=u.run();if(g||r||m||(p?L.some((x,$)=>gi(x,C[$])):gi(L,C))){const x=ys;jn();try{f&&f(),ys=u;const $=[L,C===T0?void 0:p&&C[0]===T0?[]:C,h];C=L,o?o(t,3,$):t(...$)}finally{ys=x,Kn()}}}else u.run()};return l&&l(y),u=new e4(d),u.scheduler=a?()=>a(y,!1):y,h=g=>z3(g,!1,u),f=u.onStop=()=>{const g=Ac.get(u);if(g){if(o)o(g,4);else for(const L of g)L();Ac.delete(u)}},t?n?y(!0):C=u.run():a?a(y.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function ur(e,t=1/0,i){if(t<=0||!ft(e)||e.__v_skip||(i=i||new Map,(i.get(e)||0)>=t))return e;if(i.set(e,t),t--,Vt(e))ur(e.value,t,i);else if(Ue(e))for(let n=0;n<e.length;n++)ur(e[n],t,i);else if(gr(e)||Wr(e))e.forEach(n=>{ur(n,t,i)});else if(Km(e)){for(const n in e)ur(e[n],t,i);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ur(e[n],t,i)}return e}/**
10
- * @vue/runtime-core v3.5.44
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function p0(e,t,i,n){try{return n?e(...n):e()}catch(r){_0(r,t,i)}}function mn(e,t,i,n){if(Je(e)){const r=p0(e,t,i,n);return r&&Wm(r)&&r.catch(s=>{_0(s,t,i)}),r}if(Ue(e)){const r=[];for(let s=0;s<e.length;s++)r.push(mn(e[s],t,i,n));return r}}function _0(e,t,i,n=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||ut;if(t){let l=t.parent;const o=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${i}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,o,c)===!1)return}l=l.parent}if(s){jn(),p0(s,null,10,[e,o,c]),Kn();return}}W3(e,i,r,n,a)}function W3(e,t,i,n=!0,r=!1){if(r)throw e;console.error(e)}const Oi=[];let bn=-1;const On=[];let Dr=null,Xs=0;const y4=Promise.resolve();let $c=null;function bt(e){const t=$c||y4;return e?t.then(this?e.bind(this):e):t}function j3(e){let t=bn+1,i=Oi.length;for(;t<i;){const n=t+i>>>1,r=Oi[n],s=Fo(r);s<e||s===e&&r.flags&2?t=n+1:i=n}return t}function c2(e){if(!(e.flags&1)){const t=Fo(e),i=Oi[Oi.length-1];!i||!(e.flags&2)&&t>=Fo(i)?Oi.push(e):Oi.splice(j3(t),0,e),e.flags|=1,w4()}}function w4(){$c||($c=y4.then(k4))}function K3(e){if(!Ue(e))Dr&&e.id===-1?Dr.splice(Xs+1,0,e):e.flags&1||(On.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)On.push(e[t]);w4()}function S4(e,t,i,n=bn+1){for(;n<Oi.length;n++){const r=Oi[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||t!==void 0&&!(r.id>=t))continue;Oi.splice(n,1),n=e?n-1:bn,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function C4(e,t,i=0){if(On.length){let n=On,r=0;if(t){n=[];for(let a=0;a<On.length;a++){const l=On[a];(l.i!==void 0?!l.i||l.i.uid<i:t.has(l))?On[r++]=l:n.push(l)}}const s=[...new Set(n)].sort((a,l)=>Fo(a)-Fo(l));if(On.length=r,Dr){for(let a=0;a<s.length;a++)Dr.push(s[a]);return}for(Dr=s,Xs=0;Xs<Dr.length;Xs++){const a=Dr[Xs];a.flags&4&&(a.flags&=-2),a.flags&8||a(),a.flags&=-2}Dr=null,Xs=0}}let l1=!1;function q3(e,t){if(l1){e();return}const i=t===void 0?void 0:new Set(On);e(),l1=!0;try{S4(void 0,t),C4(void 0,i,t)}finally{l1=!1}}const Fo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function k4(e){try{for(bn=0;bn<Oi.length;bn++){const t=Oi[bn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),p0(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bn<Oi.length;bn++){const t=Oi[bn];t&&(t.flags&=-2)}bn=-1,Oi.length=0,C4(),$c=null,(Oi.length||On.length)&&k4()}}let wi=null,A4=null;function Mc(e){const t=wi;return wi=e,A4=e&&e.type.__scopeId||null,t}function X(e,t=wi,i){if(!t||e._n)return e;const n=(...r)=>{n._d&&Tc(-1);const s=Mc(t),a=vr.length;let l;try{l=e(...r)}finally{for(let o=vr.length;o>a;o--)g2();Mc(s),n._d&&Tc(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Tt(e,t){if(wi===null)return e;const i=ku(wi),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,a,l,o=ut]=t[r];s&&(Je(s)&&(s={mounted:s,updated:s}),s.deep&&ur(a),n.push({dir:s,instance:i,value:a,oldValue:void 0,arg:l,modifiers:o}))}return e}function fs(e,t,i,n){const r=e.dirs,s=t&&t.dirs;for(let a=0;a<r.length;a++){const l=r[a];s&&(l.oldValue=s[a].value);let o=l.dir[n];o&&(jn(),mn(o,i,8,[e.el,l,e,t]),Kn())}}function qi(e,t){if(bi){let i=bi.provides;const n=bi.parent&&bi.parent.provides;n===i&&(i=bi.provides=Object.create(n)),i[e]=t}}function Pt(e,t,i=!1){const n=_i();if(n||Ns){let r=Ns?Ns._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return i&&Je(t)?t.call(n&&n.proxy):t}}function G3(){return!!(_i()||Ns)}const Y3=Symbol.for("v-scx"),X3=()=>Pt(Y3);function J3(e,t){return u2(e,null,{flush:"sync"})}function Oe(e,t,i){return u2(e,t,i)}function u2(e,t,i=ut){const{immediate:n,deep:r,flush:s,once:a}=i,l=Ft({},i),o=t&&n||!t&&s!=="post";let c;if(la){if(s==="sync"){const h=X3();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!o){const h=()=>{};return h.stop=Dn,h.resume=Dn,h.pause=Dn,h}}const u=bi;l.call=(h,m,p)=>mn(h,u,m,p);let d=!1;s==="post"?l.scheduler=h=>{h.i=u,Ti(h,u&&u.suspense)}:s!=="sync"&&(d=!0,l.scheduler=(h,m)=>{m?h():c2(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const f=U3(e,t,l);return la&&(c?c.push(f):o&&f()),f}function Q3(e,t,i){const n=this.proxy,r=Nt(e)?e.includes(".")?$4(n,e):()=>n[e]:e.bind(n,n);let s;Je(t)?s=t:(s=t.handler,i=t);const a=g0(this),l=u2(r,s.bind(n),i);return a(),l}function $4(e,t){const i=t.split(".");return()=>{let n=e;for(let r=0;r<i.length&&n;r++)n=n[i[r]];return n}}const Pr=new WeakMap,M4=Symbol("_vte"),wu=e=>e.__isTeleport,ks=e=>e&&(e.disabled||e.disabled===""),ey=e=>e&&(e.defer||e.defer===""),Of=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Rf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,sd=(e,t)=>{const i=e&&e.to;return Nt(i)?t?t(i):null:i},ty={name:"Teleport",__isTeleport:!0,process(e,t,i,n,r,s,a,l,o,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:m,createText:p,createComment:b,parentNode:v}}=c,C=ks(t.props);let{dynamicChildren:y}=t;const g=($,O,F)=>{$.shapeFlag&16&&u($.children,O,F,r,s,a,l,o)},L=($=t)=>{const O=ks($.props),F=$.target=sd($.props,m),ie=ad(F,$,p,h);F&&(a!=="svg"&&Of(F)?a="svg":a!=="mathml"&&Rf(F)&&(a="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(F),O||(g($,F,ie),go($,!1)))},x=$=>{const O=()=>{if(Pr.get($)===O){if(Pr.delete($),ks($.props)){const F=v($.el)||i;g($,F,$.anchor),go($,!0)}L($)}};Pr.set($,O),Ti(O,s)};if(e==null){const $=t.el=p(""),O=t.anchor=p("");if(h($,i,n),h(O,i,n),ey(t.props)||s&&s.pendingBranch){x(t);return}C&&(g(t,i,O),go(t,!0)),L()}else{t.el=e.el;const $=t.anchor=e.anchor,O=Pr.get(e);if(O){O.flags|=8,Pr.delete(e),x(t);return}t.targetStart=e.targetStart;const F=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,B=ks(e.props),A=B?i:F,H=B?$:ie;if(a==="svg"||Of(F)?a="svg":(a==="mathml"||Rf(F))&&(a="mathml"),y?(f(e.dynamicChildren,y,A,r,s,a,l),v2(e,t,!0)):o||d(e,t,A,H,r,s,a,l,!1),C)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):N0(t,i,$,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=sd(t.props,m);I&&(t.target=I,N0(t,I,null,c,0))}else B&&N0(t,F,ie,c,1);go(t,C)}},remove(e,t,i,{um:n,o:{remove:r}},s){const{shapeFlag:a,children:l,anchor:o,targetStart:c,targetAnchor:u,target:d,props:f}=e,h=ks(f),m=s||!h,p=Pr.get(e);if(p&&(p.flags|=8,Pr.delete(e)),d&&(r(c),r(u)),s&&r(o),!p&&(h||d)&&a&16)for(let b=0;b<l.length;b++){const v=l[b];n(v,t,i,m,!!v.dynamicChildren)}},move:N0,hydrate:iy};function N0(e,t,i,{o:{insert:n},m:r},s=2){s===0&&(e.targetStart&&n(e.targetStart,t,i),n(e.targetAnchor,t,i),i=e.targetAnchor);const{el:a,anchor:l,shapeFlag:o,children:c,props:u}=e,d=s===2;if(d&&n(a,t,i),!Pr.has(e)&&(!d||ks(u))&&o&16)for(let f=0;f<c.length;f++)r(c[f],t,i,2);d&&n(l,t,i)}function iy(e,t,i,n,r,s,{o:{nextSibling:a,parentNode:l,querySelector:o,insert:c,createText:u}},d){function f(b,v){let C=v;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,b._lpa=t.targetAnchor&&a(t.targetAnchor);break}}C=a(C)}}function h(b,v){v.anchor=d(a(b),v,l(b),i,n,r,s)}const m=t.target=sd(t.props,o),p=ks(t.props);if(m){const b=m._lpa||m.firstChild;t.shapeFlag&16&&(p?(h(e,t),f(m,b),t.targetAnchor||ad(m,t,u,c,l(e)===m?e:null)):(t.anchor=a(e),f(m,b),t.targetAnchor||ad(m,t,u,c),d(b&&a(b),t,m,i,n,r,s))),go(t,p)}else p&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const Fi=ty;function go(e,t){const i=e.ctx;if(i&&i.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",i.uid),n=n.nextSibling;i.ut()}}function ad(e,t,i,n,r=null){const s=t.targetStart=i(""),a=t.targetAnchor=i("");return s[M4]=a,e&&(n(s,e,r),n(a,e,r)),a}const cn=Symbol("_leaveCb"),io=Symbol("_enterCb");function L4(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return at(()=>{e.isMounted=!0}),Ot(()=>{e.isUnmounting=!0}),e}const an=[Function,Array],E4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:an,onEnter:an,onAfterEnter:an,onEnterCancelled:an,onBeforeLeave:an,onLeave:an,onAfterLeave:an,onLeaveCancelled:an,onBeforeAppear:an,onAppear:an,onAfterAppear:an,onAppearCancelled:an},ny={name:"BaseTransition",props:E4,setup(e,{slots:t}){const i=_i(),n=L4();return()=>{const r=t.default&&d2(t.default(),!0),s=r&&r.length?x4(r):i.subTree?R():void 0;if(!s)return;const a=lt(e),{mode:l}=a;if(n.isLeaving)return o1(s);const o=Lc(s);if(!o)return o1(s);let c=zo(o,a,n,i,d=>c=d);o.type!==li&&Jr(o,c);let u=i.subTree&&Lc(i.subTree);if(u&&u.type!==li&&!As(u,o)&&Uo(i.subTree)){let d=zo(u,a,n,i);if(Jr(u,d),l==="out-in"&&o.type!==li)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,i.job.flags&8||i.update(),delete d.afterLeave,u=void 0},o1(s);l==="in-out"&&o.type!==li?d.delayLeave=(f,h,m)=>{const p=H4(n,u);p[String(u.key)]=u,f[cn]=()=>{h(),f[cn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function x4(e){let t=e[0];if(e.length>1){for(const i of e)if(i.type!==li){t=i;break}}return t}const ry=ny;function H4(e,t){const{leavingVNodes:i}=e;let n=i.get(t.type);return n||(n=Object.create(null),i.set(t.type,n)),n}function zo(e,t,i,n,r){const{appear:s,mode:a,persisted:l=!1,onBeforeEnter:o,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:b,onAppear:v,onAfterAppear:C,onAppearCancelled:y}=t,g=String(e.key),L=H4(i,e),x=(F,ie)=>{F&&mn(F,n,9,ie)},$=(F,ie)=>{const B=ie[1];x(F,ie),Ue(F)?F.every(A=>A.length<=1)&&B():F.length<=1&&B()},O={mode:a,persisted:l,beforeEnter(F){let ie=o;if(!i.isMounted)if(s)ie=b||o;else return;F[cn]&&F[cn](!0);const B=L[g];if(B&&As(e,B)){let A=B.el[cn];if(!A){const H=Uo(B);A=H&&H.el[cn]}A&&A()}x(ie,[F])},enter(F){if(L[g]===e)return;let ie=c,B=u,A=d;if(!i.isMounted)if(s)ie=v||c,B=C||u,A=y||d;else return;let H=!1;F[io]=D=>{H||(H=!0,D?x(A,[F]):x(B,[F]),O.delayedLeave&&O.delayedLeave(),F[io]=void 0)};const I=F[io].bind(null,!1);ie?$(ie,[F,I]):I()},leave(F,ie){const B=String(e.key);if(F[io]&&F[io](!0),i.isUnmounting)return ie();x(f,[F]);let A=!1;F[cn]=I=>{A||(A=!0,ie(),I?x(p,[F]):x(m,[F]),F[cn]=void 0,L[B]===e&&delete L[B])};const H=F[cn].bind(null,!1);L[B]=e,h?$(h,[F,H]):H()},clone(F){const ie=zo(F,t,i,n,r);return r&&r(ie),ie}};return O}function o1(e){if(m0(e))return e=Qr(e),e.children=null,e}function Lc(e){if(!m0(e))return wu(e.type)&&e.children?x4(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&&Je(i.default))return i.default()}}function Jr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const i=e.component.subTree;Jr(wu(i.type)&&Lc(i)||i,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===ye&&Ue(e.children)){const i=z4(e.children,!1);i&&Jr(i,t)}}function d2(e,t=!1,i){let n=[],r=0;for(let s=0;s<e.length;s++){let a=e[s];const l=i==null?a.key:String(i)+String(a.key!=null?a.key:s);a.type===ye?(a.patchFlag&128&&r++,n=n.concat(d2(a.children,t,l))):(t||a.type!==li)&&n.push(l!=null?Qr(a,{key:l}):a)}if(r>1)for(let s=0;s<n.length;s++)n[s].patchFlag=-2;return n}function Uo(e){if(e.component)return Uo(e.component.subTree);if(e.type===ye){const t=Ue(e.children)&&z4(e.children,!1);return t?Uo(t):void 0}if(e.type!==li)return e}function Pe(e,t){return Je(e)?Ft({name:e.name},t,{setup:e}):e}function Vi(){const e=_i();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function h2(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function If(e,t){let i;return!!((i=Object.getOwnPropertyDescriptor(e,t))&&!i.configurable)}const Ec=new WeakMap;function xo(e,t,i,n,r=!1){if(Ue(e)){e.forEach((p,b)=>xo(p,t&&(Ue(t)?t[b]:t),i,n,r));return}if(sa(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&xo(e,t,i,n.component.subTree);return}const s=n.shapeFlag&4?ku(n.component):n.el,a=r?null:s,{i:l,r:o}=e,c=t&&t.r,u=l.refs===ut?l.refs={}:l.refs,d=l.setupState,f=lt(d),h=d===ut?Um:p=>If(u,p)?!1:ht(f,p),m=(p,b)=>!(b&&If(u,b));if(c!=null&&c!==o){if(Vf(t),Nt(c))u[c]=null,h(c)&&(d[c]=null);else if(Vt(c)){const p=t;m(c,p.k)&&(c.value=null),p.k&&(u[p.k]=null)}}if(Je(o))p0(o,l,12,[a,u]);else{const p=Nt(o),b=Vt(o);if(p||b){const v=()=>{if(e.f){const C=p?h(o)?d[o]:u[o]:m()||!e.k?o.value:u[e.k];if(r)Ue(C)&&e2(C,s);else if(Ue(C))C.includes(s)||C.push(s);else if(p)u[o]=[s],h(o)&&(d[o]=u[o]);else{const y=[s];m(o,e.k)&&(o.value=y),e.k&&(u[e.k]=y)}}else p?(u[o]=a,h(o)&&(d[o]=a)):b&&(m(o,e.k)&&(o.value=a),e.k&&(u[e.k]=a))};if(a){const C=()=>{v(),Ec.delete(e)};C.id=-1,Ec.set(e,C),Ti(C,i)}else Vf(e),v()}}}function Vf(e){const t=Ec.get(e);t&&(t.flags|=8,Ec.delete(e))}const Df=e=>e.nodeType===8;vu().requestIdleCallback;vu().cancelIdleCallback;function sy(e,t){if(Df(e)&&e.data==="["){let i=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Df(n))if(n.data==="]"){if(--i===0)break}else n.data==="["&&i++;n=n.nextSibling}}else t(e)}const sa=e=>!!e.type.__asyncLoader;function ay(e){Je(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:n,delay:r=200,hydrate:s,timeout:a,suspensible:l=!0,onError:o}=e;let c=null,u,d=0;const f=()=>(d++,c=null,h()),h=()=>{let m;return c||(m=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),o)return new Promise((b,v)=>{o(p,()=>b(f()),()=>v(p),d+1)});throw p}).then(p=>m!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(m,p,b){const v=m.isConnected;let C=!1;(p.bu||(p.bu=[])).push(()=>C=!0);const y=()=>{C||!m.parentNode||v&&!m.isConnected||b()},g=s?()=>{const L=s(y,x=>sy(m,x));L&&(p.bum||(p.bum=[])).push(L)}:y;u?g():h().then(()=>!p.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const m=bi;if(h2(m),u)return()=>P0(u,m);const p=L=>{c=null,_0(L,m,13,!n)};if(l&&m.suspense||la)return h().then(L=>()=>P0(L,m)).catch(L=>(p(L),()=>n?Y(n,{error:L}):null));const b=G(!1),v=G(),C=G(!!r);let y,g;return Ei(()=>{y!=null&&clearTimeout(y),g!=null&&clearTimeout(g)}),r&&(g=setTimeout(()=>{m.isUnmounted||(C.value=!1)},r)),a!=null&&(y=setTimeout(()=>{if(!m.isUnmounted&&!b.value&&!v.value){const L=new Error(`Async component timed out after ${a}ms.`);p(L),v.value=L}},a)),h().then(()=>{m.isUnmounted||(b.value=!0,m.parent&&m0(m.parent.vnode)&&m.parent.update())}).catch(L=>{if(m.isUnmounted){c=null;return}p(L),v.value=L}),()=>{if(b.value&&u)return P0(u,m);if(v.value&&n)return Y(n,{error:v.value});if(i&&!C.value)return P0(i,m)}}})}function P0(e,t){const{ref:i,props:n,children:r,ce:s}=t.vnode,a=Y(e,n,r);return a.ref=i,a.ce=s,delete t.vnode.ce,a}const m0=e=>e.type.__isKeepAlive;function ly(e,t){T4(e,"a",t)}function oy(e,t){T4(e,"da",t)}function T4(e,t,i=bi){const n=e.__wdc||(e.__wdc=()=>{let r=i;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Su(t,n,i),i){let r=i.parent;for(;r&&r.parent;)m0(r.parent.vnode)&&cy(n,t,i,r),r=r.parent}}function cy(e,t,i,n){const r=Su(t,e,n,!0);Ei(()=>{e2(n[t],r)},i)}function Su(e,t,i=bi,n=!1){if(i){const r=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...a)=>{jn();const l=g0(i),o=mn(t,i,e,a);return l(),Kn(),o});return n?r.unshift(s):r.push(s),s}}const Sr=e=>(t,i=bi)=>{(!la||e==="sp")&&Su(e,(...n)=>t(...n),i)},uy=Sr("bm"),at=Sr("m"),dy=Sr("bu"),N4=Sr("u"),Ot=Sr("bum"),Ei=Sr("um"),hy=Sr("sp"),fy=Sr("rtg"),py=Sr("rtc");function _y(e,t=bi){Su("ec",e,t)}const f2="components",my="directives";function Wo(e,t){return p2(f2,e,!0,t)||e}const P4=Symbol.for("v-ndc");function Ca(e){return Nt(e)?p2(f2,e,!1)||e:e||P4}function Xn(e){return p2(my,e)}function p2(e,t,i=!0,n=!1){const r=wi||bi;if(r){const s=r.type;if(e===f2){const l=Xy(s,!1);if(l&&(l===t||l===Li(t)||l===_u(Li(t))))return s}const a=Zf(r[e]||s[e],t)||Zf(r.appContext[e],t);return!a&&n?s:a}}function Zf(e,t){return e&&(e[t]||e[Li(t)]||e[_u(Li(t))])}function Be(e,t,i,n){let r;const s=i&&i[n],a=Ue(e);if(a||Nt(e)){const l=a&&Zn(e);let o=!1,c=!1;l&&(o=!Ji(e),c=qn(e),e=bu(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(o?c?Xr(_n(e[u])):_n(e[u]):e[u],u,void 0,s&&s[u])}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)r=[];else{r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,s&&s[l])}else if(ft(e))if(e[Symbol.iterator])r=Array.from(e,(l,o)=>t(l,o,void 0,s&&s[o]));else{const l=Object.keys(e);r=new Array(l.length);for(let o=0,c=l.length;o<c;o++){const u=l[o];r[o]=t(e[u],u,o,s&&s[o])}}else r=[];return i&&(i[n]=r),r}function v0(e,t){for(let i=0;i<t.length;i++){const n=t[i];if(Ue(n))for(let r=0;r<n.length;r++)e[n[r].name]=n[r].fn;else n&&(e[n.name]=n.key?(...r)=>{const s=n.fn(...r);return s&&(s.key=n.key),s}:n.fn)}return e}function Le(e,t,i,n,r,s){if(i==null&&(i={}),wi.ce||wi.parent&&sa(wi.parent)&&wi.parent.ce){const c=s!=null&&i.key==null?Ft({},i,{key:s}):i,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),_(),oe(ye,null,[Y("slot",c,n&&n())],u?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);const l=vr.length;_();let o;try{const c=a&&O4(a(i)),u=i.key||s||c&&c.key;o=oe(ye,{key:(u&&!en(u)?u:`_${t}`)+(!c&&n?"_fb":"")},c||(n?n():[]),c&&e._===1?64:-2)}catch(c){for(let u=vr.length;u>l;u--)g2();throw c}finally{a&&a._c&&(a._d=!0)}return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),o}function O4(e){return e.some(t=>aa(t)?!(t.type===li||t.type===ye&&!O4(t.children)):!0)?e:null}const ld=e=>e?rv(e)?ku(e):ld(e.parent):null,Ho=Ft(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=>ld(e.parent),$root:e=>ld(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>V4(e),$forceUpdate:e=>e.f||(e.f=()=>{c2(e.update)}),$nextTick:e=>e.n||(e.n=bt.bind(e.proxy)),$watch:e=>Q3.bind(e)}),c1=(e,t)=>e!==ut&&!e.__isScriptSetup&&ht(e,t),vy={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:n,data:r,props:s,accessCache:a,type:l,appContext:o}=e;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return i[t];case 3:return s[t]}else{if(c1(n,t))return a[t]=1,n[t];if(r!==ut&&ht(r,t))return a[t]=2,r[t];if(ht(s,t))return a[t]=3,s[t];if(i!==ut&&ht(i,t))return a[t]=4,i[t];od&&(a[t]=0)}}const c=Ho[t];let u,d;if(c)return t==="$attrs"&&$i(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(i!==ut&&ht(i,t))return a[t]=4,i[t];if(d=o.config.globalProperties,ht(d,t))return d[t]},set({_:e},t,i){const{data:n,setupState:r,ctx:s}=e;return c1(r,t)?(r[t]=i,!0):n!==ut&&ht(n,t)?(n[t]=i,!0):ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:r,props:s,type:a}},l){let o;return!!(i[l]||e!==ut&&l[0]!=="$"&&ht(e,l)||c1(t,l)||ht(s,l)||ht(n,l)||ht(Ho,l)||ht(r.config.globalProperties,l)||(o=a.__cssModules)&&o[l])},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:ht(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};function nn(){return gy().slots}function gy(e){const t=_i();return t.setupContext||(t.setupContext=av(t))}function xc(e){return Ue(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function R4(e,t){return!e||!t?e||t:Ue(e)&&Ue(t)?e.concat(t):Ft({},xc(e),xc(t))}let od=!0;function by(e){const t=V4(e),i=e.proxy,n=e.ctx;od=!1,t.beforeCreate&&Bf(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:a,watch:l,provide:o,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:p,deactivated:b,beforeDestroy:v,beforeUnmount:C,destroyed:y,unmounted:g,render:L,renderTracked:x,renderTriggered:$,errorCaptured:O,serverPrefetch:F,expose:ie,inheritAttrs:B,components:A,directives:H,filters:I}=t;if(c&&yy(c,n,null),a)for(const re in a){const ae=a[re];Je(ae)&&(n[re]=ae.bind(i))}if(r){const re=r.call(i,i);ft(re)&&(e.data=br(re))}if(od=!0,s)for(const re in s){const ae=s[re],ge=Je(ae)?ae.bind(i,i):Je(ae.get)?ae.get.bind(i,i):Dn,xe=!Je(ae)&&Je(ae.set)?ae.set.bind(i):Dn,J=U({get:ge,set:xe});Object.defineProperty(n,re,{enumerable:!0,configurable:!0,get:()=>J.value,set:ve=>J.value=ve})}if(l)for(const re in l)I4(l[re],n,i,re);if(o){const re=Je(o)?o.call(i):o;Reflect.ownKeys(re).forEach(ae=>{qi(ae,re[ae])})}u&&Bf(u,e,"c");function q(re,ae){Ue(ae)?ae.forEach(ge=>re(ge.bind(i))):ae&&re(ae.bind(i))}if(q(uy,d),q(at,f),q(dy,h),q(N4,m),q(ly,p),q(oy,b),q(_y,O),q(py,x),q(fy,$),q(Ot,C),q(Ei,g),q(hy,F),Ue(ie))if(ie.length){const re=e.exposed||(e.exposed={});ie.forEach(ae=>{Object.defineProperty(re,ae,{get:()=>i[ae],set:ge=>i[ae]=ge,enumerable:!0})})}else e.exposed||(e.exposed={});L&&e.render===Dn&&(e.render=L),B!=null&&(e.inheritAttrs=B),A&&(e.components=A),H&&(e.directives=H),F&&h2(e)}function yy(e,t,i=Dn){Ue(e)&&(e=cd(e));for(const n in e){const r=e[n];let s;ft(r)?"default"in r?s=Pt(r.from||n,r.default,!0):s=Pt(r.from||n):s=Pt(r),Vt(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[n]=s}}function Bf(e,t,i){mn(Ue(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,i)}function I4(e,t,i,n){let r=n.includes(".")?$4(i,n):()=>i[n];if(Nt(e)){const s=t[e];Je(s)&&Oe(r,s)}else if(Je(e))Oe(r,e.bind(i));else if(ft(e))if(Ue(e))e.forEach(s=>I4(s,t,i,n));else{const s=Je(e.handler)?e.handler.bind(i):t[e.handler];Je(s)&&Oe(r,s,e)}}function V4(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,l=s.get(t);let o;return l?o=l:!r.length&&!i&&!n?o=t:(o={},r.length&&r.forEach(c=>Hc(o,c,a,!0)),Hc(o,t,a)),ft(t)&&s.set(t,o),o}function Hc(e,t,i,n=!1){const{mixins:r,extends:s}=t;s&&Hc(e,s,i,!0),r&&r.forEach(a=>Hc(e,a,i,!0));for(const a in t)if(!(n&&a==="expose")){const l=wy[a]||i&&i[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const wy={data:Ff,props:zf,emits:zf,methods:bo,computed:bo,beforeCreate:xi,created:xi,beforeMount:xi,mounted:xi,beforeUpdate:xi,updated:xi,beforeDestroy:xi,beforeUnmount:xi,destroyed:xi,unmounted:xi,activated:xi,deactivated:xi,errorCaptured:xi,serverPrefetch:xi,components:bo,directives:bo,watch:Cy,provide:Ff,inject:Sy};function Ff(e,t){return t?e?function(){return Ft(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function Sy(e,t){return bo(cd(e),cd(t))}function cd(e){if(Ue(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function xi(e,t){return e?[...new Set([].concat(e,t))]:t}function bo(e,t){return e?Ft(Object.create(null),e,t):t}function zf(e,t){return e?Ue(e)&&Ue(t)?[...new Set([...e,...t])]:Ft(Object.create(null),xc(e),xc(t??{})):t}function Cy(e,t){if(!e)return t;if(!t)return e;const i=Ft(Object.create(null),e);for(const n in t)i[n]=xi(e[n],t[n]);return i}function D4(){return{app:null,config:{isNativeTag:Um,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 ky=0;function Ay(e,t){return function(n,r=null){Je(n)||(n=Ft({},n)),r!=null&&!ft(r)&&(r=null);const s=D4(),a=new WeakSet,l=[];let o=!1;const c=s.app={_uid:ky++,_component:n,_props:r,_container:null,_context:s,_instance:null,version:Qy,get config(){return s.config},set config(u){},use(u,...d){return a.has(u)||(u&&Je(u.install)?(a.add(u),u.install(c,...d)):Je(u)&&(a.add(u),u(c,...d))),c},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),c},component(u,d){return d?(s.components[u]=d,c):s.components[u]},directive(u,d){return d?(s.directives[u]=d,c):s.directives[u]},mount(u,d,f){if(!o){const h=c._ceVNode||Y(n,r);return h.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),e(h,u,f),o=!0,c._container=u,u.__vue_app__=c,ku(h.component)}},onUnmount(u){l.push(u)},unmount(){o&&(mn(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return s.provides[u]=d,c},runWithContext(u){const d=Ns;Ns=c;try{return u()}finally{Ns=d}}};return c}}let Ns=null;function Z4(e,t,i=ut){const n=_i(),r=Li(t),s=wr(t),a=B4(e,r),l=I3((o,c)=>{let u,d=ut,f;return J3(()=>{const h=e[r];gi(u,h)&&(u=h,c())}),{get(){return o(),i.get?i.get(u):u},set(h){const m=i.set?i.set(h):h;if(!gi(m,u)&&!(d!==ut&&gi(h,d)))return;const p=n.vnode.props,b=!!(p&&(t in p||r in p||s in p)&&(`onUpdate:${t}`in p||`onUpdate:${r}`in p||`onUpdate:${s}`in p));b||(u=h,c()),n.emit(`update:${t}`,m),gi(h,d)&&(gi(h,m)&&!gi(m,f)||b&&d!==ut&&!gi(m,u))&&c(),d=h,f=m}}});return l[Symbol.iterator]=()=>{let o=0;return{next(){return o<2?{value:o++?a||ut:l,done:!1}:{done:!0}}}},l}const B4=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Li(t)}Modifiers`]||e[`${wr(t)}Modifiers`];function $y(e,t,...i){if(e.isUnmounted)return;const n=e.vnode.props||ut;let r=i;const s=t.startsWith("update:"),a=s&&B4(n,t.slice(7));a&&(a.trim&&(r=i.map(u=>Nt(u)?u.trim():u)),a.number&&(r=r.map(mu)));let l,o=n[l=i1(t)]||n[l=i1(Li(t))];!o&&s&&(o=n[l=i1(wr(t))]),o&&mn(o,e,6,r);const c=n[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mn(c,e,6,r)}}const My=new WeakMap;function F4(e,t,i=!1){const n=i?My:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const s=e.emits;let a={},l=!1;if(!Je(e)){const o=c=>{const u=F4(c,t,!0);u&&(l=!0,Ft(a,u))};!i&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!s&&!l?(ft(e)&&n.set(e,null),null):(Ue(s)?s.forEach(o=>a[o]=null):Ft(a,s),ft(e)&&n.set(e,a),a)}function Cu(e,t){return!e||!du(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ht(e,t[0].toLowerCase()+t.slice(1))||ht(e,wr(t))||ht(e,t))}function Uf(e){const{type:t,vnode:i,proxy:n,withProxy:r,propsOptions:[s],slots:a,attrs:l,emit:o,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:m,inheritAttrs:p}=e,b=Mc(e);let v,C;try{if(i.shapeFlag&4){const g=r||n,L=g;v=Rn(c.call(L,g,u,d,h,f,m)),C=l}else{const g=t;v=Rn(g.length>1?g(d,{attrs:l,slots:a,emit:o}):g(d,null)),C=t.props?l:Ly(l)}}catch(g){vr.length=0,_0(g,e,1),v=Y(li)}let y=v;if(C&&p!==!1){const g=Object.keys(C),{shapeFlag:L}=y;g.length&&L&7&&(s&&g.some(hu)&&(C=Ey(C,s)),y=Qr(y,C,!1,!0))}if(i.dirs&&(y=Qr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(i.dirs):i.dirs),i.transition){const g=wu(y.type)&&Lc(y)||y;Jr(g,i.transition)}return v=y,Mc(b),v}function z4(e,t=!0){let i;for(let n=0;n<e.length;n++){const r=e[n];if(aa(r)){if(r.type!==li||r.children==="v-if"){if(i)return;i=r}}else return}return i}const Ly=e=>{let t;for(const i in e)(i==="class"||i==="style"||du(i))&&((t||(t={}))[i]=e[i]);return t},Ey=(e,t)=>{const i={};for(const n in e)(!hu(n)||!(n.slice(9)in t))&&(i[n]=e[n]);return i};function xy(e,t,i){const{props:n,children:r,component:s}=e,{props:a,children:l,patchFlag:o}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&o>=0){if(o&1024)return!0;if(o&16)return n?Wf(n,a,c):!!a;if(o&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(U4(a,n,f)&&!Cu(c,f))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===a?!1:n?a?Wf(n,a,c):!0:!!a;return!1}function Wf(e,t,i){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const s=n[r];if(!ht(e,s)||U4(t,e,s)&&!Cu(i,s))return!0}return!1}function U4(e,t,i){const n=e[i],r=t[i];return i==="style"&&ft(n)&&ft(r)?!Sn(n,r):n!==r}function Hy({vnode:e,parent:t,suspense:i},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}i&&i.activeBranch===e&&(i.vnode.el=n)}const W4={},j4=()=>Object.create(W4),K4=e=>Object.getPrototypeOf(e)===W4;function Ty(e,t,i,n=!1){const r={},s=j4();e.propsDefaults=Object.create(null),q4(e,t,r,s);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);i?e.props=n?r:_4(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ny(e,t,i,n){const{props:r,attrs:s,vnode:{patchFlag:a}}=e,l=lt(r),[o]=e.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(Cu(e.emitsOptions,f))continue;const h=t[f];if(o)if(ht(s,f))h!==s[f]&&(s[f]=h,c=!0);else{const m=Li(f);r[m]=ud(o,l,m,h,e,!1)}else h!==s[f]&&(s[f]=h,c=!0)}}}else{q4(e,t,r,s)&&(c=!0);let u;for(const d in l)(!t||!ht(t,d)&&((u=wr(d))===d||!ht(t,u)))&&(o?i&&(i[d]!==void 0||i[u]!==void 0)&&(r[d]=ud(o,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!ht(t,d))&&(delete s[d],c=!0)}c&&cr(e.attrs,"set","")}function q4(e,t,i,n){const[r,s]=e.propsOptions;let a=!1,l;if(t)for(let o in t){if(Mo(o))continue;const c=t[o];let u;r&&ht(r,u=Li(o))?!s||!s.includes(u)?i[u]=c:(l||(l={}))[u]=c:Cu(e.emitsOptions,o)||(!(o in n)||c!==n[o])&&(n[o]=c,a=!0)}if(s){const o=lt(i),c=l||ut;for(let u=0;u<s.length;u++){const d=s[u];i[d]=ud(r,o,d,c[d],e,!ht(c,d))}}return a}function ud(e,t,i,n,r,s){const a=e[i];if(a!=null){const l=ht(a,"default");if(l&&n===void 0){const o=a.default;if(a.type!==Function&&!a.skipFactory&&Je(o)){const{propsDefaults:c}=r;if(i in c)n=c[i];else{const u=g0(r);n=c[i]=o.call(null,t),u()}}else n=o;r.ce&&r.ce._setProp(i,n)}a[0]&&(s&&!l?n=!1:a[1]&&(n===""||n===wr(i))&&(n=!0))}return n}const Py=new WeakMap;function G4(e,t,i=!1){const n=i?Py:t.propsCache,r=n.get(e);if(r)return r;const s=e.props,a={},l=[];let o=!1;if(!Je(e)){const u=d=>{o=!0;const[f,h]=G4(d,t,!0);Ft(a,f),h&&l.push(...h)};!i&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!o)return ft(e)&&n.set(e,$s),$s;if(Ue(s))for(let u=0;u<s.length;u++){const d=Li(s[u]);jf(d)&&(a[d]=ut)}else if(s)for(const u in s){const d=Li(u);if(jf(d)){const f=s[u],h=a[d]=Ue(f)||Je(f)?{type:f}:Ft({},f),m=h.type;let p=!1,b=!0;if(Ue(m))for(let v=0;v<m.length;++v){const C=m[v],y=Je(C)&&C.name;if(y==="Boolean"){p=!0;break}else y==="String"&&(b=!1)}else p=Je(m)&&m.name==="Boolean";h[0]=p,h[1]=b,(p||ht(h,"default"))&&l.push(d)}}const c=[a,l];return ft(e)&&n.set(e,c),c}function jf(e){return e[0]!=="$"&&!Mo(e)}const _2=e=>e==="_"||e==="_ctx"||e==="$stable",m2=e=>Ue(e)?e.map(Rn):[Rn(e)],Oy=(e,t,i)=>{if(t._n)return t;const n=X((...r)=>m2(t(...r)),i);return n._c=!1,n},Y4=(e,t,i)=>{const n=e._ctx;for(const r in e){if(_2(r))continue;const s=e[r];if(Je(s))t[r]=Oy(r,s,n);else if(s!=null){const a=m2(s);t[r]=()=>a}}},X4=(e,t)=>{const i=m2(t);e.slots.default=()=>i},J4=(e,t,i)=>{for(const n in t)(i||!_2(n))&&(e[n]=t[n])},Ry=(e,t,i)=>{const n=e.slots=j4();if(e.vnode.shapeFlag&32){const r=t._;r?(J4(n,t,i),i&&qm(n,"_",r,!0)):Y4(t,n)}else t&&X4(e,t)},Iy=(e,t,i)=>{const{vnode:n,slots:r}=e;let s=!0,a=ut;if(n.shapeFlag&32){const l=t._;l?i&&l===1?s=!1:J4(r,t,i):(s=!t.$stable,Y4(t,r)),a=t}else t&&(X4(e,t),a={default:1});if(s)for(const l in r)!_2(l)&&a[l]==null&&delete r[l]},Ti=Fy;function Vy(e){return Dy(e)}function Dy(e,t){const i=vu();i.__VUE__=!0;const{insert:n,remove:r,patchProp:s,createElement:a,createText:l,createComment:o,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=Dn,insertStaticContent:m}=e,p=(S,T,V,ee=null,de=null,pe=null,we=void 0,k=null,E=!!T.dynamicChildren)=>{if(S===T)return;S&&!As(S,T)&&(ee=j(S),ve(S,de,pe,!0),S=null),T.patchFlag===-2&&(E=!1,T.dynamicChildren=null),T.dynamicChildren&&S&&S.dynamicChildren&&S.dynamicChildren.hasOnce&&(T.dynamicChildren===$s&&(T.dynamicChildren=[]),T.dynamicChildren.hasOnce=!0);const{type:z,ref:le,shapeFlag:P}=T;switch(z){case rs:b(S,T,V,ee);break;case li:v(S,T,V,ee);break;case d1:S==null&&C(T,V,ee,we);break;case ye:A(S,T,V,ee,de,pe,we,k,E);break;default:P&1?L(S,T,V,ee,de,pe,we,k,E):P&6?H(S,T,V,ee,de,pe,we,k,E):(P&64||P&128)&&z.process(S,T,V,ee,de,pe,we,k,E,se)}le!=null&&de?xo(le,S&&S.ref,pe,T||S,!T):le==null&&S&&S.ref!=null&&xo(S.ref,null,pe,S,!0)},b=(S,T,V,ee)=>{if(S==null)n(T.el=l(T.children),V,ee);else{const de=T.el=S.el;T.children!==S.children&&c(de,T.children)}},v=(S,T,V,ee)=>{S==null?n(T.el=o(T.children||""),V,ee):T.el=S.el},C=(S,T,V,ee)=>{[S.el,S.anchor]=m(S.children,T,V,ee,S.el,S.anchor)},y=({el:S,anchor:T},V,ee)=>{let de;for(;S&&S!==T;)de=f(S),n(S,V,ee),S=de;n(T,V,ee)},g=({el:S,anchor:T})=>{let V;for(;S&&S!==T;)V=f(S),r(S),S=V;r(T)},L=(S,T,V,ee,de,pe,we,k,E)=>{if(T.type==="svg"?we="svg":T.type==="math"&&(we="mathml"),S==null)x(T,V,ee,de,pe,we,k,E);else{const z=S.el&&S.el._isVueCE?S.el:null;try{z&&z._beginPatch(),F(S,T,de,pe,we,k,E)}finally{z&&z._endPatch()}}},x=(S,T,V,ee,de,pe,we,k)=>{let E,z;const{props:le,shapeFlag:P,transition:N,dirs:W}=S;if(E=S.el=a(S.type,pe,le&&le.is,le),P&8?u(E,S.children):P&16&&O(S.children,E,null,ee,de,u1(S,pe),we,k),W&&fs(S,null,ee,"created"),$(E,S,S.scopeId,we,ee),le){for(const Se in le)Se!=="value"&&!Mo(Se)&&s(E,Se,null,le[Se],pe,ee);"value"in le&&s(E,"value",null,le.value,pe),(z=le.onVnodeBeforeMount)&&kn(z,ee,S)}W&&fs(S,null,ee,"beforeMount");const ne=Zy(de,N);ne&&N.beforeEnter(E),n(E,T,V),((z=le&&le.onVnodeMounted)||ne||W)&&Ti(()=>{try{z&&kn(z,ee,S),ne&&N.enter(E),W&&fs(S,null,ee,"mounted")}finally{}},de)},$=(S,T,V,ee,de)=>{if(V&&h(S,V),ee)for(let pe=0;pe<ee.length;pe++)h(S,ee[pe]);if(de){let pe=de.subTree;if(T===pe||ev(pe.type)&&(pe.ssContent===T||pe.ssFallback===T)){const we=de.vnode;$(S,we,we.scopeId,we.slotScopeIds,de.parent)}}},O=(S,T,V,ee,de,pe,we,k,E=0)=>{for(let z=E;z<S.length;z++){const le=S[z]=k?or(S[z]):Rn(S[z]);p(null,le,T,V,ee,de,pe,we,k)}},F=(S,T,V,ee,de,pe,we)=>{const k=T.el=S.el;let{patchFlag:E,dynamicChildren:z,dirs:le}=T;E|=S.patchFlag&16;const P=S.props||ut,N=T.props||ut;let W;if(V&&ps(V,!1),(W=N.onVnodeBeforeUpdate)&&kn(W,V,T,S),le&&fs(T,S,V,"beforeUpdate"),V&&ps(V,!0),z&&(!S.dynamicChildren||S.dynamicChildren.length!==z.length)&&(E=0,we=!1,z=null),(P.innerHTML&&N.innerHTML==null||P.textContent&&N.textContent==null)&&u(k,""),z?ie(S.dynamicChildren,z,k,V,ee,u1(T,de),pe):we||ae(S,T,k,null,V,ee,u1(T,de),pe,!1),E>0){if(E&16)B(k,P,N,V,de);else if(E&2&&P.class!==N.class&&s(k,"class",null,N.class,de),E&4&&s(k,"style",P.style,N.style,de),E&8){const ne=T.dynamicProps;for(let Se=0;Se<ne.length;Se++){const Me=ne[Se],Re=P[Me],Ke=N[Me];(Ke!==Re||Me==="value")&&s(k,Me,Re,Ke,de,V)}}E&1&&S.children!==T.children&&u(k,T.children)}else!we&&z==null&&B(k,P,N,V,de);((W=N.onVnodeUpdated)||le)&&Ti(()=>{W&&kn(W,V,T,S),le&&fs(T,S,V,"updated")},ee)},ie=(S,T,V,ee,de,pe,we)=>{for(let k=0;k<T.length;k++){const E=S[k],z=T[k],le=E.el||dd(E),P=le&&(E.type===ye||!As(E,z)||E.shapeFlag&198)?d(le):V;p(E,z,P,null,ee,de,pe,we,!0)}},B=(S,T,V,ee,de)=>{if(T!==V){if(T!==ut)for(const pe in T)!Mo(pe)&&!(pe in V)&&s(S,pe,T[pe],null,de,ee);for(const pe in V){if(Mo(pe))continue;const we=V[pe],k=T[pe];we!==k&&pe!=="value"&&s(S,pe,k,we,de,ee)}"value"in V&&s(S,"value",T.value,V.value,de)}},A=(S,T,V,ee,de,pe,we,k,E)=>{const z=T.el=S?S.el:l(""),le=T.anchor=S?S.anchor:l("");let{patchFlag:P,dynamicChildren:N,slotScopeIds:W}=T;W&&(k=k?k.concat(W):W),S==null?(n(z,V,ee),n(le,V,ee),O(T.children||[],V,le,de,pe,we,k,E)):P>0&&P&64&&N&&S.dynamicChildren&&S.dynamicChildren.length===N.length?(ie(S.dynamicChildren,N,V,de,pe,we,k),(T.key!=null||de&&T===de.subTree)&&v2(S,T,!0)):ae(S,T,V,le,de,pe,we,k,E)},H=(S,T,V,ee,de,pe,we,k,E)=>{T.slotScopeIds=k,S==null?T.shapeFlag&512?de.ctx.activate(T,V,ee,we,E):I(T,V,ee,de,pe,we,E):D(S,T,E)},I=(S,T,V,ee,de,pe,we)=>{const k=S.component=Ky(S,ee,de);if(m0(S)&&(k.ctx.renderer=se),qy(k,!1,we),k.asyncDep){if(de&&de.registerDep(k,q,we,pe),!S.el){const E=k.subTree=Y(li);v(null,E,T,V),S.placeholder=E.el}}else q(k,S,T,V,de,pe,we)},D=(S,T,V)=>{const ee=T.component=S.component;if(xy(S,T,V))if(ee.asyncDep&&!ee.asyncResolved){T.el=S.el,T.placeholder=S.placeholder,re(ee,T,V);return}else ee.next=T,ee.update();else T.el=S.el,T.placeholder=S.placeholder,ee.vnode=T},q=(S,T,V,ee,de,pe,we)=>{const k=()=>{if(S.isMounted){let{next:P,bu:N,u:W,parent:ne,vnode:Se}=S;{const pt=Q4(S);if(pt){P&&(P.el=Se.el,re(S,P,we)),pt.asyncDep.then(()=>{Ti(()=>{S.isUnmounted||z()},de)});return}}let Me=P,Re;ps(S,!1),P?(P.el=Se.el,re(S,P,we)):P=Se,N&&oc(N),(Re=P.props&&P.props.onVnodeBeforeUpdate)&&kn(Re,ne,P,Se),ps(S,!0);const Ke=Uf(S),Ge=S.subTree;S.subTree=Ke,p(Ge,Ke,d(Ge.el),j(Ge),S,de,pe),P.el=Ke.el,Me===null&&Hy(S,Ke.el),W&&Ti(W,de),(Re=P.props&&P.props.onVnodeUpdated)&&Ti(()=>kn(Re,ne,P,Se),de)}else{let P;const{el:N,props:W}=T,{bm:ne,m:Se,parent:Me,root:Re,type:Ke}=S,Ge=sa(T);ps(S,!1),ne&&oc(ne),!Ge&&(P=W&&W.onVnodeBeforeMount)&&kn(P,Me,T),ps(S,!0);{Re.ce&&Re.ce._hasShadowRoot()&&Re.ce._injectChildStyle(Ke,S.parent?S.parent.type:void 0);const pt=S.subTree=Uf(S);p(null,pt,V,ee,S,de,pe),T.el=pt.el}if(Se&&Ti(Se,de),!Ge&&(P=W&&W.onVnodeMounted)){const pt=T;Ti(()=>kn(P,Me,pt),de)}(T.shapeFlag&256||Me&&sa(Me.vnode)&&Me.vnode.shapeFlag&256)&&S.a&&Ti(S.a,de),S.isMounted=!0,T=V=ee=null}};S.scope.on();const E=S.effect=new e4(k);S.scope.off();const z=S.update=E.run.bind(E),le=S.job=E.runIfDirty.bind(E);le.i=S,le.id=S.uid,E.scheduler=()=>c2(le),ps(S,!0),z()},re=(S,T,V)=>{T.component=S;const ee=S.vnode.props;S.vnode=T,S.next=null,Ny(S,T.props,ee,V),Iy(S,T.children,V),jn(),S4(S),Kn()},ae=(S,T,V,ee,de,pe,we,k,E=!1)=>{const z=S&&S.children,le=S?S.shapeFlag:0,P=T.children,{patchFlag:N,shapeFlag:W}=T;if(N>0){if(N&128){xe(z,P,V,ee,de,pe,we,k,E);return}else if(N&256){ge(z,P,V,ee,de,pe,we,k,E);return}}W&8?(le&16&&ue(z,de,pe),P!==z&&u(V,P)):le&16?W&16?xe(z,P,V,ee,de,pe,we,k,E):ue(z,de,pe,!0):(le&8&&u(V,""),W&16&&O(P,V,ee,de,pe,we,k,E))},ge=(S,T,V,ee,de,pe,we,k,E)=>{S=S||$s,T=T||$s;const z=S.length,le=T.length,P=Math.min(z,le);let N;for(N=0;N<P;N++){const W=T[N]=E?or(T[N]):Rn(T[N]);p(S[N],W,V,null,de,pe,we,k,E)}z>le?ue(S,de,pe,!0,!1,P):O(T,V,ee,de,pe,we,k,E,P)},xe=(S,T,V,ee,de,pe,we,k,E)=>{let z=0;const le=T.length;let P=S.length-1,N=le-1;for(;z<=P&&z<=N;){const W=S[z],ne=T[z]=E?or(T[z]):Rn(T[z]);if(As(W,ne))p(W,ne,V,null,de,pe,we,k,E);else break;z++}for(;z<=P&&z<=N;){const W=S[P],ne=T[N]=E?or(T[N]):Rn(T[N]);if(As(W,ne))p(W,ne,V,null,de,pe,we,k,E);else break;P--,N--}if(z>P){if(z<=N){const W=N+1,ne=W<le?T[W].el:ee;for(;z<=N;)p(null,T[z]=E?or(T[z]):Rn(T[z]),V,ne,de,pe,we,k,E),z++}}else if(z>N)for(;z<=P;)ve(S[z],de,pe,!0),z++;else{const W=z,ne=z,Se=new Map;for(z=ne;z<=N;z++){const Mt=T[z]=E?or(T[z]):Rn(T[z]);Mt.key!=null&&Se.set(Mt.key,z)}let Me,Re=0;const Ke=N-ne+1;let Ge=!1,pt=0;const _t=new Array(Ke);for(z=0;z<Ke;z++)_t[z]=0;for(z=W;z<=P;z++){const Mt=S[z];if(Re>=Ke){ve(Mt,de,pe,!0);continue}let Ce;if(Mt.key!=null)Ce=Se.get(Mt.key);else for(Me=ne;Me<=N;Me++)if(_t[Me-ne]===0&&As(Mt,T[Me])){Ce=Me;break}Ce===void 0?ve(Mt,de,pe,!0):(_t[Ce-ne]=z+1,Ce>=pt?pt=Ce:Ge=!0,p(Mt,T[Ce],V,null,de,pe,we,k,E),Re++)}const We=Ge?By(_t):$s;for(Me=We.length-1,z=Ke-1;z>=0;z--){const Mt=ne+z,Ce=T[Mt],Te=T[Mt+1],Fe=Mt+1<le?Te.el||dd(Te):ee;_t[z]===0?p(null,Ce,V,Fe,de,pe,we,k,E):Ge&&(Me<0||z!==We[Me]?J(Ce,V,Fe,2):Me--)}}},J=(S,T,V,ee,de=null)=>{const{el:pe,type:we,transition:k,children:E,shapeFlag:z}=S;if(z&6){J(S.component.subTree,T,V,ee);return}if(z&128){S.suspense.move(T,V,ee);return}if(z&64){we.move(S,T,V,se);return}if(we===ye){n(pe,T,V);for(let P=0;P<E.length;P++)J(E[P],T,V,ee);n(S.anchor,T,V);return}if(we===d1){y(S,T,V);return}if(ee!==2&&z&1&&k)if(ee===0)k.persisted&&!pe[cn]?n(pe,T,V):(k.beforeEnter(pe),n(pe,T,V),Ti(()=>k.enter(pe),de));else{const{leave:P,delayLeave:N,afterLeave:W}=k,ne=()=>{S.ctx.isUnmounted?r(pe):n(pe,T,V)},Se=()=>{const Me=pe._isLeaving||!!pe[cn];pe._isLeaving&&pe[cn](!0),k.persisted&&!Me?ne():P(pe,()=>{ne(),W&&W()})};N?N(pe,ne,Se):Se()}else n(pe,T,V)},ve=(S,T,V,ee=!1,de=!1)=>{const{type:pe,props:we,ref:k,children:E,dynamicChildren:z,shapeFlag:le,patchFlag:P,dirs:N,cacheIndex:W,memo:ne}=S;if((P===-2||z&&z.hasOnce)&&(de=!1),k!=null&&(jn(),xo(k,null,V,S,!0),Kn()),W!=null&&(!S.ctx||S.ctx===T)&&(T.renderCache[W]=void 0),le&256){T.ctx.deactivate(S);return}const Se=le&1&&N,Me=!sa(S);let Re;if(Me&&(Re=we&&we.onVnodeBeforeUnmount)&&kn(Re,T,S),le&6)te(S.component,V,ee);else{if(le&128){S.suspense.unmount(V,ee);return}Se&&fs(S,null,T,"beforeUnmount"),le&64?S.type.remove(S,T,V,se,ee):z&&!z.hasOnce&&(pe!==ye||P>0&&P&64)?ue(z,T,V,!1,!0):(pe===ye&&P&384||!de&&le&16)&&ue(E,T,V),ee&&fe(S)}const Ke=ne!=null&&W==null;(Me&&(Re=we&&we.onVnodeUnmounted)||Se||Ke)&&Ti(()=>{Re&&kn(Re,T,S),Se&&fs(S,null,T,"unmounted"),Ke&&(S.el=null)},V)},fe=S=>{const{type:T,el:V,anchor:ee,transition:de}=S,pe=T===ye;if(pe&&!de){he(V,ee);return}if(T===d1){g(S),de&&!de.persisted&&de.afterLeave&&de.afterLeave();return}const we=pe?Uo(S):S,k=()=>{pe?d(V)&&he(V,ee):r(V),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(we&&we.shapeFlag&1&&de&&!de.persisted){const{leave:E,delayLeave:z}=de,le=we.el,P=()=>E(le,k);z?z(le,k,P):P()}else k()},he=(S,T)=>{let V;for(;S!==T;)V=f(S),r(S),S=V;r(T)},te=(S,T,V)=>{const{bum:ee,scope:de,job:pe,subTree:we,um:k,m:E,a:z}=S;Kf(E),Kf(z),ee&&oc(ee),de.stop(),pe?(pe.flags|=8,ve(we,S,T,V)):S.vnode.el&&we&&(we.transition=S.vnode.transition,ve(we,S,T,V)),k&&Ti(k,T),Ti(()=>{S.isUnmounted=!0},T)},ue=(S,T,V,ee=!1,de=!1,pe=0)=>{for(let we=pe;we<S.length;we++)ve(S[we],T,V,ee,de)},j=S=>{if(S.shapeFlag&6)return j(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const T=f(S.anchor||S.el),V=T&&T[M4];return V?f(V):T},K=(S,T,V)=>{const ee=S&&T._vnode?void 0:S&&S.component?S.component.uid:jy();q3(()=>{S==null?T._vnode&&ve(T._vnode,null,null,!0):p(T._vnode||null,S,T,null,null,null,V),T._vnode=S},ee)},se={p,um:ve,m:J,r:fe,mt:I,mc:O,pc:ae,pbc:ie,n:j,o:e};return{render:K,hydrate:void 0,createApp:Ay(K)}}function u1({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 ps({effect:e,job:t},i){i?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zy(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function v2(e,t,i=!1){const n=e.children,r=t.children;if(Ue(n)&&Ue(r))for(let s=0;s<n.length;s++){const a=n[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=or(r[s]),l.el=a.el),!i&&l.patchFlag!==-2&&v2(a,l)),l.type===rs&&(l.patchFlag===-1&&(l=r[s]=or(l)),l.el=a.el),l.type===li&&!l.el&&(l.el=a.el)}}function By(e){const t=e.slice(),i=[0];let n,r,s,a,l;const o=e.length;for(n=0;n<o;n++){const c=e[n];if(c!==0){if(r=i[i.length-1],e[r]<c){t[n]=r,i.push(n);continue}for(s=0,a=i.length-1;s<a;)l=s+a>>1,e[i[l]]<c?s=l+1:a=l;c<e[i[s]]&&(s>0&&(t[n]=i[s-1]),i[s]=n)}}for(s=i.length,a=i[s-1];s-- >0;)i[s]=a,a=t[a];return i}function Q4(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q4(t)}function Kf(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function dd(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?dd(t.subTree):null}const ev=e=>e.__isSuspense;function Fy(e,t){t&&t.pendingBranch?Ue(e)?t.effects.push(...e):t.effects.push(e):K3(e)}const ye=Symbol.for("v-fgt"),rs=Symbol.for("v-txt"),li=Symbol.for("v-cmt"),d1=Symbol.for("v-stc"),vr=[];let Gi=null;function _(e=!1){vr.push(Gi=e?null:[])}function g2(){vr.pop(),Gi=vr[vr.length-1]||null}let jo=1;function Tc(e,t=!1){jo+=e,e<0&&Gi&&t&&(Gi.hasOnce=!0)}function tv(e){return e.dynamicChildren=jo>0?Gi||$s:null,g2(),jo>0&&Gi&&Gi.push(e),e}function M(e,t,i,n,r,s){return tv(w(e,t,i,n,r,s,!0))}function oe(e,t,i,n,r){return tv(Y(e,t,i,n,r,!0))}function aa(e){return e?e.__v_isVNode===!0:!1}function As(e,t){return e.type===t.type&&e.key===t.key}const iv=({key:e})=>e??null,cc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Nt(e)||Vt(e)||Je(e)?{i:wi,r:e,k:t,f:!!i}:e:null);function w(e,t=null,i=null,n=0,r=null,s=e===ye?0:1,a=!1,l=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&iv(t),ref:t&&cc(t),scopeId:A4,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:s,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:wi};return l?(Nc(o,i),s&128&&e.normalize(o)):i&&(o.shapeFlag|=Nt(i)?8:16),jo>0&&!a&&Gi&&(o.patchFlag>0||s&6)&&o.patchFlag!==32&&Gi.push(o),o}const Y=zy;function zy(e,t=null,i=null,n=0,r=null,s=!1){if((!e||e===P4)&&(e=li),aa(e)){const l=Qr(e,t,!0);return i&&Nc(l,i),jo>0&&!s&&Gi&&(l.shapeFlag&6?Gi[Gi.indexOf(e)]=l:Gi.push(l)),l.patchFlag=-2,l}if(Jy(e)&&(e=e.__vccOpts),t){t=Uy(t);let{class:l,style:o}=t;l&&!Nt(l)&&(t.class=Ee(l)),ft(o)&&(yu(o)&&!Ue(o)&&(o=Ft({},o)),t.style=$t(o))}const a=Nt(e)?1:ev(e)?128:wu(e)?64:ft(e)?4:Je(e)?2:0;return w(e,t,i,n,r,a,s,!0)}function Uy(e){return e?yu(e)||K4(e)?Ft({},e):e:null}function Qr(e,t,i=!1,n=!1){const{props:r,ref:s,patchFlag:a,children:l,transition:o}=e,c=t?Lt(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&iv(c),ref:t&&t.ref?i&&s?Ue(s)?s.concat(cc(t)):[s,cc(t)]:cc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:o,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qr(e.ssContent),ssFallback:e.ssFallback&&Qr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return o&&n&&Jr(u,o.clone(u)),u}function ce(e=" ",t=0){return Y(rs,null,e,t)}function R(e="",t=!1){return t?(_(),oe(li,null,e)):Y(li,null,e)}function Rn(e){return e==null||typeof e=="boolean"?Y(li):Ue(e)?Y(ye,null,e.slice()):aa(e)?or(e):Y(rs,null,String(e))}function or(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qr(e)}function Nc(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ue(t))i=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Nc(e,r()),r._c&&(r._d=!0));return}else{i=32;const r=t._;!r&&!K4(t)?t._ctx=wi:r===3&&wi&&(wi.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Je(t)){if(n&65){Nc(e,{default:t});return}t={default:t,_ctx:wi},i=32}else t=String(t),n&64?(i=16,t=[ce(t)]):i=8;e.children=t,e.shapeFlag|=i}function Lt(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Ee([t.class,n.class]));else if(r==="style")t.style=$t([t.style,n.style]);else if(du(r)){const s=t[r],a=n[r];a&&s!==a&&!(Ue(s)&&s.includes(a))?t[r]=s?[].concat(s,a):a:a==null&&s==null&&!hu(r)&&(t[r]=a)}else r!==""&&(t[r]=n[r])}return t}function kn(e,t,i,n=null){mn(e,t,7,[i,n])}const Wy=D4();let nv=0;function jy(){return nv}function Ky(e,t,i){const n=e.type,r=(t?t.appContext:e.appContext)||Wy,s={uid:nv++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Jm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:G4(n,r),emitsOptions:F4(n,r),emit:null,emitted:null,propsDefaults:ut,inheritAttrs:n.inheritAttrs,ctx:ut,data:ut,props:ut,attrs:ut,slots:ut,refs:ut,setupState:ut,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=$y.bind(null,s),e.ce&&e.ce(s),s}let bi=null;const _i=()=>bi||wi;let Pc,Ko;{const e=vu(),t=(i,n)=>{let r;return(r=e[i])||(r=e[i]=[]),r.push(n),s=>{r.length>1?r.forEach(a=>a(s)):r[0](s)}};Pc=t("__VUE_INSTANCE_SETTERS__",i=>bi=i),Ko=t("__VUE_SSR_SETTERS__",i=>la=i)}const g0=e=>{const t=bi;return Pc(e),e.scope.on(),()=>{e.scope.off(),Pc(t)}},qf=()=>{bi&&bi.scope.off(),Pc(null)};function rv(e){return e.vnode.shapeFlag&4}let la=!1;function qy(e,t=!1,i=!1){t&&Ko(t);const{props:n,children:r}=e.vnode,s=rv(e);Ty(e,n,s,t),Ry(e,r,i||t);const a=s?Gy(e,t):void 0;return t&&Ko(!1),a}function Gy(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vy);const{setup:n}=i;if(n){jn();const r=e.setupContext=n.length>1?av(e):null,s=g0(e),a=p0(n,e,0,[e.props,r]),l=Wm(a);if(Kn(),s(),(l||e.sp)&&!sa(e)&&h2(e),l){if(a.then(qf,qf),t)return a.then(o=>{Ko(!0);try{Gf(e,o,t)}finally{Ko(!1)}}).catch(o=>{_0(o,e,0)});e.asyncDep=a}else Gf(e,a)}else sv(e)}function Gf(e,t,i){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=v4(t)),sv(e)}function sv(e,t,i){const n=e.type;e.render||(e.render=n.render||Dn);{const r=g0(e);jn();try{by(e)}finally{Kn(),r()}}}const Yy={get(e,t){return $i(e,"get",""),e[t]}};function av(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,Yy),slots:e.slots,emit:e.emit,expose:t}}function ku(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(v4(o2(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Ho)return Ho[i](e)},has(t,i){return i in t||i in Ho}})):e.proxy}function Xy(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function Jy(e){return Je(e)&&"__vccOpts"in e}const U=(e,t)=>F3(e,t,la);function He(e,t,i){try{Tc(-1);const n=arguments.length;return n===2?ft(t)&&!Ue(t)?aa(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&aa(i)&&(i=[i]),Y(e,t,i))}finally{Tc(1)}}const Qy="3.5.44";/**
14
- * @vue/runtime-dom v3.5.44
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let hd;const Yf=typeof window<"u"&&window.trustedTypes;if(Yf)try{hd=Yf.createPolicy("vue",{createHTML:e=>e})}catch{}const lv=hd?e=>hd.createHTML(e):e=>e,e7="http://www.w3.org/2000/svg",t7="http://www.w3.org/1998/Math/MathML",lr=typeof document<"u"?document:null,Xf=lr&&lr.createElement("template"),i7={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,n)=>{const r=t==="svg"?lr.createElementNS(e7,e):t==="mathml"?lr.createElementNS(t7,e):i?lr.createElement(e,{is:i}):lr.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>lr.createTextNode(e),createComment:e=>lr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>lr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,n,r,s){const a=i?i.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),i),!(r===s||!(r=r.nextSibling)););else{Xf.innerHTML=lv(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Xf.content;if(n==="svg"||n==="mathml"){const o=l.firstChild;for(;o.firstChild;)l.appendChild(o.firstChild);l.removeChild(o)}t.insertBefore(l,i)}return[a?a.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},Er="transition",no="animation",oa=Symbol("_vtc"),ov={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},cv=Ft({},E4,ov),n7=e=>(e.displayName="Transition",e.props=cv,e),Ds=n7((e,{slots:t})=>He(ry,uv(e),t)),_s=(e,t=[])=>{Ue(e)?e.forEach(i=>i(...t)):e&&e(...t)},Jf=e=>e?Ue(e)?e.some(t=>t.length>1):e.length>1:!1;function uv(e){const t={};for(const A in e)A in ov||(t[A]=e[A]);if(e.css===!1)return t;const{name:i="v",type:n,duration:r,enterFromClass:s=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:l=`${i}-enter-to`,appearFromClass:o=s,appearActiveClass:c=a,appearToClass:u=l,leaveFromClass:d=`${i}-leave-from`,leaveActiveClass:f=`${i}-leave-active`,leaveToClass:h=`${i}-leave-to`}=e,m=r7(r),p=m&&m[0],b=m&&m[1],{onBeforeEnter:v,onEnter:C,onEnterCancelled:y,onLeave:g,onLeaveCancelled:L,onBeforeAppear:x=v,onAppear:$=C,onAppearCancelled:O=y}=t,F=(A,H,I,D)=>{A._enterCancelled=D,Or(A,H?u:l),Or(A,H?c:a),I&&I()},ie=(A,H)=>{A._isLeaving=!1,Or(A,d),Or(A,h),Or(A,f),H&&H()},B=A=>(H,I)=>{const D=A?$:C,q=()=>F(H,A,I);_s(D,[H,q]),Qf(()=>{Or(H,A?o:s),Hn(H,A?u:l),Jf(D)||e6(H,n,p,q)})};return Ft(t,{onBeforeEnter(A){_s(v,[A]),Hn(A,s),Hn(A,a)},onBeforeAppear(A){_s(x,[A]),Hn(A,o),Hn(A,c)},onEnter:B(!1),onAppear:B(!0),onLeave(A,H){A._isLeaving=!0;const I=()=>ie(A,H);Hn(A,d),A._enterCancelled?(Hn(A,f),fd(A)):(fd(A),Hn(A,f)),Qf(()=>{A._isLeaving&&(Or(A,d),Hn(A,h),Jf(g)||e6(A,n,b,I))}),_s(g,[A,I])},onEnterCancelled(A){F(A,!1,void 0,!0),_s(y,[A])},onAppearCancelled(A){F(A,!0,void 0,!0),_s(O,[A])},onLeaveCancelled(A){ie(A),_s(L,[A])}})}function r7(e){if(e==null)return null;if(ft(e))return[h1(e.enter),h1(e.leave)];{const t=h1(e);return[t,t]}}function h1(e){return a3(e)}function Hn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[oa]||(e[oa]=new Set)).add(t)}function Or(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const i=e[oa];i&&(i.delete(t),i.size||(e[oa]=void 0))}function Qf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let s7=0;function e6(e,t,i,n){const r=e._endId=++s7,s=()=>{r===e._endId&&n()};if(i!=null)return setTimeout(s,i);const{type:a,timeout:l,propCount:o}=dv(e,t);if(!a)return n();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),s()},f=h=>{h.target===e&&++u>=o&&d()};setTimeout(()=>{u<o&&d()},l+1),e.addEventListener(c,f)}function dv(e,t){const i=window.getComputedStyle(e),n=m=>(i[m]||"").split(", "),r=n(`${Er}Delay`),s=n(`${Er}Duration`),a=t6(r,s),l=n(`${no}Delay`),o=n(`${no}Duration`),c=t6(l,o);let u=null,d=0,f=0;t===Er?a>0&&(u=Er,d=a,f=s.length):t===no?c>0&&(u=no,d=c,f=o.length):(d=Math.max(a,c),u=d>0?a>c?Er:no:null,f=u?u===Er?s.length:o.length:0);const h=u===Er&&/\b(?:transform|all)(?:,|$)/.test(n(`${Er}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function t6(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((i,n)=>i6(i)+i6(e[n])))}function i6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fd(e){return(e?e.ownerDocument:document).body.offsetHeight}function a7(e,t,i){const n=e[oa];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Oc=Symbol("_vod"),b2=Symbol("_vsh"),y2={name:"show",beforeMount(e,{value:t},{transition:i}){e[Oc]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):ro(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:n}){!t!=!i&&(n?t?(n.beforeEnter(e),ro(e,!0),n.enter(e)):n.leave(e,()=>{ro(e,!1)}):ro(e,t))},beforeUnmount(e,{value:t}){ro(e,t)}};function ro(e,t){e.style.display=t?e[Oc]:"none",e[b2]=!t}const l7=Symbol(""),o7=/(?:^|;)\s*display\s*:/;function c7(e,t,i){const n=e.style,r=Nt(i);let s=!1;if(i&&!r){if(t)if(Nt(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();i[l]==null&&yo(n,l,"")}else for(const a in t)i[a]==null&&yo(n,a,"");for(const a in i){a==="display"&&(s=!0);const l=i[a];l!=null?d7(e,a,!Nt(t)&&t?t[a]:void 0,l)||yo(n,a,l):yo(n,a,"")}}else if(r){if(t!==i){const a=n[l7];a&&(i+=";"+a),n.cssText=i,s=o7.test(i)}}else t&&e.removeAttribute("style");Oc in e&&((!r||t!==i)&&(e[Oc]=s?n.display:""),e[b2]&&(n.display="none"))}const O0=/\s*!important$/;function yo(e,t,i){if(Ue(i))i.forEach(n=>yo(e,t,n));else if(i==null&&(i=""),t.startsWith("--"))O0.test(i)?e.setProperty(t,i.replace(O0,""),"important"):e.setProperty(t,i);else{const n=u7(e,t);O0.test(i)?e.setProperty(wr(n),i.replace(O0,""),"important"):e[n]=i}}const n6=["Webkit","Moz","ms"],f1={};function u7(e,t){const i=f1[t];if(i)return i;let n=Li(t);if(n!=="filter"&&n in e)return f1[t]=n;n=_u(n);for(let r=0;r<n6.length;r++){const s=n6[r]+n;if(s in e)return f1[t]=s}return t}function d7(e,t,i,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Nt(n)&&i===n}const r6="http://www.w3.org/1999/xlink";function s6(e,t,i,n,r,s=f3(t)){n&&t.startsWith("xlink:")?i==null?e.removeAttributeNS(r6,t.slice(6,t.length)):e.setAttributeNS(r6,t,i):i==null||s&&!Gm(i)?e.removeAttribute(t):e.setAttribute(t,s?"":en(i)?String(i):i)}function a6(e,t,i,n,r){if(t==="innerHTML"||t==="textContent"){i!=null&&(e[t]=t==="innerHTML"?lv(i):i);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const l=s==="OPTION"?e.getAttribute("value")||"":e.value,o=i==null?e.type==="checkbox"?"on":"":String(i);(l!==o||!("_value"in e))&&(e.value=o),i==null&&e.removeAttribute(t),e._value=i;return}let a=!1;if(i===""||i==null){const l=typeof e[t];l==="boolean"?i=Gm(i):i==null&&l==="string"?(i="",a=!0):l==="number"&&(i=0,a=!0)}try{e[t]=i}catch{}a&&e.removeAttribute(r||t)}function dr(e,t,i,n){e.addEventListener(t,i,n)}function h7(e,t,i,n){e.removeEventListener(t,i,n)}const l6=Symbol("_vei");function f7(e,t,i,n,r=null){const s=e[l6]||(e[l6]={}),a=s[t];if(n&&a)a.value=n;else{const[l,o]=m7(t);if(n){const c=s[t]=b7(n,r);dr(e,l,c,o)}else a&&(h7(e,l,a,o),s[t]=void 0)}}const p7=/(Once|Passive|Capture)$/,_7=/^on:?(?:Once|Passive|Capture)$/;function m7(e){let t,i;for(;(i=e.match(p7))&&!_7.test(e);)t||(t={}),e=e.slice(0,e.length-i[1].length),t[i[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):wr(e.slice(2)),t]}let p1=0;const v7=Promise.resolve(),g7=()=>p1||(v7.then(()=>p1=0),p1=Date.now());function b7(e,t){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;const r=i.value;if(Ue(r)){const s=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{s.call(n),n._stopped=!0};const a=r.slice(),l=[n];for(let o=0;o<a.length&&!n._stopped;o++){const c=a[o];c&&mn(c,t,5,l)}}else mn(r,t,5,[n])};return i.value=e,i.attached=g7(),i}const o6=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,y7=(e,t,i,n,r,s)=>{const a=r==="svg";t==="class"?a7(e,n,a):t==="style"?c7(e,i,n):du(t)?hu(t)||f7(e,t,i,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):w7(e,t,n,a))?(a6(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&s6(e,t,n,a,s,t!=="value")):e._isVueCE&&(S7(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Nt(n)))?a6(e,Li(t),n,s,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),s6(e,t,n,a))};function w7(e,t,i,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&o6(t)&&Je(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return o6(t)&&Nt(i)?!1:t in e}function S7(e,t){const i=e._def.props;if(!i)return!1;const n=Li(t);return Array.isArray(i)?i.some(r=>Li(r)===n):Object.keys(i).some(r=>Li(r)===n)}const hv=new WeakMap,fv=new WeakMap,Rc=Symbol("_moveCb"),c6=Symbol("_enterCb"),pd=new WeakMap,C7=e=>(delete e.props.mode,e),k7=C7({name:"TransitionGroup",props:Ft({},cv,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=_i(),n=L4();let r,s,a,l;const o=()=>(l===void 0&&(l=r.length>0&&T7(r[0].el,i.vnode.el,u6(e))),l);return N4(()=>{if(pd.delete(i),!o()){r=[],a=void 0;return}const c=u6(e);r.forEach($7);const u=a&&H7(a,i.vnode.el);a=void 0,r.forEach(f=>M7(f,u));const d=r.filter(L7);fd(i.vnode.el),d.forEach(f=>{const h=f.el,m=h.style;Hn(h,c),m.transform=m.webkitTransform=m.transitionDuration="";const p=h[Rc]=b=>{b&&b.target!==h||(!b||b.propertyName.endsWith("transform"))&&(h.removeEventListener("transitionend",p),h[Rc]=null,Or(h,c))};h.addEventListener("transitionend",p)}),r=[]}),()=>{const c=lt(e),u=uv(c);let d=c.tag||ye;if(r=[],l=void 0,s)for(let f=0;f<s.length;f++){const h=s[f];h.el&&h.el instanceof Element&&!h.el[b2]&&(r.push(h),Jr(h,zo(h,u,n,i)),hv.set(h,Au(h.el)))}s=t.default?d2(t.default()):[];for(let f=0;f<s.length;f++){const h=s[f];h.key!=null&&Jr(h,zo(h,u,n,i))}return r.length&&(a=E7(i),pd.set(i,o)),Y(d,null,s)}}}),A7=k7;function $7(e){const t=e.el;t[Rc]&&t[Rc](),t[c6]&&t[c6]()}function u6(e){return e.moveClass||`${e.name||"v"}-move`}function M7(e,t){fv.set(e,Au(e.el,t))}function L7(e){const t=hv.get(e),i=fv.get(e),n=t.left-i.left,r=t.top-i.top;if(n||r){const s=e.el,a=s.style,l=s.getBoundingClientRect();let o=1,c=1;return s.offsetWidth&&(o=l.width/s.offsetWidth),s.offsetHeight&&(c=l.height/s.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(o-1)<.01&&(o=1),Math.abs(c-1)<.01&&(c=1),a.transform=a.webkitTransform=`translate(${n/o}px,${r/c}px)`,a.transitionDuration="0s",e}}function Au(e,t){const i=e.getBoundingClientRect();return{left:i.left-(t?t.left:0),top:i.top-(t?t.top:0)}}function E7(e){let t;for(let i=e.parent;i;i=i.parent){const n=pd.get(i);if(n){const r=x7(i.vnode.el,e.vnode.el);r&&(t||(t=[])).push(Ft(Au(r),{item:r,willMove:n}))}}return t}function x7(e,t){const i=e.nodeType===1?e:e.parentNode;for(;t&&t.parentNode!==i;)t=t.parentNode;if(t&&t.nodeType===1)return t}function H7(e,t){const i=e.find(n=>n.willMove()&&n.item.contains(t));return i&&Au(i.item,i)}function T7(e,t,i){const n=e.cloneNode(),r=e[oa];r&&r.forEach(l=>{l.split(/\s+/).forEach(o=>o&&n.classList.remove(o))}),i.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(n);const{hasTransform:a}=dv(n);return s.removeChild(n),a}const es=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ue(t)?i=>oc(t,i):t};function N7(e){e.target.composing=!0}function d6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yi=Symbol("_assign"),R0=Symbol("_initialValue");function _1(e,t,i){return t&&(e=e.trim()),i&&(e=mu(e)),e}const qo={created(e,{modifiers:{lazy:t,trim:i,number:n}},r){e.parentNode&&(e.type==="text"?e[R0]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[R0]=e.defaultValue.replace(/\r\n?/g,`
18
- `))),e[Yi]=es(r);const s=n||r.props&&r.props.type==="number";dr(e,t?"change":"input",a=>{a.target.composing||e[Yi](_1(e.value,i,s))}),(i||s)&&dr(e,"change",()=>{e.value=_1(e.value,i,s)}),t||(dr(e,"compositionstart",N7),dr(e,"compositionend",d6),dr(e,"change",d6))},mounted(e,{value:t,modifiers:{trim:i,number:n}}){const r=t??"",s=e[R0];delete e[R0],s!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==s?e[Yi](_1(e.value,i,n)):e.value=r},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:n,trim:r,number:s}},a){if(e[Yi]=es(a),e.composing)return;const l=(s||e.type==="number")&&!/^0\d/.test(e.value)?mu(e.value):e.value,o=t??"";if(l===o)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(n&&t===i||r&&e.value.trim()===o)||(e.value=o)}},pv={deep:!0,created(e,t,i){e[Yi]=es(i),dr(e,"change",()=>{const n=e._modelValue,r=ca(e),s=e.checked,a=e[Yi];if(Ue(n)){const l=t2(n,r),o=l!==-1;if(s&&!o)a(n.concat(r));else if(!s&&o){const c=[...n];c.splice(l,1),a(c)}}else if(gr(n)){const l=new Set(n);s?l.add(r):l.delete(r),a(l)}else a(_v(e,s))})},mounted:h6,beforeUpdate(e,t,i){e[Yi]=es(i),h6(e,t,i)}};function h6(e,{value:t,oldValue:i},n){e._modelValue=t;let r;if(Ue(t))r=t2(t,n.props.value)>-1;else if(gr(t))r=t.has(n.props.value);else{if(t===i)return;r=Sn(t,_v(e,!0))}e.checked!==r&&(e.checked=r)}const P7={created(e,{value:t},i){e.checked=Sn(t,i.props.value),e[Yi]=es(i),dr(e,"change",()=>{e[Yi](ca(e))})},beforeUpdate(e,{value:t,oldValue:i},n){e[Yi]=es(n),t!==i&&(e.checked=Sn(t,n.props.value))}},O7={deep:!0,created(e,{value:t,modifiers:{number:i}},n){e._modelValue=t,dr(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>i?mu(ca(o)):ca(o)),s=e.multiple,a=s?gr(e._modelValue)?new Set(r):r:r[0],l=e._pendingValue=[s,s?Ue(a)?r.slice():r:a];try{e[Yi](a)}finally{bt(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[Yi]=es(n)},mounted(e,{value:t}){f6(e,t)},beforeUpdate(e,{value:t},i){e._modelValue=t,e[Yi]=es(i)},updated(e,{value:t}){const i=e._pendingValue;e._pendingValue=void 0,(!i||i[0]!==e.multiple||!R7(t,i[1],i[0]))&&f6(e,t)}};function R7(e,t,i){if(!i||Ue(e))return Sn(e,t);if(gr(e)){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}return!1}function f6(e,t){const i=e.multiple,n=Ue(t);if(!(i&&!n&&!gr(t))){for(let r=0,s=e.options.length;r<s;r++){const a=e.options[r],l=ca(a);if(i)if(n){const o=typeof l;o==="string"||o==="number"?a.selected=t.some(c=>String(c)===String(l)):a.selected=t2(t,l)>-1}else a.selected=t.has(l);else if(Sn(ca(a),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ca(e){return"_value"in e?e._value:e.value}function _v(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const p6={created(e,t,i){I0(e,t,i,null,"created")},mounted(e,t,i){I0(e,t,i,null,"mounted")},beforeUpdate(e,t,i,n){I0(e,t,i,n,"beforeUpdate")},updated(e,t,i,n){I0(e,t,i,n,"updated")}};function I7(e,t){switch(e){case"SELECT":return O7;case"TEXTAREA":return qo;default:switch(t){case"checkbox":return pv;case"radio":return P7;default:return qo}}}function I0(e,t,i,n,r){const a=I7(e.tagName,i.props&&i.props.type)[r];a&&a(e,t,i,n)}const V7=["ctrl","shift","alt","meta"],D7={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)=>V7.some(i=>e[`${i}Key`]&&!t.includes(i))},Qe=(e,t)=>{if(!e)return e;const i=e._withMods||(e._withMods={}),n=t.join(".");return i[n]||(i[n]=(r,...s)=>{for(let a=0;a<t.length;a++){const l=D7[t[a]];if(l&&l(r,t))return}return e(r,...s)})},Z7={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ri=(e,t)=>{const i=e._withKeys||(e._withKeys={}),n=t.join(".");return i[n]||(i[n]=r=>{if(!("key"in r))return;const s=wr(r.key);if(t.some(a=>a===s||Z7[a]===s))return e(r)})},B7=Ft({patchProp:y7},i7);let _6;function F7(){return _6||(_6=Vy(B7))}const mv=(...e)=>{const t=F7().createApp(...e),{mount:i}=t;return t.mount=n=>{const r=U7(n);if(!r)return;const s=t._component;!Je(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=i(r,!1,z7(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function z7(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function U7(e){return Nt(e)?document.querySelector(e):e}/*!
19
- * pinia v2.3.1
20
- * (c) 2025 Eduardo San Martin Morote
21
- * @license MIT
22
- */let vv;const $u=e=>vv=e,gv=Symbol();function _d(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var To;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(To||(To={}));function W7(){const e=i2(!0),t=e.run(()=>G({}));let i=[],n=[];const r=o2({install(s){$u(r),r._a=s,s.provide(gv,r),s.config.globalProperties.$pinia=r,n.forEach(a=>i.push(a)),n=[]},use(s){return this._a?i.push(s):n.push(s),this},_p:i,_a:null,_e:e,_s:new Map,state:t});return r}const bv=()=>{};function m6(e,t,i,n=bv){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),n())};return!i&&Qm()&&Cc(r),r}function Ws(e,...t){e.slice().forEach(i=>{i(...t)})}const j7=e=>e(),v6=Symbol(),m1=Symbol();function md(e,t){e instanceof Map&&t instanceof Map?t.forEach((i,n)=>e.set(n,i)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const i in t){if(!t.hasOwnProperty(i))continue;const n=t[i],r=e[i];_d(r)&&_d(n)&&e.hasOwnProperty(i)&&!Vt(n)&&!Zn(n)?e[i]=md(r,n):e[i]=n}return e}const K7=Symbol();function q7(e){return!_d(e)||!e.hasOwnProperty(K7)}const{assign:Rr}=Object;function G7(e){return!!(Vt(e)&&e.effect)}function Y7(e,t,i,n){const{state:r,actions:s,getters:a}=t,l=i.state.value[e];let o;function c(){l||(i.state.value[e]=r?r():{});const u=V3(i.state.value[e]);return Rr(u,s,Object.keys(a||{}).reduce((d,f)=>(d[f]=o2(U(()=>{$u(i);const h=i._s.get(e);return a[f].call(h,h)})),d),{}))}return o=yv(e,c,t,i,n,!0),o}function yv(e,t,i={},n,r,s){let a;const l=Rr({actions:{}},i),o={deep:!0};let c,u,d=[],f=[],h;const m=n.state.value[e];!s&&!m&&(n.state.value[e]={});let p;function b(O){let F;c=u=!1,typeof O=="function"?(O(n.state.value[e]),F={type:To.patchFunction,storeId:e,events:h}):(md(n.state.value[e],O),F={type:To.patchObject,payload:O,storeId:e,events:h});const ie=p=Symbol();bt().then(()=>{p===ie&&(c=!0)}),u=!0,Ws(d,F,n.state.value[e])}const v=s?function(){const{state:F}=i,ie=F?F():{};this.$patch(B=>{Rr(B,ie)})}:bv;function C(){a.stop(),d=[],f=[],n._s.delete(e)}const y=(O,F="")=>{if(v6 in O)return O[m1]=F,O;const ie=function(){$u(n);const B=Array.from(arguments),A=[],H=[];function I(re){A.push(re)}function D(re){H.push(re)}Ws(f,{args:B,name:ie[m1],store:L,after:I,onError:D});let q;try{q=O.apply(this&&this.$id===e?this:L,B)}catch(re){throw Ws(H,re),re}return q instanceof Promise?q.then(re=>(Ws(A,re),re)).catch(re=>(Ws(H,re),Promise.reject(re))):(Ws(A,q),q)};return ie[v6]=!0,ie[m1]=F,ie},g={_p:n,$id:e,$onAction:m6.bind(null,f),$patch:b,$reset:v,$subscribe(O,F={}){const ie=m6(d,O,F.detached,()=>B()),B=a.run(()=>Oe(()=>n.state.value[e],A=>{(F.flush==="sync"?u:c)&&O({storeId:e,type:To.direct,events:h},A)},Rr({},o,F)));return ie},$dispose:C},L=br(g);n._s.set(e,L);const $=(n._a&&n._a.runWithContext||j7)(()=>n._e.run(()=>(a=i2()).run(()=>t({action:y}))));for(const O in $){const F=$[O];if(Vt(F)&&!G7(F)||Zn(F))s||(m&&q7(F)&&(Vt(F)?F.value=m[O]:md(F,m[O])),n.state.value[e][O]=F);else if(typeof F=="function"){const ie=y(F,O);$[O]=ie,l.actions[O]=F}}return Rr(L,$),Rr(lt(L),$),Object.defineProperty(L,"$state",{get:()=>n.state.value[e],set:O=>{b(F=>{Rr(F,O)})}}),n._p.forEach(O=>{Rr(L,a.run(()=>O({store:L,app:n._a,pinia:n,options:l})))}),m&&s&&i.hydrate&&i.hydrate(L.$state,m),c=!0,u=!0,L}/*! #__NO_SIDE_EFFECTS__ */function Mu(e,t,i){let n,r;const s=typeof t=="function";typeof e=="string"?(n=e,r=s?i:t):(r=e,n=e.id);function a(l,o){const c=G3();return l=l||(c?Pt(gv,null):null),l&&$u(l),l=vv,l._s.has(n)||(s?yv(n,t,r,l):Y7(n,r,l)),l._s.get(n)}return a.$id=n,a}/*!
23
- * shared v11.3.0
24
- * (c) 2026 kazuya kawaguchi
25
- * Released under the MIT License.
26
- */function X7(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ic=typeof window<"u",ss=(e,t=!1)=>t?Symbol.for(e):Symbol(e),J7=(e,t,i)=>Q7({l:e,k:t,s:i}),Q7=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ei=e=>typeof e=="number"&&isFinite(e),wv=e=>w2(e)==="[object Date]",ua=e=>w2(e)==="[object RegExp]",Lu=e=>ot(e)&&Object.keys(e).length===0,oi=Object.assign,ew=Object.create,kt=(e=null)=>ew(e);let g6;const Ms=()=>g6||(g6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:kt());function b6(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function y6(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tw(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(n,r,s)=>`${r}="${y6(s)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(n,r,s)=>`${r}='${y6(s)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(n=>{e=e.replace(n,"$1javascript&#58;")}),e}const iw=Object.prototype.hasOwnProperty;function hn(e,t){return iw.call(e,t)}const jt=Array.isArray,It=e=>typeof e=="function",De=e=>typeof e=="string",dt=e=>typeof e=="boolean",yt=e=>e!==null&&typeof e=="object",nw=e=>yt(e)&&It(e.then)&&It(e.catch),Sv=Object.prototype.toString,w2=e=>Sv.call(e),ot=e=>w2(e)==="[object Object]",rw=e=>e==null?"":jt(e)||ot(e)&&e.toString===Sv?JSON.stringify(e,null,2):String(e);function S2(e,t=""){return e.reduce((i,n,r)=>r===0?i+n:i+t+n,"")}const V0=e=>!yt(e)||jt(e);function uc(e,t){if(V0(e)||V0(t))throw new Error("Invalid value");const i=[{src:e,des:t}];for(;i.length;){const{src:n,des:r}=i.pop();Object.keys(n).forEach(s=>{s!=="__proto__"&&(yt(n[s])&&!yt(r[s])&&(r[s]=Array.isArray(n[s])?[]:kt()),V0(r[s])||V0(n[s])?r[s]=n[s]:i.push({src:n[s],des:r[s]}))})}}/*!
27
- * message-compiler v11.3.0
28
- * (c) 2026 kazuya kawaguchi
29
- * Released under the MIT License.
30
- */function sw(e,t,i){return{line:e,column:t,offset:i}}function vd(e,t,i){return{start:e,end:t}}const vt={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},aw=17;function Eu(e,t,i={}){const{domain:n,messages:r,args:s}=i,a=e,l=new SyntaxError(String(a));return l.code=e,t&&(l.location=t),l.domain=n,l}function lw(e){throw e}const An=" ",ow="\r",Ai=`
31
- `,cw="\u2028",uw="\u2029";function dw(e){const t=e;let i=0,n=1,r=1,s=0;const a=$=>t[$]===ow&&t[$+1]===Ai,l=$=>t[$]===Ai,o=$=>t[$]===uw,c=$=>t[$]===cw,u=$=>a($)||l($)||o($)||c($),d=()=>i,f=()=>n,h=()=>r,m=()=>s,p=$=>a($)||o($)||c($)?Ai:t[$],b=()=>p(i),v=()=>p(i+s);function C(){return s=0,u(i)&&(n++,r=0),a(i)&&i++,i++,r++,t[i]}function y(){return a(i+s)&&s++,s++,t[i+s]}function g(){i=0,n=1,r=1,s=0}function L($=0){s=$}function x(){const $=i+s;for(;$!==i;)C();s=0}return{index:d,line:f,column:h,peekOffset:m,charAt:p,currentChar:b,currentPeek:v,next:C,peek:y,reset:g,resetPeek:L,skipToPeek:x}}const nr=void 0,hw=".",w6="'",fw="tokenizer";function pw(e,t={}){const i=t.location!==!1,n=dw(e),r=()=>n.index(),s=()=>sw(n.line(),n.column(),n.index()),a=s(),l=r(),o={currentType:13,offset:l,startLoc:a,endLoc:a,lastType:13,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>o,{onError:u}=t;function d(k,E,z,...le){const P=c();if(E.column+=z,E.offset+=z,u){const N=i?vd(P.startLoc,E):null,W=Eu(k,N,{domain:fw,args:le});u(W)}}function f(k,E,z){k.endLoc=s(),k.currentType=E;const le={type:E};return i&&(le.loc=vd(k.startLoc,k.endLoc)),z!=null&&(le.value=z),le}const h=k=>f(k,13);function m(k,E){return k.currentChar()===E?(k.next(),E):(d(vt.EXPECTED_TOKEN,s(),0,E),"")}function p(k){let E="";for(;k.currentPeek()===An||k.currentPeek()===Ai;)E+=k.currentPeek(),k.peek();return E}function b(k){const E=p(k);return k.skipToPeek(),E}function v(k){if(k===nr)return!1;const E=k.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E===95}function C(k){if(k===nr)return!1;const E=k.charCodeAt(0);return E>=48&&E<=57}function y(k,E){const{currentType:z}=E;if(z!==2)return!1;p(k);const le=v(k.currentPeek());return k.resetPeek(),le}function g(k,E){const{currentType:z}=E;if(z!==2)return!1;p(k);const le=k.currentPeek()==="-"?k.peek():k.currentPeek(),P=C(le);return k.resetPeek(),P}function L(k,E){const{currentType:z}=E;if(z!==2)return!1;p(k);const le=k.currentPeek()===w6;return k.resetPeek(),le}function x(k,E){const{currentType:z}=E;if(z!==7)return!1;p(k);const le=k.currentPeek()===".";return k.resetPeek(),le}function $(k,E){const{currentType:z}=E;if(z!==8)return!1;p(k);const le=v(k.currentPeek());return k.resetPeek(),le}function O(k,E){const{currentType:z}=E;if(!(z===7||z===11))return!1;p(k);const le=k.currentPeek()===":";return k.resetPeek(),le}function F(k,E){const{currentType:z}=E;if(z!==9)return!1;const le=()=>{const N=k.currentPeek();return N==="{"?v(k.peek()):N==="@"||N==="|"||N===":"||N==="."||N===An||!N?!1:N===Ai?(k.peek(),le()):B(k,!1)},P=le();return k.resetPeek(),P}function ie(k){p(k);const E=k.currentPeek()==="|";return k.resetPeek(),E}function B(k,E=!0){const z=(P=!1,N="")=>{const W=k.currentPeek();return W==="{"||W==="@"||!W?P:W==="|"?!(N===An||N===Ai):W===An?(k.peek(),z(!0,An)):W===Ai?(k.peek(),z(!0,Ai)):!0},le=z();return E&&k.resetPeek(),le}function A(k,E){const z=k.currentChar();return z===nr?nr:E(z)?(k.next(),z):null}function H(k){const E=k.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E>=48&&E<=57||E===95||E===36}function I(k){return A(k,H)}function D(k){const E=k.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E>=48&&E<=57||E===95||E===36||E===45}function q(k){return A(k,D)}function re(k){const E=k.charCodeAt(0);return E>=48&&E<=57}function ae(k){return A(k,re)}function ge(k){const E=k.charCodeAt(0);return E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102}function xe(k){return A(k,ge)}function J(k){let E="",z="";for(;E=ae(k);)z+=E;return z}function ve(k){let E="";for(;;){const z=k.currentChar();if(z==="\\"){const le=k.peek();le==="{"||le==="}"||le==="@"||le==="|"||le==="\\"?(E+=z+le,k.next(),k.next()):(k.resetPeek(),E+=z,k.next())}else{if(z==="{"||z==="}"||z==="@"||z==="|"||!z)break;if(z===An||z===Ai)if(B(k))E+=z,k.next();else{if(ie(k))break;E+=z,k.next()}else E+=z,k.next()}}return E}function fe(k){b(k);let E="",z="";for(;E=q(k);)z+=E;const le=k.currentChar();if(le&&le!=="}"&&le!==nr&&le!==An&&le!==Ai&&le!==" "){const P=Q(k);return d(vt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,z+P),z+P}return k.currentChar()===nr&&d(vt.UNTERMINATED_CLOSING_BRACE,s(),0),z}function he(k){b(k);let E="";return k.currentChar()==="-"?(k.next(),E+=`-${J(k)}`):E+=J(k),k.currentChar()===nr&&d(vt.UNTERMINATED_CLOSING_BRACE,s(),0),E}function te(k){return k!==w6&&k!==Ai}function ue(k){b(k),m(k,"'");let E="",z="";for(;E=A(k,te);)E==="\\"?z+=j(k):z+=E;const le=k.currentChar();return le===Ai||le===nr?(d(vt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),le===Ai&&(k.next(),m(k,"'")),z):(m(k,"'"),z)}function j(k){const E=k.currentChar();switch(E){case"\\":case"'":return k.next(),`\\${E}`;case"u":return K(k,E,4);case"U":return K(k,E,6);default:return d(vt.UNKNOWN_ESCAPE_SEQUENCE,s(),0,E),""}}function K(k,E,z){m(k,E);let le="";for(let P=0;P<z;P++){const N=xe(k);if(!N){d(vt.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${E}${le}${k.currentChar()}`);break}le+=N}return`\\${E}${le}`}function se(k){return k!=="{"&&k!=="}"&&k!==An&&k!==Ai}function Q(k){b(k);let E="",z="";for(;E=A(k,se);)z+=E;return z}function S(k){let E="",z="";for(;E=I(k);)z+=E;return z}function T(k){const E=z=>{const le=k.currentChar();return le==="{"||le==="@"||le==="|"||le==="("||le===")"||!le||le===An?z:(z+=le,k.next(),E(z))};return E("")}function V(k){b(k);const E=m(k,"|");return b(k),E}function ee(k,E){let z=null;switch(k.currentChar()){case"{":return E.braceNest>=1&&d(vt.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),k.next(),z=f(E,2,"{"),b(k),E.braceNest++,z;case"}":return E.braceNest>0&&E.currentType===2&&d(vt.EMPTY_PLACEHOLDER,s(),0),k.next(),z=f(E,3,"}"),E.braceNest--,E.braceNest>0&&b(k),E.inLinked&&E.braceNest===0&&(E.inLinked=!1),z;case"@":return E.braceNest>0&&d(vt.UNTERMINATED_CLOSING_BRACE,s(),0),z=de(k,E)||h(E),E.braceNest=0,z;default:{let P=!0,N=!0,W=!0;if(ie(k))return E.braceNest>0&&d(vt.UNTERMINATED_CLOSING_BRACE,s(),0),z=f(E,1,V(k)),E.braceNest=0,E.inLinked=!1,z;if(E.braceNest>0&&(E.currentType===4||E.currentType===5||E.currentType===6))return d(vt.UNTERMINATED_CLOSING_BRACE,s(),0),E.braceNest=0,pe(k,E);if(P=y(k,E))return z=f(E,4,fe(k)),b(k),z;if(N=g(k,E))return z=f(E,5,he(k)),b(k),z;if(W=L(k,E))return z=f(E,6,ue(k)),b(k),z;if(!P&&!N&&!W)return z=f(E,12,Q(k)),d(vt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,z.value),b(k),z;break}}return z}function de(k,E){const{currentType:z}=E;let le=null;const P=k.currentChar();switch((z===7||z===8||z===11||z===9)&&(P===Ai||P===An)&&d(vt.INVALID_LINKED_FORMAT,s(),0),P){case"@":return k.next(),le=f(E,7,"@"),E.inLinked=!0,le;case".":return b(k),k.next(),f(E,8,".");case":":return b(k),k.next(),f(E,9,":");default:return ie(k)?(le=f(E,1,V(k)),E.braceNest=0,E.inLinked=!1,le):x(k,E)||O(k,E)?(b(k),de(k,E)):$(k,E)?(b(k),f(E,11,S(k))):F(k,E)?(b(k),P==="{"?ee(k,E)||le:f(E,10,T(k))):(z===7&&d(vt.INVALID_LINKED_FORMAT,s(),0),E.braceNest=0,E.inLinked=!1,pe(k,E))}}function pe(k,E){let z={type:13};if(E.braceNest>0)return ee(k,E)||h(E);if(E.inLinked)return de(k,E)||h(E);switch(k.currentChar()){case"{":return ee(k,E)||h(E);case"}":return d(vt.UNBALANCED_CLOSING_BRACE,s(),0),k.next(),f(E,3,"}");case"@":return de(k,E)||h(E);default:{if(ie(k))return z=f(E,1,V(k)),E.braceNest=0,E.inLinked=!1,z;if(B(k))return f(E,0,ve(k));break}}return z}function we(){const{currentType:k,offset:E,startLoc:z,endLoc:le}=o;return o.lastType=k,o.lastOffset=E,o.lastStartLoc=z,o.lastEndLoc=le,o.offset=r(),o.startLoc=s(),n.currentChar()===nr?f(o,13):pe(n,o)}return{nextToken:we,currentOffset:r,currentPosition:s,context:c}}const _w="parser",mw=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,vw=/\\([\\@{}|])/g;function gw(e,t){return t}function bw(e,t,i){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||i,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function yw(e={}){const t=e.location!==!1,{onError:i}=e;function n(v,C,y,g,...L){const x=v.currentPosition();if(x.offset+=g,x.column+=g,i){const $=t?vd(y,x):null,O=Eu(C,$,{domain:_w,args:L});i(O)}}function r(v,C,y){const g={type:v};return t&&(g.start=C,g.end=C,g.loc={start:y,end:y}),g}function s(v,C,y,g){t&&(v.end=C,v.loc&&(v.loc.end=y))}function a(v,C){const y=v.context(),g=r(3,y.offset,y.startLoc);return g.value=C.replace(vw,gw),s(g,v.currentOffset(),v.currentPosition()),g}function l(v,C){const y=v.context(),{lastOffset:g,lastStartLoc:L}=y,x=r(5,g,L);return x.index=parseInt(C,10),v.nextToken(),s(x,v.currentOffset(),v.currentPosition()),x}function o(v,C){const y=v.context(),{lastOffset:g,lastStartLoc:L}=y,x=r(4,g,L);return x.key=C,v.nextToken(),s(x,v.currentOffset(),v.currentPosition()),x}function c(v,C){const y=v.context(),{lastOffset:g,lastStartLoc:L}=y,x=r(9,g,L);return x.value=C.replace(mw,bw),v.nextToken(),s(x,v.currentOffset(),v.currentPosition()),x}function u(v){const C=v.nextToken(),y=v.context(),{lastOffset:g,lastStartLoc:L}=y,x=r(8,g,L);return C.type!==11?(n(v,vt.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),x.value="",s(x,g,L),{nextConsumeToken:C,node:x}):(C.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$n(C)),x.value=C.value||"",s(x,v.currentOffset(),v.currentPosition()),{node:x})}function d(v,C){const y=v.context(),g=r(7,y.offset,y.startLoc);return g.value=C,s(g,v.currentOffset(),v.currentPosition()),g}function f(v){const C=v.context(),y=r(6,C.offset,C.startLoc);let g=v.nextToken();if(g.type===8){const L=u(v);y.modifier=L.node,g=L.nextConsumeToken||v.nextToken()}switch(g.type!==9&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(g)),g=v.nextToken(),g.type===2&&(g=v.nextToken()),g.type){case 10:g.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(g)),y.key=d(v,g.value||"");break;case 4:g.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(g)),y.key=o(v,g.value||"");break;case 5:g.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(g)),y.key=l(v,g.value||"");break;case 6:g.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(g)),y.key=c(v,g.value||"");break;default:{n(v,vt.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const L=v.context(),x=r(7,L.offset,L.startLoc);return x.value="",s(x,L.offset,L.startLoc),y.key=x,s(y,L.offset,L.startLoc),{nextConsumeToken:g,node:y}}}return s(y,v.currentOffset(),v.currentPosition()),{node:y}}function h(v){const C=v.context(),y=C.currentType===1?v.currentOffset():C.offset,g=C.currentType===1?C.endLoc:C.startLoc,L=r(2,y,g);L.items=[];let x=null;do{const F=x||v.nextToken();switch(x=null,F.type){case 0:F.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(F)),L.items.push(a(v,F.value||""));break;case 5:F.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(F)),L.items.push(l(v,F.value||""));break;case 4:F.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(F)),L.items.push(o(v,F.value||""));break;case 6:F.value==null&&n(v,vt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,$n(F)),L.items.push(c(v,F.value||""));break;case 7:{const ie=f(v);L.items.push(ie.node),x=ie.nextConsumeToken||null;break}}}while(C.currentType!==13&&C.currentType!==1);const $=C.currentType===1?C.lastOffset:v.currentOffset(),O=C.currentType===1?C.lastEndLoc:v.currentPosition();return s(L,$,O),L}function m(v,C,y,g){const L=v.context();let x=g.items.length===0;const $=r(1,C,y);$.cases=[],$.cases.push(g);do{const O=h(v);x||(x=O.items.length===0),$.cases.push(O)}while(L.currentType!==13);return x&&n(v,vt.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),s($,v.currentOffset(),v.currentPosition()),$}function p(v){const C=v.context(),{offset:y,startLoc:g}=C,L=h(v);return C.currentType===13?L:m(v,y,g,L)}function b(v){const C=pw(v,oi({},e)),y=C.context(),g=r(0,y.offset,y.startLoc);return t&&g.loc&&(g.loc.source=v),g.body=p(C),e.onCacheKey&&(g.cacheKey=e.onCacheKey(v)),y.currentType!==13&&n(C,vt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,v[y.offset]||""),s(g,C.currentOffset(),C.currentPosition()),g}return{parse:b}}function $n(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 ww(e,t={}){const i={ast:e,helpers:new Set};return{context:()=>i,helper:s=>(i.helpers.add(s),s)}}function S6(e,t){for(let i=0;i<e.length;i++)C2(e[i],t)}function C2(e,t){switch(e.type){case 1:S6(e.cases,t),t.helper("plural");break;case 2:S6(e.items,t);break;case 6:{C2(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 Sw(e,t={}){const i=ww(e);i.helper("normalize"),e.body&&C2(e.body,i);const n=i.context();e.helpers=Array.from(n.helpers)}function Cw(e){const t=e.body;return t.type===2?C6(t):t.cases.forEach(i=>C6(i)),e}function C6(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 n=e.items[i];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=S2(t);for(let i=0;i<e.items.length;i++){const n=e.items[i];(n.type===3||n.type===9)&&delete n.value}}}}function Js(e){switch(e.t=e.type,e.type){case 0:{const t=e;Js(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,i=t.cases;for(let n=0;n<i.length;n++)Js(i[n]);t.c=i,delete t.cases;break}case 2:{const t=e,i=t.items;for(let n=0;n<i.length;n++)Js(i[n]);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;Js(t.key),t.k=t.key,delete t.key,t.modifier&&(Js(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 kw(e,t){const{filename:i,breakLineCode:n,needIndent:r}=t,s=t.location!==!1,a={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:r,indentLevel:0};s&&e.loc&&(a.source=e.loc.source);const l=()=>a;function o(p,b){a.code+=p}function c(p,b=!0){const v=b?n:"";o(r?v+" ".repeat(p):v)}function u(p=!0){const b=++a.indentLevel;p&&c(b)}function d(p=!0){const b=--a.indentLevel;p&&c(b)}function f(){c(a.indentLevel)}return{context:l,push:o,indent:u,deindent:d,newline:f,helper:p=>`_${p}`,needIndent:()=>a.needIndent}}function Aw(e,t){const{helper:i}=e;e.push(`${i("linked")}(`),da(e,t.key),t.modifier?(e.push(", "),da(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function $w(e,t){const{helper:i,needIndent:n}=e;e.push(`${i("normalize")}([`),e.indent(n());const r=t.items.length;for(let s=0;s<r&&(da(e,t.items[s]),s!==r-1);s++)e.push(", ");e.deindent(n()),e.push("])")}function Mw(e,t){const{helper:i,needIndent:n}=e;if(t.cases.length>1){e.push(`${i("plural")}([`),e.indent(n());const r=t.cases.length;for(let s=0;s<r&&(da(e,t.cases[s]),s!==r-1);s++)e.push(", ");e.deindent(n()),e.push("])")}}function Lw(e,t){t.body?da(e,t.body):e.push("null")}function da(e,t){const{helper:i}=e;switch(t.type){case 0:Lw(e,t);break;case 1:Mw(e,t);break;case 2:$w(e,t);break;case 6:Aw(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 Ew=(e,t={})=>{const i=De(t.mode)?t.mode:"normal",n=De(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:i==="arrow"?";":`
32
- `,s=t.needIndent?t.needIndent:i!=="arrow",a=e.helpers||[],l=kw(e,{filename:n,breakLineCode:r,needIndent:s});l.push(i==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${S2(a.map(u=>`${u}: _${u}`),", ")} } = ctx`),l.newline()),l.push("return "),da(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:o,map:c}=l.context();return{ast:e,code:o,map:c?c.toJSON():void 0}};function xw(e,t={}){const i=oi({},t),n=!!i.jit,r=!!i.minify,s=i.optimize==null?!0:i.optimize,l=yw(i).parse(e);return n?(s&&Cw(l),r&&Js(l),{ast:l,code:""}):(Sw(l,i),Ew(l,i))}/*!
33
- * core-base v11.3.0
34
- * (c) 2026 kazuya kawaguchi
35
- * Released under the MIT License.
36
- */function Hw(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ms().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ms().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Bn(e){return yt(e)&&k2(e)===0&&(hn(e,"b")||hn(e,"body"))}const Cv=["b","body"];function Tw(e){return as(e,Cv)}const kv=["c","cases"];function Nw(e){return as(e,kv,[])}const Av=["s","static"];function Pw(e){return as(e,Av)}const $v=["i","items"];function Ow(e){return as(e,$v,[])}const Mv=["t","type"];function k2(e){return as(e,Mv)}const Lv=["v","value"];function D0(e,t){const i=as(e,Lv);if(i!=null)return i;throw Go(t)}const Ev=["m","modifier"];function Rw(e){return as(e,Ev)}const xv=["k","key"];function Iw(e){const t=as(e,xv);if(t)return t;throw Go(6)}function as(e,t,i){for(let n=0;n<t.length;n++){const r=t[n];if(hn(e,r)&&e[r]!=null)return e[r]}return i}const Hv=[...Cv,...kv,...Av,...$v,...xv,...Ev,...Lv,...Mv];function Go(e){return new Error(`unhandled node type: ${e}`)}function v1(e){return i=>Vw(i,e)}function Vw(e,t){const i=Tw(t);if(i==null)throw Go(0);if(k2(i)===1){const s=Nw(i);return e.plural(s.reduce((a,l)=>[...a,k6(e,l)],[]))}else return k6(e,i)}function k6(e,t){const i=Pw(t);if(i!=null)return e.type==="text"?i:e.normalize([i]);{const n=Ow(t).reduce((r,s)=>[...r,gd(e,s)],[]);return e.normalize(n)}}function gd(e,t){const i=k2(t);switch(i){case 3:return D0(t,i);case 9:return D0(t,i);case 4:{const n=t;if(hn(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(hn(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw Go(i)}case 5:{const n=t;if(hn(n,"i")&&ei(n.i))return e.interpolate(e.list(n.i));if(hn(n,"index")&&ei(n.index))return e.interpolate(e.list(n.index));throw Go(i)}case 6:{const n=t,r=Rw(n),s=Iw(n);return e.linked(gd(e,s),r?gd(e,r):void 0,e.type)}case 7:return D0(t,i);case 8:return D0(t,i);default:throw new Error(`unhandled node on format message part: ${i}`)}}const Dw=e=>e;let Z0=kt();function Zw(e,t={}){let i=!1;const n=t.onError||lw;return t.onError=r=>{i=!0,n(r)},{...xw(e,t),detectError:i}}function Bw(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&De(e)){dt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||Dw)(e),r=Z0[n];if(r)return r;const{ast:s,detectError:a}=Zw(e,{...t,location:!1,jit:!0}),l=v1(s);return a?l:Z0[n]=l}else{const i=e.cacheKey;if(i){const n=Z0[i];return n||(Z0[i]=v1(e))}else return v1(e)}}let Yo=null;function Fw(e){Yo=e}function zw(e,t,i){Yo&&Yo.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:i})}const Uw=Ww("function:translate");function Ww(e){return t=>Yo&&Yo.emit(e,t)}const hr={INVALID_ARGUMENT:aw,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},jw=24;function fr(e){return Eu(e,null,void 0)}function A2(e,t){return t.locale!=null?A6(t.locale):A6(e.locale)}let g1;function A6(e){if(De(e))return e;if(It(e)){if(e.resolvedOnce&&g1!=null)return g1;if(e.constructor.name==="Function"){const t=e();if(nw(t))throw fr(hr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return g1=t}else throw fr(hr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw fr(hr.NOT_SUPPORT_LOCALE_TYPE)}function Kw(e,t,i){return[...new Set([i,...jt(t)?t:yt(t)?Object.keys(t):De(t)?[t]:[i]])]}function bd(e,t,i){const n=De(i)?i:Xo,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(n);if(!s){s=[];let a=[i];for(;jt(a);)a=$6(s,a,t);const l=jt(t)||!ot(t)?t:t.default?t.default:null;a=De(l)?[l]:l,jt(a)&&$6(s,a,!1),r.__localeChainCache.set(n,s)}return s}function $6(e,t,i){let n=!0;for(let r=0;r<t.length&&dt(n);r++){const s=t[r];De(s)&&(n=qw(e,t[r],i))}return n}function qw(e,t,i){let n;const r=t.split("-");do{const s=r.join("-");n=Gw(e,s,i),r.splice(-1,1)}while(r.length&&n===!0);return n}function Gw(e,t,i){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(jt(i)||ot(i))&&i[r]&&(n=i[r])}return n}const ls=[];ls[0]={w:[0],i:[3,0],"[":[4],o:[7]};ls[1]={w:[1],".":[2],"[":[4],o:[7]};ls[2]={w:[2],i:[3,0],0:[3,0]};ls[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ls[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ls[5]={"'":[4,0],o:8,l:[5,0]};ls[6]={'"':[4,0],o:8,l:[6,0]};const Yw=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Xw(e){return Yw.test(e)}function Jw(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 Qw(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 e9(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Xw(t)?Jw(t):"*"+t}function t9(e){const t=[];let i=-1,n=0,r=0,s,a,l,o,c,u,d;const f=[];f[0]=()=>{a===void 0?a=l:a+=l},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,n=4,f[0]();else{if(r=0,a===void 0||(a=e9(a),a===!1))return!1;f[1]()}};function h(){const m=e[i+1];if(n===5&&m==="'"||n===6&&m==='"')return i++,l="\\"+m,f[0](),!0}for(;n!==null;)if(i++,s=e[i],!(s==="\\"&&h())){if(o=Qw(s),d=ls[n],c=d[o]||d.l||8,c===8||(n=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(l=s,u()===!1))))return;if(n===7)return t}}const M6=new Map;function i9(e,t){return yt(e)?e[t]:null}function n9(e,t){if(!yt(e))return null;let i=M6.get(t);if(i||(i=t9(t),i&&M6.set(t,i)),!i)return null;const n=i.length;let r=e,s=0;for(;s<n;){const a=i[s];if(Hv.includes(a)&&Bn(r)||!yt(r)||!hn(r,a))return null;const l=r[a];if(l===void 0||It(r))return null;r=l,s++}return r}const r9="11.3.0",xu=-1,Xo="en-US",Vc="",L6=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function s9(){return{upper:(e,t)=>t==="text"&&De(e)?e.toUpperCase():t==="vnode"&&yt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&De(e)?e.toLowerCase():t==="vnode"&&yt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&De(e)?L6(e):t==="vnode"&&yt(e)&&"__v_isVNode"in e?L6(e.children):e}}let Tv;function a9(e){Tv=e}let Nv;function l9(e){Nv=e}let Pv;function o9(e){Pv=e}let Ov=null;const c9=e=>{Ov=e},u9=()=>Ov;let Rv=null;const E6=e=>{Rv=e},d9=()=>Rv;let x6=0;function h9(e={}){const t=It(e.onWarn)?e.onWarn:X7,i=De(e.version)?e.version:r9,n=De(e.locale)||It(e.locale)?e.locale:Xo,r=It(n)?Xo:n,s=jt(e.fallbackLocale)||ot(e.fallbackLocale)||De(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=ot(e.messages)?e.messages:b1(r),l=ot(e.datetimeFormats)?e.datetimeFormats:b1(r),o=ot(e.numberFormats)?e.numberFormats:b1(r),c=oi(kt(),e.modifiers,s9()),u=e.pluralRules||kt(),d=It(e.missing)?e.missing:null,f=dt(e.missingWarn)||ua(e.missingWarn)?e.missingWarn:!0,h=dt(e.fallbackWarn)||ua(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,p=!!e.unresolving,b=It(e.postTranslation)?e.postTranslation:null,v=ot(e.processor)?e.processor:null,C=dt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,g=It(e.messageCompiler)?e.messageCompiler:Tv,L=It(e.messageResolver)?e.messageResolver:Nv||i9,x=It(e.localeFallbacker)?e.localeFallbacker:Pv||Kw,$=yt(e.fallbackContext)?e.fallbackContext:void 0,O=e,F=yt(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,ie=yt(O.__numberFormatters)?O.__numberFormatters:new Map,B=yt(O.__meta)?O.__meta:{};x6++;const A={version:i,cid:x6,locale:n,fallbackLocale:s,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:p,postTranslation:b,processor:v,warnHtmlMessage:C,escapeParameter:y,messageCompiler:g,messageResolver:L,localeFallbacker:x,fallbackContext:$,onWarn:t,__meta:B};return A.datetimeFormats=l,A.numberFormats=o,A.__datetimeFormatters=F,A.__numberFormatters=ie,__INTLIFY_PROD_DEVTOOLS__&&zw(A,i,B),A}const b1=e=>({[e]:kt()});function $2(e,t,i,n,r){const{missing:s,onWarn:a}=e;if(s!==null){const l=s(e,i,t,r);return De(l)?l:t}else return t}function so(e,t,i){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,i,t)}function f9(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function p9(e,t){const i=t.indexOf(e);if(i===-1)return!1;for(let n=i+1;n<t.length;n++)if(f9(e,t[n]))return!0;return!1}function H6(e,...t){const{datetimeFormats:i,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:a}=e,{__datetimeFormatters:l}=e;if(!De(t[0])&&!wv(t[0])&&!ei(t[0]))return Vc;const[o,c,u,d]=yd(...t),f=dt(u.missingWarn)?u.missingWarn:e.missingWarn;dt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,m=A2(e,u),p=a(e,r,m);if(!De(o)||o==="")return new Intl.DateTimeFormat(m.replace(/!/g,""),d).format(c);let b={},v,C=null;const y="datetime format";for(let x=0;x<p.length&&(v=p[x],b=i[v]||{},C=b[o],!ot(C));x++)$2(e,o,v,f,y);if(!ot(C)||!De(v))return n?xu:o;let g=`${v}__${o}`;Lu(d)||(g=`${g}__${JSON.stringify(d)}`);let L=l.get(g);return L||(L=new Intl.DateTimeFormat(v,oi({},C,d)),l.set(g,L)),h?L.formatToParts(c):L.format(c)}const Iv=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function yd(...e){const[t,i,n,r]=e,s=kt();let a=kt(),l;if(De(t)){const o=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!o)throw fr(hr.INVALID_ISO_DATE_ARGUMENT);const c=o[3]?o[3].trim().startsWith("T")?`${o[1].trim()}${o[3].trim()}`:`${o[1].trim()}T${o[3].trim()}`:o[1].trim();l=new Date(c);try{l.toISOString()}catch{throw fr(hr.INVALID_ISO_DATE_ARGUMENT)}}else if(wv(t)){if(isNaN(t.getTime()))throw fr(hr.INVALID_DATE_ARGUMENT);l=t}else if(ei(t))l=t;else throw fr(hr.INVALID_ARGUMENT);return De(i)?s.key=i:ot(i)&&Object.keys(i).forEach(o=>{Iv.includes(o)?a[o]=i[o]:s[o]=i[o]}),De(n)?s.locale=n:ot(n)&&(a=n),ot(r)&&(a=r),[s.key||"",l,s,a]}function T6(e,t,i){const n=e;for(const r in i){const s=`${t}__${r}`;n.__datetimeFormatters.has(s)&&n.__datetimeFormatters.delete(s)}}function N6(e,...t){const{numberFormats:i,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:a}=e,{__numberFormatters:l}=e;if(!ei(t[0]))return Vc;const[o,c,u,d]=wd(...t),f=dt(u.missingWarn)?u.missingWarn:e.missingWarn;dt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,m=A2(e,u),p=a(e,r,m);if(!De(o)||o==="")return new Intl.NumberFormat(m.replace(/!/g,""),d).format(c);let b={},v,C=null;const y="number format";for(let x=0;x<p.length&&(v=p[x],b=i[v]||{},C=b[o],!ot(C));x++)$2(e,o,v,f,y);if(!ot(C)||!De(v))return n?xu:o;let g=`${v}__${o}`;Lu(d)||(g=`${g}__${JSON.stringify(d)}`);let L=l.get(g);return L||(L=new Intl.NumberFormat(v,oi({},C,d)),l.set(g,L)),h?L.formatToParts(c):L.format(c)}const Vv=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function wd(...e){const[t,i,n,r]=e,s=kt();let a=kt();if(!ei(t))throw fr(hr.INVALID_ARGUMENT);const l=t;return De(i)?s.key=i:ot(i)&&Object.keys(i).forEach(o=>{Vv.includes(o)?a[o]=i[o]:s[o]=i[o]}),De(n)?s.locale=n:ot(n)&&(a=n),ot(r)&&(a=r),[s.key||"",l,s,a]}function P6(e,t,i){const n=e;for(const r in i){const s=`${t}__${r}`;n.__numberFormatters.has(s)&&n.__numberFormatters.delete(s)}}const _9=e=>e,m9=e=>"",v9="text",g9=e=>e.length===0?"":S2(e),b9=rw;function y1(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function y9(e){var i,n;const t=ei(e.pluralIndex)?e.pluralIndex:-1;return ei((i=e.named)==null?void 0:i.count)?e.named.count:ei((n=e.named)==null?void 0:n.n)?e.named.n:t}function w9(e={}){var v,C,y,g;const t=e.locale,i=y9(e),n=De(t)&&It((v=e.pluralRules)==null?void 0:v[t])?e.pluralRules[t]:y1,r=n===y1?void 0:y1,s=L=>L[n(i,L.length,r)],a=e.list||[],l=L=>a[L],o=e.named||kt();ei(e.pluralIndex)&&(o.count||(o.count=e.pluralIndex),o.n||(o.n=e.pluralIndex));const c=L=>o[L];function u(L,x){const $=It(e.messages)?e.messages(L,!!x):yt(e.messages)?e.messages[L]:!1;return $||(e.parent?e.parent.message(L):m9)}const d=L=>e.modifiers?e.modifiers[L]:_9,f=It((C=e.processor)==null?void 0:C.normalize)?e.processor.normalize:g9,h=It((y=e.processor)==null?void 0:y.interpolate)?e.processor.interpolate:b9,m=De((g=e.processor)==null?void 0:g.type)?e.processor.type:v9,b={list:l,named:c,plural:s,linked:(L,...x)=>{const[$,O]=x;let F="text",ie="";x.length===1?yt($)?(ie=$.modifier||ie,F=$.type||F):De($)&&(ie=$||ie):x.length===2&&(De($)&&(ie=$||ie),De(O)&&(F=O||F));const B=u(L,!0)(b),A=B===""||B===void 0?L:B,H=F==="vnode"&&jt(A)&&ie?A[0]:A;return ie?d(ie)(H,F):H},message:u,type:m,interpolate:h,normalize:f,values:oi(kt(),a,o)};return b}const O6=()=>"",dn=e=>It(e);function R6(e,...t){const{fallbackFormat:i,postTranslation:n,unresolving:r,messageCompiler:s,fallbackLocale:a,messages:l}=e,[o,c]=Sd(...t),u=dt(c.missingWarn)?c.missingWarn:e.missingWarn,d=dt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=dt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,m=De(c.default)||dt(c.default)?dt(c.default)?s?o:()=>o:c.default:i?s?o:()=>o:null,p=i||m!=null&&(De(m)||It(m)),b=A2(e,c);f&&S9(c);let[v,C,y]=h?[o,b,l[b]||kt()]:Dv(e,o,b,a,d,u),g=v,L=o;if(!h&&!(De(g)||Bn(g)||dn(g))&&p&&(g=m,L=g),!h&&(!(De(g)||Bn(g)||dn(g))||!De(C)))return r?xu:o;let x=!1;const $=()=>{x=!0},O=dn(g)?g:Zv(e,o,C,g,L,$);if(x)return g;const F=A9(e,C,y,c),ie=w9(F),B=C9(e,O,ie);let A=n?n(B,o):B;if(f&&De(A)&&(A=tw(A)),__INTLIFY_PROD_DEVTOOLS__){const H={timestamp:Date.now(),key:De(o)?o:dn(g)?g.key:"",locale:C||(dn(g)?g.locale:""),format:De(g)?g:dn(g)?g.source:"",message:A};H.meta=oi({},e.__meta,u9()||{}),Uw(H)}return A}function S9(e){jt(e.list)?e.list=e.list.map(t=>De(t)?b6(t):t):yt(e.named)&&Object.keys(e.named).forEach(t=>{De(e.named[t])&&(e.named[t]=b6(e.named[t]))})}function Dv(e,t,i,n,r,s){const{messages:a,onWarn:l,messageResolver:o,localeFallbacker:c}=e,u=c(e,n,i);let d=kt(),f,h=null;const m="translate";for(let p=0;p<u.length&&(f=u[p],d=a[f]||kt(),(h=o(d,t))===null&&(h=d[t]),!(De(h)||Bn(h)||dn(h)));p++)if(!p9(f,u)){const b=$2(e,t,f,s,m);b!==t&&(h=b)}return[h,f,d]}function Zv(e,t,i,n,r,s){const{messageCompiler:a,warnHtmlMessage:l}=e;if(dn(n)){const c=n;return c.locale=c.locale||i,c.key=c.key||t,c}if(a==null){const c=()=>n;return c.locale=i,c.key=t,c}const o=a(n,k9(e,i,r,n,l,s));return o.locale=i,o.key=t,o.source=n,o}function C9(e,t,i){return t(i)}function Sd(...e){const[t,i,n]=e,r=kt();if(!De(t)&&!ei(t)&&!dn(t)&&!Bn(t))throw fr(hr.INVALID_ARGUMENT);const s=ei(t)?String(t):(dn(t),t);return ei(i)?r.plural=i:De(i)?r.default=i:ot(i)&&!Lu(i)?r.named=i:jt(i)&&(r.list=i),ei(n)?r.plural=n:De(n)?r.default=n:ot(n)&&oi(r,n),[s,r]}function k9(e,t,i,n,r,s){return{locale:t,key:i,warnHtmlMessage:r,onError:a=>{throw s&&s(a),a},onCacheKey:a=>J7(t,i,a)}}function A9(e,t,i,n){const{modifiers:r,pluralRules:s,messageResolver:a,fallbackLocale:l,fallbackWarn:o,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:r,pluralRules:s,messages:(h,m)=>{let p=a(i,h);if(p==null&&(u||m)){const[,,b]=Dv(u||e,h,t,l,o,c);p=a(b,h)}if(De(p)||Bn(p)){let b=!1;const C=Zv(e,h,t,p,h,()=>{b=!0});return b?O6:C}else return dn(p)?p:O6}};return e.processor&&(f.processor=e.processor),n.list&&(f.list=n.list),n.named&&(f.named=n.named),ei(n.plural)&&(f.pluralIndex=n.plural),f}Hw();/*!
37
- * vue-i18n v11.3.0
38
- * (c) 2026 kazuya kawaguchi
39
- * Released under the MIT License.
40
- */const $9="11.3.0";function M9(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ms().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ms().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ms().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ms().__INTLIFY_PROD_DEVTOOLS__=!1)}const zi={UNEXPECTED_RETURN_TYPE:jw,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 tn(e,...t){return Eu(e,null,void 0)}const Cd=ss("__translateVNode"),kd=ss("__datetimeParts"),Ad=ss("__numberParts"),Bv=ss("__setPluralRules"),Fv=ss("__injectWithOption"),$d=ss("__dispose");function Jo(e){if(!yt(e)||Bn(e))return e;for(const t in e)if(hn(e,t))if(!t.includes("."))yt(e[t])&&Jo(e[t]);else{const i=t.split("."),n=i.length-1;let r=e,s=!1;for(let a=0;a<n;a++){if(i[a]==="__proto__")throw new Error(`unsafe key: ${i[a]}`);if(i[a]in r||(r[i[a]]=kt()),!yt(r[i[a]])){s=!0;break}r=r[i[a]]}if(s||(Bn(r)?Hv.includes(i[n])||delete e[t]:(r[i[n]]=e[t],delete e[t])),!Bn(r)){const a=r[i[n]];yt(a)&&Jo(a)}}return e}function M2(e,t){const{messages:i,__i18n:n,messageResolver:r,flatJson:s}=t,a=ot(i)?i:jt(n)?kt():{[e]:kt()};if(jt(n)&&n.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:o,resource:c}=l;o?(a[o]=a[o]||kt(),uc(c,a[o])):uc(c,a)}else De(l)&&uc(JSON.parse(l),a)}),r==null&&s)for(const l in a)hn(a,l)&&Jo(a[l]);return a}function zv(e){return e.type}function Uv(e,t,i){let n=yt(t.messages)?t.messages:kt();"__i18nGlobal"in i&&(n=M2(e.locale.value,{messages:n,__i18n:i.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,n[s])});{if(yt(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(yt(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function I6(e){return Y(rs,null,e,0)}function Qo(){return _i()}const V6="__INTLIFY_META__",D6=()=>[],L9=()=>!1;let Z6=0;function B6(e){return(t,i,n,r)=>e(i,n,Qo()||void 0,r)}const E9=()=>{const e=Qo();let t=null;return e&&(t=zv(e)[V6])?{[V6]:t}:null};function L2(e={}){const{__root:t,__injectWithOption:i}=e,n=t===void 0,r=e.flatJson,s=Ic?G:Gn;let a=dt(e.inheritLocale)?e.inheritLocale:!0;const l=s(t&&a?t.locale.value:De(e.locale)?e.locale:Xo),o=s(t&&a?t.fallbackLocale.value:De(e.fallbackLocale)||jt(e.fallbackLocale)||ot(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=s(M2(l.value,e)),u=s(ot(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),d=s(ot(e.numberFormats)?e.numberFormats:{[l.value]:{}});let f=t?t.missingWarn:dt(e.missingWarn)||ua(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:dt(e.fallbackWarn)||ua(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:dt(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,b=It(e.missing)?e.missing:null,v=It(e.missing)?B6(e.missing):null,C=It(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:dt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const L=t?t.modifiers:ot(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,$;$=(()=>{n&&E6(null);const W={version:$9,locale:l.value,fallbackLocale:o.value,messages:c.value,modifiers:L,pluralRules:x,missing:v===null?void 0:v,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:y,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=u.value,W.numberFormats=d.value,W.__datetimeFormatters=ot($)?$.__datetimeFormatters:void 0,W.__numberFormatters=ot($)?$.__numberFormatters:void 0;const ne=h9(W);return n&&E6(ne),ne})(),so($,l.value,o.value);function F(){return[l.value,o.value,c.value,u.value,d.value]}const ie=U({get:()=>l.value,set:W=>{$.locale=W,l.value=W}}),B=U({get:()=>o.value,set:W=>{$.fallbackLocale=W,o.value=W,so($,l.value,W)}}),A=U(()=>c.value),H=U(()=>u.value),I=U(()=>d.value);function D(){return It(C)?C:null}function q(W){C=W,$.postTranslation=W}function re(){return b}function ae(W){W!==null&&(v=B6(W)),b=W,$.missing=v}const ge=(W,ne,Se,Me,Re,Ke)=>{F();let Ge;try{__INTLIFY_PROD_DEVTOOLS__,n||($.fallbackContext=t?d9():void 0),Ge=W($)}finally{__INTLIFY_PROD_DEVTOOLS__,n||($.fallbackContext=void 0)}if(Se!=="translate exists"&&ei(Ge)&&Ge===xu||Se==="translate exists"&&!Ge){const[pt,_t]=ne();return t&&m?Me(t):Re(pt)}else{if(Ke(Ge))return Ge;throw tn(zi.UNEXPECTED_RETURN_TYPE)}};function xe(...W){return ge(ne=>Reflect.apply(R6,null,[ne,...W]),()=>Sd(...W),"translate",ne=>Reflect.apply(ne.t,ne,[...W]),ne=>ne,ne=>De(ne))}function J(...W){const[ne,Se,Me]=W;if(Me&&!yt(Me))throw tn(zi.INVALID_ARGUMENT);return xe(ne,Se,oi({resolvedMessage:!0},Me||{}))}function ve(...W){return ge(ne=>Reflect.apply(H6,null,[ne,...W]),()=>yd(...W),"datetime format",ne=>Reflect.apply(ne.d,ne,[...W]),()=>Vc,ne=>De(ne)||jt(ne))}function fe(...W){return ge(ne=>Reflect.apply(N6,null,[ne,...W]),()=>wd(...W),"number format",ne=>Reflect.apply(ne.n,ne,[...W]),()=>Vc,ne=>De(ne)||jt(ne))}function he(W){return W.map(ne=>De(ne)||ei(ne)||dt(ne)?I6(String(ne)):ne)}const ue={normalize:he,interpolate:W=>W,type:"vnode"};function j(...W){return ge(ne=>{let Se;const Me=ne;try{Me.processor=ue,Se=Reflect.apply(R6,null,[Me,...W])}finally{Me.processor=null}return Se},()=>Sd(...W),"translate",ne=>ne[Cd](...W),ne=>[I6(ne)],ne=>jt(ne))}function K(...W){return ge(ne=>Reflect.apply(N6,null,[ne,...W]),()=>wd(...W),"number format",ne=>ne[Ad](...W),D6,ne=>De(ne)||jt(ne))}function se(...W){return ge(ne=>Reflect.apply(H6,null,[ne,...W]),()=>yd(...W),"datetime format",ne=>ne[kd](...W),D6,ne=>De(ne)||jt(ne))}function Q(W){x=W,$.pluralRules=x}function S(W,ne){return ge(()=>{if(!W)return!1;const Se=De(ne)?ne:l.value,Me=De(ne)?[Se]:bd($,o.value,Se);for(let Re=0;Re<Me.length;Re++){const Ke=ee(Me[Re]);let Ge=$.messageResolver(Ke,W);if(Ge===null&&(Ge=Ke[W]),Bn(Ge)||dn(Ge)||De(Ge))return!0}return!1},()=>[W],"translate exists",Se=>Reflect.apply(Se.te,Se,[W,ne]),L9,Se=>dt(Se))}function T(W){let ne=null;const Se=bd($,o.value,l.value);for(let Me=0;Me<Se.length;Me++){const Re=c.value[Se[Me]]||{},Ke=$.messageResolver(Re,W);if(Ke!=null){ne=Ke;break}}return ne}function V(W){const ne=T(W);return ne??(t?t.tm(W)||{}:{})}function ee(W){return c.value[W]||{}}function de(W,ne){if(r){const Se={[W]:ne};for(const Me in Se)hn(Se,Me)&&Jo(Se[Me]);ne=Se[W]}c.value[W]=ne,$.messages=c.value}function pe(W,ne){c.value[W]=c.value[W]||{};const Se={[W]:ne};if(r)for(const Me in Se)hn(Se,Me)&&Jo(Se[Me]);ne=Se[W],uc(ne,c.value[W]),$.messages=c.value}function we(W){return u.value[W]||{}}function k(W,ne){u.value[W]=ne,$.datetimeFormats=u.value,T6($,W,ne)}function E(W,ne){u.value[W]=oi(u.value[W]||{},ne),$.datetimeFormats=u.value,T6($,W,ne)}function z(W){return d.value[W]||{}}function le(W,ne){d.value[W]=ne,$.numberFormats=d.value,P6($,W,ne)}function P(W,ne){d.value[W]=oi(d.value[W]||{},ne),$.numberFormats=d.value,P6($,W,ne)}Z6++,t&&Ic&&(Oe(t.locale,W=>{a&&(l.value=W,$.locale=W,so($,l.value,o.value))}),Oe(t.fallbackLocale,W=>{a&&(o.value=W,$.fallbackLocale=W,so($,l.value,o.value))}));const N={id:Z6,locale:ie,fallbackLocale:B,get inheritLocale(){return a},set inheritLocale(W){a=W,W&&t&&(l.value=t.locale.value,o.value=t.fallbackLocale.value,so($,l.value,o.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:A,get modifiers(){return L},get pluralRules(){return x||{}},get isGlobal(){return n},get missingWarn(){return f},set missingWarn(W){f=W,$.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(W){h=W,$.fallbackWarn=h},get fallbackRoot(){return m},set fallbackRoot(W){m=W},get fallbackFormat(){return p},set fallbackFormat(W){p=W,$.fallbackFormat=p},get warnHtmlMessage(){return y},set warnHtmlMessage(W){y=W,$.warnHtmlMessage=W},get escapeParameter(){return g},set escapeParameter(W){g=W,$.escapeParameter=W},t:xe,getLocaleMessage:ee,setLocaleMessage:de,mergeLocaleMessage:pe,getPostTranslationHandler:D,setPostTranslationHandler:q,getMissingHandler:re,setMissingHandler:ae,[Bv]:Q};return N.datetimeFormats=H,N.numberFormats=I,N.rt=J,N.te=S,N.tm=V,N.d=ve,N.n=fe,N.getDateTimeFormat=we,N.setDateTimeFormat=k,N.mergeDateTimeFormat=E,N.getNumberFormat=z,N.setNumberFormat=le,N.mergeNumberFormat=P,N[Fv]=i,N[Cd]=j,N[kd]=se,N[Ad]=K,N}function x9(e){const t=De(e.locale)?e.locale:Xo,i=De(e.fallbackLocale)||jt(e.fallbackLocale)||ot(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=It(e.missing)?e.missing:void 0,r=dt(e.silentTranslationWarn)||ua(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=dt(e.silentFallbackWarn)||ua(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=dt(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,o=ot(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=It(e.postTranslation)?e.postTranslation:void 0,d=De(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=dt(e.sync)?e.sync:!0;let m=e.messages;if(ot(e.sharedMessages)){const L=e.sharedMessages;m=Object.keys(L).reduce(($,O)=>{const F=$[O]||($[O]={});return oi(F,L[O]),$},m||{})}const{__i18n:p,__root:b,__injectWithOption:v}=e,C=e.datetimeFormats,y=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:i,messages:m,flatJson:g,datetimeFormats:C,numberFormats:y,missing:n,missingWarn:r,fallbackWarn:s,fallbackRoot:a,fallbackFormat:l,modifiers:o,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:p,__root:b,__injectWithOption:v}}function Md(e={}){const t=L2(x9(e)),{__extender:i}=e,n={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},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(r){t.setMissingHandler(r)},get silentTranslationWarn(){return dt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=dt(r)?!r:r},get silentFallbackWarn(){return dt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=dt(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,s){return t.te(r,s)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,s){t.setLocaleMessage(r,s)},mergeLocaleMessage(r,s){t.mergeLocaleMessage(r,s)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,s){t.setDateTimeFormat(r,s)},mergeDateTimeFormat(r,s){t.mergeDateTimeFormat(r,s)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,s){t.setNumberFormat(r,s)},mergeNumberFormat(r,s){t.mergeNumberFormat(r,s)}};return n.__extender=i,n}function H9(e,t,i){return{beforeCreate(){const n=Qo();if(!n)throw tn(zi.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=t,this===this.$root)this.$i18n=F6(e,s);else{s.__injectWithOption=!0,s.__extender=i.__vueI18nExtend,this.$i18n=Md(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=F6(e,r);else{this.$i18n=Md({__i18n:r.__i18n,__injectWithOption:!0,__extender:i.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Uv(t,r,r),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),i.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Qo();if(!n)throw tn(zi.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),i.__deleteInstance(n),delete this.$i18n}}}function F6(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[Bv](t.pluralizationRules||e.pluralizationRules);const i=M2(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(i).forEach(n=>e.mergeLocaleMessage(n,i[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const E2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function T9({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,r)=>[...n,...r.type===ye?r.children:[r]],[]):t.reduce((i,n)=>{const r=e[n];return r&&(i[n]=r()),i},kt())}function Wv(){return ye}const N9=Pe({name:"i18n-t",props:oi({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ei(e)||!isNaN(e)}},E2),setup(e,t){const{slots:i,attrs:n}=t,r=e.i18n||x2({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(i).filter(d=>d[0]!=="_"),a=kt();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=De(e.plural)?+e.plural:e.plural);const l=T9(t,s),o=r[Cd](e.keypath,l,a),c=oi(kt(),n),u=De(e.tag)||yt(e.tag)?e.tag:Wv();return He(u,c,o)}}}),z6=N9;function P9(e){return jt(e)&&!De(e[0])}function jv(e,t,i,n){const{slots:r,attrs:s}=t;return()=>{const a={part:!0};let l=kt();e.locale&&(a.locale=e.locale),De(e.format)?a.key=e.format:yt(e.format)&&(De(e.format.key)&&(a.key=e.format.key),l=Object.keys(e.format).reduce((f,h)=>i.includes(h)?oi(kt(),f,{[h]:e.format[h]}):f,kt()));const o=n(e.value,a,l);let c=[a.key];jt(o)?c=o.map((f,h)=>{const m=r[f.type],p=m?m({[f.type]:f.value,index:h,parts:o}):[f.value];return P9(p)&&(p[0].key=`${f.type}-${h}`),p}):De(o)&&(c=[o]);const u=oi(kt(),s),d=De(e.tag)||yt(e.tag)?e.tag:Wv();return He(d,u,c)}}const O9=Pe({name:"i18n-n",props:oi({value:{type:Number,required:!0},format:{type:[String,Object]}},E2),setup(e,t){const i=e.i18n||x2({useScope:e.scope,__useComponent:!0});return jv(e,t,Vv,(...n)=>i[Ad](...n))}}),U6=O9;function R9(e,t){const i=e;if(e.mode==="composition")return i.__getInstance(t)||e.global;{const n=i.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function I9(e){const t=a=>{const{instance:l,value:o}=a;if(!l||!l.$)throw tn(zi.UNEXPECTED_ERROR);const c=R9(e,l.$),u=W6(o);return[Reflect.apply(c.t,c,[...j6(u)]),c]};return{created:(a,l)=>{const[o,c]=t(l);Ic&&(a.__i18nWatcher=Oe(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=c,a.textContent=o},unmounted:a=>{Ic&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const o=a.__composer,c=W6(l);a.textContent=Reflect.apply(o.t,o,[...j6(c)])}},getSSRProps:a=>{const[l]=t(a);return{textContent:l}}}}function W6(e){if(De(e))return{path:e};if(ot(e)){if(!("path"in e))throw tn(zi.REQUIRED_VALUE,"path");return e}else throw tn(zi.INVALID_VALUE)}function j6(e){const{path:t,locale:i,args:n,choice:r,plural:s}=e,a={},l=n||{};return De(i)&&(a.locale=i),ei(r)&&(a.plural=r),ei(s)&&(a.plural=s),[t,l,a]}function V9(e,t,...i){const n=ot(i[0])?i[0]:{};(dt(n.globalInstall)?n.globalInstall:!0)&&([z6.name,"I18nT"].forEach(s=>e.component(s,z6)),[U6.name,"I18nN"].forEach(s=>e.component(s,U6)),[q6.name,"I18nD"].forEach(s=>e.component(s,q6))),e.directive("t",I9(t))}const D9=ss("global-vue-i18n");function Z9(e={}){const t=__VUE_I18N_LEGACY_API__&&dt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=dt(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,s]=B9(e,t),a=ss("");function l(d){return n.get(d)||null}function o(d,f){n.set(d,f)}function c(d){n.delete(d)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(d,...f){if(d.__VUE_I18N_SYMBOL__=a,d.provide(d.__VUE_I18N_SYMBOL__,u),ot(f[0])){const p=f[0];u.__composerExtend=p.__composerExtend,u.__vueI18nExtend=p.__vueI18nExtend}let h=null;!t&&i&&(h=G9(d,u.global)),__VUE_I18N_FULL_INSTALL__&&V9(d,u,...f),__VUE_I18N_LEGACY_API__&&t&&d.mixin(H9(s,s.__composer,u));const m=d.unmount;d.unmount=()=>{h&&h(),u.dispose(),m()}},get global(){return s},dispose(){r.stop()},__instances:n,__getInstance:l,__setInstance:o,__deleteInstance:c};return u}function x2(e={}){const t=Qo();if(t==null)throw tn(zi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw tn(zi.NOT_INSTALLED);const i=F9(t),n=U9(i),r=zv(t),s=z9(e,r);if(s==="global")return Uv(n,e,r),n;if(s==="parent"){let o=W9(i,t,e.__useComponent);return o==null&&(o=n),o}const a=i;let l=a.__getInstance(t);if(l==null){const o=oi({},e);"__i18n"in r&&(o.__i18n=r.__i18n),n&&(o.__root=n),l=L2(o),a.__composerExtend&&(l[$d]=a.__composerExtend(l)),K9(a,t,l),a.__setInstance(t,l)}return l}function B9(e,t){const i=i2(),n=__VUE_I18N_LEGACY_API__&&t?i.run(()=>Md(e)):i.run(()=>L2(e));if(n==null)throw tn(zi.UNEXPECTED_ERROR);return[i,n]}function F9(e){const t=Pt(e.isCE?D9:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw tn(e.isCE?zi.NOT_INSTALLED_WITH_PROVIDE:zi.UNEXPECTED_ERROR);return t}function z9(e,t){return Lu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function U9(e){return e.mode==="composition"?e.global:e.global.__composer}function W9(e,t,i=!1){let n=null;const r=t.root;let s=j9(t,i);for(;s!=null;){const a=e;if(e.mode==="composition")n=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=a.__getInstance(s);l!=null&&(n=l.__composer,i&&n&&!n[Fv]&&(n=null))}if(n!=null||r===s)break;s=s.parent}return n}function j9(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function K9(e,t,i){at(()=>{},t),Ei(()=>{const n=i;e.__deleteInstance(t);const r=n[$d];r&&(r(),delete n[$d])},t)}const q9=["locale","fallbackLocale","availableLocales"],K6=["t","rt","d","n","tm","te"];function G9(e,t){const i=Object.create(null);return q9.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s)throw tn(zi.UNEXPECTED_ERROR);const a=Vt(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(i,r,a)}),e.config.globalProperties.$i18n=i,K6.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw tn(zi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,K6.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Y9=Pe({name:"i18n-d",props:oi({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},E2),setup(e,t){const i=e.i18n||x2({useScope:e.scope,__useComponent:!0});return jv(e,t,Iv,(...n)=>i[kd](...n))}}),q6=Y9;M9();a9(Bw);l9(n9);o9(bd);if(__INTLIFY_PROD_DEVTOOLS__){const e=Ms();e.__INTLIFY__=!0,Fw(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Kv="(prefers-reduced-motion: reduce)";function H2(){let e=G(!1);if(typeof window<"u"&&typeof window.matchMedia=="function"){let t=window.matchMedia(Kv);e.value=t.matches;let i=n=>{e.value=n.matches};typeof t.addEventListener=="function"?(t.addEventListener("change",i),Cc(()=>t.removeEventListener("change",i))):typeof t.addListener=="function"&&(t.addListener(i),Cc(()=>t.removeListener(i)))}return Yr(e)}function T2(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Kv).matches}var Ld="data-nb-tour-step",X9=Symbol.for("@nubisco/ui:command-palette");function J9(){let e=br(new Map),t=G(!1),i=G(void 0),n=G(void 0);function r(u){e.set(u.id,u)}function s(u){for(let d of u)e.set(d.id,d)}function a(u){e.delete(u)}function l(u){n.value=u,t.value=!0}function o(){t.value=!1,n.value=void 0}function c(u){i.value=u}return br({commands:e,isOpen:t,activeContext:i,searchFilter:n,register:r,registerMany:s,unregister:a,open:l,close:o,setContext:c})}var it=(e,t)=>{let i=e.__vccOpts||e;for(let[n,r]of t)i[n]=r;return i},G6=Object.defineProperty,Hu=(e,t)=>{let i={};for(var n in e)G6(i,n,{get:e[n],enumerable:!0});return G6(i,Symbol.toStringTag,{value:"Module"}),i},Q9=Hu({default:()=>eS});function eS(e){e.directive("nb-context-menu",{mounted(t,i){let n=r=>{r.preventDefault(),typeof i.value=="function"&&i.value({x:r.clientX,y:r.clientY})};t.__nbContextMenuHandler__=n,t.addEventListener("contextmenu",n)},updated(t,i){t.__nbContextMenuHandler__&&t.removeEventListener("contextmenu",t.__nbContextMenuHandler__);let n=r=>{r.preventDefault(),typeof i.value=="function"&&i.value({x:r.clientX,y:r.clientY})};t.__nbContextMenuHandler__=n,t.addEventListener("contextmenu",n)},unmounted(t){t.__nbContextMenuHandler__&&(t.removeEventListener("contextmenu",t.__nbContextMenuHandler__),delete t.__nbContextMenuHandler__)}})}var tS=Hu({devWarn:()=>ts,renderTooltipContent:()=>dc}),Y6=new Set(["span","div","p","b","strong","em","i","u","s","small","code","kbd","br","ul","ol","li"]),iS=new Set(["br"]),X6=new Set(["class","style","dir","lang"]),nS=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),rS=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(".")),sS=/url\(|image-set\(|expression\(|javascript:|@import|\\/i,aS=/^[A-Za-z_-][A-Za-z0-9_-]*$/,lS=e=>e.split(";").map(t=>{let i=t.indexOf(":");if(i<0)return"";let n=t.slice(0,i).trim().toLowerCase(),r=t.slice(i+1).trim();return!n||!r?"":rS.has(n)?sS.test(r)?(ts(`style-value:${n}`,`The value of "${n}" was dropped: tooltip content may not load a resource or call a CSS function that does.`),""):`${n}: ${r}`:(ts(`style:${n}`,`"${n}" is not an allowed tooltip content style property and was dropped.`),"")}).filter(Boolean).join("; "),oS=e=>e.split(/\s+/).filter(t=>t?aS.test(t)?!0:(ts(`class:${t}`,`"${t}" is not a valid class token for tooltip content and was dropped.`),!1):!1).join(" "),cS=(e,t)=>e==="style"?lS(t):e==="class"?oS(t):t,uS=new Set(["b","strong","em","i","u","s","small","code","kbd","br","p"]),dS={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},J6=e=>e.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]{1,10}|#\d{1,7}|#[xX][0-9a-fA-F]{1,6});)/g,"&amp;").replace(/[<>"']/g,t=>dS[t]),qv=e=>e.split(/(<[^<>]*>)/g).map(t=>{var i;if(t.startsWith("<")&&t.endsWith(">")){let n=/^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9]*)\s*\/?\s*>$/.exec(t),r=(i=n==null?void 0:n[2])==null?void 0:i.toLowerCase();return r&&uS.has(r)?`<${n[1]}${r}>`:(r&&ts(`string-tag:${r}`,`<${r}> is not allowed in a tooltip string and was shown as text. Use the structured content form for anything richer.`),J6(t))}return J6(t).replace(/\n/g,"<br>")}).join(""),Q6=new Set,ts=(e,t)=>{typeof process<"u"||Q6.has(e)||(Q6.add(e),console.warn(`[nb-tooltip] ${t}`))},Ed=e=>{if(Array.isArray(e))return e.map(u=>Ed(u)).join("");if(!e||typeof e!="object"||!e.component)return"";let{component:t,props:i={},children:n,content:r}=e,s=n===void 0?r:n,a=Array.isArray(s)?Ed(s):s===void 0?"":qv(String(s)),l=String(t).toLowerCase();if(!Y6.has(l))return ts(`tag:${l}`,`<${l}> is not allowed in tooltip content and was dropped. Allowed tags: ${[...Y6].join(", ")}.`),a;let o=Object.entries(i).filter(([u])=>X6.has(u)?!0:(ts(`prop:${u}`,`"${u}" is not an allowed tooltip content prop and was dropped. Allowed props: ${[...X6].join(", ")}.`),!1)).map(([u,d])=>[u,cS(u,String(d))]).filter(([,u])=>u!=="").map(([u,d])=>`${u}="${nS(d)}"`).join(" "),c=`<${l}${o?` ${o}`:""}>`;return iS.has(l)?c:`${c}${a}</${l}>`},dc=e=>e?typeof e=="string"?qv(e):Array.isArray(e)?Ed(e):"":"",hS=Hu({default:()=>ZS,dismissAllTooltips:()=>jS}),N2=e=>e.status??e.flavor??"default",P2=e=>e.chipClass??e.classExtra,Fn=new Set,fS=0,pS=()=>`nb-tooltip-${++fS}`,_S=900,Gv=4e3,mS=500,Yv=0,xd=(e,t)=>{if(!e)return!1;let i=Date.now()-e;return i>=0&&i<t},e8=!1,vS=()=>{if(e8||typeof document>"u")return;e8=!0;let e=t=>{if(Fn.size===0)return;let i=t==null?void 0:t.target;i instanceof Element&&i.closest(".nb-tooltip")||WS("dismiss")};document.addEventListener("pointerdown",()=>{Yv=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)},t8=70,i8=1e3,gS=2,bS=e=>{let t=e.tooltipElement;if(!t)return!1;if(t.__hovered__)return!0;try{return t.isConnected&&t.matches(":hover")}catch{return!1}},yS=e=>{if(!e.isConnected)return!1;if(bS(e)||e.__trigger__==="focus"&&e.contains(document.activeElement)||e.__trigger__==="touch"&&xd(e.__lastTouchAt__,Gv))return!0;try{return e.matches(":hover")}catch{return!0}},Hd=e=>{clearTimeout(e.__watchdogTimer__),e.__watchdogTimer__=void 0,e.__watchdogMisses__=0},wS=e=>{Hd(e);let t=()=>{var i;if(!((i=e.__chips__)!=null&&i.size)){Hd(e);return}if(yS(e))e.__watchdogMisses__=0;else{if(e.__watchdogMisses__=(e.__watchdogMisses__??0)+1,!e.isConnected){ta(e,!0,"program");return}if(e.__watchdogMisses__>=gS){I2(e,"dismiss");return}}e.__watchdogTimer__=setTimeout(t,i8)};e.__watchdogTimer__=setTimeout(t,i8)},zn=new Set,jr=null,Xv=e=>`${Math.round(e.top)}:${Math.round(e.left)}:${Math.round(e.width)}:${Math.round(e.height)}`,SS=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)},CS=e=>{let t=[],i=e.parentElement;for(;i&&i!==document.body&&i!==document.documentElement;)SS(i)&&t.push(i),i=i.parentElement;return t},Td=e=>!(e.width===0&&e.height===0&&e.top===0&&e.left===0),kS=(e,t)=>{if(!e.isConnected)return!1;if(!Td(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 n=i.getBoundingClientRect();if(Td(n)&&(t.bottom<=n.top||t.top>=n.bottom||t.right<=n.left||t.left>=n.right))return!1}return!0},Jv=e=>{var n;let t=e.tooltipElement;if(!t||!((n=e.__chips__)!=null&&n.size)){zn.delete(e);return}let i=e.getBoundingClientRect();if(!kS(e,i)){e.__offscreenReported__||(e.__offscreenReported__=!0,I2(e,"dismiss"));return}e.__offscreenReported__=!1,e.__lastRect__=Xv(i),e.__side__!=="cursor"&&b0(e,t,e.__requestedSide__??e.__side__)},Dc=()=>{eg();for(let e of Array.from(zn))Jv(e)},AS=100,$S=320,n8=0,Qv=0,eg=()=>{Qv=Date.now()+$S},Nd=()=>{if(zn.size===0){jr=null;return}let e=Date.now();if(e>=Qv&&e-n8<AS){jr=requestAnimationFrame(Nd);return}n8=e;for(let t of Array.from(zn)){if(!t.tooltipElement){zn.delete(t);continue}Xv(t.getBoundingClientRect())!==t.__lastRect__&&(eg(),Jv(t))}jr=requestAnimationFrame(Nd)},Zc=!1,MS=e=>{zn.add(e),e.__lastRect__=void 0,e.__clippers__=CS(e),!(typeof window>"u")&&(Zc||(Zc=!0,document.addEventListener("scroll",Dc,{capture:!0,passive:!0}),window.addEventListener("resize",Dc,{passive:!0})),jr===null&&typeof requestAnimationFrame=="function"&&(jr=requestAnimationFrame(Nd)))},O2=e=>{zn.delete(e),e.__lastRect__=void 0,e.__clippers__=void 0,!(zn.size>0||typeof window>"u")&&(Zc&&(Zc=!1,document.removeEventListener("scroll",Dc,{capture:!0}),window.removeEventListener("resize",Dc)),jr!==null&&typeof cancelAnimationFrame=="function"&&(cancelAnimationFrame(jr),jr=null))},LS=(e,t,i)=>{var n;if((n=e.__chips__)==null||n.delete(t),clearTimeout(t.__removeTimer__),t.__removeTimer__=void 0,i||T2()){t.remove();return}t.style.animation=`tooltipDisappear ${t8}ms cubic-bezier(0.2, 0, 1, 0.9) forwards`,t.__removeTimer__=setTimeout(()=>{t.__removeTimer__=void 0,t.remove()},t8)},tg=(e,t)=>{if(O2(e),e.__trigger__=void 0,e.__side__=void 0,e.__chips__)for(let i of Array.from(e.__chips__))LS(e,i,t);e.tooltipElement=void 0,e.__lastContent__=void 0,Hd(e)},ig="a[href], button, input, select, textarea, summary, [tabindex]",Pd="data-nb-tooltip-anchor",r8=(e,t)=>{let i=t.target;if(!(i instanceof Element)||i===e)return!0;let n=i.closest(`[${Pd}]`);return n===null||n===e},ES='button, a[href], [role="button"], [role="tab"], [role="menuitem"], input, select, textarea, label',xS=e=>{let t=e.closest(ES);return!t||t.disabled===!0?!1:t.getAttribute("aria-disabled")!=="true"},No=e=>{if(!e)return"";if(typeof e=="string")return e.replace(/<[^>]*>/g," ").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/\s+/g," ").trim();if(Array.isArray(e))return e.map(t=>No(t)).filter(Boolean).join(" ");if(typeof e=="object"){let t=e;return No(t.children??t.content)}return""},ng=e=>[No(e.header),No(e.body),No(e.tip)].filter(Boolean).join(". "),HS=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},rg=(e,t)=>{let i=t.aria??"auto";return i==="auto"?HS(e)?"description":"label":i},TS=(e,t)=>{if(!t||rg(e,t)!=="label"){e.__ownsAriaLabel__&&(e.__ownsAriaLabel__=(e.removeAttribute("aria-label"),!1)),e.__ownsRole__&&(e.__ownsRole__=(e.removeAttribute("role"),!1));return}let i=ng(t);i&&(e.setAttribute("aria-label",i),e.__ownsAriaLabel__=!0,!e.__ownsRole__&&!e.hasAttribute("role")&&!e.matches(ig)&&(e.setAttribute("role","img"),e.__ownsRole__=!0))},w1=(e,t)=>{let i=!!(t!=null&&t.focusable);if(i&&!e.__ownsTabIndex__){if(e.matches(ig)||e.hasAttribute("tabindex"))return;e.setAttribute("tabindex","0"),e.__ownsTabIndex__=!0;return}!i&&e.__ownsTabIndex__&&(e.removeAttribute("tabindex"),e.__ownsTabIndex__=!1)},NS=(e,t)=>{e.__prevDescribedBy__=e.getAttribute("aria-describedby");let i=[e.__prevDescribedBy__,t].filter(Boolean).join(" ");e.setAttribute("aria-describedby",i)},PS=e=>{e.__prevDescribedBy__!==void 0&&(e.__prevDescribedBy__?e.setAttribute("aria-describedby",e.__prevDescribedBy__):e.removeAttribute("aria-describedby"),e.__prevDescribedBy__=void 0)},OS="nb-tooltip-description",sg=e=>!!e&&!!(e.body||e.header||e.tip),RS=(e,t)=>{if(typeof document>"u")return;let i=t&&sg(t)&&rg(e,t)==="description"?ng(t):"";if(!i){ag(e);return}let n=e.__descNode__;n||(n=document.createElement("span"),n.className=OS,n.id=pS(),n.setAttribute("role","tooltip"),document.body.appendChild(n),e.__descNode__=n,NS(e,n.id)),e.__descText__!==i&&(n.textContent=i,e.__descText__=i)},ag=e=>{e.__descNode__&&(PS(e),e.__descNode__.remove(),e.__descNode__=void 0,e.__descText__=void 0)},IS=(e,t)=>{if(sg(t)){e.__prevTitle__===void 0&&e.hasAttribute("title")&&(e.__prevTitle__=e.getAttribute("title")??"",e.removeAttribute("title"));return}lg(e)},lg=e=>{e.__prevTitle__!==void 0&&(e.hasAttribute("title")||e.setAttribute("title",e.__prevTitle__),e.__prevTitle__=void 0)},S1=(e,t)=>{IS(e,t),TS(e,t),RS(e,t)},VS=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"))},DS=(e,t,i)=>t>=e.left&&t<=e.right&&i>=e.top&&i<=e.bottom,og=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)},s8=e=>{let t=e.__tooltipBinding__&&VS(e)?e.parentElement:null;e.__proxyHost__!==t&&(og(e),t&&(e.__proxyMove__=i=>{var s,a,l;let n=i;if(n.buttons)return;let r=e.getBoundingClientRect();if(Td(r)?DS(r,n.clientX,n.clientY):i.target===e||e.contains(i.target)){e.__mouseX__=n.clientX,e.__mouseY__=n.clientY,e.__proxyInside__?(s=e.__tooltipBinding__)!=null&&s.followCursor&&b0(e,e.tooltipElement,e.__requestedSide__):(e.__proxyInside__=!0,(a=e.__showTooltip__)==null||a.call(e,"pointer"));return}e.__proxyInside__&&(e.__proxyInside__=!1,(l=e.__hideTooltip__)==null||l.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))},a8=e=>{e.onOpenChange||ts("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.")},l8=(e,t)=>{var n,r;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?(n=e.__showTooltip__)==null||n.call(e,"program"):(r=e.__hideTooltip__)==null||r.call(e,0,"program"))},ZS=e=>{vS();let t=e.config.globalProperties.$router;t&&t.beforeEach(()=>{Fn.forEach(i=>{var n;return(n=i==null?void 0:i.__hideTooltip__)==null?void 0:n.call(i,0,"program")}),Fn.clear()}),e.directive("nb-tooltip",{mounted(i,n){i.__showTooltip__=(r="pointer")=>{var a;let s=i.__tooltipBinding__;if(s){if(s.open!==void 0&&r!=="program"){a8(s),(a=s.onOpenChange)==null||a.call(s,!0,r);return}clearTimeout(i.__hideTimer__),i.__hideTimer__=void 0,BS(i,s,r)}},i.__hideTooltip__=(r=(a=>(a=i.__tooltipBinding__)==null?void 0:a.hideDelay)()??150,s="dismiss")=>{var o;let l=i.__tooltipBinding__;if((l==null?void 0:l.open)!==void 0&&s!=="program"){a8(l),(o=l.onOpenChange)==null||o.call(l,!1,s);return}if(clearTimeout(i.__hideTimer__),r<=0){i.__hideTimer__=void 0,ta(i,!0,s);return}i.__hideTimer__=setTimeout(()=>{i.__hideTimer__=void 0,ta(i,r<=0,s)},r)},i.__mouseMove__=r=>{var s,a;i.__mouseX__=r.clientX,i.__mouseY__=r.clientY,(s=i.__tooltipBinding__)!=null&&s.followCursor&&b0(i,i.tooltipElement,(a=i.__tooltipBinding__)==null?void 0:a.position)},i.__tooltipBinding__=n.value,i.__showHandler__=r=>{var a;if(xd(i.__lastTouchAt__,_S))return;let s=r;s.buttons||(typeof s.clientX=="number"&&(s.clientX||s.clientY)&&(i.__mouseX__=s.clientX,i.__mouseY__=s.clientY),(a=i.__showTooltip__)==null||a.call(i,"pointer"))},i.__hideHandler__=()=>{var r;return(r=i.__hideTooltip__)==null?void 0:r.call(i,void 0,"pointer")},i.__focusHandler__=r=>{var s;xd(Yv,mS)||r8(i,r)&&((s=i.__showTooltip__)==null||s.call(i,"focus"))},i.__blurHandler__=()=>{var r;return(r=i.__hideTooltip__)==null?void 0:r.call(i,void 0,"focus")},i.__touchHandler__=r=>{var s,a,l;((s=i.__tooltipBinding__)==null?void 0:s.touch)!==!1&&r8(i,r)&&(i.__lastTouchAt__=Date.now(),!xS(i)&&((a=i.__showTooltip__)==null||a.call(i,"touch"),(l=i.__hideTooltip__)==null||l.call(i,Gv,"touch")))},w1(i,n.value),S1(i,n.value),i.setAttribute(Pd,""),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}),s8(i),l8(i,n.value)},updated(i,n){let r=i.__tooltipBinding__;if(i.__tooltipBinding__=n.value,!n.value){S1(i,void 0),w1(i,void 0),ta(i,!0);return}if(r!==n.value&&(S1(i,n.value),w1(i,n.value)),s8(i),l8(i,n.value),!i.tooltipElement||r===n.value)return;let s=ug(n.value);s!==i.__lastContent__&&(i.__lastContent__=s,FS(i,n.value))},unmounted(i){clearTimeout(i.__showTimer__),i.__showTimer__=void 0,clearTimeout(i.__hideTimer__),i.__hideTimer__=void 0,ta(i,!0),Fn.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__),ag(i),lg(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(Pd),og(i),i.__mouseMove__&&i.removeEventListener("mousemove",i.__mouseMove__),O2(i)}})},R2=({header:e="",body:t="",tip:i=""})=>`<div class="nb-tooltip-content"><div class="nb-tooltip-header">${dc(e)}</div><div class="nb-tooltip-body">${dc(t)}</div><div class="nb-tooltip-tip">${dc(i)}</div></div>`,cg=(e,t,i)=>["nb-tooltip",`nb-tooltip-${e}`,t?`nb-tooltip-flavor-${t}`:"",i||""].filter(Boolean).join(" "),ug=e=>`${e.position??""}|${N2(e)}|${P2(e)??""}|${R2(e)}`,BS=(e,t,i="pointer")=>{let{header:n,body:r,tip:s,delay:a=400,animationTime:l=110,position:o,overflowOnly:c}=t,u=N2(t),d=P2(t);if(clearTimeout(e.__showTimer__),e.__showTimer__=void 0,tg(e,!0),c){let m=e.getBoundingClientRect();if(!(Math.round(m.width)<Math.round(e.scrollWidth)))return}if(!(r||n||s))return;let f=i==="pointer"?a:0,h=T2();e.__showTimer__=setTimeout(()=>{var v;if(e.__showTimer__=void 0,!e.isConnected)return;let m=i==="pointer"?o??"cursor":o&&o!=="cursor"?o:"top";for(let C of Array.from(zn))C!==e&&I2(C,"superseded");let p=document.createElement("span");p.className=cg(m,u,d),p.innerHTML=R2({header:n,body:r,tip:s}),p.addEventListener("mouseenter",()=>{p.__hovered__=!0,clearTimeout(e.__hideTimer__),e.__hideTimer__=void 0,e.__watchdogMisses__=0}),p.addEventListener("mouseleave",()=>{var C;p.__hovered__=!1,(C=e.__hideTooltip__)==null||C.call(e)}),h?p.style.opacity="1":(p.style.transition=`opacity ${l}ms ease-in-out`,p.style.animation=`tooltipAppear ${l}ms cubic-bezier(0, 0, 0.38, 0.9) forwards`),p.setAttribute("aria-hidden","true"),e.__trigger__=i,e.tooltipElement=p,(e.__chips__??(e.__chips__=new Set)).add(p),e.__lastContent__=ug(t),Fn.add(e),document.body.appendChild(p),e.__requestedSide__=m,e.__side__=m,b0(e,p,m),MS(e),wS(e);let b=e.__openState__===!0;e.__openState__=!0,b||((v=t.onOpenChange)==null||v.call(t,!0,i))},f)},I2=(e,t,i=!0)=>{if(e.__hideTooltip__){e.__hideTooltip__(i?0:void 0,t);return}ta(e,i,t)},ta=(e,t=!1,i="dismiss")=>{var r,s;clearTimeout(e.__showTimer__),e.__showTimer__=void 0;let n=e.__openState__===!0;tg(e,t),Fn.delete(e),e.__requestedSide__=void 0,n&&(e.__openState__=!1,(s=(r=e.__tooltipBinding__)==null?void 0:r.onOpenChange)==null||s.call(r,!1,i))},FS=(e,t)=>{let{header:i,body:n,tip:r,position:s}=t,a=N2(t),l=P2(t),o=e.__requestedSide__??e.__side__??s,c=e.tooltipElement;c&&(c.innerHTML=R2({header:i,body:n,tip:r}),c.className=cg(e.__side__??o??"cursor",a,l),b0(e,c,o))};function zS(e,t,i,n,r,s,a){switch(e){case"top":return{top:t.top-(n+r*2),left:t.left+t.width/2-(i/2+r/2)};case"bottom":return{top:t.bottom+r,left:t.left+t.width/2-(i/2+r/2)};case"left":return{top:t.top+t.height/2-n/2,left:t.left-(i+r*2)};case"right":return{top:t.top+t.height/2-n/2,left:t.right+r};default:return{top:a+o8,left:s+o8}}}var o8=14;function c8(e,t,i,n,r){return t>=r&&e>=r&&t+i<=window.innerWidth-r&&e+n<=window.innerHeight-r}var US={top:["bottom","right","left"],bottom:["top","right","left"],left:["right","top","bottom"],right:["left","top","bottom"],cursor:[]},b0=(e,t,i)=>{if(!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),s=r.width||0,a=r.height||0,l=e.__mouseX__??0,o=e.__mouseY__??0,c=i??"cursor",u=p=>zS(p,n,s,a,4,l,o),d=u(c),f=c;if(s>0&&a>0&&!c8(d.top,d.left,s,a,16))for(let p of US[c]){let b=u(p);if(c8(b.top,b.left,s,a,16)){d=b,f=p;break}}let{top:h,left:m}=d;if(s>0&&a>0){let p=window.innerWidth-s-16,b=window.innerHeight-a-16;m>p&&(m=p),m<16&&(m=16),h>b&&(h=b),h<16&&(h=16)}if(f!=="cursor"){for(let p of["top","bottom","left","right"])t.classList.remove(`nb-tooltip-${p}`);t.classList.add(`nb-tooltip-${f}`)}if(e.__side__=f,s>0&&a>0&&f!=="cursor"){let p=n.left+n.width/2,b=n.top+n.height/2;if(f==="top"||f==="bottom"){let v=Math.max(8,Math.min(s-8,p-m))/s*100;t.style.setProperty("--nb-tooltip-arrow-offset",`${v}%`)}else{let v=Math.max(8,Math.min(a-8,b-h))/a*100;t.style.setProperty("--nb-tooltip-arrow-offset",`${v}%`)}}t.style.top=`${h}px`,t.style.left=`${m}px`};function WS(e){var i;for(let n of Array.from(Fn))(i=n.__hideTooltip__)==null||i.call(n,0,e);let t=new Set;for(let n of Array.from(Fn))for(let r of n.__chips__??[])t.add(r);document.querySelectorAll("span.nb-tooltip").forEach(n=>{t.has(n)||n.remove()})}function jS(){var e;for(let t of Array.from(Fn))(e=t.__hideTooltip__)==null||e.call(t,0,"program");Fn.clear();for(let t of Array.from(zn))O2(t);document.querySelectorAll("span.nb-tooltip").forEach(t=>t.remove())}var KS=Hu({default:()=>qS});function u8(e,t){let i=t.value;if(i==null||i===""){e.removeAttribute(Ld);return}e.setAttribute(Ld,String(i))}var qS=e=>{e.directive("nb-tour-step",{mounted:u8,updated:u8,unmounted(t){t.removeAttribute(Ld)}})},GS=Object.assign({"./ContextMenu.directive.ts":Q9,"./ToolTip.content.ts":tS,"./ToolTip.directive.ts":hS,"./TourStep.directive.ts":KS}),YS={install(e){Object.values(GS).forEach(t=>{typeof t.default=="function"&&t.default(e)})}},XS={install(e){let t=J9();e.provide(X9,t)}},JS={install(e,t={}){if(t.components)for(let[i,n]of Object.entries(t.components))e.component(i,n);e.use(YS),e.use(XS)}};function QS(e){return Symbol.for(`@nubisco/ui:${e}`)}function Tu(e,t){let i=QS(e),n=globalThis;return n[i]===void 0&&(n[i]=t()),n[i]}var dg=Tu("icon-registry",()=>new Map);function eC(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 tC(e){for(let[t,i]of Object.entries(e))dg.set(t,eC(i))}function iC(e,t="regular"){let i=dg.get(e);if(i){if(i[t])return i[t];if(i.regular)return i.regular;for(let n of["bold","fill","duotone","light","thin"])if(i[n])return i[n]}}var nC=e=>Symbol.for(`@nubisco/ui:${e}-catalog`);function rC(e){return globalThis[nC(e)]}var d8=new Map;function sC(e,t,i="regular"){let n=rC(e);if(!n){let o="Icon",c=`${e}s`;throw Error(`[@nubisco/ui] <Nb${o}> 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${o}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 r=n[t];if(!r)return;let s=`${e}:${t}:${i}`,a=d8.get(s);if(a)return a;let l=ay(async()=>{let o=await r();return o[i]??o.regular??o.default});return d8.set(s,l),l}function aC(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 lC(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 hg=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}({}),oC=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}({});function h8(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 ka(e){var i,n;if(e.id)return e.id;let t=h8(((n=(i=_i())==null?void 0:i.type)==null?void 0:n.__name)??"component");return typeof e.name=="string"&&e.name?`${t}-${h8(e.name)}`:`${t}-${Vi()}`}var fg=function(e){return e.Hover="hover",e.Always="always",e}(fg||{}),pg=function(e){return e.Thin="thin",e.Light="light",e.Regular="regular",e.Bold="bold",e.Fill="fill",e.Duotone="duotone",e}(pg||{}),Od=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}(Od||{}),cC=["title"],qe=it(Pe({__name:"Icon",props:{name:{default:void 0},icon:{default:void 0},size:{default:hg.Medium},animation:{default:null},animationMode:{default:fg.Always},color:{default:void 0},weight:{default:pg.Regular},title:{default:void 0},clickable:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){let i=e,n=t,r=U(()=>i.icon??i.name),s=U(()=>typeof r.value=="string"?r.value:lC(r.value)),a=U(()=>typeof r.value=="string"?void 0:r.value),l=ka({name:s.value}),o=U(()=>{let f=typeof i.size=="number"?i.size:Od[String(i.size).toUpperCase()]||Od.MD;return{id:l,...i.size&&{width:`${f}px`,height:`${f}px`},...i.clickable&&{role:"button"}}}),c=U(()=>{let f=a.value;if(f)return aC(f,i.weight);let h=typeof r.value=="string"?r.value:void 0;return h?iC(h,i.weight)||sC("icon",h,i.weight):void 0}),u=U(()=>({"nb-icon":!0,...s.value&&{[s.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})),d=U(()=>({...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(f,h)=>(_(),M("i",Lt({class:u.value,style:d.value},o.value,{title:e.title,onClick:h[0]||(h[0]=m=>e.clickable?n("click",m):void 0)}),[c.value?(_(),oe(Ca(c.value),{key:0,"aria-hidden":"true"})):R("",!0)],16,cC))}}),[["__scopeId","data-v-034072e6"]]),_g="data-nb-layer",Rd=Symbol.for("@nubisco/ui:layer");function Bc(e){if(!Number.isFinite(e))return 0;let t=Math.round(e);return t<0?0:t>3?3:t}function Id(e){return`nb-layer-${e}`}function uC(e){let t=null,i=r=>{let s=/^nb-layer-([0-3])$/.exec(r.trim());if(!s)return;let a=Number(s[1]);(t===null||a>t)&&(t=a)},n=r=>{if(typeof r=="string"){for(let s of r.split(/\s+/))i(s);return}if(Array.isArray(r)){for(let s of r)n(s);return}if(r&&typeof r=="object")for(let[s,a]of Object.entries(r))a&&i(s)};return n(e),t}function dC(e){let t=(e==null?void 0:e.parentElement)??null;for(;t;){if(t.hasAttribute("data-nb-layer-context")){t=t.parentElement;continue}let i=t.getAttribute(_g);if(i!==null){let r=Number(i);if(Number.isFinite(r))return{level:Bc(r+1),source:"surface"}}let n=t.classList;if(n){for(let r=3;r>=0;r--)if(n.contains(Id(r)))return{level:r,source:"class"}}t=t.parentElement}return null}function hC(e){if(!e)return null;if(e instanceof Element)return e;let t=e.$el;return t instanceof Element?t:null}function ha(e={}){let t=_i(),i=Pt(Rd,null),n=e.el??G(null),r=G(null),s=e.probe??!e.overlay,a=U(()=>{var c;let o=P3(e.level);return o===void 0?uC((c=t==null?void 0:t.attrs)==null?void 0:c.class):Bc(o)}),l=U(()=>{let o=a.value;if(o!==null)return o;if(e.overlay)return 3;let c=r.value;return c&&c.source==="class"?c.level:i?i.value:c?c.level:1});return s&&at(()=>{r.value=dC(hC(n.value)??((t==null?void 0:t.vnode.el)instanceof Element?t.vnode.el:null))}),e.provideContext!==!1&&qi(Rd,U(()=>Bc(l.value+1))),{level:l,layerClass:U(()=>Id(l.value)),layerProps:U(()=>({class:Id(l.value),[_g]:String(l.value)})),surfaceRef:n}}var fC="(max-width: 671.98px), (pointer: coarse) and (hover: none) and (max-height: 500px)",pC="(max-width: 671.98px) and (pointer: coarse), (pointer: coarse) and (hover: none) and (max-height: 500px)",js=null;function f8(e,t){let i=window.matchMedia(e);t.value=i.matches;let n=r=>{t.value=r.matches};typeof i.addEventListener=="function"?i.addEventListener("change",n):typeof i.addListener=="function"&&i.addListener(n)}function vn(){return js||(js={phone:G(!1),phoneTouch:G(!1)},typeof window<"u"&&typeof window.matchMedia=="function"&&(f8(fC,js.phone),f8(pC,js.phoneTouch))),{phone:Yr(js.phone),phoneTouch:Yr(js.phoneTouch)}}const Aa=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},_C=Aa("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"/>'),mC=Aa("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"/>'),Fc=Aa("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"/>'),vC=Aa("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"/>'),gC=Aa("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"/>'),bC=Aa("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"/>'),yC="info",Nu=Object.freeze(Object.defineProperty({__proto__:null,bold:vC,default:Fc,duotone:bC,fill:gC,glyphName:yC,light:mC,regular:Fc,thin:_C},Symbol.toStringTag,{value:"Module"})),wC=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},p8=wC("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"/>');function mg(){let e=_i();return U(()=>{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 vg=function(e){return e.Button="button",e.Submit="submit",e.Reset="reset",e}(vg||{}),SC={key:0,class:"nb-button__decorations"},CC={key:0,class:"nb-button__spinner","aria-hidden":"true"},_8=new Set;function kC(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 At=it(Pe({__name:"Button",props:{variant:{default:void 0},outlined:{type:Boolean,default:!1},size:{default:hg.Medium},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{default:void 0},type:{default:vg.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=nn(),n=U(()=>!i.default&&!!(t.icon||t.loading)),r=mg(),s=U(()=>t.to!=null&&!!r.value),a=U(()=>{if(typeof t.to=="string")return t.to;if(t.href)return t.href}),l=U(()=>s.value?r.value:a.value?"a":"button"),o=U(()=>l.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},d=U(()=>(n.value?u:c)[t.size??"md"]??(n.value?18:14)),f=_i();return at(()=>{typeof process<"u"||n.value&&bt(()=>{var p;let h=(p=f==null?void 0:f.proxy)==null?void 0:p.$el;if(!h||typeof h.getAttribute!="function"||["aria-label","aria-labelledby","title"].some(b=>(h.getAttribute(b)??"").trim().length>0)||(h.textContent??"").trim().length>0)return;let m=kC(t.icon);_8.has(m)||(_8.add(m),console.warn(`[NbButton] An icon-only button${m?` (icon "${m}")`:""} has no accessible name, so a screen reader announces it as "button". Add aria-label, or name it with v-nb-tooltip.`,h))})}),(h,m)=>(_(),oe(Ca(l.value),Lt({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":n.value}],to:s.value?e.to:void 0},o.value,{disabled:l.value==="button"?e.disabled||e.loading:void 0,"aria-disabled":l.value!=="button"&&(e.disabled||e.loading)?!0:void 0,type:l.value==="button"?e.type:void 0,onClick:m[0]||(m[0]=p=>e.disabled||e.loading?void 0:h.$emit("click",p))}),{default:X(()=>[Le(h.$slots,"default",{},void 0,!0),e.loading||e.icon?(_(),M("div",SC,[e.loading?(_(),M("span",CC)):e.icon?(_(),oe(qe,{key:1,name:e.icon,size:d.value,class:"nb-button__icon"},null,8,["name","size"])):R("",!0)])):R("",!0)]),_:3},16,["class","to","disabled","aria-disabled","type"]))}}),[["__scopeId","data-v-d789f616"]]),AC=Pe({__name:"Menu",props:{open:{type:Boolean,default:!1},size:{default:"md"},minWidth:{default:160},maxWidth:{default:288}},emits:["close","update:open"],setup(e,{expose:t,emit:i}){let n=e,r=i,s=G(null),a=G(-1),l=br([]),{phone:o}=vn();function c(ie){return o.value?`min(${ie}px, calc(100vw - 16px))`:`${ie}px`}let u=U(()=>({position:"fixed",top:`${d.top}px`,left:`${d.left}px`,minWidth:c(n.minWidth),maxWidth:c(n.maxWidth),zIndex:o.value?"var(--nb-zindex-modal-dropdown)":"var(--nb-zindex-menu)"})),d=br({top:0,left:0});function f(ie){d.top=ie.bottom,d.left=ie.left,m()}function h(ie,B){d.top=B,d.left=ie,m()}function m(){n.open&&bt(F)}function p(){r("close"),r("update:open",!1)}function b(ie){return l.includes(ie)||l.push(ie),l.indexOf(ie)}function v(ie){let B=l.indexOf(ie);B>=0&&l.splice(B,1)}let C=new Set;function y(ie){C.add(ie)}function g(ie){C.delete(ie)}qi("nb-menu",{size:n.size,close:p,highlightedIndex:a.value,registerItem:b,unregisterItem:v,registerSurface:y,unregisterSurface:g});function L(){return s.value?Array.from(s.value.querySelectorAll('[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]')).filter(ie=>!ie.closest(".nb-submenu")):[]}function x(ie){let B=L();ie>=0&&ie<B.length&&(a.value=ie,B[ie].focus())}function $(ie){var H,I;if(ie.key==="Escape"){if(ie.defaultPrevented)return;ie.preventDefault(),ie.stopPropagation(),p();return}let B=L();if(!B.length)return;let A=B.indexOf(document.activeElement);if(A>=0&&(a.value=A),ie.key==="ArrowDown"){ie.preventDefault(),ie.stopPropagation();let D=a.value+1;for(;D<B.length&&((H=B[D])==null?void 0:H.getAttribute("aria-disabled"))==="true";)D++;D<B.length&&x(D)}else if(ie.key==="ArrowUp"){ie.preventDefault(),ie.stopPropagation();let D=a.value-1;for(;D>=0&&((I=B[D])==null?void 0:I.getAttribute("aria-disabled"))==="true";)D--;D>=0&&x(D)}else ie.key==="Tab"&&p()}function O(ie){let B=ie.target;if(!(!s.value||s.value.contains(B))){for(let A of C)if(A.contains(B))return;p()}}function F(){if(!s.value)return;let ie=s.value.getBoundingClientRect();ie.right>window.innerWidth&&(d.left=Math.max(8,window.innerWidth-ie.width-8)),ie.bottom>window.innerHeight&&(d.top=Math.max(8,window.innerHeight-ie.height-8));let B=window.innerHeight-d.top-8;s.value.style.maxHeight=`${B}px`}return Oe(()=>n.open,ie=>{ie?(a.value=-1,document.addEventListener("mousedown",O),bt(()=>{F(),L().length>0&&x(0)})):(a.value=-1,document.removeEventListener("mousedown",O))}),Ot(()=>{document.removeEventListener("mousedown",O)}),t({setPosition:f,setPositionXY:h,close:p,el:s}),(ie,B)=>(_(),oe(Fi,{to:"body"},[Y(Ds,{name:"nb-menu"},{default:X(()=>[e.open?(_(),M("ul",{key:0,ref_key:"menuRef",ref:s,role:"menu",class:Ee(["nb-menu",`nb-menu--${e.size}`]),style:$t(u.value),onKeydown:$},[Le(ie.$slots,"default")],38)):R("",!0)]),_:3})]))}});function gg(e){var i,n,r,s;let t=(i=e.name)==null?void 0:i.trim();if(t){let a=t.split(/\s+/);return((((n=a[0])==null?void 0:n[0])??"")+(a.length>1?((r=a[a.length-1])==null?void 0:r[0])??"":"")).toUpperCase()}return(((s=e.email)==null?void 0:s.trim().split("@")[0])??"").slice(0,2).toUpperCase()}var $C=["role","aria-label","aria-hidden","title"],MC=["src"],LC={key:1,class:"nb-avatar__initials","aria-hidden":"true"},zc=Pe({__name:"Avatar",props:{name:{default:void 0},email:{default:void 0},picture:{default:void 0},size:{default:"md"},background:{default:void 0},color:{default:void 0},decorative:{type:Boolean,default:!1}},setup(e){let t=e,i=G(!1);Oe(()=>t.picture,()=>{i.value=!1});let n=U(()=>{let l={};if(typeof t.size=="number"){let o=Math.max(1,t.size),c=Math.min(.42,Math.max(.3,.4-(o-20)*.0025));l.width=`${o}px`,l.height=`${o}px`,l.fontSize=`${Math.round(o*c*100)/100}px`}return t.background&&(l.background=t.background),t.color&&(l.color=t.color),l}),r=U(()=>!!t.picture&&!i.value),s=U(()=>gg(t)),a=U(()=>{var l,o;return((l=t.name)==null?void 0:l.trim())||((o=t.email)==null?void 0:o.trim())||""});return(l,o)=>(_(),M("span",{class:Ee(["nb-avatar",[typeof e.size=="number"?null:`nb-avatar--${e.size}`]]),style:$t(n.value),role:e.decorative?void 0:"img","aria-label":e.decorative?void 0:a.value||void 0,"aria-hidden":e.decorative?"true":void 0,title:e.decorative?void 0:a.value||void 0},[r.value?(_(),M("img",{key:0,class:"nb-avatar__picture",src:e.picture??void 0,alt:"",onError:o[0]||(o[0]=c=>i.value=!0)},null,40,MC)):(_(),M("span",LC,Z(s.value),1))],14,$C))}});const $a=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},EC=$a("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"/>'),xC=$a("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"/>'),e0=$a("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"/>'),HC=$a("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"/>'),TC=$a("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"/>'),NC=$a("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"/>'),PC="check",yr=Object.freeze(Object.defineProperty({__proto__:null,bold:HC,default:e0,duotone:NC,fill:TC,glyphName:PC,light:xC,regular:e0,thin:EC},Symbol.toStringTag,{value:"Module"}));var OC=["role","aria-disabled","aria-checked","onKeydown"],RC={key:1,class:"nb-menu-item__check-placeholder"},IC={class:"nb-menu-item__label"},VC={key:2,class:"nb-menu-item__shortcut"},bg=Pe({__name:"MenuItem",props:{icon:{default:void 0},picture:{default:void 0},label:{},shortcut:{default:void 0},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},radioGroup:{default:void 0}},emits:["select","highlight"],setup(e,{expose:t,emit:i}){let n=e,r=i,s=G(null),a=Pt("nb-menu",null),l=U(()=>n.radioGroup?"menuitemradio":n.selectable?"menuitemcheckbox":"menuitem"),o=U(()=>["nb-menu-item",{"nb-menu-item--disabled":n.disabled,"nb-menu-item--danger":n.danger,"nb-menu-item--selected":n.selected}]);function c(){n.disabled||(r("select"),a==null||a.close())}return at(()=>{s.value&&a&&a.registerItem(s.value)}),Ot(()=>{s.value&&a&&a.unregisterItem(s.value)}),t({el:s}),(u,d)=>(_(),M("li",{ref_key:"itemRef",ref:s,class:Ee(o.value),role:l.value,"aria-disabled":e.disabled||void 0,"aria-checked":e.selectable||e.radioGroup?e.selected:void 0,tabindex:-1,onClick:c,onKeydown:[Ri(Qe(c,["prevent"]),["enter"]),Ri(Qe(c,["prevent"]),["space"])],onMouseenter:d[0]||(d[0]=f=>u.$emit("highlight"))},[e.selectable&&e.selected?(_(),oe(qe,{key:0,name:_e(e0),size:16,class:"nb-menu-item__check"},null,8,["name"])):e.selectable?(_(),M("span",RC)):R("",!0),Le(u.$slots,"leading",{},()=>[e.picture===void 0?e.icon?(_(),oe(qe,{key:1,name:e.icon,size:16,class:"nb-menu-item__icon"},null,8,["name"])):R("",!0):(_(),oe(zc,{key:0,class:"nb-menu-item__icon nb-menu-item__picture",name:e.label,picture:e.picture,size:16,decorative:""},null,8,["name","picture"]))]),w("span",IC,Z(e.label),1),e.shortcut?(_(),M("kbd",VC,Z(e.shortcut),1)):R("",!0),Le(u.$slots,"trailing")],42,OC))}});function V2(e){return e.some(t=>t.type===li?!1:t.type===rs?typeof t.children=="string"&&t.children.trim().length>0:t.type===ye?Array.isArray(t.children)?V2(t.children):!1:!0)}function D2(e,t){var n;let i=(n=e[t])==null?void 0:n.call(e);return i?V2(i):!1}const Ma=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},DC=Ma("dots-three","0 0 256 256",'<path d="M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"/>'),ZC=Ma("dots-three","0 0 256 256",'<path d="M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"/>'),m8=Ma("dots-three","0 0 256 256",'<path d="M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"/>'),BC=Ma("dots-three","0 0 256 256",'<path d="M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"/>'),FC=Ma("dots-three","0 0 256 256",'<path d="M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"/>'),zC=Ma("dots-three","0 0 256 256",'<path d="M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z" opacity="0.2"/><path d="M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"/>'),UC="dots-three",WC=Object.freeze(Object.defineProperty({__proto__:null,bold:BC,default:m8,duotone:zC,fill:FC,glyphName:UC,light:ZC,regular:m8,thin:DC},Symbol.toStringTag,{value:"Module"}));var jC={class:"nb-action-group"},yg=Pe({__name:"ActionGroup",props:{items:{},size:{default:"sm"},overflow:{default:"never"},overflowLabel:{default:"More actions"},phoneVisible:{default:1}},emits:["select"],setup(e,{emit:t}){let i=e,n=t,r=nn(),{phone:s}=vn(),a=U(()=>i.overflow==="never"?!1:i.overflow==="always"?!0:s.value),l=U(()=>{let L=Math.max(0,i.phoneVisible),x=i.items.filter($=>$.priority==="primary");return(x.length?x:i.items).slice(0,L)}),o=U(()=>i.items.filter(L=>!l.value.includes(L))),c=U(()=>o.value.length>0||D2(r,"menu"));function u(L){return s.value&&!!L.icon}function d(L){return L.variant??(L.danger?"danger":void 0)}function f(L){var x;L.disabled||L.loading||((x=L.onSelect)==null||x.call(L),n("select",L.id))}let h=G(!1),m=G(null),p=G(null);function b(){var L;return((L=p.value)==null?void 0:L.$el)??null}let v=!1;function C(){v=h.value}function y(){var x,$;if(v||h.value){v=!1,h.value=!1;return}let L=(x=b())==null?void 0:x.getBoundingClientRect();L&&(($=m.value)==null||$.setPosition(L)),h.value=!0}function g(L){if(h.value=L,L)return;let x=document.activeElement;(!x||x===document.body||!x.isConnected)&&bt(()=>{var $;return($=b())==null?void 0:$.focus()})}return(L,x)=>(_(),M("div",jC,[a.value?(_(),M(ye,{key:1},[(_(!0),M(ye,null,Be(l.value,$=>(_(),M(ye,{key:$.id},[u($)?(_(),oe(At,{key:0,variant:d($),outlined:$.outlined,size:e.size,disabled:$.disabled,loading:$.loading,icon:$.icon,"aria-label":$.label,"aria-pressed":$.pressed,onClick:O=>f($)},null,8,["variant","outlined","size","disabled","loading","icon","aria-label","aria-pressed","onClick"])):(_(),oe(At,{key:1,variant:d($),outlined:$.outlined,size:e.size,disabled:$.disabled,loading:$.loading,icon:$.icon,"aria-pressed":$.pressed,onClick:O=>f($)},{default:X(()=>[ce(Z($.label),1)]),_:2},1032,["variant","outlined","size","disabled","loading","icon","aria-pressed","onClick"]))],64))),128)),c.value?(_(),oe(At,{key:0,ref_key:"triggerRef",ref:p,class:"nb-action-group__more",variant:"ghost",size:e.size,icon:WC,"aria-label":e.overflowLabel,"aria-haspopup":"menu","aria-expanded":h.value,onMousedown:C,onClick:y},null,8,["size","aria-label","aria-expanded"])):R("",!0),c.value?(_(),oe(AC,{key:1,ref_key:"menuRef",ref:m,open:h.value,"onUpdate:open":g},{default:X(()=>[(_(!0),M(ye,null,Be(o.value,$=>(_(),oe(bg,{key:$.id,label:$.label,icon:$.icon,disabled:$.disabled||$.loading,danger:$.danger,selectable:$.pressed!==void 0,selected:$.pressed,onSelect:O=>f($)},null,8,["label","icon","disabled","danger","selectable","selected","onSelect"]))),128)),Le(L.$slots,"menu")]),_:3},8,["open"])):R("",!0)],64)):(_(!0),M(ye,{key:0},Be(e.items,$=>(_(),oe(At,{key:$.id,variant:d($),outlined:$.outlined,size:e.size,disabled:$.disabled,loading:$.loading,icon:$.icon,"aria-pressed":$.pressed,onClick:O=>f($)},{default:X(()=>[ce(Z($.label),1)]),_:2},1032,["variant","outlined","size","disabled","loading","icon","aria-pressed","onClick"]))),128))]))}});const La=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},KC=La("copy","0 0 256 256",'<path d="M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"/>'),qC=La("copy","0 0 256 256",'<path d="M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"/>'),v8=La("copy","0 0 256 256",'<path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"/>'),GC=La("copy","0 0 256 256",'<path d="M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"/>'),YC=La("copy","0 0 256 256",'<path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"/>'),XC=La("copy","0 0 256 256",'<path d="M216,40V168H168V88H88V40Z" opacity="0.2"/><path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"/>'),JC="copy",QC=Object.freeze(Object.defineProperty({__proto__:null,bold:GC,default:v8,duotone:XC,fill:YC,glyphName:JC,light:qC,regular:v8,thin:KC},Symbol.toStringTag,{value:"Module"}));var ek={class:"nb-copy-button"},tk={class:"nb-copy-button__status",role:"status"},ik=Pe({__name:"CopyButton",props:{text:{},label:{default:"Copy"},copiedLabel:{default:"Copied"},size:{default:"xs"},duration:{default:1500}},emits:["copied","error"],setup(e,{emit:t}){let i=e,n=t,r=G(!1),s;async function a(o){var d,f;if((d=navigator.clipboard)!=null&&d.writeText)try{await navigator.clipboard.writeText(o);return}catch{}let c=document.createElement("textarea");c.value=o,c.setAttribute("readonly",""),c.style.position="fixed",c.style.opacity="0",document.body.appendChild(c),c.select();let u=((f=document.execCommand)==null?void 0:f.call(document,"copy"))??!1;if(c.remove(),!u)throw Error("The browser did not allow copying.")}async function l(){try{await a(i.text)}catch(o){n("error",o);return}r.value=!0,n("copied",i.text),clearTimeout(s),s=setTimeout(()=>r.value=!1,i.duration)}return Ot(()=>clearTimeout(s)),(o,c)=>{let u=Xn("nb-tooltip");return _(),M("span",ek,[Tt(Y(At,{"aria-label":r.value?e.copiedLabel:e.label,class:Ee(["nb-copy-button__button",{"nb-copy-button__button--copied":r.value}]),variant:"ghost",size:e.size,icon:r.value?yr:QC,onClick:Qe(l,["stop","prevent"]),onPointerdown:c[0]||(c[0]=Qe(()=>{},["stop"])),onMousedown:c[1]||(c[1]=Qe(()=>{},["stop"])),onDblclick:c[2]||(c[2]=Qe(()=>{},["stop"]))},null,8,["aria-label","class","size","icon"]),[[u,{body:r.value?e.copiedLabel:e.label,aria:"none"}]]),w("span",tk,Z(r.value?e.copiedLabel:""),1)])}}});const Ea=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},nk=Ea("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"/>'),rk=Ea("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"/>'),g8=Ea("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"/>'),sk=Ea("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"/>'),ak=Ea("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=Ea("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"/>'),ok="arrow-up",ck=Object.freeze(Object.defineProperty({__proto__:null,bold:sk,default:g8,duotone:lk,fill:ak,glyphName:ok,light:rk,regular:g8,thin:nk},Symbol.toStringTag,{value:"Module"}));var uk=["1/3","2/3","1/5","2/5","3/5","4/5","1/6","5/6"],Mi=Pe({__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=>{if(typeof i=="string"&&i.includes("/"))return uk.includes(i);let n=typeof i=="string"?parseInt(i,10):i;return n>=1&&n<=16&&!isNaN(n)};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 n=typeof i=="string"?parseInt(i,10):i;return n>=0&&n<=15&&!isNaN(n)};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"],n=G();t({getRef:()=>n.value});let r=e,s=y=>y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function a(y,g){let{collection:L,breakpoint:x}=g,$=x?`${x}-`:"";L[`${$}${y}`]=!0}function l(y,g){let{collection:L,breakpoint:x,classMap:$}=g,O=x?`${x}-`:"",F=($==null?void 0:$[y])??y;L[`${O}align-${F}`]=!0}function o(y,g){let{collection:L,breakpoint:x,classMap:$}=g,O=x?`${x}-`:"",F=($==null?void 0:$[y])??y;L[`${O}justify-${F}`]=!0}function c(y,g){let{collection:L,breakpoint:x}=g,$=x?`${x}-`:"";L[`${$}gap-${y}`]=!0}function u(y,g){let{collection:L,breakpoint:x}=g,$=x?`${x}-`:"";L[`${$}grid-${String(y).replace("/","-")}`]=!0}function d(y,g){let{collection:L,breakpoint:x}=g,$=x?`${x}-`:"";L[`${$}shift-${y}`]=!0}function f(y,g){let{collection:L,breakpoint:x}=g,$=x?`${x}-`:"";L[`${$}${y}`]=!0}function h(y,g){if(!y)return;let{collection:L,breakpoint:x}=g,$=x?`${x}-`:"";L[`${$}reverse`]=!0}function m(y,g,L){if(!y)return;let{collection:x,breakpoint:$}=g,O=$?`${$}-`:"";x[`${O}${L}`]=!0}function p(y,g){let{collection:L,breakpoint:x}=g,$=x?`${x}-`:"";L[`${$}${y?"visible":"hidden"}`]=!0}function b(y,g,L){let x={};if(y==null)return x;if(typeof y=="function"){let $=y();return $!=null&&g($,{collection:x,classMap:L}),x}return typeof y=="string"||typeof y=="number"||typeof y=="boolean"?(g(y,{collection:x,classMap:L}),x):Array.isArray(y)?(y.forEach($=>{g(!0,{collection:x,breakpoint:s($),classMap:L})}),x):(typeof y=="object"&&Object.entries(y).forEach(([$,O])=>{O!=null&&g(O,{collection:x,breakpoint:s($),classMap:L})}),x)}let v=y=>{let g={top:"start",bottom:"end",center:"center",stretch:"stretch",baseline:"base"},L={left:"start",right:"end",center:"center",between:"between",around:"around",evenly:"evenly"};return{"nb-grid":!0,...b(y.dir,a),...b(y.align,l,g),...b(y.justify,o,L),...b(y.gap,c),...b(y.grid,u),...b(y.shift,d),...b(y.wrap,f),...b(y.reverse,h),...b(y.first,(x,$)=>m(x,$,"first")),...b(y.last,(x,$)=>m(x,$,"last")),...b(y.visible,p),...y.flex?{flex:!0}:{},...y.distributed?{distributed:!0}:{},...y.mode?{[y.mode]:!0}:{},...y.grow?{grow:!0}:{},...y.shrink!==null&&y.shrink!==void 0?{[`shrink-${y.shrink?"1":"0"}`]:!0}:{}}},C=U(()=>v(r));return(y,g)=>(_(),oe(Ca(y.is),{id:y.id,ref_key:"root",ref:n,class:Ee(C.value),tabindex:y.tabIndex??!i.includes(y.is)?"-1":"0"},{default:X(()=>[Le(y.$slots,"default")]),_:3},8,["id","class","tabindex"]))}}),dk=["for","title"],hk={class:"nb-field__control"},fk={key:2,class:"nb-field__hint"},Z2=it(Pe({__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=Vi(),n=U(()=>t.labelFor??i);return(r,s)=>(_(),M("div",{class:Ee(["nb-field",`nb-field--${e.orientation}`,`nb-field--align-${e.align}`,`nb-field--control-${e.control}`])},[r.$slots.label?Le(r.$slots,"label",{key:0},void 0,!0):e.label?(_(),M("label",{key:1,class:"nb-field__label",for:n.value,title:e.label},Z(e.label),9,dk)):R("",!0),w("div",hk,[Le(r.$slots,"default",{id:n.value},void 0,!0)]),e.hint||r.$slots.hint?(_(),M("div",fk,[Le(r.$slots,"hint",{},()=>[ce(Z(e.hint),1)],!0)])):R("",!0)],2))}}),[["__scopeId","data-v-155eb839"]]),Zs=it(Pe({__name:"Panel",props:{layer:{default:void 0}},setup(e){let t=e,{layerProps:i}=ha({level:()=>t.layer});return(n,r)=>(_(),M("div",Lt({class:"nb-panel"},_e(i)),[Le(n.$slots,"default",{},void 0,!0)],16))}}),[["__scopeId","data-v-a0d6ea95"]]),wg=function(e){return e.Small="sm",e.Medium="md",e}(wg||{}),pk=["for"],_k={key:0,class:"nb-label__asterisk","aria-hidden":"true"},xa=it(Pe({__name:"Label",props:{htmlFor:{default:void 0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:wg.Medium}},setup(e){return(t,i)=>(_(),M("label",{for:e.htmlFor,class:Ee(["nb-label",`nb-label--${e.size}`,{"nb-label--required":e.required,"nb-label--disabled":e.disabled}])},[Le(t.$slots,"default",{},void 0,!0),e.required?(_(),M("span",_k,"*")):R("",!0),Le(t.$slots,"suffix",{},void 0,!0)],10,pk))}}),[["__scopeId","data-v-836b13c6"]]);const Ha=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},mk=Ha("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"/>'),vk=Ha("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"/>'),Vd=Ha("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"/>'),gk=Ha("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"/>'),bk=Ha("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"/>'),yk=Ha("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"/>'),wk="warning-circle",Ta=Object.freeze(Object.defineProperty({__proto__:null,bold:gk,default:Vd,duotone:yk,fill:bk,glyphName:wk,light:vk,regular:Vd,thin:mk},Symbol.toStringTag,{value:"Module"})),Na=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Sk=Na("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"/>'),Ck=Na("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"/>'),Kr=Na("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"/>'),kk=Na("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"/>'),Ak=Na("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"/>'),$k=Na("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"/>'),Mk="warning",Pu=Object.freeze(Object.defineProperty({__proto__:null,bold:kk,default:Kr,duotone:$k,fill:Ak,glyphName:Mk,light:Ck,regular:Kr,thin:Sk},Symbol.toStringTag,{value:"Module"})),Pa=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Lk=Pa("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"/>'),Ek=Pa("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"/>'),b8=Pa("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"/>'),xk=Pa("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"/>'),Hk=Pa("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"/>'),Tk=Pa("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"/>'),Nk="check-circle",Oa=Object.freeze(Object.defineProperty({__proto__:null,bold:xk,default:b8,duotone:Tk,fill:Hk,glyphName:Nk,light:Ek,regular:b8,thin:Lk},Symbol.toStringTag,{value:"Module"}));var Uc=function(e){return e.Error="error",e.Warning="warning",e.Success="success",e.Helper="helper",e}(Uc||{}),Pk=["aria-live"],Ok={key:0,class:"nb-message__text"},Rk={key:1,class:"nb-message__tooltip","aria-hidden":"true"},ct=it(Pe({__name:"Message",props:{variant:{default:Uc.Helper},iconOnly:{type:Boolean,default:!1}},setup(e){let t=e,i={error:Ta,warning:Pu,success:Oa,helper:Nu};return(n,r)=>(_(),M("div",{class:Ee(["nb-message",`nb-message--${t.variant}`,{"nb-message--icon-only":t.iconOnly}]),role:"status","aria-live":t.variant==="error"?"assertive":"polite"},[Y(qe,{name:i[t.variant],size:14,class:"nb-message__icon"},null,8,["name"]),t.iconOnly?R("",!0):(_(),M("span",Ok,[Le(n.$slots,"default",{},void 0,!0)])),t.iconOnly?(_(),M("span",Rk,[Le(n.$slots,"default",{},void 0,!0)])):R("",!0)],10,Pk))}}),[["__scopeId","data-v-16381f81"]]);function Ik(e){let t=Pt("nb-menu",null);t&&(Oe(e,(i,n)=>{n&&t.unregisterSurface(n),i&&t.registerSurface(i)}),Ot(()=>{e.value&&t.unregisterSurface(e.value)}))}const Vk=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},y8=Vk("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"/>'),Ra=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Dk=Ra("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"/>'),Zk=Ra("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"/>'),is=Ra("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"/>'),Bk=Ra("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"/>'),Fk=Ra("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"/>'),zk=Ra("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"/>'),Uk="x",Wc=Object.freeze(Object.defineProperty({__proto__:null,bold:Bk,default:is,duotone:zk,fill:Fk,glyphName:Uk,light:Zk,regular:is,thin:Dk},Symbol.toStringTag,{value:"Module"}));var Wk=["id","aria-expanded","aria-disabled","aria-required","disabled"],jk={key:2,class:"nb-select__clear-space","aria-hidden":"true"},Kk=["aria-label"],qk=["id","aria-expanded","aria-disabled","aria-required","disabled"],Gk={key:1,class:"nb-select__inner-label"},Yk={key:0,class:"nb-select__asterisk","aria-hidden":"true"},Xk={key:0,class:"nb-select__clear-space","aria-hidden":"true"},Jk=["aria-label"],Qk=["id","aria-multiselectable"],eA={key:0,class:"nb-select__search"},tA=["placeholder","aria-label","aria-controls","aria-activedescendant"],iA=["aria-labelledby"],nA=["id"],rA=["id","data-index","aria-selected","aria-disabled","onMouseenter","onClick"],sA={key:0,class:"nb-select__option-check","aria-hidden":"true"},aA={key:0,viewBox:"0 0 10 8",fill:"none",width:"10",height:"8"},lA={class:"nb-select__option-label"},oA={key:1,class:"nb-select__empty"},cA={key:2,class:"nb-select__empty"},uA=["placeholder","onKeydown"],Ia=Pe({__name:"Select",props:{modelValue:{default:null},options:{default:()=>[]},multiple:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},createPlaceholder:{default:""},clearable:{type:Boolean,default:!1},clearLabel:{default:"Clear selection"},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search…"},noResultsLabel:{default:"No results"},anchor:{type:[Function,null],default:null},selectedMark:{default:"fill"},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 n=e,r=i,s=(Q,{slots:S})=>{var T,V;return Q.wrap?He("div",{class:"nb-select__control"},(T=S.default)==null?void 0:T.call(S)):(V=S.default)==null?void 0:V.call(S)};s.props=["wrap"];let a=G(""),l=G(""),o=G(null);function c(){let Q=a.value.trim();Q&&(r("create",Q),a.value="")}let u=G(!1),d=G(!1),f=G(-1),h=G(null),m=G(null),p=nn(),b=()=>(typeof n.anchor=="function"?n.anchor():n.anchor)??m.value??h.value;function v(){var Q,S;(S=m.value??((Q=h.value)==null?void 0:Q.querySelector("button, [tabindex]")))==null||S.focus()}let C=G(null);Ik(C);let y=G({position:"fixed",top:"0px",left:"0px",width:"0px",zIndex:"9999"}),g=`nb-select-${Vi()}`,L=U(()=>n.id??g),x=U(()=>`${L.value}-listbox`),$=Q=>`${L.value}-option-${Q}`,O=U(()=>n.modelValue==null?[]:Array.isArray(n.modelValue)?n.modelValue:[n.modelValue]),F=U(()=>{var Q;if(!(n.multiple||O.value.length!==1))return(Q=(n.options??[]).find(S=>S.value===O.value[0]))==null?void 0:Q.icon}),ie=U(()=>{var S,T;if(O.value.length===0)return"";let Q=n.options??[];return n.multiple?O.value.length===1?((S=Q.find(V=>V.value===O.value[0]))==null?void 0:S.label)??String(O.value[0]):O.value.length===2?O.value.map(V=>{var ee;return((ee=Q.find(de=>de.value===V))==null?void 0:ee.label)??String(V)}).join(", "):`${O.value.length} selected`:((T=Q.find(V=>V.value===O.value[0]))==null?void 0:T.label)??String(O.value[0])});function B(Q){return O.value.includes(Q)}let A=Q=>Q.normalize("NFD").replace(new RegExp("\\p{M}","gu"),"").toLowerCase(),H=U(()=>{let Q=n.options??[],S=n.searchable?A(l.value.trim()):"",T=new Set;return Q.forEach((V,ee)=>{(!S||A(V.label).includes(S))&&T.add(ee)}),T}),I=U(()=>{let Q=[];return(n.options??[]).forEach((S,T)=>{if(!H.value.has(T))return;let V=Q[Q.length-1];(!V||V.name!==S.group)&&Q.push({key:`${Q.length}:${S.group??""}`,name:S.group,labelId:`${L.value}-group-${Q.length}`,entries:[]}),Q[Q.length-1].entries.push({option:S,index:T})}),Q});function D(Q,S){let T=n.options??[];for(let V=Q+S;V>=0&&V<T.length;V+=S)if(!T[V].disabled&&H.value.has(V))return V;return Q}function q(Q){if(Q.disabled)return;let S;if(n.multiple){let T=[...O.value],V=T.indexOf(Q.value);V>=0?T.splice(V,1):T.push(Q.value),S=T}else S=Q.value,ge();r("update:modelValue",S),r("change",S)}function re(){var k;let Q=b();if(!Q)return;let S=Q.getBoundingClientRect(),T=((k=C.value)==null?void 0:k.offsetHeight)??0,V=window.innerHeight-S.bottom,ee=S.top,de=T>0&&V<T&&ee>V,pe=p.trigger?Math.max(S.width,240):S.width,we=p.trigger?Math.max(8,Math.min(S.left,window.innerWidth-pe-8)):S.left;y.value={position:"fixed",top:de?`${S.top-T}px`:`${S.bottom}px`,left:`${we}px`,width:`${pe}px`,zIndex:"9999"}}function ae(){if(n.disabled)return;u.value=!0,re();let Q=n.options??[];f.value=O.value.length>0?Math.max(0,Q.findIndex(S=>S.value===O.value[0])):-1,bt(()=>{var S;re(),he(),(S=o.value)==null||S.focus({preventScroll:!0})})}function ge(){var S;let Q=!!((S=C.value)!=null&&S.contains(document.activeElement));u.value=!1,f.value=-1,l.value="",Q&&v()}function xe(){u.value?ge():ae()}function J(Q){var ee,de;let S=Q.target,T=((ee=h.value)==null?void 0:ee.contains(S))??!1,V=((de=C.value)==null?void 0:de.contains(S))??!1;!T&&!V&&ge()}function ve(){u.value&&re()}Oe(u,Q=>{Q?(document.addEventListener("mousedown",J),window.addEventListener("scroll",ve,!0),window.addEventListener("resize",ve)):(document.removeEventListener("mousedown",J),window.removeEventListener("scroll",ve,!0),window.removeEventListener("resize",ve))}),Ot(()=>{document.removeEventListener("mousedown",J),window.removeEventListener("scroll",ve,!0),window.removeEventListener("resize",ve)});function fe(Q){let S=n.options??[];if(!u.value){(Q.key==="Enter"||Q.key===" "||Q.key==="ArrowDown")&&(Q.preventDefault(),ae());return}Q.key==="Escape"?(ge(),Q.preventDefault()):Q.key==="Tab"?ge():Q.key==="ArrowDown"?(Q.preventDefault(),f.value=D(f.value,1),he()):Q.key==="ArrowUp"?(Q.preventDefault(),f.value>0&&(f.value=D(f.value,-1)),he()):(Q.key==="Enter"||Q.key===" ")&&f.value>=0&&(Q.preventDefault(),q(S[f.value]))}function he(){bt(()=>{var Q;!C.value||f.value<0||((Q=C.value.querySelector(`[data-index="${f.value}"]`))==null||Q.scrollIntoView({block:"nearest"}))})}Oe(l,()=>{if(!u.value)return;let Q=D(-1,1);f.value=Q===-1?-1:Q,he()});function te(Q){if(Q.key===" "){Q.stopPropagation();return}if(Q.key==="Home"||Q.key==="End"){Q.stopPropagation();return}fe(Q)}let ue=U(()=>({isOpen:u.value,toggle:xe,open:ae,close:ge,attrs:{"aria-expanded":u.value,"aria-haspopup":"listbox","aria-controls":u.value?x.value:void 0,onClick:xe}})),j=U(()=>n.clearable&&!n.disabled&&O.value.length>0);function K(){let Q=n.multiple?[]:null;ge(),r("update:modelValue",Q),r("change",Q),v()}let se=U(()=>["nb-select",`nb-select--${n.variant}`,`nb-select--${n.size}`,{"nb-select--open":u.value,"nb-select--focused":d.value&&!u.value,"nb-select--error":!!n.error,"nb-select--warning":!n.error&&!!n.warning,"nb-select--multiple":n.multiple,"nb-select--bare":!!p.trigger}]);return t({open:ae,close:ge}),(Q,S)=>(_(),M(ye,null,[w("div",{ref_key:"rootRef",ref:h,class:Ee(se.value),onKeydown:fe},[Q.$slots.trigger?Le(Q.$slots,"trigger",d3(Lt({key:0},ue.value))):e.variant==="default"?(_(),M(ye,{key:1},[Q.$slots.label?Le(Q.$slots,"label",{key:0}):e.label?(_(),oe(xa,{key:1,for:L.value,required:e.required,disabled:e.disabled},{default:X(()=>[ce(Z(e.label),1)]),_:1},8,["for","required","disabled"])):R("",!0),Y(s,{wrap:e.clearable},{default:X(()=>[w("button",{id:L.value,ref_key:"triggerRef",ref:m,type:"button",class:"nb-select__trigger",role:"combobox","aria-expanded":u.value,"aria-haspopup":"listbox","aria-disabled":e.disabled||void 0,"aria-required":e.required||void 0,disabled:e.disabled||void 0,onClick:xe,onFocus:S[0]||(S[0]=T=>d.value=!0),onBlur:S[1]||(S[1]=T=>d.value=!1)},[w("span",{class:Ee(["nb-select__value",{"nb-select__value--placeholder":!ie.value,"nb-select__value--with-icon":!!F.value}])},[F.value?(_(),oe(qe,{key:0,class:"nb-select__value-icon",name:F.value,size:16},null,8,["name"])):R("",!0),ie.value?Le(Q.$slots,"value",{key:1,values:O.value},()=>[ce(Z(ie.value),1)]):(_(),M(ye,{key:2},[ce(Z(e.placeholder),1)],64))],2),e.error?(_(),oe(ct,{key:0,variant:"error","icon-only":!0,class:"nb-select__status-icon"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:1,variant:"warning","icon-only":!0,class:"nb-select__status-icon"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):R("",!0),j.value?(_(),M("span",jk)):R("",!0),Y(Mi,{align:"center",justify:"center",class:"nb-select__caret"},{default:X(()=>[Y(qe,{name:u.value?_e(y8):_e(p8),size:16},null,8,["name"])]),_:1})],40,Wk),j.value?(_(),M("button",{key:0,type:"button",class:"nb-select__clear","aria-label":e.clearLabel,onClick:K,onKeydown:[S[2]||(S[2]=Ri(Qe(()=>{},["stop"]),["enter"])),S[3]||(S[3]=Ri(Qe(()=>{},["stop"]),["space"]))]},[Y(qe,{name:_e(is),size:16},null,8,["name"])],40,Kk)):R("",!0)]),_:3},8,["wrap"]),e.error?(_(),oe(ct,{key:2,variant:"error",class:"nb-select__message"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:3,variant:"warning",class:"nb-select__message"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):e.helper?(_(),oe(ct,{key:4,variant:"helper",class:"nb-select__message"},{default:X(()=>[ce(Z(e.helper),1)]),_:1})):R("",!0)],64)):e.variant==="fluid"?(_(),M(ye,{key:2},[Y(s,{wrap:e.clearable},{default:X(()=>[w("button",{id:L.value,ref_key:"triggerRef",ref:m,type:"button",class:"nb-select__trigger",role:"combobox","aria-expanded":u.value,"aria-haspopup":"listbox","aria-disabled":e.disabled||void 0,"aria-required":e.required||void 0,disabled:e.disabled||void 0,onClick:xe,onFocus:S[4]||(S[4]=T=>d.value=!0),onBlur:S[5]||(S[5]=T=>d.value=!1)},[e.label||Q.$slots.label?(_(),oe(Mi,{key:0,dir:"row",align:"center",gap:"xs",class:"nb-select__inner-header"},{default:X(()=>[Q.$slots.label?Le(Q.$slots,"label",{key:0}):(_(),M("label",Gk,[ce(Z(e.label)+" ",1),e.required?(_(),M("span",Yk,"*")):R("",!0)])),e.helper&&!e.error&&!e.warning?(_(),oe(ct,{key:2,variant:"helper","icon-only":!0,class:"nb-select__inner-message"},{default:X(()=>[ce(Z(e.helper),1)]),_:1})):R("",!0)]),_:3})):R("",!0),Y(Mi,{dir:"row",align:"end",flex:"",class:"nb-select__value-row"},{default:X(()=>[w("span",{class:Ee(["nb-select__value",{"nb-select__value--placeholder":!ie.value,"nb-select__value--with-icon":!!F.value}])},[F.value?(_(),oe(qe,{key:0,class:"nb-select__value-icon",name:F.value,size:16},null,8,["name"])):R("",!0),ie.value?Le(Q.$slots,"value",{key:1,values:O.value},()=>[ce(Z(ie.value),1)]):(_(),M(ye,{key:2},[ce(Z(e.placeholder),1)],64))],2),j.value?(_(),M("span",Xk)):R("",!0),Y(Mi,{align:"center",justify:"center",class:"nb-select__caret"},{default:X(()=>[Y(qe,{name:u.value?_e(y8):_e(p8),size:16},null,8,["name"])]),_:1})]),_:3})],40,qk),j.value?(_(),M("button",{key:0,type:"button",class:"nb-select__clear","aria-label":e.clearLabel,onClick:K,onKeydown:[S[6]||(S[6]=Ri(Qe(()=>{},["stop"]),["enter"])),S[7]||(S[7]=Ri(Qe(()=>{},["stop"]),["space"]))]},[Y(qe,{name:_e(is),size:16},null,8,["name"])],40,Jk)):R("",!0)]),_:3},8,["wrap"]),e.error?(_(),oe(ct,{key:0,variant:"error",class:"nb-select__fluid-message"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:1,variant:"warning",class:"nb-select__fluid-message"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):R("",!0)],64)):R("",!0)],34),(_(),oe(Fi,{to:"body"},[Y(Ds,{name:"nb-select-pop"},{default:X(()=>[u.value?(_(),M("div",{key:0,id:x.value,ref_key:"dropdownRef",ref:C,class:Ee(["nb-select__dropdown",{"nb-select__dropdown--check":e.selectedMark==="check","nb-select__dropdown--anchored":!!Q.$slots.trigger}]),style:$t(y.value),role:"listbox","aria-multiselectable":e.multiple||void 0},[e.searchable?(_(),M("div",eA,[Tt(w("input",{ref_key:"searchRef",ref:o,"onUpdate:modelValue":S[8]||(S[8]=T=>l.value=T),type:"search",class:"nb-select__search-input",autocomplete:"off",spellcheck:"false",placeholder:e.searchPlaceholder,"aria-label":e.searchPlaceholder,"aria-controls":x.value,"aria-activedescendant":f.value>=0?$(f.value):void 0,onKeydown:te},null,40,tA),[[qo,l.value]])])):R("",!0),(_(!0),M(ye,null,Be(I.value,T=>(_(),M("div",{key:T.key,class:"nb-select__group",role:"group","aria-labelledby":T.name?T.labelId:void 0},[T.name?(_(),M("div",{key:0,id:T.labelId,class:"nb-select__group-label"},Z(T.name),9,nA)):R("",!0),(_(!0),M(ye,null,Be(T.entries,V=>(_(),M("div",{id:$(V.index),key:V.option.value,"data-index":V.index,class:Ee(["nb-select__option",{"nb-select__option--selected":B(V.option.value),"nb-select__option--highlighted":f.value===V.index,"nb-select__option--disabled":V.option.disabled}]),role:"option","aria-selected":B(V.option.value),"aria-disabled":V.option.disabled||void 0,onMouseenter:ee=>f.value=V.index,onClick:ee=>q(V.option)},[e.multiple||e.selectedMark==="check"?(_(),M("span",sA,[B(V.option.value)?(_(),M("svg",aA,[...S[12]||(S[12]=[w("path",{d:"M1 4l3 3 5-6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):R("",!0)])):R("",!0),V.option.icon?(_(),oe(qe,{key:1,class:"nb-select__option-icon",name:V.option.icon,size:16},null,8,["name"])):R("",!0),w("span",lA,[Le(Q.$slots,"option",{option:V.option},()=>[ce(Z(V.option.label),1)])])],42,rA))),128))],8,iA))),128)),!e.options||e.options.length===0?(_(),M("div",oA," No options ")):e.searchable&&H.value.size===0?(_(),M("div",cA,Z(e.noResultsLabel),1)):R("",!0),e.creatable?(_(),M("div",{key:3,class:"nb-select__create",onMousedown:S[11]||(S[11]=Qe(()=>{},["prevent"]))},[Tt(w("input",{"onUpdate:modelValue":S[9]||(S[9]=T=>a.value=T),type:"text",class:"nb-select__create-input",placeholder:e.createPlaceholder||"Add new…",onKeydown:[Ri(Qe(c,["prevent"]),["enter"]),S[10]||(S[10]=Qe(()=>{},["stop"]))]},null,40,uA),[[qo,a.value]])],32)):R("",!0)],14,Qk)):R("",!0)]),_:3})]))],64))}}),dA=Symbol.for("@nubisco/ui:text-input-context"),hA={key:0,class:"nb-text-input__overlay-wrap"},fA=["innerHTML"],pA=["id","value","placeholder","disabled","readonly","name","maxlength"],_A=["id","value","placeholder","disabled","readonly","name","maxlength"],mA=["id","placeholder","disabled","readonly","name","maxlength","rows"],vA=["id","type","placeholder","disabled","readonly","required","name","min","max","step","maxlength"],gA={key:2,class:"nb-text-input__actions"},bA={key:0,class:"nb-text-input__inner-header"},yA=["for"],wA={key:0,class:"nb-text-input__asterisk","aria-hidden":"true"},SA=["id","type","placeholder","disabled","readonly","required","name","min","max","step","maxlength"],os=it(Pe({inheritAttrs:!1,__name:"TextInput",props:R4({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,n=Z4(e,"modelValue"),r=G(null),s=G(null);t({focus:()=>{var b;return(b=r.value)==null?void 0:b.focus()},blur:()=>{var b;return(b=r.value)==null?void 0:b.blur()},nativeEl:r}),qi(dA,{field:r});let a=G(!1),l=`nb-input-${Vi()}`,o=U(()=>i.id??l),c=U(()=>!!i.highlight),u=U(()=>{if(!i.highlight)return"";let b=String(n.value??"");return i.highlight(b)+`
41
- `});function d(){s.value&&r.value&&(s.value.scrollTop=r.value.scrollTop)}Oe(u,()=>bt(d));let f=U(()=>i.error?"error":i.warning?"warning":"helper"),h=U(()=>i.error||i.warning||i.helper||""),m=U(()=>!!h.value),p=U(()=>({"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(b,v)=>(_(),oe(Mi,{dir:"col",class:Ee(["nb-text-input",`nb-text-input--${e.variant}`,`nb-text-input--${e.size}`,{"nb-text-input--multiline":e.multiline}])},{default:X(()=>[e.variant==="default"?(_(),M(ye,{key:0},[b.$slots.label?Le(b.$slots,"label",{key:0},void 0,!0):e.label?(_(),oe(xa,{key:1,for:o.value,required:e.required,disabled:e.disabled},{default:X(()=>[ce(Z(e.label),1)]),_:1},8,["for","required","disabled"])):R("",!0),w("div",{class:Ee(["nb-text-input__field-wrapper",p.value])},[Le(b.$slots,"leading",{},void 0,!0),c.value?(_(),M("div",hA,[w("div",{ref_key:"mirrorRef",ref:s,class:"nb-text-input__mirror","aria-hidden":"true",innerHTML:u.value},null,8,fA),e.multiline?(_(),M("textarea",Lt({key:0,id:o.value,ref_key:"nativeRef",ref:r},b.$attrs,{class:"nb-text-input__field--transparent",value:n.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:"false",autocomplete:"off",autocorrect:"off",onInput:v[0]||(v[0]=C=>n.value=C.target.value),onFocus:v[1]||(v[1]=C=>a.value=!0),onBlur:v[2]||(v[2]=C=>a.value=!1),onScroll:d}),null,16,pA)):(_(),M("input",Lt({key:1,id:o.value,ref_key:"nativeRef",ref:r},b.$attrs,{type:"text",class:"nb-text-input__field--transparent",value:n.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:"false",onInput:v[3]||(v[3]=C=>n.value=C.target.value),onFocus:v[4]||(v[4]=C=>a.value=!0),onBlur:v[5]||(v[5]=C=>a.value=!1)}),null,16,_A))])):(_(),M(ye,{key:1},[e.multiline?Tt((_(),M("textarea",Lt({key:0,id:o.value,ref_key:"nativeRef",ref:r},b.$attrs,{"onUpdate:modelValue":v[6]||(v[6]=C=>n.value=C),class:"nb-text-input__field",placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,rows:e.rows,onFocus:v[7]||(v[7]=C=>a.value=!0),onBlur:v[8]||(v[8]=C=>a.value=!1)}),null,16,mA)),[[qo,n.value]]):Tt((_(),M("input",Lt({key:1,id:o.value,ref_key:"nativeRef",ref:r},b.$attrs,{"onUpdate:modelValue":v[9]||(v[9]=C=>n.value=C),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:v[10]||(v[10]=C=>a.value=!0),onBlur:v[11]||(v[11]=C=>a.value=!1)}),null,16,vA)),[[p6,n.value]])],64)),Le(b.$slots,"trailing",{},void 0,!0),b.$slots.actions?(_(),M("div",gA,[Le(b.$slots,"actions",{},void 0,!0)])):R("",!0)],2),m.value?(_(),oe(ct,{key:2,variant:f.value,class:"nb-text-input__message"},{default:X(()=>[ce(Z(h.value),1)]),_:1},8,["variant"])):R("",!0),Le(b.$slots,"dropdown",{},void 0,!0)],64)):e.variant==="fluid"?(_(),M(ye,{key:1},[w("div",{class:Ee(["nb-text-input__field-wrapper",p.value])},[e.label||b.$slots.label?(_(),M("div",bA,[b.$slots.label?Le(b.$slots,"label",{key:0},void 0,!0):(_(),M("label",{key:1,for:o.value,class:Ee(["nb-text-input__inner-label",{"nb-text-input__inner-label--required":e.required}])},[ce(Z(e.label)+" ",1),e.required?(_(),M("span",wA,"*")):R("",!0)],10,yA)),m.value?(_(),oe(ct,{key:2,variant:f.value,"icon-only":"",class:"nb-text-input__inner-message"},{default:X(()=>[ce(Z(h.value),1)]),_:1},8,["variant"])):R("",!0)])):R("",!0),Tt(w("input",Lt({id:o.value,ref_key:"nativeRef",ref:r},b.$attrs,{"onUpdate:modelValue":v[12]||(v[12]=C=>n.value=C),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:v[13]||(v[13]=C=>a.value=!0),onBlur:v[14]||(v[14]=C=>a.value=!1)}),null,16,SA),[[p6,n.value]])],2),Le(b.$slots,"dropdown",{},void 0,!0)],64)):R("",!0)]),_:3},8,["class"]))}}),[["__scopeId","data-v-e6002acb"]]),CA={class:"nb-definition-list__term"},kA={class:"nb-definition-list__value"},AA={key:0,class:"nb-definition-list__empty"},$A="–",MA=it(Pe({__name:"DefinitionList",props:{items:{default:()=>[]},layout:{default:"columns"},termWidth:{default:"minmax(6rem, 0.38fr)"},dividers:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(e){function t(i){return i==null||i===""}return(i,n)=>(_(),M("dl",{class:Ee(["nb-definition-list",[`nb-definition-list--${e.layout}`,{"nb-definition-list--dividers":e.dividers,"nb-definition-list--compact":e.compact}]]),style:$t({"--nb-definition-list-term-w":e.termWidth})},[e.items.length?(_(!0),M(ye,{key:0},Be(e.items,(r,s)=>(_(),M("div",{key:`${r.term}-${s}`,class:"nb-definition-list__row"},[w("dt",CA,Z(r.term),1),w("dd",kA,[t(r.value)?(_(),M("span",AA,Z(r.empty??$A),1)):(_(),M(ye,{key:1},[ce(Z(r.value),1)],64))])]))),128)):Le(i.$slots,"default",{key:1},void 0,!0)],6))}}),[["__scopeId","data-v-7ee82386"]]),Dd=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}(Dd||{}),Zd=function(e){return e.Primary="primary",e.Secondary="secondary",e}(Zd||{}),LA=["for"],EA=["id","name","disabled"],Ou=it(Pe({__name:"Switch",props:R4({id:{type:String,default:()=>null},label:{type:String,default:""},size:{type:String,default:Dd.Medium,validator:e=>Object.values(Dd).includes(e)},verbose:Boolean,hideLabel:Boolean,name:{type:String,required:!0},disabled:Boolean,variant:{type:String,default:Zd.Primary,validator:e=>Object.values(Zd).includes(e)}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){let t=Z4(e,"modelValue"),i=e,n=ka(i),r=U(()=>({"aria-disabled":i.disabled})),s=U(()=>({"nb-switch":!0,disabled:i.disabled})),a=U(()=>({"nb-switch-wrapper":!0,verbose:i.verbose,[i.size]:!0,[`nb-${i.variant}`]:!0}));return(l,o)=>(_(),oe(Mi,{id:_e(n),class:Ee(s.value),align:"center",gap:"sm"},{default:X(()=>[e.label?(_(),oe(xa,{key:0,for:`${_e(n)}-input`,disabled:e.disabled,class:Ee({"nb-switch__label--hidden":e.hideLabel})},{default:X(()=>[ce(Z(e.label),1)]),_:1},8,["for","disabled","class"])):R("",!0),w("label",Lt({for:`${_e(n)}-input`,class:a.value},r.value,{onClick:o[1]||(o[1]=Qe(()=>{},["stop"]))}),[Tt(w("input",{id:`${_e(n)}-input`,"onUpdate:modelValue":o[0]||(o[0]=c=>t.value=c),name:e.name,type:"checkbox",disabled:e.disabled},null,8,EA),[[pv,t.value]]),o[2]||(o[2]=w("div",{class:"slider round"},null,-1))],16,LA)]),_:1},8,["id","class"]))}}),[["__scopeId","data-v-48cbbf78"]]),xA={class:"nb-definition-list__row"},HA={class:"nb-definition-list__term"},TA={class:"nb-definition-list__value"},NA=Pe({__name:"DefinitionListItem",props:{term:{default:""}},setup(e){return(t,i)=>(_(),M("div",xA,[w("dt",HA,[Le(t.$slots,"term",{},()=>[ce(Z(e.term),1)])]),w("dd",TA,[Le(t.$slots,"default")])]))}});const Va=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},PA=Va("tray","0 0 256 256",'<path d="M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H208a4,4,0,0,1,4,4V156H179.31a12,12,0,0,0-8.48,3.51l-19.32,19.32a4,4,0,0,1-2.82,1.17H107.31a4,4,0,0,1-2.82-1.17L85.17,159.51A12,12,0,0,0,76.69,156H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V164H76.69a4,4,0,0,1,2.82,1.17l19.32,19.32a12,12,0,0,0,8.48,3.51h41.38a12,12,0,0,0,8.48-3.51l19.32-19.32a4,4,0,0,1,2.82-1.17H212v44A4,4,0,0,1,208,212Z"/>'),OA=Va("tray","0 0 256 256",'<path d="M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H208a2,2,0,0,1,2,2V154H179.31a13.94,13.94,0,0,0-9.9,4.1L150.1,177.41a2,2,0,0,1-1.41.59H107.31a2,2,0,0,1-1.41-.58L86.59,158.1a13.94,13.94,0,0,0-9.9-4.1H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V166H76.69a2,2,0,0,1,1.41.58L97.41,185.9a13.94,13.94,0,0,0,9.9,4.1h41.38a13.94,13.94,0,0,0,9.9-4.1l19.31-19.31a2,2,0,0,1,1.41-.59H210v42A2,2,0,0,1,208,210Z"/>'),w8=Va("tray","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,32Zm0,16V152h-28.7A15.86,15.86,0,0,0,168,156.69L148.69,176H107.31L88,156.69A15.86,15.86,0,0,0,76.69,152H48V48Zm0,160H48V168H76.69L96,187.31A15.86,15.86,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z"/>'),RA=Va("tray","0 0 256 256",'<path d="M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,24v92H179.31a19.86,19.86,0,0,0-14.14,5.86L147,168H109L90.83,149.86A19.86,19.86,0,0,0,76.69,144H52V52ZM52,204V168H75l18.14,18.14A19.86,19.86,0,0,0,107.31,192h41.38a19.86,19.86,0,0,0,14.14-5.86L181,168h23v36Z"/>'),IA=Va("tray","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,32Zm0,176H48V168H76.69L96,187.32A15.89,15.89,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z"/>'),VA=Va("tray","0 0 256 256",'<path d="M216,48V160H179.31a8,8,0,0,0-5.66,2.34l-19.31,19.32a8,8,0,0,1-5.66,2.34H107.31a8,8,0,0,1-5.66-2.34L82.34,162.34A8,8,0,0,0,76.68,160H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z" opacity="0.2"/><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,32Zm0,16V152h-28.7A15.86,15.86,0,0,0,168,156.69L148.69,176H107.31L88,156.68A15.89,15.89,0,0,0,76.69,152H48V48Zm0,160H48V168H76.69L96,187.32A15.89,15.89,0,0,0,107.31,192h41.38A15.86,15.86,0,0,0,160,187.31L179.31,168H208v40Z"/>'),DA="tray",ZA=Object.freeze(Object.defineProperty({__proto__:null,bold:RA,default:w8,duotone:VA,fill:IA,glyphName:DA,light:OA,regular:w8,thin:PA},Symbol.toStringTag,{value:"Module"})),Da=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},BA=Da("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"/>'),FA=Da("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"/>'),S8=Da("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"/>'),zA=Da("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"/>'),UA=Da("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"/>'),WA=Da("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"/>'),jA="magnifying-glass",Bd=Object.freeze(Object.defineProperty({__proto__:null,bold:zA,default:S8,duotone:WA,fill:UA,glyphName:jA,light:FA,regular:S8,thin:BA},Symbol.toStringTag,{value:"Module"})),Za=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},KA=Za("lock-simple","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,4Z"/>'),qA=Za("lock-simple","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,2Z"/>'),C8=Za("lock-simple","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,208H48V96H208V208Z"/>'),GA=Za("lock-simple","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,204H52V100H204Z"/>'),YA=Za("lock-simple","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,0V80H96Z"/>'),XA=Za("lock-simple","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,208H48V96H208V208Z"/>'),JA="lock-simple",QA=Object.freeze(Object.defineProperty({__proto__:null,bold:GA,default:C8,duotone:XA,fill:YA,glyphName:JA,light:qA,regular:C8,thin:KA},Symbol.toStringTag,{value:"Module"}));var e$={key:0,class:"nb-empty-state__icon"},t$={key:1,class:"nb-empty-state__title"},i$={key:2,class:"nb-empty-state__description"},n$={key:3,class:"nb-empty-state__actions"},t0=it(Pe({__name:"EmptyState",props:{title:{default:""},description:{default:""},icon:{default:void 0},kind:{default:"empty"},size:{default:"md"},bordered:{type:Boolean,default:!1}},setup(e){let t=e,i={empty:ZA,"no-results":Bd,error:Ta,forbidden:QA},n=U(()=>t.icon===null?null:t.icon??i[t.kind]??i.empty);return(r,s)=>(_(),M("div",{class:Ee(["nb-empty-state",[`nb-empty-state--${e.size}`,`nb-empty-state--${e.kind}`,{"nb-empty-state--bordered":e.bordered}]])},[n.value||r.$slots.icon?(_(),M("div",e$,[Le(r.$slots,"icon",{},()=>[Y(qe,{name:n.value,size:e.size==="sm"?24:32},null,8,["name","size"])],!0)])):R("",!0),e.title||r.$slots.title?(_(),M("div",t$,[Le(r.$slots,"title",{},()=>[ce(Z(e.title),1)],!0)])):R("",!0),e.description||r.$slots.default?(_(),M("div",i$,[Le(r.$slots,"default",{},()=>[ce(Z(e.description),1)],!0)])):R("",!0),r.$slots.actions?(_(),M("div",n$,[Le(r.$slots,"actions",{},void 0,!0)])):R("",!0)],2))}}),[["__scopeId","data-v-0508480f"]]);const Ba=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},r$=Ba("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"/>'),s$=Ba("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"/>'),jc=Ba("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"/>'),a$=Ba("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"/>'),l$=Ba("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"/>'),o$=Ba("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"/>'),c$="caret-right",B2=Object.freeze(Object.defineProperty({__proto__:null,bold:a$,default:jc,duotone:o$,fill:l$,glyphName:c$,light:s$,regular:jc,thin:r$},Symbol.toStringTag,{value:"Module"})),Fa=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},u$=Fa("caret-up-down","0 0 256 256",'<path d="M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.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.66Z"/>'),d$=Fa("caret-up-down","0 0 256 256",'<path d="M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.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.48Z"/>'),k8=Fa("caret-up-down","0 0 256 256",'<path d="M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.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,85.66Z"/>'),h$=Fa("caret-up-down","0 0 256 256",'<path d="M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"/>'),f$=Fa("caret-up-down","0 0 256 256",'<path d="M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"/>'),p$=Fa("caret-up-down","0 0 256 256",'<path d="M80,176h96l-48,48ZM128,32,80,80h96Z" opacity="0.2"/><path d="M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"/>'),_$="caret-up-down",m$=Object.freeze(Object.defineProperty({__proto__:null,bold:h$,default:k8,duotone:p$,fill:f$,glyphName:_$,light:d$,regular:k8,thin:u$},Symbol.toStringTag,{value:"Module"}));var v$={key:0,class:"nb-breadcrumbs__brand"},g$={key:0,class:"nb-breadcrumbs__title"},b$={key:1,class:"nb-breadcrumbs__subtitle"},y$={key:2,class:"nb-breadcrumbs__crumbs"},w$={key:1,class:"nb-breadcrumbs__current","aria-current":"page"},S$={key:0,class:"nb-breadcrumbs__code"},C$={key:0,class:"nb-breadcrumbs__code"},k$={key:3,class:"nb-breadcrumbs__parent"},A$={key:0,class:"nb-breadcrumbs__code"},$$={class:"nb-breadcrumbs__option"},M$={class:"nb-breadcrumbs__option-label"},L$=["aria-label"],Sg=it(Pe({__name:"Breadcrumbs",props:{title:{default:void 0},subtitle:{default:void 0},collapse:{default:"none"},items:{default:void 0}},emits:["select","switch"],setup(e,{emit:t}){let i=e,n=t,r=_i(),s=U(()=>{var O;return!!((O=r==null?void 0:r.vnode.props)!=null&&O.onSelect)}),a=U(()=>{let O=i.items??[],F=O.findIndex(ie=>ie.current);return F===-1?O.length-1:F});function l(O){return O===a.value}function o(O){return O.to!=null||!!O.href||!!O.onClick||s.value}function c(O,F,ie){var B;(B=O.onClick)==null||B.call(O,ie),n("select",O,F,ie)}let u=[],d=(O,F)=>O.value??F;function f(O){return(O.options??[]).map((F,ie)=>({label:F.label,value:d(F,ie),icon:F.picture===void 0?F.icon:void 0}))}function h(O){return(O.options??[]).some(F=>F.picture!==void 0)}function m(O,F){let ie=O.options??[],B=ie.findIndex((A,H)=>d(A,H)===F);return B===-1?void 0:ie[B].picture}function p(O){if(O.value!=null)return O.value;let F=O.options??[],ie=F.findIndex(B=>B.label===O.label);return ie===-1?null:d(F[ie],ie)}function b(O,F,ie){let B=O.options??[],A=B.findIndex((I,D)=>d(I,D)===ie);if(A===-1||ie===p(O))return;let H=B[A];n("switch",O,H,F),v(H)}function v(O){let F=r==null?void 0:r.appContext.config.globalProperties.$router;O.to==null?O.href&&window.location.assign(O.href):F?F.push(O.to):typeof O.to=="string"&&window.location.assign(O.to)}let C=nn();function y(O){return O.some(F=>F.type===li?!1:F.type===rs?String(F.children??"").trim()!=="":F.type===ye?y(F.children??[]):!0)}let g=U(()=>{var O;return y(((O=C.default)==null?void 0:O.call(C))??[])}),L=U(()=>{var O;return!!((O=i.items)!=null&&O.length)||g.value}),{phone:x}=vn(),$=U(()=>i.collapse==="phone"&&x.value&&L.value);return(O,F)=>{var ie;return _(),M("nav",{class:Ee(["nb-breadcrumbs",{"nb-breadcrumbs--collapsed":$.value}]),"aria-label":"breadcrumb"},[e.title||e.subtitle?(_(),M("span",v$,[e.title?(_(),M("span",g$,Z(e.title),1)):R("",!0),e.subtitle?(_(),M("span",b$,Z(e.subtitle),1)):R("",!0)])):R("",!0),(e.title||e.subtitle)&&L.value?(_(),oe(qe,{key:1,name:_e(jc),size:"sm",class:"nb-breadcrumbs__sep"},null,8,["name"])):R("",!0),L.value?(_(),M("span",y$,[(ie=e.items)!=null&&ie.length?(_(!0),M(ye,{key:0},Be(e.items,(B,A)=>{var H;return _(),M("span",{key:A,ref_for:!0,ref:I=>u[A]=I,class:"nb-breadcrumbs__item"},[B.picture===void 0?R("",!0):(_(),oe(zc,{key:0,class:"nb-breadcrumbs__picture",name:B.label,picture:B.picture,size:16,decorative:""},null,8,["name","picture"])),l(A)?(_(),M("span",w$,[B.code?(_(),M("code",S$,Z(B.label),1)):(_(),M(ye,{key:1},[ce(Z(B.label),1)],64))])):o(B)?(_(),oe(At,{key:2,class:"nb-breadcrumbs__link",variant:"link",to:B.to,href:B.href,target:B.target,onClick:I=>c(B,A,I)},{default:X(()=>[B.code?(_(),M("code",C$,Z(B.label),1)):(_(),M(ye,{key:1},[ce(Z(B.label),1)],64))]),_:2},1032,["to","href","target","onClick"])):(_(),M("span",k$,[B.code?(_(),M("code",A$,Z(B.label),1)):(_(),M(ye,{key:1},[ce(Z(B.label),1)],64))])),(H=B.options)!=null&&H.length?(_(),oe(Ia,{key:4,class:"nb-breadcrumbs__switcher",searchable:"","selected-mark":"check",anchor:()=>u[A],"model-value":p(B),options:f(B),"search-placeholder":B.searchPlaceholder??"Find","no-results-label":B.noResultsLabel??"No results",onChange:I=>b(B,A,I)},v0({trigger:X(({attrs:I})=>[w("button",Lt({type:"button",class:"nb-breadcrumbs__switch"},{ref_for:!0},I,{"aria-label":B.switchLabel??`Switch ${B.label}`}),[Y(qe,{name:m$,size:14,"aria-hidden":"true"})],16,L$)]),_:2},[h(B)?{name:"option",fn:X(({option:I})=>[w("span",$$,[m(B,I.value)===void 0?R("",!0):(_(),oe(zc,{key:0,class:"nb-breadcrumbs__option-picture",name:I.label,picture:m(B,I.value),size:16,decorative:""},null,8,["name","picture"])),w("span",M$,Z(I.label),1)])]),key:"0"}:void 0]),1032,["anchor","model-value","options","search-placeholder","no-results-label","onChange"])):R("",!0)])}),128)):Le(O.$slots,"default",{key:1},void 0,!0)])):R("",!0)],2)}}}),[["__scopeId","data-v-6e4b14fc"]]),Cg=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}(Cg||{}),kg=function(e){return e.Small="sm",e.Medium="md",e}(kg||{}),E$={key:0,class:"nb-badge__dot"},Jn=it(Pe({__name:"Badge",props:{variant:{default:Cg.Grey},size:{default:kg.Medium},dot:{type:Boolean,default:!1},icon:{default:void 0},placeholder:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},setup(e){return(t,i)=>(_(),oe(Ca(e.interactive?"button":"span"),{type:e.interactive?"button":void 0,class:Ee(["nb-badge",`nb-badge--${e.variant}`,`nb-badge--${e.size}`,{"nb-badge--placeholder":e.placeholder,"nb-badge--interactive":e.interactive}])},{default:X(()=>[e.dot?(_(),M("span",E$)):R("",!0),e.icon?(_(),oe(qe,{key:1,name:e.icon,size:e.size==="sm"?11:12,class:"nb-badge__icon"},null,8,["name","size"])):R("",!0),Le(t.$slots,"default",{},void 0,!0)]),_:3},8,["type","class"]))}}),[["__scopeId","data-v-aa5af746"]]);const za=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},x$=za("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"/>'),H$=za("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"/>'),A8=za("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"/>'),T$=za("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"/>'),N$=za("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"/>'),P$=za("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"/>'),O$="x-circle",R$=Object.freeze(Object.defineProperty({__proto__:null,bold:T$,default:A8,duotone:P$,fill:N$,glyphName:O$,light:H$,regular:A8,thin:x$},Symbol.toStringTag,{value:"Module"})),Ua=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},I$=Ua("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"/>'),V$=Ua("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"/>'),$8=Ua("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"/>'),D$=Ua("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"/>'),Z$=Ua("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"/>'),B$=Ua("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"/>'),F$="note",z$=Object.freeze(Object.defineProperty({__proto__:null,bold:D$,default:$8,duotone:B$,fill:Z$,glyphName:F$,light:V$,regular:$8,thin:I$},Symbol.toStringTag,{value:"Module"}));var Fd=function(e){return e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e.Neutral="neutral",e}(Fd||{}),zd=function(e){return e.Inline="inline",e.Callout="callout",e}(zd||{}),U$=["role","aria-live"],W$={class:"nb-banner__body"},j$={key:0,class:"nb-banner__title"},K$={key:1,class:"nb-banner__text"},q$={key:1,class:"nb-banner__actions"},G$=["aria-label"],Cr=it(Pe({__name:"Banner",props:{status:{default:Fd.Info},variant:{default:zd.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,n=t,r=nn(),s=U(()=>!!r.default),a=U(()=>!!r.action),l=U(()=>i.dismissible&&i.variant!==zd.Callout),o=U(()=>i.status===Fd.Error),c=G(!1);function u(){c.value=!0,n("dismiss")}let d={info:Nu,success:Oa,warning:Pu,error:R$,neutral:z$};return(f,h)=>c.value?R("",!0):(_(),M("div",{key:0,class:Ee(["nb-banner",`nb-banner--${i.status}`,`nb-banner--${i.variant}`,{"nb-banner--flush":i.flush}]),role:o.value?"alert":"status","aria-live":o.value?"assertive":"polite"},[i.hideIcon?R("",!0):(_(),oe(qe,{key:0,name:i.icon??d[i.status],size:18,weight:"fill",class:"nb-banner__icon","aria-hidden":"true"},null,8,["name"])),w("p",W$,[i.title?(_(),M("strong",j$,Z(i.title),1)):R("",!0),s.value?(_(),M("span",K$,[Le(f.$slots,"default",{},void 0,!0)])):R("",!0)]),a.value?(_(),M("div",q$,[Le(f.$slots,"action",{},void 0,!0)])):R("",!0),l.value?(_(),M("button",{key:2,type:"button",class:"nb-banner__close","aria-label":i.closeLabel,onClick:u},[Y(qe,{name:_e(is),size:14},null,8,["name"])],8,G$)):R("",!0)],10,U$))}}),[["__scopeId","data-v-291ff455"]]),Y$={key:0,class:"nb-chart__header"},X$={key:0,class:"nb-chart__title"},J$={key:1,class:"nb-chart__subtitle"},F2=it(Pe({__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,n=G(null),r=U(()=>{let s=i.height;return typeof s=="number"||/^\d+(\.\d+)?$/.test(s)?`${s}px`:s});return t({viewport:n}),(s,a)=>(_(),M("figure",{class:"nb-chart",style:$t({height:r.value})},[e.title||e.subtitle?(_(),M("figcaption",Y$,[e.title?(_(),M("h4",X$,Z(e.title),1)):R("",!0),e.subtitle?(_(),M("p",J$,Z(e.subtitle),1)):R("",!0)])):R("",!0),w("div",{ref_key:"viewport",ref:n,class:"nb-chart__viewport"},[Le(s.$slots,"default",{},void 0,!0)],512),e.showLegend?Le(s.$slots,"legend",{key:1},void 0,!0):R("",!0)],4))}}),[["__scopeId","data-v-0b28100e"]]),Q$={key:0,class:"nb-chart__tooltip-title"},eM={class:"nb-chart__tooltip-rows"},tM={class:"nb-chart__tooltip-label"},iM={class:"nb-chart__tooltip-value"},z2=it(Pe({__name:"ChartTooltip",props:{visible:{type:Boolean},x:{},y:{},title:{},rows:{}},setup(e){return(t,i)=>(_(),oe(Ds,{name:"nb-chart-tooltip"},{default:X(()=>[e.visible?(_(),M("div",{key:0,class:"nb-chart__tooltip",style:$t({transform:`translate(${e.x}px, ${e.y}px)`}),role:"tooltip"},[e.title?(_(),M("div",Q$,Z(e.title),1)):R("",!0),w("ul",eM,[(_(!0),M(ye,null,Be(e.rows,(n,r)=>(_(),M("li",{key:`${n.label}-${r}`,class:"nb-chart__tooltip-row"},[w("span",{class:"nb-chart__tooltip-swatch",style:$t({background:n.color})},null,4),w("span",tM,Z(n.label),1),w("span",iM,Z(n.value),1)]))),128))])],4)):R("",!0)]),_:1}))}}),[["__scopeId","data-v-03e0b7bb"]]),Kc=["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)"],U2=(e,t=Kc)=>{let i=t.length>0?t:Kc;return i[((Number.isFinite(e)?Math.trunc(e):0)%i.length+i.length)%i.length]},nM={class:"nb-chart__legend"},rM={class:"nb-chart__legend-label"},Ag=it(Pe({__name:"ChartLegend",props:{items:{}},setup(e){return(t,i)=>(_(),M("ul",nM,[(_(!0),M(ye,null,Be(e.items,n=>(_(),M("li",{key:n.label,class:"nb-chart__legend-item"},[w("span",{class:"nb-chart__legend-swatch",style:$t({background:n.color})},null,4),w("span",rM,Z(n.label),1)]))),128))]))}}),[["__scopeId","data-v-401d7d8b"]]),qc=(e,t)=>{let[i,n]=e,[r,s]=t,a=n-i||1,l=o=>r+(o-i)/a*(s-r);return l.domain=e,l.range=t,l.ticks=(o=5)=>aM(i,n,o),l},sM=(e,t,i=.2)=>{let[n,r]=t,s=(r-n)/Math.max(e.length,1),a=s*(1-i),l=(s-a)/2,o=new Map(e.map((u,d)=>[u,d])),c=u=>{let d=o.get(u);return d===void 0?n:n+d*s+l};return c.bandwidth=a,c.domain=e,c.range=t,c},aM=(e,t,i=5)=>{if(e===t)return[e];let n=t-e,r=n/Math.max(i,1),s=10**Math.floor(Math.log10(r)),a=[1,2,5,10].map(u=>u*s),l=a.find(u=>n/u<=i*1.5)??a[a.length-1],o=Math.ceil(e/l)*l,c=[];for(let u=o;u<=t+l/2;u+=l)c.push(Number(u.toFixed(10)));return c},W2=(e,t,i=.05)=>{if(e===t){let r=Math.abs(e)||1;return[e-r,t+r]}let n=(t-e)*i;return[e-n,t+n]},j2=(e,t={width:480,height:280})=>{let i=G({...t}),n=null;return at(()=>{!e.value||typeof ResizeObserver>"u"||(n=new ResizeObserver(r=>{let s=r[0];if(!s)return;let{width:a,height:l}=s.contentRect;i.value={width:Math.max(0,Math.round(a)),height:Math.max(0,Math.round(l))}}),n.observe(e.value))}),Ot(()=>{n==null||n.disconnect(),n=null}),i},lM=["width","height","role","aria-label"],oM={key:0},cM=["x1","x2","y1","y2"],uM={key:1,class:"nb-chart__axis"},dM=["x","y","text-anchor","dominant-baseline"],hM={class:"nb-chart__axis"},fM=["x","y","text-anchor","dominant-baseline"],pM=["x1","x2","y1","y2"],_M={key:3,class:"nb-chart__empty-layer","aria-hidden":"true"},mM=["d","fill","tabindex","role","aria-label","onKeydown"],vM=["fill","tabindex","role","aria-label","onKeydown"],gM={class:"nb-chart__hover-layer"},bM=["onMouseenter","onMousemove","onClick"],B0=2,yM=it(Pe({__name:"BarChart",props:{series:{default:()=>[]},orientation:{default:"vertical"},stacked:{type:Boolean,default:!1},valueFormatter:{},barRadius:{default:0},showEmpty:{type:Boolean,default:!1},showBaseline:{type:Boolean,default:!0},showValueAxis:{type:Boolean,default:!0},categoryLabelEvery:{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:()=>Kc}},emits:["select"],setup(e,{emit:t}){let i=e,n=t,r=G(null),s=j2(r,{width:480,height:240}),a=U(()=>i.orientation==="horizontal"),l=U(()=>i.series.map((K,se)=>({name:K.name,data:K.data,color:K.color??U2(se,i.colors)}))),o=U(()=>{var K;return(((K=i.series[0])==null?void 0:K.data)??[]).map(se=>se.x)}),c=(K,se)=>{var Q,S;return((S=(Q=l.value[se])==null?void 0:Q.data[K])==null?void 0:S.y)??0},u=(K,se)=>{let Q=c(K,se);if(!i.stacked)return[0,Q];let S=0;for(let T=0;T<se;T+=1){let V=c(K,T);V>=0==Q>=0&&(S+=V)}return[S,S+Q]},d=U(()=>{let K=[];return o.value.forEach((se,Q)=>{l.value.forEach((S,T)=>{K.push(u(Q,T)[1])})}),K.length?W2(Math.min(0,...K),Math.max(0,...K),.05):[0,1]}),f=U(()=>{if(!a.value)return{top:12,right:16,bottom:28,left:i.showValueAxis?44:16};let K=o.value.reduce((Q,S)=>Math.max(Q,String(S).length),0),se=Math.max(44,Math.round(s.value.width*.4));return{top:12,right:16,bottom:i.showValueAxis?28:12,left:Math.min(Math.max(44,Math.ceil(K*6.2)+12),se)}}),h=U(()=>({x0:f.value.left,x1:Math.max(f.value.left,s.value.width-f.value.right),y0:f.value.top,y1:Math.max(f.value.top,s.value.height-f.value.bottom)})),m=U(()=>sM(o.value.map(K=>String(K)),a.value?[h.value.y0,h.value.y1]:[h.value.x0,h.value.x1],.2)),p=U(()=>qc(d.value,a.value?[h.value.x0,h.value.x1]:[h.value.y1,h.value.y0])),b=U(()=>p.value.ticks(5)),v=K=>m.value(String(o.value[K])),C=K=>v(K)+m.value.bandwidth/2,y=U(()=>{let K=l.value.length||1;return i.stacked?m.value.bandwidth:m.value.bandwidth/K}),g=(K,se)=>{let[Q,S]=u(K,se),T=p.value(Q),V=p.value(S),ee=Math.max(0,y.value-2),de=v(K)+(i.stacked?0:se*y.value),pe=Math.max(0,Math.abs(V-T));return a.value?{x:Math.min(T,V),y:de,width:pe,height:ee}:{x:de,y:Math.min(T,V),width:ee,height:pe}},L=U(()=>{let K=Math.floor(i.categoryLabelEvery);return Number.isFinite(K)&&K>1?K:1}),x=U(()=>o.value.map((K,se)=>({cat:K,i:se})).filter(({i:K})=>K%L.value===0)),$=U(()=>i.barRadius>0),O=(K,se)=>{if(!i.stacked)return!0;let Q=c(K,se);for(let S=se+1;S<l.value.length;S+=1){let T=c(K,S);if(T!==0&&T>=0==Q>=0)return!1}return!0},F=(K,se,Q,S,[T,V,ee,de])=>[`M${K+T},${se}`,`H${K+Q-V}`,`A${V},${V} 0 0 1 ${K+Q},${se+V}`,`V${se+S-ee}`,`A${ee},${ee} 0 0 1 ${K+Q-ee},${se+S}`,`H${K+de}`,`A${de},${de} 0 0 1 ${K},${se+S-de}`,`V${se+T}`,`A${T},${T} 0 0 1 ${K+T},${se}`,"Z"].join(" "),ie=(K,se)=>{let{x:Q,y:S,width:T,height:V}=g(K,se),ee=a.value?V:T,de=a.value?T:V,pe=O(K,se)?Math.max(0,Math.min(i.barRadius,ee/2,de)):0,we=c(K,se)>=0,k;return k=a.value?we?[0,pe,pe,0]:[pe,0,0,pe]:we?[pe,pe,0,0]:[0,0,pe,pe],F(Q,S,T,V,k)},B=U(()=>o.value.map((K,se)=>se).filter(K=>l.value.every((se,Q)=>c(K,Q)===0))),A=K=>{let se=p.value(0),Q=Math.max(0,m.value.bandwidth-2),S=$.value?Math.min(i.barRadius,B0/2):0;return a.value?{x:se,y:v(K),width:B0,height:Q,rx:S}:{x:v(K),y:se-B0,width:Q,height:B0,rx:S}},H=K=>{let se=v(K),Q=m.value.bandwidth;return a.value?{x:h.value.x0,y:se,width:Math.max(0,h.value.x1-h.value.x0),height:Q}:{x:se,y:h.value.y0,width:Q,height:Math.max(0,h.value.y1-h.value.y0)}},I=K=>Math.abs(K)>=1e3?`${(K/1e3).toFixed(1)}k`:String(K),D=K=>i.valueFormatter?i.valueFormatter(K):I(K),q=_i(),re=()=>{var K;return!!((K=q==null?void 0:q.vnode.props)!=null&&K.onSelect)},ae=(K,se)=>{let Q=l.value[se],S=D(c(K,se));return l.value.length>1?`${o.value[K]}, ${Q==null?void 0:Q.name}: ${S}`:`${o.value[K]}: ${S}`},ge=(K,se)=>{let Q=l.value[se],S=Q==null?void 0:Q.data[K];return{kind:"series",x:(S==null?void 0:S.x)??o.value[K],y:(S==null?void 0:S.y)??0,seriesName:(Q==null?void 0:Q.name)??"",seriesIndex:se,index:K,point:S??{x:o.value[K],y:0}}},xe=K=>{let se=K.currentTarget.ownerSVGElement;if(!se)return null;let Q=se.getBoundingClientRect();return{x:K.clientX-Q.left,y:K.clientY-Q.top}},J=(K,se)=>{let Q=l.value.length;if(Q<=1)return 0;let S=xe(K);if(!S)return 0;if(i.stacked){let ee=a.value?S.x:S.y;for(let de=0;de<Q;de+=1){let[pe,we]=u(se,de),k=p.value(pe),E=p.value(we);if(ee>=Math.min(k,E)&&ee<=Math.max(k,E))return de}return Q-1}let T=(a.value?S.y:S.x)-v(se),V=Math.floor(T/(y.value||1));return Math.min(Math.max(V,0),Q-1)},ve=(K,se)=>{re()&&n("select",ge(se,J(K,se)))},fe=(K,se,Q)=>{re()&&(K.key!=="Enter"&&K.key!==" "||(K.preventDefault(),n("select",ge(se,Q))))},he=G(null),te=G({x:0,y:0}),ue=(K,se)=>{let Q=xe(K);Q&&(te.value={x:Q.x+12,y:Q.y+12},he.value=se)},j=U(()=>he.value===null?[]:l.value.map(K=>{let se=K.data[he.value];return{label:K.name,value:(se==null?void 0:se.label)??D((se==null?void 0:se.y)??0),color:K.color}}));return(K,se)=>(_(),oe(F2,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&l.value.length>0},{legend:X(()=>[Y(Ag,{items:l.value.map(Q=>({label:Q.name,color:Q.color}))},null,8,["items"])]),default:X(()=>[w("div",{ref_key:"root",ref:r,class:"nb-bar-chart"},[(_(),M("svg",{width:_e(s).width,height:_e(s).height,class:Ee(["nb-chart__svg",{"nb-chart__svg--selectable":re()}]),role:re()?"group":"img","aria-label":e.title||"Bar chart",onMouseleave:se[0]||(se[0]=Q=>he.value=null)},[e.showGrid&&_e(s).width>0?(_(),M("g",oM,[(_(!0),M(ye,null,Be(b.value,Q=>(_(),M("line",{key:`grid-${Q}`,class:"nb-chart__gridline",x1:a.value?p.value(Q):h.value.x0,x2:a.value?p.value(Q):h.value.x1,y1:a.value?h.value.y0:p.value(Q),y2:a.value?h.value.y1:p.value(Q)},null,8,cM))),128))])):R("",!0),e.showValueAxis?(_(),M("g",uM,[(_(!0),M(ye,null,Be(b.value,Q=>(_(),M("text",{key:`vt-${Q}`,x:a.value?p.value(Q):h.value.x0-6,y:a.value?h.value.y1+14:p.value(Q),"text-anchor":a.value?"middle":"end","dominant-baseline":a.value?"auto":"middle"},Z(D(Q)),9,dM))),128))])):R("",!0),w("g",hM,[(_(!0),M(ye,null,Be(x.value,({cat:Q,i:S})=>(_(),M("text",{key:`ct-${S}`,x:a.value?h.value.x0-6:C(S),y:a.value?C(S):h.value.y1+14,"text-anchor":a.value?"end":"middle","dominant-baseline":a.value?"middle":"auto"},Z(Q),9,fM))),128))]),e.showBaseline?(_(),M("line",{key:2,class:"nb-chart__axis-line",x1:a.value?p.value(0):h.value.x0,x2:a.value?p.value(0):h.value.x1,y1:a.value?h.value.y0:p.value(0),y2:a.value?h.value.y1:p.value(0)},null,8,pM)):R("",!0),e.showEmpty?(_(),M("g",_M,[(_(!0),M(ye,null,Be(B.value,Q=>(_(),M("rect",Lt({key:`empty-${Q}`,class:"nb-chart__empty"},{ref_for:!0},A(Q)),null,16))),128))])):R("",!0),(_(!0),M(ye,null,Be(o.value,(Q,S)=>(_(),M("g",{key:`g-${S}`},[$.value?(_(!0),M(ye,{key:0},Be(l.value,(T,V)=>(_(),M("path",{key:`${S}-${V}`,class:Ee(["nb-chart__bar",{"is-dim":he.value!==null&&he.value!==S}]),d:ie(S,V),fill:T.color,tabindex:re()?0:void 0,role:re()?"button":void 0,"aria-label":re()?ae(S,V):void 0,onKeydown:ee=>fe(ee,S,V)},null,42,mM))),128)):(_(!0),M(ye,{key:1},Be(l.value,(T,V)=>(_(),M("rect",Lt({key:`${S}-${V}`,class:["nb-chart__bar",{"is-dim":he.value!==null&&he.value!==S}]},{ref_for:!0},g(S,V),{fill:T.color,tabindex:re()?0:void 0,role:re()?"button":void 0,"aria-label":re()?ae(S,V):void 0,onKeydown:ee=>fe(ee,S,V)}),null,16,vM))),128))]))),128)),w("g",gM,[(_(!0),M(ye,null,Be(o.value,(Q,S)=>(_(),M("rect",Lt({key:`hover-${S}`},{ref_for:!0},H(S),{fill:"transparent",onMouseenter:T=>he.value=S,onMousemove:T=>ue(T,S),onClick:T=>ve(T,S)}),null,16,bM))),128))])],42,lM)),Y(z2,{visible:e.showTooltip&&he.value!==null,x:te.value.x,y:te.value.y,title:he.value===null?"":String(o.value[he.value]),rows:j.value},null,8,["visible","x","y","title","rows"])],512)]),_:1},8,["title","subtitle","height","show-legend"]))}}),[["__scopeId","data-v-b519cabf"]]),Po=0,In=null;function Oo(){if(!In)return;let e=document.documentElement.style;e.setProperty("--nb-vvh",`${In.height}px`),e.setProperty("--nb-vvt",`${In.offsetTop}px`)}function wM(){Po+=1,!(Po>1)&&(In=typeof window<"u"?window.visualViewport:null,In&&(In.addEventListener("resize",Oo),In.addEventListener("scroll",Oo),Oo()))}function SM(){if(Po===0||(--Po,Po>0))return;In&&(In=(In.removeEventListener("resize",Oo),In.removeEventListener("scroll",Oo),null));let e=document.documentElement.style;e.removeProperty("--nb-vvh"),e.removeProperty("--nb-vvt")}function CM(e){let{phone:t}=vn(),i=!1;function n(r){r!==i&&(i=r,r?wM():SM())}Oe(()=>e()&&t.value,n,{immediate:!0}),Cc(()=>n(!1))}const Wa=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},kM=Wa("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"/>'),AM=Wa("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"/>'),M8=Wa("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"/>'),$M=Wa("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"/>'),MM=Wa("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"/>'),LM=Wa("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"/>'),EM="caret-left",$g=Object.freeze(Object.defineProperty({__proto__:null,bold:$M,default:M8,duotone:LM,fill:MM,glyphName:EM,light:AM,regular:M8,thin:kM},Symbol.toStringTag,{value:"Module"}));var xM=["width","height","role","aria-hidden","aria-labelledby","focusable"],HM=["id"],TM=["id"],NM=["id"],PM=["id"],OM=["id"],RM=["id"],IM=["id"],VM=["id"],DM=["id"],ZM=["id"],BM={transform:"matrix(0.924856, 0, 0, 0.924856, -44.998852, -33.191986)"},FM={id:"group-1"},zM=["fill"],UM=["fill"],WM=["fill"],jM={id:"object-1"},KM=["fill"],qM=["fill"],GM=["fill"],YM=["fill"],XM={id:"object-2"},JM=["fill"],QM=["fill"],eL=["fill"],tL=["fill"],iL=["fill"],nL=Pe({__name:"NubiscoMark",props:{size:{default:20},title:{default:void 0}},setup(e){let t=e,i=`nb-nubisco-mark-${Vi()}`,n=`${i}-title`,r=U(()=>typeof t.size=="number"?`${t.size}px`:t.size);return(s,a)=>(_(),M("svg",{width:r.value,height:r.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?n:void 0,focusable:t.title?void 0:"false"},[t.title?(_(),M("title",{key:0,id:n},Z(t.title),1)):R("",!0),w("defs",null,[w("linearGradient",{id:`${i}-g1`,gradientUnits:"userSpaceOnUse",x1:"119.61",y1:"36.855",x2:"119.61",y2:"381.922",spreadMethod:"pad",gradientTransform:"matrix(-0.887141, -0.461497, 0.40987, -0.999167, 140.11236, 473.94595)"},[...a[0]||(a[0]=[w("stop",{offset:"0","stop-color":"rgb(254,216,103)"},null,-1),w("stop",{offset:"0.51","stop-color":"rgb(250,71,78)"},null,-1),w("stop",{offset:"1","stop-color":"rgb(173,55,159)"},null,-1)])],8,HM),w("linearGradient",{id:`${i}-g3`,gradientUnits:"userSpaceOnUse",x1:"143.989",y1:"36.855",x2:"143.989",y2:"179.9",gradientTransform:"matrix(0.887207, 0.461371, -0.426978, 0.821069, 78.224142, -58.961861)"},[...a[1]||(a[1]=[w("stop",{offset:"0","stop-color":"rgb(0,0,0)","stop-opacity":"0.17"},null,-1),w("stop",{offset:"1","stop-color":"rgb(0,0,0)","stop-opacity":"0.03"},null,-1)])],8,TM),w("linearGradient",{id:`${i}-g2`,gradientUnits:"userSpaceOnUse",x1:"91.703",y1:"328.267",x2:"91.703",y2:"381.922",gradientTransform:"matrix(-0.601925, -0.798552, 1.256661, -1.089764, -307.90801, 812.885223)"},[...a[2]||(a[2]=[w("stop",{offset:"0","stop-color":"rgb(0,0,0)","stop-opacity":"0.38"},null,-1),w("stop",{offset:"1","stop-color":"rgb(0,0,0)","stop-opacity":"0.2"},null,-1)])],8,NM),w("linearGradient",{id:`${i}-g8`,gradientUnits:"userSpaceOnUse",x1:"348.688",y1:"35.889",x2:"348.688",y2:"116.548",gradientTransform:"matrix(-0.503716, -0.863869, 1.170135, -0.682295, 434.155647, 419.539108)"},[...a[3]||(a[3]=[w("stop",{offset:"0","stop-color":"rgb(254,171,107)","stop-opacity":"0.56"},null,-1),w("stop",{offset:"0.745","stop-color":"rgb(255,253,207)"},null,-1),w("stop",{offset:"1","stop-color":"rgb(255,253,207)"},null,-1)])],8,PM),w("linearGradient",{id:`${i}-g10`,gradientUnits:"userSpaceOnUse",x1:"338.142",y1:"47.006",x2:"338.142",y2:"121.215",gradientTransform:"matrix(0.75452, 0.656277, -1.016572, 1.16875, 168.120543, -239.018367)"},[...a[4]||(a[4]=[w("stop",{offset:"0","stop-color":"rgb(255,255,255)","stop-opacity":"0.35"},null,-1),w("stop",{offset:"0.611","stop-color":"rgb(255,255,255)","stop-opacity":"0.2"},null,-1),w("stop",{offset:"0.656","stop-color":"rgb(255,255,255)","stop-opacity":"0.09"},null,-1),w("stop",{offset:"1","stop-color":"rgb(255,255,255)","stop-opacity":"0.05"},null,-1)])],8,OM),w("linearGradient",{id:`${i}-g7`,gradientUnits:"userSpaceOnUse",x1:"286.279",y1:"128.145",x2:"286.279",y2:"381.893",gradientTransform:"matrix(0.980122, -0.198399, 0.201333, 0.99503, -34.83682, 58.72465)"},[...a[5]||(a[5]=[w("stop",{offset:"0","stop-color":"rgb(94,33,120)","stop-opacity":"0"},null,-1),w("stop",{offset:"0.23","stop-color":"rgb(94,33,116)","stop-opacity":"0"},null,-1),w("stop",{offset:"1","stop-color":"rgb(94,32,119)","stop-opacity":"0.77"},null,-1)])],8,RM),w("linearGradient",{id:`${i}-g0`,gradientUnits:"userSpaceOnUse",x1:"220.396",y1:"36.815",x2:"220.396",y2:"381.893",gradientTransform:"matrix(0.909593, -0.415502, 0.458149, 0.999272, -61.507814, 91.882297)"},[...a[6]||(a[6]=[w("stop",{offset:"0","stop-color":"rgb(105,187,99)"},null,-1),w("stop",{offset:"0.5","stop-color":"rgb(16,169,164)"},null,-1),w("stop",{offset:"1","stop-color":"rgb(11,130,207)"},null,-1)])],8,IM),w("linearGradient",{id:`${i}-g4`,gradientUnits:"userSpaceOnUse",x1:"197.5",y1:"36.815",x2:"197.5",y2:"132.342",gradientTransform:"matrix(0.419296, -0.90785, 1.050658, 0.485253, 18.526692, 214.196105)"},[...a[7]||(a[7]=[w("stop",{offset:"0","stop-color":"rgb(255,255,255)","stop-opacity":"0.45"},null,-1),w("stop",{offset:"1","stop-color":"rgb(7,226,201)","stop-opacity":"0.85"},null,-1)])],8,VM),w("linearGradient",{id:`${i}-g5`,gradientUnits:"userSpaceOnUse",x1:"197.5",y1:"59.48",x2:"197.5",y2:"132.342",gradientTransform:"matrix(0.450388, -0.892832, 1.886975, 0.951884, -71.46741, 184.345316)"},[...a[8]||(a[8]=[w("stop",{offset:"0","stop-color":"rgb(255,255,255)","stop-opacity":"0.6"},null,-1),w("stop",{offset:"0.461","stop-color":"rgb(255,255,255)","stop-opacity":"0.71"},null,-1),w("stop",{offset:"1","stop-color":"rgb(255,255,255)","stop-opacity":"0.82"},null,-1)])],8,DM),w("linearGradient",{id:`${i}-g6`,gradientUnits:"userSpaceOnUse",x1:"258.091",y1:"319.547",x2:"258.091",y2:"338.393",gradientTransform:"matrix(0.172631, -0.984987, 3.998703, 0.700821, -1101.160809, 355.271073)"},[...a[9]||(a[9]=[w("stop",{offset:"0","stop-color":"rgb(5,219,226)","stop-opacity":"0.96"},null,-1),w("stop",{offset:"0.493","stop-color":"rgb(5,219,226)","stop-opacity":"0.74"},null,-1),w("stop",{offset:"1","stop-color":"rgb(5,219,226)","stop-opacity":"0.34"},null,-1)])],8,ZM)]),w("g",BM,[w("g",FM,[w("path",{fill:`url(#${i}-g1)`,d:"M 48.655 381.922 C 119.827 257.14 51.704 41.212 190.566 36.855 C 173.148 402.723 82.723 380.123 48.655 381.922 Z"},null,8,zM),w("path",{fill:`url(#${i}-g3)`,d:"M 177.776 179.9 C 120.488 51.712 97.413 142.969 97.413 142.969 C 107.668 83.266 128.325 38.808 190.566 36.855 C 187.88 93.268 183.459 140.445 177.776 179.9 Z"},null,8,UM),w("path",{fill:`url(#${i}-g2)`,d:"M 48.655 381.922 C 58.078 365.401 65.06 347.282 70.403 328.267 C 88.094 346.662 134.752 331.941 134.752 331.941 C 103.379 387.36 67.445 380.93 48.655 381.922 Z"},null,8,WM),a[10]||(a[10]=w("path",{fill:"rgb(255,254,155)",d:"M 134.752 331.941 C 121.122 337.936 81.551 344.779 70.403 328.267 C 88.094 346.662 134.752 331.941 134.752 331.941 Z"},null,-1))]),w("g",jM,[w("path",{fill:`url(#${i}-g1)`,d:"M 313.875 381.893 C 288.098 381.893 268.627 375.477 253.751 364.466 C 216.182 182.535 312.866 21.948 394.655 36.85 C 335.339 159.09 350.166 381.893 313.875 381.893 Z"},null,8,KM),w("path",{fill:`url(#${i}-g8)`,d:"M 367.694 116.548 C 367.694 116.548 352.527 74.893 302.72 88.001 C 329.996 51.072 363.412 31.158 394.655 36.85 C 383.206 60.444 374.519 87.785 367.694 116.548 Z"},null,8,qM),a[11]||(a[11]=w("path",{fill:"rgb(255,255,255)","fill-opacity":"0.46",d:"M 367.694 116.548 C 367.694 116.548 352.527 74.893 302.72 88.001 C 352.21 71.129 367.694 116.548 367.694 116.548 Z"},null,-1)),w("path",{fill:`url(#${i}-g10)`,d:"M 384.493 47.025 C 335.553 54.802 291.791 121.215 291.791 121.215 C 291.791 121.215 326.809 45.627 384.493 47.025 Z"},null,8,GM),w("path",{fill:`url(#${i}-g7)`,d:"M 313.875 381.893 C 288.098 381.893 268.627 375.477 253.751 364.466 C 235.099 274.144 249.538 189.083 278.815 128.145 C 290.999 161.58 298.453 349.688 327.158 367.997 C 323.596 376.899 319.308 381.893 313.875 381.893 Z"},null,8,YM)]),w("g",XM,[w("path",{fill:`url(#${i}-g0)`,d:"M 313.875 381.893 C 139.653 381.893 253.533 88.786 126.916 65.199 C 141.046 48.182 160.854 37.738 190.253 36.815 C 311.395 48.025 251.672 276.857 313.875 381.893 Z"},null,8,JM),w("path",{fill:`url(#${i}-g4)`,d:"M 268.085 132.342 C 268.085 132.342 206.404 63.594 126.916 65.199 C 141.046 48.182 160.854 37.738 190.253 36.815 C 238.545 41.284 258.095 80.336 268.085 132.342 Z"},null,8,QM),w("path",{fill:`url(#${i}-g5)`,d:"M 268.085 132.342 C 268.085 132.342 206.404 63.594 126.916 65.199 C 183.216 63.321 231.803 93.322 268.085 132.342 Z"},null,8,eL),w("path",{fill:`url(#${i}-g2)`,d:"M 313.875 381.893 C 262.355 381.893 236.028 356.261 221.227 319.547 C 258.674 349.427 294.501 333.052 294.954 334.741 C 299.608 352.085 305.684 368.063 313.875 381.893 Z"},null,8,tL),w("path",{fill:`url(#${i}-g6)`,d:"M 294.954 334.741 C 271.602 341.74 244.333 340.344 221.227 319.547 C 258.674 349.427 294.501 333.052 294.954 334.741 Z"},null,8,iL),a[12]||(a[12]=w("path",{fill:"rgb(255,255,255)","fill-opacity":"0.11",d:"M 164.386 48.742 C 244.371 44.544 268.345 190.719 268.345 190.719 C 249.39 92.792 222.974 38.013 164.386 48.742 Z"},null,-1))])])],8,xM))}}),Mg=function(e){return e.Horizontal="horizontal",e.Vertical="vertical",e}(Mg||{}),rL={class:"nb-radio__control"},sL=["name","value","checked","disabled","readonly","onChange"],aL={class:"nb-radio__circle"},lL={key:0,class:"nb-radio__dot"},oL={class:"nb-radio__text"},Lg=it(Pe({__name:"Radio",props:{modelValue:{},options:{},name:{},direction:{default:Mg.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=U(()=>["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 n(r){return["nb-radio__option",{"nb-radio__option--disabled":t.disabled||r.disabled,"nb-radio__option--readonly":t.readonly}]}return(r,s)=>(_(),M("div",{class:Ee(i.value)},[e.label?(_(),oe(xa,{key:0},{default:X(()=>[ce(Z(e.label),1)]),_:1})):R("",!0),w("div",{class:Ee(["nb-radio__group",`nb-radio__group--${e.direction}`])},[(_(!0),M(ye,null,Be(e.options,a=>(_(),M("label",{key:a.value,class:Ee(n(a))},[w("span",rL,[w("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:l=>!e.readonly&&r.$emit("update:modelValue",a.value)},null,40,sL),w("span",aL,[e.modelValue===a.value?(_(),M("span",lL)):R("",!0)])]),w("span",oL,Z(a.label),1)],2))),128))],2),e.error?(_(),oe(ct,{key:1,variant:"error",class:"nb-radio__message"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:2,variant:"warning",class:"nb-radio__message"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):e.helper?(_(),oe(ct,{key:3,variant:"helper",class:"nb-radio__message"},{default:X(()=>[ce(Z(e.helper),1)]),_:1})):R("",!0)],2))}}),[["__scopeId","data-v-d44a6f66"]]),L8={storageKey:"nubisco.theme",defaultTheme:"system",darkClass:"dark"},Eg="(prefers-color-scheme: dark)",si=Tu("theme",()=>({options:{...L8},initialized:!1,detachMedia:null,stopPersisting:null,theme:G(L8.defaultTheme),resolved:G("light")})),{theme:Fr,resolved:Gc}=si;function cL(e){return e==="light"||e==="dark"||e==="system"}function uL(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(si.options.storageKey);return cL(e)?e:null}catch{return null}}function dL(e){try{if(typeof localStorage>"u")return;localStorage.setItem(si.options.storageKey,e)}catch{}}function hL(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Eg).matches}function Ud(){let e=Fr.value==="dark"||Fr.value==="system"&&hL();Gc.value=e?"dark":"light",!(typeof document>"u")&&(document.documentElement.classList.toggle(si.options.darkClass,e),document.documentElement.style.colorScheme=Gc.value)}function fL(){var i;if((i=si.detachMedia)==null||i.call(si),si.detachMedia=null,typeof window>"u"||typeof window.matchMedia!="function")return;let e=window.matchMedia(Eg),t=()=>Ud();typeof e.addEventListener=="function"?(e.addEventListener("change",t),si.detachMedia=()=>e.removeEventListener("change",t)):typeof e.addListener=="function"&&(e.addListener(t),si.detachMedia=()=>e.removeListener(t))}function xg(){var e;Fr.value=uL()??si.options.defaultTheme,Ud(),fL(),(e=si.stopPersisting)==null||e.call(si),si.stopPersisting=Oe(Fr,t=>{dL(t),Ud()}),si.initialized=!0}function pL(e={}){si.options={...si.options,...e},xg()}function Ru(){return si.initialized||xg(),{theme:Yr(Fr),resolved:Yr(Gc),followsSystem:U(()=>Fr.value==="system"),setTheme:e=>{Fr.value=e},toggle:()=>{Fr.value=Gc.value==="dark"?"light":"dark"}}}function _L(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}var E8=typeof window<"u",Bs=(e,t=!1)=>t?Symbol.for(e):Symbol(e),mL=(e,t,i)=>vL({l:e,k:t,s:i}),vL=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),pi=e=>typeof e=="number"&&isFinite(e),Hg=e=>K2(e)==="[object Date]",Yc=e=>K2(e)==="[object RegExp]",Iu=e=>Ct(e)&&Object.keys(e).length===0,Ii=Object.assign,gL=Object.create,Xt=(e=null)=>gL(e),bL,Ls=()=>bL||(bL=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Xt());function x8(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function H8(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function yL(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(t,i,n)=>`${i}="${H8(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(t,i,n)=>`${i}='${H8(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$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&#58;")}),e}var wL=Object.prototype.hasOwnProperty;function fn(e,t){return wL.call(e,t)}var ai=Array.isArray,Wt=e=>typeof e=="function",je=e=>typeof e=="string",Yt=e=>typeof e=="boolean",Et=e=>typeof e=="object"&&!!e,SL=e=>Et(e)&&Wt(e.then)&&Wt(e.catch),Tg=Object.prototype.toString,K2=e=>Tg.call(e),Ct=e=>K2(e)==="[object Object]",CL=e=>e==null?"":ai(e)||Ct(e)&&e.toString===Tg?JSON.stringify(e,null,2):String(e);function q2(e,t=""){return e.reduce((i,n,r)=>r===0?i+n:i+t+n,"")}var F0=e=>!Et(e)||ai(e);function hc(e,t){if(F0(e)||F0(t))throw Error("Invalid value");let i=[{src:e,des:t}];for(;i.length;){let{src:n,des:r}=i.pop();Object.keys(n).forEach(s=>{s!=="__proto__"&&(Et(n[s])&&!Et(r[s])&&(r[s]=Array.isArray(n[s])?[]:Xt()),F0(r[s])||F0(n[s])?r[s]=n[s]:i.push({src:n[s],des:r[s]}))})}}function kL(e,t,i){return{line:e,column:t,offset:i}}function Wd(e,t,i){return{start:e,end:t}}var gt={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 Vu(e,t,i={}){let{domain:n,messages:r,args:s}=i,a=e,l=SyntaxError(String(a));return l.code=e,t&&(l.location=t),l.domain=n,l}function AL(e){throw e}var Mn=" ",$L="\r",Ni=`
42
- `,ML="\u2028",LL="\u2029";function EL(e){let t=e,i=0,n=1,r=1,s=0,a=$=>t[$]===$L&&t[$+1]===Ni,l=$=>t[$]===Ni,o=$=>t[$]===LL,c=$=>t[$]===ML,u=$=>a($)||l($)||o($)||c($),d=()=>i,f=()=>n,h=()=>r,m=()=>s,p=$=>a($)||o($)||c($)?Ni:t[$],b=()=>p(i),v=()=>p(i+s);function C(){return s=0,u(i)&&(n++,r=0),a(i)&&i++,i++,r++,t[i]}function y(){return a(i+s)&&s++,s++,t[i+s]}function g(){i=0,n=1,r=1,s=0}function L($=0){s=$}function x(){let $=i+s;for(;$!==i;)C();s=0}return{index:d,line:f,column:h,peekOffset:m,charAt:p,currentChar:b,currentPeek:v,next:C,peek:y,reset:g,resetPeek:L,skipToPeek:x}}var rr=void 0,T8="'",xL="tokenizer";function HL(e,t={}){let i=t.location!==!1,n=EL(e),r=()=>n.index(),s=()=>kL(n.line(),n.column(),n.index()),a=s(),l=r(),o={currentType:13,offset:l,startLoc:a,endLoc:a,lastType:13,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>o,{onError:u}=t;function d(k,E,z,...le){let P=c();E.column+=z,E.offset+=z,u&&u(Vu(k,i?Wd(P.startLoc,E):null,{domain:xL,args:le}))}function f(k,E,z){k.endLoc=s(),k.currentType=E;let le={type:E};return i&&(le.loc=Wd(k.startLoc,k.endLoc)),z!=null&&(le.value=z),le}let h=k=>f(k,13);function m(k,E){return k.currentChar()===E?(k.next(),E):(d(gt.EXPECTED_TOKEN,s(),0,E),"")}function p(k){let E="";for(;k.currentPeek()===Mn||k.currentPeek()===Ni;)E+=k.currentPeek(),k.peek();return E}function b(k){let E=p(k);return k.skipToPeek(),E}function v(k){if(k===rr)return!1;let E=k.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E===95}function C(k){if(k===rr)return!1;let E=k.charCodeAt(0);return E>=48&&E<=57}function y(k,E){let{currentType:z}=E;if(z!==2)return!1;p(k);let le=v(k.currentPeek());return k.resetPeek(),le}function g(k,E){let{currentType:z}=E;if(z!==2)return!1;p(k);let le=C(k.currentPeek()==="-"?k.peek():k.currentPeek());return k.resetPeek(),le}function L(k,E){let{currentType:z}=E;if(z!==2)return!1;p(k);let le=k.currentPeek()===T8;return k.resetPeek(),le}function x(k,E){let{currentType:z}=E;if(z!==7)return!1;p(k);let le=k.currentPeek()===".";return k.resetPeek(),le}function $(k,E){let{currentType:z}=E;if(z!==8)return!1;p(k);let le=v(k.currentPeek());return k.resetPeek(),le}function O(k,E){let{currentType:z}=E;if(!(z===7||z===11))return!1;p(k);let le=k.currentPeek()===":";return k.resetPeek(),le}function F(k,E){let{currentType:z}=E;if(z!==9)return!1;let le=()=>{let N=k.currentPeek();return N==="{"?v(k.peek()):N==="@"||N==="|"||N===":"||N==="."||N===Mn||!N?!1:N===Ni?(k.peek(),le()):B(k,!1)},P=le();return k.resetPeek(),P}function ie(k){p(k);let E=k.currentPeek()==="|";return k.resetPeek(),E}function B(k,E=!0){let z=(P=!1,N="")=>{let W=k.currentPeek();return W==="{"||W==="@"||!W?P:W==="|"?!(N===Mn||N===Ni):W===Mn?(k.peek(),z(!0,Mn)):W===Ni?(k.peek(),z(!0,Ni)):!0},le=z();return E&&k.resetPeek(),le}function A(k,E){let z=k.currentChar();return z===rr?rr:E(z)?(k.next(),z):null}function H(k){let E=k.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E>=48&&E<=57||E===95||E===36}function I(k){return A(k,H)}function D(k){let E=k.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E>=48&&E<=57||E===95||E===36||E===45}function q(k){return A(k,D)}function re(k){let E=k.charCodeAt(0);return E>=48&&E<=57}function ae(k){return A(k,re)}function ge(k){let E=k.charCodeAt(0);return E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102}function xe(k){return A(k,ge)}function J(k){let E="",z="";for(;E=ae(k);)z+=E;return z}function ve(k){let E="";for(;;){let z=k.currentChar();if(z==="\\"){let le=k.peek();le==="{"||le==="}"||le==="@"||le==="|"||le==="\\"?(E+=z+le,k.next(),k.next()):(k.resetPeek(),E+=z,k.next())}else{if(z==="{"||z==="}"||z==="@"||z==="|"||!z)break;if(z===Mn||z===Ni)if(B(k))E+=z,k.next();else{if(ie(k))break;E+=z,k.next()}else E+=z,k.next()}}return E}function fe(k){b(k);let E="",z="";for(;E=q(k);)z+=E;let le=k.currentChar();if(le&&le!=="}"&&le!==rr&&le!==Mn&&le!==Ni&&le!==" "){let P=Q(k);return d(gt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,z+P),z+P}return k.currentChar()===rr&&d(gt.UNTERMINATED_CLOSING_BRACE,s(),0),z}function he(k){b(k);let E="";return k.currentChar()==="-"?(k.next(),E+=`-${J(k)}`):E+=J(k),k.currentChar()===rr&&d(gt.UNTERMINATED_CLOSING_BRACE,s(),0),E}function te(k){return k!==T8&&k!==Ni}function ue(k){b(k),m(k,"'");let E="",z="";for(;E=A(k,te);)E==="\\"?z+=j(k):z+=E;let le=k.currentChar();return le===Ni||le===rr?(d(gt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),le===Ni&&(k.next(),m(k,"'")),z):(m(k,"'"),z)}function j(k){let E=k.currentChar();switch(E){case"\\":case"'":return k.next(),`\\${E}`;case"u":return K(k,E,4);case"U":return K(k,E,6);default:return d(gt.UNKNOWN_ESCAPE_SEQUENCE,s(),0,E),""}}function K(k,E,z){m(k,E);let le="";for(let P=0;P<z;P++){let N=xe(k);if(!N){d(gt.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${E}${le}${k.currentChar()}`);break}le+=N}return`\\${E}${le}`}function se(k){return k!=="{"&&k!=="}"&&k!==Mn&&k!==Ni}function Q(k){b(k);let E="",z="";for(;E=A(k,se);)z+=E;return z}function S(k){let E="",z="";for(;E=I(k);)z+=E;return z}function T(k){let E=z=>{let le=k.currentChar();return le==="{"||le==="@"||le==="|"||le==="("||le===")"||!le||le===Mn?z:(z+=le,k.next(),E(z))};return E("")}function V(k){b(k);let E=m(k,"|");return b(k),E}function ee(k,E){let z=null;switch(k.currentChar()){case"{":return E.braceNest>=1&&d(gt.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),k.next(),z=f(E,2,"{"),b(k),E.braceNest++,z;case"}":return E.braceNest>0&&E.currentType===2&&d(gt.EMPTY_PLACEHOLDER,s(),0),k.next(),z=f(E,3,"}"),E.braceNest--,E.braceNest>0&&b(k),E.inLinked&&E.braceNest===0&&(E.inLinked=!1),z;case"@":return E.braceNest>0&&d(gt.UNTERMINATED_CLOSING_BRACE,s(),0),z=de(k,E)||h(E),E.braceNest=0,z;default:{let le=!0,P=!0,N=!0;if(ie(k))return E.braceNest>0&&d(gt.UNTERMINATED_CLOSING_BRACE,s(),0),z=f(E,1,V(k)),E.braceNest=0,E.inLinked=!1,z;if(E.braceNest>0&&(E.currentType===4||E.currentType===5||E.currentType===6))return d(gt.UNTERMINATED_CLOSING_BRACE,s(),0),E.braceNest=0,pe(k,E);if(le=y(k,E))return z=f(E,4,fe(k)),b(k),z;if(P=g(k,E))return z=f(E,5,he(k)),b(k),z;if(N=L(k,E))return z=f(E,6,ue(k)),b(k),z;if(!le&&!P&&!N)return z=f(E,12,Q(k)),d(gt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,z.value),b(k),z;break}}return z}function de(k,E){let{currentType:z}=E,le=null,P=k.currentChar();switch((z===7||z===8||z===11||z===9)&&(P===Ni||P===Mn)&&d(gt.INVALID_LINKED_FORMAT,s(),0),P){case"@":return k.next(),le=f(E,7,"@"),E.inLinked=!0,le;case".":return b(k),k.next(),f(E,8,".");case":":return b(k),k.next(),f(E,9,":");default:return ie(k)?(le=f(E,1,V(k)),E.braceNest=0,E.inLinked=!1,le):x(k,E)||O(k,E)?(b(k),de(k,E)):$(k,E)?(b(k),f(E,11,S(k))):F(k,E)?(b(k),P==="{"?ee(k,E)||le:f(E,10,T(k))):(z===7&&d(gt.INVALID_LINKED_FORMAT,s(),0),E.braceNest=0,E.inLinked=!1,pe(k,E))}}function pe(k,E){let z={type:13};if(E.braceNest>0)return ee(k,E)||h(E);if(E.inLinked)return de(k,E)||h(E);switch(k.currentChar()){case"{":return ee(k,E)||h(E);case"}":return d(gt.UNBALANCED_CLOSING_BRACE,s(),0),k.next(),f(E,3,"}");case"@":return de(k,E)||h(E);default:if(ie(k))return z=f(E,1,V(k)),E.braceNest=0,E.inLinked=!1,z;if(B(k))return f(E,0,ve(k));break}return z}function we(){let{currentType:k,offset:E,startLoc:z,endLoc:le}=o;return o.lastType=k,o.lastOffset=E,o.lastStartLoc=z,o.lastEndLoc=le,o.offset=r(),o.startLoc=s(),n.currentChar()===rr?f(o,13):pe(n,o)}return{nextToken:we,currentOffset:r,currentPosition:s,context:c}}var TL="parser",NL=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,PL=/\\([\\@{}|])/g;function OL(e,t){return t}function RL(e,t,i){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{let n=parseInt(t||i,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function IL(e={}){let t=e.location!==!1,{onError:i}=e;function n(v,C,y,g,...L){let x=v.currentPosition();x.offset+=g,x.column+=g,i&&i(Vu(C,t?Wd(y,x):null,{domain:TL,args:L}))}function r(v,C,y){let g={type:v};return t&&(g.start=C,g.end=C,g.loc={start:y,end:y}),g}function s(v,C,y,g){t&&(v.end=C,v.loc&&(v.loc.end=y))}function a(v,C){let y=v.context(),g=r(3,y.offset,y.startLoc);return g.value=C.replace(PL,OL),s(g,v.currentOffset(),v.currentPosition()),g}function l(v,C){let{lastOffset:y,lastStartLoc:g}=v.context(),L=r(5,y,g);return L.index=parseInt(C,10),v.nextToken(),s(L,v.currentOffset(),v.currentPosition()),L}function o(v,C){let{lastOffset:y,lastStartLoc:g}=v.context(),L=r(4,y,g);return L.key=C,v.nextToken(),s(L,v.currentOffset(),v.currentPosition()),L}function c(v,C){let{lastOffset:y,lastStartLoc:g}=v.context(),L=r(9,y,g);return L.value=C.replace(NL,RL),v.nextToken(),s(L,v.currentOffset(),v.currentPosition()),L}function u(v){let C=v.nextToken(),y=v.context(),{lastOffset:g,lastStartLoc:L}=y,x=r(8,g,L);return C.type===11?(C.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ln(C)),x.value=C.value||"",s(x,v.currentOffset(),v.currentPosition()),{node:x}):(n(v,gt.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),x.value="",s(x,g,L),{nextConsumeToken:C,node:x})}function d(v,C){let y=v.context(),g=r(7,y.offset,y.startLoc);return g.value=C,s(g,v.currentOffset(),v.currentPosition()),g}function f(v){let C=v.context(),y=r(6,C.offset,C.startLoc),g=v.nextToken();if(g.type===8){let L=u(v);y.modifier=L.node,g=L.nextConsumeToken||v.nextToken()}switch(g.type!==9&&n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(g)),g=v.nextToken(),g.type===2&&(g=v.nextToken()),g.type){case 10:g.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(g)),y.key=d(v,g.value||"");break;case 4:g.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(g)),y.key=o(v,g.value||"");break;case 5:g.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(g)),y.key=l(v,g.value||"");break;case 6:g.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(g)),y.key=c(v,g.value||"");break;default:{n(v,gt.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);let L=v.context(),x=r(7,L.offset,L.startLoc);return x.value="",s(x,L.offset,L.startLoc),y.key=x,s(y,L.offset,L.startLoc),{nextConsumeToken:g,node:y}}}return s(y,v.currentOffset(),v.currentPosition()),{node:y}}function h(v){let C=v.context(),y=r(2,C.currentType===1?v.currentOffset():C.offset,C.currentType===1?C.endLoc:C.startLoc);y.items=[];let g=null;do{let L=g||v.nextToken();switch(g=null,L.type){case 0:L.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(L)),y.items.push(a(v,L.value||""));break;case 5:L.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(L)),y.items.push(l(v,L.value||""));break;case 4:L.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(L)),y.items.push(o(v,L.value||""));break;case 6:L.value??n(v,gt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ln(L)),y.items.push(c(v,L.value||""));break;case 7:{let x=f(v);y.items.push(x.node),g=x.nextConsumeToken||null;break}}}while(C.currentType!==13&&C.currentType!==1);return s(y,C.currentType===1?C.lastOffset:v.currentOffset(),C.currentType===1?C.lastEndLoc:v.currentPosition()),y}function m(v,C,y,g){let L=v.context(),x=g.items.length===0,$=r(1,C,y);$.cases=[],$.cases.push(g);do{let O=h(v);x||(x=O.items.length===0),$.cases.push(O)}while(L.currentType!==13);return x&&n(v,gt.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),s($,v.currentOffset(),v.currentPosition()),$}function p(v){let C=v.context(),{offset:y,startLoc:g}=C,L=h(v);return C.currentType===13?L:m(v,y,g,L)}function b(v){let C=HL(v,Ii({},e)),y=C.context(),g=r(0,y.offset,y.startLoc);return t&&g.loc&&(g.loc.source=v),g.body=p(C),e.onCacheKey&&(g.cacheKey=e.onCacheKey(v)),y.currentType!==13&&n(C,gt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,v[y.offset]||""),s(g,C.currentOffset(),C.currentPosition()),g}return{parse:b}}function Ln(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 VL(e,t={}){let i={ast:e,helpers:new Set};return{context:()=>i,helper:n=>(i.helpers.add(n),n)}}function N8(e,t){for(let i=0;i<e.length;i++)G2(e[i],t)}function G2(e,t){switch(e.type){case 1:N8(e.cases,t),t.helper("plural");break;case 2:N8(e.items,t);break;case 6:G2(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 DL(e,t={}){let i=VL(e);i.helper("normalize"),e.body&&G2(e.body,i);let n=i.context();e.helpers=Array.from(n.helpers)}function ZL(e){let t=e.body;return t.type===2?P8(t):t.cases.forEach(i=>P8(i)),e}function P8(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 n=e.items[i];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=q2(t);for(let i=0;i<e.items.length;i++){let n=e.items[i];(n.type===3||n.type===9)&&delete n.value}}}}function Qs(e){switch(e.t=e.type,e.type){case 0:{let t=e;Qs(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,i=t.cases;for(let n=0;n<i.length;n++)Qs(i[n]);t.c=i,delete t.cases;break}case 2:{let t=e,i=t.items;for(let n=0;n<i.length;n++)Qs(i[n]);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;Qs(t.key),t.k=t.key,delete t.key,t.modifier&&(Qs(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 BL(e,t){let{filename:i,breakLineCode:n,needIndent:r}=t,s=t.location!==!1,a={filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:r,indentLevel:0};s&&e.loc&&(a.source=e.loc.source);let l=()=>a;function o(h,m){a.code+=h}function c(h,m=!0){let p=m?n:"";o(r?p+" ".repeat(h):p)}function u(h=!0){let m=++a.indentLevel;h&&c(m)}function d(h=!0){let m=--a.indentLevel;h&&c(m)}function f(){c(a.indentLevel)}return{context:l,push:o,indent:u,deindent:d,newline:f,helper:h=>`_${h}`,needIndent:()=>a.needIndent}}function FL(e,t){let{helper:i}=e;e.push(`${i("linked")}(`),fa(e,t.key),t.modifier?(e.push(", "),fa(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function zL(e,t){let{helper:i,needIndent:n}=e;e.push(`${i("normalize")}([`),e.indent(n());let r=t.items.length;for(let s=0;s<r&&(fa(e,t.items[s]),s!==r-1);s++)e.push(", ");e.deindent(n()),e.push("])")}function UL(e,t){let{helper:i,needIndent:n}=e;if(t.cases.length>1){e.push(`${i("plural")}([`),e.indent(n());let r=t.cases.length;for(let s=0;s<r&&(fa(e,t.cases[s]),s!==r-1);s++)e.push(", ");e.deindent(n()),e.push("])")}}function WL(e,t){t.body?fa(e,t.body):e.push("null")}function fa(e,t){let{helper:i}=e;switch(t.type){case 0:WL(e,t);break;case 1:UL(e,t);break;case 2:zL(e,t);break;case 6:FL(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 jL=(e,t={})=>{let i=je(t.mode)?t.mode:"normal",n=je(t.filename)?t.filename:"message.intl";t.sourceMap;let r=t.breakLineCode==null?i==="arrow"?";":`
43
- `:t.breakLineCode,s=t.needIndent?t.needIndent:i!=="arrow",a=e.helpers||[],l=BL(e,{filename:n,breakLineCode:r,needIndent:s});l.push(i==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${q2(a.map(u=>`${u}: _${u}`),", ")} } = ctx`),l.newline()),l.push("return "),fa(l,e),l.deindent(s),l.push("}"),delete e.helpers;let{code:o,map:c}=l.context();return{ast:e,code:o,map:c?c.toJSON():void 0}};function KL(e,t={}){let i=Ii({},t),n=!!i.jit,r=!!i.minify,s=i.optimize==null?!0:i.optimize,a=IL(i).parse(e);return n?(s&&ZL(a),r&&Qs(a),{ast:a,code:""}):(DL(a,i),jL(a,i))}function qL(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ls().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ls().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Un(e){return Et(e)&&Y2(e)===0&&(fn(e,"b")||fn(e,"body"))}var Ng=["b","body"];function GL(e){return cs(e,Ng)}var Pg=["c","cases"];function YL(e){return cs(e,Pg,[])}var Og=["s","static"];function XL(e){return cs(e,Og)}var Rg=["i","items"];function JL(e){return cs(e,Rg,[])}var Ig=["t","type"];function Y2(e){return cs(e,Ig)}var Vg=["v","value"];function z0(e,t){let i=cs(e,Vg);if(i!=null)return i;throw i0(t)}var Dg=["m","modifier"];function QL(e){return cs(e,Dg)}var Zg=["k","key"];function eE(e){let t=cs(e,Zg);if(t)return t;throw i0(6)}function cs(e,t,i){for(let n=0;n<t.length;n++){let r=t[n];if(fn(e,r)&&e[r]!=null)return e[r]}return i}var Bg=[...Ng,...Pg,...Og,...Rg,...Zg,...Dg,...Vg,...Ig];function i0(e){return Error(`unhandled node type: ${e}`)}function C1(e){return t=>tE(t,e)}function tE(e,t){let i=GL(t);if(i==null)throw i0(0);if(Y2(i)===1){let n=YL(i);return e.plural(n.reduce((r,s)=>[...r,O8(e,s)],[]))}else return O8(e,i)}function O8(e,t){let i=XL(t);if(i!=null)return e.type==="text"?i:e.normalize([i]);{let n=JL(t).reduce((r,s)=>[...r,jd(e,s)],[]);return e.normalize(n)}}function jd(e,t){let i=Y2(t);switch(i){case 3:return z0(t,i);case 9:return z0(t,i);case 4:{let n=t;if(fn(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(fn(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw i0(i)}case 5:{let n=t;if(fn(n,"i")&&pi(n.i))return e.interpolate(e.list(n.i));if(fn(n,"index")&&pi(n.index))return e.interpolate(e.list(n.index));throw i0(i)}case 6:{let n=t,r=QL(n),s=eE(n);return e.linked(jd(e,s),r?jd(e,r):void 0,e.type)}case 7:return z0(t,i);case 8:return z0(t,i);default:throw Error(`unhandled node on format message part: ${i}`)}}var iE=e=>e,U0=Xt();function nE(e,t={}){let i=!1,n=t.onError||AL;return t.onError=r=>{i=!0,n(r)},{...KL(e,t),detectError:i}}function rE(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&je(e)){Yt(t.warnHtmlMessage)&&t.warnHtmlMessage;let i=(t.onCacheKey||iE)(e),n=U0[i];if(n)return n;let{ast:r,detectError:s}=nE(e,{...t,location:!1,jit:!0}),a=C1(r);return s?a:U0[i]=a}else{let i=e.cacheKey;return i?U0[i]||(U0[i]=C1(e)):C1(e)}}var n0=null;function sE(e){n0=e}function aE(e,t,i){n0&&n0.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:i})}var lE=oE("function:translate");function oE(e){return t=>n0&&n0.emit(e,t)}var pr={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 _r(e){return Vu(e,null,void 0)}function X2(e,t){return t.locale==null?R8(e.locale):R8(t.locale)}var k1;function R8(e){if(je(e))return e;if(Wt(e)){if(e.resolvedOnce&&k1!=null)return k1;if(e.constructor.name==="Function"){let t=e();if(SL(t))throw _r(pr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return k1=t}else throw _r(pr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw _r(pr.NOT_SUPPORT_LOCALE_TYPE)}function cE(e,t,i){return[...new Set([i,...ai(t)?t:Et(t)?Object.keys(t):je(t)?[t]:[i]])]}function Kd(e,t,i){let n=je(i)?i:Xc,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(n);if(!s){s=[];let a=[i];for(;ai(a);)a=I8(s,a,t);let l=ai(t)||!Ct(t)?t:t.default?t.default:null;a=je(l)?[l]:l,ai(a)&&I8(s,a,!1),r.__localeChainCache.set(n,s)}return s}function I8(e,t,i){let n=!0;for(let r=0;r<t.length&&Yt(n);r++){let s=t[r];je(s)&&(n=uE(e,t[r],i))}return n}function uE(e,t,i){let n,r=t.split("-");do n=dE(e,r.join("-"),i),r.splice(-1,1);while(r.length&&n===!0);return n}function dE(e,t,i){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";let r=t.replace(/!/g,"");e.push(r),(ai(i)||Ct(i))&&i[r]&&(n=i[r])}return n}var Ir=[];Ir[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ir[1]={w:[1],".":[2],"[":[4],o:[7]},Ir[2]={w:[2],i:[3,0],0:[3,0]},Ir[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ir[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ir[5]={"'":[4,0],o:8,l:[5,0]},Ir[6]={'"':[4,0],o:8,l:[6,0]};var hE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function fE(e){return hE.test(e)}function pE(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function _E(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 mE(e){let t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:fE(t)?pE(t):"*"+t}function vE(e){let t=[],i=-1,n=0,r=0,s,a,l,o,c,u,d,f=[];f[0]=()=>{a===void 0?a=l:a+=l},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,n=4,f[0]();else{if(r=0,a===void 0||(a=mE(a),a===!1))return!1;f[1]()}};function h(){let m=e[i+1];if(n===5&&m==="'"||n===6&&m==='"')return i++,l="\\"+m,f[0](),!0}for(;n!==null;)if(i++,s=e[i],!(s==="\\"&&h())){if(o=_E(s),d=Ir[n],c=d[o]||d.l||8,c===8||(n=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(l=s,u()===!1))))return;if(n===7)return t}}var V8=new Map;function gE(e,t){return Et(e)?e[t]:null}function bE(e,t){if(!Et(e))return null;let i=V8.get(t);if(i||(i=vE(t),i&&V8.set(t,i)),!i)return null;let n=i.length,r=e,s=0;for(;s<n;){let a=i[s];if(Bg.includes(a)&&Un(r)||!Et(r)||!fn(r,a))return null;let l=r[a];if(l===void 0||Wt(r))return null;r=l,s++}return r}var yE="11.3.0",Xc="en-US",D8=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function wE(){return{upper:(e,t)=>t==="text"&&je(e)?e.toUpperCase():t==="vnode"&&Et(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&je(e)?e.toLowerCase():t==="vnode"&&Et(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&je(e)?D8(e):t==="vnode"&&Et(e)&&"__v_isVNode"in e?D8(e.children):e}}var Fg;function SE(e){Fg=e}var zg;function CE(e){zg=e}var Ug;function kE(e){Ug=e}var Wg=null,Z8=e=>{Wg=e},AE=()=>Wg,B8=0;function $E(e={}){let t=Wt(e.onWarn)?e.onWarn:_L,i=je(e.version)?e.version:yE,n=je(e.locale)||Wt(e.locale)?e.locale:Xc,r=Wt(n)?Xc:n,s=ai(e.fallbackLocale)||Ct(e.fallbackLocale)||je(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=Ct(e.messages)?e.messages:A1(r),l=Ct(e.datetimeFormats)?e.datetimeFormats:A1(r),o=Ct(e.numberFormats)?e.numberFormats:A1(r),c=Ii(Xt(),e.modifiers,wE()),u=e.pluralRules||Xt(),d=Wt(e.missing)?e.missing:null,f=Yt(e.missingWarn)||Yc(e.missingWarn)?e.missingWarn:!0,h=Yt(e.fallbackWarn)||Yc(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,p=!!e.unresolving,b=Wt(e.postTranslation)?e.postTranslation:null,v=Ct(e.processor)?e.processor:null,C=Yt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,g=Wt(e.messageCompiler)?e.messageCompiler:Fg,L=Wt(e.messageResolver)?e.messageResolver:zg||gE,x=Wt(e.localeFallbacker)?e.localeFallbacker:Ug||cE,$=Et(e.fallbackContext)?e.fallbackContext:void 0,O=e,F=Et(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,ie=Et(O.__numberFormatters)?O.__numberFormatters:new Map,B=Et(O.__meta)?O.__meta:{};B8++;let A={version:i,cid:B8,locale:n,fallbackLocale:s,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:p,postTranslation:b,processor:v,warnHtmlMessage:C,escapeParameter:y,messageCompiler:g,messageResolver:L,localeFallbacker:x,fallbackContext:$,onWarn:t,__meta:B};return A.datetimeFormats=l,A.numberFormats=o,A.__datetimeFormatters=F,A.__numberFormatters=ie,__INTLIFY_PROD_DEVTOOLS__&&aE(A,i,B),A}var A1=e=>({[e]:Xt()});function J2(e,t,i,n,r){let{missing:s,onWarn:a}=e;if(s!==null){let l=s(e,i,t,r);return je(l)?l:t}else return t}function ao(e,t,i){let n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,i,t)}function ME(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function LE(e,t){let i=t.indexOf(e);if(i===-1)return!1;for(let n=i+1;n<t.length;n++)if(ME(e,t[n]))return!0;return!1}function F8(e,...t){let{datetimeFormats:i,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:a}=e,{__datetimeFormatters:l}=e;if(!je(t[0])&&!Hg(t[0])&&!pi(t[0]))return"";let[o,c,u,d]=qd(...t),f=Yt(u.missingWarn)?u.missingWarn:e.missingWarn;Yt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let h=!!u.part,m=X2(e,u),p=a(e,r,m);if(!je(o)||o==="")return new Intl.DateTimeFormat(m.replace(/!/g,""),d).format(c);let b={},v,C=null,y="datetime format";for(let x=0;x<p.length&&(v=p[x],b=i[v]||{},C=b[o],!Ct(C));x++)J2(e,o,v,f,y);if(!Ct(C)||!je(v))return n?-1:o;let g=`${v}__${o}`;Iu(d)||(g=`${g}__${JSON.stringify(d)}`);let L=l.get(g);return L||(L=new Intl.DateTimeFormat(v,Ii({},C,d)),l.set(g,L)),h?L.formatToParts(c):L.format(c)}var EE=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function qd(...e){let[t,i,n,r]=e,s=Xt(),a=Xt(),l;if(je(t)){let o=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!o)throw _r(pr.INVALID_ISO_DATE_ARGUMENT);let c=o[3]?o[3].trim().startsWith("T")?`${o[1].trim()}${o[3].trim()}`:`${o[1].trim()}T${o[3].trim()}`:o[1].trim();l=new Date(c);try{l.toISOString()}catch{throw _r(pr.INVALID_ISO_DATE_ARGUMENT)}}else if(Hg(t)){if(isNaN(t.getTime()))throw _r(pr.INVALID_DATE_ARGUMENT);l=t}else if(pi(t))l=t;else throw _r(pr.INVALID_ARGUMENT);return je(i)?s.key=i:Ct(i)&&Object.keys(i).forEach(o=>{EE.includes(o)?a[o]=i[o]:s[o]=i[o]}),je(n)?s.locale=n:Ct(n)&&(a=n),Ct(r)&&(a=r),[s.key||"",l,s,a]}function z8(e,t,i){let n=e;for(let r in i){let s=`${t}__${r}`;n.__datetimeFormatters.has(s)&&n.__datetimeFormatters.delete(s)}}function U8(e,...t){let{numberFormats:i,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:a}=e,{__numberFormatters:l}=e;if(!pi(t[0]))return"";let[o,c,u,d]=Gd(...t),f=Yt(u.missingWarn)?u.missingWarn:e.missingWarn;Yt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let h=!!u.part,m=X2(e,u),p=a(e,r,m);if(!je(o)||o==="")return new Intl.NumberFormat(m.replace(/!/g,""),d).format(c);let b={},v,C=null,y="number format";for(let x=0;x<p.length&&(v=p[x],b=i[v]||{},C=b[o],!Ct(C));x++)J2(e,o,v,f,y);if(!Ct(C)||!je(v))return n?-1:o;let g=`${v}__${o}`;Iu(d)||(g=`${g}__${JSON.stringify(d)}`);let L=l.get(g);return L||(L=new Intl.NumberFormat(v,Ii({},C,d)),l.set(g,L)),h?L.formatToParts(c):L.format(c)}var xE=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Gd(...e){let[t,i,n,r]=e,s=Xt(),a=Xt();if(!pi(t))throw _r(pr.INVALID_ARGUMENT);let l=t;return je(i)?s.key=i:Ct(i)&&Object.keys(i).forEach(o=>{xE.includes(o)?a[o]=i[o]:s[o]=i[o]}),je(n)?s.locale=n:Ct(n)&&(a=n),Ct(r)&&(a=r),[s.key||"",l,s,a]}function W8(e,t,i){let n=e;for(let r in i){let s=`${t}__${r}`;n.__numberFormatters.has(s)&&n.__numberFormatters.delete(s)}}var HE=e=>e,TE=e=>"",NE="text",PE=e=>e.length===0?"":q2(e),OE=CL;function $1(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function RE(e){var i,n;let t=pi(e.pluralIndex)?e.pluralIndex:-1;return pi((i=e.named)==null?void 0:i.count)?e.named.count:pi((n=e.named)==null?void 0:n.n)?e.named.n:t}function IE(e={}){var p,b,v,C;let t=e.locale,i=RE(e),n=je(t)&&Wt((p=e.pluralRules)==null?void 0:p[t])?e.pluralRules[t]:$1,r=n===$1?void 0:$1,s=y=>y[n(i,y.length,r)],a=e.list||[],l=y=>a[y],o=e.named||Xt();pi(e.pluralIndex)&&(o.count||(o.count=e.pluralIndex),o.n||(o.n=e.pluralIndex));let c=y=>o[y];function u(y,g){return(Wt(e.messages)?e.messages(y,!!g):Et(e.messages)?e.messages[y]:!1)||(e.parent?e.parent.message(y):TE)}let d=y=>e.modifiers?e.modifiers[y]:HE,f=Wt((b=e.processor)==null?void 0:b.normalize)?e.processor.normalize:PE,h=Wt((v=e.processor)==null?void 0:v.interpolate)?e.processor.interpolate:OE,m={list:l,named:c,plural:s,linked:(y,...g)=>{let[L,x]=g,$="text",O="";g.length===1?Et(L)?(O=L.modifier||O,$=L.type||$):je(L)&&(O=L||O):g.length===2&&(je(L)&&(O=L||O),je(x)&&($=x||$));let F=u(y,!0)(m),ie=F===""||F===void 0?y:F,B=$==="vnode"&&ai(ie)&&O?ie[0]:ie;return O?d(O)(B,$):B},message:u,type:je((C=e.processor)==null?void 0:C.type)?e.processor.type:NE,interpolate:h,normalize:f,values:Ii(Xt(),a,o)};return m}var j8=()=>"",yn=e=>Wt(e);function K8(e,...t){let{fallbackFormat:i,postTranslation:n,unresolving:r,messageCompiler:s,fallbackLocale:a,messages:l}=e,[o,c]=Yd(...t),u=Yt(c.missingWarn)?c.missingWarn:e.missingWarn,d=Yt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=Yt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,m=je(c.default)||Yt(c.default)?Yt(c.default)?s?o:()=>o:c.default:i?s?o:()=>o:null,p=i||m!=null&&(je(m)||Wt(m)),b=X2(e,c);f&&VE(c);let[v,C,y]=h?[o,b,l[b]||Xt()]:jg(e,o,b,a,d,u),g=v,L=o;if(!h&&!(je(g)||Un(g)||yn(g))&&p&&(g=m,L=g),!h&&(!(je(g)||Un(g)||yn(g))||!je(C)))return r?-1:o;let x=!1,$=yn(g)?g:Kg(e,o,C,g,L,()=>{x=!0});if(x)return g;let O=DE(e,$,IE(BE(e,C,y,c))),F=n?n(O,o):O;if(f&&je(F)&&(F=yL(F)),__INTLIFY_PROD_DEVTOOLS__){let ie={timestamp:Date.now(),key:je(o)?o:yn(g)?g.key:"",locale:C||(yn(g)?g.locale:""),format:je(g)?g:yn(g)?g.source:"",message:F};ie.meta=Ii({},e.__meta,{}),lE(ie)}return F}function VE(e){ai(e.list)?e.list=e.list.map(t=>je(t)?x8(t):t):Et(e.named)&&Object.keys(e.named).forEach(t=>{je(e.named[t])&&(e.named[t]=x8(e.named[t]))})}function jg(e,t,i,n,r,s){let{messages:a,onWarn:l,messageResolver:o,localeFallbacker:c}=e,u=c(e,n,i),d=Xt(),f,h=null,m="translate";for(let p=0;p<u.length&&(f=u[p],d=a[f]||Xt(),(h=o(d,t))===null&&(h=d[t]),!(je(h)||Un(h)||yn(h)));p++)if(!LE(f,u)){let b=J2(e,t,f,s,m);b!==t&&(h=b)}return[h,f,d]}function Kg(e,t,i,n,r,s){let{messageCompiler:a,warnHtmlMessage:l}=e;if(yn(n)){let c=n;return c.locale=c.locale||i,c.key=c.key||t,c}if(a==null){let c=()=>n;return c.locale=i,c.key=t,c}let o=a(n,ZE(e,i,r,n,l,s));return o.locale=i,o.key=t,o.source=n,o}function DE(e,t,i){return t(i)}function Yd(...e){let[t,i,n]=e,r=Xt();if(!je(t)&&!pi(t)&&!yn(t)&&!Un(t))throw _r(pr.INVALID_ARGUMENT);let s=pi(t)?String(t):t;return pi(i)?r.plural=i:je(i)?r.default=i:Ct(i)&&!Iu(i)?r.named=i:ai(i)&&(r.list=i),pi(n)?r.plural=n:je(n)?r.default=n:Ct(n)&&Ii(r,n),[s,r]}function ZE(e,t,i,n,r,s){return{locale:t,key:i,warnHtmlMessage:r,onError:a=>{throw s&&s(a),a},onCacheKey:a=>mL(t,i,a)}}function BE(e,t,i,n){let{modifiers:r,pluralRules:s,messageResolver:a,fallbackLocale:l,fallbackWarn:o,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:r,pluralRules:s,messages:(f,h)=>{let m=a(i,f);if(m==null&&(u||h)){let[,,p]=jg(u||e,f,t,l,o,c);m=a(p,f)}if(je(m)||Un(m)){let p=!1,b=Kg(e,f,t,m,f,()=>{p=!0});return p?j8:b}else return yn(m)?m:j8}};return e.processor&&(d.processor=e.processor),n.list&&(d.list=n.list),n.named&&(d.named=n.named),pi(n.plural)&&(d.pluralIndex=n.plural),d}qL();var FE="11.3.0";function zE(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ls().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ls().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ls().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ls().__INTLIFY_PROD_DEVTOOLS__=!1)}var pa={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 r0(e,...t){return Vu(e,null,void 0)}var q8=Bs("__translateVNode"),G8=Bs("__datetimeParts"),Y8=Bs("__numberParts"),UE=Bs("__setPluralRules"),qg=Bs("__injectWithOption"),Xd=Bs("__dispose");function s0(e){if(!Et(e)||Un(e))return e;for(let t in e)if(fn(e,t))if(!t.includes("."))Et(e[t])&&s0(e[t]);else{let i=t.split("."),n=i.length-1,r=e,s=!1;for(let a=0;a<n;a++){if(i[a]==="__proto__")throw Error(`unsafe key: ${i[a]}`);if(i[a]in r||(r[i[a]]=Xt()),!Et(r[i[a]])){s=!0;break}r=r[i[a]]}if(s||(Un(r)?Bg.includes(i[n])||delete e[t]:(r[i[n]]=e[t],delete e[t])),!Un(r)){let a=r[i[n]];Et(a)&&s0(a)}}return e}function Gg(e,t){let{messages:i,__i18n:n,messageResolver:r,flatJson:s}=t,a=Ct(i)?i:ai(n)?Xt():{[e]:Xt()};if(ai(n)&&n.forEach(l=>{if("locale"in l&&"resource"in l){let{locale:o,resource:c}=l;o?(a[o]=a[o]||Xt(),hc(c,a[o])):hc(c,a)}else je(l)&&hc(JSON.parse(l),a)}),r==null&&s)for(let l in a)fn(a,l)&&s0(a[l]);return a}function WE(e){return e.type}function jE(e,t,i){let n=Et(t.messages)?t.messages:Xt();"__i18nGlobal"in i&&(n=Gg(e.locale.value,{messages:n,__i18n:i.__i18nGlobal}));let r=Object.keys(n);if(r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,n[s])}),Et(t.datetimeFormats)){let s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Et(t.numberFormats)){let s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}function X8(e){return Y(rs,null,e,0)}function Yg(){return _i()}var J8=()=>[],KE=()=>!1,Q8=0;function ep(e){return(t,i,n,r)=>e(i,n,Yg()||void 0,r)}function qE(e={}){let{__root:t,__injectWithOption:i}=e,n=t===void 0,r=e.flatJson,s=E8?G:Gn,a=Yt(e.inheritLocale)?e.inheritLocale:!0,l=s(t&&a?t.locale.value:je(e.locale)?e.locale:Xc),o=s(t&&a?t.fallbackLocale.value:je(e.fallbackLocale)||ai(e.fallbackLocale)||Ct(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),c=s(Gg(l.value,e)),u=s(Ct(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),d=s(Ct(e.numberFormats)?e.numberFormats:{[l.value]:{}}),f=t?t.missingWarn:Yt(e.missingWarn)||Yc(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:Yt(e.fallbackWarn)||Yc(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:Yt(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,b=Wt(e.missing)?e.missing:null,v=Wt(e.missing)?ep(e.missing):null,C=Wt(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:Yt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,L=t?t.modifiers:Ct(e.modifiers)?e.modifiers:{},x=e.pluralRules||t&&t.pluralRules,$;$=(()=>{n&&Z8(null);let P={version:FE,locale:l.value,fallbackLocale:o.value,messages:c.value,modifiers:L,pluralRules:x,missing:v===null?void 0:v,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:y,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};P.datetimeFormats=u.value,P.numberFormats=d.value,P.__datetimeFormatters=Ct($)?$.__datetimeFormatters:void 0,P.__numberFormatters=Ct($)?$.__numberFormatters:void 0;let N=$E(P);return n&&Z8(N),N})(),ao($,l.value,o.value);function O(){return[l.value,o.value,c.value,u.value,d.value]}let F=U({get:()=>l.value,set:P=>{$.locale=P,l.value=P}}),ie=U({get:()=>o.value,set:P=>{$.fallbackLocale=P,o.value=P,ao($,l.value,P)}}),B=U(()=>c.value),A=U(()=>u.value),H=U(()=>d.value);function I(){return Wt(C)?C:null}function D(P){C=P,$.postTranslation=P}function q(){return b}function re(P){P!==null&&(v=ep(P)),b=P,$.missing=v}let ae=(P,N,W,ne,Se,Me)=>{O();let Re;try{__INTLIFY_PROD_DEVTOOLS__,n||($.fallbackContext=t?AE():void 0),Re=P($)}finally{__INTLIFY_PROD_DEVTOOLS__,n||($.fallbackContext=void 0)}if(W!=="translate exists"&&pi(Re)&&Re===-1||W==="translate exists"&&!Re){let[Ke,Ge]=N();return t&&m?ne(t):Se(Ke)}else{if(Me(Re))return Re;throw r0(pa.UNEXPECTED_RETURN_TYPE)}};function ge(...P){return ae(N=>Reflect.apply(K8,null,[N,...P]),()=>Yd(...P),"translate",N=>Reflect.apply(N.t,N,[...P]),N=>N,N=>je(N))}function xe(...P){let[N,W,ne]=P;if(ne&&!Et(ne))throw r0(pa.INVALID_ARGUMENT);return ge(N,W,Ii({resolvedMessage:!0},ne||{}))}function J(...P){return ae(N=>Reflect.apply(F8,null,[N,...P]),()=>qd(...P),"datetime format",N=>Reflect.apply(N.d,N,[...P]),()=>"",N=>je(N)||ai(N))}function ve(...P){return ae(N=>Reflect.apply(U8,null,[N,...P]),()=>Gd(...P),"number format",N=>Reflect.apply(N.n,N,[...P]),()=>"",N=>je(N)||ai(N))}function fe(P){return P.map(N=>je(N)||pi(N)||Yt(N)?X8(String(N)):N)}let he={normalize:fe,interpolate:P=>P,type:"vnode"};function te(...P){return ae(N=>{let W,ne=N;try{ne.processor=he,W=Reflect.apply(K8,null,[ne,...P])}finally{ne.processor=null}return W},()=>Yd(...P),"translate",N=>N[q8](...P),N=>[X8(N)],N=>ai(N))}function ue(...P){return ae(N=>Reflect.apply(U8,null,[N,...P]),()=>Gd(...P),"number format",N=>N[Y8](...P),J8,N=>je(N)||ai(N))}function j(...P){return ae(N=>Reflect.apply(F8,null,[N,...P]),()=>qd(...P),"datetime format",N=>N[G8](...P),J8,N=>je(N)||ai(N))}function K(P){x=P,$.pluralRules=x}function se(P,N){return ae(()=>{if(!P)return!1;let W=je(N)?N:l.value,ne=je(N)?[W]:Kd($,o.value,W);for(let Se=0;Se<ne.length;Se++){let Me=T(ne[Se]),Re=$.messageResolver(Me,P);if(Re===null&&(Re=Me[P]),Un(Re)||yn(Re)||je(Re))return!0}return!1},()=>[P],"translate exists",W=>Reflect.apply(W.te,W,[P,N]),KE,W=>Yt(W))}function Q(P){let N=null,W=Kd($,o.value,l.value);for(let ne=0;ne<W.length;ne++){let Se=c.value[W[ne]]||{},Me=$.messageResolver(Se,P);if(Me!=null){N=Me;break}}return N}function S(P){return Q(P)??(t&&t.tm(P)||{})}function T(P){return c.value[P]||{}}function V(P,N){if(r){let W={[P]:N};for(let ne in W)fn(W,ne)&&s0(W[ne]);N=W[P]}c.value[P]=N,$.messages=c.value}function ee(P,N){c.value[P]=c.value[P]||{};let W={[P]:N};if(r)for(let ne in W)fn(W,ne)&&s0(W[ne]);N=W[P],hc(N,c.value[P]),$.messages=c.value}function de(P){return u.value[P]||{}}function pe(P,N){u.value[P]=N,$.datetimeFormats=u.value,z8($,P,N)}function we(P,N){u.value[P]=Ii(u.value[P]||{},N),$.datetimeFormats=u.value,z8($,P,N)}function k(P){return d.value[P]||{}}function E(P,N){d.value[P]=N,$.numberFormats=d.value,W8($,P,N)}function z(P,N){d.value[P]=Ii(d.value[P]||{},N),$.numberFormats=d.value,W8($,P,N)}Q8++,t&&E8&&(Oe(t.locale,P=>{a&&(l.value=P,$.locale=P,ao($,l.value,o.value))}),Oe(t.fallbackLocale,P=>{a&&(o.value=P,$.fallbackLocale=P,ao($,l.value,o.value))}));let le={id:Q8,locale:F,fallbackLocale:ie,get inheritLocale(){return a},set inheritLocale(P){a=P,P&&t&&(l.value=t.locale.value,o.value=t.fallbackLocale.value,ao($,l.value,o.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:B,get modifiers(){return L},get pluralRules(){return x||{}},get isGlobal(){return n},get missingWarn(){return f},set missingWarn(P){f=P,$.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(P){h=P,$.fallbackWarn=h},get fallbackRoot(){return m},set fallbackRoot(P){m=P},get fallbackFormat(){return p},set fallbackFormat(P){p=P,$.fallbackFormat=p},get warnHtmlMessage(){return y},set warnHtmlMessage(P){y=P,$.warnHtmlMessage=P},get escapeParameter(){return g},set escapeParameter(P){g=P,$.escapeParameter=P},t:ge,getLocaleMessage:T,setLocaleMessage:V,mergeLocaleMessage:ee,getPostTranslationHandler:I,setPostTranslationHandler:D,getMissingHandler:q,setMissingHandler:re,[UE]:K};return le.datetimeFormats=A,le.numberFormats=H,le.rt=xe,le.te=se,le.tm=S,le.d=J,le.n=ve,le.getDateTimeFormat=de,le.setDateTimeFormat=pe,le.mergeDateTimeFormat=we,le.getNumberFormat=k,le.setNumberFormat=E,le.mergeNumberFormat=z,le[qg]=i,le[q8]=te,le[G8]=j,le[Y8]=ue,le}var Jd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};Ii({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>pi(e)||!isNaN(e)}},Jd),Ii({value:{type:Number,required:!0},format:{type:[String,Object]}},Jd);var GE=Bs("global-vue-i18n");function Xg(e={}){let t=Yg();if(t==null)throw r0(pa.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw r0(pa.NOT_INSTALLED);let i=YE(t),n=JE(i),r=WE(t),s=XE(e,r);if(s==="global")return jE(n,e,r),n;if(s==="parent"){let o=QE(i,t,e.__useComponent);return o??(o=n),o}let a=i,l=a.__getInstance(t);if(l==null){let o=Ii({},e);"__i18n"in r&&(o.__i18n=r.__i18n),n&&(o.__root=n),l=qE(o),a.__composerExtend&&(l[Xd]=a.__composerExtend(l)),tx(a,t,l),a.__setInstance(t,l)}return l}function YE(e){let t=Pt(e.isCE?GE:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw r0(e.isCE?pa.NOT_INSTALLED_WITH_PROVIDE:pa.UNEXPECTED_ERROR);return t}function XE(e,t){return Iu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function JE(e){return e.mode==="composition"?e.global:e.global.__composer}function QE(e,t,i=!1){let n=null,r=t.root,s=ex(t,i);for(;s!=null;){let a=e;if(e.mode==="composition")n=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){let l=a.__getInstance(s);l!=null&&(n=l.__composer,i&&n&&!n[qg]&&(n=null))}if(n!=null||r===s)break;s=s.parent}return n}function ex(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function tx(e,t,i){at(()=>{},t),Ei(()=>{let n=i;e.__deleteInstance(t);let r=n[Xd];r&&(r(),delete n[Xd])},t)}if(Ii({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Jd),zE(),SE(rE),CE(bE),kE(Kd),__INTLIFY_PROD_DEVTOOLS__){let e=Ls();e.__INTLIFY__=!0,sE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const ix=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},nx=ix("shield-star","0 0 256 256",'<path d="M80.57,117A8,8,0,0,1,91,112.57l29,11.61V96a8,8,0,0,1,16,0v28.18l29-11.61A8,8,0,1,1,171,127.43l-30.31,12.12L158.4,163.2a8,8,0,1,1-12.8,9.6L128,149.33,110.4,172.8a8,8,0,1,1-12.8-9.6l17.74-23.65L85,127.43A8,8,0,0,1,80.57,117ZM224,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,56Zm-16,0L48,56l0,56c0,37.3,13.82,67.51,41.07,89.81A128.25,128.25,0,0,0,128,223.62a129.3,129.3,0,0,0,39.41-22.2C194.34,179.16,208,149.07,208,112Z"/>'),rx=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},sx=rx("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"/>'),ja=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},ax=ja("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"/>'),lx=ja("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"/>'),a0=ja("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"/>'),ox=ja("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"/>'),cx=ja("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"/>'),ux=ja("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"/>'),dx="plus",Jg=Object.freeze(Object.defineProperty({__proto__:null,bold:ox,default:a0,duotone:ux,fill:cx,glyphName:dx,light:lx,regular:a0,thin:ax},Symbol.toStringTag,{value:"Module"})),hx=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},fx=hx("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"/>'),Ka=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},px=Ka("sign-out","0 0 256 256",'<path d="M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"/>'),_x=Ka("sign-out","0 0 256 256",'<path d="M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"/>'),Qd=Ka("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"/>'),mx=Ka("sign-out","0 0 256 256",'<path d="M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"/>'),vx=Ka("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,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"/>'),gx=Ka("sign-out","0 0 256 256",'<path d="M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z" opacity="0.2"/><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"/>'),bx="sign-out",yx=Object.freeze(Object.defineProperty({__proto__:null,bold:mx,default:Qd,duotone:gx,fill:vx,glyphName:bx,light:_x,regular:Qd,thin:px},Symbol.toStringTag,{value:"Module"}));var wx=["title","aria-expanded","disabled"],Sx={class:"nb-user-menu__avatar","aria-hidden":"true"},Cx=["src"],kx={class:"nb-user-menu__identity-text"},Ax={class:"nb-user-menu__identity-name"},$x={key:0,class:"nb-user-menu__identity-email"},Mx={key:1,class:"nb-user-menu__sr-only"},Lx=["title","aria-label","aria-expanded","disabled"],Ex=["src"],xx={class:"nb-user-menu__label"},Hx={class:"nb-user-menu__email"},Tx={key:0,class:"nb-user-menu__role"},Nx=["disabled","onClick"],Px={class:"nb-user-menu__account-main"},Ox={class:"nb-user-menu__account-email"},Rx={key:0,class:"nb-user-menu__account-name"},Ix={class:"nb-user-menu__brand"},Vx={key:1,class:"nb-user-menu__brand-name"},Dx={key:2},Zx=260,M1=8,Bx=Pe({__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"},showTheme:{type:Boolean,default:!1},roleBadge:{default:void 0},disabled:{type:Boolean,default:!1}},emits:["switch","remove","switch-account","add-account","profile","sign-out","open","close"],setup(e,{expose:t,emit:i}){let n={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",APPEARANCE:"Appearance",THEME_LIGHT:"Light",THEME_DARK:"Dark",THEME_SYSTEM:"Match my system",poweredBy:"Accord by Nubisco"},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",APPEARANCE:"Aspeto",THEME_LIGHT:"Claro",THEME_DARK:"Escuro",THEME_SYSTEM:"Seguir o sistema",poweredBy:"Accord da Nubisco"}},{t:r,te:s,locale:a}=Xg({useScope:"global"});function l(ve){var he;if(s(ve))return r(ve);let fe=ve.slice(9);return((he=n[String(a.value).toLowerCase().split("-")[0]])==null?void 0:he[fe])??n.en[fe]??ve}let o=Ru(),c=U(()=>[{label:l("userMenu.THEME_LIGHT"),value:"light"},{label:l("userMenu.THEME_DARK"),value:"dark"},{label:l("userMenu.THEME_SYSTEM"),value:"system"}]),u=`nb-user-menu-appearance-${Vi()}`,d=e,f=Pt("nb-shell-sidebar-variant",null),h=U(()=>d.trigger==="identity"&&((f==null?void 0:f.value)??"verbose")==="verbose"),m=U(()=>{var ve;return((ve=d.user.name)==null?void 0:ve.trim())||d.user.email}),p=U(()=>{var fe;let ve=(fe=d.user.name)==null?void 0:fe.trim();return ve?ve.toLowerCase()===d.user.email.trim().toLowerCase()?"":d.user.email:""}),b=G(!1);Oe(()=>d.user.picture,()=>{b.value=!1});let v=U(()=>!!d.user.picture&&!b.value),C=/(Accord|Nubisco)/,y=U(()=>{let ve=l("userMenu.poweredBy");if(!C.test(ve))return[{text:ve,name:!0,mark:!0}];let fe=!1;return ve.split(C).filter(he=>he!=="").map(he=>{let te=he==="Accord"||he==="Nubisco",ue=he==="Nubisco"&&!fe;return ue&&(fe=!0),{text:he,name:te,mark:ue}})}),g=i,L=G(null),x=G(null),$=G(!1),O=G({});function F(ve){return gg(ve)}let{phone:ie}=vn();function B(){var fe,he;let ve=(fe=L.value)==null?void 0:fe.getBoundingClientRect();if(ve){if(ie.value){let te=((he=x.value)==null?void 0:he.offsetWidth)||Zx,ue=Math.max(M1,window.innerWidth-te-M1);O.value={left:`${Math.round(Math.min(Math.max(ve.left,M1),ue))}px`,bottom:`${Math.round(window.innerHeight-ve.top+8)}px`};return}d.placement==="top-start"?O.value={left:`${Math.round(ve.left)}px`,bottom:`${Math.round(window.innerHeight-ve.top+8)}px`}:O.value={left:`${Math.round(ve.right+12)}px`,bottom:`${Math.round(window.innerHeight-ve.bottom)}px`}}}function A(){d.disabled||($.value?H():(B(),$.value=!0,g("open"),ie.value&&bt(B)))}function H(){$.value&&($.value=!1,g("close"))}function I(ve){ve.current||(H(),g("switch",ve))}function D(ve){g("remove",ve)}function q(){H(),g("switch-account")}function re(){H(),g("add-account")}function ae(){H(),g("profile")}function ge(){H(),g("sign-out")}function xe(ve){var he,te;if(!$.value)return;let fe=ve.target;(he=L.value)!=null&&he.contains(fe)||(te=x.value)!=null&&te.contains(fe)||H()}function J(ve){ve.key==="Escape"&&H()}return at(()=>{document.addEventListener("click",xe),document.addEventListener("keydown",J)}),Ot(()=>{document.removeEventListener("click",xe),document.removeEventListener("keydown",J)}),t({open:$,toggle:A,close:H}),(ve,fe)=>(_(),M("div",{ref_key:"rootRef",ref:L,class:Ee(["nb-user-menu",{"nb-user-menu--identity":h.value,"nb-user-menu--elevated":!!d.roleBadge}])},[Le(ve.$slots,"trigger",{open:$.value,toggle:A},()=>[h.value?(_(),M("button",{key:0,type:"button",class:"nb-user-menu__identity",title:d.user.email,"aria-haspopup":"menu","aria-expanded":$.value,disabled:e.disabled,onClick:A},[w("span",Sx,[v.value?(_(),M("img",{key:0,class:"nb-user-menu__picture",src:d.user.picture??void 0,alt:"",onError:fe[0]||(fe[0]=he=>b.value=!0)},null,40,Cx)):(_(),M(ye,{key:1},[ce(Z(F(d.user)),1)],64))]),w("span",kx,[w("span",Ax,Z(m.value),1),p.value?(_(),M("span",$x,Z(p.value),1)):R("",!0),d.roleBadge?(_(),M("span",Mx," ("+Z(d.roleBadge)+")",1)):R("",!0)])],8,wx)):(_(),M("button",{key:1,type:"button",class:"nb-user-menu__avatar",title:d.user.email,"aria-label":d.roleBadge?`${l("userMenu.ACCOUNT_MENU")} (${d.roleBadge})`:l("userMenu.ACCOUNT_MENU"),"aria-haspopup":"menu","aria-expanded":$.value,disabled:e.disabled,onClick:A},[v.value?(_(),M("img",{key:0,class:"nb-user-menu__picture",src:d.user.picture??void 0,alt:"",onError:fe[1]||(fe[1]=he=>b.value=!0)},null,40,Ex)):(_(),M(ye,{key:1},[ce(Z(F(d.user)),1)],64))],8,Lx))]),(_(),oe(Fi,{to:"body"},[Y(Ds,{name:"nb-user-menu-pop"},{default:X(()=>[$.value?(_(),M("div",{key:0,ref_key:"panelRef",ref:x,class:"nb-user-menu__panel",style:$t(O.value),role:"menu"},[w("p",xx,Z(l("userMenu.SIGNED_IN_AS")),1),w("p",Hx,Z(d.user.email),1),d.roleBadge?(_(),M("p",Tx,[Y(qe,{name:_e(nx),size:13},null,8,["name"]),ce(" "+Z(d.roleBadge),1)])):R("",!0),e.showAccountActions?(_(),M(ye,{key:1},[fe[3]||(fe[3]=w("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),d.accounts&&d.accounts.length?(_(!0),M(ye,{key:0},Be(d.accounts,he=>(_(),M("button",{key:he.id,type:"button",role:"menuitem",class:Ee(["nb-user-menu__account",{"nb-user-menu__account--current":he.current}]),disabled:he.current,onClick:te=>I(he)},[w("span",Px,[w("span",Ox,Z(he.email),1),he.name?(_(),M("span",Rx,Z(he.name),1)):R("",!0)]),he.current?(_(),oe(qe,{key:0,name:_e(e0),size:14,class:"nb-user-menu__check"},null,8,["name"])):he.removable===!1?R("",!0):(_(),oe(qe,{key:1,name:_e(is),size:13,class:"nb-user-menu__remove",title:l("userMenu.REMOVE_ACCOUNT"),onClick:Qe(te=>D(he),["stop"])},null,8,["name","title","onClick"]))],10,Nx))),128)):d.accountsUnknown?(_(),M("button",{key:1,type:"button",role:"menuitem",class:"nb-user-menu__action",onClick:q},[Y(qe,{name:_e(sx),size:15},null,8,["name"]),ce(" "+Z(l("userMenu.SWITCH_ACCOUNT")),1)])):R("",!0),w("button",{type:"button",role:"menuitem",class:"nb-user-menu__action",onClick:re},[Y(qe,{name:_e(a0),size:15},null,8,["name"]),ce(" "+Z(l("userMenu.USE_ANOTHER_ACCOUNT")),1)])],64)):R("",!0),d.showTheme?(_(),M(ye,{key:2},[fe[4]||(fe[4]=w("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),w("div",{class:"nb-user-menu__appearance",role:"group","aria-labelledby":u},[w("p",{id:u,class:"nb-user-menu__appearance-title"},Z(l("userMenu.APPEARANCE")),1),Y(Lg,{name:u,options:c.value,"model-value":_e(o).theme.value,"onUpdate:modelValue":fe[2]||(fe[2]=he=>_e(o).setTheme(he))},null,8,["options","model-value"])])],64)):R("",!0),ve.$slots.default?(_(),M(ye,{key:3},[fe[5]||(fe[5]=w("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),Le(ve.$slots,"default",{close:H})],64)):R("",!0),fe[7]||(fe[7]=w("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),e.showProfile?(_(),M("button",{key:4,type:"button",role:"menuitem",class:"nb-user-menu__action",onClick:ae},[Y(qe,{name:_e(fx),size:15},null,8,["name"]),ce(" "+Z(l("userMenu.PROFILE")),1)])):R("",!0),w("button",{type:"button",role:"menuitem",class:"nb-user-menu__action nb-user-menu__action--danger",onClick:ge},[Y(qe,{name:_e(Qd),size:15},null,8,["name"]),ce(" "+Z(l("userMenu.SIGN_OUT")),1)]),d.brand==="none"?R("",!0):(_(),M(ye,{key:5},[fe[6]||(fe[6]=w("div",{class:"nb-user-menu__divider",role:"separator"},null,-1)),Le(ve.$slots,"brand",{},()=>[w("p",Ix,[(_(!0),M(ye,null,Be(y.value,(he,te)=>(_(),M(ye,{key:te},[he.mark?(_(),oe(nL,{key:0,size:13,class:"nb-user-menu__mark"})):R("",!0),he.name?(_(),M("span",Vx,Z(he.text),1)):(_(),M("span",Dx,Z(he.text),1))],64))),128))])])],64))],4)):R("",!0)]),_:3})]))],2))}}),Fx=Symbol.for("@nubisco/ui:checkbox-group-context"),zx={class:"nb-checkbox__control"},Ux=["checked","disabled","indeterminate"],Wx={class:"nb-checkbox__box"},jx={key:0,class:"nb-checkbox__check",viewBox:"0 0 10 8",fill:"none"},Kx={key:1,class:"nb-checkbox__dash"},qx={key:0,class:"nb-checkbox__label"},eh=it(Pe({__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,n=t,r=Pt(Fx,null),s=U(()=>i.disabled||!!(r!=null&&r.disabled.value));function a(l){s.value||n("update:modelValue",l.target.checked)}return(l,o)=>(_(),M("label",{class:Ee(["nb-checkbox",{"nb-checkbox--disabled":s.value}])},[w("span",zx,[w("input",{type:"checkbox",checked:e.modelValue,disabled:s.value,indeterminate:e.indeterminate,class:"nb-checkbox__input",onChange:a},null,40,Ux),w("span",Wx,[e.modelValue&&!e.indeterminate?(_(),M("svg",jx,[...o[0]||(o[0]=[w("path",{d:"M1 4l3 3 5-6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):R("",!0),e.indeterminate?(_(),M("span",Kx)):R("",!0)])]),e.label?(_(),M("span",qx,Z(e.label),1)):Le(l.$slots,"default",{key:1},void 0,!0)],2))}}),[["__scopeId","data-v-4a411f5c"]]);const qa=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Gx=qa("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"/>'),Yx=qa("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"/>'),tp=qa("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"/>'),Xx=qa("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"/>'),Jx=qa("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"/>'),Qx=qa("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"/>'),eH="arrows-down-up",tH=Object.freeze(Object.defineProperty({__proto__:null,bold:Xx,default:tp,duotone:Qx,fill:Jx,glyphName:eH,light:Yx,regular:tp,thin:Gx},Symbol.toStringTag,{value:"Module"})),Ga=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},iH=Ga("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"/>'),nH=Ga("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"/>'),ip=Ga("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"/>'),rH=Ga("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"/>'),sH=Ga("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"/>'),aH=Ga("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"/>'),lH="arrow-down",oH=Object.freeze(Object.defineProperty({__proto__:null,bold:rH,default:ip,duotone:aH,fill:sH,glyphName:lH,light:nH,regular:ip,thin:iH},Symbol.toStringTag,{value:"Module"}));var cH={key:0,class:"nb-data-table__toolbar"},uH={key:0,class:"nb-data-table__toolbar-heading"},dH={key:0,class:"nb-data-table__title"},hH={key:1,class:"nb-data-table__description"},fH={key:1,class:"nb-data-table__toolbar-row"},pH=["inert","aria-hidden"],_H={key:0,class:"nb-data-table__toolbar-search"},mH={key:1,class:"nb-data-table__batch",role:"region","aria-label":"Table batch actions"},vH={class:"nb-data-table__batch-count"},gH={class:"nb-data-table__batch-actions"},bH={class:"nb-data-table__scroll"},yH=["role","aria-label","aria-busy"],wH={key:0,class:"nb-data-table__col-expand"},SH={key:1,class:"nb-data-table__col-select"},CH={key:2,class:"nb-data-table__col-actions"},kH=["role"],AH=["role"],$H={key:0,scope:"col",class:"nb-data-table__th nb-data-table__expand-cell"},MH={key:1,scope:"col",class:"nb-data-table__th nb-data-table__select-cell"},LH=["aria-sort"],EH=["onClick"],xH={class:"nb-data-table__th-label"},HH={key:1,class:"nb-data-table__th-label"},TH={key:2,scope:"col",class:"nb-data-table__th nb-data-table__actions-cell"},NH=["role"],PH={key:0,class:"nb-data-table__td"},OH={key:1,class:"nb-data-table__td"},RH={key:2,class:"nb-data-table__td"},IH={key:1,class:"nb-data-table__state-row"},VH=["colspan"],DH={key:2,class:"nb-data-table__state-row"},ZH=["colspan"],BH=["role","aria-selected","tabindex","onClick","onKeydown","onKeyup"],FH=["role"],zH=["aria-expanded","aria-controls","aria-label","onClick"],UH=["checked","aria-label","onChange"],WH=["role","data-label"],jH=["role"],KH=["colspan","role"],qH=["id","aria-label"],GH={key:1,class:"nb-data-table__footer"},Q2=it(Pe({__name:"DataTable",props:{columns:{},rows:{},rowKey:{},size:{default:"lg"},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},stackOnPhone:{type:Boolean,default:!1},expanded:{default:()=>[]}},emits:["sort","update:selected","row-click","update:expanded"],setup(e,{emit:t}){let i=e,{layerProps:n}=ha(),r=t,s=nn(),a=`nb-data-table-select-${Vi()}`,l=U(()=>i.size==="xl"?"lg":i.size),o=U(()=>i.columns.filter(N=>!N.hidden)),c=U(()=>i.selectable!=="none"),u=U(()=>!!s["row-actions"]),d=U(()=>!!s["row-detail"]),f=U(()=>o.value.length+(d.value?1:0)+(c.value?1:0)+(u.value?1:0)),{phone:h}=vn(),m=U(()=>i.stackOnPhone&&h.value),p=U(()=>{var N;return(N=o.value.find(W=>W.primary)??o.value.find(W=>!W.phoneHidden&&!W.phoneMeta))==null?void 0:N.key});function b(N){return N.phoneHidden?"nb-data-table__td--phone-hidden":N.key===p.value?"nb-data-table__td--primary":N.phoneMeta?"nb-data-table__td--meta":"nb-data-table__td--field"}let v=U(()=>!i.loading&&!i.error&&i.rows.length>0&&(i.selectable==="multiple"||o.value.some(N=>N.sortable&&!N.phoneHidden)));function C(N){if(N.width!=null)return{width:typeof N.width=="number"?`${N.width}px`:N.width}}function y(N,W){return W[N.key]}function g(N){return N==null?"":String(N)}let L=N=>{var W,ne;return((ne=(W=N.column).render)==null?void 0:ne.call(W,N.row,y(N.column,N.row),N.rowIndex))??null};L.props=["column","row","rowIndex"];function x(N){let W=i.rowKey;return typeof W=="function"?W(N):N[W]}let $=U(()=>new Set(i.selected)),O=U(()=>i.selected),F=U(()=>i.selected.length);function ie(N){return $.value.has(x(N))}let B=U(()=>i.rows.map(N=>x(N))),A=U(()=>B.value.length>0&&B.value.every(N=>$.value.has(N))),H=U(()=>!A.value&&B.value.some(N=>$.value.has(N))),I=G(null),D=!1;function q(N){D=N.shiftKey}Oe(B,()=>{I.value=null});function re(N,W){let ne=x(N),Se=new Set(i.selected),Me=!Se.has(ne),Re=I.value,Ke=Ge=>{Me?Se.add(Ge):Se.delete(Ge)};if(D&&Re!==null&&Re!==W){let Ge=Math.min(Re,W),pt=Math.max(Re,W);for(let _t=Ge;_t<=pt;_t++){let We=i.rows[_t];We&&Ke(x(We))}}else Ke(ne),I.value=W;D=!1,r("update:selected",[...Se])}function ae(N){r("update:selected",[x(N)])}function ge(){let N=new Set(i.selected);A.value?B.value.forEach(W=>N.delete(W)):B.value.forEach(W=>N.add(W)),r("update:selected",[...N])}function xe(){r("update:selected",[])}let J=U(()=>i.selectable!=="none"&&!!s["batch-actions"]),ve=U(()=>J.value&&F.value>0),fe=`nb-data-table-detail-${Vi()}`,he=U(()=>new Set(i.expanded));function te(N){return d.value&&he.value.has(x(N))}function ue(N){let W=x(N),ne=i.expanded.filter(Se=>Se!==W);ne.length===i.expanded.length&&ne.push(W),r("update:expanded",ne)}function j(N){return`${fe}-${N}`}function K(N,W){let ne=o.value.find(Se=>Se.key===p.value);return`Details for ${(ne?g(y(ne,N)).trim():"")||`row ${W+1}`}`}let se=U(()=>!!i.title||!!i.description||!!s.toolbar),Q=U(()=>!!s.search||!!s["toolbar-actions"]||J.value),S=U(()=>se.value||Q.value);function T(N){return!!i.sortState&&i.sortState.key===N.key&&i.sortState.direction!=="none"}function V(N){return T(N)?i.sortState.direction==="asc"?"ascending":"descending":"none"}function ee(N){return T(N)?i.sortState.direction==="asc"?ck:oH:tH}function de(N){return N==="asc"?"desc":N==="desc"?"none":"asc"}function pe(N){let W=i.sortState&&i.sortState.key===N.key?i.sortState.direction:"none";r("sort",{key:N.key,direction:de(W)})}let we=_i(),k=U(()=>{var N;return!!((N=we==null?void 0:we.vnode.props)!=null&&N.onRowClick)});function E(N,W){r("row-click",N,W)}function z(N){return k.value&&N.target===N.currentTarget&&!N.altKey&&!N.ctrlKey&&!N.metaKey}function le(N,W,ne){z(N)&&(N.key==="Enter"?(N.preventDefault(),N.repeat||E(W,ne)):N.key===" "&&N.preventDefault())}function P(N,W,ne){!z(N)||N.key!==" "||(N.preventDefault(),E(W,ne))}return(N,W)=>(_(),M("div",Lt({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},{"nb-data-table--stacked":m.value},{"nb-data-table--stacked-headless":m.value&&!v.value},{"nb-data-table--expandable":d.value}]},_e(n)),[S.value?(_(),M("div",cH,[se.value?(_(),M("div",uH,[Le(N.$slots,"toolbar",{selectedCount:F.value},()=>[e.title?(_(),M("h2",dH,Z(e.title),1)):R("",!0),e.description?(_(),M("p",hH,Z(e.description),1)):R("",!0)],!0)])):R("",!0),Q.value?(_(),M("div",fH,[N.$slots.search||N.$slots["toolbar-actions"]?(_(),M("div",{key:0,class:Ee(["nb-data-table__toolbar-tools",{"nb-data-table__toolbar-tools--search":!!N.$slots.search}]),inert:ve.value||void 0,"aria-hidden":ve.value||void 0},[N.$slots.search?(_(),M("div",_H,[Le(N.$slots,"search",{},void 0,!0)])):R("",!0),Le(N.$slots,"toolbar-actions",{},void 0,!0)],10,pH)):R("",!0),ve.value?(_(),M("div",mH,[w("span",vH,Z(F.value)+" selected ",1),w("div",gH,[Le(N.$slots,"batch-actions",{selectedKeys:O.value,clear:xe},void 0,!0)]),Y(At,{class:"nb-data-table__batch-cancel",variant:"ghost",size:l.value,onClick:xe},{default:X(()=>[...W[3]||(W[3]=[ce(" Cancel ",-1)])]),_:1},8,["size"])])):R("",!0)])):R("",!0)])):R("",!0),w("div",bH,[w("table",{class:"nb-data-table__table",role:m.value?"table":void 0,"aria-label":e.ariaLabel||e.title||void 0,"aria-busy":e.loading||void 0},[w("colgroup",null,[d.value?(_(),M("col",wH)):R("",!0),c.value?(_(),M("col",SH)):R("",!0),(_(!0),M(ye,null,Be(o.value,ne=>(_(),M("col",{key:`col-${ne.key}`,style:$t(C(ne))},null,4))),128)),u.value?(_(),M("col",CH)):R("",!0)]),w("thead",{class:"nb-data-table__head",role:m.value?"rowgroup":void 0},[w("tr",{role:m.value?"row":void 0},[d.value?(_(),M("th",$H,[...W[4]||(W[4]=[w("span",{class:"nb-sr-only"},"Row details",-1)])])):R("",!0),c.value?(_(),M("th",MH,[e.selectable==="multiple"?(_(),oe(eh,{key:0,"model-value":A.value,indeterminate:H.value,"aria-label":"Select all rows","onUpdate:modelValue":ge},null,8,["model-value","indeterminate"])):R("",!0)])):R("",!0),(_(!0),M(ye,null,Be(o.value,ne=>(_(),M("th",{key:`th-${ne.key}`,scope:"col",class:Ee(["nb-data-table__th",`nb-data-table__th--${ne.align||"left"}`,{"nb-data-table__th--sortable":ne.sortable},{"nb-data-table__th--sorted":T(ne)},m.value&&ne.phoneHidden&&"nb-data-table__th--phone-hidden"]),"aria-sort":ne.sortable?V(ne):void 0},[ne.sortable?(_(),M("button",{key:0,type:"button",class:"nb-data-table__sort",onClick:Se=>pe(ne)},[w("span",xH,[Le(N.$slots,`header-${ne.key}`,{column:ne},()=>[ce(Z(ne.header),1)],!0)]),Y(qe,{name:ee(ne),class:"nb-data-table__sort-icon","aria-hidden":"true"},null,8,["name"])],8,EH)):(_(),M("span",HH,[Le(N.$slots,`header-${ne.key}`,{column:ne},()=>[ce(Z(ne.header),1)],!0)]))],10,LH))),128)),u.value?(_(),M("th",TH,[...W[5]||(W[5]=[w("span",{class:"nb-sr-only"},"Row actions",-1)])])):R("",!0)],8,AH)],8,kH),w("tbody",{class:"nb-data-table__body",role:m.value?"rowgroup":void 0},[e.loading?(_(!0),M(ye,{key:0},Be(e.skeletonRows,ne=>(_(),M("tr",{key:`skeleton-${ne}`,class:"nb-data-table__row nb-data-table__row--skeleton"},[d.value?(_(),M("td",PH)):R("",!0),c.value?(_(),M("td",OH,[...W[6]||(W[6]=[w("span",{class:"nb-data-table__skeleton nb-data-table__skeleton--box"},null,-1)])])):R("",!0),(_(!0),M(ye,null,Be(o.value,Se=>(_(),M("td",{key:`sk-${ne}-${Se.key}`,class:"nb-data-table__td"},[...W[7]||(W[7]=[w("span",{class:"nb-data-table__skeleton"},null,-1)])]))),128)),u.value?(_(),M("td",RH,[...W[8]||(W[8]=[w("span",{class:"nb-data-table__skeleton nb-data-table__skeleton--box"},null,-1)])])):R("",!0)]))),128)):e.error?(_(),M("tr",IH,[w("td",{colspan:f.value,class:"nb-data-table__state nb-data-table__state--error"},[Le(N.$slots,"error",{error:e.error},()=>[Y(Mi,{is:"span",align:"center",justify:"center",gap:"xs",class:"nb-data-table__state-inner"},{default:X(()=>[Y(qe,{name:"warning-circle-fill","aria-hidden":"true"}),w("span",null,Z(e.error),1)]),_:1})],!0)],8,VH)])):e.rows.length?(_(!0),M(ye,{key:3},Be(e.rows,(ne,Se)=>(_(),M(ye,{key:x(ne)},[w("tr",{class:Ee(["nb-data-table__row",{"nb-data-table__row--selected":ie(ne)},{"nb-data-table__row--clickable":k.value},d.value&&{"nb-data-table__row--expanded":te(ne),"nb-data-table__row--even":Se%2==1}]),role:m.value?"row":void 0,"aria-selected":e.selectable==="none"?void 0:ie(ne),tabindex:k.value?0:void 0,onClick:Me=>E(ne,Se),onKeydown:Me=>le(Me,ne,Se),onKeyup:Me=>P(Me,ne,Se)},[d.value?(_(),M("td",{key:0,class:"nb-data-table__td nb-data-table__expand-cell",role:m.value?"cell":void 0,onClick:W[0]||(W[0]=Qe(()=>{},["stop"]))},[w("button",{type:"button",class:"nb-data-table__expand","aria-expanded":te(ne),"aria-controls":te(ne)?j(Se):void 0,"aria-label":K(ne,Se),onClick:Me=>ue(ne)},[Y(qe,{name:B2,class:"nb-data-table__expand-icon","aria-hidden":"true"})],8,zH)],8,FH)):R("",!0),c.value?(_(),M("td",{key:1,class:"nb-data-table__td nb-data-table__select-cell",onClick:W[1]||(W[1]=Qe(()=>{},["stop"])),onMousedown:q,onKeydown:q},[e.selectable==="multiple"?(_(),oe(eh,{key:0,"model-value":ie(ne),"aria-label":`Select row ${Se+1}`,"onUpdate:modelValue":Me=>re(ne,Se)},null,8,["model-value","aria-label","onUpdate:modelValue"])):(_(),M("input",{key:1,type:"radio",class:"nb-data-table__radio",name:a,checked:ie(ne),"aria-label":`Select row ${Se+1}`,onChange:Me=>ae(ne)},null,40,UH))],32)):R("",!0),(_(!0),M(ye,null,Be(o.value,Me=>(_(),M("td",{key:`td-${x(ne)}-${Me.key}`,class:Ee(["nb-data-table__td",`nb-data-table__td--${Me.align||"left"}`,Me.cellClass,m.value&&b(Me)]),role:m.value?"cell":void 0,"data-label":e.stackOnPhone?Me.header:void 0},[Le(N.$slots,`cell-${Me.key}`,{row:ne,value:y(Me,ne),column:Me,rowIndex:Se},()=>[Me.render?(_(),oe(L,{key:0,column:Me,row:ne,"row-index":Se},null,8,["column","row","row-index"])):(_(),M(ye,{key:1},[ce(Z(g(y(Me,ne))),1)],64))],!0)],10,WH))),128)),u.value?(_(),M("td",{key:2,class:"nb-data-table__td nb-data-table__actions-cell",onClick:W[2]||(W[2]=Qe(()=>{},["stop"]))},[Le(N.$slots,"row-actions",{row:ne,rowIndex:Se},void 0,!0)])):R("",!0)],42,BH),te(ne)?(_(),M("tr",{key:0,class:"nb-data-table__detail-row",role:m.value?"row":void 0},[w("td",{colspan:f.value,class:"nb-data-table__detail-cell",role:m.value?"cell":void 0},[w("div",{id:j(Se),class:"nb-data-table__detail",role:"region","aria-label":K(ne,Se)},[Le(N.$slots,"row-detail",{row:ne,rowIndex:Se},void 0,!0)],8,qH)],8,KH)],8,jH)):R("",!0)],64))),128)):(_(),M("tr",DH,[w("td",{colspan:f.value,class:"nb-data-table__state nb-data-table__state--empty"},[Le(N.$slots,"empty",{},()=>[w("span",null,Z(e.emptyMessage||"No data to display"),1)],!0)],8,ZH)]))],8,NH)],8,yH)]),N.$slots.footer?(_(),M("div",GH,[Le(N.$slots,"footer",{},void 0,!0)])):R("",!0)],16))}}),[["__scopeId","data-v-c4888282"]]),YH=["width","height","aria-label"],XH={key:0},JH=["x1","x2","y1","y2"],QH={class:"nb-chart__axis"},eT=["x","y"],tT={class:"nb-chart__axis"},iT=["x","y"],nT=["x1","x2","y1","y2"],rT=["y","transform"],sT=["x","y"],aT=["d","fill"],lT=["d","stroke"],oT=["cx","cy","r","fill","onMousedown","onContextmenu"],cT={key:5},uT=["x1","x2","y1","y2"],dT=["x1","x2","y1","y2"],hT="var(--nb-c-surface)",fT=it(Pe({__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,n=t,r=U(()=>U2(0,i.colors)),s={top:16,right:16,bottom:32,left:48},a=G(null),l=j2(a,{width:480,height:240}),o=U(()=>Math.max(0,l.value.width-s.left-s.right)),c=U(()=>Math.max(0,l.value.height-s.top-s.bottom)),u=U(()=>[...i.modelValue].sort((te,ue)=>te.input-ue.input)),d=U(()=>[i.inputMin,i.inputMax]),f=U(()=>{let te=u.value.map(ue=>ue.output);return W2(Math.min(i.outputMin,...te),Math.max(i.outputMax,...te),.05)}),h=U(()=>qc(d.value,[s.left,l.value.width-s.right])),m=U(()=>qc(f.value,[l.value.height-s.bottom,s.top])),p=U(()=>h.value.ticks(6)),b=U(()=>m.value.ticks(5)),v=te=>{let[ue,j]=d.value,[K,se]=h.value.range;return ue+(te-K)/(se-K)*(j-ue)},C=te=>{let[ue,j]=f.value,[K,se]=m.value.range;return ue+(te-K)/(se-K)*(j-ue)},y=(te,ue)=>!ue||ue<=0?te:Math.round(te/ue)*ue,g=(te,ue,j)=>Math.max(ue,Math.min(j,te)),L=(te,ue=1)=>Math.round(te*10**ue)/10**ue,x=U(()=>{let te=u.value;return te.length<2?"":te.map((ue,j)=>`${j===0?"M":"L"}${h.value(ue.input)},${m.value(ue.output)}`).join(" ")}),$=U(()=>{let te=u.value;if(te.length<2)return"";let ue=l.value.height-s.bottom;return`${te.map((j,K)=>`${K===0?"M":"L"}${h.value(j.input)},${m.value(j.output)}`).join(" ")} L${h.value(te[te.length-1].input)},${ue} L${h.value(te[0].input)},${ue} Z`}),O=G(null),F=G(null);function ie(te){n("update:modelValue",[...te].sort((ue,j)=>ue.input-j.input))}function B(te,ue){i.editable&&(O.value=te,window.addEventListener("mousemove",H),window.addEventListener("mouseup",I))}function A(te){var K;let ue=(K=a.value)==null?void 0:K.querySelector("svg");if(!ue)return null;let j=ue.getBoundingClientRect();return{px:te.clientX-j.left,py:te.clientY-j.top}}function H(te){if(O.value===null)return;let ue=A(te);if(!ue)return;let j=v(ue.px),K=C(ue.py),se=[...u.value],Q=O.value,S=i.inputStep>0?i.inputStep:.1;se[Q]={input:L(y(g(j,Q>0?se[Q-1].input+S:i.inputMin,Q<se.length-1?se[Q+1].input-S:i.inputMax),i.inputStep)),output:L(y(g(K,i.outputMin,i.outputMax),i.outputStep))},ie(se)}function I(){O.value=null,window.removeEventListener("mousemove",H),window.removeEventListener("mouseup",I)}function D(te){if(O.value!==null)return;let ue=A(te);if(!ue)return;let j=-1,K=1/0;for(let se=0;se<u.value.length;se++){let Q=u.value[se],S=h.value(Q.input)-ue.px,T=m.value(Q.output)-ue.py,V=Math.sqrt(S*S+T*T);V<K&&(K=V,j=se)}F.value=K<20?j:null,xe.value={x:ue.px+12,y:ue.py-12}}function q(){O.value===null&&(F.value=null)}function re(){O.value!==null&&(O.value=null,window.removeEventListener("mousemove",H),window.removeEventListener("mouseup",I))}function ae(te){if(!i.editable)return;let ue=A(te);if(!ue)return;let j=v(ue.px),K=C(ue.py);if(j<i.inputMin||j>i.inputMax||K<i.outputMin||K>i.outputMax)return;let se=L(y(g(j,i.inputMin,i.inputMax),i.inputStep)),Q=L(y(g(K,i.outputMin,i.outputMax),i.outputStep));ie([...u.value,{input:se,output:Q}])}function ge(te){i.editable&&(u.value.length<=i.minPoints||ie(u.value.filter((ue,j)=>j!==te)))}Ot(()=>{window.removeEventListener("mousemove",H),window.removeEventListener("mouseup",I)});let xe=G({x:0,y:0}),J=U(()=>F.value!==null||O.value!==null),ve=U(()=>{let te=O.value??F.value;return te===null?"":`Point ${te+1}`}),fe=U(()=>{let te=O.value??F.value;if(te===null||te>=u.value.length)return[];let ue=u.value[te];return[{label:i.inputLabel||"Input",value:he(ue.input),color:r.value},{label:i.outputLabel||"Output",value:he(ue.output),color:r.value}]}),he=te=>Number.isInteger(te)?String(te):te.toFixed(1);return(te,ue)=>(_(),oe(F2,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":!1},{default:X(()=>[w("div",{ref_key:"root",ref:a,class:"nb-interpolation-chart"},[(_(),M("svg",{width:_e(l).width,height:_e(l).height,class:"nb-chart__svg",role:"img","aria-label":e.title||"Interpolation chart",onMousemove:D,onMouseleave:q,onMouseup:re,onDblclick:ae,onContextmenu:ue[0]||(ue[0]=Qe(()=>{},["prevent"]))},[e.showGrid&&_e(l).width>0?(_(),M("g",XH,[(_(!0),M(ye,null,Be(b.value,j=>(_(),M("line",{key:`grid-${j}`,class:"nb-chart__gridline",x1:s.left,x2:_e(l).width-s.right,y1:m.value(j),y2:m.value(j)},null,8,JH))),128))])):R("",!0),w("g",QH,[(_(!0),M(ye,null,Be(b.value,j=>(_(),M("text",{key:`yt-${j}`,x:s.left-6,y:m.value(j),"text-anchor":"end","dominant-baseline":"middle"},Z(he(j)),9,eT))),128))]),w("g",tT,[(_(!0),M(ye,null,Be(p.value,j=>(_(),M("text",{key:`xt-${j}`,x:h.value(j),y:_e(l).height-s.bottom+14,"text-anchor":"middle"},Z(he(j)),9,iT))),128))]),w("line",{class:"nb-chart__axis-line",x1:s.left,x2:_e(l).width-s.right,y1:_e(l).height-s.bottom,y2:_e(l).height-s.bottom},null,8,nT),e.outputLabel?(_(),M("text",{key:1,class:"nb-chart__axis-label",x:12,y:s.top+c.value/2,"text-anchor":"middle",transform:`rotate(-90, 12, ${s.top+c.value/2})`},Z(e.outputLabel),9,rT)):R("",!0),e.inputLabel?(_(),M("text",{key:2,class:"nb-chart__axis-label",x:s.left+o.value/2,y:_e(l).height-2,"text-anchor":"middle"},Z(e.inputLabel),9,sT)):R("",!0),u.value.length>=2?(_(),M("path",{key:3,class:"nb-interpolation-chart__area",d:$.value,fill:r.value,opacity:"0.12"},null,8,aT)):R("",!0),u.value.length>=2?(_(),M("path",{key:4,class:"nb-interpolation-chart__line",d:x.value,stroke:r.value,fill:"none","stroke-width":"2","stroke-linejoin":"round","stroke-linecap":"round"},null,8,lT)):R("",!0),(_(!0),M(ye,null,Be(u.value,(j,K)=>(_(),M("circle",{key:`pt-${K}`,class:Ee(["nb-interpolation-chart__point",{"nb-interpolation-chart__point--editable":e.editable,"nb-interpolation-chart__point--dragging":O.value===K,"nb-interpolation-chart__point--hover":F.value===K&&O.value===null}]),cx:h.value(j.input),cy:m.value(j.output),r:O.value===K?7:F.value===K?6:5,fill:r.value,stroke:hT,"stroke-width":"2",onMousedown:Qe(se=>B(K,se),["prevent"]),onContextmenu:Qe(se=>ge(K),["prevent"])},null,42,oT))),128)),O.value===null?R("",!0):(_(),M("g",cT,[w("line",{class:"nb-interpolation-chart__crosshair",x1:h.value(u.value[O.value].input),x2:h.value(u.value[O.value].input),y1:s.top,y2:_e(l).height-s.bottom},null,8,uT),w("line",{class:"nb-interpolation-chart__crosshair",x1:s.left,x2:_e(l).width-s.right,y1:m.value(u.value[O.value].output),y2:m.value(u.value[O.value].output)},null,8,dT)]))],40,YH)),Y(z2,{visible:e.showTooltip&&J.value,x:xe.value.x,y:xe.value.y,title:ve.value,rows:fe.value},null,8,["visible","x","y","title","rows"])],512)]),_:1},8,["title","subtitle","height"]))}}),[["__scopeId","data-v-676875de"]]),Qg=6,pT=8,_T=(e,t=Qg)=>{let i=[];if(e<=0)return i;let n=Math.max(1,Math.ceil(e/t));for(let r=0;r<e;r+=n)i.push(r);return i[i.length-1]!==e-1&&i.push(e-1),i},Jc=(e,t,i)=>{for(let n=1;n<e.length;n++){let r=e[n-1],s=e[n],a=r.x+t(r.index)/2;if(s.x-t(s.index)/2-a<i)return!1}return!0},mT=(e,t,i)=>{if(i===void 0||t>=i)return e;let n=t/2;return Math.min(Math.max(e,n),i-n)},np=(e,t,i,n,r)=>{let s=o=>o.x===i(o.index)?n:r,a=e,l=a[a.length-1];return a.length>2&&!Jc(a.slice(-2),t,s(l))&&(a=[...a.slice(0,-2),l]),a.length>2&&!Jc(a.slice(0,2),t,s(a[0]))&&(a=[a[0],...a.slice(2)]),a},vT=({count:e,positionOf:t,widthOf:i,width:n,gap:r=pT})=>{let s=_T(e);if(!i)return s.map(u=>({index:u,x:t(u)}));let a=u=>({index:u,x:mT(t(u),i(u),n)}),l=np(s.map(a),i,t,-1/0,r);if(Jc(l,i,0))return l;let o=e-1,c=Math.max(1,Math.ceil(e/Qg))+1;for(let u=c;u<=o;u++){let d=[];for(let h=0;h<o;h+=u)d.push(h);let f=np([...d,o].map(a),i,t,r,r);if(Jc(f,i,r))return f}return[a(0)]},gT=["width","height","aria-label"],bT={key:0},yT=["x1","x2","y1","y2"],wT={class:"nb-chart__axis"},ST=["x","y"],CT=["x","y"],kT=["x1","x2","y1","y2"],AT=["d","fill"],$T=["d","stroke"],MT=["cx","cy","r","fill"],LT=["x1","x2","y1","y2"],ET=it(Pe({__name:"LineChart",props:{series:{default:()=>[]},area:{type:Boolean,default:!1},points:{type:Boolean,default:!1},curve:{default:"smooth"},valueFormatter:{},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:()=>Kc}},setup(e){let t=e,i={top:12,right:16,bottom:28,left:44},n=G(null),r=j2(n,{width:480,height:240}),s=U(()=>t.series.map((A,H)=>({name:A.name,data:A.data,color:A.color??U2(H,t.colors)}))),a=U(()=>{var A;return(((A=t.series[0])==null?void 0:A.data)??[]).map(H=>H.x)}),l=U(()=>{let A=t.series.flatMap(H=>H.data.map(I=>I.y));return A.length?W2(Math.min(0,...A),Math.max(...A),.1):[0,1]}),o=U(()=>qc(l.value,[Math.max(i.top,r.value.height-i.bottom),i.top])),c=U(()=>o.value.ticks(5)),u=G(7),d=A=>Math.max(o.value(A),u.value),f=U(()=>Math.max(0,r.value.width-i.left-i.right)),h=A=>{let H=a.value.length;return H<=1?i.left+f.value/2:i.left+A/(H-1)*f.value},m=G(null),p=G(null),b=()=>{let A=m.value;if(!A||typeof document>"u")return;let H=document.createElementNS("http://www.w3.org/2000/svg","text");if(typeof H.getComputedTextLength!="function")return;H.setAttribute("visibility","hidden"),H.setAttribute("aria-hidden","true"),A.appendChild(H);let I=new Map;for(let D of a.value){let q=Z(D);I.has(q)||(H.textContent=q,I.set(q,H.getComputedTextLength()))}if(typeof H.getBBox=="function"){H.setAttribute("dominant-baseline","middle"),H.setAttribute("y","0"),H.textContent="0";let D=-H.getBBox().y;D>0&&(u.value=D)}A.removeChild(H),p.value=I};Oe(a,b,{flush:"post"});let v=typeof document>"u"?void 0:document.fonts;at(()=>{var A;b(),(A=v==null?void 0:v.addEventListener)==null||A.call(v,"loadingdone",b)}),Ot(()=>{var A;(A=v==null?void 0:v.removeEventListener)==null||A.call(v,"loadingdone",b)});let C=U(()=>{let A=a.value,H=p.value;return vT({count:A.length,positionOf:h,widthOf:H?I=>H.get(Z(A[I]))??0:void 0,width:r.value.width}).map(I=>({...I,value:A[I.index]}))}),y=A=>A.length?L(A.map((H,I)=>[h(I),o.value(H.y)]),t.curve):"",g=A=>{if(!A.length)return"";let H=A.map((D,q)=>[h(q),o.value(D.y)]),I=r.value.height-i.bottom;return`${L(H,t.curve)} L${H[H.length-1][0]},${I} L${H[0][0]},${I} Z`},L=(A,H)=>{if(!A.length)return"";if(A.length===1)return`M${A[0][0]},${A[0][1]}`;if(H==="linear")return A.map((q,re)=>`${re===0?"M":"L"}${q[0]},${q[1]}`).join(" ");if(H==="step"){let q=`M${A[0][0]},${A[0][1]}`;for(let re=1;re<A.length;re++){let[ae,ge]=A[re-1],[xe,J]=A[re],ve=(ae+xe)/2;q+=` L${ve},${ge} L${ve},${J} L${xe},${J}`}return q}let I=.2,D=`M${A[0][0]},${A[0][1]}`;for(let q=0;q<A.length-1;q++){let re=A[q-1]??A[q],ae=A[q],ge=A[q+1],xe=A[q+2]??ge,J=ae[0]+(ge[0]-re[0])*I,ve=ae[1]+(ge[1]-re[1])*I,fe=ge[0]-(xe[0]-ae[0])*I,he=ge[1]-(xe[1]-ae[1])*I;D+=` C${J},${ve} ${fe},${he} ${ge[0]},${ge[1]}`}return D},x=A=>Math.abs(A)>=1e3?`${(A/1e3).toFixed(1)}k`:Number.isInteger(A)?String(A):A.toFixed(1),$=A=>t.valueFormatter?t.valueFormatter(A):x(A),O=G(null),F=G({x:0,y:0}),ie=A=>{let H=A.currentTarget.getBoundingClientRect(),I=A.clientX-H.left,D=a.value.length;if(!D)return;let q=(I-i.left)/Math.max(1,f.value);O.value=Math.round(Math.min(1,Math.max(0,q))*(D-1)),F.value={x:A.clientX-H.left+12,y:A.clientY-H.top+12}},B=U(()=>O.value===null?[]:s.value.map(A=>{let H=A.data[O.value];return{label:A.name,value:(H==null?void 0:H.label)??$((H==null?void 0:H.y)??0),color:A.color}}));return(A,H)=>(_(),oe(F2,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&s.value.length>0},{legend:X(()=>[Y(Ag,{items:s.value.map(I=>({label:I.name,color:I.color}))},null,8,["items"])]),default:X(()=>[w("div",{ref_key:"root",ref:n,class:"nb-line-chart"},[(_(),M("svg",{width:_e(r).width,height:_e(r).height,class:"nb-chart__svg",role:"img","aria-label":e.title||"Line chart",onMouseleave:H[0]||(H[0]=I=>O.value=null),onMousemove:ie},[e.showGrid&&_e(r).width>0?(_(),M("g",bT,[(_(!0),M(ye,null,Be(c.value,I=>(_(),M("line",{key:`grid-${I}`,class:"nb-chart__gridline",x1:i.left,x2:_e(r).width-i.right,y1:o.value(I),y2:o.value(I)},null,8,yT))),128))])):R("",!0),w("g",wT,[(_(!0),M(ye,null,Be(c.value,I=>(_(),M("text",{key:`yt-${I}`,x:i.left-6,y:d(I),"text-anchor":"end","dominant-baseline":"middle"},Z($(I)),9,ST))),128))]),w("g",{ref_key:"xAxis",ref:m,class:"nb-chart__axis"},[(_(!0),M(ye,null,Be(C.value,(I,D)=>(_(),M("text",{key:`xt-${D}`,x:I.x,y:_e(r).height-i.bottom+14,"text-anchor":"middle"},Z(I.value),9,CT))),128))],512),w("line",{class:"nb-chart__axis-line",x1:i.left,x2:_e(r).width-i.right,y1:_e(r).height-i.bottom,y2:_e(r).height-i.bottom},null,8,kT),(_(!0),M(ye,null,Be(s.value,(I,D)=>(_(),M("g",{key:`s-${D}`},[e.area?(_(),M("path",{key:0,class:"nb-chart__area",d:g(I.data),fill:I.color,opacity:"0.18"},null,8,AT)):R("",!0),w("path",{class:"nb-chart__line",d:y(I.data),stroke:I.color,fill:"none","stroke-width":"2","stroke-linejoin":"round","stroke-linecap":"round"},null,8,$T),e.points?(_(!0),M(ye,{key:1},Be(I.data,(q,re)=>(_(),M("circle",{key:`p-${D}-${re}`,cx:h(re),cy:o.value(q.y),r:O.value===re?4:3,fill:I.color,class:"nb-chart__point"},null,8,MT))),128)):R("",!0)]))),128)),O.value===null?R("",!0):(_(),M("line",{key:1,class:"nb-chart__hover-line",x1:h(O.value),x2:h(O.value),y1:i.top,y2:_e(r).height-i.bottom},null,8,LT))],40,gT)),Y(z2,{visible:e.showTooltip&&O.value!==null,x:F.value.x,y:F.value.y,title:O.value===null?"":String(a.value[O.value]),rows:B.value},null,8,["visible","x","y","title","rows"])],512)]),_:1},8,["title","subtitle","height","show-legend"]))}}),[["__scopeId","data-v-9a4509a0"]]),Es=Tu("scroll-lock",()=>({count:0,previousOverflow:""}));function eb(){typeof document>"u"||(Es.count===0&&(Es.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden"),Es.count+=1)}function tb(){typeof document>"u"||Es.count!==0&&(--Es.count,Es.count===0&&(document.body.style.overflow=Es.previousOverflow))}var xT=['a[href]:not([tabindex="-1"])','area[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','summary:not([tabindex="-1"])','audio[controls]:not([tabindex="-1"])','video[controls]:not([tabindex="-1"])','iframe:not([tabindex="-1"])','[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].map(e=>`${e}:not([hidden]):not([aria-hidden="true"])`).join(",");function HT(e){return e?Array.from(e.querySelectorAll(xT)).filter(t=>t.getAttribute("aria-disabled")!=="true"):[]}function TT(){return typeof document>"u"?[]:Array.from(document.querySelectorAll('[aria-modal="true"]'))}function rp(e){if(!e)return!1;let t=TT();return t.length===0||t[t.length-1]===e}function NT(e){let{container:t,active:i,initialFocus:n,floatingSelector:r}=e;function s(b){let v=r==null?void 0:r();return!v||!b?!1:!!b.closest(v)}function a(b){let v=t();return!!v&&!!b&&v.contains(b)}function l(){return HT(t())}function o(){var b;(b=t())==null||b.focus()}function c(){let b=l()[0];b?b.focus():o()}let u=null;function d(){let b=u;u=null,b!=null&&b.isConnected&&b.focus()}function f(){u=document.activeElement instanceof HTMLElement?document.activeElement:null}function h(b){if(b.key!=="Tab"||!i())return;let v=t();if(!v||!rp(v)||s(document.activeElement))return;let C=l(),y=document.activeElement;if(C.length===0){b.preventDefault(),a(y)||o();return}let g=C[0],L=C[C.length-1];b.shiftKey&&(y===g||!a(y))?(b.preventDefault(),L.focus()):!b.shiftKey&&y===L?(b.preventDefault(),g.focus()):a(y)||(b.preventDefault(),g.focus())}function m(b){if(!i())return;let v=b.relatedTarget;if(v instanceof Element){if(a(v)||s(v))return}else if(v!==null)return;requestAnimationFrame(()=>{if(!i())return;let C=document.activeElement;a(C)||s(C)||C&&C!==document.body&&!C.isConnected||rp(t())&&c()})}typeof document<"u"&&(document.addEventListener("keydown",h,!0),document.addEventListener("focusout",m,!0));async function p(){if(await bt(),!i())return;let b=(n==null?void 0:n())??null;b?b.focus():c()}return Oe(i,(b,v)=>{b!==v&&(b?(f(),p()):d())}),at(()=>{i()&&(f(),p())}),Ei(()=>{typeof document<"u"&&(document.removeEventListener("keydown",h,!0),document.removeEventListener("focusout",m,!0)),d()}),{focusInside:c,restoreFocus:d}}var PT=["[data-nb-confirm-floating]",".nb-select__dropdown",".nb-menu",".nb-date-picker__calendar",".nb-user-menu__panel",".nb-sidebar-menu-item__flyout"],OT=new Set;function ib(e=[]){return[...PT,...OT,...e].map(t=>t.trim()).filter(Boolean).join(",")}function RT(e,t){if(!e)return;let i=`${t?0:150}ms`;e.style.transitionDuration=i;let n=e.parentElement;n instanceof HTMLElement&&(n.style.transitionDuration=i)}var IT=["role","aria-labelledby","aria-describedby","aria-busy"],VT={key:0,class:"nb-modal--header"},DT=["disabled","aria-disabled"],ZT=["tabindex","role","aria-labelledby"],ef=it(Pe({__name:"Modal",props:{open:{type:Boolean,default:!1},title:{default:void 0},size:{default:oC.Medium},closeOnOverlay:{type:Boolean,default:!0},role:{default:"dialog"},labelledBy:{default:void 0},describedBy:{default:void 0},busy:{type:Boolean,default:!1},closeDisabled:{type:Boolean,default:!1},closeAppearance:{default:"corner"},closeOnEscape:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},initialFocus:{type:[String,Function],default:void 0},floatingSelectors:{default:void 0}},emits:["close"],setup(e,{expose:t,emit:i}){let n=e,r=i,s=nn(),a=U(()=>!!s.header||!!n.title),l=`nb-modal-title-${Vi()}`,o=G(null),c=G(null),{layerProps:u}=ha({overlay:!0});function d(){n.closeOnOverlay&&r("close")}function f(){var F;let O=n.initialFocus;return O?typeof O=="function"?O():((F=o.value)==null?void 0:F.querySelector(O))??null:null}NT({container:()=>o.value,active:()=>n.open&&n.trapFocus,initialFocus:f,floatingSelector:()=>ib(n.floatingSelectors)}),CM(()=>n.open);let h=!1;function m(){h||(h=!0,eb())}function p(){h&&(h=!1,tb())}let b=G(!1);function v(){let O=c.value;if(!O)return;let F=O.scrollHeight-O.clientHeight;!b.value&&F>4?b.value=!0:b.value&&F<=0&&(b.value=!1)}let C=null,y=null;function g(){let O=c.value;O&&(L(),typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>v()),C.observe(O)),typeof MutationObserver<"u"&&(y=new MutationObserver(()=>v()),y.observe(O,{childList:!0,subtree:!0,characterData:!0})),v())}function L(){C==null||C.disconnect(),C=null,y==null||y.disconnect(),y=null}Oe(()=>n.open,async O=>{O?m():p(),await bt(),O?g():(L(),b.value=!1)},{immediate:!0}),Ei(()=>{p(),L()});function x(){let O=o.value;if(!O)return!1;let F=Array.from(document.querySelectorAll('[aria-modal="true"]'));return F.length===0||F[F.length-1]===O}function $(O){O.key==="Escape"&&(O.defaultPrevented||!n.open||!n.closeOnEscape||n.closeDisabled||x()&&r("close"))}return at(()=>{document.addEventListener("keydown",$),n.open&&g()}),Ei(()=>{document.removeEventListener("keydown",$)}),t({dialogEl:()=>o.value,bodyEl:()=>c.value}),(O,F)=>(_(),oe(Fi,{to:"body"},[Y(Ds,{name:"nb-modal"},{default:X(()=>[e.open?(_(),M("div",{key:0,class:"nb-modal--overlay",onClick:Qe(d,["self"])},[w("div",Lt({ref_key:"contentRef",ref:o,class:["nb-modal--content",`nb-modal--content--${e.size}`]},_e(u),{role:e.role,"aria-modal":"true","aria-labelledby":e.labelledBy??(a.value?l:void 0),"aria-describedby":e.describedBy,"aria-busy":e.busy?"true":void 0,tabindex:"-1",onClick:F[2]||(F[2]=Qe(()=>{},["stop"]))}),[a.value?(_(),M("header",VT,[w("span",{id:l,class:"nb-modal--title"},[Le(O.$slots,"header",{},()=>[ce(Z(e.title),1)],!0)]),e.closeAppearance==="button"?(_(),oe(At,{key:0,class:"nb-modal--close-button",size:"sm",variant:"ghost",icon:Wc,"aria-label":"Close",disabled:e.closeDisabled,onClick:F[0]||(F[0]=ie=>r("close"))},null,8,["disabled"])):(_(),M("button",{key:1,class:"nb-modal--close","aria-label":"Close",disabled:e.closeDisabled,"aria-disabled":e.closeDisabled?"true":void 0,onClick:F[1]||(F[1]=ie=>r("close"))},[Y(qe,{name:_e(is)},null,8,["name"])],8,DT))])):R("",!0),w("main",{ref_key:"bodyRef",ref:c,class:"nb-modal--body",tabindex:b.value?0:void 0,role:b.value?"region":void 0,"aria-labelledby":b.value?e.labelledBy??(a.value?l:void 0):void 0},[Le(O.$slots,"default",{},void 0,!0)],8,ZT),O.$slots.footer?(_(),oe(Mi,{key:1,is:"footer",justify:"end",class:"nb-modal--footer",distributed:""},{default:X(()=>[Le(O.$slots,"footer",{},void 0,!0)]),_:3})):R("",!0)],16,IT)])):R("",!0)]),_:3})]))}}),[["__scopeId","data-v-a7825197"]]),BT={key:0,class:"nb-confirm__message"},FT={key:0,class:"nb-confirm__subject-kind"},zT={class:"nb-confirm__subject-name"},UT={key:1,class:"nb-confirm__gate"},WT={class:"nb-confirm__live"},jT={key:0,class:"nb-confirm__status",role:"status"},KT={key:1,class:"nb-confirm__status nb-confirm__status--success",role:"status"},qT=it(Pe({__name:"Confirm",props:{open:{type:Boolean,default:!1},title:{},message:{default:void 0},subject:{default:void 0},subjectLabel:{default:void 0},confirmLabel:{default:"Confirm"},cancelLabel:{default:"Cancel"},tone:{default:"danger"},typeToConfirm:{default:void 0},typeToConfirmLabel:{default:void 0},typeToConfirmHelper:{default:void 0},busy:{type:Boolean,default:!1},busyLabel:{default:"Working..."},succeeded:{type:Boolean,default:!1},successLabel:{default:void 0},error:{default:void 0},size:{default:"sm"},floatingSelectors:{default:()=>[]},contentClass:{default:void 0}},emits:["confirm","cancel"],setup(e,{expose:t,emit:i}){let n=e,r=i,s=Vi(),a=`nb-confirm-title-${s}`,l=`nb-confirm-body-${s}`,o=nn(),c=G(null),u=G(null),d=G(null),f=G(""),h=H2(),m=U(()=>n.busy||n.succeeded);function p(){return!!n.message||!!n.subject||!!o.default}let b=U(()=>n.tone==="danger"?"danger":"primary"),v=U(()=>n.typeToConfirmLabel??`Type ${n.typeToConfirm} to confirm`),C=U(()=>!n.typeToConfirm||f.value.trim()===n.typeToConfirm),y=U(()=>C.value&&!m.value);function g(){y.value&&r("confirm")}function L(){var K;let j=(K=d.value)==null?void 0:K.$el;return j instanceof HTMLElement?j:null}function x(){var j;return((j=c.value)==null?void 0:j.closest('[role="dialog"],[role="alertdialog"]'))??null}function $(){return typeof document>"u"?[]:Array.from(document.querySelectorAll('[aria-modal="true"]'))}function O(){let j=x();if(!j)return!1;let K=$();return K.length===0||K[K.length-1]===j}let F=['a[href]:not([tabindex="-1"])','area[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','summary:not([tabindex="-1"])','audio[controls]:not([tabindex="-1"])','video[controls]:not([tabindex="-1"])','iframe:not([tabindex="-1"])','[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].map(j=>`${j}:not([hidden]):not([aria-hidden="true"])`).join(",");function ie(){return ib(n.floatingSelectors)}function B(j){return j instanceof Element?!!j.closest(ie()):!1}function A(j){let K=x();return!!K&&!!j&&K.contains(j)}function H(){let j=x();return j?Array.from(j.querySelectorAll(F)).filter(K=>K.getAttribute("aria-disabled")!=="true"):[]}function I(){let j=x();return j?(j.focus(),!0):!1}function D(){let j=H()[0];j?j.focus():I()}let q=null;function re(){let j=q;q=null,j!=null&&j.isConnected&&j.focus()}function ae(){RT(x(),h.value)}Oe(h,()=>{n.open&&ae()}),Oe(()=>[n.busy,n.error],async(j,K)=>{if(!n.open)return;let[se,Q]=j,S=(K==null?void 0:K[0])??!1;if(await bt(),se){H().length===0&&I();return}if(S&&Q){let V=u.value;V?V.focus():D();return}let T=document.activeElement;!A(T)&&!B(T)&&D()}),Oe(()=>n.open,async j=>{var K;j?(q=document.activeElement instanceof HTMLElement?document.activeElement:null,f.value="",await bt(),ae(),L()?(K=L())==null||K.focus():I()):re()},{immediate:!0});function ge(){m.value||r("cancel")}let xe=!1,J=!1;function ve(j){let K=j.target;xe=A(K)||B(K)}function fe(j){J=A(j.target)}function he(){let j=xe&&!J;xe=!1,!j&&ge()}function te(j){if(!n.open||B(document.activeElement))return;if(j.key==="Escape"){if(!O())return;j.preventDefault(),j.stopPropagation(),j.stopImmediatePropagation(),ge();return}if(j.key!=="Tab"||!O())return;let K=H();if(K.length===0){j.preventDefault(),A(document.activeElement)||I();return}let se=K[0],Q=K[K.length-1],S=document.activeElement;j.shiftKey&&(S===se||!A(S))?(j.preventDefault(),Q.focus()):!j.shiftKey&&S===Q?(j.preventDefault(),se.focus()):A(S)||(j.preventDefault(),se.focus())}function ue(j){if(!n.open)return;let K=j.relatedTarget;if(K instanceof Element){if(A(K)||B(K))return}else if(K!==null)return;requestAnimationFrame(()=>{if(!n.open)return;let se=document.activeElement;A(se)||B(se)||se&&se!==document.body&&!se.isConnected||O()&&D()})}return typeof document<"u"&&(document.addEventListener("keydown",te,!0),document.addEventListener("focusout",ue,!0),document.addEventListener("mousedown",ve,!0),document.addEventListener("touchstart",ve,!0),document.addEventListener("click",fe,!0)),at(()=>{var j;n.open&&(ae(),L()?(j=L())==null||j.focus():I())}),Ei(()=>{typeof document<"u"&&(document.removeEventListener("keydown",te,!0),document.removeEventListener("focusout",ue,!0),document.removeEventListener("mousedown",ve,!0),document.removeEventListener("touchstart",ve,!0),document.removeEventListener("click",fe,!0)),re()}),t({focusCancel:()=>{var j;return(j=L())==null?void 0:j.focus()},restoreFocus:re,isTopmost:O}),(j,K)=>(_(),oe(ef,{open:e.open,size:e.size,role:e.tone==="danger"?"alertdialog":"dialog","labelled-by":a,"described-by":p()?l:void 0,busy:e.busy,"close-on-overlay":!m.value,"close-disabled":m.value,"close-on-escape":!1,"trap-focus":!1,onClose:he},{header:X(()=>[w("span",{id:a,class:Ee(["nb-confirm__heading",`nb-confirm__heading--${e.tone}`])},[e.tone==="danger"?(_(),oe(qe,{key:0,name:_e(Kr),size:16,"aria-hidden":"true"},null,8,["name"])):R("",!0),w("span",null,Z(e.title),1)],2)]),footer:X(()=>[Y(At,{ref_key:"cancelRef",ref:d,class:"nb-confirm__action nb-confirm__action--cancel",variant:"ghost",size:"lg",disabled:m.value,"data-nb-confirm":"cancel",onClick:ge},{default:X(()=>[ce(Z(e.cancelLabel),1)]),_:1},8,["disabled"]),Y(At,{class:"nb-confirm__action nb-confirm__action--confirm",variant:b.value,size:"lg",disabled:!y.value,loading:e.busy,"data-nb-confirm":"confirm",onClick:g},{default:X(()=>[ce(Z(e.confirmLabel),1)]),_:1},8,["variant","disabled","loading"])]),default:X(()=>[w("div",{ref_key:"rootRef",ref:c,class:Ee(["nb-confirm",e.contentClass])},[p()?(_(),M("div",{key:0,id:l,class:"nb-confirm__body"},[Le(j.$slots,"default",{},()=>[e.message?(_(),M("p",BT,Z(e.message),1)):R("",!0)],!0),e.subject?(_(),M("p",{key:0,class:Ee(["nb-confirm__subject",`nb-confirm__subject--${e.tone}`])},[e.subjectLabel?(_(),M("span",FT,Z(e.subjectLabel),1)):R("",!0),w("span",zT,Z(e.subject),1)],2)):R("",!0)])):R("",!0),e.typeToConfirm?(_(),M("div",UT,[Y(os,{modelValue:f.value,"onUpdate:modelValue":K[0]||(K[0]=se=>f.value=se),class:"nb-confirm__gate-field",label:v.value,helper:e.typeToConfirmHelper,disabled:m.value,autocomplete:"off",spellcheck:"false","data-nb-confirm":"gate",onKeydown:K[1]||(K[1]=Ri(Qe(()=>{},["prevent"]),["enter"]))},null,8,["modelValue","label","helper","disabled"])])):R("",!0),w("div",WT,[e.busy?(_(),M("p",jT,Z(e.busyLabel),1)):R("",!0),e.succeeded&&e.successLabel?(_(),M("p",KT,[Y(qe,{name:_e(e0),size:14,"aria-hidden":"true"},null,8,["name"]),w("span",null,Z(e.successLabel),1)])):R("",!0),e.error?(_(),M("div",{key:2,ref_key:"errorRef",ref:u,class:"nb-confirm__error",tabindex:"-1"},[Y(ct,{variant:"error"},{default:X(()=>[ce(Z(e.error),1)]),_:1})],512)):R("",!0)])],2)]),_:3},8,["open","size","role","described-by","busy","close-on-overlay","close-disabled"]))}}),[["__scopeId","data-v-683eafb1"]]),GT=Symbol.for("@nubisco/ui:shell-slots"),YT=0;function XT(){let e=G([]),t=new Map,i=new Map;function n(s){let a=t.get(s);return a||(a=Gn(null),t.set(s,a)),a}function r(s){let a=i.get(s);return a||(a=U(()=>{let l=e.value.filter(o=>o.name===s&&!o.deactivated);if(l.length===0)return[];if(l.some(o=>o.claim==="last")){let o=l[0];for(let c of l)c.seq>o.seq&&(o=c);return[o.id]}return[...l].sort((o,c)=>o.order-c.order||o.seq-c.seq).map(o=>o.id)}),i.set(s,a)),a}return{registry:{register(s){e.value=[...e.value,s]},unregister(s){let a=e.value.filter(l=>l.id!==s);a.length!==e.value.length&&(e.value=a)},elementFor:n,activeIds:r,setActive(s,a){let l=e.value.find(o=>o.id===s);!l||l.deactivated===!a||(l.deactivated=!a,a&&(l.seq=YT++))}},count:s=>e.value.filter(a=>a.name===s&&!a.deactivated).length,sharedCount:s=>e.value.filter(a=>a.name===s&&!a.deactivated&&a.claim==="all").length,setElement:(s,a)=>{n(s).value=a}}}var JT=Symbol.for("@nubisco/ui:shell-layout"),QT=Pe({__name:"SurfaceLayerScope",props:{level:{}},setup(e){let t=e;return qi(Rd,U(()=>Bc(t.level))),(i,n)=>Le(i.$slots,"default")}}),eN=["href"],tN={class:"nb-shell__middle"},iN=["id","aria-label","tabindex","inert","aria-hidden"],nN={class:"nb-shell__sidebar-logo"},rN={class:"nb-shell__sidebar-header-action"},sN={key:1,class:"nb-shell__sidebar-logo"},aN={class:"nb-shell__sidebar-nav"},lN={class:"nb-shell__sidebar-bottom"},oN={class:"nb-shell__right"},cN={key:2,class:"nb-shell__menubar"},uN={key:3,class:"nb-shell__topbar"},dN=["aria-label","aria-expanded","aria-controls"],hN={class:"nb-shell__content-row"},fN=["inert","aria-hidden"],pN={class:"nb-shell__page"},_N=["aria-expanded"],mN={class:"nb-shell__contextbar-toggle-glyph","aria-hidden":"true"},vN={class:"nb-shell__main-row"},gN=["aria-label"],bN=["id"],yN=["aria-label","inert","aria-hidden"],wN=["aria-label"],SN=["aria-label","aria-valuenow","aria-valuemax"],CN="(pointer: coarse) and (hover: none) and (max-height: 500px)",kN='a[href], [role="menuitem"]',sp=240,lo=288,AN=16,$N=64,MN=it(Pe({__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"},sidebarHeaderActionPosition:{default:"end"},sidebarHeaderActionCompact:{default:"stack"},topbar:{default:"auto"},frame:{default:"attached"},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 Ql;let n=nn();function r(ke){return D2(n,ke)}let{registry:s,count:a,sharedCount:l,setElement:o}=XT();qi(GT,s);let c=new Map;function u(ke){let ze=c.get(ke);return ze||(ze=Ae=>o(ke,Ae??null),c.set(ke,ze)),ze}function d(ke){return r(ke)||a(ke)>0}function f(ke){return l(ke)>0?"nb-shell__region--ordered":null}let h=U(()=>{for(let ke of["sidebar-logo","sidebar-nav","sidebar-bottom"])if(r(ke))return!0;return!1}),m=e,p=G(!1),b=i,v={md:672,lg:1056},C=G(typeof window<"u"?window.innerWidth:1/0);function y(ke){let ze=v[m.collapseAt];return ze!=null&&ke<ze}let g=0;function L(){let ke=window.innerWidth;y(ke)!==y(C.value)&&(C.value=ke)}function x(){g||(g=window.requestAnimationFrame(()=>{g=0,C.value=window.innerWidth}))}function $(){typeof window>"u"||(window.removeEventListener("resize",x),g&&(g=(window.cancelAnimationFrame(g),0)))}function O(){typeof window>"u"||(C.value=window.innerWidth,window.addEventListener("resize",x,{passive:!0}))}let F=typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(CN):null,ie=G((F==null?void 0:F.matches)===!0);function B(ke){ie.value=ke.matches}let A=U(()=>y(C.value)||m.collapseAt!=="none"&&ie.value),H=((Ql=_i())==null?void 0:Ql.vnode.props)??{};function I(ke,ze){return ke in H||ze in H}function D(ke,ze){if(ke in H)return H[ke];if(ze in H)return H[ze]}function q(ke,ze){return I(ke,ze)&&D(ke,ze)!==void 0}let re=q("sidebarOpen","sidebar-open"),ae=G(!1);I("sidebarOpen","sidebar-open")&&!re&&Oe(()=>m.sidebarOpen,ke=>{ae.value=ke===!0});let ge=U(()=>re?m.sidebarOpen===!0:ae.value),xe=Vi(),J=U(()=>`nb-shell-sidebar-${xe}`),ve=G(null),fe=G(null),he=U(()=>h.value&&A.value),te=U(()=>h.value&&A.value&&!ge.value);function ue(ke){re||(ae.value=ke),b("update:sidebarOpen",ke)}function j(ke){if(!ke.defaultPrevented){if(h.value&&A.value&&ge.value){ue(!1);return}pe.value&&we(!1)}}function K(ke,ze){var eo,Mf;let Ae=ke.target,tt=(eo=Ae==null?void 0:Ae.closest)==null?void 0:eo.call(Ae,kN);if(!tt||!(ze!=null&&ze.contains(tt)))return!1;let Ci=tt.getAttribute("aria-haspopup");return!(Ci!=null&&Ci!=="false"||tt.hasAttribute("aria-expanded")||tt.getAttribute("aria-disabled")==="true"||(Mf=Ae==null?void 0:Ae.closest)!=null&&Mf.call(Ae,"[data-nb-keep-open]"))}function se(ke){!A.value||!ge.value||K(ke,fe.value)&&ue(!1)}function Q(ke){!A.value||!p.value||K(ke,ke.currentTarget)&&(p.value=!1)}function S(ke){p.value=ke}Oe(ge,async ke=>{var ze,Ae,tt,Ci,eo;A.value&&(await bt(),ke?(tt=(Ae=((ze=fe.value)==null?void 0:ze.querySelector('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])'))??fe.value)==null?void 0:Ae.focus)==null||tt.call(Ae):(eo=(Ci=ve.value)==null?void 0:Ci.focus)==null||eo.call(Ci))}),Oe(A,ke=>{!ke&&ge.value&&ue(!1)});let T=q("inspectorVisible","inspector-visible"),V=G(m.inspectorVisible===!0);I("inspectorVisible","inspector-visible")&&!T&&Oe(()=>m.inspectorVisible,ke=>{V.value=ke===!0});let ee=G(!1),de=U(()=>(T?m.inspectorVisible===!0:V.value)?!(A.value&&ee.value):!1),pe=U(()=>A.value&&de.value);function we(ke){T?ee.value=!ke:(V.value=ke,ee.value=!1),b("update:inspectorVisible",ke)}Oe(()=>m.inspectorVisible,ke=>{ke&&(ee.value=!1)}),Oe(A,ke=>{ke||(ee.value=!1)});let k=G(null),E=G(null);Oe(pe,async ke=>{var ze,Ae,tt;if(ke)E.value=document.activeElement??null,await bt(),(Ae=(ze=k.value)==null?void 0:ze.focus)==null||Ae.call(ze);else{let Ci=E.value;E.value=null,Ci!=null&&Ci.isConnected&&(await bt(),(tt=Ci.focus)==null||tt.call(Ci))}}),Oe(pe,ke=>{ke&&h.value&&ge.value&&ue(!1)});function z(){we(!1)}qi(JT,{collapsed:A,inspectorOverlay:pe});let le=U(()=>pe.value),P=G(null),N=Vi(),W=U(()=>m.mainId||`nb-shell-main-${N}`);function ne(){var ke;(ke=P.value)==null||ke.focus()}let Se=U(()=>he.value||m.topbar==="always"?!0:m.topbar==="never"?!1:r("topbar-left")||r("topbar-right")||a("topbar-left")>0||a("topbar-right")>0),{layerProps:Me}=ha(),{layerProps:Re}=ha({level:0,probe:!1,provideContext:!1}),Ke=G(m.sidebarVariant),Ge=U(()=>A.value&&r("sidebar-header-action")?"verbose":m.sidebarVariant),pt=G(null),_t,We=()=>typeof window>"u"||typeof window.matchMedia!="function"||window.matchMedia("(prefers-reduced-motion: reduce)").matches;Oe(()=>m.sidebarVariant,ke=>{if(clearTimeout(_t),We()||A.value){Ke.value=ke,pt.value=null;return}if(ke==="verbose"){Ke.value=ke,pt.value="expanding",_t=setTimeout(()=>{pt.value=null},sp);return}pt.value="collapsing",_t=setTimeout(()=>{Ke.value=ke,pt.value=null},sp)}),Ot(()=>clearTimeout(_t));let Mt=U(()=>A.value&&r("sidebar-header-action")?"verbose":Ke.value);qi("nb-shell-sidebar-variant",Mt);let Ce=U(()=>r("sidebar-header-action")&&!A.value);qi("nb-shell-sidebar-header-action-position",g4(m,"sidebarHeaderActionPosition"));let Te=G(null),Fe=G(!1);at(()=>o("inspector",Te.value)),Oe(Te,ke=>o("inspector",ke));let st={lg:.5,xl:.75},sn={xs:288,sm:360,md:560},ds=U(()=>Number.isFinite(C.value)?C.value:1280),Mr=U(()=>Math.max(lo,ds.value*.5));function Lr(ke){return Math.round(Math.max(lo,Math.min(ke,Mr.value)))}let er=q("inspectorWidth","inspector-width"),be=G(null),me=U(()=>er?m.inspectorWidth??null:be.value);function Ve(ke){er||(be.value=ke),b("update:inspectorWidth",ke)}let et=U(()=>{let ke=me.value;if(!(!m.resizable||!de.value||ke==null))return{"--nb-shell-inspector-width":`${Lr(ke)}px`}}),Ye=U(()=>{let ke=me.value;if(ke!=null)return Lr(ke);if(m.inspectorExpanded)return Math.round(ds.value*.5);let ze=st[m.inspectorSize],Ae=ze==null?sn[m.inspectorSize]??lo:ds.value*ze;return Math.round(m.inspectorSize==="xl"?Ae:Math.min(Ae,Mr.value))}),Si=U(()=>Math.round(Math.max(Mr.value,Ye.value))),xt=U(()=>Ye.value);function tr(){return Ye.value}function E0(ke){let ze=Te.value;if(!ze)return;let Ae=ze.getBoundingClientRect().right;Ve(Lr(Ae-ke.clientX))}function hs(){Fe.value=!1,window.removeEventListener("pointermove",E0),window.removeEventListener("pointerup",hs),window.removeEventListener("pointercancel",hs)}function Qu(ke){m.resizable&&(ke.preventDefault(),Fe.value=!0,window.addEventListener("pointermove",E0),window.addEventListener("pointerup",hs),window.addEventListener("pointercancel",hs))}function e1(){Ve(null)}function t1(ke){if(!m.resizable)return;let ze=ke.shiftKey?$N:AN,Ae;switch(ke.key){case"ArrowLeft":Ae=tr()+ze;break;case"ArrowRight":Ae=tr()-ze;break;case"Home":Ae=lo;break;case"End":Ae=Mr.value;break;case"Enter":case" ":Ae=null;break;default:return}ke.preventDefault(),Ve(Ae==null?null:Lr(Ae))}return at(()=>{var ke;typeof window>"u"||(C.value=window.innerWidth,window.addEventListener("resize",L,{passive:!0}),m.resizable&&O(),F&&(ie.value=F.matches,typeof F.addEventListener=="function"?F.addEventListener("change",B):(ke=F.addListener)==null||ke.call(F,B)))}),Oe(()=>m.collapseAt,()=>{typeof window<"u"&&(C.value=window.innerWidth)}),Oe(()=>m.resizable,ke=>ke?O():$()),Ot(()=>{var ke;hs(),$(),typeof window<"u"&&window.removeEventListener("resize",L),F&&(typeof F.removeEventListener=="function"?F.removeEventListener("change",B):(ke=F.removeListener)==null||ke.call(F,B))}),t({mainEl:P,sidebarEl:fe,inspectorEl:Te,focusMain:()=>{var ke;return(ke=P.value)==null?void 0:ke.focus()},setSidebarOpen:ue,setInspectorVisible:we,collapsed:A,inspectorOverlay:pe,setContextbarOpen:S}),(ke,ze)=>(_(),M("div",Lt({class:"nb-shell"},_e(Me),{class:[{"nb-shell--no-sidebar":!h.value},h.value?`nb-shell--sidebar-${Mt.value}`:null,{"nb-shell--rail-wide":h.value&&Ge.value==="verbose","nb-shell--detached":e.frame==="detached","nb-shell--collapsed":A.value,"nb-shell--drawer-open":A.value&&ge.value,"nb-shell--rail-collapsing":pt.value==="collapsing","nb-shell--rail-expanding":pt.value==="expanding"}],onKeydown:Ri(j,["esc"])}),[e.skipToContent?(_(),M("a",{key:0,class:"nb-shell__skip-link",href:`#${W.value}`,onClick:ne},Z(e.skipToContentLabel),9,eN)):R("",!0),d("outer-menu")?(_(),M("div",{key:1,ref:u("outer-menu"),class:Ee(["nb-shell__outer-menu",f("outer-menu")])},[Le(ke.$slots,"outer-menu",{},void 0,!0)],2)):R("",!0),w("div",tN,[h.value?(_(),M("nav",{key:0,id:J.value,ref_key:"sidebarRef",ref:fe,class:"nb-shell__sidebar","aria-label":e.sidebarLabel,tabindex:A.value?-1:void 0,inert:te.value||void 0,"aria-hidden":te.value||void 0,onClickCapture:se},[Ce.value?(_(),M("div",{key:0,class:Ee(["nb-shell__sidebar-header",[`nb-shell__sidebar-header--${e.sidebarHeaderActionPosition}`,`nb-shell__sidebar-header--compact-${e.sidebarHeaderActionCompact}`]])},[w("div",nN,[Le(ke.$slots,"sidebar-logo",{},void 0,!0)]),w("div",rN,[Le(ke.$slots,"sidebar-header-action",{},void 0,!0)])],2)):(_(),M("div",sN,[Le(ke.$slots,"sidebar-logo",{},void 0,!0)])),w("div",aN,[Le(ke.$slots,"sidebar-nav",{},void 0,!0)]),ze[4]||(ze[4]=w("div",{class:"nb-shell__sidebar-spacer"},null,-1)),w("div",lN,[Le(ke.$slots,"sidebar-bottom",{},void 0,!0)])],40,iN)):R("",!0),Y(Ds,{name:"nb-shell-scrim"},{default:X(()=>[h.value&&A.value&&ge.value?(_(),M("div",{key:0,class:"nb-shell__scrim",onClick:ze[0]||(ze[0]=Ae=>ue(!1))})):R("",!0)]),_:1}),w("div",oN,[d("inner-menu")?(_(),M("div",{key:0,ref:u("inner-menu"),class:Ee(["nb-shell__inner-menu",f("inner-menu")])},[Le(ke.$slots,"inner-menu",{},void 0,!0)],2)):R("",!0),d("notification")?(_(),M("div",{key:1,ref:u("notification"),class:Ee(["nb-shell__notification",f("notification")])},[Le(ke.$slots,"notification",{},void 0,!0)],2)):R("",!0),r("menubar")?(_(),M("div",cN,[Le(ke.$slots,"menubar",{},void 0,!0)])):R("",!0),Se.value?(_(),M("div",uN,[he.value?(_(),M("button",{key:0,ref_key:"navToggleRef",ref:ve,type:"button",class:"nb-shell__nav-toggle","aria-label":e.navToggleLabel,"aria-expanded":ge.value,"aria-controls":J.value,onClick:ze[1]||(ze[1]=Ae=>ue(!ge.value))},[...ze[5]||(ze[5]=[w("span",{class:"nb-shell__nav-toggle-glyph","aria-hidden":"true"},[w("span"),w("span"),w("span")],-1)])],8,dN)):R("",!0),w("div",{ref:u("topbar-left"),class:"nb-shell__topbar-left"},[Le(ke.$slots,"topbar-left",{},void 0,!0)],512),w("div",{ref:u("topbar-right"),class:"nb-shell__topbar-right"},[Le(ke.$slots,"topbar-right",{},void 0,!0)],512)])):R("",!0),w("div",hN,[w("div",{class:"nb-shell__body",inert:le.value||void 0,"aria-hidden":le.value||void 0},[w("div",pN,[d("fixedbar")?(_(),M("div",{key:0,ref:u("fixedbar"),class:"nb-shell__fixedbar"},[Le(ke.$slots,"fixedbar",{},void 0,!0)],512)):R("",!0),A.value&&d("contextbar")?(_(),M("button",{key:1,type:"button",class:"nb-shell__contextbar-toggle","aria-expanded":p.value,onClick:ze[2]||(ze[2]=Ae=>p.value=!p.value)},[w("span",null,Z(e.contextbarLabel),1),w("span",mN,Z(p.value?"▾":"▸"),1)],8,_N)):R("",!0),w("div",vN,[d("contextbar")?Tt((_(),M("aside",{key:0,ref:u("contextbar"),class:Ee(["nb-shell__contextbar",f("contextbar")]),"aria-label":e.contextbarLabel,onClickCapture:Q},[Le(ke.$slots,"contextbar",{},void 0,!0)],42,gN)),[[y2,!A.value||p.value]]):R("",!0),w("main",Lt({id:W.value,ref_key:"mainRef",ref:P,tabindex:"-1",class:["nb-shell__main",{"nb-shell__main--no-padding":!e.mainPadding}]},_e(Re)),[Y(QT,{level:1},{default:X(()=>[Le(ke.$slots,"default",{},void 0,!0)]),_:3})],16,bN)])]),d("bottom")?(_(),M("div",{key:0,ref:u("bottom"),class:"nb-shell__bottom"},[Le(ke.$slots,"bottom",{},void 0,!0)],512)):R("",!0)],8,fN),w("aside",{ref_key:"inspectorRef",ref:Te,class:Ee(["nb-shell__inspector",{"nb-shell__inspector--visible":de.value,"nb-shell__inspector--expanded":de.value&&e.inspectorExpanded,[`nb-shell__inspector--${e.inspectorSize}`]:de.value,"nb-shell__inspector--resizing":Fe.value,"nb-shell__inspector--overlay":pe.value}]),"aria-label":e.inspectorLabel,inert:!de.value||void 0,"aria-hidden":!de.value||void 0,style:$t(et.value)},[pe.value?(_(),M("button",{key:0,ref_key:"inspectorDismissRef",ref:k,type:"button",class:"nb-shell__inspector-dismiss","aria-label":e.inspectorCloseLabel,onClick:ze[3]||(ze[3]=Ae=>we(!1))},[...ze[6]||(ze[6]=[w("span",{class:"nb-shell__inspector-dismiss-glyph","aria-hidden":"true"},"×",-1)])],8,wN)):R("",!0),e.resizable&&de.value&&!A.value?(_(),M("div",{key:1,class:"nb-shell__inspector-resize",role:"separator",tabindex:"0","aria-orientation":"vertical","aria-label":`Resize ${e.inspectorLabel}`,"aria-valuenow":xt.value,"aria-valuemin":lo,"aria-valuemax":Si.value,title:"Drag or use the arrow keys to resize, Enter or double-click to reset",onPointerdown:Qu,onDblclick:e1,onKeydown:t1},null,40,SN)):R("",!0),Le(ke.$slots,"inspector",{overlay:pe.value,close:z},void 0,!0)],14,yN)])])])],16))}}),[["__scopeId","data-v-b35df4f4"]]),LN={key:0,class:"nb-sidebar-brand__icon"},EN={key:1,class:"nb-sidebar-brand__text"},xN={class:"nb-sidebar-brand__title"},HN={key:0,class:"nb-sidebar-brand__subtitle"},TN=it(Pe({__name:"SidebarBrand",props:{title:{},subtitle:{default:void 0},icon:{default:void 0}},setup(e){let t=Pt("nb-shell-sidebar-variant",G("verbose")),i=U(()=>t.value);return(n,r)=>(_(),M("div",{class:Ee(["nb-sidebar-brand",[`nb-sidebar-brand--${i.value}`]])},[e.icon||n.$slots.icon?(_(),M("div",LN,[Le(n.$slots,"icon",{},()=>[e.icon?(_(),oe(qe,{key:0,name:e.icon,size:24},null,8,["name"])):R("",!0)],!0)])):R("",!0),i.value==="verbose"?(_(),M("div",EN,[w("span",xN,Z(e.title),1),e.subtitle?(_(),M("span",HN,Z(e.subtitle),1)):R("",!0)])):R("",!0)],2))}}),[["__scopeId","data-v-228349ba"]]),NN=Pe({__name:"SidebarVariantScope",props:{variant:{}},setup(e){return qi("nb-shell-sidebar-variant",g4(e,"variant")),(t,i)=>Le(t.$slots,"default")}}),PN={class:"nb-sidebar-menu-item__label"},ON=["title"],RN={key:0,class:"nb-sidebar-menu-item__children",role:"group"},IN={class:"nb-sidebar-menu-item__flyout-header"},VN={class:"nb-sidebar-menu-item__flyout-label"},DN=["aria-label"],nb=it(Pe({__name:"SidebarMenuItem",props:{label:{},icon:{default:void 0},picture:{default:void 0},to:{default:void 0},href:{default:void 0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!1},badge:{default:void 0},badgeVariant:{default:"neutral"}},emits:["click"],setup(e,{emit:t}){let i=e,n=t,r=Pt("nb-shell-sidebar-variant",G("verbose")),s=U(()=>r.value),a=nn(),l=U(()=>{let he=i.badge;if(he===void 0)return;let te=typeof he=="number"?he:Number(String(he).trim());if(!(!Number.isFinite(te)||String(he).trim()===""))return te>99?"99+":String(te)}),o=U(()=>i.badge===void 0?i.label:`${i.label} (${i.badge})`),c=U(()=>{var te;let he=(te=a.default)==null?void 0:te.call(a);return he?V2(he):!1}),u=G(i.defaultExpanded||i.active),d=mg(),f=U(()=>{if(typeof i.to=="string")return i.to;if(i.href)return i.href}),h=U(()=>c.value),m=U(()=>i.to!=null&&!h.value&&!!d.value),p=U(()=>h.value?"button":m.value?d.value:f.value?"a":"button"),b=U(()=>p.value==="a"?{href:f.value}:{});function v(he){if(i.disabled){he.preventDefault();return}if(h.value&&s.value==="verbose"){u.value=!u.value;return}h.value&&s.value==="compact"&&ae(he),n("click",he)}let C=G(null),y=G(null),g=G(!1),L=G(!1),x=G({}),$=null;function O(){if(s.value!=="compact")return;$&&($=(clearTimeout($),null));let he=I();if(!he)return;let te=he.getBoundingClientRect();x.value={top:`${te.top}px`,left:`${te.right+8}px`},g.value=!0}function F(){L.value||($&&clearTimeout($),$=setTimeout(()=>{g.value=!1,$=null},120))}function ie(){O()}function B(){F()}function A(){$&&($=(clearTimeout($),null))}function H(){F()}function I(){let he=C.value;return he?he instanceof HTMLElement?he:he.$el??null:null}function D(he=!1){var te;$&&($=(clearTimeout($),null)),g.value=!1,L.value=!1,he&&((te=I())==null||te.focus())}function q(){let he=y.value;return he?Array.from(he.querySelectorAll('[role="menuitem"]')).filter(te=>!te.hasAttribute("disabled")&&te.getAttribute("aria-disabled")!=="true"&&!te.closest('[style*="display: none"]')):[]}async function re(he){var te;O(),L.value=!0,he&&(await bt(),(te=q()[0])==null||te.focus())}function ae(he){if(g.value&&L.value){D();return}re(he.detail===0)}function ge(he){!h.value||s.value!=="compact"||(he.key==="ArrowRight"||he.key==="ArrowDown"?(he.preventDefault(),re(!0)):he.key==="Escape"&&g.value&&(he.preventDefault(),D(!0)))}function xe(he){var j,K,se,Q;let te=q(),ue=te.indexOf(document.activeElement);switch(he.key){case"Escape":case"ArrowLeft":he.preventDefault(),he.stopPropagation(),D(!0);return;case"ArrowDown":he.preventDefault(),(j=te[(ue+1)%te.length])==null||j.focus();return;case"ArrowUp":he.preventDefault(),(K=te[(ue-1+te.length)%te.length])==null||K.focus();return;case"Home":he.preventDefault(),(se=te[0])==null||se.focus();return;case"End":he.preventDefault(),(Q=te[te.length-1])==null||Q.focus();return;case"Tab":D(!0);return}}function J(he){var ue,j;let te=he.relatedTarget;te&&((ue=y.value)!=null&&ue.contains(te)||(j=I())!=null&&j.contains(te)||D())}function ve(he){var ue;let te=(ue=he.target)==null?void 0:ue.closest('[role="menuitem"]');te&&!te.hasAttribute("aria-expanded")&&D()}function fe(he){var ue,j;let te=he.target;te&&((ue=y.value)!=null&&ue.contains(te)||(j=I())!=null&&j.contains(te)||D())}return Oe(g,he=>{typeof document>"u"||(he?document.addEventListener("pointerdown",fe,!0):document.removeEventListener("pointerdown",fe,!0))}),Oe(s,()=>D()),Ot(()=>{$&&clearTimeout($),typeof document<"u"&&document.removeEventListener("pointerdown",fe,!0)}),(he,te)=>(_(),M("li",{class:Ee(["nb-sidebar-menu-item",[`nb-sidebar-menu-item--${s.value}`]]),role:"none",onMouseenter:ie,onMouseleave:B},[(_(),oe(Ca(p.value),Lt({ref_key:"rowRef",ref:C,class:["nb-sidebar-menu-item__row",{"nb-sidebar-menu-item__row--active":e.active,"nb-sidebar-menu-item__row--disabled":e.disabled,"nb-sidebar-menu-item__row--expandable":c.value&&s.value==="verbose","nb-sidebar-menu-item__row--compact":s.value==="compact"}],type:p.value==="button"?"button":void 0,to:m.value?e.to:void 0},b.value,{disabled:p.value==="button"&&!c.value&&e.disabled||void 0,"aria-disabled":e.disabled||void 0,"aria-expanded":c.value?s.value==="verbose"?u.value:g.value:void 0,"aria-haspopup":c.value&&s.value==="compact"?"menu":void 0,"aria-label":s.value==="compact"?o.value:void 0,role:"menuitem",onClick:v,onKeydown:ge}),{default:X(()=>[e.picture===void 0?e.icon?(_(),oe(qe,{key:1,class:"nb-sidebar-menu-item__icon",name:e.icon,size:s.value==="compact"?18:16},null,8,["name","size"])):R("",!0):(_(),oe(zc,{key:0,class:"nb-sidebar-menu-item__icon nb-sidebar-menu-item__picture",name:e.label,picture:e.picture,size:s.value==="compact"?18:16,decorative:""},null,8,["name","picture","size"])),s.value==="verbose"?(_(),M(ye,{key:2},[w("span",PN,Z(e.label),1),e.badge===void 0?R("",!0):(_(),M("span",{key:0,class:Ee(["nb-sidebar-menu-item__badge",[`nb-sidebar-menu-item__badge--${e.badgeVariant}`]])},Z(e.badge),3)),c.value?(_(),oe(qe,{key:1,class:Ee(["nb-sidebar-menu-item__caret",{"nb-sidebar-menu-item__caret--expanded":u.value}]),name:_e(jc),size:12},null,8,["class","name"])):R("",!0)],64)):l.value===void 0?e.badge===void 0?R("",!0):(_(),M("span",{key:4,class:Ee(["nb-sidebar-menu-item__badge-dot",[`nb-sidebar-menu-item__badge-dot--${e.badgeVariant}`]]),title:String(e.badge)},null,10,ON)):(_(),M("span",{key:3,class:Ee(["nb-sidebar-menu-item__badge-count",[`nb-sidebar-menu-item__badge-count--${e.badgeVariant}`]]),"aria-hidden":"true"},Z(l.value),3))]),_:1},16,["class","type","to","disabled","aria-disabled","aria-expanded","aria-haspopup","aria-label"])),c.value&&s.value==="verbose"?Tt((_(),M("ul",RN,[Le(he.$slots,"default",{},void 0,!0)],512)),[[y2,u.value]]):R("",!0),s.value==="compact"&&g.value?(_(),oe(Fi,{key:1,to:"body"},[w("div",{ref_key:"flyoutRef",ref:y,class:"nb-sidebar-menu-item__flyout",style:$t(x.value),onMouseenter:A,onMouseleave:H,onKeydown:xe,onFocusout:J,onClick:ve},[w("div",IN,[w("span",VN,Z(e.label),1),e.badge===void 0?R("",!0):(_(),M("span",{key:0,class:Ee(["nb-sidebar-menu-item__badge",[`nb-sidebar-menu-item__badge--${e.badgeVariant}`]])},Z(e.badge),3))]),c.value?(_(),oe(NN,{key:0,variant:"verbose"},{default:X(()=>[w("ul",{class:"nb-sidebar-menu-item__flyout-children",role:"menu","aria-label":e.label},[Le(he.$slots,"default",{},void 0,!0)],8,DN)]),_:3})):R("",!0)],36)])):R("",!0)],34))}}),[["__scopeId","data-v-be328999"]]);const Ya=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},ZN=Ya("sidebar-simple","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,44ZM36,200V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z"/>'),BN=Ya("sidebar-simple","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,42ZM38,200V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z"/>'),ap=Ya("sidebar-simple","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,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"/>'),FN=Ya("sidebar-simple","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,36ZM44,60H76V196H44ZM212,196H100V60H212Z"/>'),zN=Ya("sidebar-simple","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,160H88V56H216V200Z"/>'),UN=Ya("sidebar-simple","0 0 256 256",'<path d="M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z" 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,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"/>'),WN="sidebar-simple",jN=Object.freeze(Object.defineProperty({__proto__:null,bold:FN,default:ap,duotone:UN,fill:zN,glyphName:WN,light:BN,regular:ap,thin:ZN},Symbol.toStringTag,{value:"Module"}));var KN=["aria-label","aria-expanded"],qN=it(Pe({__name:"SidebarHeaderToggle",props:{collapseLabel:{default:void 0},expandLabel:{default:void 0},icon:{default:void 0}},emits:["toggle"],setup(e,{emit:t}){let i=e,n=t,r=Pt("nb-shell-sidebar-variant",G("verbose")),s=Pt("nb-shell-sidebar-header-action-position",G("end")),a=U(()=>r.value==="compact"),l=U(()=>s.value==="edge"),o=U(()=>i.icon?i.icon:l.value?a.value?B2:$g:jN),c={en:{COLLAPSE:"Collapse sidebar",EXPAND:"Expand sidebar"},pt:{COLLAPSE:"Recolher barra lateral",EXPAND:"Expandir barra lateral"}};function u(){try{return Xg({useScope:"global"})}catch{return null}}let d=u();function f(m){var b;let p=`sidebarCollapseToggle.${m}`;return d!=null&&d.te(p)?d.t(p):((b=c[String((d==null?void 0:d.locale.value)??"en").toLowerCase().split("-")[0]])==null?void 0:b[m])??c.en[m]}let h=U(()=>a.value?i.expandLabel??f("EXPAND"):i.collapseLabel??f("COLLAPSE"));return(m,p)=>{let b=Xn("nb-tooltip");return Tt((_(),M("button",{type:"button",class:Ee(["nb-sidebar-header-toggle",{"nb-sidebar-header-toggle--edge":l.value}]),"aria-label":h.value,"aria-expanded":!a.value,onClick:p[0]||(p[0]=v=>n("toggle"))},[Y(qe,{name:o.value,size:l.value?14:18},null,8,["name","size"])],10,KN)),[[b,{body:h.value,aria:"none",position:"right"}]])}}}),[["__scopeId","data-v-9dc8cbd7"]]),rb=it(Pe({__name:"SidebarMenu",props:{density:{default:"comfortable"}},setup(e){return(t,i)=>(_(),M("ul",{class:Ee(["nb-sidebar-menu",[`nb-sidebar-menu--${e.density}`]]),role:"menu"},[Le(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-0ea86bc7"]]),GN=["aria-label"],YN={key:0,class:"nb-sidebar-status__label"},XN=it(Pe({__name:"SidebarStatus",props:{label:{},status:{default:"neutral"}},setup(e){let t=Pt("nb-shell-sidebar-variant",G("verbose")),i=U(()=>t.value==="compact");return(n,r)=>{let s=Xn("nb-tooltip");return Tt((_(),M("div",{class:Ee(["nb-sidebar-status",[`nb-sidebar-status--${e.status}`,{"nb-sidebar-status--compact":i.value}]]),role:"status","aria-label":e.label},[r[0]||(r[0]=w("span",{class:"nb-sidebar-status__dot","aria-hidden":"true"},null,-1)),i.value?R("",!0):(_(),M("span",YN,Z(e.label),1))],10,GN)),[[s,{body:i.value?e.label:null,aria:"none",position:"right"}]])}}}),[["__scopeId","data-v-2996103f"]]),JN=["role","aria-live"],QN={class:"nb-toast__icon"},eP={class:"nb-toast__body"},tP={key:0,class:"nb-toast__status"},iP={key:1,class:"nb-toast__title"},nP={class:"nb-toast__message"},rP=["aria-label"],sP=it(Pe({__name:"Toast",props:{variant:{default:"info"},title:{default:void 0},message:{},duration:{default:4e3},cta:{default:void 0},role:{default:"alert"},ariaLive:{default:void 0},statusLabel:{default:void 0},closeLabel:{default:"Close"},managed:{type:Boolean,default:!1},paused:{type:Boolean,default:!1},cycle:{default:0}},emits:["close","action"],setup(e,{emit:t}){let i=e,n=t,r=G(!1),s=U(()=>i.managed?i.paused:r.value),a={success:Oa,error:Ta,warning:Pu,info:Nu},l={success:"Success",error:"Error",warning:"Warning",info:"Information"},o=U(()=>i.statusLabel===void 0?l[i.variant]:i.statusLabel),c=U(()=>i.ariaLive??(i.variant==="error"?"assertive":"polite")),u=null,d=i.duration??0,f=0;function h(){i.managed||!d||(f=Date.now(),u=setTimeout(()=>n("close"),d))}function m(){i.managed||b()}function p(){i.managed||v()}function b(){!d||r.value||(r.value=!0,u&&clearTimeout(u),d-=Date.now()-f)}function v(){!d||!r.value||(r.value=!1,h())}return at(h),Ei(()=>{u&&clearTimeout(u)}),Oe(()=>i.duration,C=>{u&&clearTimeout(u),d=C??0,h()}),(C,y)=>(_(),M("div",{class:Ee(["nb-toast",`nb-toast--${e.variant}`]),role:e.role,"aria-live":c.value,onMouseenter:m,onMouseleave:p},[w("div",QN,[Y(qe,{name:a[e.variant],size:16},null,8,["name"])]),w("div",eP,[o.value?(_(),M("span",tP,Z(o.value),1)):R("",!0),e.title?(_(),M("p",iP,Z(e.title),1)):R("",!0),w("p",nP,Z(e.message),1),e.cta?(_(),M("button",{key:2,class:"nb-toast__cta",type:"button",onClick:y[0]||(y[0]=()=>{e.cta&&e.cta.action(),n("action"),n("close")})},Z(e.cta.label),1)):R("",!0)]),w("button",{class:"nb-toast__close",type:"button","aria-label":e.closeLabel,onClick:y[1]||(y[1]=g=>n("close"))},[Y(qe,{name:_e(is),size:14},null,8,["name"])],8,rP),e.duration?(_(),M("div",{key:e.cycle,class:"nb-toast__progress",style:$t({animationDuration:`${e.duration}ms`,animationPlayState:s.value?"paused":"running"})},null,4)):R("",!0)],42,JN))}}),[["__scopeId","data-v-12e14b36"]]),aP={success:4e3,info:6e3,warning:8e3,error:0},lP={success:"Success",error:"Error",warning:"Warning",info:"Information"},oP=0;function cP(e={}){let t=G(e.max??3),i={...aP,...e.durations},n={status:{...lP,...e.statusLabels},close:e.closeLabel??"Close"},r=G([]),s=G(!1),a=new Map,l=U(()=>r.value),o=U(()=>r.value.filter(D=>D.visible)),c=U(()=>r.value.filter(D=>!D.visible));function u(D){return r.value.find(q=>q.id===D)}function d(D){let q=a.get(D);q!=null&&q.timer&&clearTimeout(q.timer),a.delete(D)}function f(D){let q=a.get(D.id);!q||q.remaining<=0||s.value||(q.startedAt=Date.now(),q.timer=setTimeout(()=>O(D.id,"timeout"),q.remaining))}function h(D){d(D.id),D.cycle+=1,!(D.duration<=0)&&(a.set(D.id,{timer:null,remaining:D.duration,startedAt:Date.now()}),f(D))}function m(D){D.visible=!0,h(D)}function p(D,q){if(D)try{D(q)}catch(re){console.error("[NbToaster] onDismiss threw",re)}}function b(D,q){d(D);let re=r.value.findIndex(ge=>ge.id===D);if(re===-1)return;let[ae]=r.value.splice(re,1);p(ae.onDismiss,q)}function v(){for(let D of[...r.value]){if(D.visible)continue;if(o.value.length<t.value){m(D);continue}if(o.value.some(re=>re.duration>0))break;let q=o.value[0];if(!q)break;b(q.id,"replaced"),m(D)}}function C(D,q){q.message!==void 0&&(D.message=q.message),q.title!==void 0&&(D.title=q.title),q.cta!==void 0&&(D.cta=q.cta),q.key!==void 0&&(D.key=q.key),q.retain!==void 0&&(D.retain=q.retain),q.variant!==void 0&&(D.variant=q.variant),q.duration===void 0?q.variant!==void 0&&(D.duration=g(q.variant,D.cta)):D.duration=q.duration,D.visible&&h(D)}function y(D){return{id:D,update:q=>$(D,q),dismiss:(q="user")=>O(D,q),isActive:()=>u(D)!==void 0}}function g(D,q){return q?0:i[D]}function L(D,q){let re=D.onDismiss;D.onDismiss=void 0,re&&re!==q.onDismiss&&p(re,"replaced"),D.onDismiss=q.onDismiss;let ae=q.variant??"info";D.title=q.title,D.cta=q.cta,D.retain=q.retain,D.variant=ae,D.message=q.message,D.duration=q.duration??g(ae,q.cta),D.visible&&h(D)}function x(D){if(D.key){let ae=r.value.find(ge=>ge.key===D.key);if(ae)return L(ae,D),y(ae.id)}let q=D.variant??"info",re={...D,id:`nb-toast-${++oP}`,variant:q,duration:D.duration??g(q,D.cta),visible:!1,cycle:0};return r.value.push(re),v(),y(re.id)}function $(D,q){let re=u(D);re&&C(re,q)}function O(D,q="user"){b(D,q),v()}function F(D="cleared"){for(let q of[...r.value])b(q.id,D)}function ie(D="navigated"){for(let q of[...r.value])q.retain||b(q.id,D);v()}function B(){if(s.value)return;s.value=!0;let D=Date.now();for(let q of a.values())q.timer&&(clearTimeout(q.timer),q.timer=null,q.remaining=Math.max(0,q.remaining-(D-q.startedAt)))}function A(){if(s.value){s.value=!1;for(let D of o.value)f(D)}}function H(D){let q=a.get(D);return q?s.value||!q.timer?q.remaining:Math.max(0,q.remaining-(Date.now()-q.startedAt)):0}let I=D=>(q,re={})=>x({...re,message:q,variant:D});return{items:l,visible:o,pending:c,paused:s,max:t,labels:n,push:x,info:I("info"),success:I("success"),warning:I("warning"),error:I("error"),update:$,dismiss:O,dismissAll:F,dismissTransient:ie,pause:B,resume:A,remaining:H}}var W0=Tu("toast-queue.default",()=>({queue:null})),sb=Symbol.for("@nubisco/ui:toast-queue");function Du(){if(_i()){let e=Pt(sb,null);if(e)return e}return W0.queue||(W0.queue=cP()),W0.queue}var uP={class:"nb-toaster__announcer"},dP={role:"status","aria-live":"polite","aria-atomic":"true"},hP={role:"alert","aria-live":"assertive","aria-atomic":"true"},fP=["aria-label","data-paused"],pP=["data-toast-id"],L1=new Map;function lp(e,t){let i=(L1.get(e)??0)+t;i<=0?L1.delete(e):L1.set(e,i),!(t<0||i<2)&&(typeof process<"u"||console.warn("[NbToaster] Two hosts are rendering the same queue. Every toast will be shown and announced twice, and both hosts write to queue.max. Mount one NbToaster per application, and give any second host (a demo, a dialog) its own createToastQueue()."))}var _P=it(Pe({__name:"Toaster",props:{queue:{default:void 0},placement:{default:"bottom-end"},max:{default:void 0},label:{default:"Notifications"},to:{type:[String,Boolean],default:"body"},hotkey:{default:"alt+t"},hotkeyHint:{default:"Press Alt plus T to reach it."}},setup(e,{expose:t}){let i=e,n=Pt(sb,null),r=U(()=>i.queue??n??Du()),s=U(()=>r.value.visible.value),a=U(()=>[...s.value].reverse()),l=G(null),o=U(()=>i.to===!1?"body":i.to),c=null;function u(){c&&(c.queue.max.value=c.previous),c=null}Oe([r,()=>i.max],([te,ue])=>{c&&(c.queue!==te||ue===void 0)&&u(),ue!==void 0&&(c||(c={queue:te,previous:te.max.value}),te.max.value=ue)},{immediate:!0});let d=null;function f(te){d!==te&&(d&&lp(d,-1),d=te,te&&lp(te,1))}Oe(r,te=>{d&&f(te)});function h(te){return te.variant==="error"||te.variant==="warning"}let m=G(""),p=G(""),b={polite:{text:m,buffer:[],draining:!1,handle:null},assertive:{text:p,buffer:[],draining:!1,handle:null}};function v(te){let ue=[r.value.labels.status[te.variant],te.title,te.message].filter(Boolean).join(". ");if(!te.cta)return ue;let j=i.hotkey?` ${i.hotkeyHint}`:"";return`${ue}. ${te.cta.label} action available.${j}`}async function C(te){let ue=te.buffer.shift();if(ue===void 0){te.draining=!1;return}te.draining=!0,te.text.value="",await bt(),te.text.value=ue,te.handle=setTimeout(()=>{te.handle=null,C(te)},500)}function y(te){let ue=b[h(te)?"assertive":"polite"];ue.buffer.push(v(te)),ue.draining||C(ue)}Ot(()=>{for(let te of Object.values(b))te.handle&&clearTimeout(te.handle),te.handle=null,te.buffer.length=0,te.draining=!1});let g=new Set;Oe(s,te=>{let ue=new Set(te.map(j=>j.id));for(let j of[...g])ue.has(j.slice(0,j.lastIndexOf(":")))||g.delete(j);for(let j of te){let K=`${j.id}:${j.cycle}`;g.has(K)||(g.add(K),y(j))}},{deep:!0,immediate:!0});let L=new Set,x=!1;function $(te){L.size===0&&(x=r.value.paused.value),L.add(te),r.value.pause()}function O(te){L.delete(te)&&L.size===0&&!x&&r.value.resume()}let F=null;function ie(te){var j;let ue=te.target;!ue||ue===document.body||(j=l.value)!=null&&j.contains(ue)||(F=ue)}function B(){$("focus")}function A(te){var j;let ue=te.relatedTarget;ue&&((j=l.value)!=null&&j.contains(ue))||O("focus")}function H(te){var j,K,se;if(te.key!=="Escape")return;let ue=((K=(j=document.activeElement)==null?void 0:j.closest(".nb-toaster__item"))==null?void 0:K.dataset.toastId)??((se=a.value[0])==null?void 0:se.id);ue&&(te.stopPropagation(),te.preventDefault(),ae(ue))}let I=["button:not([disabled])","[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function D(te){var ue;return((ue=l.value)==null?void 0:ue.querySelector(`[data-toast-id="${te}"]`))??null}function q(te){let ue=D(te);return ue?ue.matches(I)?ue:ue.querySelector(I):null}let re=new Set;Oe(s,(te,ue)=>{var ee,de;if(!ue)return;let j=document.activeElement;if(!j||!((ee=l.value)!=null&&ee.contains(j)))return;let K=(de=j.closest("[data-toast-id]"))==null?void 0:de.dataset.toastId;if(!K||te.some(pe=>pe.id===K))return;let se=[...ue].reverse().map(pe=>pe.id),Q=new Set(te.map(pe=>pe.id)),S=se.indexOf(K),T;for(let pe=S+1;pe<se.length&&!T;pe+=1)Q.has(se[pe])&&(T=se[pe]);for(let pe=S-1;pe>=0&&!T;--pe)Q.has(se[pe])&&(T=se[pe]);let V=F;bt(()=>{let pe=T?q(T):null;if(pe){pe.focus();return}V!=null&&V.isConnected&&V.focus(),F=null})});function ae(te,ue){r.value.dismiss(te,ue??(re.has(te)?"action":"user")),re.delete(te)}let ge={space:"Space",enter:"Enter",escape:"Escape",comma:"Comma",period:"Period",slash:"Slash",backslash:"Backslash",backquote:"Backquote",minus:"Minus",equal:"Equal"};function xe(te){return/^[a-z]$/.test(te)?`Key${te.toUpperCase()}`:/^[0-9]$/.test(te)?`Digit${te}`:ge[te]??null}function J(te){if(!i.hotkey)return!1;let ue=i.hotkey.toLowerCase().split("+"),j=ue[ue.length-1],K=xe(j);if(K?te.code!==K:te.key.toLowerCase()!==j)return!1;let se=Q=>ue.includes(Q);return te.altKey===se("alt")&&te.ctrlKey===se("ctrl")&&te.shiftKey===se("shift")&&te.metaKey===se("meta")}function ve(){let te=document.querySelectorAll('[aria-modal="true"]');for(let ue of te)if(!(l.value&&ue.contains(l.value)))return ue;return null}function fe(te){var j,K;if(!J(te)||a.value.length===0)return;if((j=l.value)!=null&&j.contains(document.activeElement)){te.preventDefault(),F!=null&&F.isConnected?F.focus():(K=document.activeElement)==null||K.blur();return}if(ve())return;let ue=q(a.value[0].id);ue&&(te.preventDefault(),ue.focus())}function he(){document.visibilityState==="hidden"?$("hidden"):O("hidden")}return at(()=>{f(r.value),he(),document.addEventListener("visibilitychange",he),document.addEventListener("focusin",ie),document.addEventListener("keydown",fe)}),Ot(()=>{document.removeEventListener("visibilitychange",he),document.removeEventListener("focusin",ie),document.removeEventListener("keydown",fe);let te=L.size>0&&!x;L.clear(),te&&r.value.resume(),f(null),u()}),Oe(()=>s.value.length,te=>{if(te>0)return;let ue=L.delete("pointer"),j=L.delete("focus");!ue&&!j||L.size===0&&!x&&r.value.resume()}),t({queue:r}),(te,ue)=>(_(),oe(Fi,{to:o.value,disabled:i.to===!1},[w("div",uP,[w("div",dP,Z(m.value),1),w("div",hP,Z(p.value),1)]),s.value.length>0?(_(),M("div",{key:0,ref_key:"regionRef",ref:l,class:Ee(["nb-toaster",`nb-toaster--${i.placement}`]),role:"region","aria-label":i.label,"data-paused":r.value.paused.value?"true":void 0,onMouseenter:ue[0]||(ue[0]=j=>$("pointer")),onMouseleave:ue[1]||(ue[1]=j=>O("pointer")),onFocusin:B,onFocusout:A,onKeydown:H},[Y(A7,{tag:"div",class:"nb-toaster__stack",name:"nb-toaster"},{default:X(()=>[(_(!0),M(ye,null,Be(a.value,j=>(_(),M("div",{key:j.id,class:"nb-toaster__item","data-toast-id":j.id},[Le(te.$slots,"toast",{toast:j,paused:r.value.paused.value,dismiss:K=>ae(j.id,K),action:()=>_e(re).add(j.id)},()=>[Y(sP,{message:j.message,title:j.title,variant:j.variant,cta:j.cta,duration:j.duration,cycle:j.cycle,managed:"",paused:r.value.paused.value,role:"none","aria-live":"off","status-label":r.value.labels.status[j.variant],"close-label":r.value.labels.close,onAction:K=>_e(re).add(j.id),onClose:K=>ae(j.id)},null,8,["message","title","variant","cta","duration","cycle","paused","status-label","close-label","onAction","onClose"])],!0)],8,pP))),128))]),_:3})],42,fP)):R("",!0)],8,["to","disabled"]))}}),[["__scopeId","data-v-4f216da2"]]),ab=function(e){return e.Small="sm",e.Medium="md",e}(ab||{}),ws=function(e){return e.Active="active",e.Finished="finished",e.Error="error",e}(ws||{}),mP={key:0,class:"nb-progress-bar__header"},vP=["aria-label","aria-valuemax","aria-valuenow"],lb=it(Pe({__name:"ProgressBar",props:{value:{default:void 0},max:{default:100},helper:{default:void 0},size:{default:ab.Medium},status:{default:ws.Active},hideLabel:{type:Boolean,default:!1},id:{default:"progress-bar"},label:{}},setup(e){let t=e,i=U(()=>t.value==null&&t.status===ws.Active),n=U(()=>t.status===ws.Active?t.value==null||t.max<=0?0:Math.min(Math.max(t.value/t.max,0),1):1),r=U(()=>i.value?void 0:n.value*t.max),s=U(()=>["nb-progress-bar",`nb-progress-bar--${t.size}`,`nb-progress-bar--${t.status}`,{"nb-progress-bar--indeterminate":i.value}]),a=U(()=>({transform:`scaleX(${n.value})`})),l=U(()=>t.status===ws.Finished?Oa:t.status===ws.Error?Ta:null),o=U(()=>t.status===ws.Error?Uc.Error:Uc.Helper);return(c,u)=>(_(),M("div",{class:Ee(s.value)},[e.label&&!e.hideLabel?(_(),M("div",mP,[Y(xa,null,{default:X(()=>[ce(Z(e.label),1)]),_:1}),l.value?(_(),oe(qe,{key:0,name:l.value,size:14,class:"nb-progress-bar__status-icon"},null,8,["name"])):R("",!0)])):R("",!0),w("div",{class:"nb-progress-bar__track",role:"progressbar","aria-label":e.label,"aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":r.value},[w("div",{class:"nb-progress-bar__bar",style:$t(a.value)},null,4)],8,vP),e.helper?(_(),oe(ct,{key:1,variant:o.value,class:"nb-progress-bar__message"},{default:X(()=>[ce(Z(e.helper),1)]),_:1},8,["variant"])):R("",!0)],2))}}),[["__scopeId","data-v-0d03d47a"]]),Xi=G([]),Ro=new Map,ia=null,th=null;function gP(e){return Xi.value.length>0&&Xi.value[0].key===e}function bP(){return Xi.value.length>0?Xi.value[Xi.value.length-1].element:null}var ob="data-nb-overlay-exempt",op=`[${ob}], .nb-toaster, .nb-toaster__announcer, .nb-loading-announcer`,yP=8;function tf(e,t,i=0){if(!e.matches(op)){if(i<yP&&e.querySelector(op)){for(let n of Array.from(e.children))n instanceof HTMLElement&&tf(n,t,i+1);return}wP(e,t)}}function wP(e,t){let i=Ro.get(e);i===void 0&&e.hasAttribute("inert")||(i===void 0&&e.setAttribute("inert",""),Ro.set(e,(i??0)+1),t.push(e))}function cb(e){for(let t of e){let i=Ro.get(t);if(i!==void 0){if(i>1){Ro.set(t,i-1);continue}Ro.delete(t),t.removeAttribute("inert")}}e.length=0}var ub='a[href], button, input, select, textarea, summary, [tabindex], [contenteditable=""], [contenteditable="true"]';function cp(e){return!(e instanceof HTMLElement)||e.hasAttribute("disabled")||e.getAttribute("aria-hidden")==="true"?!1:e.matches(ub)}function SP(e){let t=ia,i=th;if(ia=null,th=null,typeof document>"u")return;let n=document.activeElement;if(!(n===null||n===document.body||n===e||e!==null&&e.contains(n))||!t)return;if(t.isConnected){t.focus({preventScroll:!0});return}let r=i;for(;r&&!r.isConnected;)r=r.parentElement;for(;r&&r!==document.body;){if(cp(r)){r.focus({preventScroll:!0});return}let s=r.querySelector(ub);if(s&&cp(s)){s.focus({preventScroll:!0});return}r=r.parentElement}}function CP(e,t){if(typeof document>"u"||Xi.value.some(n=>n.key===e))return;if(Xi.value.length===0){let n=document.activeElement;ia=n instanceof HTMLElement?n:null,th=(ia==null?void 0:ia.parentElement)??null,eb()}let i={key:e,element:t,inerted:[]};for(let n of Array.from(document.body.children))n instanceof HTMLElement&&(n===t||n.contains(t)||tf(n,i.inerted));Xi.value=[...Xi.value,i],t.focus({preventScroll:!0})}function kP(e){var i;let t=Xi.value.find(n=>n.key===e);if(t){if(cb(t.inerted),Xi.value=Xi.value.filter(n=>n.key!==e),Xi.value.length>0){(i=bP())==null||i.focus({preventScroll:!0});return}tb(),SP(t.element)}}function AP(e,t){$P(e);let i=[],n=e.getAttribute("aria-busy");e.setAttribute("aria-busy","true");for(let s of Array.from(e.children))s instanceof HTMLElement&&(s===t||s.contains(t)||tf(s,i));let r=!1;return()=>{r||(r=!0,cb(i),n===null?e.removeAttribute("aria-busy"):e.setAttribute("aria-busy",n))}}function $P(e){if(typeof process<"u"||typeof window>"u"||!e.isConnected)return;let t=window.getComputedStyle(e).position;t&&t!=="static"||console.warn(`[NbSpinner] overlay="container" covers the nearest positioned ancestor, and this spinner's parent element is position: static, so the scrim will be drawn over some ancestor further up while only the parent is blocked. Set position: relative on the element you mean to cover.`)}var Ui=null,j0,MP=!1;function LP(){return typeof document>"u"?null:(Ui!=null&&Ui.isConnected||(Ui=document.createElement("div"),Ui.setAttribute("role","status"),Ui.setAttribute("aria-live","polite"),Ui.setAttribute("aria-atomic","true"),Ui.className="nb-loading-announcer",Ui.setAttribute(ob,""),Ui.style.cssText="position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;white-space:nowrap;border:0;clip-path:inset(50%)",document.body.appendChild(Ui)),Ui)}function db(e){if(!e||MP)return;let t=LP();t&&(t.textContent="",j0&&clearTimeout(j0),j0=setTimeout(()=>{j0=void 0,t.textContent=e},60))}var hb=function(e){return e.ExtraSmall="xs",e.Small="sm",e.Medium="md",e.Large="lg",e}(hb||{}),fc=function(e){return e.None="none",e.Container="container",e.Page="page",e}(fc||{}),fb=function(e){return e.Primary="primary",e.Inherit="inherit",e}(fb||{}),EP=["id","tabindex","role","aria-live","aria-hidden"],xP={key:0,class:"nb-spinner__label","aria-hidden":"true"},HP={key:1,class:"nb-spinner__announcement"},y0=it(Pe({inheritAttrs:!1,__name:"Spinner",props:{size:{default:hb.Medium},label:{default:"Loading"},showLabel:{type:Boolean,default:!1},overlay:{default:fc.None},tone:{default:fb.Primary},delay:{default:0},completeLabel:{default:void 0},decorative:{type:Boolean,default:!1},id:{default:void 0}},setup(e){let t=e,i=ka(t),n=Symbol("nb-spinner-page-overlay"),r=G(null),s=H2(),a=U(()=>t.overlay===fc.Page),l=U(()=>t.overlay===fc.Container),o=U(()=>t.decorative&&!a.value),c=U(()=>!o.value),u=G(t.delay<=0),d;function f(){d&&(d=(clearTimeout(d),void 0))}Oe(()=>t.delay,L=>{if(!u.value){if(f(),L<=0){u.value=!0;return}d=setTimeout(()=>{d=void 0,u.value=!0},L)}},{immediate:!0});let h=G(""),m;function p(){m&&(m=(clearTimeout(m),void 0))}Oe([u,c,()=>t.label],([L,x,$])=>{if(p(),!L||!x){h.value="";return}if(h.value!==""){h.value=$;return}m=setTimeout(()=>{m=void 0,h.value=$},0)},{immediate:!0});let b=null,v=null;function C(){if(b===null)return;let L=b;b=null,L==="page"&&kP(n),v==null||v(),v=null}function y(){let L=u.value?a.value?"page":l.value?"container":null:null;if(L===b||(C(),L===null))return;let x=r.value;if(!x)return;if(b=L,L==="page"){CP(n,x);return}let $=x.parentElement;$&&(v=AP($,x))}Oe([u,()=>t.overlay],y,{flush:"post"}),at(y),Ot(()=>{u.value&&c.value&&db(t.completeLabel),f(),p(),C()});let g=U(()=>["nb-spinner",`nb-spinner--${t.size}`,`nb-spinner--tone-${t.tone}`,`nb-spinner--overlay-${t.overlay}`,{"nb-spinner--with-label":t.showLabel&&!o.value,"nb-spinner--reduced-motion":s.value,"nb-spinner--overlay-stacked":a.value&&u.value&&!gP(n)}]);return(L,x)=>(_(),oe(Fi,{to:"body",disabled:!a.value},[u.value?(_(),M("div",Lt({key:0},L.$attrs,{id:_e(i),ref_key:"rootEl",ref:r,class:g.value,tabindex:a.value?-1:void 0,role:c.value?"status":void 0,"aria-live":c.value?"polite":void 0,"aria-hidden":o.value?"true":void 0}),[x[1]||(x[1]=w("svg",{class:"nb-spinner__ring",viewBox:"0 0 32 32","aria-hidden":"true",focusable:"false"},[w("circle",{class:"nb-spinner__track",cx:"16",cy:"16",r:"14"}),w("circle",{class:"nb-spinner__arc",cx:"16",cy:"16",r:"14"})],-1)),e.showLabel&&!o.value?(_(),M("span",xP,Z(e.label),1)):R("",!0),c.value?(_(),M("span",HP,Z(h.value),1)):R("",!0),L.$slots.default?(_(),M("div",{key:2,class:"nb-spinner__actions","aria-live":"off",onClick:x[0]||(x[0]=Qe(()=>{},["stop"]))},[Le(L.$slots,"default",{},void 0,!0)])):R("",!0)],16,EP)):R("",!0)],8,["disabled"]))}}),[["__scopeId","data-v-55d1147d"]]),Vr=function(e){return e.Text="text",e.Heading="heading",e.Block="block",e.Circle="circle",e}(Vr||{}),TP=["id","role","aria-live","aria-hidden"],NP={key:0,class:"nb-skeleton__label"},PP={class:"nb-skeleton__lines","aria-busy":"true"},OP=it(Pe({__name:"Skeleton",props:{variant:{default:Vr.Text},type:{default:void 0},lines:{default:1},lastLineWidth:{default:"60%"},width:{default:void 0},height:{default:void 0},radius:{default:"sm"},animated:{type:Boolean,default:!0},label:{default:void 0},completeLabel:{default:void 0},id:{default:void 0}},setup(e){let t=e,i=ka(t),n=H2(),r=G(""),s;Oe(()=>t.label,m=>{if(s&&(s=(clearTimeout(s),void 0)),!m){r.value="";return}if(r.value!==""){r.value=m;return}s=setTimeout(()=>{s=void 0,r.value=m},0)},{immediate:!0}),Ot(()=>{s&&clearTimeout(s),db(t.completeLabel)});let a=["label-sm","label-md","label-lg","body-sm","body-md","body-lg","code-sm","code-md","code-lg","heading-01","heading-02","heading-03","heading-04","heading-05","heading-06"],l=U(()=>t.type&&a.includes(t.type)?t.type:t.variant===Vr.Heading?"heading-02":"body-md"),o=U(()=>t.variant===Vr.Text||t.variant===Vr.Heading),c=U(()=>t.variant===Vr.Text?Math.max(1,Math.floor(t.lines)):1);function u(m){if(m!=null)return typeof m=="number"?`${m}px`:m}let d=U(()=>Array.from({length:c.value},(m,p)=>{let b=p===c.value-1;if(t.variant===Vr.Text&&c.value>1&&b)return{width:t.lastLineWidth}})),f=U(()=>["nb-skeleton",`nb-skeleton--${t.variant}`,`nb-skeleton--radius-${t.radius}`,{"nb-skeleton--static":!t.animated,"nb-skeleton--reduced-motion":n.value}]),h=U(()=>{let m={};if(o.value&&(m["--nb-skeleton-font-size"]=`var(--nb-type-${l.value}-size)`,m["--nb-skeleton-line-height"]=`var(--nb-type-${l.value}-line-height)`),t.variant===Vr.Circle){let v=u(t.height??t.width);return v&&(m.width=v,m["--nb-skeleton-height"]=v),m}let p=u(t.width);p&&(m.width=p);let b=u(t.height);return b&&!o.value&&(m["--nb-skeleton-height"]=b),m});return(m,p)=>(_(),M("div",{id:_e(i),class:Ee(f.value),style:$t(h.value),role:e.label?"status":void 0,"aria-live":e.label?"polite":void 0,"aria-hidden":e.label?void 0:"true"},[e.label?(_(),M("span",NP,Z(r.value),1)):R("",!0),w("div",PP,[(_(!0),M(ye,null,Be(d.value,(b,v)=>(_(),M("span",{key:v,class:"nb-skeleton__line"},[w("span",{class:"nb-skeleton__fill",style:$t(b)},null,4)]))),128))])],14,TP))}}),[["__scopeId","data-v-a57a3982"]]);const RP=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},up=RP("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 Tn=function(e){return e.Inactive="inactive",e.Active="active",e.Finished="finished",e.Error="error",e}(Tn||{}),IP=["id","aria-live"],VP={class:"nb-inline-loading__text"},pb=it(Pe({__name:"InlineLoading",props:{status:{default:Tn.Inactive},label:{default:"Saving"},finishedLabel:{default:"Saved"},errorLabel:{default:"Could not save"},dwell:{default:1600},reserveSpace:{type:Boolean,default:!0},id:{default:void 0}},emits:["success"],setup(e,{emit:t}){let i=e,n=t,r=ka(i),s;function a(){s&&(s=(clearTimeout(s),void 0))}Oe(()=>i.status,f=>{a(),f===Tn.Finished&&(s=setTimeout(()=>{s=void 0,n("success")},i.dwell))},{immediate:!0}),Ot(a);let l=U(()=>{switch(i.status){case Tn.Active:return i.label;case Tn.Finished:return i.finishedLabel;case Tn.Error:return i.errorLabel;default:return""}}),o=U(()=>i.status===Tn.Finished?Oa:i.status===Tn.Error?Ta:null),c=U(()=>i.status===Tn.Inactive?"off":i.status===Tn.Error?"assertive":"polite"),u=U(()=>["nb-inline-loading",`nb-inline-loading--${i.status}`]),d=U(()=>i.reserveSpace?{"--nb-inline-loading-reserve":`${Math.max(i.label.length,i.finishedLabel.length,i.errorLabel.length)+1}ch`}:void 0);return(f,h)=>(_(),M("div",{id:_e(r),class:Ee(u.value),style:$t(d.value),role:"status","aria-live":c.value},[e.status==="active"?(_(),oe(y0,{key:0,class:"nb-inline-loading__spinner",size:"sm",tone:"inherit",decorative:""})):o.value?(_(),oe(qe,{key:1,class:"nb-inline-loading__icon",name:o.value,size:16,"aria-hidden":"true"},null,8,["name"])):R("",!0),w("span",VP,[Le(f.$slots,"default",{status:e.status,text:l.value},()=>[ce(Z(l.value),1)],!0)])],14,IP))}}),[["__scopeId","data-v-077014e8"]]),DP={class:"nb-notification-item__sr"},ZP={key:0,class:"nb-notification-item__media"},BP={class:"nb-notification-item__main"},FP={class:"nb-notification-item__head"},zP={class:"nb-notification-item__title"},UP=["datetime"],WP={key:0,class:"nb-notification-item__body","data-nb-notification-body":""},jP={key:0,class:"nb-notification-item__actions"},_b=Pe({__name:"NotificationCenterItem",props:{title:{default:""},body:{default:""},time:{default:void 0},timeLabel:{default:void 0},read:{type:Boolean,default:!1},variant:{default:"neutral"},icon:{default:void 0},href:{default:void 0},interactive:{type:Boolean,default:!0},locale:{default:void 0},unreadLabel:{default:"Unread"},readLabel:{default:"Read"}},emits:["select"],setup(e,{emit:t}){let i=e,n=t,r=nn(),s=U(()=>i.href?"a":i.interactive?"button":"div"),a=U(()=>s.value!=="div"),l=U(()=>a.value?{"data-nb-notification-item":"",href:s.value==="a"?i.href:void 0,type:s.value==="button"?"button":void 0,onClick:y}:{}),o={neutral:null,info:Nu,success:Oa,warning:Pu,error:Ta},c=U(()=>i.variant==="danger"?"error":i.variant),u=U(()=>i.icon===null?null:i.icon??o[c.value]),d=U(()=>!!(u.value||r.media)),f=U(()=>{if(i.time===void 0||i.time===null)return null;let g=i.time instanceof Date?i.time:new Date(i.time);return Number.isNaN(g.getTime())?null:g}),h=U(()=>{var g;return(g=f.value)==null?void 0:g.toISOString()}),m=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]];function p(g,L){let x=(g.getTime()-Date.now())/1e3,$=Math.abs(x),O=new Intl.RelativeTimeFormat(L,{numeric:"auto"});for(let[F,ie]of m)if($>=ie||F==="second")return O.format(Math.round(x/ie),F);return O.format(0,"second")}let b=G(!1);at(()=>{b.value=!0});let v=U(()=>f.value?new Intl.DateTimeFormat(i.locale,{dateStyle:"medium",timeStyle:"short"}).format(f.value):""),C=U(()=>i.timeLabel?i.timeLabel:f.value?b.value?p(f.value,i.locale):v.value:"");function y(g){n("select",g)}return(g,L)=>(_(),M("li",{class:Ee(["nb-notification-item",[`nb-notification-item--${c.value}`,{"nb-notification-item--unread":!e.read}]]),role:"listitem"},[(_(),oe(Ca(s.value),Lt({class:["nb-notification-item__row",{"nb-notification-item__row--static":!a.value}]},l.value),{default:X(()=>[L[0]||(L[0]=w("span",{class:"nb-notification-item__marker","aria-hidden":"true"},null,-1)),w("span",DP,Z(e.read?e.readLabel:e.unreadLabel),1),d.value?(_(),M("span",ZP,[Le(g.$slots,"media",{},()=>[u.value?(_(),oe(qe,{key:0,name:u.value,size:16},null,8,["name"])):R("",!0)])])):R("",!0),w("span",BP,[w("span",FP,[w("span",zP,[Le(g.$slots,"title",{},()=>[ce(Z(e.title),1)])]),C.value?(_(),M("time",{key:0,class:"nb-notification-item__time",datetime:h.value},Z(C.value),9,UP)):R("",!0)]),e.body||g.$slots.default?(_(),M("span",WP,[Le(g.$slots,"default",{},()=>[ce(Z(e.body),1)])])):R("",!0)])]),_:3},16,["class"])),g.$slots.actions?(_(),M("span",jP,[Le(g.$slots,"actions")])):R("",!0)],2))}});const Xa=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},KP=Xa("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"/>'),qP=Xa("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"/>'),dp=Xa("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"/>'),GP=Xa("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"/>'),YP=Xa("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"/>'),XP=Xa("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"/>'),JP="bell",Zu=Object.freeze(Object.defineProperty({__proto__:null,bold:GP,default:dp,duotone:XP,fill:YP,glyphName:JP,light:qP,regular:dp,thin:KP},Symbol.toStringTag,{value:"Module"}));var QP={key:0,class:"nb-notification-center__badge","aria-hidden":"true"},eO=["aria-describedby","aria-busy"],tO={class:"nb-notification-center__header"},iO={class:"nb-notification-center__sr",role:"status"},nO={class:"nb-notification-center__stale-text"},rO={class:"nb-notification-center__sr"},sO=["tabindex"],aO={key:4,class:"nb-notification-center__empty"},lO={key:5,class:"nb-notification-center__footer"},K0=new Set,ms=8,Wi=8,oo=96,q0=88,oO=200;function cO(e,{align:t,side:i,width:n,maxHeight:r,viewport:s}){let a=e.left+e.width;if(i==="right"&&s.width-a-ms-Wi>=n){let b=e.top+e.height,v=t==="end"?b-Wi:s.height-e.top-Wi,C=Math.max(q0+oo,v),y=Math.min(r+oo,C),g=Math.max(q0,Math.min(r,C-oo));return t==="end"?{top:Math.max(Wi,b-y),bottom:Math.max(Wi,s.height-b),left:a+ms,side:"right",maxListHeight:g}:{top:Math.max(Wi,Math.min(e.top,s.height-Wi-y)),left:a+ms,side:"right",maxListHeight:g}}let l=t==="start"?e.left:e.left+e.width-n,o=Math.min(Math.max(l,Wi),Math.max(Wi,s.width-n-Wi)),c=e.top+e.height,u=s.height-c-ms-Wi,d=e.top-ms-Wi,f=u<oO&&d>u?"top":"bottom",h=Math.max(q0,f==="top"?d:u),m=Math.max(q0,Math.min(r,h-oo)),p=Math.min(r+oo,h);return{top:f==="top"?Math.max(Wi,e.top-ms-p):c+ms,left:o,side:f,maxListHeight:m}}function uO(e,t){return e.left<=t.width&&e.left+e.width>=0&&e.top<=t.height&&e.top+e.height>=0}var dO=Pe({__name:"NotificationCenter",props:{items:{default:()=>[]},unreadCount:{default:void 0},itemCount:{default:void 0},open:{type:Boolean,default:void 0},label:{default:"Notifications"},markAllLabel:{default:"Mark all as read"},markAllPendingLabel:{default:"Marking all as read"},markAllPending:{type:Boolean,default:!1},emptyTitle:{default:"No notifications"},emptyDescription:{default:"New activity shows up here."},loadingLabel:{default:"Loading notifications"},loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorTitle:{default:"Could not load notifications"},errorDescription:{default:"The request failed. Nothing has been lost."},errorStaleLabel:{default:"These may be out of date."},retryLabel:{default:"Try again"},showRetry:{type:Boolean,default:!0},maxCount:{default:99},width:{default:360},closeLabel:{default:"Close notifications"},maxHeight:{default:384},align:{default:"end"},side:{default:"vertical"},showMarkAll:{type:Boolean,default:!0},interactive:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},closeOnNavigate:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},icon:{default:void 0},locale:{default:void 0},unreadLabel:{default:"Unread"},readLabel:{default:"Read"},formatUnread:{type:Function,default:e=>e===1?"1 unread":`${e} unread`}},emits:["update:open","open","close","select","mark-all-read","retry"],setup(e,{expose:t,emit:i}){let n=e,r=U(()=>n.icon??Zu),s=i,a=nn(),l=`nb-notification-center-${Vi()}`,o=`${l}-title`,c=`${l}-trigger`,u=`${l}-error`,d=G(null),f=G(null),h=G(null),m=G(null),p=G(!1),b=U(()=>n.open===void 0?p.value:n.open),v=U(()=>typeof n.unreadCount=="number"?Math.max(0,n.unreadCount):n.items.filter(Ce=>!Ce.read).length),C=U(()=>v.value>n.maxCount?`${n.maxCount}+`:String(v.value)),y=U(()=>v.value>0?`${n.label}, ${n.formatUnread(v.value)}`:n.label),g=U(()=>{if(typeof n.itemCount=="number")return Math.max(0,n.itemCount);if(!a.default)return n.items.length}),L=U(()=>(g.value??0)>0),x=U(()=>{if(n.loading)return"loading";let Ce=g.value;return n.error&&(Ce===void 0||Ce===0)?"error":Ce===void 0||Ce>0?"list":"empty"}),$=U(()=>n.error&&!n.loading&&x.value==="list"&&L.value);Oe(()=>[b.value,!!a.default,n.itemCount],([Ce,Te,Fe])=>{},{immediate:!0});function O(){s("retry")}let F=U(()=>({id:c,"aria-haspopup":"dialog","aria-expanded":b.value?"true":"false","aria-controls":b.value?l:void 0,"aria-label":y.value,disabled:n.disabled||void 0})),ie=U(()=>({type:"button",disabled:v.value===0&&!n.markAllPending,"aria-disabled":n.markAllPending?"true":void 0,"aria-busy":n.markAllPending?"true":void 0,onClick:N})),B=U(()=>$.value||x.value==="error"?u:void 0);function A(Ce){if(!Ce){h.value=null;return}let Te=Ce instanceof HTMLElement?Ce:Ce.$el;h.value=Te instanceof HTMLElement?Te:null}let H=G({top:0,left:0,side:"bottom",maxListHeight:n.maxHeight});function I(){return{width:window.innerWidth,height:window.innerHeight}}function D(){var Te;let Ce=(Te=d.value)==null?void 0:Te.getBoundingClientRect();Ce&&(H.value=cO(Ce,{align:n.align,side:n.side,width:n.width,maxHeight:n.maxHeight,viewport:I()}))}let{phone:q}=vn(),re=U(()=>q.value),ae=U(()=>{if(!re.value)return H.value.bottom===void 0?{top:`${Math.round(H.value.top)}px`,left:`${Math.round(H.value.left)}px`,width:`${n.width}px`}:{bottom:`${Math.round(H.value.bottom)}px`,left:`${Math.round(H.value.left)}px`,width:`${n.width}px`}}),ge=U(()=>re.value?void 0:{maxHeight:`${Math.round(H.value.maxListHeight)}px`}),xe=U(()=>({"nb-notification-center__panel--sheet":re.value,"nb-notification-center__panel--start":n.align==="start","nb-notification-center__panel--above":!re.value&&H.value.side==="top","nb-notification-center__panel--beside":!re.value&&H.value.side==="right"}));function J(Ce){n.open===void 0&&(p.value=Ce),s("update:open",Ce)}function ve(){n.disabled||b.value||(D(),J(!0),s("open"))}function fe(Ce={}){var Fe;if(!b.value)return;let Te=(Fe=m.value)==null?void 0:Fe.contains(document.activeElement);J(!1),s("close"),(Ce.restoreFocus??Te)&&bt(he)}function he(){var Te,Fe;let Ce=h.value;if(Ce!=null&&Ce.isConnected){Ce.focus();return}(Fe=(Te=d.value)==null?void 0:Te.querySelector(de))==null||Fe.focus()}function te(){b.value?fe({restoreFocus:!0}):ve()}let ue=G(0),j=new Set(["button","link","menuitem","option"]);function K(Ce){if(Ce.tagName==="BUTTON")return!Ce.hasAttribute("disabled");if(Ce.tagName==="A")return Ce.hasAttribute("href");let Te=Ce.getAttribute("role");return Te!==null&&j.has(Te)}function se(){return m.value?Array.from(m.value.querySelectorAll("[data-nb-notification-item]")).filter(Ce=>!!K(Ce)):[]}let Q=G(void 0);function S(Ce){let Te=f.value;Q.value=Te&&Te.childElementCount>0&&Ce.length===0?0:void 0}function T(Ce){let Te=se();S(Te),Te.length&&(ue.value=Math.min(Math.max(Ce,0),Te.length-1),Te.forEach((Fe,st)=>{Fe.setAttribute("tabindex",st===ue.value?"0":"-1")}))}function V(Ce){var st;let Te=se();if(!Te.length)return!1;let Fe=Math.min(Math.max(Ce,0),Te.length-1);return T(Fe),(st=Te[Fe])==null||st.focus(),!0}function ee(Ce){var st;let Te=(st=Ce.target)==null?void 0:st.closest("[data-nb-notification-item]");if(!Te)return;let Fe=se().indexOf(Te);Fe>=0&&T(Fe)}let de='a[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex="0"]';function pe(Ce){var Te;return!!((Te=Ce==null?void 0:Ce.closest)!=null&&Te.call(Ce,'input, textarea, select, [contenteditable=""], [contenteditable="true"]'))}function we(Ce){var sn;let Te=se(),Fe=(sn=Ce.target)==null?void 0:sn.closest("[data-nb-notification-item]"),st=Fe?Te.indexOf(Fe):-1;if(Ce.key==="Escape"){if(!k(Ce))return;Ce.preventDefault(),Ce.stopPropagation(),fe({restoreFocus:!0});return}if(Ce.key==="Tab"){E(Ce);return}if(!pe(Ce.target))switch(Ce.key){case"ArrowDown":V(st<0?0:st+1)&&Ce.preventDefault();break;case"ArrowUp":V(st<0?Te.length-1:st-1)&&Ce.preventDefault();break;case"Home":st>=0&&(Ce.preventDefault(),V(0));break;case"End":st>=0&&(Ce.preventDefault(),V(Te.length-1));break}}function k(Ce){var Fe,st;if(Ce.defaultPrevented)return!1;let Te=(st=(Fe=Ce.target??document.activeElement)==null?void 0:Fe.closest)==null?void 0:st.call(Fe,'[aria-modal="true"]');return!(Te&&Te!==m.value)}function E(Ce){let Te=m.value;if(!Te)return;let Fe=Array.from(Te.querySelectorAll(de)),st=document.activeElement,sn=Fe[0],ds=Fe[Fe.length-1],Mr=!Fe.length||st===sn||!Te.contains(st),Lr=!Fe.length||st===ds;if(Ce.shiftKey?!Mr:!Lr)return;Ce.preventDefault();let er=Ce.shiftKey?h.value:z();fe({restoreFocus:!1}),bt(()=>{er!=null&&er.isConnected?er.focus():he()})}function z(){let Ce=h.value;if(!Ce)return null;let Te=Array.from(document.querySelectorAll(de)).filter(st=>{var sn;return!((sn=m.value)!=null&&sn.contains(st))}).filter(st=>st.tabIndex>=0),Fe=Te.indexOf(Ce);return Fe<0?null:Te[Fe+1]??null}function le(Ce,Te){s("select",Ce,Te),n.closeOnSelect&&fe({restoreFocus:!1})}function P(Ce){var Fe;if(!a.default)return;let Te=(Fe=Ce.target)==null?void 0:Fe.closest("[data-nb-notification-item]");if(Te&&K(Te)){if(Ce.type==="keydown"){let st=Ce.key;if(st!=="Enter"&&st!==" "||Te.tagName==="BUTTON"||Te.tagName==="A")return;Ce.preventDefault()}s("select",null,Ce),n.closeOnSelect&&fe({restoreFocus:!1})}}function N(){n.markAllPending||s("mark-all-read")}function W(Ce){var Fe,st;let Te=Ce.target;(Fe=d.value)!=null&&Fe.contains(Te)||(st=m.value)!=null&&st.contains(Te)||fe({restoreFocus:!1})}function ne(Ce){var Te,Fe;Ce.key==="Escape"&&((Te=m.value)!=null&&Te.contains(document.activeElement)||k(Ce)&&fe({restoreFocus:((Fe=d.value)==null?void 0:Fe.contains(document.activeElement))??!1}))}let Se=0;function Me(){!b.value||Se||(Se=requestAnimationFrame(()=>{Se=0,Ke()}))}function Re(){Se&&(Se=(cancelAnimationFrame(Se),0))}function Ke(){var Te;if(!b.value||re.value)return;let Ce=(Te=d.value)==null?void 0:Te.getBoundingClientRect();if(Ce&&!uO(Ce,I())){fe({restoreFocus:!1});return}D()}function Ge(){n.closeOnNavigate&&fe({restoreFocus:!1})}function pt(){return window.navigation}function _t(){var Ce;document.addEventListener("mousedown",W),document.addEventListener("keydown",ne),window.addEventListener("resize",Me),window.addEventListener("scroll",Me,!0),window.addEventListener("popstate",Ge),window.addEventListener("hashchange",Ge),(Ce=pt())==null||Ce.addEventListener("navigate",Ge)}function We(){var Ce;Re(),document.removeEventListener("mousedown",W),document.removeEventListener("keydown",ne),window.removeEventListener("resize",Me),window.removeEventListener("scroll",Me,!0),window.removeEventListener("popstate",Ge),window.removeEventListener("hashchange",Ge),(Ce=pt())==null||Ce.removeEventListener("navigate",Ge)}let Mt=()=>fe({restoreFocus:!1});return Oe(b,Ce=>{if(Ce){for(let Te of[...K0])Te!==Mt&&Te();K0.add(Mt),_t(),bt(()=>{var Te;D(),T(0),V(0)||((Te=m.value)==null||Te.focus())})}else K0.delete(Mt),We(),ue.value=0}),Oe(()=>[n.items.length,x.value],()=>{b.value&&bt(()=>T(ue.value))}),Ot(()=>{We(),K0.delete(Mt);let Ce=m.value;Ce!=null&&Ce.isConnected&&Ce.remove()}),t({show:ve,close:fe,toggle:te,isOpen:b,unreadCount:v}),(Ce,Te)=>(_(),M("div",{ref_key:"rootRef",ref:d,class:"nb-notification-center"},[Le(Ce.$slots,"trigger",{open:b.value,toggle:te,show:ve,close:fe,unreadCount:v.value,badge:C.value,panelId:l,triggerProps:F.value,setTriggerRef:A},()=>[w("button",Lt({ref:A,type:"button",class:["nb-notification-center__trigger",{"nb-notification-center__trigger--active":b.value}]},F.value,{onClick:te}),[Y(qe,{name:r.value,size:18},null,8,["name"]),v.value>0?(_(),M("span",QP,Z(C.value),1)):R("",!0)],16)]),(_(),oe(Fi,{to:"body"},[Y(Ds,{name:"nb-notification-center-pop"},{default:X(()=>[b.value?(_(),M("div",{key:0,id:l,ref_key:"panelRef",ref:m,class:Ee(["nb-notification-center__panel",xe.value]),style:$t(ae.value),role:"dialog",tabindex:"-1","aria-labelledby":o,"aria-describedby":B.value,"aria-busy":e.loading?"true":void 0,onKeydown:we,onFocusin:ee},[w("div",tO,[w("h2",{id:o,class:"nb-notification-center__title"},Z(e.label),1),Le(Ce.$slots,"header-start",{close:fe,unreadCount:v.value}),Le(Ce.$slots,"header-actions",{close:fe,unreadCount:v.value,markAllRead:N,markAllPending:e.markAllPending,markAllProps:ie.value,markAllText:e.markAllPending?e.markAllPendingLabel:e.markAllLabel},()=>[e.showMarkAll?(_(),M("button",Lt({key:0,class:"nb-notification-center__mark-all"},ie.value),[e.markAllPending?(_(),oe(y0,{key:0,size:"xs",tone:"inherit",decorative:""})):R("",!0),ce(" "+Z(e.markAllPending?e.markAllPendingLabel:e.markAllLabel),1)],16)):R("",!0)]),re.value?(_(),oe(At,{key:0,class:"nb-notification-center__close",variant:"ghost",size:"lg",icon:Wc,"aria-label":e.closeLabel,onClick:Te[0]||(Te[0]=Fe=>fe())},null,8,["aria-label"])):R("",!0)]),w("span",iO,Z(e.markAllPending?e.markAllPendingLabel:""),1),$.value?(_(),M("div",{key:0,id:u,class:"nb-notification-center__stale",role:"status"},[Y(qe,{name:_e(Vd),size:14,"aria-hidden":"true"},null,8,["name"]),w("span",nO,Z(e.errorStaleLabel),1),e.showRetry?(_(),M("button",{key:0,type:"button",class:"nb-notification-center__retry",onClick:O},Z(e.retryLabel),1)):R("",!0)])):R("",!0),x.value==="loading"?(_(),M("div",{key:1,class:"nb-notification-center__loading",role:"status",style:$t(ge.value)},[w("span",rO,Z(e.loadingLabel),1),(_(),M(ye,null,Be(3,Fe=>Y(OP,{key:Fe,variant:"text",type:"body-sm",lines:2,"last-line-width":"60%"})),64))],4)):x.value==="error"?(_(),M("div",{key:2,id:u,class:"nb-notification-center__error",role:"alert"},[Le(Ce.$slots,"error",{retry:O},()=>[Y(t0,{size:"sm",kind:"error",title:e.errorTitle,description:e.errorDescription},v0({_:2},[e.showRetry?{name:"actions",fn:X(()=>[Y(At,{size:"sm",variant:"secondary",onClick:O},{default:X(()=>[ce(Z(e.retryLabel),1)]),_:1})]),key:"0"}:void 0]),1032,["title","description"])])])):x.value==="list"?(_(),M("ul",{key:3,ref_key:"listRef",ref:f,class:"nb-notification-center__list",role:"list",tabindex:Q.value,style:$t(ge.value),onClick:P,onKeydown:P},[Le(Ce.$slots,"default",{close:fe,items:e.items},()=>[(_(!0),M(ye,null,Be(e.items,Fe=>(_(),oe(_b,{key:Fe.id,title:Fe.title,body:Fe.body,time:Fe.time,"time-label":Fe.timeLabel,read:Fe.read,variant:Fe.variant??"neutral",icon:Fe.icon,href:Fe.href,interactive:Fe.interactive??e.interactive,locale:e.locale,"unread-label":e.unreadLabel,"read-label":e.readLabel,onSelect:st=>le(Fe,st)},null,8,["title","body","time","time-label","read","variant","icon","href","interactive","locale","unread-label","read-label","onSelect"]))),128))])],44,sO)):x.value==="empty"?(_(),M("div",aO,[Le(Ce.$slots,"empty",{},()=>[Y(t0,{size:"sm",icon:r.value,title:e.emptyTitle,description:e.emptyDescription},null,8,["icon","title","description"])])])):R("",!0),Ce.$slots.footer?(_(),M("div",lO,[Le(Ce.$slots,"footer",{close:fe})])):R("",!0)],46,eO)):R("",!0)]),_:3})]))],512))}}),hO=["id","placeholder","min","max","step","disabled","required"],fO={class:"nb-number-input__steppers"},pO=["disabled"],_O=["disabled"],mO={key:0,class:"nb-number-input__inner-header"},vO=["for"],gO={key:0,class:"nb-number-input__asterisk","aria-hidden":"true"},bO={class:"nb-number-input__fluid-row"},yO=["id","placeholder","min","max","step","disabled","required"],wO={class:"nb-number-input__steppers"},SO=["disabled"],CO=["disabled"],nf=it(Pe({__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 n=e,r=i,s=G(null),a=G(!1),l=`nb-number-input-${Vi()}`,o=U(()=>n.id??l),c=U(()=>n.min!==void 0&&n.modelValue!==null&&n.modelValue!==void 0&&n.modelValue<=n.min),u=U(()=>n.max!==void 0&&n.modelValue!==null&&n.modelValue!==void 0&&n.modelValue>=n.max);function d(y){let g=y;return n.min!==void 0&&(g=Math.max(n.min,g)),n.max!==void 0&&(g=Math.min(n.max,g)),g}function f(y){s.value&&(s.value.value=y==null?"":String(y))}at(()=>f(n.modelValue)),Oe(()=>n.modelValue,y=>{a.value||f(y)});function h(){let y=d((n.modelValue??0)+n.step);r("update:modelValue",y),r("change",y),f(y)}function m(){let y=d((n.modelValue??0)-n.step);r("update:modelValue",y),r("change",y),f(y)}function p(){if(!s.value)return;let y=s.value.value;if(y==="")r("update:modelValue",null);else{let g=parseFloat(y);isNaN(g)||r("update:modelValue",g)}}function b(){if(a.value=!1,!s.value)return;let y=s.value.value;if(y===""){r("update:modelValue",null),r("change",null);return}let g=parseFloat(y);if(!isNaN(g)){let L=d(g);r("update:modelValue",L),r("change",L),f(L)}}let v=U(()=>["nb-number-input",`nb-number-input--${n.variant}`,`nb-number-input--${n.size}`,{"nb-number-input--error":!!n.error,"nb-number-input--warning":!n.error&&!!n.warning,"nb-number-input--disabled":n.disabled}]),C=U(()=>({"nb-number-input__field-wrapper--focused":a.value,"nb-number-input__field-wrapper--error":!!n.error,"nb-number-input__field-wrapper--warning":!n.error&&!!n.warning,"nb-number-input__field-wrapper--disabled":n.disabled}));return t({focus:()=>{var y;return(y=s.value)==null?void 0:y.focus()}}),(y,g)=>(_(),M("div",{class:Ee(v.value)},[e.variant==="default"?(_(),M(ye,{key:0},[e.label?(_(),oe(xa,{key:0,for:o.value,required:e.required,disabled:e.disabled},{default:X(()=>[ce(Z(e.label),1)]),_:1},8,["for","required","disabled"])):R("",!0),w("div",{class:Ee(["nb-number-input__field-wrapper",C.value])},[w("input",{id:o.value,ref_key:"inputRef",ref:s,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:p,onBlur:b,onKeydown:g[0]||(g[0]=Ri(Qe(()=>{var L;return(L=s.value)==null?void 0:L.blur()},["prevent"]),["enter"])),onFocus:g[1]||(g[1]=L=>a.value=!0)},null,40,hO),e.error?(_(),oe(ct,{key:0,variant:"error","icon-only":!0,class:"nb-number-input__status"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:1,variant:"warning","icon-only":!0,class:"nb-number-input__status"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):R("",!0),w("div",fO,[w("button",{type:"button",class:Ee(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":c.value}]),disabled:e.disabled,"aria-label":"Decrease",onMousedown:g[2]||(g[2]=Qe(()=>{},["prevent"])),onClick:m},[Y(qe,{name:_e(up),size:16},null,8,["name"])],42,pO),w("button",{type:"button",class:Ee(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":u.value}]),disabled:e.disabled,"aria-label":"Increase",onMousedown:g[3]||(g[3]=Qe(()=>{},["prevent"])),onClick:h},[Y(qe,{name:_e(a0),size:16},null,8,["name"])],42,_O)])],2),e.error?(_(),oe(ct,{key:1,variant:"error",class:"nb-number-input__message"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:2,variant:"warning",class:"nb-number-input__message"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):e.helper?(_(),oe(ct,{key:3,variant:"helper",class:"nb-number-input__message"},{default:X(()=>[ce(Z(e.helper),1)]),_:1})):R("",!0)],64)):e.variant==="fluid"?(_(),M(ye,{key:1},[w("div",{class:Ee(["nb-number-input__field-wrapper",C.value])},[e.label?(_(),M("div",mO,[w("label",{for:o.value,class:"nb-number-input__inner-label"},[ce(Z(e.label)+" ",1),e.required?(_(),M("span",gO,"*")):R("",!0)],8,vO),e.helper&&!e.error&&!e.warning?(_(),oe(ct,{key:0,variant:"helper","icon-only":!0,class:"nb-number-input__inner-message"},{default:X(()=>[ce(Z(e.helper),1)]),_:1})):R("",!0)])):R("",!0),w("div",bO,[w("input",{id:o.value,ref_key:"inputRef",ref:s,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:p,onBlur:b,onKeydown:g[4]||(g[4]=Ri(Qe(()=>{var L;return(L=s.value)==null?void 0:L.blur()},["prevent"]),["enter"])),onFocus:g[5]||(g[5]=L=>a.value=!0)},null,40,yO),e.error?(_(),oe(ct,{key:0,variant:"error","icon-only":!0,class:"nb-number-input__status"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:1,variant:"warning","icon-only":!0,class:"nb-number-input__status"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):R("",!0),w("div",wO,[w("button",{type:"button",class:Ee(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":c.value}]),disabled:e.disabled,"aria-label":"Decrease",onMousedown:g[6]||(g[6]=Qe(()=>{},["prevent"])),onClick:m},[Y(qe,{name:_e(up),size:16},null,8,["name"])],42,SO),w("button",{type:"button",class:Ee(["nb-number-input__stepper",{"nb-number-input__stepper--at-limit":u.value}]),disabled:e.disabled,"aria-label":"Increase",onMousedown:g[7]||(g[7]=Qe(()=>{},["prevent"])),onClick:h},[Y(qe,{name:_e(a0),size:16},null,8,["name"])],42,CO)])])],2),e.error?(_(),oe(ct,{key:0,variant:"error",class:"nb-number-input__fluid-message"},{default:X(()=>[ce(Z(e.error),1)]),_:1})):e.warning?(_(),oe(ct,{key:1,variant:"warning",class:"nb-number-input__fluid-message"},{default:X(()=>[ce(Z(e.warning),1)]),_:1})):R("",!0)],64)):R("",!0)],2))}}),[["__scopeId","data-v-fa5256a1"]]),kO=["stop-color"],AO=["stop-color"],$O=["d","fill"],MO=["d","stroke","stroke-width"],hp=100,Ks=30,LO=it(Pe({__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 ${hp} ${Ks}`,n=`nb-sparkline-grad-${Vi()}`,r=U(()=>({width:typeof t.width=="number"?`${t.width}px`:t.width,height:typeof t.height=="number"?`${t.height}px`:t.height})),s=U(()=>{let a=t.data;if(!a||a.length<2)return{line:"",area:""};let l=Math.max(...a),o=Math.min(...a),c=l-o||1,u=hp/(a.length-1),d=Ks*.08,f=Ks-d*2,h=a.map((v,C)=>({x:C*u,y:Ks-d-(v-o)/c*f})),m=`M ${h[0].x.toFixed(2)} ${h[0].y.toFixed(2)}`;if(t.smooth)for(let v=1;v<h.length;v++){let C=h[v-1],y=h[v],g=C.x+u*.45,L=C.y,x=y.x-u*.45,$=y.y;m+=` C ${g.toFixed(2)} ${L.toFixed(2)}, ${x.toFixed(2)} ${$.toFixed(2)}, ${y.x.toFixed(2)} ${y.y.toFixed(2)}`}else for(let v=1;v<h.length;v++)m+=` L ${h[v].x.toFixed(2)} ${h[v].y.toFixed(2)}`;let p=h[h.length-1],b=`${m} L ${p.x.toFixed(2)} ${Ks} L ${h[0].x.toFixed(2)} ${Ks} Z`;return{line:m,area:b}});return(a,l)=>(_(),M("svg",{class:"nb-sparkline",style:$t(r.value),viewBox:i,preserveAspectRatio:"none",role:"img","aria-label":"Sparkline",xmlns:"http://www.w3.org/2000/svg"},[w("defs",null,[w("linearGradient",{id:n,x1:"0",y1:"0",x2:"0",y2:"1"},[w("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.3"},null,8,kO),w("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0"},null,8,AO)])]),e.fill&&s.value.area?(_(),M("path",{key:0,d:s.value.area,fill:`url(#${n})`,stroke:"none"},null,8,$O)):R("",!0),s.value.line?(_(),M("path",{key:1,d:s.value.line,stroke:e.color,"stroke-width":e.strokeWidth,"vector-effect":"non-scaling-stroke",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,MO)):R("",!0)],4))}}),[["__scopeId","data-v-e796f74d"]]),mb=function(e){return e.Line="line",e.Contained="contained",e}(mb||{}),ih=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}(ih||{}),EO=["aria-label"],xO=["id","data-tab-id","aria-selected","aria-controls","tabindex","disabled","onClick"],HO={class:"nb-tabs__label"},TO=["id","aria-labelledby"],G0=24,rf=it(Pe({__name:"Tabs",props:{items:{},ariaLabel:{default:void 0},modelValue:{default:void 0},variant:{default:mb.Line},size:{default:ih.Medium},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},id:{default:void 0}},emits:["update:modelValue","change"],setup(e,{emit:t}){var xe;let i=e,n=t,r=nn(),s=ka(i),a=G(null),l=U(()=>i.items.filter(J=>!f(J))),o=G(i.modelValue??((xe=l.value[0])==null?void 0:xe.id));Oe(()=>i.modelValue,J=>{J!=null&&(o.value=J)});let c=U(()=>{var fe;let J=i.modelValue??o.value,ve=i.items.find(he=>he.id===J);return ve&&!f(ve)?ve.id:(fe=l.value[0])==null?void 0:fe.id}),u=U(()=>i.size===ih.Large?18:16),d=U(()=>["nb-tabs",`nb-tabs--${i.variant}`,`nb-tabs--${i.size}`,{"nb-tabs--full-width":i.fullWidth,"nb-tabs--disabled":i.disabled,"nb-tabs--overflow":$.value,"nb-tabs--indicator":I.value!==null}]);function f(J){return i.disabled||!!J.disabled}function h(J){return`${s}-tab-${J}`}function m(J){return`${s}-panel-${J}`}function p(J){return D2(r,J)}function b(J){f(J)||J.id===c.value||(o.value=J.id,n("update:modelValue",J.id),n("change",J.id,J))}function v(J){var ve;return[...((ve=a.value)==null?void 0:ve.querySelectorAll("[data-tab-id]"))??[]].find(fe=>fe.dataset.tabId===J)}function C(J){var ve;(ve=v(J))==null||ve.focus()}function y(J){let ve=l.value;if(!ve.length)return;let fe=ve[(ve.findIndex(he=>he.id===c.value)+J+ve.length)%ve.length];b(fe),C(fe.id)}function g(J){J&&(b(J),C(J.id))}let{phone:L}=vn(),x=G(null),$=G(!1),O=U(()=>L.value||$.value);function F(){let J=x.value,ve=a.value;!J||!ve||($.value=ve.scrollWidth>J.clientWidth+1)}let ie=G(!1),B=G(!1);function A(){let J=a.value;if(!O.value||!J)return;let ve=J.scrollWidth-J.clientWidth;ie.value=J.scrollLeft>1,B.value=J.scrollLeft<ve-1}function H(){let J=a.value;if(!O.value||!J)return;let ve=v(c.value);if(ve){let fe=J.getBoundingClientRect(),he=ve.getBoundingClientRect(),te=he.left-fe.left+J.scrollLeft,ue=te+he.width,j=[...J.querySelectorAll("[data-tab-id]")],K=ve===j[0],se=ve===j[j.length-1];te<J.scrollLeft+(K?0:G0)?J.scrollLeft=Math.max(0,K?0:te-G0):ue>J.scrollLeft+J.clientWidth-(se?0:G0)&&(J.scrollLeft=ue-J.clientWidth+(se?0:G0))}A()}let I=G(null);function D(){let J=v(c.value),ve=(J==null?void 0:J.offsetWidth)??0;if(!J||ve===0){I.value=null;return}let fe=J.offsetLeft,he=I.value;he&&he.left===fe&&he.width===ve||(I.value={left:fe,width:ve})}Oe([c,O],()=>bt(()=>{H(),D()}));function q(){F(),H(),D()}let re=null;function ae(){!re||!x.value||!a.value||(re.disconnect(),re.observe(x.value),a.value.querySelectorAll("[data-tab-id]").forEach(J=>re==null?void 0:re.observe(J)))}Oe(()=>i.items,()=>bt(()=>{ae(),q()}),{deep:!0}),at(()=>{F(),H(),D(),window.addEventListener("resize",q,{passive:!0}),typeof ResizeObserver<"u"&&(re=new ResizeObserver(q),ae())}),Ot(()=>{window.removeEventListener("resize",q),re==null||re.disconnect(),re=null});function ge(J){switch(J.key){case"ArrowRight":y(1);break;case"ArrowLeft":y(-1);break;case"Home":g(l.value[0]);break;case"End":g(l.value[l.value.length-1]);break;default:return}J.preventDefault()}return(J,ve)=>(_(),M("div",{ref_key:"rootRef",ref:x,class:Ee(d.value)},[w("div",{ref_key:"listRef",ref:a,class:Ee(["nb-tabs__list",{"nb-tabs__list--fade-start":O.value&&ie.value,"nb-tabs__list--fade-end":O.value&&B.value}]),role:"tablist","aria-label":e.ariaLabel||void 0,onKeydown:ge,onScrollPassive:A},[(_(!0),M(ye,null,Be(e.items,fe=>(_(),M("button",{id:h(fe.id),key:fe.id,"data-tab-id":fe.id,type:"button",role:"tab",class:Ee(["nb-tabs__tab",{"nb-tabs__tab--active":fe.id===c.value}]),"aria-selected":fe.id===c.value,"aria-controls":p(fe.id)?m(fe.id):void 0,tabindex:fe.id===c.value?0:-1,disabled:f(fe),onClick:he=>b(fe)},[fe.icon?(_(),oe(qe,{key:0,name:fe.icon,size:u.value,class:"nb-tabs__icon"},null,8,["name","size"])):R("",!0),w("span",HO,Z(fe.label),1),fe.badge==null?R("",!0):(_(),oe(Jn,{key:1,size:"sm",class:"nb-tabs__badge"},{default:X(()=>[ce(Z(fe.badge),1)]),_:2},1024))],10,xO))),128)),I.value?(_(),M("span",{key:0,class:"nb-tabs__indicator","aria-hidden":"true",style:$t({transform:`translateX(${I.value.left}px)`,width:`${I.value.width}px`})},null,4)):R("",!0)],42,EO),(_(!0),M(ye,null,Be(e.items,fe=>(_(),M(ye,{key:`panel-${fe.id}`},[fe.id===c.value&&p(fe.id)?(_(),M("div",{key:0,id:m(fe.id),class:"nb-tabs__panel",role:"tabpanel","aria-labelledby":h(fe.id),tabindex:"0"},[Le(J.$slots,fe.id,{item:fe},void 0,!0)],8,TO)):R("",!0)],64))),128))],2))}}),[["__scopeId","data-v-595e43d9"]]),NO={class:"nb-shell-panel__header"},PO={class:"nb-shell-panel__header-left"},OO=["title"],RO={class:"nb-shell-panel__header-center"},IO={class:"nb-shell-panel__toolbar"},VO=["aria-label"],DO=["aria-pressed"],ZO=["aria-pressed"],BO=["aria-pressed"],FO={key:0,class:"nb-shell-panel__content"},sf=it(Pe({__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 n=e,{layerProps:r}=ha(),s=i,a=G(n.size);Oe(()=>n.size,c=>a.value=c);let l=U({get:()=>a.value,set:c=>{a.value=c,s("update:size",c)}});function o(c){l.value=c}return t({setSize:o}),(c,u)=>(_(),M("div",Lt({class:"nb-shell-panel"},_e(r),{class:[l.value,{"nb-shell-panel--fluid":e.fluid,"nb-shell-panel--fill":e.fill}]}),[w("div",NO,[w("div",PO,[e.title?(_(),M("span",{key:0,class:"nb-shell-panel__title",title:e.title},Z(e.title),9,OO)):R("",!0),Le(c.$slots,"title",{},void 0,!0)]),w("div",RO,[w("div",IO,[Le(c.$slots,"toolbar",{},void 0,!0)])]),w("div",{class:"nb-shell-panel__header-right",role:"group","aria-label":e.title?`${e.title} panel size`:"Panel size"},[Le(c.$slots,"controls",{},()=>[w("button",{type:"button",class:Ee(["nb-shell-panel__size-btn",{active:l.value==="collapsed"}]),"aria-pressed":l.value==="collapsed",title:"Minimize","aria-label":"Minimize",onClick:u[0]||(u[0]=d=>o("collapsed"))},[...u[3]||(u[3]=[w("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true"},[w("line",{x1:"2",y1:"10",x2:"10",y2:"10",stroke:"currentColor","stroke-width":"1.5"})],-1)])],10,DO),w("button",{type:"button",class:Ee(["nb-shell-panel__size-btn",{active:l.value==="default"}]),"aria-pressed":l.value==="default",title:"Default","aria-label":"Default",onClick:u[1]||(u[1]=d=>o("default"))},[...u[4]||(u[4]=[w("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true"},[w("rect",{x:"1",y:"5",width:"10",height:"6",rx:"1",fill:"none",stroke:"currentColor","stroke-width":"1.2"})],-1)])],10,ZO),w("button",{type:"button",class:Ee(["nb-shell-panel__size-btn",{active:l.value==="full"}]),"aria-pressed":l.value==="full",title:"Maximize","aria-label":"Maximize",onClick:u[2]||(u[2]=d=>o("full"))},[...u[5]||(u[5]=[w("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true"},[w("rect",{x:"1",y:"1",width:"10",height:"10",rx:"1",fill:"none",stroke:"currentColor","stroke-width":"1.2"}),w("line",{x1:"1",y1:"3.5",x2:"11",y2:"3.5",stroke:"currentColor","stroke-width":"1.2"})],-1)])],10,BO)],!0)],8,VO)]),l.value==="collapsed"?R("",!0):(_(),M("div",FO,[Le(c.$slots,"default",{},void 0,!0)]))],16))}}),[["__scopeId","data-v-b37cd224"]]);const zO="modulepreload",UO=function(e){return"/"+e},fp={},pp=function(t,i,n){let r=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(i.map(o=>{if(o=UO(o),o in fp)return;fp[o]=!0;const c=o.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":zO,c||(d.as="script"),d.crossOrigin="",d.href=o,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})}))}function s(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return r.then(a=>{for(const l of a||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};var WO=Pe({__name:"Form",props:{title:{default:void 0}},setup(e){return(t,i)=>(_(),oe(Mi,{is:"form",dir:"col",gap:"md",class:"nb-form"},{default:X(()=>[e.title?(_(),oe(Mi,{key:0,is:"h4",class:"nb-form--header"},{default:X(()=>[ce(Z(e.title),1)]),_:1})):R("",!0),t.$slots.message?(_(),oe(Mi,{key:1,is:"p",class:"nb-form--message"},{default:X(()=>[Le(t.$slots,"message")]),_:3})):R("",!0),t.$slots.default?(_(),oe(Mi,{key:2,is:"div",dir:"col",gap:"sm",class:"nb-form--body"},{default:X(()=>[Le(t.$slots,"default")]),_:3})):R("",!0),t.$slots.footer?(_(),oe(Mi,{key:3,is:"footer",class:"nb-form--footer",justify:"end"},{default:X(()=>[Le(t.$slots,"footer")]),_:3})):R("",!0)]),_:3}))}});const Ja=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},jO=Ja("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"/>'),KO=Ja("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"/>'),_p=Ja("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"/>'),qO=Ja("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"/>'),GO=Ja("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"/>'),YO=Ja("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"/>'),XO="trash",af=Object.freeze(Object.defineProperty({__proto__:null,bold:qO,default:_p,duotone:YO,fill:GO,glyphName:XO,light:KO,regular:_p,thin:jO},Symbol.toStringTag,{value:"Module"}));var JO=900,vb=class extends Error{constructor(){super("confirm timed out"),this.name="ConfirmTimeout"}},QO="This is taking longer than expected. It may still be running. Check before trying again.",ns=Gn(null),Bu=G(!1),na=G(!1),Qc=G(!1),eu=G(void 0),gb=[],qs=null,Y0=null,pc=null,_c=null;function eR(){return T2()?0:150}function tR(){_c&&clearTimeout(_c),_c=null}function iR(e){if(e instanceof Error&&e.message)return e.message;let t=String(e);return t==="[object Object]"?"Something went wrong.":t}function nR(){pc=null;let e=gb.shift()??null;ns.value=e,Bu.value=!!e}function mp(e,t){return!e.done&&e.attempt===t&&ns.value===e}function mc(e,t=ns.value){!t||t.done||t===ns.value&&(t.done=!0,tR(),Bu.value=!1,na.value=!1,Qc.value=!1,eu.value=void 0,t.resolve(e),pc&&clearTimeout(pc),pc=setTimeout(nR,eR()))}function rR(e,t){return new Promise((i,n)=>{let r=setTimeout(()=>n(new vb),t);e.then(s=>{clearTimeout(r),i(s)},s=>{clearTimeout(r),n(s)})})}async function sR(){let e=ns.value;if(!e||e.done||na.value||Qc.value)return;let{onConfirm:t,formatError:i,timeout:n,timeoutMessage:r,successLabel:s}=e.options;if(!t){mc(!0,e);return}let a=++e.attempt;na.value=!0,eu.value=void 0;try{let l=Promise.resolve(t());if(await(n&&n>0?rR(l,n):l),!mp(e,a))return;na.value=!1,s?(Qc.value=!0,_c=setTimeout(()=>mc(!0,e),JO)):mc(!0,e)}catch(l){if(!mp(e,a))return;na.value=!1,eu.value=l instanceof vb?r??QO:(i??iR)(l)}}function aR(e){let t={...e??{title:""}};return delete t.onConfirm,delete t.formatError,delete t.body,t}var lR=Pe({name:"NbConfirmHost",setup(){return()=>{var i;let e=((i=ns.value)==null?void 0:i.options)??null,t=e==null?void 0:e.body;return He(qT,{...aR(e),open:Bu.value,busy:na.value,succeeded:Qc.value,error:eu.value??"",onConfirm:sR,onCancel:()=>mc(!1)},t?{default:()=>t()}:void 0)}}});function oR(){if(!qs){if(typeof document>"u")throw Error("[NbConfirm] confirm() needs a DOM. It cannot run during server-side rendering or in a non-browser environment. Call it from an event handler, not from setup().");Y0=document.createElement("div"),Y0.setAttribute("data-nb-confirm-host",""),document.body.appendChild(Y0),qs=mv(lR),qs.component("NbIcon",qe),qs.component("NbGrid",Mi),qs.config.warnHandler=(e,t,i)=>{if(e.includes("Failed to resolve component")){console.error(`[NbConfirm] ${e} The dialog runs in its own Vue app, so a sibling resolved by name has to be registered in useConfirm.composable.ts. Import it in NbConfirm instead where you can.`);return}console.warn(`[NbConfirm] ${e}${i}`)},qs.mount(Y0)}}function cR(e){return oR(),new Promise(t=>{let i={options:e,resolve:t,attempt:0,done:!1};if(ns.value){gb.push(i);return}ns.value=i,Bu.value=!0})}function lf(){return cR}var bb={storageKey:"nubisco.named-theme",defaultTheme:null,attribute:"data-nb-theme",themes:null,persist:!0},Qi={...bb},nh=G(bb.defaultTheme);function yb(e){return typeof e=="string"&&/^[a-z0-9-]{1,64}$/.test(e)}function wb(e){return!Qi.themes||Qi.themes.includes(e)}function uR(){if(!Qi.persist)return null;try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(Qi.storageKey);return e===null||e===""?null:yb(e)&&wb(e)?e:null}catch{return null}}function dR(e){if(Qi.persist)try{if(typeof localStorage>"u")return;e===null?localStorage.removeItem(Qi.storageKey):localStorage.setItem(Qi.storageKey,e)}catch{}}function vp(){if(typeof document>"u")return;let e=nh.value;e===null?document.documentElement.removeAttribute(Qi.attribute):document.documentElement.setAttribute(Qi.attribute,e)}var X0=null;function hR(){let e=uR(),t=Qi.defaultTheme;nh.value=e??(t!==null&&yb(t)&&wb(t)?t:null),vp(),X0==null||X0(),X0=Oe(nh,i=>{dR(i),vp()})}function fR(e={}){Qi={...Qi,...e,themes:e.themes??Qi.themes},hR()}var pR=["compact","verbose"];function Sb(e){return typeof e=="string"&&pR.includes(e)}function _R(e){var t;try{let i=(t=globalThis.localStorage)==null?void 0:t.getItem(e);return Sb(i)?i:null}catch{return null}}function mR(e,t){var i;try{(i=globalThis.localStorage)==null||i.setItem(e,t)}catch{}}function vR(e){let t=G(_R(e.storageKey)??e.defaultVariant??"verbose");return Oe(t,i=>mR(e.storageKey,i)),{variant:t,isCompact:U(()=>t.value==="compact"),toggle:()=>{t.value=t.value==="compact"?"verbose":"compact"},setVariant:i=>{Sb(i)&&(t.value=i)}}}const Kt=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i},gR={};function bR(e,t){const i=Wo("RouterView"),n=_P;return _(),M(ye,null,[Y(i),Y(n)],64)}const yR=Kt(gR,[["render",bR]]);/*!
44
- * vue-router v4.6.4
45
- * (c) 2025 Eduardo San Martin Morote
46
- * @license MIT
47
- */const ea=typeof document<"u";function Cb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function wR(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cb(e.default)}const mt=Object.assign;function E1(e,t){const i={};for(const n in t){const r=t[n];i[n]=Cn(r)?r.map(e):e(r)}return i}const Io=()=>{},Cn=Array.isArray;function gp(e,t){const i={};for(const n in e)i[n]=n in t?t[n]:e[n];return i}const kb=/#/g,SR=/&/g,CR=/\//g,kR=/=/g,AR=/\?/g,Ab=/\+/g,$R=/%5B/g,MR=/%5D/g,$b=/%5E/g,LR=/%60/g,Mb=/%7B/g,ER=/%7C/g,Lb=/%7D/g,xR=/%20/g;function of(e){return e==null?"":encodeURI(""+e).replace(ER,"|").replace($R,"[").replace(MR,"]")}function HR(e){return of(e).replace(Mb,"{").replace(Lb,"}").replace($b,"^")}function rh(e){return of(e).replace(Ab,"%2B").replace(xR,"+").replace(kb,"%23").replace(SR,"%26").replace(LR,"`").replace(Mb,"{").replace(Lb,"}").replace($b,"^")}function TR(e){return rh(e).replace(kR,"%3D")}function NR(e){return of(e).replace(kb,"%23").replace(AR,"%3F")}function PR(e){return NR(e).replace(CR,"%2F")}function l0(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const OR=/\/$/,RR=e=>e.replace(OR,"");function x1(e,t,i="/"){let n,r={},s="",a="";const l=t.indexOf("#");let o=t.indexOf("?");return o=l>=0&&o>l?-1:o,o>=0&&(n=t.slice(0,o),s=t.slice(o,l>0?l:t.length),r=e(s.slice(1))),l>=0&&(n=n||t.slice(0,l),a=t.slice(l,t.length)),n=ZR(n??t,i),{fullPath:n+s+a,path:n,query:r,hash:l0(a)}}function IR(e,t){const i=t.query?e(t.query):"";return t.path+(i&&"?")+i+(t.hash||"")}function bp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function VR(e,t,i){const n=t.matched.length-1,r=i.matched.length-1;return n>-1&&n===r&&_a(t.matched[n],i.matched[r])&&Eb(t.params,i.params)&&e(t.query)===e(i.query)&&t.hash===i.hash}function _a(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Eb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(!DR(e[i],t[i]))return!1;return!0}function DR(e,t){return Cn(e)?yp(e,t):Cn(t)?yp(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function yp(e,t){return Cn(t)?e.length===t.length&&e.every((i,n)=>i===t[n]):e.length===1&&e[0]===t}function ZR(e,t){if(e.startsWith("/"))return e;if(!e)return t;const i=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let s=i.length-1,a,l;for(a=0;a<n.length;a++)if(l=n[a],l!==".")if(l==="..")s>1&&s--;else break;return i.slice(0,s).join("/")+"/"+n.slice(a).join("/")}const xr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let sh=function(e){return e.pop="pop",e.push="push",e}({}),H1=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function BR(e){if(!e)if(ea){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),RR(e)}const FR=/^[^#]+#/;function zR(e,t){return e.replace(FR,"#")+t}function UR(e,t){const i=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-i.left-(t.left||0),top:n.top-i.top-(t.top||0)}}const Fu=()=>({left:window.scrollX,top:window.scrollY});function WR(e){let t;if("el"in e){const i=e.el,n=typeof i=="string"&&i.startsWith("#"),r=typeof i=="string"?n?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!r)return;t=UR(r,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 wp(e,t){return(history.state?history.state.position-t:-1)+e}const ah=new Map;function jR(e,t){ah.set(e,t)}function KR(e){const t=ah.get(e);return ah.delete(e),t}function qR(e){return typeof e=="string"||e&&typeof e=="object"}function xb(e){return typeof e=="string"||typeof e=="symbol"}let zt=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 Hb=Symbol("");zt.MATCHER_NOT_FOUND+"",zt.NAVIGATION_GUARD_REDIRECT+"",zt.NAVIGATION_ABORTED+"",zt.NAVIGATION_CANCELLED+"",zt.NAVIGATION_DUPLICATED+"";function ma(e,t){return mt(new Error,{type:e,[Hb]:!0},t)}function sr(e,t){return e instanceof Error&&Hb in e&&(t==null||!!(e.type&t))}const GR=["params","query","hash"];function YR(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const i of GR)i in e&&(t[i]=e[i]);return JSON.stringify(t,null,2)}function XR(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<i.length;++n){const r=i[n].replace(Ab," "),s=r.indexOf("="),a=l0(s<0?r:r.slice(0,s)),l=s<0?null:l0(r.slice(s+1));if(a in t){let o=t[a];Cn(o)||(o=t[a]=[o]),o.push(l)}else t[a]=l}return t}function Sp(e){let t="";for(let i in e){const n=e[i];if(i=TR(i),n==null){n!==void 0&&(t+=(t.length?"&":"")+i);continue}(Cn(n)?n.map(r=>r&&rh(r)):[n&&rh(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+i,r!=null&&(t+="="+r))})}return t}function JR(e){const t={};for(const i in e){const n=e[i];n!==void 0&&(t[i]=Cn(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const QR=Symbol(""),Cp=Symbol(""),zu=Symbol(""),cf=Symbol(""),lh=Symbol("");function co(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function i(){e=[]}return{add:t,list:()=>e.slice(),reset:i}}function Zr(e,t,i,n,r,s=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((l,o)=>{const c=f=>{f===!1?o(ma(zt.NAVIGATION_ABORTED,{from:i,to:t})):f instanceof Error?o(f):qR(f)?o(ma(zt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&n.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),l())},u=s(()=>e.call(n&&n.instances[r],t,i,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>o(f))})}function T1(e,t,i,n,r=s=>s()){const s=[];for(const a of e)for(const l in a.components){let o=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(Cb(o)){const c=(o.__vccOpts||o)[t];c&&s.push(Zr(c,i,n,a,l,r))}else{let c=o();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${a.path}"`);const d=wR(u)?u.default:u;a.mods[l]=u,a.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&Zr(f,i,n,a,l,r)()}))}}return s}function eI(e,t){const i=[],n=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;a<s;a++){const l=t.matched[a];l&&(e.matched.find(c=>_a(c,l))?n.push(l):i.push(l));const o=e.matched[a];o&&(t.matched.find(c=>_a(c,o))||r.push(o))}return[i,n,r]}/*!
48
- * vue-router v4.6.4
49
- * (c) 2025 Eduardo San Martin Morote
50
- * @license MIT
51
- */let tI=()=>location.protocol+"//"+location.host;function Tb(e,t){const{pathname:i,search:n,hash:r}=t,s=e.indexOf("#");if(s>-1){let a=r.includes(e.slice(s))?e.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),bp(l,"")}return bp(i,e)+n+r}function iI(e,t,i,n){let r=[],s=[],a=null;const l=({state:f})=>{const h=Tb(e,location),m=i.value,p=t.value;let b=0;if(f){if(i.value=h,t.value=f,a&&a===m){a=null;return}b=p?f.position-p.position:0}else n(h);r.forEach(v=>{v(i.value,m,{delta:b,type:sh.pop,direction:b?b>0?H1.forward:H1.back:H1.unknown})})};function o(){a=i.value}function c(f){r.push(f);const h=()=>{const m=r.indexOf(f);m>-1&&r.splice(m,1)};return s.push(h),h}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(mt({},f.state,{scroll:Fu()}),"")}}function d(){for(const f of s)f();s=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:o,listen:c,destroy:d}}function kp(e,t,i,n=!1,r=!1){return{back:e,current:t,forward:i,replaced:n,position:window.history.length,scroll:r?Fu():null}}function nI(e){const{history:t,location:i}=window,n={value:Tb(e,i)},r={value:t.state};r.value||s(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(o,c,u){const d=e.indexOf("#"),f=d>-1?(i.host&&document.querySelector("base")?e:e.slice(d))+o:tI()+e+o;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),i[u?"replace":"assign"](f)}}function a(o,c){s(o,mt({},t.state,kp(r.value.back,o,r.value.forward,!0),c,{position:r.value.position}),!0),n.value=o}function l(o,c){const u=mt({},r.value,t.state,{forward:o,scroll:Fu()});s(u.current,u,!0),s(o,mt({},kp(n.value,o,null),{position:u.position+1},c),!1),n.value=o}return{location:n,state:r,push:l,replace:a}}function rI(e){e=BR(e);const t=nI(e),i=iI(e,t.state,t.location,t.replace);function n(s,a=!0){a||i.pauseListeners(),history.go(s)}const r=mt({location:"",base:e,go:n,createHref:zR.bind(null,e)},t,i);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let xs=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ni=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}(ni||{});const sI={type:xs.Static,value:""},aI=/[a-zA-Z0-9_]/;function lI(e){if(!e)return[[]];if(e==="/")return[[sI]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${i})/"${c}": ${h}`)}let i=ni.Static,n=i;const r=[];let s;function a(){s&&r.push(s),s=[]}let l=0,o,c="",u="";function d(){c&&(i===ni.Static?s.push({type:xs.Static,value:c}):i===ni.Param||i===ni.ParamRegExp||i===ni.ParamRegExpEnd?(s.length>1&&(o==="*"||o==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:xs.Param,value:c,regexp:u,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=o}for(;l<e.length;){if(o=e[l++],o==="\\"&&i!==ni.ParamRegExp){n=i,i=ni.EscapeNext;continue}switch(i){case ni.Static:o==="/"?(c&&d(),a()):o===":"?(d(),i=ni.Param):f();break;case ni.EscapeNext:f(),i=n;break;case ni.Param:o==="("?i=ni.ParamRegExp:aI.test(o)?f():(d(),i=ni.Static,o!=="*"&&o!=="?"&&o!=="+"&&l--);break;case ni.ParamRegExp:o===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+o:i=ni.ParamRegExpEnd:u+=o;break;case ni.ParamRegExpEnd:d(),i=ni.Static,o!=="*"&&o!=="?"&&o!=="+"&&l--,u="";break;default:t("Unknown state");break}}return i===ni.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),r}const Ap="[^/]+?",oI={sensitive:!1,strict:!1,start:!0,end:!0};var Pi=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}(Pi||{});const cI=/[.+*?^${}()[\]/\\]/g;function uI(e,t){const i=mt({},oI,t),n=[];let r=i.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[Pi.Root];i.strict&&!c.length&&(r+="/");for(let d=0;d<c.length;d++){const f=c[d];let h=Pi.Segment+(i.sensitive?Pi.BonusCaseSensitive:0);if(f.type===xs.Static)d||(r+="/"),r+=f.value.replace(cI,"\\$&"),h+=Pi.Static;else if(f.type===xs.Param){const{value:m,repeatable:p,optional:b,regexp:v}=f;s.push({name:m,repeatable:p,optional:b});const C=v||Ap;if(C!==Ap){h+=Pi.BonusCustomRegExp;try{`${C}`}catch(g){throw new Error(`Invalid custom RegExp for param "${m}" (${C}): `+g.message)}}let y=p?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;d||(y=b&&c.length<2?`(?:/${y})`:"/"+y),b&&(y+="?"),r+=y,h+=Pi.Dynamic,b&&(h+=Pi.BonusOptional),p&&(h+=Pi.BonusRepeatable),C===".*"&&(h+=Pi.BonusWildcard)}u.push(h)}n.push(u)}if(i.strict&&i.end){const c=n.length-1;n[c][n[c].length-1]+=Pi.BonusStrict}i.strict||(r+="/?"),i.end?r+="$":i.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const a=new RegExp(r,i.sensitive?"":"i");function l(c){const u=c.match(a),d={};if(!u)return null;for(let f=1;f<u.length;f++){const h=u[f]||"",m=s[f-1];d[m.name]=h&&m.repeatable?h.split("/"):h}return d}function o(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const h of f)if(h.type===xs.Static)u+=h.value;else if(h.type===xs.Param){const{value:m,repeatable:p,optional:b}=h,v=m in c?c[m]:"";if(Cn(v)&&!p)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const C=Cn(v)?v.join("/"):v;if(!C)if(b)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);u+=C}}return u||"/"}return{re:a,score:n,keys:s,parse:l,stringify:o}}function dI(e,t){let i=0;for(;i<e.length&&i<t.length;){const n=t[i]-e[i];if(n)return n;i++}return e.length<t.length?e.length===1&&e[0]===Pi.Static+Pi.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Pi.Static+Pi.Segment?1:-1:0}function Nb(e,t){let i=0;const n=e.score,r=t.score;for(;i<n.length&&i<r.length;){const s=dI(n[i],r[i]);if(s)return s;i++}if(Math.abs(r.length-n.length)===1){if($p(n))return 1;if($p(r))return-1}return r.length-n.length}function $p(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const hI={strict:!1,end:!0,sensitive:!1};function fI(e,t,i){const n=uI(lI(e.path),i),r=mt(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function pI(e,t){const i=[],n=new Map;t=gp(hI,t);function r(d){return n.get(d)}function s(d,f,h){const m=!h,p=Lp(d);p.aliasOf=h&&h.record;const b=gp(t,d),v=[p];if("alias"in d){const g=typeof d.alias=="string"?[d.alias]:d.alias;for(const L of g)v.push(Lp(mt({},p,{components:h?h.record.components:p.components,path:L,aliasOf:h?h.record:p})))}let C,y;for(const g of v){const{path:L}=g;if(f&&L[0]!=="/"){const x=f.record.path,$=x[x.length-1]==="/"?"":"/";g.path=f.record.path+(L&&$+L)}if(C=fI(g,f,b),h?h.alias.push(C):(y=y||C,y!==C&&y.alias.push(C),m&&d.name&&!Ep(C)&&a(d.name)),Pb(C)&&o(C),p.children){const x=p.children;for(let $=0;$<x.length;$++)s(x[$],C,h&&h.children[$])}h=h||C}return y?()=>{a(y)}:Io}function a(d){if(xb(d)){const f=n.get(d);f&&(n.delete(d),i.splice(i.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=i.indexOf(d);f>-1&&(i.splice(f,1),d.record.name&&n.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function l(){return i}function o(d){const f=vI(d,i);i.splice(f,0,d),d.record.name&&!Ep(d)&&n.set(d.record.name,d)}function c(d,f){let h,m={},p,b;if("name"in d&&d.name){if(h=n.get(d.name),!h)throw ma(zt.MATCHER_NOT_FOUND,{location:d});b=h.record.name,m=mt(Mp(f.params,h.keys.filter(y=>!y.optional).concat(h.parent?h.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&Mp(d.params,h.keys.map(y=>y.name))),p=h.stringify(m)}else if(d.path!=null)p=d.path,h=i.find(y=>y.re.test(p)),h&&(m=h.parse(p),b=h.record.name);else{if(h=f.name?n.get(f.name):i.find(y=>y.re.test(f.path)),!h)throw ma(zt.MATCHER_NOT_FOUND,{location:d,currentLocation:f});b=h.record.name,m=mt({},f.params,d.params),p=h.stringify(m)}const v=[];let C=h;for(;C;)v.unshift(C.record),C=C.parent;return{name:b,path:p,params:m,matched:v,meta:mI(v)}}e.forEach(d=>s(d));function u(){i.length=0,n.clear()}return{addRoute:s,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Mp(e,t){const i={};for(const n of t)n in e&&(i[n]=e[n]);return i}function Lp(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_I(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 _I(e){const t={},i=e.props||!1;if("component"in e)t.default=i;else for(const n in e.components)t[n]=typeof i=="object"?i[n]:i;return t}function Ep(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mI(e){return e.reduce((t,i)=>mt(t,i.meta),{})}function vI(e,t){let i=0,n=t.length;for(;i!==n;){const s=i+n>>1;Nb(e,t[s])<0?n=s:i=s+1}const r=gI(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function gI(e){let t=e;for(;t=t.parent;)if(Pb(t)&&Nb(e,t)===0)return t}function Pb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xp(e){const t=Pt(zu),i=Pt(cf),n=U(()=>{const o=_e(e.to);return t.resolve(o)}),r=U(()=>{const{matched:o}=n.value,{length:c}=o,u=o[c-1],d=i.matched;if(!u||!d.length)return-1;const f=d.findIndex(_a.bind(null,u));if(f>-1)return f;const h=Hp(o[c-2]);return c>1&&Hp(u)===h&&d[d.length-1].path!==h?d.findIndex(_a.bind(null,o[c-2])):f}),s=U(()=>r.value>-1&&CI(i.params,n.value.params)),a=U(()=>r.value>-1&&r.value===i.matched.length-1&&Eb(i.params,n.value.params));function l(o={}){if(SI(o)){const c=t[_e(e.replace)?"replace":"push"](_e(e.to)).catch(Io);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:U(()=>n.value.href),isActive:s,isExactActive:a,navigate:l}}function bI(e){return e.length===1?e[0]:e}const yI=Pe({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:xp,setup(e,{slots:t}){const i=br(xp(e)),{options:n}=Pt(zu),r=U(()=>({[Tp(e.activeClass,n.linkActiveClass,"router-link-active")]:i.isActive,[Tp(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const s=t.default&&bI(t.default(i));return e.custom?s:He("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:r.value},s)}}}),wI=yI;function SI(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 CI(e,t){for(const i in t){const n=t[i],r=e[i];if(typeof n=="string"){if(n!==r)return!1}else if(!Cn(r)||r.length!==n.length||n.some((s,a)=>s.valueOf()!==r[a].valueOf()))return!1}return!0}function Hp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tp=(e,t,i)=>e??t??i,kI=Pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:i}){const n=Pt(lh),r=U(()=>e.route||n.value),s=Pt(Cp,0),a=U(()=>{let c=_e(s);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=U(()=>r.value.matched[a.value]);qi(Cp,U(()=>a.value+1)),qi(QR,l),qi(lh,r);const o=G();return Oe(()=>[o.value,l.value,e.name],([c,u,d],[f,h,m])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!_a(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=l.value,f=d&&d.components[u];if(!f)return Np(i.default,{Component:f,route:c});const h=d.props[u],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,b=He(f,mt({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:o}));return Np(i.default,{Component:b,route:c})||b}}});function Np(e,t){if(!e)return null;const i=e(t);return i.length===1?i[0]:i}const AI=kI;function $I(e){const t=pI(e.routes,e),i=e.parseQuery||XR,n=e.stringifyQuery||Sp,r=e.history,s=co(),a=co(),l=co(),o=Gn(xr);let c=xr;ea&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=E1.bind(null,j=>""+j),d=E1.bind(null,PR),f=E1.bind(null,l0);function h(j,K){let se,Q;return xb(j)?(se=t.getRecordMatcher(j),Q=K):Q=j,t.addRoute(Q,se)}function m(j){const K=t.getRecordMatcher(j);K&&t.removeRoute(K)}function p(){return t.getRoutes().map(j=>j.record)}function b(j){return!!t.getRecordMatcher(j)}function v(j,K){if(K=mt({},K||o.value),typeof j=="string"){const ee=x1(i,j,K.path),de=t.resolve({path:ee.path},K),pe=r.createHref(ee.fullPath);return mt(ee,de,{params:f(de.params),hash:l0(ee.hash),redirectedFrom:void 0,href:pe})}let se;if(j.path!=null)se=mt({},j,{path:x1(i,j.path,K.path).path});else{const ee=mt({},j.params);for(const de in ee)ee[de]==null&&delete ee[de];se=mt({},j,{params:d(ee)}),K.params=d(K.params)}const Q=t.resolve(se,K),S=j.hash||"";Q.params=u(f(Q.params));const T=IR(n,mt({},j,{hash:HR(S),path:Q.path})),V=r.createHref(T);return mt({fullPath:T,hash:S,query:n===Sp?JR(j.query):j.query||{}},Q,{redirectedFrom:void 0,href:V})}function C(j){return typeof j=="string"?x1(i,j,o.value.path):mt({},j)}function y(j,K){if(c!==j)return ma(zt.NAVIGATION_CANCELLED,{from:K,to:j})}function g(j){return $(j)}function L(j){return g(mt(C(j),{replace:!0}))}function x(j,K){const se=j.matched[j.matched.length-1];if(se&&se.redirect){const{redirect:Q}=se;let S=typeof Q=="function"?Q(j,K):Q;return typeof S=="string"&&(S=S.includes("?")||S.includes("#")?S=C(S):{path:S},S.params={}),mt({query:j.query,hash:j.hash,params:S.path!=null?{}:j.params},S)}}function $(j,K){const se=c=v(j),Q=o.value,S=j.state,T=j.force,V=j.replace===!0,ee=x(se,Q);if(ee)return $(mt(C(ee),{state:typeof ee=="object"?mt({},S,ee.state):S,force:T,replace:V}),K||se);const de=se;de.redirectedFrom=K;let pe;return!T&&VR(n,Q,se)&&(pe=ma(zt.NAVIGATION_DUPLICATED,{to:de,from:Q}),J(Q,Q,!0,!1)),(pe?Promise.resolve(pe):ie(de,Q)).catch(we=>sr(we)?sr(we,zt.NAVIGATION_GUARD_REDIRECT)?we:xe(we):ae(we,de,Q)).then(we=>{if(we){if(sr(we,zt.NAVIGATION_GUARD_REDIRECT))return $(mt({replace:V},C(we.to),{state:typeof we.to=="object"?mt({},S,we.to.state):S,force:T}),K||de)}else we=A(de,Q,!0,V,S);return B(de,Q,we),we})}function O(j,K){const se=y(j,K);return se?Promise.reject(se):Promise.resolve()}function F(j){const K=he.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(j):j()}function ie(j,K){let se;const[Q,S,T]=eI(j,K);se=T1(Q.reverse(),"beforeRouteLeave",j,K);for(const ee of Q)ee.leaveGuards.forEach(de=>{se.push(Zr(de,j,K))});const V=O.bind(null,j,K);return se.push(V),ue(se).then(()=>{se=[];for(const ee of s.list())se.push(Zr(ee,j,K));return se.push(V),ue(se)}).then(()=>{se=T1(S,"beforeRouteUpdate",j,K);for(const ee of S)ee.updateGuards.forEach(de=>{se.push(Zr(de,j,K))});return se.push(V),ue(se)}).then(()=>{se=[];for(const ee of T)if(ee.beforeEnter)if(Cn(ee.beforeEnter))for(const de of ee.beforeEnter)se.push(Zr(de,j,K));else se.push(Zr(ee.beforeEnter,j,K));return se.push(V),ue(se)}).then(()=>(j.matched.forEach(ee=>ee.enterCallbacks={}),se=T1(T,"beforeRouteEnter",j,K,F),se.push(V),ue(se))).then(()=>{se=[];for(const ee of a.list())se.push(Zr(ee,j,K));return se.push(V),ue(se)}).catch(ee=>sr(ee,zt.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function B(j,K,se){l.list().forEach(Q=>F(()=>Q(j,K,se)))}function A(j,K,se,Q,S){const T=y(j,K);if(T)return T;const V=K===xr,ee=ea?history.state:{};se&&(Q||V?r.replace(j.fullPath,mt({scroll:V&&ee&&ee.scroll},S)):r.push(j.fullPath,S)),o.value=j,J(j,K,se,V),xe()}let H;function I(){H||(H=r.listen((j,K,se)=>{if(!te.listening)return;const Q=v(j),S=x(Q,te.currentRoute.value);if(S){$(mt(S,{replace:!0,force:!0}),Q).catch(Io);return}c=Q;const T=o.value;ea&&jR(wp(T.fullPath,se.delta),Fu()),ie(Q,T).catch(V=>sr(V,zt.NAVIGATION_ABORTED|zt.NAVIGATION_CANCELLED)?V:sr(V,zt.NAVIGATION_GUARD_REDIRECT)?($(mt(C(V.to),{force:!0}),Q).then(ee=>{sr(ee,zt.NAVIGATION_ABORTED|zt.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===sh.pop&&r.go(-1,!1)}).catch(Io),Promise.reject()):(se.delta&&r.go(-se.delta,!1),ae(V,Q,T))).then(V=>{V=V||A(Q,T,!1),V&&(se.delta&&!sr(V,zt.NAVIGATION_CANCELLED)?r.go(-se.delta,!1):se.type===sh.pop&&sr(V,zt.NAVIGATION_ABORTED|zt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),B(Q,T,V)}).catch(Io)}))}let D=co(),q=co(),re;function ae(j,K,se){xe(j);const Q=q.list();return Q.length?Q.forEach(S=>S(j,K,se)):console.error(j),Promise.reject(j)}function ge(){return re&&o.value!==xr?Promise.resolve():new Promise((j,K)=>{D.add([j,K])})}function xe(j){return re||(re=!j,I(),D.list().forEach(([K,se])=>j?se(j):K()),D.reset()),j}function J(j,K,se,Q){const{scrollBehavior:S}=e;if(!ea||!S)return Promise.resolve();const T=!se&&KR(wp(j.fullPath,0))||(Q||!se)&&history.state&&history.state.scroll||null;return bt().then(()=>S(j,K,T)).then(V=>V&&WR(V)).catch(V=>ae(V,j,K))}const ve=j=>r.go(j);let fe;const he=new Set,te={currentRoute:o,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:p,resolve:v,options:e,push:g,replace:L,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:s.add,beforeResolve:a.add,afterEach:l.add,onError:q.add,isReady:ge,install(j){j.component("RouterLink",wI),j.component("RouterView",AI),j.config.globalProperties.$router=te,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>_e(o)}),ea&&!fe&&o.value===xr&&(fe=!0,g(r.location).catch(Q=>{}));const K={};for(const Q in xr)Object.defineProperty(K,Q,{get:()=>o.value[Q],enumerable:!0});j.provide(zu,te),j.provide(cf,_4(K)),j.provide(lh,o);const se=j.unmount;he.add(j),j.unmount=function(){he.delete(j),he.size<1&&(c=xr,H&&H(),H=null,o.value=xr,fe=!1,re=!1),se()}}};function ue(j){return j.reduce((K,se)=>K.then(()=>F(se)),Promise.resolve())}return te}function w0(){return Pt(zu)}function S0(e){return Pt(cf)}const Ob="/logo.svg",Qa=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},MI=Qa("book","0 0 256 256",'<path d="M208,28H72A28,28,0,0,0,44,56V224a4,4,0,0,0,4,4H192a4,4,0,0,0,0-8H52v-4a20,20,0,0,1,20-20H208a4,4,0,0,0,4-4V32A4,4,0,0,0,208,28Zm-4,160H72a27.94,27.94,0,0,0-20,8.42V56A20,20,0,0,1,72,36H204Z"/>'),LI=Qa("book","0 0 256 256",'<path d="M208,26H72A30,30,0,0,0,42,56V224a6,6,0,0,0,6,6H192a6,6,0,0,0,0-12H54v-2a18,18,0,0,1,18-18H208a6,6,0,0,0,6-6V32A6,6,0,0,0,208,26Zm-6,160H72a29.87,29.87,0,0,0-18,6V56A18,18,0,0,1,72,38H202Z"/>'),Pp=Qa("book","0 0 256 256",'<path d="M208,24H72A32,32,0,0,0,40,56V224a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16H56a16,16,0,0,1,16-16H208a8,8,0,0,0,8-8V32A8,8,0,0,0,208,24Zm-8,160H72a31.82,31.82,0,0,0-16,4.29V56A16,16,0,0,1,72,40H200Z"/>'),EI=Qa("book","0 0 256 256",'<path d="M208,20H72A36,36,0,0,0,36,56V224a12,12,0,0,0,12,12H192a12,12,0,0,0,0-24H60v-4a12,12,0,0,1,12-12H208a12,12,0,0,0,12-12V32A12,12,0,0,0,208,20ZM196,172H72a35.59,35.59,0,0,0-12,2.06V56A12,12,0,0,1,72,44H196Z"/>'),xI=Qa("book","0 0 256 256",'<path d="M216,32V192a8,8,0,0,1-8,8H72a16,16,0,0,0-16,16H192a8,8,0,0,1,0,16H48a8,8,0,0,1-8-8V56A32,32,0,0,1,72,24H208A8,8,0,0,1,216,32Z"/>'),HI=Qa("book","0 0 256 256",'<path d="M208,32V192H72a24,24,0,0,0-24,24V56A24,24,0,0,1,72,32Z" opacity="0.2"/><path d="M208,24H72A32,32,0,0,0,40,56V224a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16H56a16,16,0,0,1,16-16H208a8,8,0,0,0,8-8V32A8,8,0,0,0,208,24Zm-8,160H72a31.82,31.82,0,0,0-16,4.29V56A16,16,0,0,1,72,40H200Z"/>'),TI="book",NI=Object.freeze(Object.defineProperty({__proto__:null,bold:EI,default:Pp,duotone:HI,fill:xI,glyphName:TI,light:LI,regular:Pp,thin:MI},Symbol.toStringTag,{value:"Module"})),el=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},PI=el("heart","0 0 256 256",'<path d="M178,44c-21.44,0-39.92,10.19-50,27.07C117.92,54.19,99.44,44,78,44a58.07,58.07,0,0,0-58,58c0,28.59,18,58.47,53.4,88.79a333.81,333.81,0,0,0,52.7,36.73,4,4,0,0,0,3.8,0,333.81,333.81,0,0,0,52.7-36.73C218,160.47,236,130.59,236,102A58.07,58.07,0,0,0,178,44ZM128,219.42c-14-8-100-59.35-100-117.42A50.06,50.06,0,0,1,78,52c21.11,0,38.85,11.31,46.3,29.51a4,4,0,0,0,7.4,0C139.15,63.31,156.89,52,178,52a50.06,50.06,0,0,1,50,50C228,160,142,211.46,128,219.42Z"/>'),OI=el("heart","0 0 256 256",'<path d="M178,42c-21,0-39.26,9.47-50,25.34C117.26,51.47,99,42,78,42a60.07,60.07,0,0,0-60,60c0,29.2,18.2,59.59,54.1,90.31a334.68,334.68,0,0,0,53.06,37,6,6,0,0,0,5.68,0,334.68,334.68,0,0,0,53.06-37C219.8,161.59,238,131.2,238,102A60.07,60.07,0,0,0,178,42ZM128,217.11C111.59,207.64,30,157.72,30,102A48.05,48.05,0,0,1,78,54c20.28,0,37.31,10.83,44.45,28.27a6,6,0,0,0,11.1,0C140.69,64.83,157.72,54,178,54a48.05,48.05,0,0,1,48,48C226,157.72,144.41,207.64,128,217.11Z"/>'),Op=el("heart","0 0 256 256",'<path d="M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"/>'),RI=el("heart","0 0 256 256",'<path d="M178,36c-20.09,0-37.92,7.93-50,21.56C115.92,43.93,98.09,36,78,36a66.08,66.08,0,0,0-66,66c0,72.34,105.81,130.14,110.31,132.57a12,12,0,0,0,11.38,0C138.19,232.14,244,174.34,244,102A66.08,66.08,0,0,0,178,36Zm-5.49,142.36A328.69,328.69,0,0,1,128,210.16a328.69,328.69,0,0,1-44.51-31.8C61.82,159.77,36,131.42,36,102A42,42,0,0,1,78,60c17.8,0,32.7,9.4,38.89,24.54a12,12,0,0,0,22.22,0C145.3,69.4,160.2,60,178,60a42,42,0,0,1,42,42C220,131.42,194.18,159.77,172.51,178.36Z"/>'),uf=el("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"/>'),II=el("heart","0 0 256 256",'<path d="M232,102c0,66-104,122-104,122S24,168,24,102A54,54,0,0,1,78,48c22.59,0,41.94,12.31,50,32,8.06-19.69,27.41-32,50-32A54,54,0,0,1,232,102Z" opacity="0.2"/><path d="M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"/>'),VI="heart",DI=Object.freeze(Object.defineProperty({__proto__:null,bold:RI,default:Op,duotone:II,fill:uf,glyphName:VI,light:OI,regular:Op,thin:PI},Symbol.toStringTag,{value:"Module"})),tl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},ZI=tl("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"/>'),BI=tl("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"/>'),Rp=tl("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"/>'),FI=tl("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"/>'),zI=tl("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"/>'),UI=tl("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"/>'),WI="gear",Rb=Object.freeze(Object.defineProperty({__proto__:null,bold:FI,default:Rp,duotone:UI,fill:zI,glyphName:WI,light:BI,regular:Rp,thin:ZI},Symbol.toStringTag,{value:"Module"})),il=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},jI=il("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"/>'),KI=il("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"/>'),oh=il("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"/>'),qI=il("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"/>'),GI=il("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"/>'),YI=il("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"/>'),XI="arrow-circle-up",df=Object.freeze(Object.defineProperty({__proto__:null,bold:qI,default:oh,duotone:YI,fill:GI,glyphName:XI,light:KI,regular:oh,thin:jI},Symbol.toStringTag,{value:"Module"})),Ib="/api";async function St(e){const t=await fetch(`${Ib}${e}`);if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.json()}async function Ip(e,t){try{const i=await e.json(),n=i==null?void 0:i.message;if(typeof n=="string"&&n.trim()!=="")return n}catch{}return`${t}: ${e.status}`}async function N1(e,t,i){const n=await fetch(`${Ib}${t}`,{method:e,headers:i===void 0?void 0:{"Content-Type":"application/json"},body:i===void 0?void 0:JSON.stringify(i)});if(!n.ok){let r=`${e} ${t} failed: ${n.status}`;try{const s=await n.json();r=s.error??s.message??r}catch{}throw new Error(r)}return n.json()}const Ze={access:{get:()=>St("/access"),createToken:(e,t)=>N1("POST","/access/tokens",{name:e,access:t}),revokeToken:e=>N1("DELETE",`/access/tokens/${encodeURIComponent(e)}`),revokeConnection:e=>N1("DELETE",`/access/connections/${encodeURIComponent(e)}`)},health:()=>St("/health"),system:()=>St("/system"),qr:()=>St("/qr"),deviceEvents:(e,t=100)=>St(`/devices/${encodeURIComponent(e)}/events?limit=${t}`),deviceObservations:(e,t=50)=>St(`/devices/${encodeURIComponent(e)}/observations?limit=${t}`),reportObservation:(e,t)=>fetch(`/api/devices/${encodeURIComponent(e)}/observations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(async i=>{if(!i.ok)throw new Error((await i.json()).error??`HTTP ${i.status}`);return i.json()}),plugins:()=>St("/plugins"),pluginsRefresh:()=>fetch("/api/plugins/refresh",{method:"POST"}).then(e=>e.json()),plugin:e=>St(`/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:()=>St("/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:()=>St("/accessories"),devices:()=>St("/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(n=>{if(!n.ok)throw new Error(`Control failed: ${n.status}`);return n.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 n=new URLSearchParams({period:t});return i&&n.set("date",i),St(`/devices/${encodeURIComponent(e)}/history?${n}`)},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 n=i.toString();return St(`/devices/${encodeURIComponent(e)}/metrics${n?`?${n}`:""}`)},homekitHidden:()=>St("/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=>St(`/devices/${encodeURIComponent(e)}/accessory`),homekitServiceTypes:()=>St("/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 n=>{var r;if(!n.ok)throw new Error(((r=await n.json().catch(()=>null))==null?void 0:r.message)??`Type change failed: ${n.status}`);return n.json()}),setCharacteristic:(e,t,i,n)=>fetch(`/api/accessories/${e}/characteristics`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({serviceUuid:t,charUuid:i,value:n})}).then(r=>{if(!r.ok)throw new Error(`Set failed: ${r.status}`);return r.json()}),logs:(e,t=200)=>{const i=new URLSearchParams({limit:String(t)});return e&&i.set("plugin",e),St(`/logs?${i}`)},pluginTelemetry:e=>St(`/plugins/${encodeURIComponent(e)}/telemetry`),config:{get:()=>St("/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=>St(`/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)=>St(`/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(n=>{if(!n.ok)throw new Error(`Save failed: ${n.status}`);return n.json()}),getPlugin:e=>St(`/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=>St(`/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:()=>St("/updates/check"),apply:()=>fetch("/api/updates/apply",{method:"POST"}).then(async e=>{if(!e.ok)throw new Error(await Ip(e,"Update failed"));return e.json()}),rollback:()=>fetch("/api/updates/rollback",{method:"POST"}).then(async e=>{if(!e.ok)throw new Error(await Ip(e,"Rollback failed"));return e.json()})},marketplace:{search:(e="",t=0,i=20)=>{const n=new URLSearchParams({q:e,from:String(t),size:String(i)});return St(`/marketplace/search?${n}`)},enriched:e=>fetch(`/api/marketplace/enriched/${encodeURIComponent(e)}`).then(t=>t.ok?t.json():Promise.reject(new Error(`Enrichment failed: ${t.status}`))),installed:()=>St("/marketplace/installed"),local:()=>St("/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()})}},kr=Mu("daemon",()=>{const e=G(null),t=G([]),i=G([]),n=G([]),r=G(!1),s=G(null),a=G(!1),l=U(()=>t.value.filter(b=>b.status==="running").length),o=U(()=>t.value.filter(b=>b.status==="error").length);async function c(){try{e.value=await Ze.health(),a.value=!0,s.value=null}catch{a.value=!1,e.value=null}}async function u(){r.value=!0;try{const b=await Ze.plugins();t.value=b.plugins}catch(b){s.value=String(b)}finally{r.value=!1}}async function d(){try{const b=await Ze.accessories();i.value=b.accessories}catch{}}async function f(b){try{const v=await Ze.logs(b);n.value=v.entries}catch(v){s.value=String(v)}}let h=null;function m(){if(h)return;const b=location.protocol==="https:"?"wss:":"ws:";h=new WebSocket(`${b}//${location.host}/ws/logs`),h.onmessage=v=>{if(!document.hidden)try{const C=JSON.parse(v.data);n.value.push(C),n.value.length>500&&n.value.shift()}catch{}},h.onclose=()=>{h=null,setTimeout(m,3e3)}}function p(){h==null||h.close(),h=null}return{health:e,plugins:t,accessories:i,logs:n,loading:r,error:s,connected:a,runningCount:l,errorCount:o,fetchHealth:c,fetchPlugins:u,fetchAccessories:d,fetchLogs:f,connectLiveLogs:m,disconnectLiveLogs:p}}),Vp=Object.freeze(Object.defineProperty({__proto__:null,useDaemonStore:kr},Symbol.toStringTag,{value:"Module"})),nl=Mu("inspector",()=>{const e=G(!1),t=G("plugin"),i=G(null),n=G(null);function r(c){i.value=c,n.value=null,t.value="plugin",e.value=!0}function s(){i.value=null,n.value=null,t.value="marketplace",e.value=!0}function a(c){n.value=c,i.value=null,t.value="device",e.value=!0}function l(c){n.value&&t.value==="device"&&(c.kind==="native"&&n.value.kind==="native"?c.dev.id===n.value.dev.id&&(n.value=c):c.kind==="hap"&&n.value.kind==="hap"&&c.acc.uuid===n.value.acc.uuid&&(n.value=c))}function o(){e.value=!1,i.value=null,n.value=null}return{visible:e,mode:t,selectedPlugin:i,selectedDevice:n,openPlugin:r,openMarketplace:s,openDevice:a,updateDevice:l,close:o}}),Fs=Mu("layout",()=>{const e=G(""),t=G(null),i=G(!1);function n(r,s,a){e.value=r,t.value=s??null,i.value=(a==null?void 0:a.fullBleed)??!1}return{title:e,count:t,fullBleed:i,setPage:n}});function J0(e){return(e==null?void 0:e.authOrigin)??(e==null?void 0:e.issuer)??null}const JI="openbridge_platform_state",Dp="openbridge_platform_expected_sub",P1="openbridge_last_account",vs=G(null),gs=G(null),uo=G(!1);function rl(){async function e(){if(gs.value)return gs.value;const p=await fetch("/auth/platform/config");if(!p.ok){const v={enabled:!1,issuer:null,appId:null};return gs.value=v,v}const b=await p.json();return gs.value=b,b}function t(){try{const p=localStorage.getItem(P1);if(!p)return null;const b=JSON.parse(p);return b.sub&&b.email?b:null}catch{return null}}function i(p){try{localStorage.setItem(P1,JSON.stringify(p))}catch{}}function n(){try{localStorage.removeItem(P1)}catch{}}async function r(){if(!(await e()).enabled)return vs.value=null,uo.value=!0,!0;try{const b=await fetch("/auth/me",{credentials:"include"});if(!b.ok)return vs.value=null,uo.value=!0,!1;const v=await b.json();return vs.value=v.user,i({sub:v.user.id,email:v.user.email}),uo.value=!0,!0}catch{return vs.value=null,uo.value=!0,!1}}async function s(p={}){const b=await e(),v=J0(b);if(!b.enabled||!v)return;const C=b.appId??"openbridge",y=Array.from(crypto.getRandomValues(new Uint8Array(16))).map(x=>x.toString(16).padStart(2,"0")).join("");sessionStorage.setItem(JI,y),p.expectedSub?sessionStorage.setItem(Dp,p.expectedSub):sessionStorage.removeItem(Dp);const g=`${window.location.origin}/auth/callback`,L=new URL(`${v}/api/auth/sso`);L.searchParams.set("app_id",C),L.searchParams.set("redirect_uri",g),L.searchParams.set("state",y),p.prompt&&L.searchParams.set("prompt",p.prompt),p.loginHint&&L.searchParams.set("login_hint",p.loginHint),window.location.href=L.toString()}async function a(){const p=t();return p?(await s({loginHint:p.email,expectedSub:p.sub}),!0):!1}async function l(p){await s({loginHint:p})}async function o(){await s({prompt:"login"})}async function c(){await s({prompt:"select_account"})}async function u(){const p=await e(),b=J0(p);if(!p.enabled||!b)return[];try{const v=await fetch(`${b}/api/auth/identities`,{credentials:"include"});return v.ok?(await v.json()).identities??[]:[]}catch{return[]}}async function d(p){const b=await e(),v=J0(b);if(!b.enabled||!v)return!1;try{return(await fetch(`${v}/api/auth/identities/remove`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({user_id:p})})).ok}catch{return!1}}async function f(){await fetch("/auth/logout",{method:"POST",credentials:"include"}).catch(()=>null),vs.value=null,n(),window.location.href="/login?logged_out=1"}async function h(){await fetch("/auth/logout",{method:"POST",credentials:"include"}).catch(()=>null),vs.value=null,n();const p=gs.value,b=J0(p);if(p!=null&&p.enabled&&b&&p.appId){const v=`${window.location.origin}/login?logged_out=1`,C=new URL("/api/auth/sso/end-session",b);C.searchParams.set("app_id",p.appId),C.searchParams.set("post_logout_redirect_uri",v),window.location.href=C.toString();return}window.location.href="/login?logged_out=1"}const m=U(()=>{var b;const p=(b=gs.value)==null?void 0:b.issuer;if(!p)return!1;try{const v=new URL(p).hostname;return v==="nubisco.io"||v.endsWith(".nubisco.io")}catch{return!1}});return{user:vs,config:gs,ready:uo,isNubiscoPlatform:m,loadConfig:e,checkAuth:r,startPlatformLogin:s,resumeLastAccount:a,switchAccount:l,addAccount:o,chooseAccount:c,listIdentities:u,removeIdentity:d,getLastAccount:t,clearLastAccount:n,logout:f,logoutEverywhere:h}}const sl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},QI=sl("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"/>'),eV=sl("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"/>'),va=sl("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"/>'),tV=sl("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"/>'),iV=sl("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"/>'),nV=sl("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"/>'),rV="puzzle-piece",Vb=Object.freeze(Object.defineProperty({__proto__:null,bold:tV,default:va,duotone:nV,fill:iV,glyphName:rV,light:eV,regular:va,thin:QI},Symbol.toStringTag,{value:"Module"})),al=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},sV=al("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"/>'),aV=al("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"/>'),Zp=al("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"/>'),lV=al("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"/>'),oV=al("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"/>'),cV=al("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"/>'),uV="floppy-disk",tu=Object.freeze(Object.defineProperty({__proto__:null,bold:lV,default:Zp,duotone:cV,fill:oV,glyphName:uV,light:aV,regular:Zp,thin:sV},Symbol.toStringTag,{value:"Module"})),ll=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},dV=ll("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"/>'),hV=ll("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"/>'),Bp=ll("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"/>'),fV=ll("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"/>'),pV=ll("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"/>'),_V=ll("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"/>'),mV="arrows-clockwise",Ps=Object.freeze(Object.defineProperty({__proto__:null,bold:fV,default:Bp,duotone:_V,fill:pV,glyphName:mV,light:hV,regular:Bp,thin:dV},Symbol.toStringTag,{value:"Module"})),ol=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},vV=ol("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"/>'),gV=ol("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"/>'),Fp=ol("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"/>'),bV=ol("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"/>'),yV=ol("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"/>'),wV=ol("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"/>'),SV="download",CV=Object.freeze(Object.defineProperty({__proto__:null,bold:bV,default:Fp,duotone:wV,fill:yV,glyphName:SV,light:gV,regular:Fp,thin:vV},Symbol.toStringTag,{value:"Module"})),cl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},kV=cl("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"/>'),AV=cl("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"/>'),zp=cl("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"/>'),$V=cl("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"/>'),MV=cl("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"/>'),LV=cl("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"/>'),EV="upload",xV=Object.freeze(Object.defineProperty({__proto__:null,bold:$V,default:zp,duotone:LV,fill:MV,glyphName:EV,light:AV,regular:zp,thin:kV},Symbol.toStringTag,{value:"Module"}));var ul={},HV=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Db={},rn={};let hf;const TV=[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];rn.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};rn.getSymbolTotalCodewords=function(t){return TV[t]};rn.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};rn.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');hf=t};rn.isKanjiModeEnabled=function(){return typeof hf<"u"};rn.toSJIS=function(t){return hf(t)};var Uu={};(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(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})(Uu);function Zb(){this.buffer=[],this.length=0}Zb.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 NV=Zb;function C0(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)}C0.prototype.set=function(e,t,i,n){const r=e*this.size+t;this.data[r]=i,n&&(this.reservedBit[r]=!0)};C0.prototype.get=function(e,t){return this.data[e*this.size+t]};C0.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};C0.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var PV=C0,Bb={};(function(e){const t=rn.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,s=t(n),a=s===145?26:Math.ceil((s-13)/(2*r-2))*2,l=[s-7];for(let o=1;o<r-1;o++)l[o]=l[o-1]-a;return l.push(6),l.reverse()},e.getPositions=function(n){const r=[],s=e.getRowColCoords(n),a=s.length;for(let l=0;l<a;l++)for(let o=0;o<a;o++)l===0&&o===0||l===0&&o===a-1||l===a-1&&o===0||r.push([s[l],s[o]]);return r}})(Bb);var Fb={};const OV=rn.getSymbolSize,Up=7;Fb.getPositions=function(t){const i=OV(t);return[[0,0],[i-Up,0],[0,i-Up]]};var zb={};(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(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const s=r.size;let a=0,l=0,o=0,c=null,u=null;for(let d=0;d<s;d++){l=o=0,c=u=null;for(let f=0;f<s;f++){let h=r.get(d,f);h===c?l++:(l>=5&&(a+=t.N1+(l-5)),c=h,l=1),h=r.get(f,d),h===u?o++:(o>=5&&(a+=t.N1+(o-5)),u=h,o=1)}l>=5&&(a+=t.N1+(l-5)),o>=5&&(a+=t.N1+(o-5))}return a},e.getPenaltyN2=function(r){const s=r.size;let a=0;for(let l=0;l<s-1;l++)for(let o=0;o<s-1;o++){const c=r.get(l,o)+r.get(l,o+1)+r.get(l+1,o)+r.get(l+1,o+1);(c===4||c===0)&&a++}return a*t.N2},e.getPenaltyN3=function(r){const s=r.size;let a=0,l=0,o=0;for(let c=0;c<s;c++){l=o=0;for(let u=0;u<s;u++)l=l<<1&2047|r.get(c,u),u>=10&&(l===1488||l===93)&&a++,o=o<<1&2047|r.get(u,c),u>=10&&(o===1488||o===93)&&a++}return a*t.N3},e.getPenaltyN4=function(r){let s=0;const a=r.data.length;for(let o=0;o<a;o++)s+=r.data[o];return Math.abs(Math.ceil(s*100/a/5)-10)*t.N4};function i(n,r,s){switch(n){case e.Patterns.PATTERN000:return(r+s)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return s%3===0;case e.Patterns.PATTERN011:return(r+s)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(s/3))%2===0;case e.Patterns.PATTERN101:return r*s%2+r*s%3===0;case e.Patterns.PATTERN110:return(r*s%2+r*s%3)%2===0;case e.Patterns.PATTERN111:return(r*s%3+(r+s)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(r,s){const a=s.size;for(let l=0;l<a;l++)for(let o=0;o<a;o++)s.isReserved(o,l)||s.xor(o,l,i(r,o,l))},e.getBestMask=function(r,s){const a=Object.keys(e.Patterns).length;let l=0,o=1/0;for(let c=0;c<a;c++){s(c),e.applyMask(c,r);const u=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(c,r),u<o&&(o=u,l=c)}return l}})(zb);var Wu={};const zr=Uu,Q0=[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],ec=[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];Wu.getBlocksCount=function(t,i){switch(i){case zr.L:return Q0[(t-1)*4+0];case zr.M:return Q0[(t-1)*4+1];case zr.Q:return Q0[(t-1)*4+2];case zr.H:return Q0[(t-1)*4+3];default:return}};Wu.getTotalCodewordsCount=function(t,i){switch(i){case zr.L:return ec[(t-1)*4+0];case zr.M:return ec[(t-1)*4+1];case zr.Q:return ec[(t-1)*4+2];case zr.H:return ec[(t-1)*4+3];default:return}};var Ub={},ju={};const Vo=new Uint8Array(512),iu=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)Vo[i]=t,iu[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)Vo[i]=Vo[i-255]})();ju.log=function(t){if(t<1)throw new Error("log("+t+")");return iu[t]};ju.exp=function(t){return Vo[t]};ju.mul=function(t,i){return t===0||i===0?0:Vo[iu[t]+iu[i]]};(function(e){const t=ju;e.mul=function(n,r){const s=new Uint8Array(n.length+r.length-1);for(let a=0;a<n.length;a++)for(let l=0;l<r.length;l++)s[a+l]^=t.mul(n[a],r[l]);return s},e.mod=function(n,r){let s=new Uint8Array(n);for(;s.length-r.length>=0;){const a=s[0];for(let o=0;o<r.length;o++)s[o]^=t.mul(r[o],a);let l=0;for(;l<s.length&&s[l]===0;)l++;s=s.slice(l)}return s},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let s=0;s<n;s++)r=e.mul(r,new Uint8Array([1,t.exp(s)]));return r}})(Ub);const Wb=Ub;function ff(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ff.prototype.initialize=function(t){this.degree=t,this.genPoly=Wb.generateECPolynomial(this.degree)};ff.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 n=Wb.mod(i,this.genPoly),r=this.degree-n.length;if(r>0){const s=new Uint8Array(this.degree);return s.set(n,r),s}return n};var RV=ff,jb={},us={},pf={};pf.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Qn={};const Kb="[0-9]+",IV="[A-Z $%*+\\-./:]+";let o0="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o0=o0.replace(/u/g,"\\u");const VV="(?:(?![A-Z0-9 $%*+\\-./:]|"+o0+`)(?:.|[\r
52
- ]))+`;Qn.KANJI=new RegExp(o0,"g");Qn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Qn.BYTE=new RegExp(VV,"g");Qn.NUMERIC=new RegExp(Kb,"g");Qn.ALPHANUMERIC=new RegExp(IV,"g");const DV=new RegExp("^"+o0+"$"),ZV=new RegExp("^"+Kb+"$"),BV=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Qn.testKanji=function(t){return DV.test(t)};Qn.testNumeric=function(t){return ZV.test(t)};Qn.testAlphanumeric=function(t){return BV.test(t)};(function(e){const t=pf,i=Qn;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(s,a){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?s.ccBits[0]:a<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return i.testNumeric(s)?e.NUMERIC:i.testAlphanumeric(s)?e.ALPHANUMERIC:i.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.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: "+r)}}e.from=function(s,a){if(e.isValid(s))return s;try{return n(s)}catch{return a}}})(us);(function(e){const t=rn,i=Wu,n=Uu,r=us,s=pf,a=7973,l=t.getBCHDigit(a);function o(f,h,m){for(let p=1;p<=40;p++)if(h<=e.getCapacity(p,m,f))return p}function c(f,h){return r.getCharCountIndicator(f,h)+4}function u(f,h){let m=0;return f.forEach(function(p){const b=c(p.mode,h);m+=b+p.getBitsLength()}),m}function d(f,h){for(let m=1;m<=40;m++)if(u(f,m)<=e.getCapacity(m,h,r.MIXED))return m}e.from=function(h,m){return s.isValid(h)?parseInt(h,10):m},e.getCapacity=function(h,m,p){if(!s.isValid(h))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=r.BYTE);const b=t.getSymbolTotalCodewords(h),v=i.getTotalCodewordsCount(h,m),C=(b-v)*8;if(p===r.MIXED)return C;const y=C-c(p,h);switch(p){case r.NUMERIC:return Math.floor(y/10*3);case r.ALPHANUMERIC:return Math.floor(y/11*2);case r.KANJI:return Math.floor(y/13);case r.BYTE:default:return Math.floor(y/8)}},e.getBestVersionForData=function(h,m){let p;const b=n.from(m,n.M);if(Array.isArray(h)){if(h.length>1)return d(h,b);if(h.length===0)return 1;p=h[0]}else p=h;return o(p.mode,p.getLength(),b)},e.getEncodedBits=function(h){if(!s.isValid(h)||h<7)throw new Error("Invalid QR Code version");let m=h<<12;for(;t.getBCHDigit(m)-l>=0;)m^=a<<t.getBCHDigit(m)-l;return h<<12|m}})(jb);var qb={};const ch=rn,Gb=1335,FV=21522,Wp=ch.getBCHDigit(Gb);qb.getEncodedBits=function(t,i){const n=t.bit<<3|i;let r=n<<10;for(;ch.getBCHDigit(r)-Wp>=0;)r^=Gb<<ch.getBCHDigit(r)-Wp;return(n<<10|r)^FV};var Yb={};const zV=us;function ga(e){this.mode=zV.NUMERIC,this.data=e.toString()}ga.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ga.prototype.getLength=function(){return this.data.length};ga.prototype.getBitsLength=function(){return ga.getBitsLength(this.data.length)};ga.prototype.write=function(t){let i,n,r;for(i=0;i+3<=this.data.length;i+=3)n=this.data.substr(i,3),r=parseInt(n,10),t.put(r,10);const s=this.data.length-i;s>0&&(n=this.data.substr(i),r=parseInt(n,10),t.put(r,s*3+1))};var UV=ga;const WV=us,O1=["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 ba(e){this.mode=WV.ALPHANUMERIC,this.data=e}ba.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ba.prototype.getLength=function(){return this.data.length};ba.prototype.getBitsLength=function(){return ba.getBitsLength(this.data.length)};ba.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let n=O1.indexOf(this.data[i])*45;n+=O1.indexOf(this.data[i+1]),t.put(n,11)}this.data.length%2&&t.put(O1.indexOf(this.data[i]),6)};var jV=ba;const KV=us;function ya(e){this.mode=KV.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}ya.getBitsLength=function(t){return t*8};ya.prototype.getLength=function(){return this.data.length};ya.prototype.getBitsLength=function(){return ya.getBitsLength(this.data.length)};ya.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var qV=ya;const GV=us,YV=rn;function wa(e){this.mode=GV.KANJI,this.data=e}wa.getBitsLength=function(t){return t*13};wa.prototype.getLength=function(){return this.data.length};wa.prototype.getBitsLength=function(){return wa.getBitsLength(this.data.length)};wa.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=YV.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]+`
53
- Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var XV=wa,Xb={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,n,r){var s={},a={};a[n]=0;var l=t.PriorityQueue.make();l.push(n,0);for(var o,c,u,d,f,h,m,p,b;!l.empty();){o=l.pop(),c=o.value,d=o.cost,f=i[c]||{};for(u in f)f.hasOwnProperty(u)&&(h=f[u],m=d+h,p=a[u],b=typeof a[u]>"u",(b||p>m)&&(a[u]=m,l.push(u,m),s[u]=c))}if(typeof r<"u"&&typeof a[r]>"u"){var v=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(v)}return s},extract_shortest_path_from_predecessor_list:function(i,n){for(var r=[],s=n;s;)r.push(s),i[s],s=i[s];return r.reverse(),r},find_path:function(i,n,r){var s=t.single_source_shortest_paths(i,n,r);return t.extract_shortest_path_from_predecessor_list(s,r)},PriorityQueue:{make:function(i){var n=t.PriorityQueue,r={},s;i=i||{};for(s in n)n.hasOwnProperty(s)&&(r[s]=n[s]);return r.queue=[],r.sorter=i.sorter||n.default_sorter,r},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var r={value:i,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Xb);var JV=Xb.exports;(function(e){const t=us,i=UV,n=jV,r=qV,s=XV,a=Qn,l=rn,o=JV;function c(v){return unescape(encodeURIComponent(v)).length}function u(v,C,y){const g=[];let L;for(;(L=v.exec(y))!==null;)g.push({data:L[0],index:L.index,mode:C,length:L[0].length});return g}function d(v){const C=u(a.NUMERIC,t.NUMERIC,v),y=u(a.ALPHANUMERIC,t.ALPHANUMERIC,v);let g,L;return l.isKanjiModeEnabled()?(g=u(a.BYTE,t.BYTE,v),L=u(a.KANJI,t.KANJI,v)):(g=u(a.BYTE_KANJI,t.BYTE,v),L=[]),C.concat(y,g,L).sort(function($,O){return $.index-O.index}).map(function($){return{data:$.data,mode:$.mode,length:$.length}})}function f(v,C){switch(C){case t.NUMERIC:return i.getBitsLength(v);case t.ALPHANUMERIC:return n.getBitsLength(v);case t.KANJI:return s.getBitsLength(v);case t.BYTE:return r.getBitsLength(v)}}function h(v){return v.reduce(function(C,y){const g=C.length-1>=0?C[C.length-1]:null;return g&&g.mode===y.mode?(C[C.length-1].data+=y.data,C):(C.push(y),C)},[])}function m(v){const C=[];for(let y=0;y<v.length;y++){const g=v[y];switch(g.mode){case t.NUMERIC:C.push([g,{data:g.data,mode:t.ALPHANUMERIC,length:g.length},{data:g.data,mode:t.BYTE,length:g.length}]);break;case t.ALPHANUMERIC:C.push([g,{data:g.data,mode:t.BYTE,length:g.length}]);break;case t.KANJI:C.push([g,{data:g.data,mode:t.BYTE,length:c(g.data)}]);break;case t.BYTE:C.push([{data:g.data,mode:t.BYTE,length:c(g.data)}])}}return C}function p(v,C){const y={},g={start:{}};let L=["start"];for(let x=0;x<v.length;x++){const $=v[x],O=[];for(let F=0;F<$.length;F++){const ie=$[F],B=""+x+F;O.push(B),y[B]={node:ie,lastCount:0},g[B]={};for(let A=0;A<L.length;A++){const H=L[A];y[H]&&y[H].node.mode===ie.mode?(g[H][B]=f(y[H].lastCount+ie.length,ie.mode)-f(y[H].lastCount,ie.mode),y[H].lastCount+=ie.length):(y[H]&&(y[H].lastCount=ie.length),g[H][B]=f(ie.length,ie.mode)+4+t.getCharCountIndicator(ie.mode,C))}}L=O}for(let x=0;x<L.length;x++)g[L[x]].end=0;return{map:g,table:y}}function b(v,C){let y;const g=t.getBestModeForData(v);if(y=t.from(C,g),y!==t.BYTE&&y.bit<g.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(y)+`.
54
- Suggested mode is: `+t.toString(g));switch(y===t.KANJI&&!l.isKanjiModeEnabled()&&(y=t.BYTE),y){case t.NUMERIC:return new i(v);case t.ALPHANUMERIC:return new n(v);case t.KANJI:return new s(v);case t.BYTE:return new r(v)}}e.fromArray=function(C){return C.reduce(function(y,g){return typeof g=="string"?y.push(b(g,null)):g.data&&y.push(b(g.data,g.mode)),y},[])},e.fromString=function(C,y){const g=d(C,l.isKanjiModeEnabled()),L=m(g),x=p(L,y),$=o.find_path(x.map,"start","end"),O=[];for(let F=1;F<$.length-1;F++)O.push(x.table[$[F]].node);return e.fromArray(h(O))},e.rawSplit=function(C){return e.fromArray(d(C,l.isKanjiModeEnabled()))}})(Yb);const Ku=rn,R1=Uu,QV=NV,eD=PV,tD=Bb,iD=Fb,uh=zb,dh=Wu,nD=RV,nu=jb,rD=qb,sD=us,I1=Yb;function aD(e,t){const i=e.size,n=iD.getPositions(t);for(let r=0;r<n.length;r++){const s=n[r][0],a=n[r][1];for(let l=-1;l<=7;l++)if(!(s+l<=-1||i<=s+l))for(let o=-1;o<=7;o++)a+o<=-1||i<=a+o||(l>=0&&l<=6&&(o===0||o===6)||o>=0&&o<=6&&(l===0||l===6)||l>=2&&l<=4&&o>=2&&o<=4?e.set(s+l,a+o,!0,!0):e.set(s+l,a+o,!1,!0))}}function lD(e){const t=e.size;for(let i=8;i<t-8;i++){const n=i%2===0;e.set(i,6,n,!0),e.set(6,i,n,!0)}}function oD(e,t){const i=tD.getPositions(t);for(let n=0;n<i.length;n++){const r=i[n][0],s=i[n][1];for(let a=-2;a<=2;a++)for(let l=-2;l<=2;l++)a===-2||a===2||l===-2||l===2||a===0&&l===0?e.set(r+a,s+l,!0,!0):e.set(r+a,s+l,!1,!0)}}function cD(e,t){const i=e.size,n=nu.getEncodedBits(t);let r,s,a;for(let l=0;l<18;l++)r=Math.floor(l/3),s=l%3+i-8-3,a=(n>>l&1)===1,e.set(r,s,a,!0),e.set(s,r,a,!0)}function V1(e,t,i){const n=e.size,r=rD.getEncodedBits(t,i);let s,a;for(s=0;s<15;s++)a=(r>>s&1)===1,s<6?e.set(s,8,a,!0):s<8?e.set(s+1,8,a,!0):e.set(n-15+s,8,a,!0),s<8?e.set(8,n-s-1,a,!0):s<9?e.set(8,15-s-1+1,a,!0):e.set(8,15-s-1,a,!0);e.set(n-8,8,1,!0)}function uD(e,t){const i=e.size;let n=-1,r=i-1,s=7,a=0;for(let l=i-1;l>0;l-=2)for(l===6&&l--;;){for(let o=0;o<2;o++)if(!e.isReserved(r,l-o)){let c=!1;a<t.length&&(c=(t[a]>>>s&1)===1),e.set(r,l-o,c),s--,s===-1&&(a++,s=7)}if(r+=n,r<0||i<=r){r-=n,n=-n;break}}}function dD(e,t,i){const n=new QV;i.forEach(function(o){n.put(o.mode.bit,4),n.put(o.getLength(),sD.getCharCountIndicator(o.mode,e)),o.write(n)});const r=Ku.getSymbolTotalCodewords(e),s=dh.getTotalCodewordsCount(e,t),a=(r-s)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const l=(a-n.getLengthInBits())/8;for(let o=0;o<l;o++)n.put(o%2?17:236,8);return hD(n,e,t)}function hD(e,t,i){const n=Ku.getSymbolTotalCodewords(t),r=dh.getTotalCodewordsCount(t,i),s=n-r,a=dh.getBlocksCount(t,i),l=n%a,o=a-l,c=Math.floor(n/a),u=Math.floor(s/a),d=u+1,f=c-u,h=new nD(f);let m=0;const p=new Array(a),b=new Array(a);let v=0;const C=new Uint8Array(e.buffer);for(let $=0;$<a;$++){const O=$<o?u:d;p[$]=C.slice(m,m+O),b[$]=h.encode(p[$]),m+=O,v=Math.max(v,O)}const y=new Uint8Array(n);let g=0,L,x;for(L=0;L<v;L++)for(x=0;x<a;x++)L<p[x].length&&(y[g++]=p[x][L]);for(L=0;L<f;L++)for(x=0;x<a;x++)y[g++]=b[x][L];return y}function fD(e,t,i,n){let r;if(Array.isArray(e))r=I1.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const u=I1.rawSplit(e);c=nu.getBestVersionForData(u,i)}r=I1.fromString(e,c||40)}else throw new Error("Invalid data");const s=nu.getBestVersionForData(r,i);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=s;else if(t<s)throw new Error(`
55
- The chosen QR Code version cannot contain this amount of data.
56
- Minimum version required to store current data is: `+s+`.
57
- `);const a=dD(t,i,r),l=Ku.getSymbolSize(t),o=new eD(l);return aD(o,t),lD(o),oD(o,t),V1(o,i,0),t>=7&&cD(o,t),uD(o,a),isNaN(n)&&(n=uh.getBestMask(o,V1.bind(null,o,i))),uh.applyMask(n,o),V1(o,i,n),{modules:o,version:t,errorCorrectionLevel:i,maskPattern:n,segments:r}}Db.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let n=R1.M,r,s;return typeof i<"u"&&(n=R1.from(i.errorCorrectionLevel,R1.M),r=nu.from(i.version),s=uh.from(i.maskPattern),i.toSJISFunc&&Ku.setToSJISFunction(i.toSJISFunc)),fD(t,r,n,s)};var Jb={},_f={};(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 n=i.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+i);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(s){return[s,s]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,s=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:s,scale:s?4:a,margin:r,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},e.getImageWidth=function(n,r){const s=e.getScale(n,r);return Math.floor((n+r.margin*2)*s)},e.qrToImageData=function(n,r,s){const a=r.modules.size,l=r.modules.data,o=e.getScale(a,s),c=Math.floor((a+s.margin*2)*o),u=s.margin*o,d=[s.color.light,s.color.dark];for(let f=0;f<c;f++)for(let h=0;h<c;h++){let m=(f*c+h)*4,p=s.color.light;if(f>=u&&h>=u&&f<c-u&&h<c-u){const b=Math.floor((f-u)/o),v=Math.floor((h-u)/o);p=d[l[b*a+v]?1:0]}n[m++]=p.r,n[m++]=p.g,n[m++]=p.b,n[m]=p.a}}})(_f);(function(e){const t=_f;function i(r,s,a){r.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=a,s.width=a,s.style.height=a+"px",s.style.width=a+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(s,a,l){let o=l,c=a;typeof o>"u"&&(!a||!a.getContext)&&(o=a,a=void 0),a||(c=n()),o=t.getOptions(o);const u=t.getImageWidth(s.modules.size,o),d=c.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,s,o),i(d,c,u),d.putImageData(f,0,0),c},e.renderToDataURL=function(s,a,l){let o=l;typeof o>"u"&&(!a||!a.getContext)&&(o=a,a=void 0),o||(o={});const c=e.render(s,a,o),u=o.type||"image/png",d=o.rendererOpts||{};return c.toDataURL(u,d.quality)}})(Jb);var Qb={};const pD=_f;function jp(e,t){const i=e.a/255,n=t+'="'+e.hex+'"';return i<1?n+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function D1(e,t,i){let n=e+t;return typeof i<"u"&&(n+=" "+i),n}function _D(e,t,i){let n="",r=0,s=!1,a=0;for(let l=0;l<e.length;l++){const o=Math.floor(l%t),c=Math.floor(l/t);!o&&!s&&(s=!0),e[l]?(a++,l>0&&o>0&&e[l-1]||(n+=s?D1("M",o+i,.5+c+i):D1("m",r,0),r=0,s=!1),o+1<t&&e[l+1]||(n+=D1("h",a),a=0)):r++}return n}Qb.render=function(t,i,n){const r=pD.getOptions(i),s=t.modules.size,a=t.modules.data,l=s+r.margin*2,o=r.color.light.a?"<path "+jp(r.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",c="<path "+jp(r.color.dark,"stroke")+' d="'+_D(a,s,r.margin)+'"/>',u='viewBox="0 0 '+l+" "+l+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+u+' shape-rendering="crispEdges">'+o+c+`</svg>
58
- `;return typeof n=="function"&&n(null,f),f};const mD=HV,hh=Db,e5=Jb,vD=Qb;function mf(e,t,i,n,r){const s=[].slice.call(arguments,1),a=s.length,l=typeof s[a-1]=="function";if(!l&&!mD())throw new Error("Callback required as last argument");if(l){if(a<2)throw new Error("Too few arguments provided");a===2?(r=i,i=t,t=n=void 0):a===3&&(t.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=i,i=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(i=t,t=n=void 0):a===2&&!t.getContext&&(n=i,i=t,t=void 0),new Promise(function(o,c){try{const u=hh.create(i,n);o(e(u,t,n))}catch(u){c(u)}})}try{const o=hh.create(i,n);r(null,e(o,t,n))}catch(o){r(o)}}ul.create=hh.create;ul.toCanvas=mf.bind(null,e5.render);ul.toDataURL=mf.bind(null,e5.renderToDataURL);ul.toString=mf.bind(null,function(e,t,i){return vD.render(e,i)});function Kp(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function gD(e){if(Array.isArray(e))return e}function bD(e,t,i){return(t=$D(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function yD(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n,r,s,a,l=[],o=!0,c=!1;try{if(s=(i=i.call(e)).next,t!==0)for(;!(o=(n=s.call(i)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(u){c=!0,r=u}finally{try{if(!o&&i.return!=null&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}function wD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qp(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function Gp(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?qp(Object(i),!0).forEach(function(n){bD(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):qp(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function SD(e,t){if(e==null)return{};var i,n,r=CD(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)i=s[n],t.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function CD(e,t){if(e==null)return{};var i={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;i[n]=e[n]}return i}function kD(e,t){return gD(e)||yD(e,t)||MD(e,t)||wD()}function AD(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $D(e){var t=AD(e,"string");return typeof t=="symbol"?t:t+""}function MD(e,t){if(e){if(typeof e=="string")return Kp(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)?Kp(e,t):void 0}}function LD(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Yp(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function Xp(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Yp(Object(i),!0).forEach(function(n){LD(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Yp(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function ED(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(n){return t.reduceRight(function(r,s){return s(r)},n)}}function wo(e){return function t(){for(var i=this,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return r.length>=e.length?e.apply(this,r):function(){for(var a=arguments.length,l=new Array(a),o=0;o<a;o++)l[o]=arguments[o];return t.apply(i,[].concat(r,l))}}}function ru(e){return{}.toString.call(e).includes("Object")}function xD(e){return!Object.keys(e).length}function c0(e){return typeof e=="function"}function HD(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function TD(e,t){return ru(t)||qr("changeType"),Object.keys(t).some(function(i){return!HD(e,i)})&&qr("changeField"),t}function ND(e){c0(e)||qr("selectorType")}function PD(e){c0(e)||ru(e)||qr("handlerType"),ru(e)&&Object.values(e).some(function(t){return!c0(t)})&&qr("handlersType")}function OD(e){e||qr("initialIsRequired"),ru(e)||qr("initialType"),xD(e)&&qr("initialContent")}function RD(e,t){throw new Error(e[t]||e.default)}var ID={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"},qr=wo(RD)(ID),tc={changes:TD,selector:ND,handler:PD,initial:OD};function VD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};tc.initial(e),tc.handler(t);var i={current:e},n=wo(BD)(i,t),r=wo(ZD)(i),s=wo(tc.changes)(e),a=wo(DD)(i);function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return tc.selector(c),c(i.current)}function o(c){ED(n,r,s,a)(c)}return[l,o]}function DD(e,t){return c0(t)?t(e.current):t}function ZD(e,t){return e.current=Xp(Xp({},e.current),t),t}function BD(e,t,i){return c0(t)?t(e.current):Object.keys(i).forEach(function(n){var r;return(r=t[n])===null||r===void 0?void 0:r.call(t,e.current[n])}),i}var FD={create:VD},zD={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function UD(e){return function t(){for(var i=this,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return r.length>=e.length?e.apply(this,r):function(){for(var a=arguments.length,l=new Array(a),o=0;o<a;o++)l[o]=arguments[o];return t.apply(i,[].concat(r,l))}}}function WD(e){return{}.toString.call(e).includes("Object")}function jD(e){return e||Jp("configIsRequired"),WD(e)||Jp("configType"),e.urls?(KD(),{paths:{vs:e.urls.monacoBase}}):e}function KD(){console.warn(t5.deprecation)}function qD(e,t){throw new Error(e[t]||e.default)}var t5={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!
60
- You are using deprecated way of configuration.
61
-
62
- Instead of using
63
- monaco.config({ urls: { monacoBase: '...' } })
64
- use
65
- monaco.config({ paths: { vs: '...' } })
66
-
67
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
68
- `},Jp=UD(qD)(t5),GD={config:jD},YD=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return function(r){return i.reduceRight(function(s,a){return a(s)},r)}};function i5(e,t){return Object.keys(t).forEach(function(i){t[i]instanceof Object&&e[i]&&Object.assign(t[i],i5(e[i],t[i]))}),Gp(Gp({},e),t)}var XD={type:"cancelation",msg:"operation is manually canceled"};function Z1(e){var t=!1,i=new Promise(function(n,r){e.then(function(s){return t?r(XD):n(s)}),e.catch(r)});return i.cancel=function(){return t=!0},i}var JD=["monaco"],QD=FD.create({config:zD,isInitialized:!1,resolve:null,reject:null,monaco:null}),n5=kD(QD,2),k0=n5[0],qu=n5[1];function eZ(e){var t=GD.config(e),i=t.monaco,n=SD(t,JD);qu(function(r){return{config:i5(r.config,n),monaco:i}})}function tZ(){var e=k0(function(t){var i=t.monaco,n=t.isInitialized,r=t.resolve;return{monaco:i,isInitialized:n,resolve:r}});if(!e.isInitialized){if(qu({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Z1(B1);if(window.monaco&&window.monaco.editor)return r5(window.monaco),e.resolve(window.monaco),Z1(B1);YD(iZ,rZ)(sZ)}return Z1(B1)}function iZ(e){return document.body.appendChild(e)}function nZ(e){var t=document.createElement("script");return e&&(t.src=e),t}function rZ(e){var t=k0(function(n){var r=n.config,s=n.reject;return{config:r,reject:s}}),i=nZ("".concat(t.config.paths.vs,"/loader.js"));return i.onload=function(){return e()},i.onerror=t.reject,i}function sZ(){var e=k0(function(i){var n=i.config,r=i.resolve,s=i.reject;return{config:n,resolve:r,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(i){var n=i.m||i;r5(n),e.resolve(n)},function(i){e.reject(i)})}function r5(e){k0().monaco||qu({monaco:e})}function aZ(){return k0(function(e){var t=e.monaco;return t})}var B1=new Promise(function(e,t){return qu({resolve:e,reject:t})}),s5={config:eZ,init:tZ,__getMonacoInstance:aZ};const lZ={key:0,class:"monaco-skeleton"},oZ=Pe({__name:"MonacoJsonEditor",props:{modelValue:{},height:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t,{resolved:r}=Ru(),s=G(null),a=Gn(null),l=G(!1);let o=!1;return at(async()=>{const c=await s5.init();s.value&&(Oe(r,u=>c.editor.setTheme(u==="dark"?"vs-dark":"vs")),a.value=c.editor.create(s.value,{value:i.modelValue,language:"json",theme:r.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(()=>{o||n("update:modelValue",a.value.getValue())}),l.value=!0)}),Ot(()=>{var c;(c=a.value)==null||c.dispose()}),Oe(()=>i.modelValue,c=>{if(!a.value)return;a.value.getValue()!==c&&(o=!0,a.value.setValue(c),o=!1)}),(c,u)=>(_(),M("div",{style:$t({height:`${e.height??220}px`,width:"100%",position:"relative"})},[w("div",{ref_key:"containerEl",ref:s,style:{height:"100%",width:"100%"}},null,512),l.value?R("",!0):(_(),M("div",lZ))],4))}}),Qp=Kt(oZ,[["__scopeId","data-v-0c34d464"]]),cZ={class:"pcf-root"},uZ={key:1,class:"pcf-no-schema"},dZ=Pe({__name:"PluginConfigForm",props:{hbSchema:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=e,n=t;function r(d,f){const h=JSON.parse(JSON.stringify(i.modelValue));let m=h;for(let p=0;p<d.length-1;p++)(m[d[p]]===void 0||typeof m[d[p]]!="object")&&(m[d[p]]={}),m=m[d[p]];m[d[d.length-1]]=f,n("update:modelValue",h)}function s(d){let f=i.modelValue;for(const h of d){if(f==null||typeof f!="object")return;f=f[h]}return f}function a(d){return Array.isArray(d.type)?d.type[0]:d.type??"string"}function l(d,f){const h=s(d)??[],m=f.default??(a(f)==="string"?"":a(f)==="number"?0:"");r(d,[...h,m])}function o(d,f){const h=[...s(d)??[]];h.splice(f,1),r(d,h)}function c(d,f,h){const m=[...s(d)??[]];m[f]=h,r(d,m)}const u=U(()=>i.hbSchema.schema??{type:"object",properties:{}});return(d,f)=>{const h=Wo("PluginConfigField");return _(),M("div",cZ,[u.value.properties?(_(!0),M(ye,{key:0},Be(u.value.properties,(m,p)=>{var b;return _(),oe(h,{key:p,"field-key":String(p),field:m,path:[String(p)],required:((b=u.value.required)==null?void 0:b.includes(String(p)))??!1,value:s([String(p)]),onChange:v=>r([String(p)],v),onAddArray:f[0]||(f[0]=(v,C)=>l(v,C)),onRemoveArray:f[1]||(f[1]=(v,C)=>o(v,C)),onUpdateArray:f[2]||(f[2]=(v,C,y)=>c(v,C,y))},null,8,["field-key","field","path","required","value","onChange"])}),128)):(_(),M("div",uZ,"No configurable fields found in schema."))])}}}),hZ=Kt(dZ,[["__scopeId","data-v-d9cf6b0f"]]),fZ={key:0,class:"inspector nb-inspector"},pZ={class:"inspector-header"},_Z={class:"inspector-title"},mZ={class:"inspector-name"},vZ={class:"inspector-version"},gZ={class:"inspector-body"},bZ={class:"field-value"},yZ={class:"field-value"},wZ={class:"hap-bridge-info"},SZ={class:"hap-qr"},CZ=["src"],kZ={class:"hap-details"},AZ={class:"field-value mono"},$Z={class:"field-value"},MZ={class:"field-value"},LZ={key:1,class:"visual-editor-wrap"},EZ={key:0,class:"json-error"},xZ={key:1,class:"json-error"},HZ={key:3,class:"save-error"},TZ={class:"setup-actions"},NZ={key:0,class:"json-error"},PZ={key:0,class:"save-error"},OZ={class:"setup-actions"},RZ={class:"import-export-row"},IZ={class:"plugin-device-name"},VZ={class:"plugin-device-type"},DZ={class:"field-value"},ZZ={class:"field-value"},BZ={class:"field-value"},FZ={class:"field-value"},zZ={class:"error-text"},UZ={class:"plog-time"},WZ={class:"plog-msg"},e_="openbridge.pluginInspector.sections",jZ=Pe({__name:"PluginInspector",setup(e){const t=kr(),i=G(!1),n=G("");async function r(){if(!i.value){i.value=!0;try{await Ze.daemon.restart();let P=0;const N=setInterval(async()=>{P++;try{await Ze.health(),clearInterval(N),location.reload()}catch{}P>60&&(clearInterval(N),i.value=!1)},1e3)}catch{i.value=!1}}}const s=nl(),a=[{id:"visual",label:"Visual",icon:"sliders"},{id:"json",label:"JSON",icon:"brackets-curly"}],l={status:"default",hap:"default",update:"default",manage:"collapsed",config:"default",transfer:"collapsed",devices:"default",manifest:"collapsed",error:"default",logs:"default"},o=G({...l});try{const P=JSON.parse(localStorage.getItem(e_)??"{}");o.value={...l,...P}}catch{}Oe(o,P=>localStorage.setItem(e_,JSON.stringify(P)),{deep:!0}),Oe(()=>{var P,N;return(N=(P=s.selectedPlugin)==null?void 0:P.hapBridge)==null?void 0:N.setupURI},async P=>{if(P)try{n.value=await ul.toDataURL(P,{width:160,margin:1})}catch{n.value=""}else n.value=""},{immediate:!0});const c=U(()=>{const P=s.selectedPlugin;return P!=null&&P.devices?Object.values(P.devices):[]}),u={switch:"plugs",light:"lamp",thermostat:"thermometer",dehumidifier:"drop",energy_meter:"lightning",gate:"garage",sensor:"pulse"};function d(P){return u[P]??"cube"}function f(P){return P==="running"?"green":P==="error"?"red":P==="loading"?"blue":"grey"}const h={idle:"Idle",loading:"Loading",running:"Running",stopped:"Stopped",error:"Error"},m=G(!1);async function p(){if(!(!s.selectedPlugin||m.value)){m.value=!0;try{await Ze.marketplace.update(s.selectedPlugin.manifest.name),await t.fetchPlugins(),await r()}catch(P){console.error("Failed to update plugin:",P)}finally{m.value=!1}}}const b=G(!1),v=G(!1);async function C(){if(!(!s.selectedPlugin||v.value)){v.value=!0;try{await Ze.marketplace.uninstall(s.selectedPlugin.manifest.name),await t.fetchPlugins(),s.close(),await Ze.daemon.restart()}catch(P){console.error("Failed to remove plugin:",P)}finally{v.value=!1,b.value=!1}}}const y=G(!1);async function g(){if(!s.selectedPlugin||y.value)return;const P=!s.selectedPlugin.disabled;y.value=!0;try{const N=await Ze.setPluginDisabled(s.selectedPlugin.id,P);s.selectedPlugin.disabled=N.disabled}catch(N){console.error("Failed to toggle plugin disabled state:",N)}finally{y.value=!1}}const L=G(null),x=G(!1),$=G(""),O=G(""),F=G(!1),ie=G(null),B=G(!1),A=G(null),H=G({}),I=G("visual"),D=U(()=>{var P;return((P=A.value)==null?void 0:P.schema)!=null}),q=U(()=>{var P;return((P=s.selectedPlugin)==null?void 0:P.source)==="homebridge"}),re=U(()=>s.selectedPlugin!=null&&s.selectedPlugin.source!=="homebridge"),ae=G(""),ge=G(!1),xe=G(null),J=G(!1),ve=U(()=>{try{return JSON.parse(ae.value),!0}catch{return!1}});Oe(()=>s.selectedPlugin,async P=>{if(ae.value="",xe.value=null,J.value=!1,!(!P||P.source==="homebridge"))try{const N=await Ze.config.getPlugin(P.manifest.name);ae.value=JSON.stringify(N.config??{},null,2)}catch{ae.value="{}"}});const fe=G(null);function he(){var P;(P=fe.value)==null||P.click()}function te(){if(!s.selectedPlugin)return;const P=s.selectedPlugin.manifest.name,N=q.value?O.value:ae.value;if(!N)return;const W=new Blob([N],{type:"application/json"}),ne=URL.createObjectURL(W),Se=document.createElement("a");Se.href=ne,Se.download=`${P.replace(/[^a-z0-9-]/gi,"-")}-config.json`,Se.click(),URL.revokeObjectURL(ne)}async function ue(P){var W;const N=(W=P.target.files)==null?void 0:W[0];if(!(!N||!s.selectedPlugin))try{const ne=await N.text(),Se=JSON.parse(ne);let Me;if(Se.platform&&typeof Se.platform=="string"){const{plugin:Re,...Ke}=Se;Me=Ke}else Me=Se;await Ze.config.savePlugin(s.selectedPlugin.manifest.name,Me),q.value?O.value=JSON.stringify(Me,null,2):ae.value=JSON.stringify(Me,null,2),fe.value&&(fe.value.value="")}catch(ne){console.error("Import failed:",ne)}}async function j(){if(ge.value||!s.selectedPlugin)return;let P;try{P=JSON.parse(ae.value)}catch{xe.value="Invalid JSON: fix the syntax first";return}ge.value=!0,xe.value=null,J.value=!1;try{await Ze.config.savePlugin(s.selectedPlugin.manifest.name,P),J.value=!0,setTimeout(()=>{J.value=!1},3e3)}catch(N){xe.value=String(N)}finally{ge.value=!1}}const K=U(()=>{const P=s.selectedPlugin;return!P||P.source!=="homebridge"?"":P.platformName??P.id??P.manifest.name});Oe(()=>s.selectedPlugin,async P=>{if(L.value=null,$.value="",O.value="",A.value=null,H.value={},ie.value=null,B.value=!1,!(!P||P.source!=="homebridge")){x.value=!0;try{const N=await Ze.config.getHbPlugin(K.value,P.packageName);if(N.config){$.value=K.value,O.value=JSON.stringify(N.config,null,2),H.value=N.config,await se(P.manifest.name);return}const W=await Ze.pluginInfo(P.packageName??P.manifest.name);L.value=W,W.platforms.length>0&&await Q(W.platforms[0],W.mainFile),await se(P.manifest.name)}catch{try{const N=await Ze.config.getHbPlugin(K.value,P.packageName);N.config&&($.value=K.value,O.value=JSON.stringify(N.config,null,2),H.value=N.config)}catch{}}finally{x.value=!1}}});async function se(P){try{const N=await fetch(`/api/marketplace/plugin-schema/${encodeURIComponent(P)}`);if(N.ok){const W=await N.json();A.value=W.schema}}catch{}}async function Q(P,N){var W,ne;$.value=P;try{const Se=await Ze.config.getPlatform(P),Me=Se.config?Se.config:{platform:P,plugin:N??((W=L.value)==null?void 0:W.mainFile)??""};O.value=JSON.stringify(Me,null,2),H.value=Me}catch{const Se={platform:P,plugin:N??((ne=L.value)==null?void 0:ne.mainFile)??""};O.value=JSON.stringify(Se,null,2),H.value=Se}}function S(P){H.value=P,O.value=JSON.stringify(P,null,2)}function T(P){O.value=P;try{H.value=JSON.parse(P)}catch{}}function V(){try{return JSON.parse(O.value)}catch{return null}}const ee=U(()=>V()!==null),de=U(()=>{const P=V();return P!==null&&typeof P.platform!="string"}),pe=G([]),we=G(null);let k=null;function E(){if(k&&(k.close(),k=null),!s.selectedPlugin)return;const P=location.protocol==="https:"?"wss:":"ws:";k=new WebSocket(`${P}//${location.host}/ws/logs`),k.onmessage=N=>{var W,ne;try{const Se=JSON.parse(N.data);(Se.plugin===((W=s.selectedPlugin)==null?void 0:W.id)||Se.plugin===((ne=s.selectedPlugin)==null?void 0:ne.manifest.name))&&(pe.value=[...pe.value.slice(-199),Se],setTimeout(()=>{we.value&&(we.value.scrollTop=we.value.scrollHeight)},10))}catch{}},k.onclose=()=>{s.selectedPlugin&&setTimeout(E,3e3)}}Oe(()=>s.selectedPlugin,async P=>{if(pe.value=[],k==null||k.close(),k=null,!!P){try{const N=await Ze.logs(P.manifest.name,100);pe.value=N.entries,setTimeout(()=>{we.value&&(we.value.scrollTop=we.value.scrollHeight)},20)}catch{}E()}}),at(()=>{s.selectedPlugin&&E()}),Ot(()=>{k==null||k.close()});const z={debug:"var(--nb-c-text-muted)",info:"var(--nb-c-info)",warn:"var(--nb-c-warning)",error:"var(--nb-c-danger)"};async function le(){if(F.value||!s.selectedPlugin)return;const P=V();if(!P){ie.value="Invalid JSON: fix the syntax first";return}F.value=!0,ie.value=null,B.value=!1;try{const N=s.selectedPlugin;N.source==="homebridge"?await Ze.config.saveHbPlugin(K.value,P,N.packageName):await Ze.config.savePlugin(N.manifest.name,P),B.value=!0,setTimeout(()=>{B.value=!1},3e3)}catch(N){ie.value=String(N)}finally{F.value=!1}}return(P,N)=>{const W=qe,ne=Jn,Se=Z2,Me=Ou,Re=sf,Ke=At,Ge=Cr,pt=pb,_t=rf;return _e(s).selectedPlugin?(_(),M("div",fZ,[w("div",pZ,[w("div",{class:Ee(["inspector-avatar",_e(s).selectedPlugin.status])},[Y(W,{name:_e(va),size:24},null,8,["name"])],2),w("div",_Z,[w("h2",mZ,Z(_e(s).selectedPlugin.manifest.name),1),w("span",vZ,"v"+Z(_e(s).selectedPlugin.manifest.version),1)])]),w("div",gZ,[Y(Re,{size:o.value.status,"onUpdate:size":N[0]||(N[0]=We=>o.value.status=We),title:"Status",fluid:""},{default:X(()=>[Y(Se,{label:"Status",control:"fit"},{default:X(()=>[Y(ne,{variant:f(_e(s).selectedPlugin.status)},{default:X(()=>[ce(Z(h[_e(s).selectedPlugin.status]),1)]),_:1},8,["variant"])]),_:1}),_e(s).selectedPlugin.startedAt?(_(),oe(Se,{key:0,label:"Started",control:"fit"},{default:X(()=>[w("span",bZ,Z(new Date(_e(s).selectedPlugin.startedAt).toLocaleString()),1)]),_:1})):R("",!0),_e(s).selectedPlugin.stoppedAt?(_(),oe(Se,{key:1,label:"Stopped",control:"fit"},{default:X(()=>[w("span",yZ,Z(new Date(_e(s).selectedPlugin.stoppedAt).toLocaleString()),1)]),_:1})):R("",!0),Y(Se,{label:"Disabled",control:"fit"},{default:X(()=>[Y(Me,{name:`plugin-disabled-${_e(s).selectedPlugin.id}`,"model-value":_e(s).selectedPlugin.disabled??!1,disabled:y.value,"onUpdate:modelValue":g},null,8,["name","model-value","disabled"])]),_:1})]),_:1},8,["size"]),_e(s).selectedPlugin.hapBridge?(_(),oe(Re,{key:0,size:o.value.hap,"onUpdate:size":N[1]||(N[1]=We=>o.value.hap=We),title:"HomeKit pairing",fluid:""},{default:X(()=>[w("div",wZ,[w("div",SZ,[n.value?(_(),M("img",{key:0,src:n.value,alt:"HomeKit QR Code",class:"hap-qr-img"},null,8,CZ)):R("",!0)]),w("div",kZ,[Y(Se,{label:"PIN",control:"fit"},{default:X(()=>[w("span",AZ,Z(_e(s).selectedPlugin.hapBridge.pincode),1)]),_:1}),Y(Se,{label:"Port",control:"fit"},{default:X(()=>[w("span",$Z,Z(_e(s).selectedPlugin.hapBridge.port),1)]),_:1}),Y(Se,{label:"Bridge",control:"fit"},{default:X(()=>[w("span",MZ,Z(_e(s).selectedPlugin.hapBridge.name),1)]),_:1})])]),N[16]||(N[16]=w("p",{class:"hap-hint"},"Scan with the Home app or enter the PIN manually to pair this plugin's devices.",-1))]),_:1},8,["size"])):R("",!0),_e(s).selectedPlugin.availableUpdate?(_(),oe(Re,{key:1,size:o.value.update,"onUpdate:size":N[2]||(N[2]=We=>o.value.update=We),title:"Update",fluid:""},{default:X(()=>[Y(Ge,{status:"info",icon:df,title:`Version ${_e(s).selectedPlugin.availableUpdate} is available`},{action:X(()=>[Y(Ke,{variant:"primary",size:"sm",loading:m.value,disabled:m.value,onClick:p},{default:X(()=>[ce(Z(m.value?"Updating...":"Update"),1)]),_:1},8,["loading","disabled"])]),default:X(()=>[ce(" Currently on "+Z(_e(s).selectedPlugin.manifest.version)+". ",1)]),_:1},8,["title"])]),_:1},8,["size"])):R("",!0),Y(Re,{size:o.value.manage,"onUpdate:size":N[5]||(N[5]=We=>o.value.manage=We),title:"Manage",fluid:""},{default:X(()=>[b.value?(_(),oe(Ge,{key:1,status:"error",title:"This uninstalls the plugin and removes its configuration"},{action:X(()=>[Y(Ke,{variant:"ghost",size:"sm",onClick:N[4]||(N[4]=We=>b.value=!1)},{default:X(()=>[...N[18]||(N[18]=[ce("Cancel",-1)])]),_:1}),Y(Ke,{variant:"danger",size:"sm",loading:v.value,onClick:C},{default:X(()=>[...N[19]||(N[19]=[ce("Remove",-1)])]),_:1},8,["loading"])]),default:X(()=>[N[20]||(N[20]=ce(" OpenBridge needs a restart afterwards. ",-1))]),_:1})):(_(),oe(Ke,{key:0,variant:"ghost",size:"sm",icon:af,style:{color:"var(--nb-c-danger)"},onClick:N[3]||(N[3]=We=>b.value=!0)},{default:X(()=>[...N[17]||(N[17]=[ce(" Remove plugin ",-1)])]),_:1}))]),_:1},8,["size"]),q.value?(_(),oe(Re,{key:2,size:o.value.config,"onUpdate:size":N[8]||(N[8]=We=>o.value.config=We),title:"Platform config",fluid:""},{default:X(()=>[x.value?(_(),oe(pt,{key:0,status:"active",label:"Loading config…"})):(_(),M(ye,{key:1},[L.value&&L.value.platforms.length>1?(_(),oe(_t,{key:0,"model-value":$.value,items:L.value.platforms.map(We=>({id:We,label:We})),"aria-label":"Platforms",size:"sm","onUpdate:modelValue":N[6]||(N[6]=We=>Q(We))},null,8,["model-value","items"])):L.value&&L.value.platforms.length===0?(_(),oe(Ge,{key:1,status:"warning",variant:"callout",title:"No platform detected"},{default:X(()=>[...N[21]||(N[21]=[ce(" Add a ",-1),w("code",null,"platforms[]",-1),ce(" entry manually in Config. ",-1)])]),_:1})):R("",!0),!L.value||L.value.platforms.length>0?(_(),M(ye,{key:2},[D.value?(_(),oe(_t,{key:0,"model-value":I.value,items:a,variant:"contained",size:"sm","onUpdate:modelValue":N[7]||(N[7]=We=>I.value=We)},null,8,["model-value"])):R("",!0),I.value==="visual"&&D.value?(_(),M("div",LZ,[Y(hZ,{"hb-schema":A.value,"model-value":H.value,"onUpdate:modelValue":S},null,8,["hb-schema","model-value"])])):R("",!0),I.value==="json"||!D.value?(_(),M("div",{key:2,class:Ee(["config-editor-wrap",{invalid:O.value&&!ee.value}])},[Y(Qp,{"model-value":O.value,height:220,"onUpdate:modelValue":T},null,8,["model-value"]),O.value&&!ee.value?(_(),M("div",EZ,"Invalid JSON")):de.value?(_(),M("div",xZ,'Missing "platform" field')):R("",!0)],2)):R("",!0),ie.value?(_(),M("div",HZ,[Y(W,{name:_e(Kr),size:13},null,8,["name"]),ce(" "+Z(ie.value),1)])):R("",!0),w("div",TZ,[Y(Ke,{variant:"primary",size:"sm",loading:F.value,disabled:F.value||!ee.value||de.value,icon:B.value?yr:tu,onClick:le},{default:X(()=>[ce(Z(B.value?"Saved!":"Save config"),1)]),_:1},8,["loading","disabled","icon"]),B.value?(_(),oe(Ke,{key:0,variant:"secondary",size:"sm",outlined:"",loading:i.value,icon:Ps,onClick:r},{default:X(()=>[ce(Z(i.value?"Restarting…":"Restart OpenBridge"),1)]),_:1},8,["loading"])):R("",!0)])],64)):R("",!0)],64))]),_:1},8,["size"])):R("",!0),re.value?(_(),oe(Re,{key:3,size:o.value.config,"onUpdate:size":N[10]||(N[10]=We=>o.value.config=We),title:"Plugin config",fluid:""},{default:X(()=>[w("div",{class:Ee(["config-editor-wrap",{invalid:ae.value&&!ve.value}])},[Y(Qp,{"model-value":ae.value,height:220,"onUpdate:modelValue":N[9]||(N[9]=We=>ae.value=We)},null,8,["model-value"]),ae.value&&!ve.value?(_(),M("div",NZ,"Invalid JSON")):R("",!0)],2),xe.value?(_(),M("div",PZ,[Y(W,{name:_e(Kr),size:13},null,8,["name"]),ce(" "+Z(xe.value),1)])):R("",!0),w("div",OZ,[Y(Ke,{variant:"primary",size:"sm",loading:ge.value,disabled:ge.value||!ve.value,icon:J.value?yr:tu,onClick:j},{default:X(()=>[ce(Z(J.value?"Saved!":"Save config"),1)]),_:1},8,["loading","disabled","icon"]),J.value?(_(),oe(Ke,{key:0,variant:"secondary",size:"sm",outlined:"",loading:i.value,icon:Ps,onClick:r},{default:X(()=>[ce(Z(i.value?"Restarting…":"Restart OpenBridge"),1)]),_:1},8,["loading"])):R("",!0)])]),_:1},8,["size"])):R("",!0),Y(Re,{size:o.value.transfer,"onUpdate:size":N[11]||(N[11]=We=>o.value.transfer=We),title:"Import & export",fluid:""},{default:X(()=>[w("div",RZ,[Y(Ke,{variant:"ghost",size:"sm",icon:CV,onClick:te},{default:X(()=>[...N[22]||(N[22]=[ce("Export config",-1)])]),_:1}),Y(Ke,{variant:"ghost",size:"sm",icon:xV,onClick:he},{default:X(()=>[...N[23]||(N[23]=[ce("Import config",-1)])]),_:1}),w("input",{ref_key:"importInput",ref:fe,type:"file",accept:".json",style:{display:"none"},onChange:ue},null,544)])]),_:1},8,["size"]),c.value.length>0?(_(),oe(Re,{key:4,size:o.value.devices,"onUpdate:size":N[12]||(N[12]=We=>o.value.devices=We),title:`Devices (${c.value.length})`,fluid:""},{default:X(()=>[(_(!0),M(ye,null,Be(c.value,We=>(_(),M("div",{key:We.id,class:"plugin-device-row"},[Y(W,{name:d(We.widgetType),size:14},null,8,["name"]),w("span",IZ,Z(We.name),1),w("span",VZ,Z(We.widgetType),1)]))),128))]),_:1},8,["size","title"])):R("",!0),Y(Re,{size:o.value.manifest,"onUpdate:size":N[13]||(N[13]=We=>o.value.manifest=We),title:"Manifest",fluid:""},{default:X(()=>[Y(Se,{label:"Name",control:"fit"},{default:X(()=>[w("span",DZ,Z(_e(s).selectedPlugin.manifest.name),1)]),_:1}),Y(Se,{label:"Version",control:"fit"},{default:X(()=>[w("span",ZZ,Z(_e(s).selectedPlugin.manifest.version),1)]),_:1}),_e(s).selectedPlugin.manifest.description?(_(),oe(Se,{key:0,label:"Description",control:"fit"},{default:X(()=>[w("span",BZ,Z(_e(s).selectedPlugin.manifest.description),1)]),_:1})):R("",!0),_e(s).selectedPlugin.manifest.author?(_(),oe(Se,{key:1,label:"Author",control:"fit"},{default:X(()=>[w("span",FZ,Z(_e(s).selectedPlugin.manifest.author),1)]),_:1})):R("",!0)]),_:1},8,["size"]),_e(s).selectedPlugin.error?(_(),oe(Re,{key:5,size:o.value.error,"onUpdate:size":N[14]||(N[14]=We=>o.value.error=We),title:"Error",fluid:""},{default:X(()=>[Y(Ge,{status:"error"},{default:X(()=>[w("code",zZ,Z(_e(s).selectedPlugin.error),1)]),_:1})]),_:1},8,["size"])):R("",!0),pe.value.length>0?(_(),oe(Re,{key:6,size:o.value.logs,"onUpdate:size":N[15]||(N[15]=We=>o.value.logs=We),title:"Recent logs",fluid:""},{default:X(()=>[w("div",{ref_key:"logsEl",ref:we,class:"plugin-log-terminal"},[(_(!0),M(ye,null,Be(pe.value,(We,Mt)=>(_(),M("div",{key:Mt,class:"plugin-log-line"},[w("span",UZ,Z(new Date(We.timestamp).toLocaleTimeString()),1),w("span",{class:"plog-level",style:$t({color:z[We.level]})},Z(We.level.toUpperCase()),5),w("span",WZ,Z(We.message),1)]))),128))],512)]),_:1},8,["size"])):R("",!0)])])):R("",!0)}}}),KZ=Kt(jZ,[["__scopeId","data-v-28a549b2"]]),qZ=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},t_=qZ("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"/>'),dl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},GZ=dl("diamond","0 0 256 256",'<path d="M232.5,119.55,136.45,23.49a12,12,0,0,0-16.9,0l-96,96.06a12,12,0,0,0,0,16.9l96.05,96.06a12,12,0,0,0,16.9,0l96.05-96.06a12,12,0,0,0,0-16.9Zm-5.66,11.24-96.05,96.06a4,4,0,0,1-5.58,0l-96-96.06a3.94,3.94,0,0,1,0-5.58l96.05-96.06a4,4,0,0,1,5.58,0l96.05,96.06a3.94,3.94,0,0,1,0,5.58Z"/>'),YZ=dl("diamond","0 0 256 256",'<path d="M233.92,118.14,137.86,22.08a14,14,0,0,0-19.72,0L22.08,118.14a14,14,0,0,0,0,19.72l96.06,96.06h0a14,14,0,0,0,19.72,0l96-96.06a13.94,13.94,0,0,0,0-19.72Zm-8.49,11.24-96.05,96.06a2,2,0,0,1-2.76,0L30.57,129.38a2,2,0,0,1,0-2.76l96.05-96.06a2,2,0,0,1,2.76,0l96.05,96.06a2,2,0,0,1,0,2.76Z"/>'),Os=dl("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"/>'),XZ=dl("diamond","0 0 256 256",'<path d="M238.16,113.89,142.1,17.83a20,20,0,0,0-28.21,0l-96,96.06a20,20,0,0,0,0,28.22l96.05,96.06h0a20,20,0,0,0,28.21,0l96-96.06a20,20,0,0,0,0-28.22ZM128,218.33,37.68,128,128,37.67,218.32,128Z"/>'),JZ=dl("diamond","0 0 256 256",'<path d="M240,128a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Z"/>'),QZ=dl("diamond","0 0 256 256",'<path d="M229.67,133.62l-96,96a7.94,7.94,0,0,1-11.24,0l-96-96a7.94,7.94,0,0,1,0-11.24l96.05-96a7.94,7.94,0,0,1,11.24,0l96,96.05A7.94,7.94,0,0,1,229.67,133.62Z" opacity="0.2"/><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"/>'),eB="diamond",tB=Object.freeze(Object.defineProperty({__proto__:null,bold:XZ,default:Os,duotone:QZ,fill:JZ,glyphName:eB,light:YZ,regular:Os,thin:GZ},Symbol.toStringTag,{value:"Module"})),hl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},iB=hl("folder","0 0 256 256",'<path d="M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"/>'),nB=hl("folder","0 0 256 256",'<path d="M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"/>'),i_=hl("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"/>'),rB=hl("folder","0 0 256 256",'<path d="M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"/>'),sB=hl("folder","0 0 256 256",'<path d="M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"/>'),aB=hl("folder","0 0 256 256",'<path d="M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z" opacity="0.2"/><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,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"/>'),lB="folder",oB=Object.freeze(Object.defineProperty({__proto__:null,bold:rB,default:i_,duotone:aB,fill:sB,glyphName:lB,light:nB,regular:i_,thin:iB},Symbol.toStringTag,{value:"Module"})),cB=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},uB=cB("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"/>'),dB=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},hB=dB("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"/>'),fB=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},a5=fB("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"/>'),pB={class:"mp-panel"},_B={class:"mp-header"},mB={class:"mp-search-wrap"},vB={key:0,class:"mp-count"},gB={key:3,class:"mp-local-section"},bB={class:"mp-local-heading"},yB={class:"mp-avatar mp-avatar--ob"},wB={class:"mp-info"},SB={class:"mp-name-row"},CB={class:"mp-name"},kB={class:"mp-ver"},AB={key:0,class:"mp-desc"},$B={class:"mp-meta"},MB={key:0},LB={class:"mp-action"},EB={class:"mp-list"},xB={key:0,class:"mp-loading"},HB=["src","alt"],TB={class:"mp-info"},NB={class:"mp-name-row"},PB={class:"mp-name"},OB={class:"mp-ver"},RB={key:0,class:"mp-desc"},IB={class:"mp-meta"},VB={key:0},DB={key:1,class:"mp-sep"},ZB={class:"mp-enriched"},BB={key:0,class:"mp-stat"},FB={key:1,class:"mp-stat"},zB=["href"],UB=["href"],WB=["href"],jB={class:"mp-action"},KB={key:1,class:"mp-load-more-wrap"},qB="https://marketplace.openbridge.nubisco.io",GB=20,YB="https://marketplace.openbridge.nubisco.io/api",XB=Pe({__name:"MarketplacePanel",setup(e){const t=kr(),i=Du(),n=G(null),r=G(""),s=G([]),a=G(0),l=G(!1),o=G(null),c=G(null),u=G(new Map),d=G(null),f=G(0),h=G([]);function m(B){return{name:B.name,version:B.version,description:B.description??"",author:B.author?{name:B.author}:void 0,date:B.last_published_at,weeklyDownloads:B.weekly_downloads,githubStars:B.github_stars??void 0,githubSponsorsUrl:B.github_sponsors_url??void 0,documentationUrl:B.homepage??void 0,links:{npm:B.npm_url,homepage:B.homepage??void 0,repository:B.repository_url??void 0}}}function p(B){return B?B>=1e6?`${(B/1e6).toFixed(1)}M`:B>=1e3?`${(B/1e3).toFixed(1)}K`:B.toString():"0"}async function b(B=!0){B&&(f.value=0,s.value=[]),l.value=!0,o.value=null;try{const A=f.value+1,H=new URLSearchParams({q:r.value,page:String(A),limit:String(GB)}),I=await fetch(`${YB}/plugins?${H}`);if(!I.ok)throw new Error(`Marketplace API error: ${I.status}`);const D=await I.json(),q=D.plugins.map(m);s.value=B?q:[...s.value,...q],a.value=D.total}catch(A){o.value=String(A)}finally{l.value=!1}}async function v(B){if(!c.value){c.value=B.name,o.value=null;try{const A=await Ze.marketplace.install(B.name);u.value.set(B.name,A.mainFile),d.value={name:B.name,mainFile:A.mainFile},await Ze.pluginsRefresh(),await t.fetchPlugins(),i.success(`Installed ${B.name}`)}catch(A){o.value=`Failed to install ${B.name}: ${A}`,i.error(`Failed to install ${B.name}`)}finally{c.value=null}}}async function C(B){if(!n.value){n.value=B,o.value=null;try{await Ze.marketplace.uninstall(B),u.value.delete(B),await t.fetchPlugins(),i.success(`Removed ${B}`)}catch(A){o.value=`Failed to uninstall ${B}: ${A}`,i.error(`Failed to remove ${B}`)}finally{n.value=null}}}async function y(B){if(!(c.value||!B.platform)){c.value=B.name,o.value=null;try{await Ze.config.savePlugin(B.name,{platform:B.platform}),u.value.set(B.name,`${B.path}/dist/index.js`),d.value={name:B.name,mainFile:`${B.path}/dist/index.js`},await t.fetchPlugins(),i.success(`Activated ${B.name}`)}catch(A){o.value=`Failed to activate ${B.name}: ${A}`,i.error(`Failed to activate ${B.name}`)}finally{c.value=null}}}function g(B){var I,D;const H=(((I=B.links)==null?void 0:I.repository)??((D=B.links)==null?void 0:D.homepage)??"").match(/github\.com\/([^/]+)/);return H?`https://github.com/${H[1]}.png?size=48`:null}function L(B){return B.name.includes("openbridge-")||Array.isArray(B.badges)&&B.badges.includes("openbridge-plugin")}function x(B){return B.author?typeof B.author=="string"?B.author:B.author.name??"":""}function $(B){const A=Math.floor((Date.now()-new Date(B).getTime())/864e5);return A===0?"today":A<30?`${A}d ago`:A<365?`${Math.floor(A/30)}mo ago`:`${Math.floor(A/365)}y ago`}function O(){f.value++,b(!1)}let F=null;function ie(){F&&clearTimeout(F),F=setTimeout(()=>b(),350)}return at(async()=>{try{const B=await Ze.marketplace.installed();for(const A of B.packages)u.value.set(A.name,A.mainFile)}catch{}try{const B=await Ze.marketplace.local();h.value=B.plugins}catch{}b()}),(B,A)=>{const H=qe,I=os,D=Cr,q=ct,re=Jn,ae=At,ge=Zs,xe=pb;return _(),M("div",pB,[w("div",_B,[A[4]||(A[4]=w("span",{class:"mp-title"},"Browse Plugins",-1)),w("a",{class:"mp-external",href:qB,target:"_blank",rel:"noopener noreferrer",title:"Open the full marketplace in a new tab"},[Y(H,{name:_e(t_),size:12},null,8,["name"]),A[3]||(A[3]=ce(" Marketplace ",-1))])]),w("div",mB,[Y(I,{modelValue:r.value,"onUpdate:modelValue":[A[0]||(A[0]=J=>r.value=J),ie],placeholder:"Search plugins",size:"sm"},null,8,["modelValue"])]),a.value>0?(_(),M("div",vB,Z(a.value.toLocaleString())+" plugins found",1)):R("",!0),d.value?(_(),oe(D,{key:1,status:"success",dismissible:"",class:"mp-installed-banner",title:`${d.value.name} installed`,onDismiss:A[1]||(A[1]=J=>d.value=null)},{default:X(()=>[...A[5]||(A[5]=[ce(" Click it in your plugins list to configure it. ",-1)])]),_:1},8,["title"])):R("",!0),o.value?(_(),oe(q,{key:2,variant:"error",class:"mp-error"},{default:X(()=>[ce(Z(o.value),1)]),_:1})):R("",!0),h.value.length>0?(_(),M("div",gB,[w("div",bB,[Y(H,{name:_e(Os),size:11},null,8,["name"]),A[6]||(A[6]=ce(" Local plugins ",-1))]),(_(!0),M(ye,null,Be(h.value,J=>(_(),oe(ge,{key:J.name,class:"mp-row mp-row--ob mp-row--local"},{default:X(()=>[w("div",yB,[Y(H,{name:_e(Os),size:16},null,8,["name"])]),w("div",wB,[w("div",SB,[w("span",CB,Z(J.name),1),Y(re,{variant:"primary",size:"sm",icon:tB},{default:X(()=>[...A[7]||(A[7]=[ce("Native",-1)])]),_:1}),Y(re,{variant:"blue",size:"sm",icon:oB},{default:X(()=>[...A[8]||(A[8]=[ce("Local",-1)])]),_:1}),w("span",kB,"v"+Z(J.version),1)]),J.description?(_(),M("p",AB,Z(J.description),1)):R("",!0),w("div",$B,[J.author?(_(),M("span",MB,Z(J.author),1)):R("",!0)])]),w("div",LB,[u.value.has(J.name)?(_(),oe(ae,{key:0,variant:"ghost",size:"sm",disabled:"",icon:yr},{default:X(()=>[...A[9]||(A[9]=[ce("Active",-1)])]),_:1})):(_(),oe(ae,{key:1,variant:"primary",size:"sm",loading:c.value===J.name,disabled:!!c.value||!J.platform,title:J.platform?"":"No platform declared in package.json openbridge.platform",onClick:ve=>y(J)},{default:X(()=>[...A[10]||(A[10]=[ce(" Activate ",-1)])]),_:1},8,["loading","disabled","title","onClick"]))])]),_:2},1024))),128))])):R("",!0),w("div",EB,[l.value&&s.value.length===0?(_(),M("div",xB,[Y(xe,{status:"active",label:"Searching npm…"})])):R("",!0),(_(!0),M(ye,null,Be(s.value,J=>(_(),oe(ge,{key:J.name,class:Ee(["mp-row",{"mp-row--ob":L(J)}])},{default:X(()=>[w("div",{class:Ee(["mp-avatar",{"mp-avatar--ob":L(J)}])},[g(J)?(_(),M("img",{key:0,src:g(J),alt:J.name,class:"mp-avatar-img",onError:A[2]||(A[2]=ve=>ve.target.style.display="none")},null,40,HB)):R("",!0),L(J)?(_(),oe(H,{key:1,name:_e(Os),size:16},null,8,["name"])):(_(),oe(H,{key:2,name:_e(va),size:16},null,8,["name"]))],2),w("div",TB,[w("div",NB,[w("span",PB,Z(J.name),1),w("span",OB,"v"+Z(J.version),1)]),J.description?(_(),M("p",RB,Z(J.description),1)):R("",!0),w("div",IB,[x(J)?(_(),M("span",VB,Z(x(J)),1)):R("",!0),x(J)?(_(),M("span",DB,"·")):R("",!0),w("span",null,Z($(J.date)),1)]),w("div",ZB,[J.weeklyDownloads?(_(),M("span",BB,[Y(H,{name:_e(uB),size:11},null,8,["name"]),ce(" "+Z(p(J.weeklyDownloads)),1)])):R("",!0),J.githubStars?(_(),M("span",FB,[Y(H,{name:_e(hB),weight:"fill",size:11},null,8,["name"]),ce(" "+Z(p(J.githubStars)),1)])):R("",!0),J.githubSponsorsUrl?(_(),M("a",{key:2,href:J.githubSponsorsUrl,target:"_blank",rel:"noopener",class:"mp-stat mp-stat--link"},[Y(H,{name:_e(uf),weight:"fill",size:11},null,8,["name"]),A[11]||(A[11]=ce(" Sponsor ",-1))],8,zB)):R("",!0),J.documentationUrl?(_(),M("a",{key:3,href:J.documentationUrl,target:"_blank",rel:"noopener",class:"mp-stat mp-stat--link"},[Y(H,{name:_e(a5),size:11},null,8,["name"]),A[12]||(A[12]=ce(" Docs ",-1))],8,UB)):R("",!0),w("a",{href:`https://marketplace.openbridge.nubisco.io/plugins/${J.name}`,target:"_blank",rel:"noopener",class:"mp-stat mp-stat--link mp-stat--marketplace"},[Y(H,{name:_e(t_),size:11},null,8,["name"]),A[13]||(A[13]=ce(" Marketplace ",-1))],8,WB)])]),w("div",jB,[u.value.has(J.name)?(_(),oe(ae,{key:0,variant:"danger",size:"sm",outlined:"",loading:n.value===J.name,disabled:!!n.value,onClick:ve=>C(J.name)},{default:X(()=>[...A[14]||(A[14]=[ce(" Remove ",-1)])]),_:1},8,["loading","disabled","onClick"])):(_(),oe(ae,{key:1,variant:"primary",size:"sm",loading:c.value===J.name,disabled:!!c.value,onClick:ve=>v(J)},{default:X(()=>[...A[15]||(A[15]=[ce(" Install ",-1)])]),_:1},8,["loading","disabled","onClick"]))])]),_:2},1032,["class"]))),128)),s.value.length>0&&s.value.length<a.value?(_(),M("div",KB,[Y(ae,{variant:"ghost",size:"sm",loading:l.value,disabled:l.value,onClick:O},{default:X(()=>[ce(Z(l.value?"Loading…":`Load more (${a.value-s.value.length} remaining)`),1)]),_:1},8,["loading","disabled"])])):R("",!0)])])}}}),JB=Kt(XB,[["__scopeId","data-v-6f0e70c0"]]),QB={key:0,class:"inspector-content nb-inspector"},eF={class:"detail-header"},tF={class:"detail-icon native-icon"},iF={style:{flex:"1","min-width":"0"}},nF={key:1,class:"rename-row"},rF={class:"detail-type"},sF={class:"info-grid"},aF={class:"info-val"},lF={class:"info-val"},oF={class:"info-val"},cF={class:"info-val"},uF={class:"info-val mono"},dF={key:0,class:"widget-energy"},hF={class:"energy-primary"},fF={class:"energy-value"},pF={class:"energy-secondary"},_F={key:0,class:"energy-item"},mF={class:"energy-item-val"},vF={key:1,class:"energy-item"},gF={class:"energy-item-val"},bF={key:1,class:"widget-thermo"},yF={class:"thermo-row"},wF={class:"thermo-value"},SF={class:"thermo-row"},CF={class:"thermo-value accent"},kF={class:"thermo-row"},AF={key:2,class:"widget-thermo"},$F={class:"thermo-row"},MF={class:"thermo-value"},LF={class:"thermo-row"},EF={class:"thermo-value accent"},xF={class:"thermo-row"},HF={key:3,class:"widget-generic"},TF={key:0,class:"no-telemetry"},NF={class:"char-name"},PF={class:"char-value"},OF={class:"event-list"},RF=["title"],IF={class:"event-body"},VF={class:"event-message"},DF={key:0,class:"event-source"},ZF={key:0,class:"history-nav"},BF={class:"history-nav-center"},FF={class:"history-total"},zF={class:"history-date"},UF={key:2,class:"no-history"},WF={key:3,class:"no-history"},jF={key:4,class:"no-history"},KF={class:"obs-help"},qF={class:"obs-form"},GF={class:"obs-verdicts"},YF={key:1,class:"obs-list"},XF={class:"obs-list-head"},JF={class:"obs-when"},QF={class:"obs-temp"},ez={key:0,class:"obs-note"},tz={class:"calibration-actions"},iz={class:"char-list"},nz={class:"char-name"},rz={class:"char-value"},sz={key:0,class:"homekit-notice"},az={class:"homekit-row"},lz={key:1,class:"homekit-notice"},oz={class:"detail-header"},cz={class:"detail-icon"},uz={style:{flex:"1","min-width":"0"}},dz={key:1,class:"rename-row"},hz={class:"detail-type"},fz={class:"info-grid"},pz={key:0,class:"info-key"},_z={key:1,class:"info-val"},mz={key:0,class:"homekit-row"},vz={key:1,class:"homekit-notice"},gz={class:"char-list"},bz={class:"char-name"},yz={class:"homekit-row"},wz={key:0,class:"homekit-notice"},Sz={class:"detail-uuid"},Cz=Pe({__name:"DeviceInspector",setup(e){const t=G(new Set),i=G(!1),n=G("");function r(be){return!t.value.has(be)}async function s(){try{const{hidden:be}=await Ze.homekitHidden();t.value=new Set(be)}catch{}}async function a(be,me){i.value=!0,n.value="";try{const Ve=await Ze.setHomekitVisibility(be,me),et=new Set(t.value);me?et.delete(be):et.add(be),t.value=et,Ve.applied||(n.value="Saved. This takes effect after the next OpenBridge restart.")}catch(Ve){n.value=`Could not change visibility: ${Ve.message}`}finally{i.value=!1}}const l=G({}),o=G([]),c=G(""),u=U(()=>[{value:"",label:"Default (as published)"},...o.value.map(be=>({value:be.key,label:be.label}))]);function d(be){return o.value.some(me=>me.serviceUuid===be)}function f(be,me){var Ve;return((Ve=l.value[be])==null?void 0:Ve[me])??""}const h=G(null);function m(be){return be.homekitType||be.widgetType}async function p(be){h.value=null;try{const{accessory:me}=await Ze.deviceAccessory(be);h.value=me}catch{}}async function b(){try{const{overrides:be,available:me}=await Ze.homekitServiceTypes();l.value=be,o.value=me}catch{}}async function v(be,me,Ve){i.value=!0,c.value="";try{await Ze.setHomekitServiceType(be,me,Ve||null);const et={...l.value},Ye={...et[be]??{}};Ve?Ye[me]=Ve:delete Ye[me],Object.keys(Ye).length>0?et[be]=Ye:delete et[be],l.value=et,c.value="Saved. This takes effect after the next OpenBridge restart."}catch(et){c.value=`Could not change type: ${et.message}`}finally{i.value=!1}}at(()=>{s(),b()});const C=nl(),y=lf(),g=G(""),L=G(""),x=G("success"),$=U(()=>{const be=C.selectedDevice;return!be||be.kind!=="native"?null:be.dev.health??null}),O=U(()=>{var me;const be=(me=$.value)==null?void 0:me.lastSeen;return be?`Not responding since ${new Date(be).toLocaleString()}`:"Not responding"}),F=[{id:"cold",label:"Too cold"},{id:"ok",label:"About right"},{id:"warm",label:"Too warm"}],ie=G(null),B=G("ok"),A=G(""),H=G(!1),I=G(""),D=G([]),q=G(0);async function re(){const be=C.selectedDevice;if(!be||be.kind!=="native"||!be.dev.observations){D.value=[],q.value=0;return}try{const me=await Ze.deviceObservations(be.dev.id,20);D.value=me.observations,q.value=me.total}catch{}}async function ae(){const be=C.selectedDevice;if(!(!be||be.kind!=="native"||ie.value===null)){H.value=!0,I.value="";try{await Ze.reportObservation(be.dev.id,{roomTemperature:ie.value,comfort:B.value,...A.value.trim()?{note:A.value.trim()}:{}}),A.value="",await re()}catch(me){I.value=me instanceof Error?me.message:String(me)}finally{H.value=!1}}}Oe(()=>C.selectedDevice,()=>{I.value="",A.value="",re()},{immediate:!0});const ge=U(()=>{const be=C.selectedDevice;return!be||be.kind!=="native"?[]:be.dev.actions??[]});async function xe(be){const me=C.selectedDevice;if(!(!me||me.kind!=="native")&&!(be.confirm&&!await y({title:be.label,subjectLabel:"Device",subject:me.dev.name,message:be.confirm,confirmLabel:be.label}))){g.value=be.id,L.value="";try{await Ze.controlDevice(me.dev.id,be.id,!0),x.value="success",L.value=`${be.label} sent.`}catch(Ve){x.value="error",L.value=`${be.label} failed: ${Ve.message}`}finally{g.value=""}}}const J=U(()=>C.selectedDevice),ve=U(()=>J.value?J.value.kind==="native"?J.value.dev.id:J.value.acc.uuid:null),fe={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 he(be){return fe[be]??{label:`Category ${be}`,icon:"cube"}}const te=new Set(["AccessoryInformation","0000003E-0000-1000-8000-0026BB765291","ProtocolInformation","000000A2-0000-1000-8000-0026BB765291"]);function ue(be){return be.services.filter(me=>!te.has(me.name)&&!te.has(me.uuid))}function j(be){return be.services.find(me=>te.has(me.name)||te.has(me.uuid))}function K(be){const me=j(be);if(!me)return null;const Ve=et=>{var Ye;return(Ye=me.characteristics.find(Si=>Si.name===et||Si.name.includes(et)))==null?void 0:Ye.value};return{manufacturer:Ve("Manufacturer")??Ve("Manuf"),model:Ve("Model"),serial:Ve("SerialNumber")??Ve("Serial"),firmware:Ve("FirmwareRevision")??Ve("Firmware")}}function se(be){return be.value===null||be.value===void 0?"—":be.format==="bool"?be.value?"On":"Off":typeof be.value=="number"?String(Math.round(be.value*100)/100):String(be.value)}function Q(be){return be.perms.includes("pw")}const S=G(!1),T=G("");function V(be){T.value=be,S.value=!0}async function ee(be){var me,Ve;if(T.value.trim())try{const et=T.value.trim();await Ze.renameDevice(be,et),S.value=!1,((me=J.value)==null?void 0:me.kind)==="native"?J.value.dev.name=et:((Ve=J.value)==null?void 0:Ve.kind)==="hap"&&(J.value.acc.displayName=et);const{useDaemonStore:Ye}=await pp(async()=>{const{useDaemonStore:xt}=await Promise.resolve().then(()=>Vp);return{useDaemonStore:xt}},void 0);await Ye().fetchAccessories()}catch(et){console.error("Rename failed:",et)}}async function de(be,me,Ve,et){try{await Ze.setCharacteristic(be,me,Ve,et);const{useDaemonStore:Ye}=await pp(async()=>{const{useDaemonStore:xt}=await Promise.resolve().then(()=>Vp);return{useDaemonStore:xt}},void 0);await Ye().fetchAccessories()}catch(Ye){console.error("Failed to set characteristic:",Ye)}}const pe=G([]);function we(be){const me=new Date(be);return Number.isNaN(me.getTime())?be:new Date().toDateString()===me.toDateString()?me.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"}):me.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}async function k(){const be=J.value;if((be==null?void 0:be.kind)!=="native"){pe.value=[];return}try{const me=await Ze.deviceEvents(be.dev.id,100);pe.value=me.events}catch{pe.value=[]}}const E={switch:"plugs",light:"lightbulb",thermostat:"thermometer",dehumidifier:"drop",energy_meter:"lightning",gate:"garage",sensor:"pulse",camera:"camera"},z={camera:"Camera",switch:"Switch",light:"Light",thermostat:"Thermostat",dehumidifier:"Dehumidifier",energy_meter:"Energy Meter",gate:"Gate",sensor:"Sensor"};function le(be){return E[be]??"cube"}function P(be){return z[be]??be}function N(be,me=1){if(be==null)return"—";const Ve=Number(be);return isFinite(Ve)?Ve.toFixed(me):String(be)}function W(be){return Object.entries(be.telemetry).filter(([me])=>!me.startsWith("_"))}const ne=G("day"),Se=[{id:"day",label:"Day"},{id:"month",label:"Month"},{id:"year",label:"Year"}],Me=G(new Date().toISOString().slice(0,10)),Re=G(null),Ke=G(!1);async function Ge(be){if(!Ke.value){Ke.value=!0;try{Re.value=await Ze.deviceHistory(be,ne.value,Me.value)}catch{}finally{Ke.value=!1}}}function pt(be){var Ve;const me=new Date(Me.value+(Me.value.length<=7?"-01":""));ne.value==="day"?(me.setDate(me.getDate()+be),Me.value=me.toISOString().slice(0,10)):ne.value==="month"?(me.setMonth(me.getMonth()+be),Me.value=me.toISOString().slice(0,7)):(me.setFullYear(me.getFullYear()+be),Me.value=String(me.getFullYear())),((Ve=J.value)==null?void 0:Ve.kind)==="native"&&Ge(J.value.dev.id)}Oe(ne,()=>{var me;const be=new Date;ne.value==="day"?Me.value=be.toISOString().slice(0,10):ne.value==="month"?Me.value=be.toISOString().slice(0,7):Me.value=String(be.getFullYear()),((me=J.value)==null?void 0:me.kind)==="native"&&J.value.dev.widgetType==="energy_meter"&&Ge(J.value.dev.id)}),Oe(ve,(be,me)=>{if(be===me&&Re.value)return;const Ve=J.value;(Ve==null?void 0:Ve.kind)==="native"?p(Ve.dev.id):h.value=null,k(),(Ve==null?void 0:Ve.kind)==="native"&&Ve.dev.widgetType==="energy_meter"&&(Me.value=new Date().toISOString().slice(0,10),ne.value="day",Ge(Ve.dev.id))},{immediate:!0});const _t=G([]),We=G([]),Mt=G(!1),Ce=G(!1),Te=G(!1),Fe=U(()=>JSON.stringify(_t.value)!==JSON.stringify(We.value)),st=U(()=>!J.value||J.value.kind!=="native"?null:J.value.dev);async function sn(be){const{plugins:me}=await Ze.plugins(),Ve=me.find(Ye=>Ye.id===be.pluginId);if(!Ve)return null;if(Ve.source!=="homebridge"){const{config:Ye}=await Ze.config.getPlugin(be.pluginId);return Ye?{pluginConfig:Ye,isNative:!0,pluginName:be.pluginId,platformName:void 0}:null}else{const Ye=Ve.platformName??be.pluginId,{config:Si}=await Ze.config.getPlatform(Ye);return Si?{pluginConfig:Si,isNative:!1,pluginName:be.pluginId,platformName:Ye}:null}}async function ds(){const be=st.value;if(be!=null&&be.interpolation){Mt.value=!0,Te.value=!1;try{const me=await sn(be);if(!me)return;const et=(me.pluginConfig.devices??[]).find(tr=>tr.id===be.id);if(!et)return;const Ye=be.interpolation,xt=(et[Ye.configField]??[]).map(tr=>({input:tr[Ye.configShape.inputKey]??0,output:tr[Ye.configShape.outputKey]??0}));_t.value=xt,We.value=JSON.parse(JSON.stringify(xt))}catch(me){console.error("Failed to load interpolation config:",me)}finally{Mt.value=!1}}}async function Mr(){const be=st.value;if(be!=null&&be.interpolation){Ce.value=!0,Te.value=!1;try{const me=await sn(be);if(!me)return;const Ve=be.interpolation,et=me.pluginConfig.devices??[],Ye=et.findIndex(xt=>xt.id===be.id);if(Ye<0)return;const Si=_t.value.map(xt=>({[Ve.configShape.inputKey]:xt.input,[Ve.configShape.outputKey]:xt.output}));et[Ye]={...et[Ye],[Ve.configField]:Si},me.pluginConfig.devices=et,me.isNative?await Ze.config.savePlugin(me.pluginName,me.pluginConfig):await Ze.config.savePlatform(me.pluginConfig),We.value=JSON.parse(JSON.stringify(_t.value)),Te.value=!0}catch(me){console.error("Failed to save interpolation config:",me)}finally{Ce.value=!1}}}function Lr(){_t.value=JSON.parse(JSON.stringify(We.value)),Te.value=!1}Oe(ve,(be,me)=>{var Ve;be===me&&We.value.length>0||(Te.value=!1,((Ve=J.value)==null?void 0:Ve.kind)==="native"&&J.value.dev.interpolation?ds():(_t.value=[],We.value=[]))},{immediate:!0});const er=U(()=>{var me;return(me=Re.value)!=null&&me.buckets?[{name:"kWh",data:Re.value.buckets.map(Ve=>{let et=Ve.label;return ne.value==="day"?et=parseInt(Ve.label)%6===0?Ve.label:"":ne.value==="month"&&(et=parseInt(Ve.label)%5===1?Ve.label:""),{x:et,y:Math.max(0,Math.round((Ve.kwh??0)*100)/100)}})}]:[]});return(be,me)=>{const Ve=qe,et=os,Ye=At,Si=Cr,xt=sf,tr=rf,E0=yM,hs=nf,Qu=ct,e1=Jn,t1=fT,Ql=Ia,ke=Ou,ze=Xn("nb-tooltip");return J.value?(_(),M("div",QB,[J.value.kind==="native"?(_(),M(ye,{key:0},[w("div",eF,[w("div",tF,[Y(Ve,{name:le(m(J.value.dev)),size:26},null,8,["name"])]),w("div",iF,[S.value?(_(),M("div",nF,[Y(et,{modelValue:T.value,"onUpdate:modelValue":me[1]||(me[1]=Ae=>T.value=Ae),size:"sm",onKeyup:[me[2]||(me[2]=Ri(Ae=>ee(J.value.dev.id),["enter"])),me[3]||(me[3]=Ri(Ae=>S.value=!1,["escape"]))]},null,8,["modelValue"]),Tt(Y(Ye,{variant:"primary",size:"sm",icon:yr,"aria-label":"Save name",onClick:me[4]||(me[4]=Ae=>ee(J.value.dev.id))},null,512),[[ze,{body:"Save name"}]]),Tt(Y(Ye,{variant:"ghost",size:"sm",icon:Wc,"aria-label":"Cancel rename",onClick:me[5]||(me[5]=Ae=>S.value=!1)},null,512),[[ze,{body:"Cancel rename"}]])])):(_(),M("h2",{key:0,class:"detail-name",title:"Click to rename",onClick:me[0]||(me[0]=Ae=>V(J.value.dev.name))},Z(J.value.dev.name),1)),w("div",rF,Z(P(m(J.value.dev))),1)])]),Y(xt,{title:"Device info",fluid:""},v0({default:X(()=>[$.value&&$.value.status==="stale"?(_(),oe(Si,{key:0,status:"warning",title:O.value,style:{"margin-bottom":"0.5rem"}},{default:X(()=>[ce(Z($.value.reason),1)]),_:1},8,["title"])):R("",!0),L.value?(_(),oe(Si,{key:1,status:x.value,title:L.value,style:{"margin-bottom":"0.5rem"}},null,8,["status","title"])):R("",!0),w("div",sF,[me[22]||(me[22]=w("span",{class:"info-key"},"Plugin",-1)),w("span",aF,Z(J.value.dev.pluginId),1),J.value.dev.manufacturer?(_(),M(ye,{key:0},[me[20]||(me[20]=w("span",{class:"info-key"},"Manufacturer",-1)),w("span",lF,Z(J.value.dev.manufacturer),1)],64)):R("",!0),J.value.dev.model?(_(),M(ye,{key:1},[me[21]||(me[21]=w("span",{class:"info-key"},"Model",-1)),w("span",oF,Z(J.value.dev.model),1)],64)):R("",!0),me[23]||(me[23]=w("span",{class:"info-key"},"Status",-1)),w("span",cF,Z(J.value.dev.pluginStatus),1),me[24]||(me[24]=w("span",{class:"info-key"},"ID",-1)),w("span",uF,Z(J.value.dev.id),1)])]),_:2},[ge.value.length>0?{name:"toolbar",fn:X(()=>[(_(!0),M(ye,null,Be(ge.value,Ae=>(_(),oe(Ye,{key:Ae.id,size:"xs",variant:Ae.danger?"danger":"ghost",disabled:g.value!=="",loading:g.value===Ae.id,onClick:tt=>xe(Ae)},{default:X(()=>[ce(Z(Ae.label),1)]),_:2},1032,["variant","disabled","loading","onClick"]))),128))]),key:"0"}:void 0]),1024),Y(xt,{title:"State",fluid:""},{default:X(()=>[J.value.dev.widgetType==="energy_meter"?(_(),M("div",dF,[w("div",hF,[w("span",fF,Z(N(J.value.dev.telemetry.power,1)),1),me[25]||(me[25]=w("span",{class:"energy-unit"},"W",-1))]),w("div",pF,[J.value.dev.telemetry.voltage!==void 0?(_(),M("span",_F,[me[26]||(me[26]=w("span",{class:"energy-label"},"Voltage",-1)),w("span",mF,Z(N(J.value.dev.telemetry.voltage,1))+" V",1)])):R("",!0),J.value.dev.telemetry.current!==void 0?(_(),M("span",vF,[me[27]||(me[27]=w("span",{class:"energy-label"},"Current",-1)),w("span",gF,Z(N(J.value.dev.telemetry.current,3))+" A",1)])):R("",!0)])])):J.value.dev.widgetType==="thermostat"?(_(),M("div",bF,[w("div",yF,[me[28]||(me[28]=w("span",{class:"thermo-label"},"Current",-1)),w("span",wF,Z(N(J.value.dev.telemetry.currentTemperature,1))+"°C",1)]),w("div",SF,[me[29]||(me[29]=w("span",{class:"thermo-label"},"Target",-1)),w("span",CF,Z(N(J.value.dev.telemetry.targetTemperature,1))+"°C ",1)]),w("div",kF,[me[30]||(me[30]=w("span",{class:"thermo-label"},"Active",-1)),w("span",{class:Ee(["thermo-value",J.value.dev.telemetry.active?"on":"off"])},Z(J.value.dev.telemetry.active?"On":"Off"),3)])])):J.value.dev.widgetType==="dehumidifier"?(_(),M("div",AF,[w("div",$F,[me[31]||(me[31]=w("span",{class:"thermo-label"},"Humidity",-1)),w("span",MF,Z(N(J.value.dev.telemetry.currentHumidity,0))+"%",1)]),w("div",LF,[me[32]||(me[32]=w("span",{class:"thermo-label"},"Target",-1)),w("span",EF,Z(N(J.value.dev.telemetry.targetHumidity,0))+"%",1)]),w("div",xF,[me[33]||(me[33]=w("span",{class:"thermo-label"},"Active",-1)),w("span",{class:Ee(["thermo-value",J.value.dev.telemetry.active?"on":"off"])},Z(J.value.dev.telemetry.active?"On":"Off"),3)])])):(_(),M("div",HF,[Object.keys(J.value.dev.telemetry).filter(Ae=>!Ae.startsWith("_")).length===0?(_(),M("span",TF,"No telemetry yet")):R("",!0),(_(!0),M(ye,null,Be(W(J.value.dev),([Ae,tt])=>(_(),M("div",{key:Ae,class:"char-row"},[w("span",NF,Z(Ae),1),w("span",PF,Z(String(tt)),1)]))),128))]))]),_:1}),pe.value.length>0?(_(),oe(xt,{key:0,title:"Recent activity",fluid:""},{default:X(()=>[w("ul",OF,[(_(!0),M(ye,null,Be(pe.value,(Ae,tt)=>(_(),M("li",{key:`${Ae.at}-${tt}`,class:"event"},[w("span",{class:"event-time",title:Ae.at},Z(we(Ae.at)),9,RF),w("span",IF,[w("span",VF,Z(Ae.message),1),Ae.source?(_(),M("span",DF,Z(Ae.source),1)):R("",!0)])]))),128))])]),_:1})):R("",!0),J.value.dev.widgetType==="energy_meter"?(_(),oe(xt,{key:1,title:"Energy history",class:"energy-history",fluid:""},{default:X(()=>[Y(tr,{"model-value":ne.value,items:Se,variant:"contained",size:"sm","full-width":"","aria-label":"Energy history period",class:"history-tabs","onUpdate:modelValue":me[6]||(me[6]=Ae=>ne.value=Ae)},null,8,["model-value"]),Re.value?(_(),M("div",ZF,[Tt(Y(Ye,{variant:"ghost",size:"xs",icon:$g,"aria-label":"Previous period",onClick:me[7]||(me[7]=Ae=>pt(-1))},null,512),[[ze,{body:"Previous period"}]]),w("div",BF,[w("span",FF,[ce(Z(Re.value.totalKwh.toFixed(2))+" ",1),me[34]||(me[34]=w("span",{class:"history-unit"},"kWh",-1))]),w("span",zF,Z(Re.value.date),1)]),Tt(Y(Ye,{variant:"ghost",size:"xs",icon:B2,"aria-label":"Next period",onClick:me[8]||(me[8]=Ae=>pt(1))},null,512),[[ze,{body:"Next period"}]])])):R("",!0),Re.value&&Re.value.totalKwh>0?(_(),oe(E0,{key:1,series:er.value,height:120,"show-legend":!1,"show-tooltip":!0},null,8,["series"])):R("",!0),Re.value&&Re.value.totalKwh===0?(_(),M("div",UF," No consumption recorded for this period. Data accumulates every 5 minutes. ")):R("",!0),!Re.value&&!Ke.value?(_(),M("div",WF,"No data available for this period.")):R("",!0),Ke.value?(_(),M("div",jF,"Loading history…")):R("",!0)]),_:1})):R("",!0),J.value.dev.observations?(_(),oe(xt,{key:2,title:"Report",fluid:""},{default:X(()=>[w("p",KF,Z(J.value.dev.observations.help??"Tell the plugin what this device cannot measure itself."),1),w("div",qF,[Y(hs,{modelValue:ie.value,"onUpdate:modelValue":me[9]||(me[9]=Ae=>ie.value=Ae),size:"sm",min:J.value.dev.observations.min,max:J.value.dev.observations.max,step:.5,label:`${J.value.dev.observations.label} (${J.value.dev.observations.unit})`},null,8,["modelValue","min","max","label"]),w("div",GF,[(_(),M(ye,null,Be(F,Ae=>Y(Ye,{key:Ae.id,size:"sm",variant:B.value===Ae.id?"primary":"ghost",onClick:tt=>B.value=Ae.id},{default:X(()=>[ce(Z(Ae.label),1)]),_:2},1032,["variant","onClick"])),64))]),Y(et,{modelValue:A.value,"onUpdate:modelValue":me[10]||(me[10]=Ae=>A.value=Ae),size:"sm",placeholder:"Anything worth noting (sunny, window open)"},null,8,["modelValue"]),Y(Ye,{size:"sm",variant:"primary",disabled:ie.value===null||H.value,onClick:ae},{default:X(()=>[...me[35]||(me[35]=[ce(" Save report ",-1)])]),_:1},8,["disabled"])]),I.value?(_(),oe(Qu,{key:0,variant:"error"},{default:X(()=>[ce(Z(I.value),1)]),_:1})):R("",!0),D.value.length>0?(_(),M("div",YF,[w("div",XF,Z(q.value)+" report"+Z(q.value===1?"":"s")+" so far",1),(_(!0),M(ye,null,Be(D.value,(Ae,tt)=>(_(),M("div",{key:tt,class:"obs-row"},[w("span",JF,Z(new Date(Ae.at).toLocaleString()),1),w("span",QF,Z(Ae.roomTemperature)+"°",1),Y(e1,{variant:Ae.comfort==="ok"?"green":Ae.comfort==="cold"?"blue":"orange",size:"sm"},{default:X(()=>[ce(Z(Ae.comfort),1)]),_:2},1032,["variant"]),Ae.note?(_(),M("span",ez,Z(Ae.note),1)):R("",!0)]))),128))])):R("",!0)]),_:1})):R("",!0),J.value.dev.interpolation&&_t.value.length>0?(_(),oe(xt,{key:3,title:"Calibration",fluid:""},{default:X(()=>[Y(t1,{modelValue:_t.value,"onUpdate:modelValue":me[11]||(me[11]=Ae=>_t.value=Ae),height:220,"input-label":J.value.dev.interpolation.inputLabel,"output-label":J.value.dev.interpolation.outputLabel,"input-min":J.value.dev.interpolation.inputMin,"input-max":J.value.dev.interpolation.inputMax,"output-min":J.value.dev.interpolation.outputMin,"output-max":J.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"]),me[38]||(me[38]=w("div",{class:"calibration-hint"},"Drag points to adjust. Double-click to add. Right-click to remove.",-1)),w("div",tz,[Y(Ye,{variant:"primary",size:"sm",disabled:!Fe.value||Ce.value,onClick:Mr},{default:X(()=>[ce(Z(Ce.value?"Saving...":"Save"),1)]),_:1},8,["disabled"]),Y(Ye,{variant:"ghost",size:"sm",disabled:!Fe.value,onClick:Lr},{default:X(()=>[...me[36]||(me[36]=[ce(" Reset ",-1)])]),_:1},8,["disabled"])]),Te.value?(_(),oe(Si,{key:0,status:"success",title:"Configuration saved"},{default:X(()=>[...me[37]||(me[37]=[ce(" Restart the plugin to apply the new mapping. ",-1)])]),_:1})):R("",!0)]),_:1})):J.value.dev.interpolation&&Mt.value?(_(),oe(xt,{key:4,title:"Calibration",fluid:""},{default:X(()=>[...me[39]||(me[39]=[w("div",{class:"no-history"},"Loading calibration data...",-1)])]),_:1})):R("",!0),W(J.value.dev).length>0?(_(),oe(xt,{key:5,title:"All telemetry",fluid:""},{default:X(()=>[w("div",iz,[(_(!0),M(ye,null,Be(W(J.value.dev),([Ae,tt])=>(_(),M("div",{key:Ae,class:"char-row"},[w("span",nz,Z(Ae),1),w("span",rz,Z(String(tt)),1)]))),128))])]),_:1})):R("",!0),h.value?(_(),oe(xt,{key:6,title:"HomeKit",fluid:""},{default:X(()=>[(_(!0),M(ye,null,Be(ue(h.value),Ae=>Tt((_(),M("div",{key:Ae.uuid,class:"homekit-row"},[me[40]||(me[40]=w("div",{class:"homekit-copy"},[w("span",{class:"homekit-title"},"Show in HomeKit as"),w("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)),Y(Ql,{"model-value":f(h.value.uuid,Ae.uuid),options:u.value,disabled:i.value,size:"sm","onUpdate:modelValue":tt=>v(h.value.uuid,Ae.uuid,String(tt))},null,8,["model-value","options","disabled","onUpdate:modelValue"])])),[[y2,d(Ae.uuid)]])),128)),c.value?(_(),M("div",sz,Z(c.value),1)):R("",!0),w("div",az,[me[41]||(me[41]=w("div",{class:"homekit-copy"},[w("span",{class:"homekit-title"},"Expose to HomeKit"),w("span",{class:"homekit-hint"}," Hide devices the Home app cannot represent usefully. OpenBridge keeps its telemetry and history either way. ")],-1)),Y(ke,{name:`homekit-visible-${h.value.uuid}`,"model-value":r(h.value.uuid),disabled:i.value,"onUpdate:modelValue":me[12]||(me[12]=Ae=>a(h.value.uuid,!!Ae))},null,8,["name","model-value","disabled"])]),n.value?(_(),M("div",lz,Z(n.value),1)):R("",!0)]),_:1})):R("",!0)],64)):J.value.kind==="hap"?(_(),M(ye,{key:1},[w("div",oz,[w("div",cz,[Y(Ve,{name:he(J.value.acc.category).icon,size:26},null,8,["name"])]),w("div",uz,[S.value?(_(),M("div",dz,[Y(et,{modelValue:T.value,"onUpdate:modelValue":me[14]||(me[14]=Ae=>T.value=Ae),size:"sm",onKeyup:[me[15]||(me[15]=Ri(Ae=>ee(J.value.acc.uuid),["enter"])),me[16]||(me[16]=Ri(Ae=>S.value=!1,["escape"]))]},null,8,["modelValue"]),Tt(Y(Ye,{variant:"primary",size:"sm",icon:yr,"aria-label":"Save name",onClick:me[17]||(me[17]=Ae=>ee(J.value.acc.uuid))},null,512),[[ze,{body:"Save name"}]]),Tt(Y(Ye,{variant:"ghost",size:"sm",icon:Wc,"aria-label":"Cancel rename",onClick:me[18]||(me[18]=Ae=>S.value=!1)},null,512),[[ze,{body:"Cancel rename"}]])])):(_(),M("h2",{key:0,class:"detail-name",title:"Click to rename",onClick:me[13]||(me[13]=Ae=>V(J.value.acc.displayName))},Z(J.value.acc.displayName),1)),w("div",hz,Z(he(J.value.acc.category).label),1)])]),K(J.value.acc)?(_(),oe(xt,{key:0,title:"Device info",fluid:""},{default:X(()=>[w("div",fz,[(_(!0),M(ye,null,Be(Object.entries(K(J.value.acc)),([Ae,tt])=>(_(),M(ye,{key:Ae},[tt?(_(),M("span",pz,Z(Ae),1)):R("",!0),tt?(_(),M("span",_z,Z(tt),1)):R("",!0)],64))),128))])]),_:1})):R("",!0),(_(!0),M(ye,null,Be(ue(J.value.acc),Ae=>(_(),oe(xt,{key:Ae.uuid,title:Ae.displayName||Ae.name,fluid:""},{default:X(()=>[d(Ae.uuid)?(_(),M("div",mz,[me[42]||(me[42]=w("div",{class:"homekit-copy"},[w("span",{class:"homekit-title"},"Show in HomeKit as"),w("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)),Y(Ql,{"model-value":f(J.value.acc.uuid,Ae.uuid),options:u.value,disabled:i.value,size:"sm","onUpdate:modelValue":tt=>v(J.value.acc.uuid,Ae.uuid,String(tt))},null,8,["model-value","options","disabled","onUpdate:modelValue"])])):R("",!0),c.value?(_(),M("div",vz,Z(c.value),1)):R("",!0),w("div",gz,[(_(!0),M(ye,null,Be(Ae.characteristics,tt=>(_(),M("div",{key:tt.uuid,class:"char-row"},[w("span",bz,Z(tt.name),1),Q(tt)&&tt.format==="bool"?(_(),oe(ke,{key:0,name:`hap-char-${Ae.uuid}-${tt.uuid}`,"model-value":!!tt.value,"onUpdate:modelValue":Ci=>de(J.value.acc.uuid,Ae.uuid,tt.uuid,Ci?1:0)},null,8,["name","model-value","onUpdate:modelValue"])):(_(),M("span",{key:1,class:Ee(["char-value",{on:tt.format==="bool"&&tt.value}])},Z(se(tt)),3))]))),128))])]),_:2},1032,["title"]))),128)),Y(xt,{title:"HomeKit",fluid:""},{default:X(()=>[w("div",yz,[me[43]||(me[43]=w("div",{class:"homekit-copy"},[w("span",{class:"homekit-title"},"Expose to HomeKit"),w("span",{class:"homekit-hint"}," Hide devices the Home app cannot represent usefully. OpenBridge keeps its telemetry and history either way. ")],-1)),Y(ke,{name:`homekit-visible-${J.value.acc.uuid}`,"model-value":r(J.value.acc.uuid),disabled:i.value,"onUpdate:modelValue":me[19]||(me[19]=Ae=>a(J.value.acc.uuid,!!Ae))},null,8,["name","model-value","disabled"])]),n.value?(_(),M("div",wz,Z(n.value),1)):R("",!0)]),_:1}),w("div",Sz,"UUID: "+Z(J.value.acc.uuid),1)],64)):R("",!0)])):R("",!0)}}}),kz=Kt(Cz,[["__scopeId","data-v-1db36740"]]),Az={class:"logs-filter"},$z={key:0,class:"log-empty"},Mz={class:"log-time"},Lz={class:"log-plugin"},Ez={class:"log-msg"},n_="openbridge.logs.panelSize",xz=Pe({__name:"LiveLogsPanel",setup(e){const t=kr(),i=["collapsed","default","full"],n=G("collapsed");at(()=>{const c=localStorage.getItem(n_);c&&i.includes(c)&&(n.value=c)}),Oe(n,c=>localStorage.setItem(n_,c));const r=G([]),s=G(null),a=U(()=>[{value:"system",label:"system"},...t.plugins.map(c=>({value:c.manifest.name,label:c.manifest.name}))]),l=U(()=>r.value.length===0?t.logs:t.logs.filter(c=>r.value.includes(c.plugin)));function o(){t.logs.length=0}return Oe(()=>l.value.length,async()=>{const c=s.value;!c||!(c.scrollHeight-c.scrollTop-c.clientHeight<40)||(await bt(),c.scrollTop=c.scrollHeight)}),(c,u)=>{const d=Ia,f=At,h=sf,m=Xn("nb-tooltip");return _(),oe(h,{size:n.value,"onUpdate:size":u[1]||(u[1]=p=>n.value=p),title:"Live Logs"},{toolbar:X(()=>[w("div",Az,[Y(d,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),multiple:"",options:a.value,placeholder:"All plugins",size:"xs"},null,8,["modelValue","options"])]),Tt(Y(f,{size:"xs",variant:"ghost",icon:af,"aria-label":"Clear logs",onClick:o},null,512),[[m,{body:"Clear logs"}]])]),default:X(()=>[w("div",{ref_key:"logsEl",ref:s,class:"log-list"},[l.value.length===0?(_(),M("div",$z,"No log entries yet.")):R("",!0),(_(!0),M(ye,null,Be(l.value,(p,b)=>(_(),M("div",{key:b,class:"log-line"},[w("span",Mz,Z(new Date(p.timestamp).toLocaleTimeString()),1),w("span",{class:Ee(["log-level",`log-level--${p.level}`])},Z(p.level.toUpperCase()),3),w("span",Lz,Z(p.plugin),1),w("span",Ez,Z(p.message),1)]))),128))],512)]),_:1},8,["size"])}}}),Hz=Kt(xz,[["__scopeId","data-v-2345aded"]]),fl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Tz=fl("bell-ringing","0 0 256 256",'<path d="M222.13,67.55a3.94,3.94,0,0,1-1.84.45,4,4,0,0,1-3.55-2.16,99.41,99.41,0,0,0-34.87-38.46,4,4,0,1,1,4.26-6.76,107.34,107.34,0,0,1,37.71,41.54A4,4,0,0,1,222.13,67.55ZM39.26,65.84A99.41,99.41,0,0,1,74.13,27.38a4,4,0,0,0-4.26-6.76A107.34,107.34,0,0,0,32.16,62.16a4,4,0,0,0,1.71,5.39,3.94,3.94,0,0,0,1.84.45A4,4,0,0,0,39.26,65.84ZM218.36,178A12,12,0,0,1,208,196H163.77a36,36,0,0,1-71.54,0H48A12,12,0,0,1,37.64,178C47.17,161.56,52,139.37,52,112a76,76,0,0,1,152,0C204,139.36,208.83,161.55,218.36,178ZM155.71,196H100.29a28,28,0,0,0,55.42,0Zm55.73-14C201.19,164.34,196,140.79,196,112a68,68,0,0,0-136,0c0,28.8-5.19,52.34-15.44,70a4,4,0,0,0,0,4A3.89,3.89,0,0,0,48,188H208a3.89,3.89,0,0,0,3.43-2A4,4,0,0,0,211.44,182Z"/>'),Nz=fl("bell-ringing","0 0 256 256",'<path d="M223.05,69.33A6,6,0,0,1,215,66.76,96,96,0,0,0,180.8,29.08a6,6,0,0,1,6.4-10.15,109.26,109.26,0,0,1,38.41,42.31A6,6,0,0,1,223.05,69.33ZM41,66.76A96,96,0,0,1,75.2,29.08a6,6,0,0,0-6.4-10.15A109.26,109.26,0,0,0,30.39,61.24,6,6,0,1,0,41,66.76Zm179,110.18A14,14,0,0,1,208,198h-42.5a38,38,0,0,1-75,0H48a14,14,0,0,1-12.06-21.06C45.13,161.09,50,138.63,50,112a78,78,0,0,1,156,0C206,139,210.74,160.86,220.08,176.94ZM153.29,198H102.71a26,26,0,0,0,50.58,0Zm56.42-15C199.29,165,194,141.15,194,112a66,66,0,0,0-132,0c0,29.16-5.29,53-15.71,71a2,2,0,0,0,0,2,1.9,1.9,0,0,0,1.7,1H208a1.9,1.9,0,0,0,1.7-1A2,2,0,0,0,209.71,183Z"/>'),r_=fl("bell-ringing","0 0 256 256",'<path d="M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"/>'),Pz=fl("bell-ringing","0 0 256 256",'<path d="M225.81,74.65A11.86,11.86,0,0,1,220.3,76a12,12,0,0,1-10.67-6.47,90.1,90.1,0,0,0-32-35.38,12,12,0,1,1,12.8-20.29,115.25,115.25,0,0,1,40.54,44.62A12,12,0,0,1,225.81,74.65ZM46.37,69.53a90.1,90.1,0,0,1,32-35.38A12,12,0,1,0,65.6,13.86,115.25,115.25,0,0,0,25.06,58.48a12,12,0,0,0,5.13,16.17A11.86,11.86,0,0,0,35.7,76,12,12,0,0,0,46.37,69.53Zm173.51,98.35A20,20,0,0,1,204,200H171.81a44,44,0,0,1-87.62,0H52a20,20,0,0,1-15.91-32.12c7.17-9.33,15.73-26.62,15.88-55.94A76,76,0,0,1,204,112C204.15,141.26,212.71,158.55,219.88,167.88ZM147.6,200H108.4a20,20,0,0,0,39.2,0Zm48.74-24c-8.16-13-16.19-33.57-16.34-63.94A52,52,0,1,0,76,112c-.15,30.42-8.18,51-16.34,64Z"/>'),Oz=fl("bell-ringing","0 0 256 256",'<path d="M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0Z"/>'),Rz=fl("bell-ringing","0 0 256 256",'<path d="M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,147.81,56,112a72,72,0,0,1,144,0c0,35.82,8.3,56.6,14.9,68A8,8,0,0,1,208,192Z" opacity="0.2"/><path d="M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"/>'),Iz="bell-ringing",l5=Object.freeze(Object.defineProperty({__proto__:null,bold:Pz,default:r_,duotone:Rz,fill:Oz,glyphName:Iz,light:Nz,regular:r_,thin:Tz},Symbol.toStringTag,{value:"Module"})),pl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Vz=pl("sliders-horizontal","0 0 256 256",'<path d="M40,84H76.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8H131.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8Zm64-24A20,20,0,1,1,84,80,20,20,0,0,1,104,60ZM216,172H195.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8H140.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8Zm-48,24a20,20,0,1,1,20-20A20,20,0,0,1,168,196Z"/>'),Dz=pl("sliders-horizontal","0 0 256 256",'<path d="M40,86H74.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12H133.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12Zm64-24A18,18,0,1,1,86,80,18,18,0,0,1,104,62ZM216,170H197.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12h98.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12Zm-48,24a18,18,0,1,1,18-18A18,18,0,0,1,168,194Z"/>'),s_=pl("sliders-horizontal","0 0 256 256",'<path d="M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"/>'),Zz=pl("sliders-horizontal","0 0 256 256",'<path d="M40,92H70.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24H137.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24Zm64-24A12,12,0,1,1,92,80,12,12,0,0,1,104,68Zm112,96H201.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24h94.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24Zm-48,24a12,12,0,1,1,12-12A12,12,0,0,1,168,188Z"/>'),Bz=pl("sliders-horizontal","0 0 256 256",'<path d="M32,80a8,8,0,0,1,8-8H77.17a28,28,0,0,1,53.66,0H216a8,8,0,0,1,0,16H130.83a28,28,0,0,1-53.66,0H40A8,8,0,0,1,32,80Zm184,88H194.83a28,28,0,0,0-53.66,0H40a8,8,0,0,0,0,16H141.17a28,28,0,0,0,53.66,0H216a8,8,0,0,0,0-16Z"/>'),Fz=pl("sliders-horizontal","0 0 256 256",'<path d="M128,80a24,24,0,1,1-24-24A24,24,0,0,1,128,80Zm40,72a24,24,0,1,0,24,24A24,24,0,0,0,168,152Z" opacity="0.2"/><path d="M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"/>'),zz="sliders-horizontal",Uz=Object.freeze(Object.defineProperty({__proto__:null,bold:Zz,default:s_,duotone:Fz,fill:Bz,glyphName:zz,light:Dz,regular:s_,thin:Vz},Symbol.toStringTag,{value:"Module"}));function Wz(e){return e.kind==="device.offline"||e.kind==="device.online"?e.body||"A device changed state":e.kind==="plugin.failed"?"A plugin needs attention":"An update is available"}const F1=new Set,o5=Mu("notifications",()=>{const e=G([]),t=G(0);let i=!1,n=null;const r=U(()=>t.value);async function s(){const y=await St("/notifications?limit=50").catch(()=>null);if(!y)return!1;const g=!i;i=!0,e.value=y.notifications;const L=y.notifications.filter(x=>!x.read).length;t.value=typeof y.unread=="number"?Math.max(y.unread,L):L;for(const x of y.notifications)x.read||F1.has(x.id)||(F1.add(x.id),g||c(x));return!0}async function a(y){try{const g=await fetch("/api/notifications/read",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(y?{ids:y}:{})});if(g.ok){const L=await g.json();typeof L.unread=="number"&&(t.value=L.unread)}}catch{}}async function l(y){e.value.some(g=>g.id===y&&!g.read)&&(t.value=Math.max(0,t.value-1)),e.value=e.value.map(g=>g.id===y?{...g,read:!0}:g),await a([y])}async function o(){e.value=e.value.map(y=>({...y,read:!0})),t.value=0,await a()}function c(y){if(typeof Notification>"u"||Notification.permission!=="granted")return;const g=new Notification(y.title,{body:Wz(y),tag:y.target&&"id"in y.target?`${y.target.kind}:${y.target.id}`:y.id,icon:"/logo.svg"});g.onclick=async()=>{window.focus(),g.close(),await l(y.id),n==null||n(y)}}async function u(){return typeof Notification>"u"?"unsupported":Notification.permission!=="default"?Notification.permission:Notification.requestPermission()}function d(y){n=y}let f=null,h=!1,m=null;function p(){m&&clearTimeout(m),m=setTimeout(()=>{m=null,s()},300)}function b(){if(h=!0,f)return;const y=location.protocol==="https:"?"wss:":"ws:",g=new WebSocket(`${y}//${location.host}/ws/notifications`);f=g,g.onmessage=()=>p(),g.onopen=()=>p(),g.onclose=()=>{f===g&&(f=null),h&&setTimeout(b,3e3)}}function v(){h=!1,f==null||f.close(),f=null}function C(){e.value=[],t.value=0,i=!1,F1.clear()}return{items:e,unread:r,load:s,markRead:l,markAllRead:o,enableDesktopNotifications:u,setOpener:d,connect:b,disconnect:v,reset:C}}),jz={class:"notify"},Kz=Pe({__name:"NotificationSettingsModal",props:{open:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const i=e,n=t,r=o5();function s(){return typeof Notification>"u"?"unsupported":Notification.permission}const a=G(s());Oe(()=>i.open,o=>{o&&(a.value=s())});async function l(){a.value=await r.enableDesktopNotifications()}return(o,c)=>{const u=At,d=Cr,f=ef;return _(),oe(f,{"close-appearance":"button",open:e.open,title:"Notifications",size:"sm",onClose:c[0]||(c[0]=h=>n("close"))},{default:X(()=>[w("div",jz,[c[5]||(c[5]=w("p",{class:"notify__lede"}," The bell tells you when a device has not answered for ten minutes, when it comes back, when a plugin fails, and when an update is out. Nothing is sent by email. ",-1)),c[6]||(c[6]=w("h3",{class:"notify__heading"},"This device",-1)),c[7]||(c[7]=w("p",{class:"notify__lede"}," A desktop notification arrives the moment something happens, while OpenBridge is open in a tab. It is per browser, so allowing it here says nothing about your phone. ",-1)),a.value==="default"?(_(),oe(u,{key:0,size:"sm",variant:"secondary",icon:Zu,onClick:l},{default:X(()=>[...c[1]||(c[1]=[ce(" Allow notifications on this device ",-1)])]),_:1})):a.value==="granted"?(_(),oe(d,{key:1,status:"success",variant:"callout"},{default:X(()=>[...c[2]||(c[2]=[ce(" Allowed on this device. ",-1)])]),_:1})):a.value==="denied"?(_(),oe(d,{key:2,status:"info",variant:"callout"},{default:X(()=>[...c[3]||(c[3]=[ce(" Blocked on this device. Browsers only ask once, so turning it back on means changing the site permission in the address bar. ",-1)])]),_:1})):(_(),oe(d,{key:3,status:"info",variant:"callout"},{default:X(()=>[...c[4]||(c[4]=[ce(" This browser does not support desktop notifications, or only allows them on a secure (https) address. ",-1)])]),_:1}))])]),_:1},8,["open"])}}}),qz=Kt(Kz,[["__scopeId","data-v-4a7233de"]]),Gz=Pe({__name:"NotificationBell",setup(e){const t=o5(),i=kr(),n=nl(),r=w0(),s=rl(),a=G(!1),l=G(!1),o=G(!1),c=G(!1);async function u(){l.value=t.items.length===0,o.value=!1;try{o.value=!await t.load()}finally{l.value=!1}}async function d(m){t.markRead(m.id),await f(m)}async function f(m){const p=m.target;if(!p)return;if(p.kind==="device"){await r.push(`/devices/${encodeURIComponent(p.id)}`);return}if(p.kind==="settings"){await r.push("/settings");return}if(p.kind==="config"){await r.push("/config");return}r.currentRoute.value.name!=="plugins"&&(await r.push("/plugins"),await bt());let b=i.plugins.find(v=>v.id===p.id);b||(await i.fetchPlugins(),b=i.plugins.find(v=>v.id===p.id)),b&&n.openPlugin(b)}function h(){a.value=!1,c.value=!0}return Oe(()=>{var m;return(m=s.user.value)==null?void 0:m.id},(m,p)=>{m!==p&&(t.reset(),u())}),at(()=>{t.setOpener(m=>void f(m)),u(),t.connect()}),Ei(()=>{t.setOpener(null),t.disconnect()}),(m,p)=>{const b=nb,v=rb,C=At,y=_b,g=dO,L=Xn("nb-tooltip");return _(),M(ye,null,[Y(g,{open:a.value,"onUpdate:open":p[0]||(p[0]=x=>a.value=x),label:"Notifications","unread-count":_e(t).unread,"item-count":_e(t).items.length,loading:l.value,error:o.value,"error-title":"Could not load notifications","error-description":"The list below may be out of date.","empty-title":"Nothing to report","empty-description":"You hear here when a device stops answering, a plugin fails, or an update is out.",width:360,side:"right",align:"end","close-on-select":"","close-on-navigate":"",onMarkAllRead:p[1]||(p[1]=x=>_e(t).markAllRead()),onRetry:u},{trigger:X(({triggerProps:x,setTriggerRef:$,toggle:O})=>[Y(v,null,{default:X(()=>[Y(b,Lt({ref:$},x,{label:"Notifications",icon:_e(t).unread>0?l5:Zu,active:a.value,badge:_e(t).unread>0?_e(t).unread:void 0,"badge-variant":"danger",onClick:O}),null,16,["icon","active","badge","onClick"])]),_:2},1024)]),"header-actions":X(({markAllProps:x,markAllText:$})=>[Tt(Y(C,{size:"xs",variant:"ghost",icon:Uz,"aria-label":"Notification settings",onClick:h},null,512),[[L,{body:"Notification settings"}]]),_e(t).unread>0?(_(),oe(C,Lt({key:0,size:"xs",variant:"ghost",outlined:""},x),{default:X(()=>[ce(Z($),1)]),_:2},1040)):R("",!0)]),default:X(()=>[(_(!0),M(ye,null,Be(_e(t).items,x=>(_(),oe(y,{key:x.id,title:x.title,body:x.body,time:x.createdAt,read:x.read,variant:x.variant,interactive:x.target!==null,onSelect:$=>d(x)},null,8,["title","body","time","read","variant","interactive","onSelect"]))),128))]),_:1},8,["open","unread-count","item-count","loading","error"]),Y(qz,{open:c.value,onClose:p[2]||(p[2]=x=>c.value=!1)},null,8,["open"])],64)}}}),a_="https://docs.nubisco.io/openbridge/",l_="https://github.com/sponsors/joseporto",Yz=Pe({__name:"AppLayout",setup(e){const t=S0(),i=kr(),n=nl(),r=Fs(),s=rl(),a=vR({storageKey:"openbridge.sidebar"}),l=G(null),{phone:o}=vn();Oe(()=>t.fullPath,()=>{var $;o.value&&(($=l.value)==null||$.setSidebarOpen(!1))});const c=U(()=>i.connected?"Daemon connected":"Daemon offline");function u($){window.open($,"_blank","noopener")}async function d(){await s.logout()}function f(){var O;const $=(O=s.config.value)==null?void 0:O.issuer;$&&window.open(`${$}/profile`,"_blank","noopener")}const h=G([]),m=G(!0),p=U(()=>h.value.map($=>{var O;return{id:$.sub,email:$.email,name:$.name,current:$.sub===((O=s.user.value)==null?void 0:O.id)}}));async function b(){const $=await s.listIdentities();h.value=$,m.value=$.length===0}function v($){s.switchAccount($.email)}async function C($){await s.removeIdentity($.id),await b()}const y=G(null),g=G(!1);async function L(){try{const $=await fetch("/api/updates/check");if(!$.ok)return;const O=await $.json();O.updateAvailable&&O.latest&&(y.value=O.latest)}catch{}}const x=[{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"}];return Oe(()=>t.name,()=>n.close()),at(async()=>{await i.fetchHealth(),await i.fetchPlugins(),i.fetchLogs(),i.connectLiveLogs();const $=setInterval(()=>i.fetchHealth(),1e4);Ei(()=>clearInterval($)),L()}),Ei(()=>i.disconnectLiveLogs()),($,O)=>{const F=TN,ie=Wo("RouterLink"),B=qN,A=nb,H=rb,I=bg,D=Bx,q=XN,re=Sg,ae=Jn,ge=At,xe=Cr,J=Wo("RouterView"),ve=MN;return _(),oe(ve,{ref_key:"shell",ref:l,"inspector-visible":_e(n).visible,"main-padding":!_e(r).fullBleed,"sidebar-variant":_e(a).variant.value,"sidebar-header-action-position":"start","sidebar-header-action-compact":"swap"},v0({"sidebar-logo":X(()=>[Y(ie,{to:"/dashboard",class:"sidebar-brand-link","aria-label":"OpenBridge, dashboard"},{default:X(()=>[Y(F,{title:"OpenBridge"},{icon:X(()=>[...O[5]||(O[5]=[w("img",{src:Ob,width:"28",height:"28",alt:""},null,-1)])]),_:1})]),_:1})]),"sidebar-header-action":X(()=>[Y(B,{onToggle:_e(a).toggle},null,8,["onToggle"])]),"sidebar-nav":X(()=>[Y(H,null,{default:X(()=>[(_(),M(ye,null,Be(x,fe=>Y(A,{key:fe.name,icon:fe.icon,label:fe.label,to:fe.href,active:_e(t).name===fe.name},null,8,["icon","label","to","active"])),64))]),_:1})]),"sidebar-bottom":X(()=>{var fe;return[Y(H,null,{default:X(()=>[Y(A,{icon:NI,label:"Documentation",href:a_,onClick:O[0]||(O[0]=Qe(he=>u(a_),["prevent"]))}),Y(A,{icon:DI,label:"Sponsor",href:l_,onClick:O[1]||(O[1]=Qe(he=>u(l_),["prevent"]))})]),_:1}),Y(Gz),Y(H,null,{default:X(()=>[Y(A,{icon:Rb,label:"Settings",to:"/settings",active:_e(t).name==="settings"},null,8,["active"])]),_:1}),(fe=_e(s).config.value)!=null&&fe.enabled&&_e(s).user.value?(_(),oe(D,{key:0,user:{email:_e(s).user.value.email,name:_e(s).user.value.name,picture:_e(s).user.value.picture},trigger:"identity","show-theme":"",accounts:p.value,"accounts-unknown":m.value,"show-account-actions":_e(s).isNubiscoPlatform.value,"show-profile":_e(s).isNubiscoPlatform.value,brand:_e(s).isNubiscoPlatform.value?"footer":void 0,onOpen:b,onSwitch:v,onSwitchAccount:O[2]||(O[2]=he=>_e(s).chooseAccount()),onAddAccount:O[3]||(O[3]=he=>_e(s).addAccount()),onRemove:C,onProfile:f,onSignOut:d},{default:X(({close:he})=>[Y(I,{icon:yx,label:"Sign out of all apps",danger:"",onSelect:te=>(he(),_e(s).logoutEverywhere())},null,8,["onSelect"])]),_:1},8,["user","accounts","accounts-unknown","show-account-actions","show-profile","brand"])):R("",!0),Y(q,{label:c.value,status:_e(i).connected?"success":"danger"},null,8,["label","status"])]}),"topbar-left":X(()=>[Y(re,{subtitle:_e(r).title},null,8,["subtitle"]),_e(r).count!==null?(_(),oe(ae,{key:0},{default:X(()=>[ce(Z(_e(r).count),1)]),_:1})):R("",!0),O[6]||(O[6]=w("div",{id:"ob-topbar-left",class:"topbar-slot"},null,-1))]),"topbar-right":X(()=>[O[7]||(O[7]=w("div",{id:"ob-topbar-right",class:"topbar-slot"},null,-1))]),inspector:X(()=>[_e(n).mode==="plugin"?(_(),oe(KZ,{key:0})):_e(n).mode==="marketplace"?(_(),oe(JB,{key:1})):_e(n).mode==="device"?(_(),oe(kz,{key:2})):R("",!0)]),bottom:X(()=>[Y(Hz)]),default:X(()=>[Y(J)]),_:2},[y.value&&!g.value?{name:"notification",fn:X(()=>[Y(xe,{status:"info",icon:df,flush:"",dismissible:"",title:`OpenBridge v${y.value} is available`,onDismiss:O[4]||(O[4]=fe=>g.value=!0)},{action:X(()=>[Y(ge,{variant:"ghost",size:"sm",href:"https://github.com/nubisco/openbridge/releases",target:"_blank",rel:"noopener"},{default:X(()=>[...O[8]||(O[8]=[ce(" See what's new ",-1)])]),_:1})]),_:1},8,["title"])]),key:"0"}:void 0]),1032,["inspector-visible","main-padding","sidebar-variant"])}}}),Xz=Kt(Yz,[["__scopeId","data-v-6a096f5e"]]),Jz=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Qz=Jz("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"/>'),eU=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},tU=eU("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"/>'),iU=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},nU=iU("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"/>'),rU=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},sU=rU("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"/>'),_l=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},aU=_l("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"/>'),lU=_l("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"/>'),fh=_l("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"/>'),oU=_l("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"/>'),cU=_l("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"/>'),uU=_l("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"/>'),dU="pulse",hU=Object.freeze(Object.defineProperty({__proto__:null,bold:oU,default:fh,duotone:uU,fill:cU,glyphName:dU,light:lU,regular:fh,thin:aU},Symbol.toStringTag,{value:"Module"})),fU={class:"dashboard"},pU={class:"top-row"},_U={class:"hk-body"},mU={key:0,class:"qr-wrap"},vU=["src"],gU={key:1,class:"qr-placeholder"},bU={class:"hk-details"},yU={key:0,class:"pin-display"},wU={key:1,class:"pin-label"},SU={key:2,class:"hk-error"},CU={class:"sys-path"},kU={class:"sys-path"},AU={class:"sys-path"},$U={class:"card-title"},MU={class:"plugins-counts"},LU={key:0,class:"empty-inline"},EU={key:1,class:"plugins-list"},xU={class:"plugin-name"},HU={class:"plugin-ver"},TU={class:"metrics-row"},NU={class:"metric-header"},PU={class:"metric-icon purple"},OU={class:"metric-values"},RU={class:"metric-big"},IU={key:0,class:"metric-sub"},VU={class:"metric-chart"},DU={class:"metric-header"},ZU={class:"metric-icon blue"},BU={class:"metric-values"},FU={class:"metric-big"},zU={class:"metric-sub"},UU={class:"metric-chart"},WU={class:"metric-header"},jU={class:"metric-icon green"},KU={class:"uptime-rows"},qU={class:"uptime-row"},GU={class:"uptime-val"},YU={class:"uptime-row"},XU={class:"uptime-val"},JU={style:{"margin-top":"0.75rem"}},QU={class:"metric-header"},eW={class:"metric-icon amber"},tW={class:"net-values"},iW={class:"net-val"},nW={class:"net-val"},rW={class:"metric-chart net-charts"},sW=Pe({__name:"DashboardView",setup(e){const t=kr(),i=Fs();function n(A){return A==="running"?"green":A==="error"?"red":A==="loading"?"blue":"grey"}const r=G(!1),s=G(!1);async function a(){if(!r.value){r.value=!0,s.value=!1;try{await Ze.daemon.restart(),s.value=!0;let A=0;const H=setInterval(async()=>{A++;try{await Ze.health(),clearInterval(H),location.reload()}catch{}A>60&&(clearInterval(H),r.value=!1)},1e3)}catch{r.value=!1}}}const l=G(null),o=G(""),c=G(""),u=G(""),d=U(()=>t.connected?u.value?"red":"green":"grey"),f=U(()=>t.connected?u.value?"HomeKit offline":"Bridge running":"Daemon offline"),h=G([]),m=G([]),p=G([]),b=G([]),v=Gn(null);let C=null;function y(){C&&(C.onclose=null,C.close(),C=null);const A=location.protocol==="https:"?"wss:":"ws:";C=new WebSocket(`${A}//${location.host}/ws/metrics`),C.onmessage=H=>{if(!document.hidden)try{const I=JSON.parse(H.data);if(I.type==="history"){const D=I.data;h.value=D.map(q=>q.cpu),m.value=D.map(q=>x(q)),p.value=D.map(q=>q.netRxSec),b.value=D.map(q=>q.netTxSec),D.length&&(v.value=D[D.length-1])}else if(I.type==="snapshot"){const D=I.data;v.value=D,L(h,D.cpu),L(m,x(D)),L(p,D.netRxSec),L(b,D.netTxSec)}}catch{}},C.onclose=()=>{C=null,setTimeout(y,3e3)}}function g(){document.hidden||y()}function L(A,H){A.value=[...A.value.slice(-59),H]}function x(A){return A.memTotal?Math.round((A.memTotal-A.memFree)/A.memTotal*100):0}function $(A){return A<1024?`${A} B`:A<1024**2?`${(A/1024).toFixed(1)} KB`:A<1024**3?`${(A/1024**2).toFixed(1)} MB`:`${(A/1024**3).toFixed(1)} GB`}function O(A){const H=Math.floor(A/86400),I=Math.floor(A%86400/3600),D=Math.floor(A%3600/60);return H>0?`${H}d ${I}h`:I>0?`${I}h ${D}m`:`${D}m`}const F=U(()=>v.value?$(v.value.memTotal-v.value.memFree):"—"),ie=U(()=>v.value?$(v.value.memTotal):"—"),B=U(()=>v.value?x(v.value):0);return at(async()=>{i.setPage("Dashboard"),t.fetchPlugins();try{l.value=await Ze.system()}catch{}try{const A=await Ze.qr();u.value=A.error??"",A.setupURI&&(c.value=A.pincode??"",o.value=await ul.toDataURL(A.setupURI,{width:148,margin:1,color:{dark:"#000000",light:"#ffffff"}}))}catch{}y(),document.addEventListener("visibilitychange",g)}),Ei(()=>{C==null||C.close(),C=null,document.removeEventListener("visibilitychange",g)}),(A,H)=>{const I=qe,D=Jn,q=Zs,re=NA,ae=MA,ge=y0,xe=LO,J=lb,ve=At;return _(),M("div",fU,[w("div",pU,[Y(q,{class:"hk-card"},{default:X(()=>[H[0]||(H[0]=w("div",{class:"card-title"},"HomeKit Pairing",-1)),w("div",_U,[o.value?(_(),M("div",mU,[w("img",{src:o.value,alt:"HomeKit QR Code",class:"qr-img"},null,8,vU)])):(_(),M("div",gU,[Y(I,{name:_e(Qz),size:48},null,8,["name"]),w("span",null,Z(u.value?"HomeKit bridge unavailable":"No HAP bridge configured"),1)])),w("div",bU,[c.value?(_(),M("div",yU,Z(c.value),1)):R("",!0),c.value?(_(),M("div",wU,"Scan to add to HomeKit")):R("",!0),Y(D,{class:"hk-status",dot:"",variant:d.value},{default:X(()=>[ce(Z(f.value),1)]),_:1},8,["variant"]),u.value?(_(),M("div",SU,Z(u.value),1)):R("",!0)])])]),_:1}),Y(q,{class:"sys-card"},{default:X(()=>[H[1]||(H[1]=w("div",{class:"card-title"},"System Information",-1)),l.value?(_(),oe(ae,{key:0,compact:"","term-width":"6rem"},{default:X(()=>[Y(re,{term:"OS"},{default:X(()=>[ce(Z(l.value.os),1)]),_:1}),Y(re,{term:"Arch"},{default:X(()=>[ce(Z(l.value.arch),1)]),_:1}),Y(re,{term:"Hostname"},{default:X(()=>[ce(Z(l.value.hostname),1)]),_:1}),Y(re,{term:"IP Address"},{default:X(()=>[ce(Z(l.value.ip),1)]),_:1}),Y(re,{term:"User"},{default:X(()=>[ce(Z(l.value.user),1)]),_:1}),Y(re,{term:"Node.js"},{default:X(()=>[ce(Z(l.value.nodeVersion),1)]),_:1}),Y(re,{term:"OpenBridge"},{default:X(()=>{var fe;return[ce("v"+Z(((fe=_e(t).health)==null?void 0:fe.version)??"—"),1)]}),_:1}),Y(re,{term:"Config"},{default:X(()=>[w("span",CU,Z(l.value.configPath),1)]),_:1}),Y(re,{term:"OB plugins"},{default:X(()=>[w("span",kU,Z(l.value.obPluginsDir),1)]),_:1}),Y(re,{term:"HB plugins"},{default:X(()=>[w("span",AU,Z(l.value.hbPluginsDir),1)]),_:1})]),_:1})):(_(),oe(ge,{key:1,size:"sm","show-label":"",label:"Loading..."}))]),_:1}),Y(q,{class:"plugins-card"},{default:X(()=>[w("div",$U,[H[2]||(H[2]=ce(" Plugins ",-1)),w("span",MU,[Y(D,{variant:"green"},{default:X(()=>[ce(Z(_e(t).runningCount)+" running",1)]),_:1}),_e(t).errorCount?(_(),oe(D,{key:0,variant:"red"},{default:X(()=>[ce(Z(_e(t).errorCount)+" error",1)]),_:1})):R("",!0)])]),_e(t).plugins.length===0?(_(),M("div",LU,"No plugins loaded yet.")):(_(),M("div",EU,[(_(!0),M(ye,null,Be(_e(t).plugins,fe=>(_(),M("div",{key:fe.id,class:"plugin-row"},[w("div",{class:Ee(["plugin-dot",fe.status])},null,2),w("span",xU,Z(fe.manifest.name),1),w("span",HU,"v"+Z(fe.manifest.version),1),fe.source==="homebridge"?(_(),oe(D,{key:0,variant:"orange",size:"sm"},{default:X(()=>[...H[3]||(H[3]=[ce("HB",-1)])]),_:1})):R("",!0),Y(D,{variant:n(fe.status),size:"sm"},{default:X(()=>[ce(Z(fe.status),1)]),_:2},1032,["variant"])]))),128))]))]),_:1})]),w("div",TU,[Y(q,{class:"metric-card"},{default:X(()=>{var fe,he;return[w("div",NU,[w("div",PU,[Y(I,{name:_e(tU),size:13},null,8,["name"])]),H[4]||(H[4]=w("span",{class:"metric-title"},"CPU",-1))]),w("div",OU,[w("div",RU,[ce(Z(((fe=v.value)==null?void 0:fe.cpu)??"—")+" ",1),H[5]||(H[5]=w("span",{class:"metric-unit"},"%",-1))]),(he=v.value)!=null&&he.cpuTemp&&v.value.cpuTemp>0?(_(),M("div",IU,Z(v.value.cpuTemp)+"°C",1)):R("",!0)]),w("div",VU,[Y(xe,{data:h.value,color:"var(--nb-c-primary)",height:40},null,8,["data"])])]}),_:1}),Y(q,{class:"metric-card"},{default:X(()=>[w("div",DU,[w("div",ZU,[Y(I,{name:_e(nU),size:13},null,8,["name"])]),H[6]||(H[6]=w("span",{class:"metric-title"},"Memory",-1))]),w("div",BU,[w("div",FU,[ce(Z(B.value)+" ",1),H[7]||(H[7]=w("span",{class:"metric-unit"},"%",-1))]),w("div",zU,Z(F.value)+" / "+Z(ie.value),1)]),Y(J,{value:B.value,max:100,size:"sm"},null,8,["value"]),w("div",UU,[Y(xe,{data:m.value,color:"var(--nb-c-info)",height:32},null,8,["data"])])]),_:1}),Y(q,{class:"metric-card"},{default:X(()=>[w("div",WU,[w("div",jU,[Y(I,{name:_e(sU),size:13},null,8,["name"])]),H[8]||(H[8]=w("span",{class:"metric-title"},"Uptime",-1))]),w("div",KU,[w("div",qU,[w("span",GU,Z(l.value?O(l.value.uptimeSystem):"—"),1),H[9]||(H[9]=w("span",{class:"uptime-label"},"System",-1))]),H[11]||(H[11]=w("div",{class:"uptime-divider"},null,-1)),w("div",YU,[w("span",XU,Z(l.value?O(l.value.uptimeProcess):"—"),1),H[10]||(H[10]=w("span",{class:"uptime-label"},"Process",-1))])]),w("div",JU,[Y(ve,{variant:"secondary",size:"sm",outlined:"",style:{width:"100%","justify-content":"center"},loading:r.value,icon:s.value?yr:Ps,onClick:a},{default:X(()=>[ce(Z(s.value?"Restarted":r.value?"Restarting…":"Restart OpenBridge"),1)]),_:1},8,["loading","icon"])])]),_:1}),Y(q,{class:"metric-card net-card"},{default:X(()=>[w("div",QU,[w("div",eW,[Y(I,{name:_e(fh),size:13},null,8,["name"])]),H[12]||(H[12]=w("span",{class:"metric-title"},"Network",-1))]),w("div",tW,[w("div",null,[w("div",iW,Z(v.value?$(v.value.netRxSec)+"/s":"—"),1),H[13]||(H[13]=w("div",{class:"net-label"},"↓ Received",-1))]),w("div",null,[w("div",nW,Z(v.value?$(v.value.netTxSec)+"/s":"—"),1),H[14]||(H[14]=w("div",{class:"net-label"},"↑ Sent",-1))])]),w("div",rW,[Y(xe,{data:p.value,color:"var(--nb-c-success)",height:28},null,8,["data"]),Y(xe,{data:b.value,color:"var(--nb-c-warning)",height:28},null,8,["data"])])]),_:1})])])}}}),aW=Kt(sW,[["__scopeId","data-v-bb84225c"]]),ml=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},lW=ml("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"/>'),oW=ml("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"/>'),o_=ml("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"/>'),cW=ml("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"/>'),uW=ml("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"/>'),dW=ml("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"/>'),hW="arrow-clockwise",c_=Object.freeze(Object.defineProperty({__proto__:null,bold:cW,default:o_,duotone:dW,fill:uW,glyphName:hW,light:oW,regular:o_,thin:lW},Symbol.toStringTag,{value:"Module"})),c5=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),vl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},fW=vl("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"/>'),pW=vl("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"/>'),u_=vl("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"/>'),_W=vl("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"/>'),mW=vl("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"/>'),vW=vl("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"/>'),gW="list",ph=Object.freeze(Object.defineProperty({__proto__:null,bold:_W,default:u_,duotone:vW,fill:mW,glyphName:gW,light:pW,regular:u_,thin:fW},Symbol.toStringTag,{value:"Module"})),gl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},bW=gl("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"/>'),yW=gl("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"/>'),d_=gl("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"/>'),wW=gl("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"/>'),SW=gl("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"/>'),CW=gl("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"/>'),kW="squares-four",_h=Object.freeze(Object.defineProperty({__proto__:null,bold:wW,default:d_,duotone:CW,fill:SW,glyphName:kW,light:yW,regular:d_,thin:bW},Symbol.toStringTag,{value:"Module"})),AW={key:0,class:"plugin-cards"},$W={class:"plugin-avatar"},MW=["src","alt"],LW={class:"plugin-meta"},EW={class:"plugin-name"},xW={key:0,class:"plugin-platform"},HW={class:"plugin-version"},TW={key:0,class:"plugin-desc"},NW={key:1,class:"plugin-author"},PW={key:2,class:"plugin-links"},OW=["href"],RW=["href"],IW={key:3,class:"plugin-error"},VW={class:"cell-name"},DW={class:"plugin-avatar plugin-avatar--sm"},ZW=["src","alt"],BW={class:"plugin-name"},FW={key:0,class:"plugin-platform"},zW=Pe({__name:"PluginList",props:{rows:{},view:{},selectedId:{}},emits:["select"],setup(e,{emit:t}){const i=e,n=t;function r(o){return o==="running"?"green":o==="error"?"red":o==="loading"?"blue":"grey"}const s=G({key:"name",direction:"asc"}),a=[{key:"name",header:"Plugin",sortable:!0,primary:!0},{key:"version",header:"Version",sortable:!0,width:140,phoneMeta:!0},{key:"source",header:"Source",sortable:!0,width:120,phoneMeta:!0},{key:"status",header:"Status",sortable:!0,width:120,phoneMeta:!0},{key:"author",header:"Author",sortable:!0}],l=U(()=>{const o=i.rows.map(d=>({id:d.plugin.id,name:d.plugin.manifest.name,version:`v${d.plugin.manifest.version}`,availableUpdate:d.plugin.availableUpdate,source:d.plugin.source==="homebridge"?"Homebridge":"Native",status:d.plugin.status,author:d.plugin.manifest.author??"—",platform:d.plugin.source==="homebridge"?d.plugin.platformName:void 0,avatarUrl:d.avatarUrl,isOpenBridge:d.isOpenBridge,plugin:d.plugin})),c=s.value;if(!c||c.direction==="none")return o;const u=c.direction==="asc"?1:-1;return[...o].sort((d,f)=>u*String(d[c.key]??"").localeCompare(String(f[c.key]??"")))});return(o,c)=>{const u=qe,d=Jn,f=Mi,h=Zs,m=Q2;return e.view==="cards"?(_(),M("div",AW,[(_(!0),M(ye,null,Be(e.rows,p=>(_(),oe(h,{key:p.plugin.id,class:Ee(["plugin-card",{"plugin-card--selected":p.plugin.id===e.selectedId}]),onClick:b=>n("select",p.plugin)},{default:X(()=>[w("span",{class:Ee(["plugin-card__accent",`plugin-card__accent--${p.plugin.status}`])},null,2),Y(f,{dir:"row",align:"start",gap:"sm",class:"plugin-card__header"},{default:X(()=>[w("div",$W,[p.avatarUrl?(_(),M("img",{key:0,src:p.avatarUrl,alt:p.plugin.manifest.name,onError:c[0]||(c[0]=b=>b.target.style.display="none")},null,40,MW)):(_(),oe(u,{key:1,name:p.isOpenBridge?_e(Os):_e(va),size:20},null,8,["name"]))]),w("div",LW,[w("div",EW,Z(p.plugin.manifest.name),1),p.plugin.source==="homebridge"&&p.plugin.platformName?(_(),M("div",xW," Platform: "+Z(p.plugin.platformName),1)):R("",!0),w("div",HW,[ce(" v"+Z(p.plugin.manifest.version)+" ",1),p.plugin.availableUpdate?(_(),oe(d,{key:0,variant:"blue",size:"sm"},{default:X(()=>[ce(" v"+Z(p.plugin.availableUpdate)+" available ",1)]),_:2},1024)):R("",!0)])]),Y(d,{variant:r(p.plugin.status)},{default:X(()=>[ce(Z(p.plugin.status),1)]),_:2},1032,["variant"])]),_:2},1024),p.plugin.manifest.description?(_(),M("p",TW,Z(p.plugin.manifest.description),1)):R("",!0),p.plugin.manifest.author?(_(),M("p",NW,"by "+Z(p.plugin.manifest.author),1)):R("",!0),p.sponsorUrl||p.docsUrl?(_(),M("div",PW,[p.sponsorUrl?(_(),M("a",{key:0,href:p.sponsorUrl,target:"_blank",rel:"noopener",onClick:c[1]||(c[1]=Qe(()=>{},["stop"]))},[Y(u,{name:_e(uf),weight:"fill",size:11},null,8,["name"]),c[6]||(c[6]=ce(" Sponsor ",-1))],8,OW)):R("",!0),p.docsUrl?(_(),M("a",{key:1,href:p.docsUrl,target:"_blank",rel:"noopener",onClick:c[2]||(c[2]=Qe(()=>{},["stop"]))},[Y(u,{name:_e(a5),size:11},null,8,["name"]),c[7]||(c[7]=ce(" Docs ",-1))],8,RW)):R("",!0)])):R("",!0),p.plugin.error?(_(),M("div",IW,Z(p.plugin.error),1)):R("",!0)]),_:2},1032,["class","onClick"]))),128))])):(_(),oe(m,{key:1,columns:a,rows:l.value,"row-key":"id",size:"sm",zebra:"","stack-on-phone":"","sort-state":s.value,onSort:c[4]||(c[4]=p=>s.value=p),onRowClick:c[5]||(c[5]=p=>n("select",p.plugin))},{"cell-name":X(({row:p})=>[w("div",VW,[w("div",DW,[p.avatarUrl?(_(),M("img",{key:0,src:p.avatarUrl,alt:p.name,onError:c[3]||(c[3]=b=>b.target.style.display="none")},null,40,ZW)):(_(),oe(u,{key:1,name:p.isOpenBridge?_e(Os):_e(va),size:14},null,8,["name"]))]),w("div",null,[w("div",BW,Z(p.name),1),p.platform?(_(),M("div",FW,"Platform: "+Z(p.platform),1)):R("",!0)])])]),"cell-version":X(({row:p})=>[ce(Z(p.version)+" ",1),p.availableUpdate?(_(),oe(d,{key:0,variant:"blue",size:"sm"},{default:X(()=>[ce("v"+Z(p.availableUpdate),1)]),_:2},1024)):R("",!0)]),"cell-status":X(({row:p})=>[Y(d,{variant:r(p.status)},{default:X(()=>[ce(Z(p.status),1)]),_:2},1032,["variant"])]),_:1},8,["rows","sort-state"]))}}}),UW=Kt(zW,[["__scopeId","data-v-5faea4f2"]]),WW={class:"plugins-view"},h_="openbridge.plugins.view",jW=Pe({__name:"PluginsView",setup(e){const t=kr(),i=nl(),n=Fs(),r=Du(),{phone:s}=vn(),a=G(""),l=G(new Map),o=G(new Set),c=G(!1),u=G(localStorage.getItem(h_)==="table"?"table":"cards");function d(){u.value=u.value==="cards"?"table":"cards",localStorage.setItem(h_,u.value)}const f=U(()=>u.value==="cards"?"Show as table":"Show as cards"),h=U(()=>{const A={id:"browse",label:"Browse plugins",icon:Bd,variant:"primary",priority:"primary",onSelect:()=>i.openMarketplace()};return s.value?[A,{id:"refresh",label:"Refresh metadata",icon:c_,loading:c.value,onSelect:()=>void B(!0)},{id:"view",label:f.value,icon:u.value==="cards"?ph:_h,onSelect:d}]:[A]}),m=U(()=>{var A;return i.visible&&i.mode==="plugin"?((A=i.selectedPlugin)==null?void 0:A.id)??null:null}),p=U(()=>C().map(A=>{const H=L(A);return{plugin:A,avatarUrl:F(A),isOpenBridge:g(A),sponsorUrl:H==null?void 0:H.githubSponsorsUrl,docsUrl:H==null?void 0:H.documentationUrl}}));function b(A){if(A.source==="homebridge"){const I=(A.manifest.description??"").match(/Homebridge platform:\s*([^\s]+)/);if(I!=null&&I[1])return I[1]}return A.manifest.name}function v(A){var q;const I=(q=(A.manifest.description??"").match(/Homebridge platform:\s*([^\s]+)/))==null?void 0:q[1],D=[b(A),I,A.manifest.name,A.id];return Array.from(new Set(D.filter(re=>!!re&&re.trim().length>0)))}function C(){const A=a.value.toLowerCase();return t.plugins.filter(H=>H.manifest.name.toLowerCase().includes(A)||(H.manifest.description??"").toLowerCase().includes(A))}function y(A){var H;((H=i.selectedPlugin)==null?void 0:H.id)===A.id&&i.visible&&i.mode==="plugin"?i.close():i.openPlugin(A)}function g(A){return A.manifest.name.includes("openbridge-")||A.source==="native"}function L(A){const H=v(A);for(const I of H){const D=l.value.get(I);if(D)return D}if(A.enrichedMetadata)return A.enrichedMetadata}async function x(A,H=!1){var D;const I=v(A);for(const q of I)if(!(!H&&l.value.has(q))&&!(!H&&o.value.has(q))){o.value.add(q);try{const re=await Ze.marketplace.enriched(q),ae=new Map(l.value);if(ae.set(q,re),ae.set(b(A),re),l.value=ae,A.enrichedMetadata=re,re.documentationUrl||re.githubSponsorsUrl||(D=re.links)!=null&&D.repository)return}catch{}finally{const re=new Set(o.value);re.delete(q),o.value=re}}}const $=G(new Map);function O(A){const I=A.trim().replace(/^github:/,"https://github.com/").replace(/^git\+/,"").replace(/^git@github\.com:/,"https://github.com/").match(/github\.com[/:]([^/]+)/);return I?`https://github.com/${I[1]}.png?size=48`:null}function F(A){var q,re;const H=L(A),I=((q=H==null?void 0:H.links)==null?void 0:q.repository)??((re=H==null?void 0:H.links)==null?void 0:re.homepage)??"";if(I){const ae=O(I);if(ae)return ae}const D=v(A);for(const ae of D){const ge=$.value.get(ae);if(ge)return ge}return null}async function ie(A,H=!1){var I;if(!(!H&&$.value.has(A)))try{const D=await fetch(`https://registry.npmjs.org/${encodeURIComponent(A)}/latest`,{signal:AbortSignal.timeout(5e3)});if(!D.ok){$.value.set(A,"");return}const q=await D.json(),re=((I=q==null?void 0:q.repository)==null?void 0:I.url)??(q==null?void 0:q.homepage)??"";$.value.set(A,O(re)??"")}catch{$.value.set(A,"")}}async function B(A=!1){if(!c.value){c.value=!0;try{A&&(l.value=new Map,$.value=new Map);const H=t.plugins;for(const I of H){const D=v(I);for(const q of D)await ie(q,A);await x(I,A)}A&&r.success("Plugin metadata refreshed")}catch{r.error("Failed to refresh plugin metadata")}finally{c.value=!1}}}return at(async()=>{await t.fetchPlugins()}),Oe(()=>t.plugins.length,A=>{n.setPage("Plugins",A)},{immediate:!0}),(A,H)=>{const I=os,D=At,q=yg,re=t0,ae=Xn("nb-tooltip");return _(),M("div",WW,[(_(),oe(Fi,{defer:"",to:"#ob-topbar-right"},[_e(s)?R("",!0):(_(),M(ye,{key:0},[Y(I,{modelValue:a.value,"onUpdate:modelValue":H[0]||(H[0]=ge=>a.value=ge),placeholder:"Search plugins...",size:"sm",style:{width:"200px"}},null,8,["modelValue"]),Tt(Y(D,{variant:"ghost",size:"sm",icon:c_,"aria-label":"Refresh metadata",loading:c.value,disabled:c.value,onClick:H[1]||(H[1]=ge=>B(!0))},null,8,["loading","disabled"]),[[ae,{body:"Refresh metadata"}]]),Tt(Y(D,{variant:"ghost",size:"sm",icon:u.value===c5?ph:_h,"aria-label":f.value,onClick:d},null,8,["icon","aria-label"]),[[ae,{body:f.value}]])],64)),Y(q,{items:h.value,overflow:"phone"},null,8,["items"])])),_e(s)?(_(),oe(I,{key:0,modelValue:a.value,"onUpdate:modelValue":H[2]||(H[2]=ge=>a.value=ge),placeholder:"Search plugins...",size:"sm"},null,8,["modelValue"])):R("",!0),p.value.length===0?(_(),oe(re,{key:1,kind:a.value?"no-results":"empty",icon:a.value?void 0:Vb,title:a.value?`No plugins matching "${a.value}"`:"No plugins loaded yet",bordered:""},v0({_:2},[a.value?void 0:{name:"actions",fn:X(()=>[Y(D,{variant:"primary",size:"sm",icon:Bd,onClick:H[3]||(H[3]=ge=>_e(i).openMarketplace())},{default:X(()=>[...H[5]||(H[5]=[ce(" Browse & install plugins ",-1)])]),_:1})]),key:"0"}]),1032,["kind","icon","title"])):(_(),M("div",{key:2,class:"plugins-body",onClick:H[4]||(H[4]=Qe(ge=>_e(i).close(),["self"]))},[Y(UW,{rows:p.value,view:u.value,"selected-id":m.value,onSelect:y},null,8,["rows","view","selected-id"])]))])}}}),KW=Kt(jW,[["__scopeId","data-v-9096db49"]]),bl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},qW=bl("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"/>'),GW=bl("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"/>'),f_=bl("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"/>'),YW=bl("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"/>'),XW=bl("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"/>'),JW=bl("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"/>'),QW="devices",u5=Object.freeze(Object.defineProperty({__proto__:null,bold:YW,default:f_,duotone:JW,fill:XW,glyphName:QW,light:GW,regular:f_,thin:qW},Symbol.toStringTag,{value:"Module"})),ej={class:"devices-view"},tj={class:"toolbar-count"},ij={class:"device-icon native-icon"},nj={class:"device-info"},rj={class:"device-name"},sj={class:"device-type"},aj={class:"device-summary"},lj={key:0,class:"summary-primary"},oj={class:"summary-primary"},cj={key:0,class:"summary-secondary"},uj={key:2,class:"summary-primary"},dj=["title"],hj={class:"device-info"},fj={class:"device-name"},pj={class:"device-type"},_j={key:0,class:"device-summary"},mj={class:"summary-primary"},vj=["title"],gj=["title"],bj={key:1},p_="openbridge.devices.view",yj=Pe({__name:"DevicesView",setup(e){const t=kr(),i=nl(),n=lf(),r=w0();function s(S){var T;return((T=S.health)==null?void 0:T.status)==="stale"}function a(S){return S<90?`${Math.round(S)} seconds`:S<5400?`${Math.round(S/60)} minutes`:S<172800?`${Math.round(S/3600)} hours`:`${Math.round(S/86400)} days`}function l(S){const T=S.health;if(!T||T.status!=="stale")return"";const V=["Not responding"];return T.silentForSeconds!==null?V.push(`Silent for ${a(T.silentForSeconds)}.`):T.lastSeen&&V.push(`Last seen ${new Date(T.lastSeen).toLocaleString()}.`),T.reason&&V.push(T.reason),V.push("OpenBridge is running: the device itself is not answering. Check it is powered and reachable at its configured address.","Click to open it for its address, readings and recent events."),V.join(`
69
- `)}const o=["Not responding","HomeKit reports this accessory as unreachable. Check it is powered and on the network.","Click to open it for its services and characteristics."].join(`
70
- `);function c(S){var V;const T=(V=S.health)==null?void 0:V.status;return T==="ok"?"online":T==="stale"?"stale":"offline"}function u(S){var V;const T=(V=S.health)==null?void 0:V.status;return T==="ok"?"Responding":T==="stale"?"Not responding":"No data yet"}function d(S){r.push({name:"device-detail",params:{id:S.id}})}const f=Fs(),h=G(!1),m=G([]),p=G(localStorage.getItem(p_)==="table"?"table":"cards"),b=U(()=>p.value==="cards"?"Show as table":"Show as cards");function v(){p.value=p.value==="cards"?"table":"cards",localStorage.setItem(p_,p.value)}const C=G({key:"name",direction:"asc"}),y=[{key:"name",header:"Device",sortable:!0,primary:!0},{key:"type",header:"Type",sortable:!0,width:160,phoneMeta:!0},{key:"source",header:"Source",sortable:!0,width:120,phoneMeta:!0},{key:"state",header:"State",sortable:!0,width:120},{key:"detail",header:"Reading",sortable:!0,width:160}],g=U(()=>{const S=[...m.value.map(ee=>({key:"native:"+ee.id,name:ee.name,type:D(x(ee)),source:"Native",state:ee.telemetry.active===void 0?"":ee.telemetry.active?"On":"Off",stateOn:!!ee.telemetry.active,detail:L(ee),icon:I(x(ee)),unhealthy:s(ee),healthTooltip:l(ee),select:()=>F(ee)})),...t.accessories.map(ee=>{const de=ge(ee);return{key:"hap:"+ee.uuid,name:ee.displayName,type:B(ee.category).label,source:"HomeKit",state:ee.reachable?de?de.value?"On":"Off":"":"Not responding",stateOn:ee.reachable&&!!(de!=null&&de.value),detail:xe(ee)??"",icon:B(ee.category).icon,unhealthy:!ee.reachable,healthTooltip:ee.reachable?"":o,select:()=>O(ee)}})],T=C.value;if(!T||T.direction==="none")return S;const V=T.direction==="asc"?1:-1;return[...S].sort((ee,de)=>V*String(ee[T.key]??"").localeCompare(String(de[T.key]??"")))});function L(S){const T=S.telemetry;return S.widgetType==="energy_meter"&&T.power!==void 0?`${ve(T.power,1)} W`:S.widgetType==="thermostat"&&T.currentTemperature!==void 0?`${ve(T.currentTemperature,1)}°C`:S.widgetType==="dehumidifier"&&T.currentHumidity!==void 0?`${ve(T.currentHumidity,0)}%`:T.power!==void 0?`${ve(T.power,1)} W`:""}function x(S){return S.homekitType||S.widgetType}const $=U(()=>i.mode!=="device"||!i.selectedDevice?null:i.selectedDevice.kind==="native"?i.selectedDevice.dev.id:i.selectedDevice.acc.uuid);function O(S){$.value===S.uuid?i.close():i.openDevice({kind:"hap",acc:S})}function F(S){$.value===S.id?i.close():i.openDevice({kind:"native",dev:S})}const ie={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 B(S){return ie[S]??{label:`Category ${S}`,icon:"cube"}}const A={switch:"plugs",light:"lightbulb",thermostat:"thermometer",dehumidifier:"drop",energy_meter:"lightning",gate:"garage",sensor:"pulse",camera:"camera"},H={camera:"Camera",switch:"Switch",light:"Light",thermostat:"Thermostat",dehumidifier:"Dehumidifier",energy_meter:"Energy Meter",gate:"Gate",sensor:"Sensor"};function I(S){return A[S]??"cube"}function D(S){return H[S]??S}const q=new Set(["AccessoryInformation","0000003E-0000-1000-8000-0026BB765291","ProtocolInformation","000000A2-0000-1000-8000-0026BB765291"]),re=new Set(["On","Active","LockTargetState","TargetDoorState"]);function ae(S){return S.services.find(T=>!q.has(T.name)&&!q.has(T.uuid))}function ge(S){const T=ae(S);return T?T.characteristics.find(V=>re.has(V.name)&&V.perms.includes("pw"))??null:null}function xe(S){if(!S.reachable)return"Not responding";const T=ae(S);if(!T)return null;for(const ee of T.characteristics){if(ee.name==="CurrentTemperature"&&ee.value!=null)return`${Number(ee.value).toFixed(1)}°C`;if(ee.name==="CurrentRelativeHumidity"&&ee.value!=null)return`${Math.round(Number(ee.value))}%`;if(ee.name==="CurrentPosition"&&ee.value!=null)return`${Math.round(Number(ee.value))}%`;if(ee.name==="Brightness"&&ee.value!=null)return`${Math.round(Number(ee.value))}%`}const V=T.characteristics.find(ee=>ee.name==="On");return V?V.value?"On":"Off":null}async function J(S,T){const V=ae(S),ee=ge(S);if(!(!V||!ee))try{await Ze.setCharacteristic(S.uuid,V.uuid,ee.uuid,T?1:0),await t.fetchAccessories()}catch(de){console.error("HAP control failed",de)}}function ve(S,T=1){if(S==null)return"—";const V=Number(S);return isFinite(V)?V.toFixed(T):String(S)}const fe=U(()=>t.accessories.length+m.value.length);async function he(){var S;try{const T=await Ze.devices();if(m.value=T.devices,i.mode==="device"&&((S=i.selectedDevice)==null?void 0:S.kind)==="native"){const V=i.selectedDevice.dev.id,ee=T.devices.find(de=>de.id===V);ee&&i.updateDevice({kind:"native",dev:ee})}}catch{}}async function te(){h.value=!0,await Promise.all([t.fetchAccessories(),he()]),h.value=!1}let ue=null;function j(S,T,V){return S.widgetType==="energy_meter"&&T==="active"?V?{title:"Turn on circuit",message:"This will energise the connected circuit.",confirmLabel:"Turn on",tone:"neutral"}:{title:"Turn off circuit",message:"This will cut power to the connected circuit.",confirmLabel:"Turn off",tone:"danger"}:!1}async function K(S,T,V){try{await Ze.controlDevice(S,T,V),await he()}catch(ee){console.error("Control failed",ee)}}async function se(S,T,V){const ee=j(S,T,V);ee&&!await n({...ee,subjectLabel:"Device",subject:S.name})||K(S.id,T,V)}async function Q(){var S;if(await Promise.all([t.fetchAccessories(),he()]),i.mode==="device"&&((S=i.selectedDevice)==null?void 0:S.kind)==="hap"){const T=i.selectedDevice.acc.uuid,V=t.accessories.find(ee=>ee.uuid===T);V&&i.updateDevice({kind:"hap",acc:V})}}return at(async()=>{f.setPage("Devices"),await Q(),ue=setInterval(Q,3e3)}),Ei(()=>{ue&&clearInterval(ue)}),(S,T)=>{const V=Jn,ee=At,de=t0,pe=qe,we=Ou,k=nf,E=Zs,z=Q2,le=Xn("nb-tooltip");return _(),M("div",ej,[fe.value>0?(_(),oe(Fi,{key:0,defer:"",to:"#ob-topbar-left"},[w("span",tj,Z(fe.value)+" device"+Z(fe.value!==1?"s":""),1),m.value.length>0?(_(),oe(V,{key:0},{default:X(()=>[ce(Z(m.value.length)+" native",1)]),_:1})):R("",!0)])):R("",!0),(_(),oe(Fi,{defer:"",to:"#ob-topbar-right"},[Tt(Y(ee,{variant:"ghost",size:"sm",icon:p.value===c5?ph:_h,"aria-label":b.value,onClick:v},null,8,["icon","aria-label"]),[[le,{body:b.value}]]),Tt(Y(ee,{variant:"ghost",size:"sm",icon:Ps,"aria-label":"Refresh devices",loading:h.value,onClick:te},null,8,["loading"]),[[le,{body:"Refresh devices"}]])])),fe.value===0?(_(),oe(de,{key:1,icon:u5,bordered:"",title:"No devices registered yet",description:"Devices appear here once a platform plugin registers accessories. This page refreshes every 3 seconds, and discovery can take up to 60 seconds."})):(_(),M("div",{key:2,class:"devices-layout",onClick:T[7]||(T[7]=Qe(P=>_e(i).close(),["self"]))},[p.value==="cards"?(_(),M("div",{key:0,class:"device-grid",onClick:T[4]||(T[4]=Qe(P=>_e(i).close(),["self"]))},[(_(!0),M(ye,null,Be(m.value,P=>(_(),oe(E,{key:"native:"+P.id,class:Ee(["device-card native-card",{selected:$.value===P.id,unhealthy:s(P)}]),title:s(P)?l(P):void 0,onClick:N=>F(P),onDblclick:N=>d(P)},{default:X(()=>{var N;return[T[8]||(T[8]=w("span",{class:"device-card__accent"},null,-1)),w("div",ij,[Y(pe,{name:I(x(P)),size:22},null,8,["name"])]),w("div",nj,[w("div",rj,[s(P)?(_(),oe(pe,{key:0,name:_e(Kr),size:14,class:"name-health-icon"},null,8,["name"])):R("",!0),w("span",null,Z(P.name),1)]),w("div",sj,Z(D(x(P))),1),w("div",aj,[P.widgetType==="energy_meter"&&P.telemetry.power!==void 0?(_(),M("span",lj,Z(ve(P.telemetry.power,1))+" W",1)):P.widgetType==="thermostat"&&P.telemetry.currentTemperature!==void 0?(_(),M(ye,{key:1},[w("span",oj,Z(ve(P.telemetry.currentTemperature,1))+"°C",1),P.telemetry.targetTemperature!==void 0?(_(),M("span",cj," target "+Z(ve(P.telemetry.targetTemperature,1))+"°C ",1)):R("",!0)],64)):P.widgetType==="dehumidifier"&&P.telemetry.currentHumidity!==void 0?(_(),M("span",uj,Z(ve(P.telemetry.currentHumidity,0))+"%",1)):P.telemetry.active!==void 0?(_(),M("span",{key:3,class:Ee(["summary-status",P.telemetry.active?"on":"off"])},Z(P.telemetry.active?"On":"Off"),3)):R("",!0)]),P.telemetry.active!==void 0?(_(),M("div",{key:0,class:"card-controls",onClick:T[0]||(T[0]=Qe(()=>{},["stop"]))},[Y(we,{name:`device-active-${P.id}`,"model-value":!!P.telemetry.active,"onUpdate:modelValue":W=>se(P,"active",W)},null,8,["name","model-value","onUpdate:modelValue"])])):R("",!0),P.widgetType==="thermostat"&&P.telemetry.targetTemperature!==void 0?(_(),M("div",{key:1,class:"card-controls",onClick:T[1]||(T[1]=Qe(()=>{},["stop"]))},[Y(k,{"model-value":Number(P.telemetry.targetTemperature),size:"xs",min:5,max:35,step:1,"onUpdate:modelValue":W=>W!==null&&K(P.id,"targetTemperature",W)},null,8,["model-value","onUpdate:modelValue"])])):R("",!0),P.widgetType==="dehumidifier"&&P.telemetry.targetHumidity!==void 0?(_(),M("div",{key:2,class:"card-controls",onClick:T[2]||(T[2]=Qe(()=>{},["stop"]))},[Y(k,{"model-value":Number(P.telemetry.targetHumidity),size:"xs",min:30,max:80,step:5,"onUpdate:modelValue":W=>W!==null&&K(P.id,"targetHumidity",W)},null,8,["model-value","onUpdate:modelValue"])])):R("",!0)]),w("div",{class:Ee(["device-reachability",c(P)]),title:((N=P.health)==null?void 0:N.reason)??u(P)},null,10,dj)]}),_:2},1032,["class","title","onClick","onDblclick"]))),128)),(_(!0),M(ye,null,Be(_e(t).accessories,P=>(_(),oe(E,{key:P.uuid,class:Ee(["device-card hap-card",{selected:$.value===P.uuid,unreachable:!P.reachable,unhealthy:!P.reachable}]),title:P.reachable?void 0:_e(o),onClick:N=>O(P)},{default:X(()=>{var N;return[w("div",{class:Ee(["device-icon hap-icon",{unreachable:!P.reachable}])},[Y(pe,{name:B(P.category).icon,size:22},null,8,["name"])],2),w("div",hj,[w("div",fj,[P.reachable?R("",!0):(_(),oe(pe,{key:0,name:_e(Kr),size:14,class:"name-health-icon"},null,8,["name"])),w("span",null,Z(P.displayName),1)]),w("div",pj,Z(B(P.category).label),1),xe(P)?(_(),M("div",_j,[w("span",mj,Z(xe(P)),1)])):R("",!0),ge(P)?(_(),M("div",{key:1,class:"card-controls",onClick:T[3]||(T[3]=Qe(()=>{},["stop"]))},[Y(we,{name:`hap-on-${P.uuid}`,"model-value":!!((N=ge(P))!=null&&N.value),"onUpdate:modelValue":W=>J(P,!!W)},null,8,["name","model-value","onUpdate:modelValue"])])):R("",!0)]),w("div",{class:Ee(["device-reachability",P.reachable?"online":"stale"]),title:P.reachable?"Responding":_e(o)},null,10,vj)]}),_:2},1032,["class","title","onClick"]))),128))])):(_(),oe(z,{key:1,columns:y,rows:g.value,"row-key":"key",size:"sm",zebra:"","stack-on-phone":"","sort-state":C.value,onSort:T[5]||(T[5]=P=>C.value=P),onRowClick:T[6]||(T[6]=P=>P.select())},{"cell-name":X(({row:P})=>[w("div",{class:"cell-name",title:P.healthTooltip||void 0},[Y(pe,{name:P.icon,size:16},null,8,["name"]),w("span",null,Z(P.name),1),P.unhealthy?(_(),oe(pe,{key:0,name:_e(Kr),size:14,class:"cell-health-icon"},null,8,["name"])):R("",!0)],8,gj)]),"cell-state":X(({row:P})=>[P.state?(_(),oe(V,{key:0,variant:P.unhealthy?"orange":P.stateOn?"green":"grey"},{default:X(()=>[ce(Z(P.state),1)]),_:2},1032,["variant"])):(_(),M("span",bj,"—"))]),_:1},8,["rows","sort-state"]))]))])}}}),wj=Kt(yj,[["__scopeId","data-v-14713b49"]]),Sj={class:"device-detail"},Cj={class:"detail-header"},kj={key:0,class:"detail-model"},Aj={key:0,class:"detail-message"},$j={class:"summary-row"},Mj=["onClick"],Lj={class:"tile-label"},Ej={class:"tile-value"},xj={class:"tile-unit"},Hj={key:0,class:"detail-message"},Tj={class:"chart-toolbar"},Nj={key:0,class:"resolution-note"},Pj={class:"chart-panel"},Oj={key:1,class:"chart-empty"},Rj={key:2,class:"chart-empty"},Ij={key:2,class:"detail-message"},Vj=Pe({__name:"DeviceDetailView",setup(e){const t=S0(),{phone:i}=vn(),n=U(()=>String(t.params.id??"")),r=G(null),s=G([]),a=G(""),l=G(!1),o=G(""),c=G(0),u=G([]),d=[{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}],f=d.map(B=>({id:B.key,label:B.label})),h=G("24h"),m=U(()=>{var B;return[{label:"Devices",to:{name:"devices"}},{label:((B=r.value)==null?void 0:B.name)??n.value}]}),p=U(()=>s.value.find(B=>B.key===a.value)??null);function b(B){const A=new Date(B*1e3);return i.value?h.value==="1h"||h.value==="24h"?A.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):A.toLocaleDateString(void 0,{month:"short",day:"numeric"}):A}const v=U(()=>{const B=p.value;if(!B||u.value.length===0)return[];const A={name:B.label,data:u.value.map(I=>({x:b(I.t),y:I.value??0}))};return u.value.some(I=>I.min!==void 0&&I.min!==null&&I.min!==I.value)?[A,{name:"Min",data:u.value.map(I=>({x:b(I.t),y:I.min??I.value??0}))},{name:"Max",data:u.value.map(I=>({x:b(I.t),y:I.max??I.value??0}))}]:[A]}),C=U(()=>{if(!c.value)return"";const B=c.value;return B<60?`${B}s resolution`:B<3600?`${Math.round(B/60)} min resolution`:`${Math.round(B/3600)} h resolution`});function y(B){var I,D;const A=(D=(I=r.value)==null?void 0:I.telemetry)==null?void 0:D[B.key],H=Number(A);return Number.isFinite(H)?H:null}function g(B,A){return B===null?"—":B.toFixed(A.precision??2)}function L(B){a.value!==B&&(a.value=B,O())}function x(B){h.value!==B&&(h.value=B,O())}async function $(){try{const{devices:B}=await Ze.devices(),A=B.find(H=>H.id===n.value);if(!A){o.value=`Device "${n.value}" was not found. It may have been removed, or its plugin stopped.`;return}r.value=A,s.value=A.metrics??[],!a.value&&s.value.length>0&&(a.value=s.value[0].key)}catch(B){o.value=`Could not load device: ${B.message}`}}async function O(){var I,D;if(!a.value)return;const B=d.find(q=>q.key===h.value),A=Math.floor(Date.now()/1e3),H=A-B.seconds;l.value=!0;try{const q=await Ze.deviceMetrics(n.value,{metric:a.value,from:H,to:A});u.value=((I=q.series)==null?void 0:I.points)??[],c.value=((D=q.series)==null?void 0:D.resolution)??0}catch(q){o.value=`Could not load history: ${q.message}`}finally{l.value=!1}}let F=null,ie=null;return at(async()=>{await $(),await O(),F=setInterval(()=>void $(),5e3),ie=setInterval(()=>void O(),3e4)}),Ot(()=>{F&&clearInterval(F),ie&&clearInterval(ie)}),Oe(n,async()=>{r.value=null,s.value=[],a.value="",u.value=[],o.value="",await $(),await O()}),(B,A)=>{var re;const H=Sg,I=ct,D=rf,q=ET;return _(),M("div",Sj,[w("div",Cj,[Y(H,{items:m.value},null,8,["items"]),(re=r.value)!=null&&re.model?(_(),M("span",kj,Z(r.value.model),1)):R("",!0)]),o.value?(_(),M("div",Aj,[Y(I,{variant:"error"},{default:X(()=>[ce(Z(o.value),1)]),_:1})])):r.value?(_(),M(ye,{key:1},[w("div",$j,[(_(!0),M(ye,null,Be(s.value,ae=>(_(),M("div",{key:ae.key,class:Ee(["summary-tile",{active:ae.key===a.value}]),onClick:ge=>L(ae.key)},[w("span",Lj,Z(ae.label),1),w("span",Ej,[ce(Z(g(y(ae),ae))+" ",1),w("span",xj,Z(ae.unit),1)])],10,Mj))),128))]),s.value.length===0?(_(),M("div",Hj,[Y(I,{variant:"helper"},{default:X(()=>[...A[1]||(A[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})])):(_(),M(ye,{key:1},[w("div",Tj,[Y(D,{class:"range-tabs",items:_e(f),"model-value":h.value,variant:"contained",size:"sm","aria-label":"History range","onUpdate:modelValue":A[0]||(A[0]=ae=>x(ae))},null,8,["items","model-value"]),C.value?(_(),M("span",Nj,Z(C.value),1)):R("",!0)]),w("div",Pj,[v.value.length>0&&v.value[0].data.length>0?(_(),oe(q,{key:0,series:v.value,height:_e(i)?220:320,"show-legend":v.value.length>1,"show-grid":!0,"show-tooltip":!0,points:!1,curve:"smooth"},null,8,["series","height","show-legend"])):l.value?(_(),M("div",Oj,"Loading…")):(_(),M("div",Rj," No data recorded yet for this range. History starts accumulating once the device reports. "))])],64))],64)):(_(),M("div",Ij,"Loading…"))])}}}),Dj=Kt(Vj,[["__scopeId","data-v-c58cbb13"]]),yl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Zj=yl("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"/>'),Bj=yl("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"/>'),__=yl("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"/>'),Fj=yl("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"/>'),zj=yl("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"/>'),Uj=yl("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"/>'),Wj="magic-wand",jj=Object.freeze(Object.defineProperty({__proto__:null,bold:Fj,default:__,duotone:Uj,fill:zj,glyphName:Wj,light:Bj,regular:__,thin:Zj},Symbol.toStringTag,{value:"Module"})),Kj={class:"config-view"},qj=Pe({__name:"ConfigView",setup(e){const t=Fs(),{resolved:i}=Ru(),n=G(null),r=Gn(null),s=G(!1),a=G(!1),l=G(null),o=G(!0),{phone:c}=vn(),u=U(()=>[{id:"format",label:"Format",icon:jj,variant:"ghost",onSelect:h},{id:"save",label:a.value?"Saved!":s.value?"Saving…":"Save",icon:a.value?yr:tu,variant:"primary",priority:"primary",loading:s.value,onSelect:f}]),d=m=>({minimap:{enabled:!m},wordWrap:m?"on":"off"});at(async()=>{t.setPage("Config",void 0,{fullBleed:!0});let m="{}";try{m=(await Ze.config.get()).content}catch(b){l.value=`Failed to load config: ${b}`}finally{o.value=!1}const p=await s5.init();p.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"}}}}}}}]}),n.value&&(Oe(i,b=>p.editor.setTheme(b==="dark"?"vs-dark":"vs")),r.value=p.editor.create(n.value,{value:m,language:"json",theme:i.value==="dark"?"vs-dark":"vs",fontSize:13,fontFamily:'"MesloLGS NF", monospace',...d(c.value),scrollBeyondLastLine:!1,formatOnPaste:!0,formatOnType:!0,tabSize:2,automaticLayout:!0,bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0},lineNumbers:"on",renderLineHighlight:"all",smoothScrolling:!0}),Oe(c,b=>{var v;return(v=r.value)==null?void 0:v.updateOptions(d(b))}))}),Ot(()=>{var m;(m=r.value)==null||m.dispose()});async function f(){var m;if(!s.value){s.value=!0,l.value=null,a.value=!1;try{const p=((m=r.value)==null?void 0:m.getValue())??"";await Ze.config.save(p),a.value=!0,setTimeout(()=>{a.value=!1},2500)}catch(p){l.value=String(p)}finally{s.value=!1}}}function h(){var m,p;(p=(m=r.value)==null?void 0:m.getAction("editor.action.formatDocument"))==null||p.run()}return(m,p)=>{const b=yg,v=Cr,C=y0;return _(),M("div",Kj,[(_(),oe(Fi,{defer:"",to:"#ob-topbar-left"},[p[0]||(p[0]=w("span",{class:"config-path"},"~/.openbridge/config.json",-1))])),(_(),oe(Fi,{defer:"",to:"#ob-topbar-right"},[Y(b,{items:u.value,size:"sm",overflow:"phone"},null,8,["items"])])),l.value?(_(),oe(v,{key:0,status:"error",title:l.value,flush:""},null,8,["title"])):R("",!0),o.value?(_(),oe(C,{key:1,size:"lg",label:"Loading config","show-label":"",class:"loading-state"})):(_(),M("div",{key:2,ref_key:"editorContainer",ref:n,class:"editor-container"},null,512))])}}}),Gj=Kt(qj,[["__scopeId","data-v-a002f5be"]]),Yj=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Xj=Yj("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"/>'),Jj=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Qj=Jj("palette","0 0 256 256",'<path d="M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"/>'),eK=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},tK=eK("robot","0 0 256 256",'<path d="M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"/>'),iK=Pe({__name:"NewTokenModal",props:{open:{type:Boolean}},emits:["close","created"],setup(e,{emit:t}){const i=e,n=t,r=G(""),s=G("read"),a=G(!1),l=G(""),o=G(),c=G(null);Oe(()=>i.open,f=>{f&&(r.value="",s.value="read",l.value="",o.value=void 0,requestAnimationFrame(()=>{var h;return(h=c.value)==null?void 0:h.focus()}))});function u(){o.value=r.value.trim()?void 0:"Give the token a name you will recognise later"}async function d(){if(u(),!o.value){a.value=!0,l.value="";try{const{token:f}=await Ze.access.createToken(r.value.trim(),s.value);n("created",f)}catch(f){l.value=f.message}finally{a.value=!1}}}return(f,h)=>{const m=Cr,p=os,b=Ia,v=WO,C=At,y=ef;return _(),oe(y,{"close-appearance":"button",open:e.open,title:"New token",size:"sm","close-on-overlay":!r.value,onClose:h[3]||(h[3]=g=>n("close"))},{footer:X(()=>[Y(C,{type:"button",variant:"secondary",onClick:h[2]||(h[2]=g=>n("close"))},{default:X(()=>[...h[4]||(h[4]=[ce("Cancel",-1)])]),_:1}),Y(C,{type:"submit",form:"new-token-form",variant:"primary",loading:a.value},{default:X(()=>[...h[5]||(h[5]=[ce("Create token",-1)])]),_:1},8,["loading"])]),default:X(()=>[Y(v,{id:"new-token-form",onSubmit:Qe(d,["prevent"])},{default:X(()=>[l.value?(_(),oe(m,{key:0,status:"error",variant:"inline",title:l.value},null,8,["title"])):R("",!0),Y(p,{id:"new-token-name",ref_key:"nameInput",ref:c,modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=g=>r.value=g),label:"Name",placeholder:"Claude on my laptop",error:o.value,onBlur:u},null,8,["modelValue","error"]),Y(b,{id:"new-token-access",modelValue:s.value,"onUpdate:modelValue":h[1]||(h[1]=g=>s.value=g),label:"Access",options:[{label:"Read only: devices, history, events and logs",value:"read"},{label:"Read and control: can also operate devices",value:"control"}]},null,8,["modelValue"])]),_:1})]),_:1},8,["open","close-on-overlay"])}}}),nK={class:"agents__header"},rK={class:"agents__icon"},sK={class:"agents__reveal"},aK={class:"agents__reveal"},lK={class:"agents__reveal"},oK={class:"agents__section-head"},cK=Pe({__name:"AgentAccessPanel",setup(e){const t=lf(),i=Du(),n=G(null),r=G(`${location.origin}/mcp`),s=G([]),a=G([]),l=G(!1),o=G(""),c=G(!1),u=G(""),d=x=>`claude mcp add --transport http openbridge ${r.value} --header "Authorization: Bearer ${x}"`,f=x=>x==="control"?"Read and control":"Read only",h=x=>x?new Date(x).toLocaleString():"Never",m=[{key:"name",header:"Name",primary:!0},{key:"access",header:"Access"},{key:"created",header:"Created",phoneMeta:!0},{key:"lastUsed",header:"Last used"},{key:"actions",header:"",align:"right"}],p=U(()=>s.value.map(x=>({id:x.id,name:x.owner?`${x.name} (${x.owner})`:x.name,access:f(x.access),created:h(x.createdAt),lastUsed:h(x.lastUsedAt)}))),b=[{key:"name",header:"Application",primary:!0},{key:"access",header:"Access"},{key:"connected",header:"Connected",phoneMeta:!0},{key:"lastUsed",header:"Last used"},{key:"actions",header:"",align:"right"}],v=U(()=>a.value.map(x=>({clientId:x.clientId,name:x.owners.length?`${x.name} (${x.owners.join(", ")})`:x.name,access:f(x.access),connected:h(x.connectedAt),lastUsed:h(x.lastUsedAt)})));async function C(){l.value=!0;try{const x=await Ze.access.get();n.value=x.enabled,x.enabled&&(r.value=x.endpoint,s.value=x.tokens,a.value=x.connections),o.value=""}catch(x){o.value=x.message}finally{l.value=!1}}at(C);function y(x){c.value=!1,u.value=x,C()}async function g(x,$){if(await t({title:"Revoke token",subjectLabel:"Token",subject:$,message:"Anything using this token loses access immediately.",confirmLabel:"Revoke"}))try{await Ze.access.revokeToken(x),i.success("Token revoked"),await C()}catch(F){i.error(F.message,{title:"Could not revoke"})}}async function L(x,$){if(await t({title:"Disconnect application",subjectLabel:"Application",subject:$,message:"Every sign-in this application holds stops working, including its refresh tokens.",confirmLabel:"Disconnect"}))try{await Ze.access.revokeConnection(x),i.success(`${$} disconnected`),await C()}catch(F){i.error(F.message,{title:"Could not disconnect"})}}return(x,$)=>{const O=qe,F=ct,ie=os,B=ik,A=Z2,H=Cr,I=At,D=t0,q=Q2,re=Zs;return _(),oe(re,{class:"agents"},{default:X(()=>[w("div",nK,[w("div",rK,[Y(O,{name:_e(tK),size:18},null,8,["name"])]),$[3]||($[3]=w("div",null,[w("h2",{class:"agents__title"},"AI agents"),w("p",{class:"agents__subtitle"}," Let Claude and other MCP clients read your devices and their history, and with control access, operate them. ")],-1))]),n.value===!1?(_(),oe(F,{key:0,variant:"helper"},{default:X(()=>[...$[4]||($[4]=[ce(" The MCP endpoint is off on this bridge. Start OpenBridge with ",-1),w("code",null,"OPENBRIDGE_MCP=on",-1),ce(" in its environment to turn it on, then create a token here. ",-1),w("a",{href:"https://docs.nubisco.io/openbridge/guide/mcp",target:"_blank",rel:"noopener"},"How to turn it on",-1)])]),_:1})):R("",!0),n.value?(_(),M(ye,{key:1},[u.value?(_(),oe(H,{key:0,status:"info",variant:"inline",title:"Copy this token now. It is not shown again.",dismissible:"",onClose:$[0]||($[0]=ae=>u.value="")},{default:X(()=>[Y(A,{label:"Token",orientation:"stack"},{default:X(({id:ae})=>[w("div",sK,[Y(ie,{id:ae,"model-value":u.value,readonly:"",size:"sm",class:"agents__mono"},null,8,["id","model-value"]),Y(B,{text:u.value,label:"Copy","copied-label":"Copied"},null,8,["text"])])]),_:1}),Y(A,{label:"Connect Claude Code",orientation:"stack"},{default:X(({id:ae})=>[w("div",aK,[Y(ie,{id:ae,"model-value":d(u.value),readonly:"",size:"sm",class:"agents__mono"},null,8,["id","model-value"]),Y(B,{text:d(u.value),label:"Copy","copied-label":"Copied"},null,8,["text"])])]),_:1})]),_:1})):R("",!0),Y(A,{label:"MCP endpoint",orientation:"stack"},{default:X(({id:ae})=>[w("div",lK,[Y(ie,{id:ae,"model-value":r.value,readonly:"",size:"sm",class:"agents__mono"},null,8,["id","model-value"]),Y(B,{text:r.value,label:"Copy","copied-label":"Copied"},null,8,["text"])])]),_:1}),Y(F,{variant:"helper"},{default:X(()=>[...$[5]||($[5]=[ce(" Every request needs a token, even when sign-in is off. Create one below and paste it into your client, or add the endpoint as a connector and approve it in your browser. claude.ai and the Claude app connect from the cloud, so their connectors need this bridge on an https address reachable from the internet. ",-1),w("a",{href:"https://docs.nubisco.io/openbridge/guide/mcp",target:"_blank",rel:"noopener"},"How to connect",-1)])]),_:1}),w("div",oK,[$[7]||($[7]=w("h3",{class:"agents__section-title"},"Tokens",-1)),Y(I,{size:"sm",variant:"primary",icon:Jg,onClick:$[1]||($[1]=ae=>c.value=!0)},{default:X(()=>[...$[6]||($[6]=[ce("New token",-1)])]),_:1})]),Y(q,{"stack-on-phone":"",columns:m,rows:p.value,"row-key":"id",size:"sm","aria-label":"Tokens",loading:l.value},{"cell-actions":X(({row:ae})=>[Y(I,{size:"sm",variant:"ghost",onClick:ge=>g(String(ae.id),String(ae.name))},{default:X(()=>[...$[8]||($[8]=[ce("Revoke",-1)])]),_:1},8,["onClick"])]),empty:X(()=>[Y(D,{size:"sm",title:"No tokens yet",description:"Create one to connect Claude Code or another MCP client."})]),_:1},8,["rows","loading"]),$[10]||($[10]=w("h3",{class:"agents__section-title"},"Connected applications",-1)),Y(q,{"stack-on-phone":"",columns:b,rows:v.value,"row-key":"clientId",size:"sm","aria-label":"Connected applications",loading:l.value},{"cell-actions":X(({row:ae})=>[Y(I,{size:"sm",variant:"ghost",onClick:ge=>L(String(ae.clientId),String(ae.name))},{default:X(()=>[...$[9]||($[9]=[ce(" Disconnect ",-1)])]),_:1},8,["onClick"])]),empty:X(()=>[Y(D,{size:"sm",title:"Nothing connected",description:"Applications you approve through a connector sign-in appear here."})]),_:1},8,["rows","loading"])],64)):R("",!0),o.value?(_(),oe(F,{key:2,variant:"error"},{default:X(()=>[ce(Z(o.value),1)]),_:1})):R("",!0),Y(iK,{open:c.value,onClose:$[2]||($[2]=ae=>c.value=!1),onCreated:y},null,8,["open"])]),_:1})}}}),uK=Kt(cK,[["__scopeId","data-v-9d40dd82"]]),dK={class:"settings-view"},hK={class:"card-header"},fK={class:"card-icon"},pK={class:"pin-row"},_K={class:"card-actions"},mK={key:0,class:"action-hint"},vK={class:"card-header"},gK={class:"card-icon"},bK={class:"update-row"},yK={class:"update-versions"},wK={class:"update-actions"},SK={class:"update-command"},CK={key:3,class:"update-error-row"},kK={class:"card-header"},AK={class:"card-icon"},$K={class:"info-title"},MK=Pe({__name:"SettingsView",setup(e){const t=Fs(),i=rl(),n=U(()=>{var H;return!!((H=i.config.value)!=null&&H.enabled&&i.user.value)}),r=Ru(),s=[{label:"Light",value:"light"},{label:"Dark",value:"dark"},{label:"Match my system",value:"system"}],a=[{value:"debug",label:"Debug"},{value:"info",label:"Info"},{value:"warn",label:"Warn"},{value:"error",label:"Error"}],l=G(!1),o=G(!1),c=G(null),u=G(!1),d=G(null),f=G(!1),h=G(!1),m=G(!1),p=G(null),b=G(""),v=G(0),C=G("");let y=null;async function g(){f.value=!0,p.value=null;try{d.value=await Ze.updates.check()}catch(H){p.value=String(H)}finally{f.value=!1}}function L(){const H=location.protocol==="https:"?"wss":"ws";y=new WebSocket(`${H}://${location.host}/ws/updates`),y.onmessage=I=>{try{const D=JSON.parse(I.data);b.value=D.stage??"",v.value=Math.round((D.progress??0)*100),C.value=D.message??"",D.stage==="restarting"&&x(),D.stage==="error"&&(p.value=D.message,h.value=!1)}catch{}},y.onclose=()=>{h.value&&x()}}function x(){let H=0;const I=setInterval(async()=>{H++;try{await Ze.health(),clearInterval(I),h.value=!1,b.value="",C.value="",d.value=null,await g()}catch{}H>60&&(clearInterval(I),h.value=!1,p.value="Timed out waiting for restart")},2e3)}async function $(){if(!h.value){h.value=!0,m.value=!1,p.value=null,b.value="downloading",C.value="Starting update...",v.value=0,L();try{await Ze.updates.apply(),m.value=!0}catch(H){p.value=H instanceof Error?H.message:String(H),h.value=!1}}}async function O(){if(!h.value){h.value=!0,p.value=null,C.value="Rolling back...";try{await Ze.updates.rollback(),x()}catch(H){p.value=H instanceof Error?H.message:String(H),h.value=!1}}}const F=G({name:"OpenBridge",port:8582,hapPort:51829,pincode:"031-45-154",username:"",logLevel:"info"});at(async()=>{t.setPage("Settings");try{const H=await Ze.bridge();H&&typeof H=="object"&&(F.value={name:H.name??"OpenBridge",port:H.port??8582,hapPort:H.hapPort??51829,pincode:H.pincode??"031-45-154",username:H.username??"",logLevel:H.logLevel??"info"})}catch{}g()}),Ei(()=>{y&&(y.close(),y=null)});async function ie(){if(!l.value){l.value=!0,c.value=null,o.value=!1;try{const H={name:F.value.name,port:Number(F.value.port),hapPort:Number(F.value.hapPort),pincode:F.value.pincode,logLevel:F.value.logLevel};F.value.username&&(H.username=F.value.username),await Ze.saveBridge(H),o.value=!0,setTimeout(()=>{o.value=!1},3e3)}catch(H){c.value=String(H)}finally{l.value=!1}}}async function B(){if(!u.value){u.value=!0;try{await Ze.daemon.restart();let H=0;const I=setInterval(async()=>{H++;try{await Ze.health(),clearInterval(I),location.reload()}catch{}H>60&&(clearInterval(I),u.value=!1)},1e3)}catch{u.value=!1}}}function A(){const H=()=>Math.floor(Math.random()*9)+1,I=()=>`${H()}${Math.floor(Math.random()*10)}${Math.floor(Math.random()*10)}`,D=()=>`${Math.floor(Math.random()*10)}${Math.floor(Math.random()*10)}`;F.value.pincode=`${I()}-${D()}-${I()}`}return(H,I)=>{const D=qe,q=os,re=Z2,ae=nf,ge=At,xe=Ia,J=Mi,ve=ct,fe=Zs,he=Jn,te=lb,ue=Lg,j=Xn("nb-tooltip");return _(),M("div",dK,[Y(fe,{class:"settings-card"},{default:X(()=>[w("div",hK,[w("div",fK,[Y(D,{name:_e(Xj),size:18},null,8,["name"])]),I[7]||(I[7]=w("div",null,[w("h2",{class:"card-title"},"Bridge"),w("p",{class:"card-subtitle"},"HomeKit bridge identity and network settings")],-1))]),Y(J,{dir:"col",gap:"sm",class:"field-grid"},{default:X(()=>[Y(re,{label:"Bridge name",hint:"Displayed in the Home app"},{default:X(()=>[Y(q,{modelValue:F.value.name,"onUpdate:modelValue":I[0]||(I[0]=K=>F.value.name=K),size:"sm",placeholder:"OpenBridge"},null,8,["modelValue"])]),_:1}),Y(re,{label:"HTTP port",hint:"OpenBridge web UI & API",control:"fit"},{default:X(()=>[Y(ae,{modelValue:F.value.port,"onUpdate:modelValue":I[1]||(I[1]=K=>F.value.port=K),size:"sm",min:1024,max:65535},null,8,["modelValue"])]),_:1}),Y(re,{label:"HAP port",hint:"HomeKit accessory protocol port",control:"fit"},{default:X(()=>[Y(ae,{modelValue:F.value.hapPort,"onUpdate:modelValue":I[2]||(I[2]=K=>F.value.hapPort=K),size:"sm",min:1024,max:65535},null,8,["modelValue"])]),_:1}),Y(re,{label:"PIN code",hint:"Format: XXX-XX-XXX, used to pair with HomeKit"},{default:X(()=>[w("div",pK,[Y(q,{modelValue:F.value.pincode,"onUpdate:modelValue":I[3]||(I[3]=K=>F.value.pincode=K),size:"sm",placeholder:"031-45-154"},null,8,["modelValue"]),Tt(Y(ge,{variant:"ghost",size:"sm",icon:Ps,"aria-label":"Generate random PIN",onClick:A},null,512),[[j,{body:"Generate random PIN"}]])])]),_:1}),Y(re,{label:"Bridge MAC",hint:"Leave empty to auto-generate. Change this only if pairing with HomeKit fails."},{default:X(()=>[Y(q,{modelValue:F.value.username,"onUpdate:modelValue":I[4]||(I[4]=K=>F.value.username=K),size:"sm",class:"mono",placeholder:"AA:BB:CC:DD:EE:FF"},null,8,["modelValue"])]),_:1}),Y(re,{label:"Log level",control:"fit"},{default:X(()=>[Y(xe,{modelValue:F.value.logLevel,"onUpdate:modelValue":I[5]||(I[5]=K=>F.value.logLevel=K),size:"sm",options:a},null,8,["modelValue"])]),_:1})]),_:1}),c.value?(_(),oe(ve,{key:0,variant:"error"},{default:X(()=>[ce(Z(c.value),1)]),_:1})):R("",!0),w("div",_K,[Y(ge,{variant:"primary",size:"sm",loading:l.value,icon:o.value?yr:tu,onClick:ie},{default:X(()=>[ce(Z(o.value?"Saved!":"Save"),1)]),_:1},8,["loading","icon"]),Y(ge,{variant:"secondary",size:"sm",outlined:"",loading:u.value,icon:Ps,onClick:B},{default:X(()=>[ce(Z(u.value?"Restarting…":"Save & Restart OpenBridge"),1)]),_:1},8,["loading"]),o.value&&!u.value?(_(),M("span",mK,[Y(D,{name:_e(Fc),size:12},null,8,["name"]),I[8]||(I[8]=ce(" Restart the daemon for changes to take effect ",-1))])):R("",!0)])]),_:1}),Y(fe,{class:"settings-card"},{default:X(()=>{var K,se;return[w("div",vK,[w("div",gK,[Y(D,{name:_e(oh),size:18},null,8,["name"])]),I[9]||(I[9]=w("div",null,[w("h2",{class:"card-title"},"Updates"),w("p",{class:"card-subtitle"},"OpenBridge daemon and UI")],-1))]),w("div",bK,[w("div",yK,[Y(he,{variant:"grey"},{default:X(()=>{var Q;return[ce("Current: v"+Z(((Q=d.value)==null?void 0:Q.current)??"…"),1)]}),_:1}),d.value&&!f.value?(_(),M(ye,{key:0},[d.value.updateAvailable?(_(),oe(he,{key:0,variant:"blue"},{default:X(()=>[ce("Available: v"+Z(d.value.latest),1)]),_:1})):d.value.latest===null?(_(),oe(he,{key:1,variant:"orange"},{default:X(()=>[...I[10]||(I[10]=[ce("Unable to check",-1)])]),_:1})):(_(),oe(he,{key:2,variant:"green"},{default:X(()=>[...I[11]||(I[11]=[ce("Up to date",-1)])]),_:1}))],64)):R("",!0),f.value?(_(),oe(he,{key:1,variant:"grey"},{default:X(()=>[...I[12]||(I[12]=[ce("Checking…",-1)])]),_:1})):R("",!0)]),w("div",wK,[Y(ge,{variant:"secondary",size:"sm",outlined:"",loading:f.value,icon:Ps,onClick:g},{default:X(()=>[...I[13]||(I[13]=[ce(" Check ",-1)])]),_:1},8,["loading"]),(K=d.value)!=null&&K.updateAvailable&&d.value.updateMethod==="self"?(_(),oe(ge,{key:0,variant:"primary",size:"sm",loading:h.value,icon:df,onClick:$},{default:X(()=>[ce(Z(h.value?"Updating…":"Install update"),1)]),_:1},8,["loading"])):R("",!0)])]),h.value&&b.value?(_(),oe(te,{key:0,label:C.value,value:b.value==="downloading"&&v.value>0?v.value:void 0,max:100,status:"active",size:"sm"},null,8,["label","value"])):R("",!0),h.value&&!b.value?(_(),oe(ve,{key:1,variant:"helper"},{default:X(()=>[...I[14]||(I[14]=[ce(" Starting update... This page will reconnect automatically. ",-1)])]),_:1})):R("",!0),((se=d.value)==null?void 0:se.updateMethod)==="manual"&&d.value.updateAvailable?(_(),oe(ve,{key:2,variant:"helper"},{default:X(()=>[d.value.pinnedTo?(_(),M(ye,{key:0},[ce(" This deployment is pinned to "+Z(d.value.pinnedTo)+". To move version: ",1)],64)):d.value.updateBlockedBy?(_(),M(ye,{key:1},[ce(" Self-update is not available here ("+Z(d.value.updateBlockedBy)+"). To update: ",1)],64)):(_(),M(ye,{key:2},[ce("Self-update is not available for this install. To update:")],64)),w("code",SK,Z(d.value.updateCommand),1)]),_:1})):R("",!0),p.value?(_(),M("div",CK,[Y(ve,{variant:"error"},{default:X(()=>[ce(Z(p.value),1)]),_:1}),m.value?(_(),oe(ge,{key:0,variant:"ghost",size:"sm",onClick:O},{default:X(()=>[...I[15]||(I[15]=[ce("Rollback",-1)])]),_:1})):R("",!0)])):R("",!0)]}),_:1}),Y(uK),n.value?R("",!0):(_(),oe(fe,{key:0,class:"settings-card"},{default:X(()=>[w("div",kK,[w("div",AK,[Y(D,{name:_e(Qj),size:18},null,8,["name"])]),I[16]||(I[16]=w("div",null,[w("h2",{class:"card-title"},"Appearance"),w("p",{class:"card-subtitle"},"Theme for this browser")],-1))]),Y(J,{dir:"col",gap:"sm",class:"field-grid"},{default:X(()=>[Y(re,{label:"Theme"},{default:X(()=>[Y(ue,{name:"settings-theme",options:s,"model-value":_e(r).theme.value,"onUpdate:modelValue":I[6]||(I[6]=K=>_e(r).setTheme(K))},null,8,["model-value"])]),_:1})]),_:1})]),_:1})),Y(fe,{class:"settings-card info-card"},{default:X(()=>[w("h3",$K,[Y(D,{name:_e(Fc),size:14},null,8,["name"]),I[17]||(I[17]=ce(" How to pair with HomeKit ",-1))]),I[18]||(I[18]=w("ol",{class:"info-list"},[w("li",null,[ce(" Open the "),w("strong",null,"Home"),ce(" app on your iPhone or iPad ")]),w("li",null,[ce(" Tap "),w("strong",null,"+"),ce(" → "),w("strong",null,"Add Accessory")]),w("li",null,[ce(" Scan the QR code from the Dashboard, or tap "),w("strong",null,"More options"),ce(" and enter the PIN code manually ")]),w("li",null,"If you change the PIN or username, unpair first from the Home app, then re-pair")],-1))]),_:1})])}}}),LK=Kt(MK,[["__scopeId","data-v-b48dca3e"]]);/**
71
- * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
72
- * @license MIT
73
- *
74
- * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
75
- * @license MIT
76
- *
77
- * Originally forked from (with the author's permission):
78
- * Fabrice Bellard's javascript vt100 for jslinux:
79
- * http://bellard.org/jslinux/
80
- * Copyright (c) 2011 Fabrice Bellard
81
- */var d5=Object.defineProperty,EK=Object.getOwnPropertyDescriptor,xK=(e,t)=>{for(var i in t)d5(e,i,{get:t[i],enumerable:!0})},qt=(e,t,i,n)=>{for(var r=n>1?void 0:n?EK(t,i):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(r=(n?a(t,i,r):a(r))||r);return n&&r&&d5(t,i,r),r},Ie=(e,t)=>(i,n)=>t(i,n,e),m_="Terminal input",mh={get:()=>m_,set:e=>m_=e},v_="Too much output to announce, navigate to rows manually to read",vh={get:()=>v_,set:e=>v_=e};function HK(e){return e.replace(/\r?\n/g,"\r")}function TK(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function NK(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function PK(e,t,i,n){if(e.stopPropagation(),e.clipboardData){let r=e.clipboardData.getData("text/plain");h5(r,t,i,n)}}function h5(e,t,i,n){e=HK(e),e=TK(e,i.decPrivateModes.bracketedPasteMode&&n.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=""}function f5(e,t,i){let n=i.getBoundingClientRect(),r=e.clientX-n.left-10,s=e.clientY-n.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${s}px`,t.style.zIndex="1000",t.focus()}function g_(e,t,i,n,r){f5(e,t,i),r&&n.rightClickSelect(e),t.value=n.selectionText,t.select()}function Br(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Gu(e,t=0,i=e.length){let n="";for(let r=t;r<i;++r){let s=e[r];s>65535?(s-=65536,n+=String.fromCharCode((s>>10)+55296)+String.fromCharCode(s%1024+56320)):n+=String.fromCharCode(s)}return n}var OK=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let n=0,r=0;if(this._interim){let s=e.charCodeAt(r++);56320<=s&&s<=57343?t[n++]=(this._interim-55296)*1024+s-56320+65536:(t[n++]=this._interim,t[n++]=s),this._interim=0}for(let s=r;s<i;++s){let a=e.charCodeAt(s);if(55296<=a&&a<=56319){if(++s>=i)return this._interim=a,n;let l=e.charCodeAt(s);56320<=l&&l<=57343?t[n++]=(a-55296)*1024+l-56320+65536:(t[n++]=a,t[n++]=l);continue}a!==65279&&(t[n++]=a)}return n}},RK=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let n=0,r,s,a,l,o=0,c=0;if(this.interim[0]){let f=!1,h=this.interim[0];h&=(h&224)===192?31:(h&240)===224?15:7;let m=0,p;for(;(p=this.interim[++m]&63)&&m<4;)h<<=6,h|=p;let b=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,v=b-m;for(;c<v;){if(c>=i)return 0;if(p=e[c++],(p&192)!==128){c--,f=!0;break}else this.interim[m++]=p,h<<=6,h|=p&63}f||(b===2?h<128?c--:t[n++]=h:b===3?h<2048||h>=55296&&h<=57343||h===65279||(t[n++]=h):h<65536||h>1114111||(t[n++]=h)),this.interim.fill(0)}let u=i-4,d=c;for(;d<i;){for(;d<u&&!((r=e[d])&128)&&!((s=e[d+1])&128)&&!((a=e[d+2])&128)&&!((l=e[d+3])&128);)t[n++]=r,t[n++]=s,t[n++]=a,t[n++]=l,d+=4;if(r=e[d++],r<128)t[n++]=r;else if((r&224)===192){if(d>=i)return this.interim[0]=r,n;if(s=e[d++],(s&192)!==128){d--;continue}if(o=(r&31)<<6|s&63,o<128){d--;continue}t[n++]=o}else if((r&240)===224){if(d>=i)return this.interim[0]=r,n;if(s=e[d++],(s&192)!==128){d--;continue}if(d>=i)return this.interim[0]=r,this.interim[1]=s,n;if(a=e[d++],(a&192)!==128){d--;continue}if(o=(r&15)<<12|(s&63)<<6|a&63,o<2048||o>=55296&&o<=57343||o===65279)continue;t[n++]=o}else if((r&248)===240){if(d>=i)return this.interim[0]=r,n;if(s=e[d++],(s&192)!==128){d--;continue}if(d>=i)return this.interim[0]=r,this.interim[1]=s,n;if(a=e[d++],(a&192)!==128){d--;continue}if(d>=i)return this.interim[0]=r,this.interim[1]=s,this.interim[2]=a,n;if(l=e[d++],(l&192)!==128){d--;continue}if(o=(r&7)<<18|(s&63)<<12|(a&63)<<6|l&63,o<65536||o>1114111)continue;t[n++]=o}}return n}},p5="",Ur=" ",A0=class _5{constructor(){this.fg=0,this.bg=0,this.extended=new su}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 _5;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}},su=class m5{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 m5(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},pn=class v5 extends A0{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new su,this.combinedData=""}static fromCharData(t){let i=new v5;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?Br(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 n=t[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=t[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-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()]}},b_="di$target",gh="di$dependencies",z1=new Map;function IK(e){return e[gh]||[]}function mi(e){if(z1.has(e))return z1.get(e);let t=function(i,n,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");VK(t,i,r)};return t._id=e,z1.set(e,t),t}function VK(e,t,i){t[b_]===t?t[gh].push({id:e,index:i}):(t[gh]=[{id:e,index:i}],t[b_]=t)}var Di=mi("BufferService"),g5=mi("CoreMouseService"),zs=mi("CoreService"),DK=mi("CharsetService"),vf=mi("InstantiationService"),b5=mi("LogService"),Zi=mi("OptionsService"),y5=mi("OscLinkService"),ZK=mi("UnicodeService"),$0=mi("DecorationService"),bh=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 n=[],r=this._optionsService.rawOptions.linkHandler,s=new pn,a=i.getTrimmedLength(),l=-1,o=-1,c=!1;for(let d=0;d<a;d++)if(!(o===-1&&!i.hasContent(d))){if(i.loadCell(d,s),s.hasExtendedAttrs()&&s.extended.urlId)if(o===-1){o=d,l=s.extended.urlId;continue}else c=s.extended.urlId!==l;else o!==-1&&(c=!0);if(c||o!==-1&&d===a-1){let f=(u=this._oscLinkService.getLinkData(l))==null?void 0:u.uri;if(f){let h={start:{x:o+1,y:e},end:{x:d+(!c&&d===a-1?1:0),y:e}},m=!1;if(!(r!=null&&r.allowNonHttpProtocols))try{let p=new URL(f);["http:","https:"].includes(p.protocol)||(m=!0)}catch{m=!0}m||n.push({text:f,range:h,activate:(p,b)=>r?r.activate(p,b,h):BK(p,b),hover:(p,b)=>{var v;return(v=r==null?void 0:r.hover)==null?void 0:v.call(r,p,b,h)},leave:(p,b)=>{var v;return(v=r==null?void 0:r.leave)==null?void 0:v.call(r,p,b,h)}})}c=!1,s.hasExtendedAttrs()&&s.extended.urlId?(o=d,l=s.extended.urlId):(o=-1,l=-1)}}t(n)}};bh=qt([Ie(0,Di),Ie(1,Zi),Ie(2,y5)],bh);function BK(e,t){if(confirm(`Do you want to navigate to ${t}?
82
-
83
- 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 Yu=mi("CharSizeService"),Ar=mi("CoreBrowserService"),gf=mi("MouseService"),$r=mi("RenderService"),FK=mi("SelectionService"),w5=mi("CharacterJoinerService"),wl=mi("ThemeService"),S5=mi("LinkProviderService"),zK=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?y_.isErrorNoTelemetry(e)?new y_(e.message+`
84
-
85
- `+e.stack):new Error(e.message+`
86
-
87
- `+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)}},UK=new zK;function vc(e){WK(e)||UK.onUnexpectedError(e)}var yh="Canceled";function WK(e){return e instanceof jK?!0:e instanceof Error&&e.name===yh&&e.message===yh}var jK=class extends Error{constructor(){super(yh),this.name=this.message}};function KK(e){return new Error(`Illegal argument: ${e}`)}var y_=class wh extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof wh)return t;let i=new wh;return i.message=t.message,i.stack=t.stack,i}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Sh=class C5 extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,C5.prototype)}};function ji(e,t=0){return e[e.length-(1+t)]}var qK;(e=>{function t(s){return s<0}e.isLessThan=t;function i(s){return s<=0}e.isLessThanOrEqual=i;function n(s){return s>0}e.isGreaterThan=n;function r(s){return s===0}e.isNeitherLessOrGreaterThan=r,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(qK||(qK={}));function GK(e,t){let i=this,n=!1,r;return function(){return n||(n=!0,t||(r=e.apply(i,arguments))),r}}var k5;(e=>{function t(g){return g&&typeof g=="object"&&typeof g[Symbol.iterator]=="function"}e.is=t;let i=Object.freeze([]);function n(){return i}e.empty=n;function*r(g){yield g}e.single=r;function s(g){return t(g)?g:r(g)}e.wrap=s;function a(g){return g||i}e.from=a;function*l(g){for(let L=g.length-1;L>=0;L--)yield g[L]}e.reverse=l;function o(g){return!g||g[Symbol.iterator]().next().done===!0}e.isEmpty=o;function c(g){return g[Symbol.iterator]().next().value}e.first=c;function u(g,L){let x=0;for(let $ of g)if(L($,x++))return!0;return!1}e.some=u;function d(g,L){for(let x of g)if(L(x))return x}e.find=d;function*f(g,L){for(let x of g)L(x)&&(yield x)}e.filter=f;function*h(g,L){let x=0;for(let $ of g)yield L($,x++)}e.map=h;function*m(g,L){let x=0;for(let $ of g)yield*L($,x++)}e.flatMap=m;function*p(...g){for(let L of g)yield*L}e.concat=p;function b(g,L,x){let $=x;for(let O of g)$=L($,O);return $}e.reduce=b;function*v(g,L,x=g.length){for(L<0&&(L+=g.length),x<0?x+=g.length:x>g.length&&(x=g.length);L<x;L++)yield g[L]}e.slice=v;function C(g,L=Number.POSITIVE_INFINITY){let x=[];if(L===0)return[x,g];let $=g[Symbol.iterator]();for(let O=0;O<L;O++){let F=$.next();if(F.done)return[x,e.empty()];x.push(F.value)}return[x,{[Symbol.iterator](){return $}}]}e.consume=C;async function y(g){let L=[];for await(let x of g)L.push(x);return Promise.resolve(L)}e.asyncToArray=y})(k5||(k5={}));function Is(e){if(k5.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(n){t.push(n)}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 YK(...e){return Dt(()=>Is(e))}function Dt(e){return{dispose:GK(()=>{e()})}}var A5=class $5{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{Is(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?$5.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)}};A5.DISABLE_DISPOSED_WARNING=!1;var Gr=A5,rt=class{constructor(){this._store=new Gr,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)}};rt.None=Object.freeze({dispose(){}});var Sa=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}},mr=typeof window=="object"?window:globalThis,Ch=class kh{constructor(t){this.element=t,this.next=kh.Undefined,this.prev=kh.Undefined}};Ch.Undefined=new Ch(void 0);var Zt=Ch,w_=class{constructor(){this._first=Zt.Undefined,this._last=Zt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Zt.Undefined}clear(){let e=this._first;for(;e!==Zt.Undefined;){let t=e.next;e.prev=Zt.Undefined,e.next=Zt.Undefined,e=t}this._first=Zt.Undefined,this._last=Zt.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new Zt(e);if(this._first===Zt.Undefined)this._first=i,this._last=i;else if(t){let r=this._last;this._last=i,i.prev=r,r.next=i}else{let r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Zt.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Zt.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Zt.Undefined&&e.next!==Zt.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Zt.Undefined&&e.next===Zt.Undefined?(this._first=Zt.Undefined,this._last=Zt.Undefined):e.next===Zt.Undefined?(this._last=this._last.prev,this._last.next=Zt.Undefined):e.prev===Zt.Undefined&&(this._first=this._first.next,this._first.prev=Zt.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Zt.Undefined;)yield e.element,e=e.next}},XK=globalThis.performance&&typeof globalThis.performance.now=="function",JK=class M5{static create(t){return new M5(t)}constructor(t){this._now=XK&&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}},yi;(e=>{e.None=()=>rt.None;function t(A,H){return d(A,()=>{},0,void 0,!0,void 0,H)}e.defer=t;function i(A){return(H,I=null,D)=>{let q=!1,re;return re=A(ae=>{if(!q)return re?re.dispose():q=!0,H.call(I,ae)},null,D),q&&re.dispose(),re}}e.once=i;function n(A,H,I){return c((D,q=null,re)=>A(ae=>D.call(q,H(ae)),null,re),I)}e.map=n;function r(A,H,I){return c((D,q=null,re)=>A(ae=>{H(ae),D.call(q,ae)},null,re),I)}e.forEach=r;function s(A,H,I){return c((D,q=null,re)=>A(ae=>H(ae)&&D.call(q,ae),null,re),I)}e.filter=s;function a(A){return A}e.signal=a;function l(...A){return(H,I=null,D)=>{let q=YK(...A.map(re=>re(ae=>H.call(I,ae))));return u(q,D)}}e.any=l;function o(A,H,I,D){let q=I;return n(A,re=>(q=H(q,re),q),D)}e.reduce=o;function c(A,H){let I,D={onWillAddFirstListener(){I=A(q.fire,q)},onDidRemoveLastListener(){I==null||I.dispose()}},q=new Ne(D);return H==null||H.add(q),q.event}function u(A,H){return H instanceof Array?H.push(A):H&&H.add(A),A}function d(A,H,I=100,D=!1,q=!1,re,ae){let ge,xe,J,ve=0,fe,he={leakWarningThreshold:re,onWillAddFirstListener(){ge=A(ue=>{ve++,xe=H(xe,ue),D&&!J&&(te.fire(xe),xe=void 0),fe=()=>{let j=xe;xe=void 0,J=void 0,(!D||ve>1)&&te.fire(j),ve=0},typeof I=="number"?(clearTimeout(J),J=setTimeout(fe,I)):J===void 0&&(J=0,queueMicrotask(fe))})},onWillRemoveListener(){q&&ve>0&&(fe==null||fe())},onDidRemoveLastListener(){fe=void 0,ge.dispose()}},te=new Ne(he);return ae==null||ae.add(te),te.event}e.debounce=d;function f(A,H=0,I){return e.debounce(A,(D,q)=>D?(D.push(q),D):[q],H,void 0,!0,void 0,I)}e.accumulate=f;function h(A,H=(D,q)=>D===q,I){let D=!0,q;return s(A,re=>{let ae=D||!H(re,q);return D=!1,q=re,ae},I)}e.latch=h;function m(A,H,I){return[e.filter(A,H,I),e.filter(A,D=>!H(D),I)]}e.split=m;function p(A,H=!1,I=[],D){let q=I.slice(),re=A(xe=>{q?q.push(xe):ge.fire(xe)});D&&D.add(re);let ae=()=>{q==null||q.forEach(xe=>ge.fire(xe)),q=null},ge=new Ne({onWillAddFirstListener(){re||(re=A(xe=>ge.fire(xe)),D&&D.add(re))},onDidAddFirstListener(){q&&(H?setTimeout(ae):ae())},onDidRemoveLastListener(){re&&re.dispose(),re=null}});return D&&D.add(ge),ge.event}e.buffer=p;function b(A,H){return(I,D,q)=>{let re=H(new C);return A(function(ae){let ge=re.evaluate(ae);ge!==v&&I.call(D,ge)},void 0,q)}}e.chain=b;let v=Symbol("HaltChainable");class C{constructor(){this.steps=[]}map(H){return this.steps.push(H),this}forEach(H){return this.steps.push(I=>(H(I),I)),this}filter(H){return this.steps.push(I=>H(I)?I:v),this}reduce(H,I){let D=I;return this.steps.push(q=>(D=H(D,q),D)),this}latch(H=(I,D)=>I===D){let I=!0,D;return this.steps.push(q=>{let re=I||!H(q,D);return I=!1,D=q,re?q:v}),this}evaluate(H){for(let I of this.steps)if(H=I(H),H===v)break;return H}}function y(A,H,I=D=>D){let D=(...ge)=>ae.fire(I(...ge)),q=()=>A.on(H,D),re=()=>A.removeListener(H,D),ae=new Ne({onWillAddFirstListener:q,onDidRemoveLastListener:re});return ae.event}e.fromNodeEventEmitter=y;function g(A,H,I=D=>D){let D=(...ge)=>ae.fire(I(...ge)),q=()=>A.addEventListener(H,D),re=()=>A.removeEventListener(H,D),ae=new Ne({onWillAddFirstListener:q,onDidRemoveLastListener:re});return ae.event}e.fromDOMEventEmitter=g;function L(A){return new Promise(H=>i(A)(H))}e.toPromise=L;function x(A){let H=new Ne;return A.then(I=>{H.fire(I)},()=>{H.fire(void 0)}).finally(()=>{H.dispose()}),H.event}e.fromPromise=x;function $(A,H){return A(I=>H.fire(I))}e.forward=$;function O(A,H,I){return H(I),A(D=>H(D))}e.runAndSubscribe=O;class F{constructor(H,I){this._observable=H,this._counter=0,this._hasChanged=!1;let D={onWillAddFirstListener:()=>{H.addObserver(this)},onDidRemoveLastListener:()=>{H.removeObserver(this)}};this.emitter=new Ne(D),I&&I.add(this.emitter)}beginUpdate(H){this._counter++}handlePossibleChange(H){}handleChange(H,I){this._hasChanged=!0}endUpdate(H){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ie(A,H){return new F(A,H).emitter.event}e.fromObservable=ie;function B(A){return(H,I,D)=>{let q=0,re=!1,ae={beginUpdate(){q++},endUpdate(){q--,q===0&&(A.reportChanges(),re&&(re=!1,H.call(I)))},handlePossibleChange(){},handleChange(){re=!0}};A.addObserver(ae),A.reportChanges();let ge={dispose(){A.removeObserver(ae)}};return D instanceof Gr?D.add(ge):Array.isArray(D)&&D.push(ge),ge}}e.fromObservableLight=B})(yi||(yi={}));var Ah=class $h{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${$h._idPool++}`,$h.all.add(this)}start(t){this._stopWatch=new JK,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}}};Ah.all=new Set,Ah._idPool=0;var QK=Ah,eq=-1,L5=class E5{constructor(t,i,n=(E5._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=i,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)==null||t.clear()}check(t,i){let n=this.threshold;if(n<=0||i<n)return;this._stacks||(this._stacks=new Map);let r=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);let o=new nq(l,s);this._errorHandler(o)}return()=>{let s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,i=0;for(let[n,r]of this._stacks)(!t||i<r)&&(t=[n,r],i=r);return t}};L5._idPool=1;var tq=L5,iq=class x5{constructor(t){this.value=t}static create(){let t=new Error;return new x5(t.stack??"")}print(){console.warn(this.value.split(`
88
- `).slice(2).join(`
89
- `))}},nq=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},rq=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},sq=0,U1=class{constructor(e){this.value=e,this.id=sq++}},aq=2,lq,Ne=class{constructor(e){var t,i,n,r;this._size=0,this._options=e,this._leakageMon=(t=this._options)!=null&&t.leakWarningThreshold?new tq((e==null?void 0:e.onListenerError)??vc,((i=this._options)==null?void 0:i.leakWarningThreshold)??eq):void 0,this._perfMon=(n=this._options)!=null&&n._profName?new QK(this._options._profName):void 0,this._deliveryQueue=(r=this._options)==null?void 0:r.deliveryQueue}dispose(){var e,t,i,n;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),(n=this._leakageMon)==null||n.dispose())}get event(){return this._event??(this._event=(e,t,i)=>{var a,l,o,c,u;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let d=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(d);let f=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],h=new rq(`${d}. HINT: Stack shows most frequent listener (${f[1]}-times)`,f[0]);return(((a=this._options)==null?void 0:a.onListenerError)||vc)(h),rt.None}if(this._disposed)return rt.None;t&&(e=e.bind(t));let n=new U1(e),r;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(n.stack=iq.create(),r=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof U1?(this._deliveryQueue??(this._deliveryQueue=new oq),this._listeners=[this._listeners,n]):this._listeners.push(n):((o=(l=this._options)==null?void 0:l.onWillAddFirstListener)==null||o.call(l,this),this._listeners=n,(u=(c=this._options)==null?void 0:c.onDidAddFirstListener)==null||u.call(c,this)),this._size++;let s=Dt(()=>{r==null||r(),this._removeListener(n)});return i instanceof Gr?i.add(s):Array.isArray(i)&&i.push(s),s}),this._event}_removeListener(e){var r,s,a,l;if((s=(r=this._options)==null?void 0:r.onWillRemoveListener)==null||s.call(r,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(l=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||l.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 n=this._deliveryQueue.current===this;if(this._size*aq<=t.length){let o=0;for(let c=0;c<t.length;c++)t[c]?t[o++]=t[c]:n&&(this._deliveryQueue.end--,o<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=o}}_deliver(e,t){var n;if(!e)return;let i=((n=this._options)==null?void 0:n.onListenerError)||vc;if(!i){e.value(t);return}try{e.value(t)}catch(r){i(r)}}_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,n,r;if((t=this._deliveryQueue)!=null&&t.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(n=this._perfMon)==null||n.start(this._size),this._listeners)if(this._listeners instanceof U1)this._deliver(this._listeners,e);else{let s=this._deliveryQueue;s.enqueue(this,e,this._listeners.length),this._deliverQueue(s)}(r=this._perfMon)==null||r.stop()}hasListeners(){return this._size>0}},oq=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}},Mh=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new Ne,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new Ne,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 n=this.getWindowId(i);this.mapWindowIdToZoomLevel.set(n,t),this._onDidChangeZoomLevel.fire(n)}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 n=this.getWindowId(i);this.mapWindowIdToFullScreen.set(n,t),this._onDidChangeFullscreen.fire(n)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};Mh.INSTANCE=new Mh;var bf=Mh;function cq(e,t,i){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",i)}bf.INSTANCE.onDidChangeZoomLevel;function uq(e){return bf.INSTANCE.getZoomFactor(e)}bf.INSTANCE.onDidChangeFullscreen;var Sl=typeof navigator=="object"?navigator.userAgent:"",Lh=Sl.indexOf("Firefox")>=0,dq=Sl.indexOf("AppleWebKit")>=0,yf=Sl.indexOf("Chrome")>=0,hq=!yf&&Sl.indexOf("Safari")>=0;Sl.indexOf("Electron/")>=0;Sl.indexOf("Android")>=0;var W1=!1;if(typeof mr.matchMedia=="function"){let e=mr.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=mr.matchMedia("(display-mode: fullscreen)");W1=e.matches,cq(mr,e,({matches:i})=>{W1&&t.matches||(W1=i)})}var ra="en",Eh=!1,xh=!1,gc=!1,H5=!1,ic,bc=ra,S_=ra,fq,gn,Rs=globalThis,vi,Bm;typeof Rs.vscode<"u"&&typeof Rs.vscode.process<"u"?vi=Rs.vscode.process:typeof process<"u"&&typeof((Bm=process==null?void 0:process.versions)==null?void 0:Bm.node)=="string"&&(vi=process);var Fm,pq=typeof((Fm=vi==null?void 0:vi.versions)==null?void 0:Fm.electron)=="string",_q=pq&&(vi==null?void 0:vi.type)==="renderer",zm;if(typeof vi=="object"){Eh=vi.platform==="win32",xh=vi.platform==="darwin",gc=vi.platform==="linux",gc&&vi.env.SNAP&&vi.env.SNAP_REVISION,vi.env.CI||vi.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ic=ra,bc=ra;let e=vi.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);ic=t.userLocale,S_=t.osLocale,bc=t.resolvedLanguage||ra,fq=(zm=t.languagePack)==null?void 0:zm.translationsConfigFile}catch{}H5=!0}else typeof navigator=="object"&&!_q?(gn=navigator.userAgent,Eh=gn.indexOf("Windows")>=0,xh=gn.indexOf("Macintosh")>=0,(gn.indexOf("Macintosh")>=0||gn.indexOf("iPad")>=0||gn.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,gc=gn.indexOf("Linux")>=0,(gn==null?void 0:gn.indexOf("Mobi"))>=0,bc=globalThis._VSCODE_NLS_LANGUAGE||ra,ic=navigator.language.toLowerCase(),S_=ic):console.error("Unable to resolve platform.");var T5=Eh,Wn=xh,mq=gc,C_=H5,Yn=gn,Hr=bc,vq;(e=>{function t(){return Hr}e.value=t;function i(){return Hr.length===2?Hr==="en":Hr.length>=3?Hr[0]==="e"&&Hr[1]==="n"&&Hr[2]==="-":!1}e.isDefaultVariant=i;function n(){return Hr==="en"}e.isDefault=n})(vq||(vq={}));var gq=typeof Rs.postMessage=="function"&&!Rs.importScripts;(()=>{if(gq){let e=[];Rs.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){let s=e[n];if(s.id===i.data.vscodeScheduleAsyncWork){e.splice(n,1),s.callback();return}}});let t=0;return i=>{let n=++t;e.push({id:n,callback:i}),Rs.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})();var bq=!!(Yn&&Yn.indexOf("Chrome")>=0);Yn&&Yn.indexOf("Firefox")>=0;!bq&&Yn&&Yn.indexOf("Safari")>=0;Yn&&Yn.indexOf("Edg/")>=0;Yn&&Yn.indexOf("Android")>=0;var Gs=typeof navigator=="object"?navigator:{};C_||document.queryCommandSupported&&document.queryCommandSupported("copy")||Gs&&Gs.clipboard&&Gs.clipboard.writeText,C_||Gs&&Gs.clipboard&&Gs.clipboard.readText;var wf=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}},j1=new wf,k_=new wf,A_=new wf,yq=new Array(230),N5;(e=>{function t(l){return j1.keyCodeToStr(l)}e.toString=t;function i(l){return j1.strToKeyCode(l)}e.fromString=i;function n(l){return k_.keyCodeToStr(l)}e.toUserSettingsUS=n;function r(l){return A_.keyCodeToStr(l)}e.toUserSettingsGeneral=r;function s(l){return k_.strToKeyCode(l)||A_.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return j1.keyCodeToStr(l)}e.toElectronAccelerator=a})(N5||(N5={}));var wq=class P5{constructor(t,i,n,r,s){this.ctrlKey=t,this.shiftKey=i,this.altKey=n,this.metaKey=r,this.keyCode=s}equals(t){return t instanceof P5&&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",n=this.altKey?"1":"0",r=this.metaKey?"1":"0";return`K${t}${i}${n}${r}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new Sq([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},Sq=class{constructor(e){if(e.length===0)throw KK("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 Cq(e){if(e.charCode){let i=String.fromCharCode(e.charCode).toUpperCase();return N5.fromString(i)}let t=e.keyCode;if(t===3)return 7;if(Lh)switch(t){case 59:return 85;case 60:if(mq)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Wn)return 57;break}else if(dq&&(Wn&&t===93||!Wn&&t===92))return 57;return yq[t]||0}var kq=Wn?256:2048,Aq=512,$q=1024,Mq=Wn?2048:256,$_=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=Cq(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|=kq),this.altKey&&(t|=Aq),this.shiftKey&&(t|=$q),this.metaKey&&(t|=Mq),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new wq(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},M_=new WeakMap;function Lq(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 Eq=class{static getSameOriginWindowChain(e){let t=M_.get(e);if(!t){t=[],M_.set(e,t);let i=e,n;do n=Lq(i),n?t.push({window:new WeakRef(i),iframeElement:i.frameElement||null}):t.push({window:new WeakRef(i),iframeElement:null}),i=n;while(i)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0,r=this.getSameOriginWindowChain(e);for(let s of r){let a=s.window.deref();if(i+=(a==null?void 0:a.scrollY)??0,n+=(a==null?void 0:a.scrollX)??0,a===t||!s.iframeElement)break;let l=s.iframeElement.getBoundingClientRect();i+=l.top,n+=l.left}return{top:i,left:n}}},nc=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=Eq.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},L_=class{constructor(e,t=0,i=0){var r;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(yf){let s=navigator.userAgent.match(/Chrome\/(\d+)/);n=(s?parseInt(s[1]):123)<=122}if(e){let s=e,a=e,l=((r=e.view)==null?void 0:r.devicePixelRatio)||1;if(typeof s.wheelDeltaY<"u")n?this.deltaY=s.wheelDeltaY/(120*l):this.deltaY=s.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 o=e;o.deltaMode===o.DOM_DELTA_LINE?Lh&&!Wn?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof s.wheelDeltaX<"u")hq&&T5?this.deltaX=-(s.wheelDeltaX/120):n?this.deltaX=s.wheelDeltaX/(120*l):this.deltaX=s.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 o=e;o.deltaMode===o.DOM_DELTA_LINE?Lh&&!Wn?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*l):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)==null||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)==null||e.stopPropagation()}},O5=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}),xq;(e=>{function t(i){return i===e.None||i===e.Cancelled||i instanceof Hq?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:yi.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:O5})})(xq||(xq={}));var Hq=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?O5:(this._emitter||(this._emitter=new Ne),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Sf=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 Sh("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new Sh("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},Tq=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 Sh("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let n=i.setInterval(()=>{e()},t);this.disposable=Dt(()=>{i.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},Nq;(e=>{async function t(n){let r,s=await Promise.all(n.map(a=>a.then(l=>l,l=>{r||(r=l)})));if(typeof r<"u")throw r;return s}e.settled=t;function i(n){return new Promise(async(r,s)=>{try{await n(r,s)}catch(a){s(a)}})}e.withAsyncBody=i})(Nq||(Nq={}));var E_=class on{static fromArray(t){return new on(i=>{i.emitMany(t)})}static fromPromise(t){return new on(async i=>{i.emitMany(await t)})}static fromPromises(t){return new on(async i=>{await Promise.all(t.map(async n=>i.emitOne(await n)))})}static merge(t){return new on(async i=>{await Promise.all(t.map(async n=>{for await(let r of n)i.emitOne(r)}))})}constructor(t,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new Ne,queueMicrotask(async()=>{let n={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(t(n)),this.resolve()}catch(r){this.reject(r)}finally{n.emitOne=void 0,n.emitMany=void 0,n.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 yi.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 on(async n=>{for await(let r of t)n.emitOne(i(r))})}map(t){return on.map(this,t)}static filter(t,i){return new on(async n=>{for await(let r of t)i(r)&&n.emitOne(r)})}filter(t){return on.filter(this,t)}static coalesce(t){return on.filter(t,i=>!!i)}coalesce(){return on.coalesce(this)}static async toPromise(t){let i=[];for await(let n of t)i.push(n);return i}toPromise(){return on.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())}};E_.EMPTY=E_.fromArray([]);var{getWindow:Vn,getWindowId:Pq,onDidRegisterWindow:Oq}=function(){let e=new Map,t={window:mr,disposables:new Gr};e.set(mr.vscodeWindowId,t);let i=new Ne,n=new Ne,r=new Ne;function s(a,l){return(typeof a=="number"?e.get(a):void 0)??(l?t:void 0)}return{onDidRegisterWindow:i.event,onWillUnregisterWindow:r.event,onDidUnregisterWindow:n.event,registerWindow(a){if(e.has(a.vscodeWindowId))return rt.None;let l=new Gr,o={window:a,disposables:l.add(new Gr)};return e.set(a.vscodeWindowId,o),l.add(Dt(()=>{e.delete(a.vscodeWindowId),n.fire(a)})),l.add(Xe(a,ui.BEFORE_UNLOAD,()=>{r.fire(a)})),i.fire(o),l},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(a){return a.vscodeWindowId},hasWindow(a){return e.has(a)},getWindowById:s,getWindow(a){var c;let l=a;if((c=l==null?void 0:l.ownerDocument)!=null&&c.defaultView)return l.ownerDocument.defaultView.window;let o=a;return o!=null&&o.view?o.view.window:mr},getDocument(a){return Vn(a).document}}}(),Rq=class{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!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 Xe(e,t,i,n){return new Rq(e,t,i,n)}var x_=function(e,t,i,n){return Xe(e,t,i,n)},Cf,Iq=class extends Tq{constructor(e){super(),this.defaultTarget=e&&Vn(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}},H_=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){vc(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,i=new Map,n=new Map,r=s=>{i.set(s,!1);let a=e.get(s)??[];for(t.set(s,a),e.set(s,[]),n.set(s,!0);a.length>0;)a.sort(H_.sort),a.shift().execute();n.set(s,!1)};Cf=(s,a,l=0)=>{let o=Pq(s),c=new H_(a,l),u=e.get(o);return u||(u=[],e.set(o,u)),u.push(c),i.get(o)||(i.set(o,!0),s.requestAnimationFrame(()=>r(o))),c}})();function Vq(e){let t=e.getBoundingClientRect(),i=Vn(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}var ui={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"},Dq=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=Bi(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=Bi(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=Bi(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=Bi(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=Bi(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=Bi(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=Bi(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=Bi(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=Bi(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=Bi(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=Bi(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=Bi(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=Bi(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=Bi(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 Bi(e){return typeof e=="number"?`${e}px`:e}function Do(e){return new Dq(e)}var R5=class{constructor(){this._hooks=new Gr,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,n,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=n,this._onStopCallback=r;let s=e;try{e.setPointerCapture(t),this._hooks.add(Dt(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{s=Vn(e)}this._hooks.add(Xe(s,ui.POINTER_MOVE,a=>{if(a.buttons!==i){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(Xe(s,ui.POINTER_UP,a=>this.stopMonitoring(!0)))}};function Zq(e,t,i){let n=null,r=null;if(typeof i.value=="function"?(n="value",r=i.value,r.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof i.get=="function"&&(n="get",r=i.get),!r)throw new Error("not supported");let s=`$memoize$${t}`;i[n]=function(...a){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,a)}),this[s]}}var Nn;(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(Nn||(Nn={}));var So=class ki extends rt{constructor(){super(),this.dispatched=!1,this.targets=new w_,this.ignoreTargets=new w_,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(yi.runAndSubscribe(Oq,({window:t,disposables:i})=>{i.add(Xe(t.document,"touchstart",n=>this.onTouchStart(n),{passive:!1})),i.add(Xe(t.document,"touchend",n=>this.onTouchEnd(t,n))),i.add(Xe(t.document,"touchmove",n=>this.onTouchMove(n),{passive:!1}))},{window:mr,disposables:this._store}))}static addTarget(t){if(!ki.isTouchDevice())return rt.None;ki.INSTANCE||(ki.INSTANCE=new ki);let i=ki.INSTANCE.targets.push(t);return Dt(i)}static ignoreTarget(t){if(!ki.isTouchDevice())return rt.None;ki.INSTANCE||(ki.INSTANCE=new ki);let i=ki.INSTANCE.ignoreTargets.push(t);return Dt(i)}static isTouchDevice(){return"ontouchstart"in mr||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 n=0,r=t.targetTouches.length;n<r;n++){let s=t.targetTouches.item(n);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:i,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[i],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};let a=this.newGestureEvent(Nn.Start,s.target);a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,i){let n=Date.now(),r=Object.keys(this.activeTouches).length;for(let s=0,a=i.changedTouches.length;s<a;s++){let l=i.changedTouches.item(s);if(!this.activeTouches.hasOwnProperty(String(l.identifier))){console.warn("move of an UNKNOWN touch",l);continue}let o=this.activeTouches[l.identifier],c=Date.now()-o.initialTimeStamp;if(c<ki.HOLD_DELAY&&Math.abs(o.initialPageX-ji(o.rollingPageX))<30&&Math.abs(o.initialPageY-ji(o.rollingPageY))<30){let u=this.newGestureEvent(Nn.Tap,o.initialTarget);u.pageX=ji(o.rollingPageX),u.pageY=ji(o.rollingPageY),this.dispatchEvent(u)}else if(c>=ki.HOLD_DELAY&&Math.abs(o.initialPageX-ji(o.rollingPageX))<30&&Math.abs(o.initialPageY-ji(o.rollingPageY))<30){let u=this.newGestureEvent(Nn.Contextmenu,o.initialTarget);u.pageX=ji(o.rollingPageX),u.pageY=ji(o.rollingPageY),this.dispatchEvent(u)}else if(r===1){let u=ji(o.rollingPageX),d=ji(o.rollingPageY),f=ji(o.rollingTimestamps)-o.rollingTimestamps[0],h=u-o.rollingPageX[0],m=d-o.rollingPageY[0],p=[...this.targets].filter(b=>o.initialTarget instanceof Node&&b.contains(o.initialTarget));this.inertia(t,p,n,Math.abs(h)/f,h>0?1:-1,u,Math.abs(m)/f,m>0?1:-1,d)}this.dispatchEvent(this.newGestureEvent(Nn.End,o.initialTarget)),delete this.activeTouches[l.identifier]}this.dispatched&&(i.preventDefault(),i.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,i){let n=document.createEvent("CustomEvent");return n.initEvent(t,!1,!0),n.initialTarget=i,n.tapCount=0,n}dispatchEvent(t){if(t.type===Nn.Tap){let i=new Date().getTime(),n=0;i-this._lastSetTapCountTime>ki.CLEAR_TAP_COUNT_TIME?n=1:n=2,this._lastSetTapCountTime=i,t.tapCount=n}else(t.type===Nn.Change||t.type===Nn.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let n of this.ignoreTargets)if(n.contains(t.initialTarget))return;let i=[];for(let n of this.targets)if(n.contains(t.initialTarget)){let r=0,s=t.initialTarget;for(;s&&s!==n;)r++,s=s.parentElement;i.push([r,n])}i.sort((n,r)=>n[0]-r[0]);for(let[n,r]of i)r.dispatchEvent(t),this.dispatched=!0}}inertia(t,i,n,r,s,a,l,o,c){this.handle=Cf(t,()=>{let u=Date.now(),d=u-n,f=0,h=0,m=!0;r+=ki.SCROLL_FRICTION*d,l+=ki.SCROLL_FRICTION*d,r>0&&(m=!1,f=s*r*d),l>0&&(m=!1,h=o*l*d);let p=this.newGestureEvent(Nn.Change);p.translationX=f,p.translationY=h,i.forEach(b=>b.dispatchEvent(p)),m||this.inertia(t,i,u,r,s,a+f,l,o,c+h)})}onTouchMove(t){let i=Date.now();for(let n=0,r=t.changedTouches.length;n<r;n++){let s=t.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}let a=this.activeTouches[s.identifier],l=this.newGestureEvent(Nn.Change,a.initialTarget);l.translationX=s.pageX-ji(a.rollingPageX),l.translationY=s.pageY-ji(a.rollingPageY),l.pageX=s.pageX,l.pageY=s.pageY,this.dispatchEvent(l),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(s.pageX),a.rollingPageY.push(s.pageY),a.rollingTimestamps.push(i)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};So.SCROLL_FRICTION=-.005,So.HOLD_DELAY=700,So.CLEAR_TAP_COUNT_TIME=400,qt([Zq],So,"isTouchDevice",1);var Bq=So,kf=class extends rt{onclick(e,t){this._register(Xe(e,ui.CLICK,i=>t(new nc(Vn(e),i))))}onmousedown(e,t){this._register(Xe(e,ui.MOUSE_DOWN,i=>t(new nc(Vn(e),i))))}onmouseover(e,t){this._register(Xe(e,ui.MOUSE_OVER,i=>t(new nc(Vn(e),i))))}onmouseleave(e,t){this._register(Xe(e,ui.MOUSE_LEAVE,i=>t(new nc(Vn(e),i))))}onkeydown(e,t){this._register(Xe(e,ui.KEY_DOWN,i=>t(new $_(i))))}onkeyup(e,t){this._register(Xe(e,ui.KEY_UP,i=>t(new $_(i))))}oninput(e,t){this._register(Xe(e,ui.INPUT,t))}onblur(e,t){this._register(Xe(e,ui.BLUR,t))}onfocus(e,t){this._register(Xe(e,ui.FOCUS,t))}onchange(e,t){this._register(Xe(e,ui.CHANGE,t))}ignoreGesture(e){return Bq.ignoreTarget(e)}},T_=11,Fq=class extends kf{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=T_+"px",this.domNode.style.height=T_+"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 R5),this._register(x_(this.bgDomNode,ui.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(x_(this.domNode,ui.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new Iq),this._pointerdownScheduleRepeatTimer=this._register(new Sf)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,Vn(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()}},zq=class Hh{constructor(t,i,n,r,s,a,l){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(i=i|0,n=n|0,r=r|0,s=s|0,a=a|0,l=l|0),this.rawScrollLeft=r,this.rawScrollTop=l,i<0&&(i=0),r+i>n&&(r=n-i),r<0&&(r=0),s<0&&(s=0),l+s>a&&(l=a-s),l<0&&(l=0),this.width=i,this.scrollWidth=n,this.scrollLeft=r,this.height=s,this.scrollHeight=a,this.scrollTop=l}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 Hh(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 Hh(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 n=this.width!==t.width,r=this.scrollWidth!==t.scrollWidth,s=this.scrollLeft!==t.scrollLeft,a=this.height!==t.height,l=this.scrollHeight!==t.scrollHeight,o=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:n,scrollWidthChanged:r,scrollLeftChanged:s,heightChanged:a,scrollHeightChanged:l,scrollTopChanged:o}}},Uq=class extends rt{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new Ne),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new zq(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 n;let i=this._state.withScrollDimensions(e,t);this._setState(i,!!this._smoothScrolling),(n=this._smoothScrolling)==null||n.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 n;t?n=new P_(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{let i=this._state.withScrollPosition(e);this._smoothScrolling=P_.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)))}},N_=class{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}};function K1(e,t){let i=t-e;return function(n){return e+i*Kq(n)}}function Wq(e,t,i){return function(n){return n<i?e(n/i):t((n-i)/(1-i))}}var P_=class Th{constructor(t,i,n,r){this.from=t,this.to=i,this.duration=r,this.startTime=n,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,n){if(Math.abs(t-i)>2.5*n){let r,s;return t<i?(r=t+.75*n,s=i-.75*n):(r=t-.75*n,s=i+.75*n),Wq(K1(t,r),K1(s,i),.33)}return K1(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 n=this.scrollLeft(i),r=this.scrollTop(i);return new N_(n,r,!1)}return new N_(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,i,n){return Th.start(t,i,n)}static start(t,i,n){n=n+10;let r=Date.now()-10;return new Th(t,i,r,n)}};function jq(e){return Math.pow(e,3)}function Kq(e){return 1-jq(1-e)}var qq=class extends rt{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 Sf)}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":"")))}},Gq=140,I5=class extends kf{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 qq(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new R5),this._shouldRender=!0,this.domNode=Do(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(Xe(this.domNode.domNode,ui.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new Fq(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=Do(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 n=="number"&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Xe(this.slider.domNode,ui.POINTER_DOWN,r=>{r.button===0&&(r.preventDefault(),this._sliderPointerDown(r))})),this.onclick(this.slider.domNode,r=>{r.leftButton&&r.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(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderPointerPosition(e);i<=r&&r<=n?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 r=Vq(this.domNode.domNode);t=e.pageX-r.left,i=e.pageY-r.top}let n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),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),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>{let s=this._sliderOrthogonalPointerPosition(r),a=Math.abs(s-i);if(T5&&a>Gq){this._setDesiredScrollPositionNow(n.getScrollPosition());return}let l=this._sliderPointerPosition(r)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(l))},()=>{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()}},V5=class Nh{constructor(t,i,n,r,s,a){this._scrollbarSize=Math.round(i),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(t),this._visibleSize=r,this._scrollSize=s,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Nh(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,n,r,s){let a=Math.max(0,n-t),l=Math.max(0,a-2*i),o=r>0&&r>n;if(!o)return{computedAvailableSize:Math.round(a),computedIsNeeded:o,computedSliderSize:Math.round(l),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(n*l/r))),u=(l-c)/(r-n),d=s*u;return{computedAvailableSize:Math.round(a),computedIsNeeded:o,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){let t=Nh._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,n=this._scrollPosition;return i<this._computedSliderPosition?n-=this._visibleSize:n+=this._visibleSize,n}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let i=this._computedSliderPosition+t;return Math.round(i/this._computedSliderRatio)}},Yq=class extends I5{constructor(e,t,i){let n=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new V5(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,n.width,n.scrollWidth,r.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}},Xq=class extends I5{constructor(e,t,i){let n=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new V5(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,r.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}},Jq=500,O_=50,Qq=class{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}},Ph=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,n=1,r=this._rear;do{let s=r===this._front?t:Math.pow(2,-n);if(t-=s,i+=this._memory[r].score*s,r===this._front)break;r=(this._capacity+r-1)%this._capacity,n++}while(!0);return i<=.5}acceptStandardWheelEvent(t){if(yf){let i=Vn(t.browserEvent),n=uq(i);this.accept(Date.now(),t.deltaX*n,t.deltaY*n)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,i,n){let r=null,s=new Qq(t,i,n);this._front===-1&&this._rear===-1?(this._memory[0]=s,this._front=0,this._rear=0):(r=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]=s),s.score=this._computeScore(s,r)}_computeScore(t,i){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let n=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(n+=.25),i){let r=Math.abs(t.deltaX),s=Math.abs(t.deltaY),a=Math.abs(i.deltaX),l=Math.abs(i.deltaY),o=Math.max(Math.min(r,a),1),c=Math.max(Math.min(s,l),1),u=Math.max(r,a),d=Math.max(s,l);u%o===0&&d%c===0&&(n-=.5)}return Math.min(Math.max(n,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};Ph.INSTANCE=new Ph;var eG=Ph,tG=class extends kf{constructor(e,t,i){super(),this._onScroll=this._register(new Ne),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new Ne),this.onWillScroll=this._onWillScroll.event,this._options=nG(t),this._scrollable=i,this._register(this._scrollable.onScroll(r=>{this._onWillScroll.fire(r),this._onDidScroll(r),this._onScroll.fire(r)}));let n={onMouseWheel:r=>this._onMouseWheel(r),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new Xq(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new Yq(this._scrollable,this._options,n)),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=Do(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Do(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Do(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,r=>this._onMouseOver(r)),this.onmouseleave(this._listenOnDomNode,r=>this._onMouseLeave(r)),this._hideTimeout=this._register(new Sf),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=Is(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,Wn&&(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 L_(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Is(this._mouseWheelToDispose),e)){let t=i=>{this._onMouseWheel(new L_(i))};this._mouseWheelToDispose.push(Xe(this._listenOnDomNode,ui.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){var r;if((r=e.browserEvent)!=null&&r.defaultPrevented)return;let t=eG.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,a=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&a+s===0?a=s=0:Math.abs(s)>=Math.abs(a)?a=0:s=0),this._options.flipAxes&&([s,a]=[a,s]);let l=!Wn&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||l)&&!a&&(a=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(a=a*this._options.fastScrollSensitivity,s=s*this._options.fastScrollSensitivity);let o=this._scrollable.getFutureScrollPosition(),c={};if(s){let u=O_*s,d=o.scrollTop-(u<0?Math.floor(u):Math.ceil(u));this._verticalScrollbar.writeScrollPosition(c,d)}if(a){let u=O_*a,d=o.scrollLeft-(u<0?Math.floor(u):Math.ceil(u));this._horizontalScrollbar.writeScrollPosition(c,d)}c=this._scrollable.validateScrollPosition(c),(o.scrollLeft!==c.scrollLeft||o.scrollTop!==c.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(c):this._scrollable.setScrollPositionNow(c),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(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,n=i?" left":"",r=t?" top":"",s=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${r}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${r}${n}`)}}_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(),Jq)}},iG=class extends tG{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 nG(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,Wn&&(t.className+=" mac"),t}var Oh=class extends rt{constructor(e,t,i,n,r,s,a,l){super(),this._bufferService=i,this._optionsService=a,this._renderService=l,this._onRequestScrollLines=this._register(new Ne),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let o=this._register(new Uq({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:c=>Cf(n.window,c)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{o.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new iG(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},o)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(r.onProtocolChange(c=>{this._scrollableElement.updateOptions({handleMouseWheel:!(c&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(yi.runAndSubscribe(s.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=s.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(Dt(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=n.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(Dt(()=>this._styleElement.remove())),this._register(yi.runAndSubscribe(s.onChangeColors,()=>{this._styleElement.textContent=[".xterm .xterm-scrollable-element > .scrollbar > .slider {",` background: ${s.colors.scrollbarSliderBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider:hover {",` background: ${s.colors.scrollbarSliderHoverBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider.active {",` background: ${s.colors.scrollbarSliderActiveBackground.css};`,"}"].join(`
90
- `)})),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}};Oh=qt([Ie(2,Di),Ie(3,Ar),Ie(4,g5),Ie(5,wl),Ie(6,Zi),Ie(7,$r)],Oh);var Rh=class extends rt{constructor(e,t,i,n,r){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=i,this._decorationService=n,this._renderService=r,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(s=>this._removeDecoration(s))),this._register(Dt(()=>{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 n;let t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer",((n=e==null?void 0:e.options)==null?void 0:n.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()}};Rh=qt([Ie(1,Di),Ie(2,Ar),Ie(3,$0),Ie(4,$r)],Rh);var rG=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)}},En={full:0,left:0,center:0,right:0},Tr={full:0,left:0,center:0,right:0},ho={full:0,left:0,center:0,right:0},au=class extends rt{constructor(e,t,i,n,r,s,a,l){var c;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=n,this._renderService=r,this._optionsService=s,this._themeService=a,this._coreBrowserService=l,this._colorZoneStore=new rG,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(Dt(()=>{var u;return(u=this._canvas)==null?void 0:u.remove()}));let o=this._canvas.getContext("2d");if(o)this._ctx=o;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);Tr.full=this._canvas.width,Tr.left=e,Tr.center=t,Tr.right=e,this._refreshDrawHeightConstants(),ho.full=1,ho.left=1,ho.center=1+Tr.left,ho.right=1+Tr.left+Tr.center}_refreshDrawHeightConstants(){En.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);En.left=t,En.center=t,En.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*En.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*En.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*En.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*En.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(ho[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-En[e.position||"full"]/2),Tr[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+En[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}))}};au=qt([Ie(2,Di),Ie(3,$0),Ie(4,$r),Ie(5,Zi),Ie(6,wl),Ie(7,Ar)],au);var $e;(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=`
91
- `,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=""))($e||($e={}));var yc;(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="Ÿ"))(yc||(yc={}));var D5;(e=>e.ST=`${$e.ESC}\\`)(D5||(D5={}));var Ih=class{constructor(e,t,i,n,r,s){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=n,this._coreService=r,this._renderService=s,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(`${$e.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,n=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,r=t*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=r+"px",this._compositionView.style.top=n+"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 s=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=n+"px",this._textarea.style.width=Math.max(s.width,1)+"px",this._textarea.style.height=Math.max(s.height,1)+"px",this._textarea.style.lineHeight=s.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}};Ih=qt([Ie(2,Di),Ie(3,Zi),Ie(4,zs),Ie(5,$r)],Ih);var di=0,hi=0,fi=0,Ut=0,R_={css:"#00000000",rgba:0},Qt;(e=>{function t(r,s,a,l){return l!==void 0?`#${bs(r)}${bs(s)}${bs(a)}${bs(l)}`:`#${bs(r)}${bs(s)}${bs(a)}`}e.toCss=t;function i(r,s,a,l=255){return(r<<24|s<<16|a<<8|l)>>>0}e.toRgba=i;function n(r,s,a,l){return{css:e.toCss(r,s,a,l),rgba:e.toRgba(r,s,a,l)}}e.toColor=n})(Qt||(Qt={}));var Rt;(e=>{function t(o,c){if(Ut=(c.rgba&255)/255,Ut===1)return{css:c.css,rgba:c.rgba};let u=c.rgba>>24&255,d=c.rgba>>16&255,f=c.rgba>>8&255,h=o.rgba>>24&255,m=o.rgba>>16&255,p=o.rgba>>8&255;di=h+Math.round((u-h)*Ut),hi=m+Math.round((d-m)*Ut),fi=p+Math.round((f-p)*Ut);let b=Qt.toCss(di,hi,fi),v=Qt.toRgba(di,hi,fi);return{css:b,rgba:v}}e.blend=t;function i(o){return(o.rgba&255)===255}e.isOpaque=i;function n(o,c,u){let d=wc.ensureContrastRatio(o.rgba,c.rgba,u);if(d)return Qt.toColor(d>>24&255,d>>16&255,d>>8&255)}e.ensureContrastRatio=n;function r(o){let c=(o.rgba|255)>>>0;return[di,hi,fi]=wc.toChannels(c),{css:Qt.toCss(di,hi,fi),rgba:c}}e.opaque=r;function s(o,c){return Ut=Math.round(c*255),[di,hi,fi]=wc.toChannels(o.rgba),{css:Qt.toCss(di,hi,fi,Ut),rgba:Qt.toRgba(di,hi,fi,Ut)}}e.opacity=s;function a(o,c){return Ut=o.rgba&255,s(o,Ut*c/255)}e.multiplyOpacity=a;function l(o){return[o.rgba>>24&255,o.rgba>>16&255,o.rgba>>8&255]}e.toColorRGB=l})(Rt||(Rt={}));var Bt;(e=>{let t,i;try{let r=document.createElement("canvas");r.width=1,r.height=1;let s=r.getContext("2d",{willReadFrequently:!0});s&&(t=s,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}catch{}function n(r){if(r.match(/#[\da-f]{3,8}/i))switch(r.length){case 4:return di=parseInt(r.slice(1,2).repeat(2),16),hi=parseInt(r.slice(2,3).repeat(2),16),fi=parseInt(r.slice(3,4).repeat(2),16),Qt.toColor(di,hi,fi);case 5:return di=parseInt(r.slice(1,2).repeat(2),16),hi=parseInt(r.slice(2,3).repeat(2),16),fi=parseInt(r.slice(3,4).repeat(2),16),Ut=parseInt(r.slice(4,5).repeat(2),16),Qt.toColor(di,hi,fi,Ut);case 7:return{css:r,rgba:(parseInt(r.slice(1),16)<<8|255)>>>0};case 9:return{css:r,rgba:parseInt(r.slice(1),16)>>>0}}let s=r.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(s)return di=parseInt(s[1]),hi=parseInt(s[2]),fi=parseInt(s[3]),Ut=Math.round((s[5]===void 0?1:parseFloat(s[5]))*255),Qt.toColor(di,hi,fi,Ut);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=r,typeof t.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[di,hi,fi,Ut]=t.getImageData(0,0,1,1).data,Ut!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:Qt.toRgba(di,hi,fi,Ut),css:r}}e.toColor=n})(Bt||(Bt={}));var Hi;(e=>{function t(n){return i(n>>16&255,n>>8&255,n&255)}e.relativeLuminance=t;function i(n,r,s){let a=n/255,l=r/255,o=s/255,c=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),u=l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4),d=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4);return c*.2126+u*.7152+d*.0722}e.relativeLuminance2=i})(Hi||(Hi={}));var wc;(e=>{function t(a,l){if(Ut=(l&255)/255,Ut===1)return l;let o=l>>24&255,c=l>>16&255,u=l>>8&255,d=a>>24&255,f=a>>16&255,h=a>>8&255;return di=d+Math.round((o-d)*Ut),hi=f+Math.round((c-f)*Ut),fi=h+Math.round((u-h)*Ut),Qt.toRgba(di,hi,fi)}e.blend=t;function i(a,l,o){let c=Hi.relativeLuminance(a>>8),u=Hi.relativeLuminance(l>>8);if(ar(c,u)<o){if(u<c){let h=n(a,l,o),m=ar(c,Hi.relativeLuminance(h>>8));if(m<o){let p=r(a,l,o),b=ar(c,Hi.relativeLuminance(p>>8));return m>b?h:p}return h}let d=r(a,l,o),f=ar(c,Hi.relativeLuminance(d>>8));if(f<o){let h=n(a,l,o),m=ar(c,Hi.relativeLuminance(h>>8));return f>m?d:h}return d}}e.ensureContrastRatio=i;function n(a,l,o){let c=a>>24&255,u=a>>16&255,d=a>>8&255,f=l>>24&255,h=l>>16&255,m=l>>8&255,p=ar(Hi.relativeLuminance2(f,h,m),Hi.relativeLuminance2(c,u,d));for(;p<o&&(f>0||h>0||m>0);)f-=Math.max(0,Math.ceil(f*.1)),h-=Math.max(0,Math.ceil(h*.1)),m-=Math.max(0,Math.ceil(m*.1)),p=ar(Hi.relativeLuminance2(f,h,m),Hi.relativeLuminance2(c,u,d));return(f<<24|h<<16|m<<8|255)>>>0}e.reduceLuminance=n;function r(a,l,o){let c=a>>24&255,u=a>>16&255,d=a>>8&255,f=l>>24&255,h=l>>16&255,m=l>>8&255,p=ar(Hi.relativeLuminance2(f,h,m),Hi.relativeLuminance2(c,u,d));for(;p<o&&(f<255||h<255||m<255);)f=Math.min(255,f+Math.ceil((255-f)*.1)),h=Math.min(255,h+Math.ceil((255-h)*.1)),m=Math.min(255,m+Math.ceil((255-m)*.1)),p=ar(Hi.relativeLuminance2(f,h,m),Hi.relativeLuminance2(c,u,d));return(f<<24|h<<16|m<<8|255)>>>0}e.increaseLuminance=r;function s(a){return[a>>24&255,a>>16&255,a>>8&255,a&255]}e.toChannels=s})(wc||(wc={}));function bs(e){let t=e.toString(16);return t.length<2?"0"+t:t}function ar(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var sG=class extends A0{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()]}},lu=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new pn}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=[],n=t.translateToString(!0),r=0,s=0,a=0,l=t.getFg(0),o=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!==l||this._workCell.bg!==o){if(c-r>1){let u=this._getJoinedRanges(n,a,s,t,r);for(let d=0;d<u.length;d++)i.push(u[d])}r=c,a=s,l=this._workCell.fg,o=this._workCell.bg}s+=this._workCell.getChars().length||Ur.length}if(this._bufferService.cols-r>1){let c=this._getJoinedRanges(n,a,s,t,r);for(let u=0;u<c.length;u++)i.push(c[u])}return i}_getJoinedRanges(e,t,i,n,r){let s=e.substring(t,i),a=[];try{a=this._characterJoiners[0].handler(s)}catch(l){console.error(l)}for(let l=1;l<this._characterJoiners.length;l++)try{let o=this._characterJoiners[l].handler(s);for(let c=0;c<o.length;c++)lu._mergeRanges(a,o[c])}catch(o){console.error(o)}return this._stringRangesToCellRanges(a,n,r),a}_stringRangesToCellRanges(e,t,i){let n=0,r=!1,s=0,a=e[n];if(a){for(let l=i;l<this._bufferService.cols;l++){let o=t.getWidth(l),c=t.getString(l).length||Ur.length;if(o!==0){if(!r&&a[0]<=s&&(a[0]=l,r=!0),a[1]<=s){if(a[1]=l,a=e[++n],!a)break;a[0]<=s?(a[0]=l,r=!0):r=!1}s+=c}}a&&(a[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let i=!1;for(let n=0;n<e.length;n++){let r=e[n];if(i){if(t[1]<=r[0])return e[n-1][1]=t[1],e;if(t[1]<=r[1])return e[n-1][1]=Math.max(t[1],r[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(t[1]<=r[0])return e.splice(n,0,t),e;if(t[1]<=r[1])return r[0]=Math.min(t[0],r[0]),e;t[0]<r[1]&&(r[0]=Math.min(t[0],r[0]),i=!0);continue}}return i?e[e.length-1][1]=t[1]:e.push(t),e}};lu=qt([Ie(0,Di)],lu);function aG(e){return 57508<=e&&e<=57558}function lG(e){return 9472<=e&&e<=9631}function oG(e){return aG(e)||lG(e)}function cG(){return{css:{canvas:rc(),cell:rc()},device:{canvas:rc(),cell:rc(),char:{width:0,height:0,left:0,top:0}}}}function rc(){return{width:0,height:0}}var Vh=class{constructor(e,t,i,n,r,s,a){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=n,this._coreService=r,this._decorationService=s,this._themeService=a,this._workCell=new pn,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,t,i,n,r,s,a,l,o,c,u){let d=[],f=this._characterJoinerService.getJoinedCharacters(t),h=this._themeService.colors,m=e.getNoBgTrimmedLength();i&&m<s+1&&(m=s+1);let p,b=0,v="",C=0,y=0,g=0,L=0,x=!1,$=0,O=!1,F=0,ie=0,B=[],A=c!==-1&&u!==-1;for(let H=0;H<m;H++){e.loadCell(H,this._workCell);let I=this._workCell.getWidth();if(I===0)continue;let D=!1,q=H>=ie,re=H,ae=this._workCell;if(f.length>0&&H===f[0][0]&&q){let V=f.shift(),ee=this._isCellInSelection(V[0],t);for(C=V[0]+1;C<V[1];C++)q&&(q=ee===this._isCellInSelection(C,t));q&&(q=!i||s<V[0]||s>=V[1]),q?(D=!0,ae=new sG(this._workCell,e.translateToString(!0,V[0],V[1]),V[1]-V[0]),re=V[1]-1,I=ae.getWidth()):ie=V[1]}let ge=this._isCellInSelection(H,t),xe=i&&H===s,J=A&&H>=c&&H<=u,ve=!1;this._decorationService.forEachDecorationAtCell(H,t,void 0,V=>{ve=!0});let fe=ae.getChars()||Ur;if(fe===" "&&(ae.isUnderline()||ae.isOverline())&&(fe=" "),F=I*l-o.get(fe,ae.isBold(),ae.isItalic()),!p)p=this._document.createElement("span");else if(b&&(ge&&O||!ge&&!O&&ae.bg===y)&&(ge&&O&&h.selectionForeground||ae.fg===g)&&ae.extended.ext===L&&J===x&&F===$&&!xe&&!D&&!ve&&q){ae.isInvisible()?v+=Ur:v+=fe,b++;continue}else b&&(p.textContent=v),p=this._document.createElement("span"),b=0,v="";if(y=ae.bg,g=ae.fg,L=ae.extended.ext,x=J,$=F,O=ge,D&&s>=H&&s<=re&&(s=H),!this._coreService.isCursorHidden&&xe&&this._coreService.isCursorInitialized){if(B.push("xterm-cursor"),this._coreBrowserService.isFocused)a&&B.push("xterm-cursor-blink"),B.push(n==="bar"?"xterm-cursor-bar":n==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(r)switch(r){case"outline":B.push("xterm-cursor-outline");break;case"block":B.push("xterm-cursor-block");break;case"bar":B.push("xterm-cursor-bar");break;case"underline":B.push("xterm-cursor-underline");break}}if(ae.isBold()&&B.push("xterm-bold"),ae.isItalic()&&B.push("xterm-italic"),ae.isDim()&&B.push("xterm-dim"),ae.isInvisible()?v=Ur:v=ae.getChars()||Ur,ae.isUnderline()&&(B.push(`xterm-underline-${ae.extended.underlineStyle}`),v===" "&&(v=" "),!ae.isUnderlineColorDefault()))if(ae.isUnderlineColorRGB())p.style.textDecorationColor=`rgb(${A0.toColorRGB(ae.getUnderlineColor()).join(",")})`;else{let V=ae.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&ae.isBold()&&V<8&&(V+=8),p.style.textDecorationColor=h.ansi[V].css}ae.isOverline()&&(B.push("xterm-overline"),v===" "&&(v=" ")),ae.isStrikethrough()&&B.push("xterm-strikethrough"),J&&(p.style.textDecoration="underline");let he=ae.getFgColor(),te=ae.getFgColorMode(),ue=ae.getBgColor(),j=ae.getBgColorMode(),K=!!ae.isInverse();if(K){let V=he;he=ue,ue=V;let ee=te;te=j,j=ee}let se,Q,S=!1;this._decorationService.forEachDecorationAtCell(H,t,void 0,V=>{V.options.layer!=="top"&&S||(V.backgroundColorRGB&&(j=50331648,ue=V.backgroundColorRGB.rgba>>8&16777215,se=V.backgroundColorRGB),V.foregroundColorRGB&&(te=50331648,he=V.foregroundColorRGB.rgba>>8&16777215,Q=V.foregroundColorRGB),S=V.options.layer==="top")}),!S&&ge&&(se=this._coreBrowserService.isFocused?h.selectionBackgroundOpaque:h.selectionInactiveBackgroundOpaque,ue=se.rgba>>8&16777215,j=50331648,S=!0,h.selectionForeground&&(te=50331648,he=h.selectionForeground.rgba>>8&16777215,Q=h.selectionForeground)),S&&B.push("xterm-decoration-top");let T;switch(j){case 16777216:case 33554432:T=h.ansi[ue],B.push(`xterm-bg-${ue}`);break;case 50331648:T=Qt.toColor(ue>>16,ue>>8&255,ue&255),this._addStyle(p,`background-color:#${I_((ue>>>0).toString(16),"0",6)}`);break;case 0:default:K?(T=h.foreground,B.push("xterm-bg-257")):T=h.background}switch(se||ae.isDim()&&(se=Rt.multiplyOpacity(T,.5)),te){case 16777216:case 33554432:ae.isBold()&&he<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(he+=8),this._applyMinimumContrast(p,T,h.ansi[he],ae,se,void 0)||B.push(`xterm-fg-${he}`);break;case 50331648:let V=Qt.toColor(he>>16&255,he>>8&255,he&255);this._applyMinimumContrast(p,T,V,ae,se,Q)||this._addStyle(p,`color:#${I_(he.toString(16),"0",6)}`);break;case 0:default:this._applyMinimumContrast(p,T,h.foreground,ae,se,Q)||K&&B.push("xterm-fg-257")}B.length&&(p.className=B.join(" "),B.length=0),!xe&&!D&&!ve&&q?b++:p.textContent=v,F!==this.defaultSpacing&&(p.style.letterSpacing=`${F}px`),d.push(p),H=re}return p&&b&&(p.textContent=v),d}_applyMinimumContrast(e,t,i,n,r,s){if(this._optionsService.rawOptions.minimumContrastRatio===1||oG(n.getCode()))return!1;let a=this._getContrastCache(n),l;if(!r&&!s&&(l=a.getColor(t.rgba,i.rgba)),l===void 0){let o=this._optionsService.rawOptions.minimumContrastRatio/(n.isDim()?2:1);l=Rt.ensureContrastRatio(r||t,s||i,o),a.setColor((r||t).rgba,(s||i).rgba,l??null)}return l?(this._addStyle(e,`color:${l.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,n=this._selectionEnd;return!i||!n?!1:this._columnSelectMode?i[0]<=n[0]?e>=i[0]&&t>=i[1]&&e<n[0]&&t<=n[1]:e<i[0]&&t>=i[1]&&e>=n[0]&&t<=n[1]:t>i[1]&&t<n[1]||i[1]===n[1]&&t===i[1]&&e>=i[0]&&e<n[0]||i[1]<n[1]&&t===n[1]&&e<n[0]||i[1]<n[1]&&t===i[1]&&e>=i[0]}};Vh=qt([Ie(1,w5),Ie(2,Zi),Ie(3,Ar),Ie(4,zs),Ie(5,$0),Ie(6,wl)],Vh);function I_(e,t,i){for(;e.length<i;)e=t+e;return e}var uG=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 n=e.createElement("span");n.classList.add("xterm-char-measure-element"),n.style.fontWeight="bold";let r=e.createElement("span");r.classList.add("xterm-char-measure-element"),r.style.fontStyle="italic";let s=e.createElement("span");s.classList.add("xterm-char-measure-element"),s.style.fontWeight="bold",s.style.fontStyle="italic",this._measureElements=[i,n,r,s],this._container.appendChild(i),this._container.appendChild(n),this._container.appendChild(r),this._container.appendChild(s),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,n){e===this._font&&t===this._fontSize&&i===this._weight&&n===this._weightBold||(this._font=e,this._fontSize=t,this._weight=i,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${i}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${i}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(e,t,i){let n=0;if(!t&&!i&&e.length===1&&(n=e.charCodeAt(0))<256){if(this._flat[n]!==-9999)return this._flat[n];let a=this._measure(e,0);return a>0&&(this._flat[n]=a),a}let r=e;t&&(r+="B"),i&&(r+="I");let s=this._holey.get(r);if(s===void 0){let a=0;t&&(a|=1),i&&(a|=2),s=this._measure(e,a),s>0&&this._holey.set(r,s)}return s}_measure(e,t){let i=this._measureElements[t];return i.textContent=e.repeat(32),i.offsetWidth/32}},dG=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,n=!1){if(this.selectionStart=t,this.selectionEnd=i,!t||!i||t[0]===i[0]&&t[1]===i[1]){this.clear();return}let r=e.buffers.active.ydisp,s=t[1]-r,a=i[1]-r,l=Math.max(s,0),o=Math.min(a,e.rows-1);if(l>=e.rows||o<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=n,this.viewportStartRow=s,this.viewportEndRow=a,this.viewportCappedStartRow=l,this.viewportCappedEndRow=o,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 hG(){return new dG}var q1="xterm-dom-renderer-owner-",ln="xterm-rows",sc="xterm-fg-",V_="xterm-bg-",fo="xterm-focus",ac="xterm-selection",fG=1,Dh=class extends rt{constructor(e,t,i,n,r,s,a,l,o,c,u,d,f,h){super(),this._terminal=e,this._document=t,this._element=i,this._screenElement=n,this._viewportElement=r,this._helperContainer=s,this._linkifier2=a,this._charSizeService=o,this._optionsService=c,this._bufferService=u,this._coreService=d,this._coreBrowserService=f,this._themeService=h,this._terminalClass=fG++,this._rowElements=[],this._selectionRenderModel=hG(),this.onRequestRedraw=this._register(new Ne).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(ln),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(ac),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=cG(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(m=>this._injectCss(m))),this._injectCss(this._themeService.colors),this._rowFactory=l.createInstance(Vh,document),this._element.classList.add(q1+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(m=>this._handleLinkHover(m))),this._register(this._linkifier2.onHideLinkUnderline(m=>this._handleLinkLeave(m))),this._register(Dt(()=>{this._element.classList.remove(q1+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new uG(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} .${ln} 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} .${ln} { 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} .${ln} .xterm-dim { color: ${Rt.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}`,n=`blink_bar_${this._terminalClass}`,r=`blink_block_${this._terminalClass}`;t+=`@keyframes ${i} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${n} { 50% { box-shadow: none; }}`,t+=`@keyframes ${r} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${ln}.${fo} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${ln}.${fo} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${ln}.${fo} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${ln} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${ln} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${ln} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${ln} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${ln} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${ac} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${ac} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${ac} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[s,a]of e.ansi.entries())t+=`${this._terminalSelector} .${sc}${s} { color: ${a.css}; }${this._terminalSelector} .${sc}${s}.xterm-dim { color: ${Rt.multiplyOpacity(a,.5).css}; }${this._terminalSelector} .${V_}${s} { background-color: ${a.css}; }`;t+=`${this._terminalSelector} .${sc}257 { color: ${Rt.opaque(e.background).css}; }${this._terminalSelector} .${sc}257.xterm-dim { color: ${Rt.multiplyOpacity(Rt.opaque(e.background),.5).css}; }${this._terminalSelector} .${V_}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 n=this._document.createElement("div");this._rowContainer.appendChild(n),this._rowElements.push(n)}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(fo),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(fo),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 n=this._selectionRenderModel.viewportStartRow,r=this._selectionRenderModel.viewportEndRow,s=this._selectionRenderModel.viewportCappedStartRow,a=this._selectionRenderModel.viewportCappedEndRow,l=this._document.createDocumentFragment();if(i){let o=e[0]>t[0];l.appendChild(this._createSelectionElement(s,o?t[0]:e[0],o?e[0]:t[0],a-s+1))}else{let o=n===s?e[0]:0,c=s===r?t[0]:this._bufferService.cols;l.appendChild(this._createSelectionElement(s,o,c));let u=a-s-1;if(l.appendChild(this._createSelectionElement(s+1,0,this._bufferService.cols,u)),s!==a){let d=r===a?t[0]:this._bufferService.cols;l.appendChild(this._createSelectionElement(a,0,d))}}this._selectionContainer.appendChild(l)}_createSelectionElement(e,t,i,n=1){let r=this._document.createElement("div"),s=t*this.dimensions.css.cell.width,a=this.dimensions.css.cell.width*(i-t);return s+a>this.dimensions.css.canvas.width&&(a=this.dimensions.css.canvas.width-s),r.style.height=`${n*this.dimensions.css.cell.height}px`,r.style.top=`${e*this.dimensions.css.cell.height}px`,r.style.left=`${s}px`,r.style.width=`${a}px`,r}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,n=i.ybase+i.y,r=Math.min(i.x,this._bufferService.cols-1),s=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,a=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,l=this._optionsService.rawOptions.cursorInactiveStyle;for(let o=e;o<=t;o++){let c=o+i.ydisp,u=this._rowElements[o],d=i.lines.get(c);if(!u||!d)break;u.replaceChildren(...this._rowFactory.createRow(d,c,c===n,a,l,r,s,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${q1}${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,n,r,s){i<0&&(e=0),n<0&&(t=0);let a=this._bufferService.rows-1;i=Math.max(Math.min(i,a),0),n=Math.max(Math.min(n,a),0),r=Math.min(r,this._bufferService.cols);let l=this._bufferService.buffer,o=l.ybase+l.y,c=Math.min(l.x,r-1),u=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,f=this._optionsService.rawOptions.cursorInactiveStyle;for(let h=i;h<=n;++h){let m=h+l.ydisp,p=this._rowElements[h],b=l.lines.get(m);if(!p||!b)break;p.replaceChildren(...this._rowFactory.createRow(b,m,m===o,d,f,c,u,this.dimensions.css.cell.width,this._widthCache,s?h===i?e:0:-1,s?(h===n?t:r)-1:-1))}}};Dh=qt([Ie(7,vf),Ie(8,Yu),Ie(9,Zi),Ie(10,Di),Ie(11,zs),Ie(12,Ar),Ie(13,wl)],Dh);var Zh=class extends rt{constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this._register(new Ne),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new _G(this._optionsService))}catch{this._measureStrategy=this._register(new pG(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())}};Zh=qt([Ie(2,Zi)],Zh);var Z5=class extends rt{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)}},pG=class extends Z5{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}},_G=class extends Z5{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}},mG=class extends rt{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 vG(this._window)),this._onDprChange=this._register(new Ne),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new Ne),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(n=>this._screenDprMonitor.setWindow(n))),this._register(yi.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(Xe(this._textarea,"focus",()=>this._isFocused=!0)),this._register(Xe(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}},vG=class extends rt{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new Sa),this._onDprChange=this._register(new Ne),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(Dt(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=Xe(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)}},gG=class extends rt{constructor(){super(),this.linkProviders=[],this._register(Dt(()=>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 Af(e,t,i){let n=i.getBoundingClientRect(),r=e.getComputedStyle(i),s=parseInt(r.getPropertyValue("padding-left")),a=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-n.left-s,t.clientY-n.top-a]}function bG(e,t,i,n,r,s,a,l,o){if(!s)return;let c=Af(e,t,i);if(c)return c[0]=Math.ceil((c[0]+(o?a/2:0))/a),c[1]=Math.ceil(c[1]/l),c[0]=Math.min(Math.max(c[0],1),n+(o?1:0)),c[1]=Math.min(Math.max(c[1],1),r),c}var Bh=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,n,r){return bG(window,e,t,i,n,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,r)}getMouseReportCoords(e,t){let i=Af(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])}}};Bh=qt([Ie(0,$r),Ie(1,Yu)],Bh);var yG=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=[]}},B5={};xK(B5,{getSafariVersion:()=>SG,isChromeOS:()=>W5,isFirefox:()=>F5,isIpad:()=>CG,isIphone:()=>kG,isLegacyEdge:()=>wG,isLinux:()=>$f,isMac:()=>ou,isNode:()=>Xu,isSafari:()=>z5,isWindows:()=>U5});var Xu=typeof process<"u"&&"title"in process,M0=Xu?"node":navigator.userAgent,L0=Xu?"node":navigator.platform,F5=M0.includes("Firefox"),wG=M0.includes("Edge"),z5=/^((?!chrome|android).)*safari/i.test(M0);function SG(){if(!z5)return 0;let e=M0.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var ou=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(L0),CG=L0==="iPad",kG=L0==="iPhone",U5=["Windows","Win16","Win32","WinCE"].includes(L0),$f=L0.indexOf("Linux")>=0,W5=/\bCrOS\b/.test(M0),j5=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,n=e.timeRemaining(),r=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),r=e.timeRemaining(),i*1.5>r){n-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(n-t))}ms`),this._start();return}n=r}this.clear()}},AG=class extends j5{_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())}}},$G=class extends j5{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},cu=!Xu&&"requestIdleCallback"in window?$G:AG,MG=class{constructor(){this._queue=new cu}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},Fh=class extends rt{constructor(e,t,i,n,r,s,a,l,o){super(),this._rowCount=e,this._optionsService=i,this._charSizeService=n,this._coreService=r,this._coreBrowserService=l,this._renderer=this._register(new Sa),this._pausedResizeTask=new MG,this._observerDisposable=this._register(new Sa),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 Ne),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new Ne),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new Ne),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new Ne),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new yG((c,u)=>this._renderRows(c,u),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new LG(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(Dt(()=>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(s.onDecorationRegistered(()=>this._fullRefresh())),this._register(s.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(o.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(n=>this._handleIntersectionChange(n[n.length-1]),{threshold:0});i.observe(t),this._observerDisposable.value=Dt(()=>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 n=this._syncOutputHandler.flush();n&&(e=Math.min(e,n.start),t=Math.max(t,n.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 n;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,(n=this._renderer.value)==null||n.handleSelectionChanged(e,t,i)}handleCursorMove(){var e;(e=this._renderer.value)==null||e.handleCursorMove()}clear(){var e;(e=this._renderer.value)==null||e.clear()}};Fh=qt([Ie(2,Zi),Ie(3,Yu),Ie(4,zs),Ie(5,$0),Ie(6,Di),Ie(7,Ar),Ie(8,wl)],Fh);var LG=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 EG(e,t,i,n){let r=i.buffer.x,s=i.buffer.y;if(!i.buffer.hasScrollback)return TG(r,s,e,t,i,n)+Ju(s,t,i,n)+NG(r,s,e,t,i,n);let a;if(s===t)return a=r>e?"D":"C",d0(Math.abs(r-e),u0(a,n));a=s>t?"D":"C";let l=Math.abs(s-t),o=HG(s>t?e:r,i)+(l-1)*i.cols+1+xG(s>t?r:e);return d0(o,u0(a,n))}function xG(e,t){return e-1}function HG(e,t){return t.cols-e}function TG(e,t,i,n,r,s){return Ju(t,n,r,s).length===0?"":d0(q5(e,t,e,t-Vs(t,r),!1,r).length,u0("D",s))}function Ju(e,t,i,n){let r=e-Vs(e,i),s=t-Vs(t,i),a=Math.abs(r-s)-PG(e,t,i);return d0(a,u0(K5(e,t),n))}function NG(e,t,i,n,r,s){let a;Ju(t,n,r,s).length>0?a=n-Vs(n,r):a=t;let l=n,o=OG(e,t,i,n,r,s);return d0(q5(e,a,i,l,o==="C",r).length,u0(o,s))}function PG(e,t,i){var a;let n=0,r=e-Vs(e,i),s=t-Vs(t,i);for(let l=0;l<Math.abs(r-s);l++){let o=K5(e,t)==="A"?-1:1;(a=i.buffer.lines.get(r+o*l))!=null&&a.isWrapped&&n++}return n}function Vs(e,t){let i=0,n=t.buffer.lines.get(e),r=n==null?void 0:n.isWrapped;for(;r&&e>=0&&e<t.rows;)i++,n=t.buffer.lines.get(--e),r=n==null?void 0:n.isWrapped;return i}function OG(e,t,i,n,r,s){let a;return Ju(i,n,r,s).length>0?a=n-Vs(n,r):a=t,e<i&&a<=n||e>=i&&a<n?"C":"D"}function K5(e,t){return e>t?"A":"B"}function q5(e,t,i,n,r,s){let a=e,l=t,o="";for(;(a!==i||l!==n)&&l>=0&&l<s.buffer.lines.length;)a+=r?1:-1,r&&a>s.cols-1?(o+=s.buffer.translateBufferLineToString(l,!1,e,a),a=0,e=0,l++):!r&&a<0&&(o+=s.buffer.translateBufferLineToString(l,!1,0,e+1),a=s.cols-1,e=a,l--);return o+s.buffer.translateBufferLineToString(l,!1,e,a)}function u0(e,t){let i=t?"O":"[";return $e.ESC+i+e}function d0(e,t){e=Math.floor(e);let i="";for(let n=0;n<e;n++)i+=t;return i}var RG=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 D_(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 G1=50,IG=15,VG=50,DG=500,ZG=" ",BG=new RegExp(ZG,"g"),zh=class extends rt{constructor(e,t,i,n,r,s,a,l,o){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=n,this._coreService=r,this._mouseService=s,this._optionsService=a,this._renderService=l,this._coreBrowserService=o,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new pn,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new Ne),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new Ne),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new Ne),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new Ne),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 RG(this._bufferService),this._activeSelectionMode=0,this._register(Dt(()=>{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,n=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return"";let r=e[0]<t[0]?e[0]:t[0],s=e[0]<t[0]?t[0]:e[0];for(let a=e[1];a<=t[1];a++){let l=i.translateBufferLineToString(a,!0,r,s);n.push(l)}}else{let r=e[1]===t[1]?t[0]:void 0;n.push(i.translateBufferLineToString(e[1],!0,e[0],r));for(let s=e[1]+1;s<=t[1]-1;s++){let a=i.lines.get(s),l=i.translateBufferLineToString(s,!0);a!=null&&a.isWrapped?n[n.length-1]+=l:n.push(l)}if(e[1]!==t[1]){let s=i.lines.get(t[1]),a=i.translateBufferLineToString(t[1],!0,0,t[0]);s&&s.isWrapped?n[n.length-1]+=a:n.push(a)}}return n.map(r=>r.replace(BG," ")).join(U5?`\r
92
- `:`
93
- `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),$f&&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,n=this._model.finalSelectionEnd;return!i||!n||!t?!1:this._areCoordsInSelection(t,i,n)}isCellInSelection(e,t){let i=this._model.finalSelectionStart,n=this._model.finalSelectionEnd;return!i||!n?!1:this._areCoordsInSelection([e,t],i,n)}_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 r,s;let i=(s=(r=this._linkifier.currentLink)==null?void 0:r.link)==null?void 0:s.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=D_(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let n=this._getMouseBufferCoords(e);return n?(this._selectWordAt(n,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=Af(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,-G1),G1),t/=G1,t/Math.abs(t)+Math.round(t*(IG-1)))}shouldForceSelection(e){return ou?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(),VG)}_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&&!(ou&&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 n=i.lines.get(this._model.selectionEnd[1]);n&&n.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<DG&&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 n=EG(i[0]-1,i[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(n,!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 n=0;t>=n;n++){let r=e.loadCell(n,this._workCell).getChars().length;this._workCell.getWidth()===0?i--:r>1&&t!==n&&(i+=r-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,n=!0){if(e[0]>=this._bufferService.cols)return;let r=this._bufferService.buffer,s=r.lines.get(e[1]);if(!s)return;let a=r.translateBufferLineToString(e[1],!1),l=this._convertViewportColToCharacterIndex(s,e[0]),o=l,c=e[0]-l,u=0,d=0,f=0,h=0;if(a.charAt(l)===" "){for(;l>0&&a.charAt(l-1)===" ";)l--;for(;o<a.length&&a.charAt(o+1)===" ";)o++}else{let b=e[0],v=e[0];s.getWidth(b)===0&&(u++,b--),s.getWidth(v)===2&&(d++,v++);let C=s.getString(v).length;for(C>1&&(h+=C-1,o+=C-1);b>0&&l>0&&!this._isCharWordSeparator(s.loadCell(b-1,this._workCell));){s.loadCell(b-1,this._workCell);let y=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,b--):y>1&&(f+=y-1,l-=y-1),l--,b--}for(;v<s.length&&o+1<a.length&&!this._isCharWordSeparator(s.loadCell(v+1,this._workCell));){s.loadCell(v+1,this._workCell);let y=this._workCell.getChars().length;this._workCell.getWidth()===2?(d++,v++):y>1&&(h+=y-1,o+=y-1),o++,v++}}o++;let m=l+c-u+f,p=Math.min(this._bufferService.cols,o-l+u+d-f-h);if(!(!t&&a.slice(l,o).trim()==="")){if(i&&m===0&&s.getCodePoint(0)!==32){let b=r.lines.get(e[1]-1);if(b&&s.isWrapped&&b.getCodePoint(this._bufferService.cols-1)!==32){let v=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(v){let C=this._bufferService.cols-v.start;m-=C,p+=C}}}if(n&&m+p===this._bufferService.cols&&s.getCodePoint(this._bufferService.cols-1)!==32){let b=r.lines.get(e[1]+1);if(b!=null&&b.isWrapped&&b.getCodePoint(0)!==32){let v=this._getWordAt([0,e[1]+1],!1,!1,!0);v&&(p+=v.length)}}return{start:m,length:p}}}_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=D_(i,this._bufferService.cols)}};zh=qt([Ie(3,Di),Ie(4,zs),Ie(5,gf),Ie(6,Zi),Ie(7,$r),Ie(8,Ar)],zh);var Z_=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={}}},B_=class{constructor(){this._color=new Z_,this._css=new Z_}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()}},ti=Object.freeze((()=>{let e=[Bt.toColor("#2e3436"),Bt.toColor("#cc0000"),Bt.toColor("#4e9a06"),Bt.toColor("#c4a000"),Bt.toColor("#3465a4"),Bt.toColor("#75507b"),Bt.toColor("#06989a"),Bt.toColor("#d3d7cf"),Bt.toColor("#555753"),Bt.toColor("#ef2929"),Bt.toColor("#8ae234"),Bt.toColor("#fce94f"),Bt.toColor("#729fcf"),Bt.toColor("#ad7fa8"),Bt.toColor("#34e2e2"),Bt.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){let n=t[i/36%6|0],r=t[i/6%6|0],s=t[i%6];e.push({css:Qt.toCss(n,r,s),rgba:Qt.toRgba(n,r,s)})}for(let i=0;i<24;i++){let n=8+i*10;e.push({css:Qt.toCss(n,n,n),rgba:Qt.toRgba(n,n,n)})}return e})()),Ss=Bt.toColor("#ffffff"),Co=Bt.toColor("#000000"),F_=Bt.toColor("#ffffff"),z_=Co,po={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117},FG=Ss,Uh=class extends rt{constructor(e){super(),this._optionsService=e,this._contrastCache=new B_,this._halfContrastCache=new B_,this._onChangeColors=this._register(new Ne),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:Ss,background:Co,cursor:F_,cursorAccent:z_,selectionForeground:void 0,selectionBackgroundTransparent:po,selectionBackgroundOpaque:Rt.blend(Co,po),selectionInactiveBackgroundTransparent:po,selectionInactiveBackgroundOpaque:Rt.blend(Co,po),scrollbarSliderBackground:Rt.opacity(Ss,.2),scrollbarSliderHoverBackground:Rt.opacity(Ss,.4),scrollbarSliderActiveBackground:Rt.opacity(Ss,.5),overviewRulerBorder:Ss,ansi:ti.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=wt(e.foreground,Ss),t.background=wt(e.background,Co),t.cursor=Rt.blend(t.background,wt(e.cursor,F_)),t.cursorAccent=Rt.blend(t.background,wt(e.cursorAccent,z_)),t.selectionBackgroundTransparent=wt(e.selectionBackground,po),t.selectionBackgroundOpaque=Rt.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=wt(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=Rt.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?wt(e.selectionForeground,R_):void 0,t.selectionForeground===R_&&(t.selectionForeground=void 0),Rt.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=Rt.opacity(t.selectionBackgroundTransparent,.3)),Rt.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=Rt.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=wt(e.scrollbarSliderBackground,Rt.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=wt(e.scrollbarSliderHoverBackground,Rt.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=wt(e.scrollbarSliderActiveBackground,Rt.opacity(t.foreground,.5)),t.overviewRulerBorder=wt(e.overviewRulerBorder,FG),t.ansi=ti.slice(),t.ansi[0]=wt(e.black,ti[0]),t.ansi[1]=wt(e.red,ti[1]),t.ansi[2]=wt(e.green,ti[2]),t.ansi[3]=wt(e.yellow,ti[3]),t.ansi[4]=wt(e.blue,ti[4]),t.ansi[5]=wt(e.magenta,ti[5]),t.ansi[6]=wt(e.cyan,ti[6]),t.ansi[7]=wt(e.white,ti[7]),t.ansi[8]=wt(e.brightBlack,ti[8]),t.ansi[9]=wt(e.brightRed,ti[9]),t.ansi[10]=wt(e.brightGreen,ti[10]),t.ansi[11]=wt(e.brightYellow,ti[11]),t.ansi[12]=wt(e.brightBlue,ti[12]),t.ansi[13]=wt(e.brightMagenta,ti[13]),t.ansi[14]=wt(e.brightCyan,ti[14]),t.ansi[15]=wt(e.brightWhite,ti[15]),e.extendedAnsi){let i=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let n=0;n<i;n++)t.ansi[n+16]=wt(e.extendedAnsi[n],ti[n+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()}}};Uh=qt([Ie(0,Zi)],Uh);function wt(e,t){if(e!==void 0)try{return Bt.toColor(e)}catch{}return t}var zG=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)}},UG=class{constructor(){this._services=new zG,this._services.set(vf,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let i=IK(e).sort((s,a)=>s.index-a.index),n=[];for(let s of i){let a=this._services.get(s.id);if(!a)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${s.id._id}.`);n.push(a)}let r=i.length>0?i[0].index:t.length;if(t.length!==r)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);return new e(...t,...n)}},WG={trace:0,debug:1,info:2,warn:3,error:4,off:5},jG="xterm.js: ",Wh=class extends rt{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=WG[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?"":jG)+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)}};Wh=qt([Ie(0,Zi)],Wh);var U_=class extends rt{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new Ne),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new Ne),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new Ne),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 n=e;n<this._length-t;n++)this._array[this._getCyclicIndex(n)]=this._array[this._getCyclicIndex(n+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let n=this._length-1;n>=e;n--)this._array[this._getCyclicIndex(n+i.length)]=this._array[this._getCyclicIndex(n)];for(let n=0;n<i.length;n++)this._array[this._getCyclicIndex(e+n)]=i[n];if(i.length&&this.onInsertEmitter.fire({index:e,amount:i.length}),this._length+i.length>this._maxLength){let n=this._length+i.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}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 r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));let n=e+t+i-this._length;if(n>0)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let n=0;n<t;n++)this.set(e+n+i,this.get(e+n))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},nt=3,Jt=Object.freeze(new A0),lc=0,Y1=2,ko=class G5{constructor(t,i,n=!1){this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(t*nt);let r=i||pn.fromCharData([0,p5,1,0]);for(let s=0;s<t;++s)this.setCell(s,r);this.length=t}get(t){let i=this._data[t*nt+0],n=i&2097151;return[this._data[t*nt+1],i&2097152?this._combined[t]:n?Br(n):"",i>>22,i&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):n]}set(t,i){this._data[t*nt+1]=i[0],i[1].length>1?(this._combined[t]=i[1],this._data[t*nt+0]=t|2097152|i[2]<<22):this._data[t*nt+0]=i[1].charCodeAt(0)|i[2]<<22}getWidth(t){return this._data[t*nt+0]>>22}hasWidth(t){return this._data[t*nt+0]&12582912}getFg(t){return this._data[t*nt+1]}getBg(t){return this._data[t*nt+2]}hasContent(t){return this._data[t*nt+0]&4194303}getCodePoint(t){let i=this._data[t*nt+0];return i&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):i&2097151}isCombined(t){return this._data[t*nt+0]&2097152}getString(t){let i=this._data[t*nt+0];return i&2097152?this._combined[t]:i&2097151?Br(i&2097151):""}isProtected(t){return this._data[t*nt+2]&536870912}loadCell(t,i){return lc=t*nt,i.content=this._data[lc+0],i.fg=this._data[lc+1],i.bg=this._data[lc+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*nt+0]=i.content,this._data[t*nt+1]=i.fg,this._data[t*nt+2]=i.bg}setCellFromCodepoint(t,i,n,r){r.bg&268435456&&(this._extendedAttrs[t]=r.extended),this._data[t*nt+0]=i|n<<22,this._data[t*nt+1]=r.fg,this._data[t*nt+2]=r.bg}addCodepointToCell(t,i,n){let r=this._data[t*nt+0];r&2097152?this._combined[t]+=Br(i):r&2097151?(this._combined[t]=Br(r&2097151)+Br(i),r&=-2097152,r|=2097152):r=i|1<<22,n&&(r&=-12582913,r|=n<<22),this._data[t*nt+0]=r}insertCells(t,i,n){if(t%=this.length,t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),i<this.length-t){let r=new pn;for(let s=this.length-t-i-1;s>=0;--s)this.setCell(t+i+s,this.loadCell(t+s,r));for(let s=0;s<i;++s)this.setCell(t+s,n)}else for(let r=t;r<this.length;++r)this.setCell(r,n);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,n)}deleteCells(t,i,n){if(t%=this.length,i<this.length-t){let r=new pn;for(let s=0;s<this.length-t-i;++s)this.setCell(t+s,this.loadCell(t+i+s,r));for(let s=this.length-i;s<this.length;++s)this.setCell(s,n)}else for(let r=t;r<this.length;++r)this.setCell(r,n);t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),this.getWidth(t)===0&&!this.hasContent(t)&&this.setCellFromCodepoint(t,0,1,n)}replaceCells(t,i,n,r=!1){if(r){for(t&&this.getWidth(t-1)===2&&!this.isProtected(t-1)&&this.setCellFromCodepoint(t-1,0,1,n),i<this.length&&this.getWidth(i-1)===2&&!this.isProtected(i)&&this.setCellFromCodepoint(i,0,1,n);t<i&&t<this.length;)this.isProtected(t)||this.setCell(t,n),t++;return}for(t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,n),i<this.length&&this.getWidth(i-1)===2&&this.setCellFromCodepoint(i,0,1,n);t<i&&t<this.length;)this.setCell(t++,n)}resize(t,i){if(t===this.length)return this._data.length*4*Y1<this._data.buffer.byteLength;let n=t*nt;if(t>this.length){if(this._data.buffer.byteLength>=n*4)this._data=new Uint32Array(this._data.buffer,0,n);else{let r=new Uint32Array(n);r.set(this._data),this._data=r}for(let r=this.length;r<t;++r)this.setCell(r,i)}else{this._data=this._data.subarray(0,n);let r=Object.keys(this._combined);for(let a=0;a<r.length;a++){let l=parseInt(r[a],10);l>=t&&delete this._combined[l]}let s=Object.keys(this._extendedAttrs);for(let a=0;a<s.length;a++){let l=parseInt(s[a],10);l>=t&&delete this._extendedAttrs[l]}}return this.length=t,n*4*Y1<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*Y1<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 n=0;n<this.length;++n)this.isProtected(n)||this.setCell(n,t);return}this._combined={},this._extendedAttrs={};for(let n=0;n<this.length;++n)this.setCell(n,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 G5(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*nt+0]&4194303)return t+(this._data[t*nt+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*nt+0]&4194303||this._data[t*nt+2]&50331648)return t+(this._data[t*nt+0]>>22);return 0}copyCellsFrom(t,i,n,r,s){let a=t._data;if(s)for(let o=r-1;o>=0;o--){for(let c=0;c<nt;c++)this._data[(n+o)*nt+c]=a[(i+o)*nt+c];a[(i+o)*nt+2]&268435456&&(this._extendedAttrs[n+o]=t._extendedAttrs[i+o])}else for(let o=0;o<r;o++){for(let c=0;c<nt;c++)this._data[(n+o)*nt+c]=a[(i+o)*nt+c];a[(i+o)*nt+2]&268435456&&(this._extendedAttrs[n+o]=t._extendedAttrs[i+o])}let l=Object.keys(t._combined);for(let o=0;o<l.length;o++){let c=parseInt(l[o],10);c>=i&&(this._combined[c-i+n]=t._combined[c])}}translateToString(t,i,n,r){i=i??0,n=n??this.length,t&&(n=Math.min(n,this.getTrimmedLength())),r&&(r.length=0);let s="";for(;i<n;){let a=this._data[i*nt+0],l=a&2097151,o=a&2097152?this._combined[i]:l?Br(l):Ur;if(s+=o,r)for(let c=0;c<o.length;++c)r.push(i);i+=a>>22||1}return r&&r.push(i),s}};function KG(e,t,i,n,r,s){let a=[];for(let l=0;l<e.length-1;l++){let o=l,c=e.get(++o);if(!c.isWrapped)continue;let u=[e.get(l)];for(;o<e.length&&c.isWrapped;)u.push(c),c=e.get(++o);if(!s&&n>=l&&n<o){l+=u.length-1;continue}let d=0,f=h0(u,d,t),h=1,m=0;for(;h<u.length;){let b=h0(u,h,t),v=b-m,C=i-f,y=Math.min(v,C);u[d].copyCellsFrom(u[h],m,f,y,!1),f+=y,f===i&&(d++,f=0),m+=y,m===b&&(h++,m=0),f===0&&d!==0&&u[d-1].getWidth(i-1)===2&&(u[d].copyCellsFrom(u[d-1],i-1,f++,1,!1),u[d-1].setCell(i-1,r))}u[d].replaceCells(f,i,r);let p=0;for(let b=u.length-1;b>0&&(b>d||u[b].getTrimmedLength()===0);b--)p++;p>0&&(a.push(l+u.length-p),a.push(p)),l+=u.length-1}return a}function qG(e,t){let i=[],n=0,r=t[n],s=0;for(let a=0;a<e.length;a++)if(r===a){let l=t[++n];e.onDeleteEmitter.fire({index:a-s,amount:l}),a+=l-1,s+=l,r=t[++n]}else i.push(a);return{layout:i,countRemoved:s}}function GG(e,t){let i=[];for(let n=0;n<t.length;n++)i.push(e.get(t[n]));for(let n=0;n<i.length;n++)e.set(n,i[n]);e.length=t.length}function YG(e,t,i){let n=[],r=e.map((o,c)=>h0(e,c,t)).reduce((o,c)=>o+c),s=0,a=0,l=0;for(;l<r;){if(r-l<i){n.push(r-l);break}s+=i;let o=h0(e,a,t);s>o&&(s-=o,a++);let c=e[a].getWidth(s-1)===2;c&&s--;let u=c?i-1:i;n.push(u),l+=u}return n}function h0(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();let n=!e[t].hasContent(i-1)&&e[t].getWidth(i-1)===1,r=e[t+1].getWidth(0)===2;return n&&r?i-1:i}var Y5=class X5{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=X5._nextId++,this._onDispose=this.register(new Ne),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),Is(this._disposables),this._disposables.length=0)}register(t){return this._disposables.push(t),t}};Y5._nextId=1;var XG=Y5,ci={},Cs=ci.B;ci[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:"≥","{":"π","|":"≠","}":"£","~":"·"};ci.A={"#":"£"};ci.B=void 0;ci[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"};ci.C=ci[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};ci.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"};ci.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"};ci.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"};ci.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"};ci.E=ci[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"};ci.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"};ci.H=ci[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};ci["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"};var W_=4294967295,j_=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=Jt.clone(),this.savedCharset=Cs,this.markers=[],this._nullCell=pn.fromCharData([0,p5,1,0]),this._whitespaceCell=pn.fromCharData([0,Ur,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new cu,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new U_(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 su),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 su),this._whitespaceCell}getBlankLine(e,t){return new ko(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>W_?W_:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=Jt);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 U_(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let i=this.getNullCell(Jt),n=0,r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._cols<e)for(let a=0;a<this.lines.length;a++)n+=+this.lines.get(a).resize(e,i);let s=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 ko(e,i)):this.ybase>0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(new ko(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(r<this.lines.maxLength){let a=this.lines.length-r;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=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),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 s=0;s<this.lines.length;s++)n+=+this.lines.get(s).resize(e,i);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),n>.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,n=KG(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(Jt),i);if(n.length>0){let r=qG(this.lines,n);GG(this.lines,r.layout),this._reflowLargerAdjustViewport(e,t,r.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){let n=this.getNullCell(Jt),r=i;for(;r-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new ko(e,n))):(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,n=this.getNullCell(Jt),r=[],s=0;for(let a=this.lines.length-1;a>=0;a--){let l=this.lines.get(a);if(!l||!l.isWrapped&&l.getTrimmedLength()<=e)continue;let o=[l];for(;l.isWrapped&&a>0;)l=this.lines.get(--a),o.unshift(l);if(!i){let y=this.ybase+this.y;if(y>=a&&y<a+o.length)continue}let c=o[o.length-1].getTrimmedLength(),u=YG(o,this._cols,e),d=u.length-o.length,f;this.ybase===0&&this.y!==this.lines.length-1?f=Math.max(0,this.y-this.lines.maxLength+d):f=Math.max(0,this.lines.length-this.lines.maxLength+d);let h=[];for(let y=0;y<d;y++){let g=this.getBlankLine(Jt,!0);h.push(g)}h.length>0&&(r.push({start:a+o.length+s,newLines:h}),s+=h.length),o.push(...h);let m=u.length-1,p=u[m];p===0&&(m--,p=u[m]);let b=o.length-d-1,v=c;for(;b>=0;){let y=Math.min(v,p);if(o[m]===void 0)break;if(o[m].copyCellsFrom(o[b],v-y,p-y,y,!0),p-=y,p===0&&(m--,p=u[m]),v-=y,v===0){b--;let g=Math.max(b,0);v=h0(o,g,this._cols)}}for(let y=0;y<o.length;y++)u[y]<e&&o[y].setCell(u[y],n);let C=d-f;for(;C-- >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+s)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+d,this.ybase+t-1)}if(r.length>0){let a=[],l=[];for(let p=0;p<this.lines.length;p++)l.push(this.lines.get(p));let o=this.lines.length,c=o-1,u=0,d=r[u];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+s);let f=0;for(let p=Math.min(this.lines.maxLength-1,o+s-1);p>=0;p--)if(d&&d.start>c+f){for(let b=d.newLines.length-1;b>=0;b--)this.lines.set(p--,d.newLines[b]);p++,a.push({index:c+1,amount:d.newLines.length}),f+=d.newLines.length,d=r[++u]}else this.lines.set(p,l[c--]);let h=0;for(let p=a.length-1;p>=0;p--)a[p].index+=h,this.lines.onInsertEmitter.fire(a[p]),h+=a[p].amount;let m=Math.max(0,o+s-this.lines.maxLength);m>0&&this.lines.onTrimEmitter.fire(m)}}translateBufferLineToString(e,t,i=0,n){let r=this.lines.get(e);return r?r.translateToString(t,i,n):""}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 XG(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)}},JG=class extends rt{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new Ne),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 j_(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new j_(!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)}},J5=2,Q5=1,jh=class extends rt{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new Ne),this.onResize=this._onResize.event,this._onScroll=this._register(new Ne),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,J5),this.rows=Math.max(e.rawOptions.rows||0,Q5),this.buffers=this._register(new JG(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,n=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:i,rowsChanged:n})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let i=this.buffer,n;n=this._cachedBlankLine,(!n||n.length!==this.cols||n.getFg(0)!==e.fg||n.getBg(0)!==e.bg)&&(n=i.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;let r=i.ybase+i.scrollTop,s=i.ybase+i.scrollBottom;if(i.scrollTop===0){let a=i.lines.isFull;s===i.lines.length-1?a?i.lines.recycle().copyFrom(n):i.lines.push(n.clone()):i.lines.splice(s+1,0,n.clone()),a?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{let a=s-r+1;i.lines.shiftElements(r+1,a-1,-1),i.lines.set(s,n.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 n=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),n!==i.ydisp&&(t||this._onScroll.fire(i.ydisp))}};jh=qt([Ie(0,Zi)],jh);var Ys={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:ou,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRuler:{}},QG=["normal","bold","100","200","300","400","500","600","700","800","900"],eY=class extends rt{constructor(e){super(),this._onOptionChange=this._register(new Ne),this.onOptionChange=this._onOptionChange.event;let t={...Ys};for(let i in e)if(i in t)try{let n=e[i];t[i]=this._sanitizeAndValidateOption(i,n)}catch(n){console.error(n)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(Dt(()=>{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 Ys))throw new Error(`No option with key "${i}"`);return this.rawOptions[i]},t=(i,n)=>{if(!(i in Ys))throw new Error(`No option with key "${i}"`);n=this._sanitizeAndValidateOption(i,n),this.rawOptions[i]!==n&&(this.rawOptions[i]=n,this._onOptionChange.fire(i))};for(let i in this.rawOptions){let n={get:e.bind(this,i),set:t.bind(this,i)};Object.defineProperty(this.options,i,n)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if(t||(t=Ys[e]),!tY(t))throw new Error(`"${t}" is not a valid value for ${e}`);break;case"wordSeparator":t||(t=Ys[e]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=QG.includes(t)?t:Ys[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 tY(e){return e==="block"||e==="underline"||e==="bar"}function Ao(e,t=5){if(typeof e!="object")return e;let i=Array.isArray(e)?[]:{};for(let n in e)i[n]=t<=1?e[n]:e[n]&&Ao(e[n],t-1);return i}var K_=Object.freeze({insertMode:!1}),q_=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),Kh=class extends rt{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 Ne),this.onData=this._onData.event,this._onUserInput=this._register(new Ne),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new Ne),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new Ne),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=Ao(K_),this.decPrivateModes=Ao(q_)}reset(){this.modes=Ao(K_),this.decPrivateModes=Ao(q_)}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(n=>n.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))}};Kh=qt([Ie(0,Di),Ie(1,b5),Ie(2,Zi)],Kh);var G_={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 X1(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 J1=String.fromCharCode,Y_={DEFAULT:e=>{let t=[X1(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1B[M${J1(t[0])}${J1(t[1])}${J1(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${X1(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${X1(e,!0)};${e.x};${e.y}${t}`}},qh=class extends rt{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 Ne),this.onProtocolChange=this._onProtocolChange.event;for(let n of Object.keys(G_))this.addProtocol(n,G_[n]);for(let n of Object.keys(Y_))this.addEncoding(n,Y_[n]);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 n=t/i,r=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(r/=n+0,Math.abs(e.deltaY)<50&&(r*=.3),this._wheelPartialScroll+=r,r=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(r*=this._bufferService.rows),r}_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)}};qh=qt([Ie(0,Di),Ie(1,zs),Ie(2,Zi)],qh);var Q1=[[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]],iY=[[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]],ii;function nY(e,t){let i=0,n=t.length-1,r;if(e<t[0][0]||e>t[n][1])return!1;for(;n>=i;)if(r=i+n>>1,e>t[r][1])i=r+1;else if(e<t[r][0])n=r-1;else return!0;return!1}var rY=class{constructor(){if(this.version="6",!ii){ii=new Uint8Array(65536),ii.fill(1),ii[0]=0,ii.fill(0,1,32),ii.fill(0,127,160),ii.fill(2,4352,4448),ii[9001]=2,ii[9002]=2,ii.fill(2,11904,42192),ii[12351]=1,ii.fill(2,44032,55204),ii.fill(2,63744,64256),ii.fill(2,65040,65050),ii.fill(2,65072,65136),ii.fill(2,65280,65377),ii.fill(2,65504,65511);for(let e=0;e<Q1.length;++e)ii.fill(0,Q1[e][0],Q1[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?ii[e]:nY(e,iY)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let i=this.wcwidth(e),n=i===0&&t!==0;if(n){let r=Hs.extractWidth(t);r===0?n=!1:r>i&&(i=r)}return Hs.createPropertyValue(0,i,n)}},Hs=class Sc{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new Ne,this.onChange=this._onChange.event;let t=new rY;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,n=!1){return(t&16777215)<<3|(i&3)<<1|(n?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,n=0,r=t.length;for(let s=0;s<r;++s){let a=t.charCodeAt(s);if(55296<=a&&a<=56319){if(++s>=r)return i+this.wcwidth(a);let c=t.charCodeAt(s);56320<=c&&c<=57343?a=(a-55296)*1024+c-56320+65536:i+=this.wcwidth(c)}let l=this.charProperties(a,n),o=Sc.extractWidth(l);Sc.extractShouldJoin(l)&&(o-=Sc.extractWidth(n)),i+=o,n=l}return i}charProperties(t,i){return this._activeProvider.charProperties(t,i)}},sY=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 X_(e){var n;let t=(n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1))==null?void 0:n.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 _o=2147483647,aY=256,e3=class Gh{constructor(t=32,i=32){if(this.maxLength=t,this.maxSubParamsLength=i,i>aY)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 Gh;if(!t.length)return i;for(let n=Array.isArray(t[0])?1:0;n<t.length;++n){let r=t[n];if(Array.isArray(r))for(let s=0;s<r.length;++s)i.addSubParam(r[s]);else i.addParam(r)}return i}clone(){let t=new Gh(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 n=this._subParamsIdx[i]>>8,r=this._subParamsIdx[i]&255;r-n>0&&t.push(Array.prototype.slice.call(this._subParams,n,r))}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>_o?_o: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>_o?_o: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,n=this._subParamsIdx[t]&255;return n-i>0?this._subParams.subarray(i,n):null}getSubParamsAll(){let t={};for(let i=0;i<this.length;++i){let n=this._subParamsIdx[i]>>8,r=this._subParamsIdx[i]&255;r-n>0&&(t[i]=this._subParams.slice(n,r))}return t}addDigit(t){let i;if(this._rejectDigits||!(i=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let n=this._digitIsSub?this._subParams:this.params,r=n[i-1];n[i-1]=~r?Math.min(r*10+t,_o):t}},mo=[],lY=class{constructor(){this._state=0,this._active=mo,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 n=i.indexOf(t);n!==-1&&i.splice(n,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=mo}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=mo,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||mo,!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",Gu(e,t,i));else for(let n=this._active.length-1;n>=0;n--)this._active[n].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 n=e[t++];if(n===59){this._state=2,this._start();break}if(n<48||57<n){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+n-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,n=this._active.length-1,r=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&i===!1){for(;n>=0&&(i=this._active[n].end(e),i!==!0);n--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,i;n--}for(;n>=0;n--)if(i=this._active[n].end(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,i}this._active=mo,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+=Gu(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}},vo=[],oY=class{constructor(){this._handlers=Object.create(null),this._active=vo,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=vo}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let i=this._handlers[e];return i.push(t),{dispose:()=>{let n=i.indexOf(t);n!==-1&&i.splice(n,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=vo,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||vo,!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",Gu(e,t,i));else for(let n=this._active.length-1;n>=0;n--)this._active[n].put(e,t,i)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,"UNHOOK",e);else{let i=!1,n=this._active.length-1,r=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&i===!1){for(;n>=0&&(i=this._active[n].unhook(e),i!==!0);n--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,i;n--}for(;n>=0;n--)if(i=this._active[n].unhook(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,i}this._active=vo,this._ident=0}},$o=new e3;$o.addParam(0);var J_=class{constructor(e){this._handler=e,this._data="",this._params=$o,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():$o,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=Gu(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=$o,this._data="",this._hitLimit=!1,i));return this._params=$o,this._data="",this._hitLimit=!1,t}},cY=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,n){this.table[t<<8|e]=i<<4|n}addMany(e,t,i,n){for(let r=0;r<e.length;r++)this.table[t<<8|e[r]]=i<<4|n}},un=160,uY=function(){let e=new cY(4095),t=Array.apply(null,Array(256)).map((l,o)=>o),i=(l,o)=>t.slice(l,o),n=i(32,127),r=i(0,24);r.push(25),r.push.apply(r,i(28,32));let s=i(0,14),a;e.setDefault(1,0),e.addMany(n,0,2,0);for(a in s)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(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(n,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(n,7,0,7),e.addMany(r,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(r,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(r,11,0,11),e.addMany(i(32,128),11,0,11),e.addMany(i(28,32),11,0,11),e.addMany(r,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(r,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(r,13,13,13),e.addMany(n,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(un,0,2,0),e.add(un,8,5,8),e.add(un,6,0,6),e.add(un,11,0,11),e.add(un,13,13,13),e}(),dY=class extends rt{constructor(e=uY){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 e3,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(t,i,n)=>{},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(Dt(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new lY),this._dcsParser=this._register(new oY),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 r=0;r<e.intermediates.length;++r){let s=e.intermediates.charCodeAt(r);if(32>s||s>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=s}}if(e.final.length!==1)throw new Error("final must be a single byte");let n=e.final.charCodeAt(0);if(t[0]>n||n>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=n,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 n=this._escHandlers[i];return n.push(t),{dispose:()=>{let r=n.indexOf(t);r!==-1&&n.splice(r,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 n=this._csiHandlers[i];return n.push(t),{dispose:()=>{let r=n.indexOf(t);r!==-1&&n.splice(r,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,n,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=n,this._parseStack.chunkPos=r}parse(e,t,i){let n=0,r=0,s=0,a;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,s=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 l=this._parseStack.handlers,o=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(i===!1&&o>-1){for(;o>=0&&(a=l[o](this._params),a!==!0);o--)if(a instanceof Promise)return this._parseStack.handlerPos=o,a}this._parseStack.handlers=[];break;case 4:if(i===!1&&o>-1){for(;o>=0&&(a=l[o](),a!==!0);o--)if(a instanceof Promise)return this._parseStack.handlerPos=o,a}this._parseStack.handlers=[];break;case 6:if(n=e[this._parseStack.chunkPos],a=this._dcsParser.unhook(n!==24&&n!==26,i),a)return a;n===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(n=e[this._parseStack.chunkPos],a=this._oscParser.end(n!==24&&n!==26,i),a)return a;n===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break}this._parseStack.state=0,s=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}for(let l=s;l<t;++l){switch(n=e[l],r=this._transitions.table[this.currentState<<8|(n<160?n:un)],r>>4){case 2:for(let f=l+1;;++f){if(f>=t||(n=e[f])<32||n>126&&n<un){this._printHandler(e,l,f),l=f-1;break}if(++f>=t||(n=e[f])<32||n>126&&n<un){this._printHandler(e,l,f),l=f-1;break}if(++f>=t||(n=e[f])<32||n>126&&n<un){this._printHandler(e,l,f),l=f-1;break}if(++f>=t||(n=e[f])<32||n>126&&n<un){this._printHandler(e,l,f),l=f-1;break}}break;case 3:this._executeHandlers[n]?this._executeHandlers[n]():this._executeHandlerFb(n),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:l,code:n,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let o=this._csiHandlers[this._collect<<8|n],c=o?o.length-1:-1;for(;c>=0&&(a=o[c](this._params),a!==!0);c--)if(a instanceof Promise)return this._preserveStack(3,o,c,r,l),a;c<0&&this._csiHandlerFb(this._collect<<8|n,this._params),this.precedingJoinState=0;break;case 8:do switch(n){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(n-48)}while(++l<t&&(n=e[l])>47&&n<60);l--;break;case 9:this._collect<<=8,this._collect|=n;break;case 10:let u=this._escHandlers[this._collect<<8|n],d=u?u.length-1:-1;for(;d>=0&&(a=u[d](),a!==!0);d--)if(a instanceof Promise)return this._preserveStack(4,u,d,r,l),a;d<0&&this._escHandlerFb(this._collect<<8|n),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|n,this._params);break;case 13:for(let f=l+1;;++f)if(f>=t||(n=e[f])===24||n===26||n===27||n>127&&n<un){this._dcsParser.put(e,l,f),l=f-1;break}break;case 14:if(a=this._dcsParser.unhook(n!==24&&n!==26),a)return this._preserveStack(6,[],0,r,l),a;n===27&&(r|=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 f=l+1;;f++)if(f>=t||(n=e[f])<32||n>127&&n<un){this._oscParser.put(e,l,f),l=f-1;break}break;case 6:if(a=this._oscParser.end(n!==24&&n!==26),a)return this._preserveStack(5,[],0,r,l),a;n===27&&(r|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break}this.currentState=r&15}}},hY=/^([\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})$/,fY=/^[\da-f]+$/;function Q_(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let i=hY.exec(t);if(i){let n=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/n*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/n*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/n*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),fY.exec(t)&&[3,6,9,12].includes(t.length))){let i=t.length/3,n=[0,0,0];for(let r=0;r<3;++r){let s=parseInt(t.slice(i*r,i*r+i),16);n[r]=i===1?s<<4:i===2?s:i===3?s>>4:s>>8}return n}}function ed(e,t){let i=e.toString(16),n=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return n;case 12:return(n+n).slice(0,3);default:return n+n}}function pY(e,t=16){let[i,n,r]=e;return`rgb:${ed(i,t)}/${ed(n,t)}/${ed(r,t)}`}var _Y={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Nr=131072,em=10;function tm(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 im=5e3,nm=0,mY=class extends rt{constructor(e,t,i,n,r,s,a,l,o=new dY){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=n,this._optionsService=r,this._oscLinkService=s,this._coreMouseService=a,this._unicodeService=l,this._parser=o,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new OK,this._utf8Decoder=new RK,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=Jt.clone(),this._eraseAttrDataInternal=Jt.clone(),this._onRequestBell=this._register(new Ne),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new Ne),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new Ne),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new Ne),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new Ne),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new Ne),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new Ne),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new Ne),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new Ne),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new Ne),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new Ne),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new Ne),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new Ne),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 Yh(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,d)=>{this._logService.debug("Unknown OSC code: ",{identifier:c,action:u,data:d})}),this._parser.setDcsHandlerFallback((c,u,d)=>{u==="HOOK"&&(d=d.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(c),action:u,payload:d})}),this._parser.setPrintHandler((c,u,d)=>this.print(c,u,d)),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($e.BEL,()=>this.bell()),this._parser.setExecuteHandler($e.LF,()=>this.lineFeed()),this._parser.setExecuteHandler($e.VT,()=>this.lineFeed()),this._parser.setExecuteHandler($e.FF,()=>this.lineFeed()),this._parser.setExecuteHandler($e.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler($e.BS,()=>this.backspace()),this._parser.setExecuteHandler($e.HT,()=>this.tab()),this._parser.setExecuteHandler($e.SO,()=>this.shiftOut()),this._parser.setExecuteHandler($e.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(yc.IND,()=>this.index()),this._parser.setExecuteHandler(yc.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(yc.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 ci)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 J_((c,u)=>this.requestStatusString(c,u)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,i,n){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=n}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((t,i)=>setTimeout(()=>i("#SLOW_TIMEOUT"),im))]).catch(t=>{if(t!=="#SLOW_TIMEOUT")throw t;console.warn(`async parser handler taking longer than ${im} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,n=this._activeBuffer.x,r=this._activeBuffer.y,s=0,a=this._parseStack.paused;if(a){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;n=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>Nr&&(s=this._parseStack.position+Nr)}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<Nr&&(this._parseBuffer=new Uint32Array(Math.min(e.length,Nr))),a||this._dirtyRowTracker.clearRange(),e.length>Nr)for(let c=s;c<e.length;c+=Nr){let u=c+Nr<e.length?c+Nr:e.length,d=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,d))return this._preserveStack(n,r,d,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(n,r,c,0),this._logSlowResolvingAsync(i),i}(this._activeBuffer.x!==n||this._activeBuffer.y!==r)&&this._onCursorMove.fire();let l=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),o=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);o<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(o,this._bufferService.rows-1),end:Math.min(l,this._bufferService.rows-1)})}print(e,t,i){let n,r,s=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,l=this._bufferService.cols,o=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,u=this._curAttrData,d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&i-t>0&&d.getWidth(this._activeBuffer.x-1)===2&&d.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let f=this._parser.precedingJoinState;for(let h=t;h<i;++h){if(n=e[h],n<127&&s){let v=s[String.fromCharCode(n)];v&&(n=v.charCodeAt(0))}let m=this._unicodeService.charProperties(n,f);r=Hs.extractWidth(m);let p=Hs.extractShouldJoin(m),b=p?Hs.extractWidth(f):0;if(f=m,a&&this._onA11yChar.fire(Br(n)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+r-b>l){if(o){let v=d,C=this._activeBuffer.x-b;for(this._activeBuffer.x=b,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),d=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),b>0&&d instanceof ko&&d.copyCellsFrom(v,C,0,b,!1);C<l;)v.setCellFromCodepoint(C++,0,1,u)}else if(this._activeBuffer.x=l-1,r===2)continue}if(p&&this._activeBuffer.x){let v=d.getWidth(this._activeBuffer.x-1)?1:2;d.addCodepointToCell(this._activeBuffer.x-v,n,r);for(let C=r-b;--C>=0;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u);continue}if(c&&(d.insertCells(this._activeBuffer.x,r-b,this._activeBuffer.getNullCell(u)),d.getWidth(l-1)===2&&d.setCellFromCodepoint(l-1,0,1,u)),d.setCellFromCodepoint(this._activeBuffer.x++,n,r,u),r>0)for(;--r;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=f,this._activeBuffer.x<l&&i-t>0&&d.getWidth(this._activeBuffer.x)===0&&!d.hasContent(this._activeBuffer.x)&&d.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=>tm(i.params[0],this._optionsService.rawOptions.windowOptions)?t(i):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new J_(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,n=!1,r=!1){let s=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);s.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),r),n&&(s.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 n;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--&&!((n=this._activeBuffer.lines.get(this._activeBuffer.ybase+i))!=null&&n.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 r=this._activeBuffer.lines.length-this._bufferService.rows;r>0&&(this._activeBuffer.lines.trimStart(r),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-r,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-r,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,n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-n+1;for(;t--;)this._activeBuffer.lines.splice(r-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,n;for(n=this._bufferService.rows-1-this._activeBuffer.scrollBottom,n=this._bufferService.rows-1+this._activeBuffer.ybase-n;t--;)this._activeBuffer.lines.splice(i,1),this._activeBuffer.lines.splice(n,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(Jt));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 n=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);n.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.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 n=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);n.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.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 n=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);n.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.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 n=this._activeBuffer.lines.get(this._activeBuffer.ybase+i);n.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),n.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,n=Hs.extractWidth(t),r=this._activeBuffer.x-n,s=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(r),a=new Uint32Array(s.length*i),l=0;for(let c=0;c<s.length;){let u=s.codePointAt(c)||0;a[l++]=u,c+=u>65535?2:1}let o=l;for(let c=1;c<i;++c)a.copyWithin(o,0,l),o+=l;return this.print(a,0,o),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent($e.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent($e.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent($e.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent($e.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent($e.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,Cs),this._charsetService.setgCharset(1,Cs),this._charsetService.setgCharset(2,Cs),this._charsetService.setgCharset(3,Cs);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){(p=>(p[p.NOT_RECOGNIZED=0]="NOT_RECOGNIZED",p[p.SET=1]="SET",p[p.RESET=2]="RESET",p[p.PERMANENTLY_SET=3]="PERMANENTLY_SET",p[p.PERMANENTLY_RESET=4]="PERMANENTLY_RESET"))(void 0||(i={}));let n=this._coreService.decPrivateModes,{activeProtocol:r,activeEncoding:s}=this._coreMouseService,a=this._coreService,{buffers:l,cols:o}=this._bufferService,{active:c,alt:u}=l,d=this._optionsService.rawOptions,f=(p,b)=>(a.triggerDataEvent(`${$e.ESC}[${t?"":"?"}${p};${b}$y`),!0),h=p=>p?1:2,m=e.params[0];return t?m===2?f(m,4):m===4?f(m,h(a.modes.insertMode)):m===12?f(m,3):m===20?f(m,h(d.convertEol)):f(m,0):m===1?f(m,h(n.applicationCursorKeys)):m===3?f(m,d.windowOptions.setWinLines?o===80?2:o===132?1:0:0):m===6?f(m,h(n.origin)):m===7?f(m,h(n.wraparound)):m===8?f(m,3):m===9?f(m,h(r==="X10")):m===12?f(m,h(d.cursorBlink)):m===25?f(m,h(!a.isCursorHidden)):m===45?f(m,h(n.reverseWraparound)):m===66?f(m,h(n.applicationKeypad)):m===67?f(m,4):m===1e3?f(m,h(r==="VT200")):m===1002?f(m,h(r==="DRAG")):m===1003?f(m,h(r==="ANY")):m===1004?f(m,h(n.sendFocus)):m===1005?f(m,4):m===1006?f(m,h(s==="SGR")):m===1015?f(m,4):m===1016?f(m,h(s==="SGR_PIXELS")):m===1048?f(m,1):m===47||m===1047||m===1049?f(m,h(c===u)):m===2004?f(m,h(n.bracketedPasteMode)):m===2026?f(m,h(n.synchronizedOutput)):f(m,0)}_updateAttrColor(e,t,i,n,r){return t===2?(e|=50331648,e&=-16777216,e|=A0.fromColorRGB([i,n,r])):t===5&&(e&=-50331904,e|=33554432|i&255),e}_extractColor(e,t,i){let n=[0,0,-1,0,0,0],r=0,s=0;do{if(n[s+r]=e.params[t+s],e.hasSubParams(t+s)){let a=e.getSubParams(t+s),l=0;do n[1]===5&&(r=1),n[s+l+1+r]=a[l];while(++l<a.length&&l+s+1+r<n.length);break}if(n[1]===5&&s+r>=2||n[1]===2&&s+r>=5)break;n[1]&&(r=1)}while(++s+t<e.length&&s+r<n.length);for(let a=2;a<n.length;++a)n[a]===-1&&(n[a]=0);switch(n[0]){case 38:i.fg=this._updateAttrColor(i.fg,n[1],n[3],n[4],n[5]);break;case 48:i.bg=this._updateAttrColor(i.bg,n[1],n[3],n[4],n[5]);break;case 58:i.extended=i.extended.clone(),i.extended.underlineColor=this._updateAttrColor(i.extended.underlineColor,n[1],n[3],n[4],n[5])}return s}_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=Jt.fg,e.bg=Jt.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,n=this._curAttrData;for(let r=0;r<t;r++)i=e.params[r],i>=30&&i<=37?(n.fg&=-50331904,n.fg|=16777216|i-30):i>=40&&i<=47?(n.bg&=-50331904,n.bg|=16777216|i-40):i>=90&&i<=97?(n.fg&=-50331904,n.fg|=16777216|i-90|8):i>=100&&i<=107?(n.bg&=-50331904,n.bg|=16777216|i-100|8):i===0?this._processSGR0(n):i===1?n.fg|=134217728:i===3?n.bg|=67108864:i===4?(n.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,n)):i===5?n.fg|=536870912:i===7?n.fg|=67108864:i===8?n.fg|=1073741824:i===9?n.fg|=2147483648:i===2?n.bg|=134217728:i===21?this._processUnderline(2,n):i===22?(n.fg&=-134217729,n.bg&=-134217729):i===23?n.bg&=-67108865:i===24?(n.fg&=-268435457,this._processUnderline(0,n)):i===25?n.fg&=-536870913:i===27?n.fg&=-67108865:i===28?n.fg&=-1073741825:i===29?n.fg&=2147483647:i===39?(n.fg&=-67108864,n.fg|=Jt.fg&16777215):i===49?(n.bg&=-67108864,n.bg|=Jt.bg&16777215):i===38||i===48||i===58?r+=this._extractColor(e,r,n):i===53?n.bg|=1073741824:i===55?n.bg&=-1073741825:i===59?(n.extended=n.extended.clone(),n.extended.underlineColor=-1,n.updateExtended()):i===100?(n.fg&=-67108864,n.fg|=Jt.fg&16777215,n.bg&=-67108864,n.bg|=Jt.bg&16777215):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${$e.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,i=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${$e.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(`${$e.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=Jt.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(!tm(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(`${$e.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>em&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>em&&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 n=i.shift(),r=i.shift();if(/^\d+$/.exec(n)){let s=parseInt(n);if(rm(s))if(r==="?")t.push({type:0,index:s});else{let a=Q_(r);a&&t.push({type:1,index:s,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(),n=e.slice(t+1);return n?this._createHyperlink(i,n):i.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let i=e.split(":"),n,r=i.findIndex(s=>s.startsWith("id="));return r!==-1&&(n=i[r].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:n,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 n=0;n<i.length&&!(t>=this._specialColors.length);++n,++t)if(i[n]==="?")this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let r=Q_(i[n]);r&&this._onColor.fire([{type:1,index:this._specialColors[t],color:r}])}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 n=0;n<i.length;++n)if(/^\d+$/.exec(i[n])){let r=parseInt(i[n]);rm(r)&&t.push({type:2,index:r})}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,Cs),!0}selectCharset(e){return e.length!==2?(this.selectDefaultCharset(),!0):(e[0]==="/"||this._charsetService.setgCharset(_Y[e[0]],ci[e[1]]||Cs),!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=Jt.clone(),this._eraseAttrDataInternal=Jt.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 pn;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,n=this._activeBuffer.lines.get(i);n&&(n.fill(e),n.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let i=a=>(this._coreService.triggerDataEvent(`${$e.ESC}${a}${$e.ESC}\\`),!0),n=this._bufferService.buffer,r=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${n.scrollTop+1};${n.scrollBottom+1}r`:e==="m"?"P1$r0m":e===" q"?`P1$r${{block:2,underline:4,bar:6}[r.cursorStyle]-(r.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},Yh=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&&(nm=e,e=t,t=nm),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};Yh=qt([Ie(0,Di)],Yh);function rm(e){return 0<=e&&e<256}var vY=5e7,sm=12,gY=50,bY=class extends rt{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 Ne),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 n=this._callbacks.shift();n&&n()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>vY)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 n=this._writeBuffer[this._bufferOffset],r=this._action(n,t);if(r){let a=l=>performance.now()-i>=sm?setTimeout(()=>this._innerWrite(0,l)):this._innerWrite(i,l);r.catch(l=>(queueMicrotask(()=>{throw l}),Promise.resolve(!1))).then(a);return}let s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=n.length,performance.now()-i>=sm)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>gY&&(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()}},Xh=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 l=t.addMarker(t.ybase+t.y),o={data:e,id:this._nextId++,lines:[l]};return l.onDispose(()=>this._removeMarkerFromLink(o,l)),this._dataByLinkId.set(o.id,o),o.id}let i=e,n=this._getEntryIdKey(i),r=this._entriesWithId.get(n);if(r)return this.addLineToLink(r.id,t.ybase+t.y),r.id;let s=t.addMarker(t.ybase+t.y),a={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[s]};return s.onDispose(()=>this._removeMarkerFromLink(a,s)),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(n=>n.line!==t)){let n=this._bufferService.buffer.addMarker(t);i.lines.push(n),n.onDispose(()=>this._removeMarkerFromLink(i,n))}}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)))}};Xh=qt([Ie(0,Di)],Xh);var am=!1,yY=class extends rt{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new Sa),this._onBinary=this._register(new Ne),this.onBinary=this._onBinary.event,this._onData=this._register(new Ne),this.onData=this._onData.event,this._onLineFeed=this._register(new Ne),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new Ne),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new Ne),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new Ne),this._instantiationService=new UG,this.optionsService=this._register(new eY(e)),this._instantiationService.setService(Zi,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(jh)),this._instantiationService.setService(Di,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(Wh)),this._instantiationService.setService(b5,this._logService),this.coreService=this._register(this._instantiationService.createInstance(Kh)),this._instantiationService.setService(zs,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(qh)),this._instantiationService.setService(g5,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(Hs)),this._instantiationService.setService(ZK,this.unicodeService),this._charsetService=this._instantiationService.createInstance(sY),this._instantiationService.setService(DK,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(Xh),this._instantiationService.setService(y5,this._oscLinkService),this._inputHandler=this._register(new mY(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(yi.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(yi.forward(this._bufferService.onResize,this._onResize)),this._register(yi.forward(this.coreService.onData,this._onData)),this._register(yi.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 bY((t,i)=>this._inputHandler.parse(t,i))),this._register(yi.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new Ne),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&&!am&&(this._logService.warn("writeSync is unreliable and will be removed soon."),am=!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,J5),t=Math.max(t,Q5),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(X_.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>(X_(this._bufferService),!1))),this._windowsWrappingHeuristics.value=Dt(()=>{for(let t of e)t.dispose()})}}},wY={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 SY(e,t,i,n){var a;let r={type:0,cancel:!1,key:void 0},s=(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?r.key=$e.ESC+"OA":r.key=$e.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?r.key=$e.ESC+"OD":r.key=$e.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?r.key=$e.ESC+"OC":r.key=$e.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?r.key=$e.ESC+"OB":r.key=$e.ESC+"[B");break;case 8:r.key=e.ctrlKey?"\b":$e.DEL,e.altKey&&(r.key=$e.ESC+r.key);break;case 9:if(e.shiftKey){r.key=$e.ESC+"[Z";break}r.key=$e.HT,r.cancel=!0;break;case 13:r.key=e.altKey?$e.ESC+$e.CR:$e.CR,r.cancel=!0;break;case 27:r.key=$e.ESC,e.altKey&&(r.key=$e.ESC+$e.ESC),r.cancel=!0;break;case 37:if(e.metaKey)break;s?r.key=$e.ESC+"[1;"+(s+1)+"D":t?r.key=$e.ESC+"OD":r.key=$e.ESC+"[D";break;case 39:if(e.metaKey)break;s?r.key=$e.ESC+"[1;"+(s+1)+"C":t?r.key=$e.ESC+"OC":r.key=$e.ESC+"[C";break;case 38:if(e.metaKey)break;s?r.key=$e.ESC+"[1;"+(s+1)+"A":t?r.key=$e.ESC+"OA":r.key=$e.ESC+"[A";break;case 40:if(e.metaKey)break;s?r.key=$e.ESC+"[1;"+(s+1)+"B":t?r.key=$e.ESC+"OB":r.key=$e.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(r.key=$e.ESC+"[2~");break;case 46:s?r.key=$e.ESC+"[3;"+(s+1)+"~":r.key=$e.ESC+"[3~";break;case 36:s?r.key=$e.ESC+"[1;"+(s+1)+"H":t?r.key=$e.ESC+"OH":r.key=$e.ESC+"[H";break;case 35:s?r.key=$e.ESC+"[1;"+(s+1)+"F":t?r.key=$e.ESC+"OF":r.key=$e.ESC+"[F";break;case 33:e.shiftKey?r.type=2:e.ctrlKey?r.key=$e.ESC+"[5;"+(s+1)+"~":r.key=$e.ESC+"[5~";break;case 34:e.shiftKey?r.type=3:e.ctrlKey?r.key=$e.ESC+"[6;"+(s+1)+"~":r.key=$e.ESC+"[6~";break;case 112:s?r.key=$e.ESC+"[1;"+(s+1)+"P":r.key=$e.ESC+"OP";break;case 113:s?r.key=$e.ESC+"[1;"+(s+1)+"Q":r.key=$e.ESC+"OQ";break;case 114:s?r.key=$e.ESC+"[1;"+(s+1)+"R":r.key=$e.ESC+"OR";break;case 115:s?r.key=$e.ESC+"[1;"+(s+1)+"S":r.key=$e.ESC+"OS";break;case 116:s?r.key=$e.ESC+"[15;"+(s+1)+"~":r.key=$e.ESC+"[15~";break;case 117:s?r.key=$e.ESC+"[17;"+(s+1)+"~":r.key=$e.ESC+"[17~";break;case 118:s?r.key=$e.ESC+"[18;"+(s+1)+"~":r.key=$e.ESC+"[18~";break;case 119:s?r.key=$e.ESC+"[19;"+(s+1)+"~":r.key=$e.ESC+"[19~";break;case 120:s?r.key=$e.ESC+"[20;"+(s+1)+"~":r.key=$e.ESC+"[20~";break;case 121:s?r.key=$e.ESC+"[21;"+(s+1)+"~":r.key=$e.ESC+"[21~";break;case 122:s?r.key=$e.ESC+"[23;"+(s+1)+"~":r.key=$e.ESC+"[23~";break;case 123:s?r.key=$e.ESC+"[24;"+(s+1)+"~":r.key=$e.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?r.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?r.key=$e.NUL:e.keyCode>=51&&e.keyCode<=55?r.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?r.key=$e.DEL:e.keyCode===219?r.key=$e.ESC:e.keyCode===220?r.key=$e.FS:e.keyCode===221&&(r.key=$e.GS);else if((!i||n)&&e.altKey&&!e.metaKey){let l=(a=wY[e.keyCode])==null?void 0:a[e.shiftKey?1:0];if(l)r.key=$e.ESC+l;else if(e.keyCode>=65&&e.keyCode<=90){let o=e.ctrlKey?e.keyCode-64:e.keyCode+32,c=String.fromCharCode(o);e.shiftKey&&(c=c.toUpperCase()),r.key=$e.ESC+c}else if(e.keyCode===32)r.key=$e.ESC+(e.ctrlKey?$e.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let o=e.code.slice(3,4);e.shiftKey||(o=o.toLowerCase()),r.key=$e.ESC+o,r.cancel=!0}}else i&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(r.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?r.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(r.key=$e.US),e.key==="@"&&(r.key=$e.NUL));break}return r}var Gt=0,CY=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new cu,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new cu,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((r,s)=>this._getKey(r)-this._getKey(s)),t=0,i=0,n=new Array(this._array.length+this._insertedValues.length);for(let r=0;r<n.length;r++)i>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[i])?(n[r]=e[t],t++):n[r]=this._array[i++];this._array=n,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||(Gt=this._search(t),Gt===-1)||this._getKey(this._array[Gt])!==t)return!1;do if(this._array[Gt]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(Gt),!0;while(++Gt<this._array.length&&this._getKey(this._array[Gt])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((r,s)=>r-s),t=0,i=new Array(this._array.length-e.length),n=0;for(let r=0;r<this._array.length;r++)e[t]===r?t++:i[n++]=this._array[r];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&&(Gt=this._search(e),!(Gt<0||Gt>=this._array.length)&&this._getKey(this._array[Gt])===e))do yield this._array[Gt];while(++Gt<this._array.length&&this._getKey(this._array[Gt])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(Gt=this._search(e),!(Gt<0||Gt>=this._array.length)&&this._getKey(this._array[Gt])===e))do t(this._array[Gt]);while(++Gt<this._array.length&&this._getKey(this._array[Gt])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,i=this._array.length-1;for(;i>=t;){let n=t+i>>1,r=this._getKey(this._array[n]);if(r>e)i=n-1;else if(r<e)t=n+1;else{for(;n>0&&this._getKey(this._array[n-1])===e;)n--;return n}}return t}},td=0,lm=0,kY=class extends rt{constructor(){super(),this._decorations=new CY(e=>e==null?void 0:e.marker.line),this._onDecorationRegistered=this._register(new Ne),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new Ne),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(Dt(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new AY(e);if(t){let i=t.marker.onDispose(()=>t.dispose()),n=t.onDispose(()=>{n.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 n=0,r=0;for(let s of this._decorations.getKeyIterator(t))n=s.options.x??0,r=n+(s.options.width??1),e>=n&&e<r&&(!i||(s.options.layer??"bottom")===i)&&(yield s)}forEachDecorationAtCell(e,t,i,n){this._decorations.forEachByKey(t,r=>{td=r.options.x??0,lm=td+(r.options.width??1),e>=td&&e<lm&&(!i||(r.options.layer??"bottom")===i)&&n(r)})}},AY=class extends Gr{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new Ne),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new Ne),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=Bt.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=Bt.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},$Y=1e3,MY=class{constructor(e,t=$Y){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 n=performance.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){let r=n-this._lastRefreshMs,s=this._debounceThresholdMS-r;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},s)}}_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)}},om=20,uu=class extends rt{constructor(e,t,i,n){super(),this._terminal=e,this._coreBrowserService=i,this._renderService=n,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="";let r=this._coreBrowserService.mainDocument;this._accessibilityContainer=r.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=r.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let s=0;s<this._terminal.rows;s++)this._rowElements[s]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[s]);if(this._topBoundaryFocusListener=s=>this._handleBoundaryFocus(s,0),this._bottomBoundaryFocusListener=s=>this._handleBoundaryFocus(s,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=r.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new MY(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(s=>this._handleResize(s.rows))),this._register(this._terminal.onRender(s=>this._refreshRows(s.start,s.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(s=>this._handleChar(s))),this._register(this._terminal.onLineFeed(()=>this._handleChar(`
94
- `))),this._register(this._terminal.onA11yTab(s=>this._handleTab(s))),this._register(this._terminal.onKey(s=>this._handleKey(s.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(Xe(r,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(Dt(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<om+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
95
- `&&(this._liveRegionLineCount++,this._liveRegionLineCount===om+1&&(this._liveRegion.textContent+=vh.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,n=i.lines.length.toString();for(let r=e;r<=t;r++){let s=i.lines.get(i.ydisp+r),a=[],l=(s==null?void 0:s.translateToString(!0,void 0,void 0,a))||"",o=(i.ydisp+r+1).toString(),c=this._rowElements[r];c&&(l.length===0?(c.textContent=" ",this._rowColumns.set(c,[0,1])):(c.textContent=l,this._rowColumns.set(c,a)),c.setAttribute("aria-posinset",o),c.setAttribute("aria-setsize",n),this._alignRowWidth(c))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let i=e.target,n=this._rowElements[t===0?1:this._rowElements.length-2],r=i.getAttribute("aria-posinset"),s=t===0?"1":`${this._terminal.buffer.lines.length}`;if(r===s||e.relatedTarget!==n)return;let a,l;if(t===0?(a=i,l=this._rowElements.pop(),this._rowContainer.removeChild(l)):(a=this._rowElements.shift(),l=i,this._rowContainer.removeChild(a)),a.removeEventListener("focus",this._topBoundaryFocusListener),l.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let o=this._createAccessibilityTreeNode();this._rowElements.unshift(o),this._rowContainer.insertAdjacentElement("afterbegin",o)}else{let o=this._createAccessibilityTreeNode();this._rowElements.push(o),this._rowContainer.appendChild(o)}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 l;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 n=this._rowElements.slice(-1)[0];if(i.node.compareDocumentPosition(n)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(i={node:n,offset:((l=n.textContent)==null?void 0:l.length)??0}),!this._rowContainer.contains(i.node))return;let r=({node:o,offset:c})=>{let u=o instanceof Text?o.parentNode:o,d=parseInt(u==null?void 0:u.getAttribute("aria-posinset"),10)-1;if(isNaN(d))return console.warn("row is invalid. Race condition?"),null;let f=this._rowColumns.get(u);if(!f)return console.warn("columns is null. Race condition?"),null;let h=c<f.length?f[c]:f.slice(-1)[0]+1;return h>=this._terminal.cols&&(++d,h=0),{row:d,column:h}},s=r(t),a=r(i);if(!(!s||!a)){if(s.row>a.row||s.row===a.row&&s.column>=a.column)throw new Error("invalid range");this._terminal.select(s.column,s.row,(a.row-s.row)*this._terminal.cols-s.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 r,s;e.style.transform="";let t=e.getBoundingClientRect().width,i=(s=(r=this._rowColumns.get(e))==null?void 0:r.slice(-1))==null?void 0:s[0];if(!i)return;let n=i*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${n/t})`}};uu=qt([Ie(1,vf),Ie(2,Ar),Ie(3,$r)],uu);var Jh=class extends rt{constructor(e,t,i,n,r){super(),this._element=e,this._mouseService=t,this._renderService=i,this._bufferService=n,this._linkProviderService=r,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new Ne),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new Ne),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(Dt(()=>{var s;Is(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,(s=this._activeProviderReplies)==null||s.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(Xe(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(Xe(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(Xe(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(Xe(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 n=0;n<i.length;n++){let r=i[n];if(r.classList.contains("xterm"))break;if(r.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 n,r;(!this._activeProviderReplies||!t)&&((n=this._activeProviderReplies)==null||n.forEach(s=>{s==null||s.forEach(a=>{a.link.dispose&&a.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let i=!1;for(let[s,a]of this._linkProviderService.linkProviders.entries())t?(r=this._activeProviderReplies)!=null&&r.get(s)&&(i=this._checkLinkProviderResult(s,e,i)):a.provideLinks(e.y,l=>{var c,u;if(this._isMouseOut)return;let o=l==null?void 0:l.map(d=>({link:d}));(c=this._activeProviderReplies)==null||c.set(s,o),i=this._checkLinkProviderResult(s,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 n=0;n<t.size;n++){let r=t.get(n);if(r)for(let s=0;s<r.length;s++){let a=r[s],l=a.link.range.start.y<e?0:a.link.range.start.x,o=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x;for(let c=l;c<=o;c++){if(i.has(c)){r.splice(s--,1);break}i.add(c)}}}}_checkLinkProviderResult(e,t,i){var s;if(!this._activeProviderReplies)return i;let n=this._activeProviderReplies.get(e),r=!1;for(let a=0;a<e;a++)(!this._activeProviderReplies.has(a)||this._activeProviderReplies.get(a))&&(r=!0);if(!r&&n){let a=n.find(l=>this._linkAtPosition(l.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 l=(s=this._activeProviderReplies.get(a))==null?void 0:s.find(o=>this._linkAtPosition(o.link,t));if(l){i=!0,this._handleNewLink(l);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&&LY(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,Is(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,n;return(n=(i=this._currentLink)==null?void 0:i.state)==null?void 0:n.decorations.pointerCursor},set:i=>{var n;(n=this._currentLink)!=null&&n.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,n;return(n=(i=this._currentLink)==null?void 0:i.state)==null?void 0:n.decorations.underline},set:i=>{var n,r,s;(n=this._currentLink)!=null&&n.state&&((s=(r=this._currentLink)==null?void 0:r.state)==null?void 0:s.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 n=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,r=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=n&&this._currentLink.link.range.end.y<=r&&(this._clearCurrentLink(n,r),this._lastMouseEvent)){let s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._askForLink(s,!1)}})))}_linkHover(e,t,i){var n;(n=this._currentLink)!=null&&n.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,n=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-n-1,i.end.x,i.end.y-n-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,t,i){var n;(n=this._currentLink)!=null&&n.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,n=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return i<=r&&r<=n}_positionFromMouseEvent(e,t,i){let n=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(n)return{x:n[0],y:n[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,n,r){return{x1:e,y1:t,x2:i,y2:n,cols:this._bufferService.cols,fg:r}}};Jh=qt([Ie(1,gf),Ie(2,$r),Ie(3,Di),Ie(4,S5)],Jh);function LY(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 EY=class extends yY{constructor(e={}){super(e),this._linkifier=this._register(new Sa),this.browser=B5,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new Sa),this._onCursorMove=this._register(new Ne),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new Ne),this.onKey=this._onKey.event,this._onRender=this._register(new Ne),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new Ne),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new Ne),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new Ne),this.onBell=this._onBell.event,this._onFocus=this._register(new Ne),this._onBlur=this._register(new Ne),this._onA11yCharEmitter=this._register(new Ne),this._onA11yTabEmitter=this._register(new Ne),this._onWillOpen=this._register(new Ne),this._setup(),this._decorationService=this._instantiationService.createInstance(kY),this._instantiationService.setService($0,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(gG),this._instantiationService.setService(S5,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(bh)),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(yi.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(yi.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(yi.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(yi.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(Dt(()=>{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,n="";switch(t.index){case 256:i="foreground",n="10";break;case 257:i="background",n="11";break;case 258:i="cursor",n="12";break;default:i="ansi",n="4;"+t.index}switch(t.type){case 0:let r=Rt.toColorRGB(i==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[i]);this.coreService.triggerDataEvent(`${$e.ESC}]${n};${pY(r)}${D5.ST}`);break;case 1:if(i==="ansi")this._themeService.modifyColors(s=>s.ansi[t.index]=Qt.toColor(...t.color));else{let s=i;this._themeService.modifyColors(a=>a[s]=Qt.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(uu,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent($e.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($e.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),n=this._renderService.dimensions.css.cell.height,r=t.getWidth(i),s=this._renderService.dimensions.css.cell.width*r,a=this.buffer.y*this._renderService.dimensions.css.cell.height,l=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=l+"px",this.textarea.style.top=a+"px",this.textarea.style.width=s+"px",this.textarea.style.height=n+"px",this.textarea.style.lineHeight=n+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(Xe(this.element,"copy",t=>{this.hasSelection()&&NK(t,this._selectionService)}));let e=t=>PK(t,this.textarea,this.coreService,this.optionsService);this._register(Xe(this.textarea,"paste",e)),this._register(Xe(this.element,"paste",e)),F5?this._register(Xe(this.element,"mousedown",t=>{t.button===2&&g_(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(Xe(this.element,"contextmenu",t=>{g_(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),$f&&this._register(Xe(this.element,"auxclick",t=>{t.button===1&&f5(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(Xe(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(Xe(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(Xe(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(Xe(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(Xe(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(Xe(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(Xe(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){var r;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"),((r=this.element)==null?void 0:r.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(Xe(this.screenElement,"mousemove",s=>this.updateCursorStyle(s))),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",mh.get()),W5||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(mG,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(Ar,this._coreBrowserService),this._register(Xe(this.textarea,"focus",s=>this._handleTextAreaFocus(s))),this._register(Xe(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(Zh,this._document,this._helperContainer),this._instantiationService.setService(Yu,this._charSizeService),this._themeService=this._instantiationService.createInstance(Uh),this._instantiationService.setService(wl,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(lu),this._instantiationService.setService(w5,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(Fh,this.rows,this.screenElement)),this._instantiationService.setService($r,this._renderService),this._register(this._renderService.onRenderedViewportChange(s=>this._onRender.fire(s))),this.onResize(s=>this._renderService.resize(s.cols,s.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(Ih,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(Bh),this._instantiationService.setService(gf,this._mouseService);let n=this._linkifier.value=this._register(this._instantiationService.createInstance(Jh,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(Oh,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(s=>{super.scrollLines(s,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(zh,this.element,this.screenElement,n)),this._instantiationService.setService(FK,this._selectionService),this._register(this._selectionService.onRequestScrollLines(s=>this.scrollLines(s.amount,s.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(s=>this._renderService.handleSelectionChanged(s.start,s.end,s.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(s=>{this.textarea.value=s,this.textarea.focus(),this.textarea.select()})),this._register(yi.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{var s;this._selectionService.refresh(),(s=this._viewport)==null||s.queueSync()})),this._register(this._instantiationService.createInstance(Rh,this.screenElement)),this._register(Xe(this.element,"mousedown",s=>this._selectionService.handleMouseDown(s))),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(uu,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",s=>this._handleScreenReaderModeOptionChange(s))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(au,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",s=>{!this._overviewRulerRenderer&&s&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(au,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(Dh,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function i(s){var c,u,d,f,h;let a=e._mouseService.getMouseReportCoords(s,e.screenElement);if(!a)return!1;let l,o;switch(s.overrideType||s.type){case"mousemove":o=32,s.buttons===void 0?(l=3,s.button!==void 0&&(l=s.button<3?s.button:3)):l=s.buttons&1?0:s.buttons&4?1:s.buttons&2?2:3;break;case"mouseup":o=0,l=s.button<3?s.button:3;break;case"mousedown":o=1,l=s.button<3?s.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(s)===!1)return!1;let m=s.deltaY;if(m===0||e.coreMouseService.consumeWheelEvent(s,(f=(d=(u=(c=e._renderService)==null?void 0:c.dimensions)==null?void 0:u.device)==null?void 0:d.cell)==null?void 0:f.height,(h=e._coreBrowserService)==null?void 0:h.dpr)===0)return!1;o=m<0?0:1,l=4;break;default:return!1}return o===void 0||l===void 0||l>4?!1:e.coreMouseService.triggerMouseEvent({col:a.col,row:a.row,x:a.x,y:a.y,button:l,action:o,ctrl:s.ctrlKey,alt:s.altKey,shift:s.shiftKey})}let n={mouseup:null,wheel:null,mousedrag:null,mousemove:null},r={mouseup:s=>(i(s),s.buttons||(this._document.removeEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.removeEventListener("mousemove",n.mousedrag)),this.cancel(s)),wheel:s=>(i(s),this.cancel(s,!0)),mousedrag:s=>{s.buttons&&i(s)},mousemove:s=>{s.buttons||i(s)}};this._register(this.coreMouseService.onProtocolChange(s=>{s?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(s)),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()),s&8?n.mousemove||(t.addEventListener("mousemove",r.mousemove),n.mousemove=r.mousemove):(t.removeEventListener("mousemove",n.mousemove),n.mousemove=null),s&16?n.wheel||(t.addEventListener("wheel",r.wheel,{passive:!1}),n.wheel=r.wheel):(t.removeEventListener("wheel",n.wheel),n.wheel=null),s&2?n.mouseup||(n.mouseup=r.mouseup):(this._document.removeEventListener("mouseup",n.mouseup),n.mouseup=null),s&4?n.mousedrag||(n.mousedrag=r.mousedrag):(this._document.removeEventListener("mousemove",n.mousedrag),n.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(Xe(t,"mousedown",s=>{if(s.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(s)))return i(s),n.mouseup&&this._document.addEventListener("mouseup",n.mouseup),n.mousedrag&&this._document.addEventListener("mousemove",n.mousedrag),this.cancel(s)})),this._register(Xe(t,"wheel",s=>{var a,l,o,c,u;if(!n.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(s)===!1)return!1;if(!this.buffer.hasScrollback){if(s.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(s,(c=(o=(l=(a=e._renderService)==null?void 0:a.dimensions)==null?void 0:l.device)==null?void 0:o.cell)==null?void 0:c.height,(u=e._coreBrowserService)==null?void 0:u.dpr)===0)return this.cancel(s,!0);let d=$e.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(s.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(d,!0),this.cancel(s,!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){h5(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=SY(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),i.type===3||i.type===2){let n=this.rows-1;return this.scrollLines(i.type===2?-n:n),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===$e.ETX||i.key===$e.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)&&(xY(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(Jt));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($e.ESC+"[I"):this.coreService.triggerDataEvent($e.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(`${$e.ESC}[4;${i};${t}t`);break;case 1:let n=this._renderService.dimensions.css.cell.width.toFixed(0),r=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${$e.ESC}[6;${r};${n}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};function xY(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var HY=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)}},TY=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 pn)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}},cm=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 TY(t)}getNullCell(){return new pn}},NY=class extends rt{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new Ne),this.onBufferChange=this._onBufferChange.event,this._normal=new cm(this._core.buffers.normal,"normal"),this._alternate=new cm(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)}},PY=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,n)=>t(i,n.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)}},OY=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}},RY=["cols","rows"],xn=0,IY=class extends rt{constructor(e){super(),this._core=this._register(new EY(e)),this._addonManager=this._register(new HY),this._publicOptions={...this._core.options};let t=n=>this._core.options[n],i=(n,r)=>{this._checkReadonlyOptions(n),this._core.options[n]=r};for(let n in this._core.options){let r={get:t.bind(this,n),set:i.bind(this,n)};Object.defineProperty(this._publicOptions,n,r)}}_checkReadonlyOptions(e){if(RY.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 PY(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new OY(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 NY(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
96
- `,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 mh.get()},set promptLabel(e){mh.set(e)},get tooMuchOutput(){return vh.get()},set tooMuchOutput(e){vh.set(e)}}}_verifyIntegers(...e){for(xn of e)if(xn===1/0||isNaN(xn)||xn%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(xn of e)if(xn&&(xn===1/0||isNaN(xn)||xn%1!==0||xn<0))throw new Error("This API only accepts positive integers")}};/**
97
- * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
98
- * @license MIT
99
- *
100
- * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
101
- * @license MIT
102
- *
103
- * Originally forked from (with the author's permission):
104
- * Fabrice Bellard's javascript vt100 for jslinux:
105
- * http://bellard.org/jslinux/
106
- * Copyright (c) 2011 Fabrice Bellard
107
- */var VY=2,DY=1,ZY=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 d;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:((d=this._terminal.options.overviewRuler)==null?void 0:d.width)||14,i=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(i.getPropertyValue("height")),r=Math.max(0,parseInt(i.getPropertyValue("width"))),s=window.getComputedStyle(this._terminal.element),a={top:parseInt(s.getPropertyValue("padding-top")),bottom:parseInt(s.getPropertyValue("padding-bottom")),right:parseInt(s.getPropertyValue("padding-right")),left:parseInt(s.getPropertyValue("padding-left"))},l=a.top+a.bottom,o=a.right+a.left,c=n-l,u=r-o-t;return{cols:Math.max(VY,Math.floor(u/e.css.cell.width)),rows:Math.max(DY,Math.floor(c/e.css.cell.height))}}};const BY={class:"terminal-view"},FY=Pe({__name:"TerminalView",setup(e){const t=Fs(),i=G(null),n=Gn(null),r=Gn(null);let s=null,a=null;const l=G(!1);function o(){const u=location.protocol==="https:"?"wss:":"ws:";s=new WebSocket(`${u}//${location.host}/ws/shell`),s.onopen=()=>{l.value=!0,c()},s.onmessage=d=>{var f;(f=n.value)==null||f.write(d.data)},s.onclose=()=>{var d;l.value=!1,(d=n.value)==null||d.write(`\r
108
- \x1B[90m- disconnected -\x1B[0m\r
109
- `)},s.onerror=()=>s==null?void 0:s.close()}function c(){!s||s.readyState!==s.OPEN||!n.value||s.send(JSON.stringify({type:"resize",cols:n.value.cols,rows:n.value.rows}))}return at(async()=>{t.setPage("Terminal",void 0,{fullBleed:!0}),await document.fonts.ready;const u=new IY({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}),d=new ZY;u.loadAddon(d),n.value=u,r.value=d,i.value&&(u.open(i.value),d.fit()),u.onData(f=>{(s==null?void 0:s.readyState)===WebSocket.OPEN&&s.send(JSON.stringify({type:"input",data:f}))}),a=new ResizeObserver(()=>{d.fit(),c()}),i.value&&a.observe(i.value),o()}),Ot(()=>{var u;s==null||s.close(),s=null,a==null||a.disconnect(),(u=n.value)==null||u.dispose()}),(u,d)=>{const f=Jn;return _(),M("div",BY,[(_(),oe(Fi,{defer:"",to:"#ob-topbar-right"},[Y(f,{variant:l.value?"green":"grey",dot:"",role:"status"},{default:X(()=>[ce(Z(l.value?"Connected":"Disconnected"),1)]),_:1},8,["variant"])])),w("div",{ref_key:"containerEl",ref:i,class:"terminal-container"},null,512)])}}}),zY=Kt(FY,[["__scopeId","data-v-871c4ba9"]]),UY={class:"login-page"},WY={class:"login-card"},jY={key:0},KY={key:1},um="openbridge_auto_resume_attempted",qY=Pe({__name:"LoginView",setup(e){const t=S0(),i=w0(),{user:n,loadConfig:r,checkAuth:s,startPlatformLogin:a,resumeLastAccount:l,chooseAccount:o}=rl(),c=G(!1),u=G(null),d=U(()=>t.query.logged_out==="1");async function f(){c.value=!0,u.value=null;try{const m=typeof t.query.login_hint=="string"?t.query.login_hint:void 0;await a(m?{loginHint:m}:{})}catch(m){c.value=!1,u.value=m instanceof Error?m.message:"Unable to start sign-in."}}async function h(){c.value=!0,u.value=null;try{await o()}catch(m){c.value=!1,u.value=m instanceof Error?m.message:"Unable to start sign-in."}}return at(async()=>{if(!(await r()).enabled){i.replace("/");return}if(t.query.error==="account_changed"){u.value="Your platform account changed. Please sign in again.";return}const p=typeof t.query.login_hint=="string"?t.query.login_hint:"";if(await s()){if(p&&n.value&&n.value.email.toLowerCase()!==p.toLowerCase()){c.value=!0,await a({loginHint:p});return}i.replace("/");return}if(p){c.value=!0,await a({loginHint:p});return}if(!d.value&&!sessionStorage.getItem(um)){if(sessionStorage.setItem(um,"1"),c.value=!0,await l())return;c.value=!1}}),(m,p)=>{const b=ct,v=At;return _(),M("div",UY,[w("div",WY,[p[2]||(p[2]=w("h1",{class:"login-title"},"OpenBridge",-1)),p[3]||(p[3]=w("p",{class:"login-subtitle"},"Sign in via Nubisco Platform to manage this OpenBridge instance.",-1)),u.value?(_(),oe(b,{key:0,variant:"error",class:"login-error"},{default:X(()=>[ce(Z(u.value),1)]),_:1})):d.value?(_(),oe(b,{key:1,variant:"success",class:"login-error"},{default:X(()=>[...p[0]||(p[0]=[ce("You have been signed out.",-1)])]),_:1})):R("",!0),Y(v,{variant:"primary",size:"lg",disabled:c.value,class:"login-btn",onClick:f},{default:X(()=>[c.value?(_(),M("span",jY,"Redirecting…")):(_(),M("span",KY,"Sign in via Nubisco Platform"))]),_:1},8,["disabled"]),Y(v,{variant:"ghost",size:"sm",disabled:c.value,onClick:h},{default:X(()=>[...p[1]||(p[1]=[ce("Use a different account",-1)])]),_:1},8,["disabled"])])])}}}),GY=Kt(qY,[["__scopeId","data-v-de234ae2"]]),YY={class:"callback-page"},XY={key:1,class:"callback-loading"},JY=Pe({__name:"AuthCallbackView",setup(e){const t=S0(),i=w0(),{checkAuth:n,clearLastAccount:r}=rl(),s=G(null);return at(async()=>{const a=typeof t.query.token=="string"?t.query.token:"",l=typeof t.query.state=="string"?t.query.state:"",o=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"),o){s.value=o==="not_a_member"?"Your account does not have access to this OpenBridge instance.":o==="domain_not_allowed"?"Your account is not eligible for this OpenBridge instance.":`Sign-in failed: ${o}`;return}if(!c||!l||c!==l){s.value="The sign-in request is no longer valid. Please try again.";return}if(!a){s.value="Platform did not return an OpenBridge access token.";return}const d=await fetch("/auth/platform/callback",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({token:a,...u?{expected_sub:u}:{}})});if(!d.ok){const h=await d.json().catch(()=>null);if((h==null?void 0:h.error)==="subject_mismatch"){r(),i.replace({path:"/login",query:{error:"account_changed"}});return}s.value=(h==null?void 0:h.error)==="invalid_token"?"Your platform sign-in is no longer valid. Please try again.":(h==null?void 0:h.error)==="wrong_app"?"The sign-in was issued for a different application. Please try again.":"Sign-in failed. Please try again.";return}await n(),sessionStorage.removeItem("openbridge_auto_resume_attempted");const f=sessionStorage.getItem("openbridge_return_to");sessionStorage.removeItem("openbridge_return_to"),i.replace(f!=null&&f.startsWith("/oauth/consent?")?f:"/")}),(a,l)=>{const o=ct;return _(),M("div",YY,[s.value?(_(),oe(o,{key:0,variant:"error"},{default:X(()=>[ce(Z(s.value),1)]),_:1})):(_(),M("p",XY,"Signing you in…"))])}}}),QY=Kt(JY,[["__scopeId","data-v-54deb71b"]]),eX={class:"consent"},tX={key:0,class:"consent__note"},iX={class:"consent__note"},nX={class:"consent__title"},rX={class:"consent__note"},sX={class:"consent__row"},aX=Pe({__name:"OAuthConsentView",setup(e){const t=S0(),i=w0(),n=["client_id","redirect_uri","response_type","scope","state","code_challenge","code_challenge_method"],r=G("loading"),s=G(""),a=G(""),l=G(""),o=G(""),c=G(!1);function u(){const m=new URLSearchParams;for(const p of n){const b=t.query[p];typeof b=="string"&&b&&m.set(p,b)}return m}async function d(){try{const p=await(await fetch(`/oauth/context?${u().toString()}`)).json();if(!p.ok){o.value=p.reason??"",r.value="invalid";return}s.value=p.clientName||"This application",l.value=p.redirectHost??"",a.value=p.email??"",r.value=p.signedIn?"consent":"signed-out"}catch{r.value="invalid"}}d();function f(){try{sessionStorage.setItem("openbridge_return_to",`/oauth/consent?${u().toString()}`)}catch{}i.push("/login")}function h(m){const p=document.createElement("form");p.method="post",p.action="/oauth/authorize";const b=(v,C)=>{const y=document.createElement("input");y.type="hidden",y.name=v,y.value=C,p.appendChild(y)};for(const[v,C]of u())b(v,C);b("decision",m),b("access",c.value?"control":"read"),document.body.appendChild(p),p.submit()}return(m,p)=>{const b=y0,v=Cr,C=At,y=eh,g=ct,L=Zs;return _(),M("div",eX,[Y(L,{class:"consent__panel"},{default:X(()=>[p[13]||(p[13]=w("img",{class:"consent__mark",src:Ob,alt:"OpenBridge",width:"44",height:"44"},null,-1)),r.value==="loading"?(_(),M("p",tX,[Y(b,{size:"sm"}),p[3]||(p[3]=ce(" Checking the request… ",-1))])):r.value==="invalid"?(_(),M(ye,{key:1},[p[4]||(p[4]=w("h1",{class:"consent__title"},"This request cannot continue",-1)),Y(v,{status:"error",variant:"inline",title:o.value||"The connection request is not valid."},null,8,["title"]),p[5]||(p[5]=w("p",{class:"consent__note"},"Nothing was shared. Start the connection again from your application.",-1))],64)):r.value==="signed-out"?(_(),M(ye,{key:2},[p[7]||(p[7]=w("h1",{class:"consent__title"},"Sign in to continue",-1)),w("p",iX,"Sign in to this bridge to decide whether "+Z(s.value)+" may connect.",1),Y(C,{variant:"primary",onClick:f},{default:X(()=>[...p[6]||(p[6]=[ce("Sign in",-1)])]),_:1})],64)):(_(),M(ye,{key:3},[w("h1",nX,"Connect "+Z(s.value)+" to OpenBridge?",1),w("p",rX,[ce(Z(s.value)+" will be able to read your devices, their current readings and recorded history, their events and the bridge logs ",1),a.value?(_(),M(ye,{key:0},[ce(", as "+Z(a.value),1)],64)):R("",!0),p[8]||(p[8]=ce(" . It will return to ",-1)),w("strong",null,Z(l.value),1),p[9]||(p[9]=ce(" . ",-1))]),Y(y,{modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=x=>c.value=x),label:"Also allow it to operate devices"},null,8,["modelValue"]),c.value?(_(),oe(g,{key:0,variant:"warning"},{default:X(()=>[...p[10]||(p[10]=[ce(" It will be able to switch, open and adjust anything the plugins on this bridge control, including gates and locks. You can disconnect it from Settings at any time. ",-1)])]),_:1})):R("",!0),w("div",sX,[Y(C,{variant:"ghost",onClick:p[1]||(p[1]=x=>h("deny"))},{default:X(()=>[...p[11]||(p[11]=[ce("Cancel",-1)])]),_:1}),Y(C,{variant:"primary",onClick:p[2]||(p[2]=x=>h("approve"))},{default:X(()=>[...p[12]||(p[12]=[ce("Connect",-1)])]),_:1})])],64))]),_:1})])}}}),lX=Kt(aX,[["__scopeId","data-v-583adaa9"]]),t3=$I({history:rI(),routes:[{path:"/login",name:"login",component:GY},{path:"/auth/callback",name:"auth-callback",component:QY},{path:"/oauth/consent",name:"oauth-consent",component:lX},{path:"/",component:Xz,redirect:"/dashboard",children:[{path:"dashboard",name:"dashboard",component:aW},{path:"plugins",name:"plugins",component:KW},{path:"devices",name:"devices",component:wj},{path:"devices/:id",name:"device-detail",component:Dj},{path:"config",name:"config",component:Gj},{path:"settings",name:"settings",component:LK},{path:"terminal",name:"terminal",component:zY}]}]});let dm=!1;t3.beforeEach(async e=>{var a;if(e.name==="login"||e.name==="auth-callback"||e.name==="oauth-consent")return!0;const{config:t,user:i,loadConfig:n,checkAuth:r}=rl();if(t.value||await n(),!((a=t.value)!=null&&a.enabled))return!0;const s=typeof e.query.login_hint=="string"?e.query.login_hint:"";if(dm){if(!i.value)return s?{path:"/login",query:{login_hint:s}}:"/login"}else{const l=await r();if(dm=!0,!l)return s?{path:"/login",query:{login_hint:s}}:"/login"}if(s){if(i.value&&i.value.email.toLowerCase()!==s.toLowerCase())return{path:"/login",query:{login_hint:s}};const l={...e.query};return delete l.login_hint,{path:e.path,query:l}}return!0});const Cl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},oX=Cl("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"/>'),cX=Cl("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"/>'),hm=Cl("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"/>'),uX=Cl("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"/>'),dX=Cl("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"/>'),hX=Cl("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"/>'),fX="app-window",pX=Object.freeze(Object.defineProperty({__proto__:null,bold:uX,default:hm,duotone:hX,fill:dX,glyphName:fX,light:cX,regular:hm,thin:oX},Symbol.toStringTag,{value:"Module"})),kl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},_X=kl("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"/>'),mX=kl("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"/>'),fm=kl("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"/>'),vX=kl("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"/>'),gX=kl("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"/>'),bX=kl("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"/>'),yX="brackets-curly",wX=Object.freeze(Object.defineProperty({__proto__:null,bold:vX,default:fm,duotone:bX,fill:gX,glyphName:yX,light:mX,regular:fm,thin:_X},Symbol.toStringTag,{value:"Module"})),Al=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},SX=Al("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"/>'),CX=Al("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"/>'),pm=Al("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"/>'),kX=Al("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"/>'),AX=Al("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"/>'),$X=Al("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"/>'),MX="broadcast",LX=Object.freeze(Object.defineProperty({__proto__:null,bold:kX,default:pm,duotone:$X,fill:AX,glyphName:MX,light:CX,regular:pm,thin:SX},Symbol.toStringTag,{value:"Module"})),$l=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},EX=$l("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"/>'),xX=$l("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"/>'),_m=$l("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"/>'),HX=$l("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"/>'),TX=$l("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"/>'),NX=$l("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"/>'),PX="camera",OX=Object.freeze(Object.defineProperty({__proto__:null,bold:HX,default:_m,duotone:NX,fill:TX,glyphName:PX,light:xX,regular:_m,thin:EX},Symbol.toStringTag,{value:"Module"})),Ml=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},RX=Ml("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"/>'),IX=Ml("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"/>'),mm=Ml("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"/>'),VX=Ml("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"/>'),DX=Ml("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"/>'),ZX=Ml("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"/>'),BX="cube",FX=Object.freeze(Object.defineProperty({__proto__:null,bold:VX,default:mm,duotone:ZX,fill:DX,glyphName:BX,light:IX,regular:mm,thin:RX},Symbol.toStringTag,{value:"Module"})),Ll=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},zX=Ll("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"/>'),UX=Ll("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"/>'),vm=Ll("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"/>'),WX=Ll("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"/>'),jX=Ll("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"/>'),KX=Ll("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"/>'),qX="door",GX=Object.freeze(Object.defineProperty({__proto__:null,bold:WX,default:vm,duotone:KX,fill:jX,glyphName:qX,light:UX,regular:vm,thin:zX},Symbol.toStringTag,{value:"Module"})),El=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},YX=El("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"/>'),XX=El("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"/>'),gm=El("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"/>'),JX=El("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"/>'),QX=El("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"/>'),eJ=El("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"/>'),tJ="drop",iJ=Object.freeze(Object.defineProperty({__proto__:null,bold:JX,default:gm,duotone:eJ,fill:QX,glyphName:tJ,light:XX,regular:gm,thin:YX},Symbol.toStringTag,{value:"Module"})),xl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},nJ=xl("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"/>'),rJ=xl("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"/>'),bm=xl("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"/>'),sJ=xl("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"/>'),aJ=xl("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"/>'),lJ=xl("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"/>'),oJ="fan",cJ=Object.freeze(Object.defineProperty({__proto__:null,bold:sJ,default:bm,duotone:lJ,fill:aJ,glyphName:oJ,light:rJ,regular:bm,thin:nJ},Symbol.toStringTag,{value:"Module"})),Hl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},uJ=Hl("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"/>'),dJ=Hl("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"/>'),ym=Hl("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"/>'),hJ=Hl("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"/>'),fJ=Hl("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"/>'),pJ=Hl("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"/>'),_J="game-controller",mJ=Object.freeze(Object.defineProperty({__proto__:null,bold:hJ,default:ym,duotone:pJ,fill:fJ,glyphName:_J,light:dJ,regular:ym,thin:uJ},Symbol.toStringTag,{value:"Module"})),Tl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},vJ=Tl("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"/>'),gJ=Tl("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"/>'),wm=Tl("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"/>'),bJ=Tl("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"/>'),yJ=Tl("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"/>'),wJ=Tl("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"/>'),SJ="garage",CJ=Object.freeze(Object.defineProperty({__proto__:null,bold:bJ,default:wm,duotone:wJ,fill:yJ,glyphName:SJ,light:gJ,regular:wm,thin:vJ},Symbol.toStringTag,{value:"Module"})),Nl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},kJ=Nl("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"/>'),AJ=Nl("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"/>'),Sm=Nl("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"/>'),$J=Nl("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"/>'),MJ=Nl("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"/>'),LJ=Nl("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"/>'),EJ="house",xJ=Object.freeze(Object.defineProperty({__proto__:null,bold:$J,default:Sm,duotone:LJ,fill:MJ,glyphName:EJ,light:AJ,regular:Sm,thin:kJ},Symbol.toStringTag,{value:"Module"})),Pl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},HJ=Pl("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"/>'),TJ=Pl("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"/>'),Cm=Pl("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"/>'),NJ=Pl("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"/>'),PJ=Pl("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"/>'),OJ=Pl("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"/>'),RJ="intersect",IJ=Object.freeze(Object.defineProperty({__proto__:null,bold:NJ,default:Cm,duotone:OJ,fill:PJ,glyphName:RJ,light:TJ,regular:Cm,thin:HJ},Symbol.toStringTag,{value:"Module"})),Ol=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},VJ=Ol("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"/>'),DJ=Ol("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"/>'),km=Ol("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"/>'),ZJ=Ol("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"/>'),BJ=Ol("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"/>'),FJ=Ol("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"/>'),zJ="lamp",UJ=Object.freeze(Object.defineProperty({__proto__:null,bold:ZJ,default:km,duotone:FJ,fill:BJ,glyphName:zJ,light:DJ,regular:km,thin:VJ},Symbol.toStringTag,{value:"Module"})),Rl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},WJ=Rl("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"/>'),jJ=Rl("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"/>'),Am=Rl("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"/>'),KJ=Rl("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"/>'),qJ=Rl("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"/>'),GJ=Rl("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"/>'),YJ="lightbulb",XJ=Object.freeze(Object.defineProperty({__proto__:null,bold:KJ,default:Am,duotone:GJ,fill:qJ,glyphName:YJ,light:jJ,regular:Am,thin:WJ},Symbol.toStringTag,{value:"Module"})),Il=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},JJ=Il("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"/>'),QJ=Il("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"/>'),$m=Il("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"/>'),eQ=Il("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"/>'),tQ=Il("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"/>'),iQ=Il("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"/>'),nQ="lightning",rQ=Object.freeze(Object.defineProperty({__proto__:null,bold:eQ,default:$m,duotone:iQ,fill:tQ,glyphName:nQ,light:QJ,regular:$m,thin:JJ},Symbol.toStringTag,{value:"Module"})),Vl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},sQ=Vl("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"/>'),aQ=Vl("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"/>'),Mm=Vl("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"/>'),lQ=Vl("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"/>'),oQ=Vl("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"/>'),cQ=Vl("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"/>'),uQ="lock",dQ=Object.freeze(Object.defineProperty({__proto__:null,bold:lQ,default:Mm,duotone:cQ,fill:oQ,glyphName:uQ,light:aQ,regular:Mm,thin:sQ},Symbol.toStringTag,{value:"Module"})),Dl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},hQ=Dl("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"/>'),fQ=Dl("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"/>'),Lm=Dl("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"/>'),pQ=Dl("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"/>'),_Q=Dl("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"/>'),mQ=Dl("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"/>'),vQ="plugs",gQ=Object.freeze(Object.defineProperty({__proto__:null,bold:pQ,default:Lm,duotone:mQ,fill:_Q,glyphName:vQ,light:fQ,regular:Lm,thin:hQ},Symbol.toStringTag,{value:"Module"})),Zl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},bQ=Zl("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"/>'),yQ=Zl("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"/>'),Em=Zl("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"/>'),wQ=Zl("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"/>'),SQ=Zl("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"/>'),CQ=Zl("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"/>'),kQ="rows",AQ=Object.freeze(Object.defineProperty({__proto__:null,bold:wQ,default:Em,duotone:CQ,fill:SQ,glyphName:kQ,light:yQ,regular:Em,thin:bQ},Symbol.toStringTag,{value:"Module"})),Bl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},$Q=Bl("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"/>'),MQ=Bl("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"/>'),xm=Bl("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"/>'),LQ=Bl("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"/>'),EQ=Bl("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"/>'),xQ=Bl("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"/>'),HQ="shield",TQ=Object.freeze(Object.defineProperty({__proto__:null,bold:LQ,default:xm,duotone:xQ,fill:EQ,glyphName:HQ,light:MQ,regular:xm,thin:$Q},Symbol.toStringTag,{value:"Module"})),Fl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},NQ=Fl("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"/>'),PQ=Fl("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"/>'),Hm=Fl("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"/>'),OQ=Fl("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"/>'),RQ=Fl("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"/>'),IQ=Fl("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"/>'),VQ="sliders",DQ=Object.freeze(Object.defineProperty({__proto__:null,bold:OQ,default:Hm,duotone:IQ,fill:RQ,glyphName:VQ,light:PQ,regular:Hm,thin:NQ},Symbol.toStringTag,{value:"Module"})),zl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},ZQ=zl("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"/>'),BQ=zl("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"/>'),Tm=zl("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"/>'),FQ=zl("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"/>'),zQ=zl("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"/>'),UQ=zl("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"/>'),WQ="snowflake",jQ=Object.freeze(Object.defineProperty({__proto__:null,bold:FQ,default:Tm,duotone:UQ,fill:zQ,glyphName:WQ,light:BQ,regular:Tm,thin:ZQ},Symbol.toStringTag,{value:"Module"})),Ul=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},KQ=Ul("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"/>'),qQ=Ul("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"/>'),Nm=Ul("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"/>'),GQ=Ul("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"/>'),YQ=Ul("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"/>'),XQ=Ul("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"/>'),JQ="speaker-hifi",QQ=Object.freeze(Object.defineProperty({__proto__:null,bold:GQ,default:Nm,duotone:XQ,fill:YQ,glyphName:JQ,light:qQ,regular:Nm,thin:KQ},Symbol.toStringTag,{value:"Module"})),Wl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},eee=Wl("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"/>'),tee=Wl("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"/>'),Pm=Wl("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"/>'),iee=Wl("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"/>'),nee=Wl("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"/>'),ree=Wl("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"/>'),see="speaker-high",aee=Object.freeze(Object.defineProperty({__proto__:null,bold:iee,default:Pm,duotone:ree,fill:nee,glyphName:see,light:tee,regular:Pm,thin:eee},Symbol.toStringTag,{value:"Module"})),jl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},lee=jl("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"/>'),oee=jl("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"/>'),Om=jl("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"/>'),cee=jl("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"/>'),uee=jl("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"/>'),dee=jl("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"/>'),hee="television",fee=Object.freeze(Object.defineProperty({__proto__:null,bold:cee,default:Om,duotone:dee,fill:uee,glyphName:hee,light:oee,regular:Om,thin:lee},Symbol.toStringTag,{value:"Module"})),Kl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},pee=Kl("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"/>'),_ee=Kl("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"/>'),Rm=Kl("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"/>'),mee=Kl("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"/>'),vee=Kl("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"/>'),gee=Kl("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"/>'),bee="terminal",yee=Object.freeze(Object.defineProperty({__proto__:null,bold:mee,default:Rm,duotone:gee,fill:vee,glyphName:bee,light:_ee,regular:Rm,thin:pee},Symbol.toStringTag,{value:"Module"})),ql=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},wee=ql("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"/>'),See=ql("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"/>'),Im=ql("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"/>'),Cee=ql("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"/>'),kee=ql("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"/>'),Aee=ql("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"/>'),$ee="thermometer",Mee=Object.freeze(Object.defineProperty({__proto__:null,bold:Cee,default:Im,duotone:Aee,fill:kee,glyphName:$ee,light:See,regular:Im,thin:wee},Symbol.toStringTag,{value:"Module"})),Gl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Lee=Gl("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"/>'),Eee=Gl("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"/>'),Vm=Gl("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"/>'),xee=Gl("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"/>'),Hee=Gl("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"/>'),Tee=Gl("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"/>'),Nee="thermometer-hot",Pee=Object.freeze(Object.defineProperty({__proto__:null,bold:xee,default:Vm,duotone:Tee,fill:Hee,glyphName:Nee,light:Eee,regular:Vm,thin:Lee},Symbol.toStringTag,{value:"Module"})),Yl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Oee=Yl("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"/>'),Ree=Yl("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"/>'),Dm=Yl("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"/>'),Iee=Yl("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"/>'),Vee=Yl("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"/>'),Dee=Yl("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"/>'),Zee="toggle-right",Bee=Object.freeze(Object.defineProperty({__proto__:null,bold:Iee,default:Dm,duotone:Dee,fill:Vee,glyphName:Zee,light:Ree,regular:Dm,thin:Oee},Symbol.toStringTag,{value:"Module"})),Xl=(e,t,i)=>{const n=r=>He("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:t,fill:"currentColor",...r,innerHTML:i});return n.displayName="NbGlyph",n.glyphName=e,n},Fee=Xl("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"/>'),zee=Xl("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"/>'),Zm=Xl("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"/>'),Uee=Xl("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"/>'),Wee=Xl("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"/>'),jee=Xl("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"/>'),Kee="wind",qee=Object.freeze(Object.defineProperty({__proto__:null,bold:Uee,default:Zm,duotone:jee,fill:Wee,glyphName:Kee,light:zee,regular:Zm,thin:Fee},Symbol.toStringTag,{value:"Module"}));function Gee(){tC({"app-window":pX,bell:Zu,"bell-ringing":l5,"brackets-curly":wX,broadcast:LX,camera:OX,cube:FX,devices:u5,door:GX,drop:iJ,fan:cJ,"game-controller":mJ,garage:CJ,gear:Rb,house:xJ,intersect:IJ,lamp:UJ,lightbulb:XJ,lightning:rQ,lock:dQ,plugs:gQ,pulse:hU,"puzzle-piece":Vb,rows:AQ,shield:TQ,sliders:DQ,snowflake:jQ,"speaker-hifi":QQ,"speaker-high":aee,television:fee,terminal:yee,thermometer:Mee,"thermometer-hot":Pee,"toggle-right":Bee,wind:qee})}const Yee={key:0,class:"pcf-section"},Xee={class:"pcf-section-label"},Jee={class:"pcf-section-body"},Qee={key:1,class:"pcf-row pcf-row--switch"},ete={class:"pcf-label-wrap"},tte={class:"pcf-label"},ite={key:0,class:"pcf-required"},nte={key:0,class:"pcf-hint"},rte={key:2,class:"pcf-row"},ste={class:"pcf-label"},ate={key:0,class:"pcf-required"},lte={class:"pcf-control"},ote={key:0,class:"pcf-hint"},cte={key:3,class:"pcf-row pcf-row--array"},ute={class:"pcf-label"},dte={key:0,class:"pcf-required"},hte={class:"pcf-control"},fte={class:"pcf-array"},pte={key:0,class:"pcf-hint"},_te={key:4,class:"pcf-row"},mte={class:"pcf-label"},vte={key:0,class:"pcf-required"},gte={class:"pcf-control"},bte={key:0,class:"pcf-hint"},yte={key:5,class:"pcf-row"},wte={class:"pcf-label"},Ste={key:0,class:"pcf-required"},Cte={class:"pcf-control"},kte={key:0,class:"pcf-hint"},Ate=Pe({__name:"PluginConfigField",props:{fieldKey:{},field:{},path:{},required:{type:Boolean},value:{}},emits:["change","addArray","removeArray","updateArray"],setup(e,{emit:t}){const i=e,n=t;function r(){return Array.isArray(i.field.type)?i.field.type[0]:i.field.type??"string"}function s(){return i.field.title??i.fieldKey.replace(/([A-Z])/g," $1").replace(/^./,d=>d.toUpperCase())}function a(){return(i.field.enum??[]).map((d,f)=>{var h;return{value:d,label:((h=i.field.enumNames)==null?void 0:h[f])??String(d)}})}function l(){return i.value??i.field.default??""}function o(d){const f=i.value;return f==null?void 0:f[d]}function c(d,f){const h=typeof i.value=="object"&&i.value!==null?{...i.value}:{};h[d]=f,n("change",h)}function u(){return Array.isArray(i.value)?i.value:[]}return(d,f)=>{const h=Wo("PluginConfigField",!0),m=Ou,p=Ia,b=os,v=At,C=Xn("nb-tooltip");return r()==="object"&&e.field.properties?(_(),M("div",Yee,[w("div",Xee,Z(s()),1),w("div",Jee,[(_(!0),M(ye,null,Be(e.field.properties,(y,g)=>{var L;return _(),oe(h,{key:g,"field-key":String(g),field:y,path:[...e.path,String(g)],required:((L=e.field.required)==null?void 0:L.includes(String(g)))??!1,value:o(String(g)),onChange:x=>c(String(g),x),onAddArray:f[0]||(f[0]=(x,$)=>n("addArray",x,$)),onRemoveArray:f[1]||(f[1]=(x,$)=>n("removeArray",x,$)),onUpdateArray:f[2]||(f[2]=(x,$,O)=>n("updateArray",x,$,O))},null,8,["field-key","field","path","required","value","onChange"])}),128))])])):r()==="boolean"?(_(),M("div",Qee,[w("div",ete,[w("span",tte,[ce(Z(s())+" ",1),e.required?(_(),M("span",ite,"*")):R("",!0)]),e.field.description?(_(),M("span",nte,Z(e.field.description),1)):R("",!0)]),Y(m,{"model-value":!!(e.value??e.field.default??!1),name:`pcf-${e.path.join("-")}`,size:"sm",variant:"primary","onUpdate:modelValue":f[3]||(f[3]=y=>n("change",y))},null,8,["model-value","name"])])):e.field.enum?(_(),M("div",rte,[w("label",ste,[ce(Z(s())+" ",1),e.required?(_(),M("span",ate,"*")):R("",!0)]),w("div",lte,[Y(p,{"model-value":l(),options:a(),size:"sm","onUpdate:modelValue":f[4]||(f[4]=y=>n("change",y))},null,8,["model-value","options"]),e.field.description?(_(),M("span",ote,Z(e.field.description),1)):R("",!0)])])):r()==="array"?(_(),M("div",cte,[w("label",ute,[ce(Z(s())+" ",1),e.required?(_(),M("span",dte,"*")):R("",!0)]),w("div",hte,[w("div",fte,[(_(!0),M(ye,null,Be(u(),(y,g)=>(_(),M("div",{key:g,class:"pcf-array-row"},[Y(b,{"model-value":String(y),size:"sm",placeholder:`${s()} ${g+1}`,style:{flex:"1"},"onUpdate:modelValue":L=>n("updateArray",e.path,g,L)},null,8,["model-value","placeholder","onUpdate:modelValue"]),Tt(Y(v,{variant:"ghost",size:"sm",icon:af,"aria-label":`Remove ${s()} ${g+1}`,onClick:L=>n("removeArray",e.path,g)},null,8,["aria-label","onClick"]),[[C,{body:`Remove ${s()} ${g+1}`}]])]))),128)),Y(v,{variant:"ghost",size:"sm",icon:Jg,onClick:f[5]||(f[5]=y=>n("addArray",e.path,e.field.items??{type:"string"}))},{default:X(()=>[...f[8]||(f[8]=[ce(" Add ",-1)])]),_:1})]),e.field.description?(_(),M("span",pte,Z(e.field.description),1)):R("",!0)])])):r()==="number"||r()==="integer"?(_(),M("div",_te,[w("label",mte,[ce(Z(s())+" ",1),e.required?(_(),M("span",vte,"*")):R("",!0)]),w("div",gte,[Y(b,{"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":f[6]||(f[6]=y=>n("change",Number(y)))},null,8,["model-value","placeholder"]),e.field.description?(_(),M("span",bte,Z(e.field.description),1)):R("",!0)])])):(_(),M("div",yte,[w("label",wte,[ce(Z(s())+" ",1),e.required?(_(),M("span",Ste,"*")):R("",!0)]),w("div",Cte,[Y(b,{"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":f[7]||(f[7]=y=>n("change",y))},null,8,["model-value","placeholder"]),e.field.description?(_(),M("span",kte,Z(e.field.description),1)):R("",!0)])]))}}}),$te=Kt(Ate,[["__scopeId","data-v-1c313d38"]]);pL({storageKey:"openbridge.theme"});fR({themes:["openbridge"],defaultTheme:"openbridge"});const Jl=mv(yR);Jl.use(W7());Jl.use(t3);Jl.use(Z9({legacy:!1,locale:navigator.language,fallbackLocale:"en"}));Jl.use(JS);Gee();Jl.component("PluginConfigField",$te);Jl.mount("#app");