docker-client-mx 1.35.0 → 1.35.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 (42) hide show
  1. package/dist/docker-desktop-mx/browser/chunk-BDeMOmys.js +1 -0
  2. package/dist/docker-desktop-mx/browser/chunk-BDwzLH5E.js +1 -0
  3. package/dist/docker-desktop-mx/browser/chunk-BIryu19T.js +1 -0
  4. package/dist/docker-desktop-mx/browser/chunk-BgAYDwld.js +1 -0
  5. package/dist/docker-desktop-mx/browser/chunk-BgSpSEgy.js +1 -0
  6. package/dist/docker-desktop-mx/browser/chunk-Bo4H3_Rk.js +1 -0
  7. package/dist/docker-desktop-mx/browser/chunk-C-mSD_ks.js +1 -0
  8. package/dist/docker-desktop-mx/browser/chunk-C38PgGs5.js +1 -0
  9. package/dist/docker-desktop-mx/browser/chunk-C5hTG6ZQ.js +1 -0
  10. package/dist/docker-desktop-mx/browser/chunk-C7ZKT99Y.js +1 -0
  11. package/dist/docker-desktop-mx/browser/chunk-CKI6HOt5.js +1 -0
  12. package/dist/docker-desktop-mx/browser/chunk-CSTPKCSb.js +1 -0
  13. package/dist/docker-desktop-mx/browser/chunk-CfF5fStd.js +36 -0
  14. package/dist/docker-desktop-mx/browser/chunk-CkcMOifC.js +1 -0
  15. package/dist/docker-desktop-mx/browser/chunk-CmXGNv0-.js +1 -0
  16. package/dist/docker-desktop-mx/browser/chunk-Cs8Jh9po.js +1 -0
  17. package/dist/docker-desktop-mx/browser/chunk-DAJsomrJ.js +1 -0
  18. package/dist/docker-desktop-mx/browser/chunk-DFUzAyI0.js +1 -0
  19. package/dist/docker-desktop-mx/browser/chunk-DIjFiJIb.js +1 -0
  20. package/dist/docker-desktop-mx/browser/chunk-DOxgdvK8.js +4 -0
  21. package/dist/docker-desktop-mx/browser/chunk-DRT1vtH_.js +4 -0
  22. package/dist/docker-desktop-mx/browser/chunk-DSXCkEOA.js +1 -0
  23. package/dist/docker-desktop-mx/browser/chunk-DYUws9mp.js +1 -0
  24. package/dist/docker-desktop-mx/browser/chunk-Dh7vYMc8.js +1 -0
  25. package/dist/docker-desktop-mx/browser/chunk-Dj0SqC61.js +1 -0
  26. package/dist/docker-desktop-mx/browser/chunk-Dk2BOjJw.js +1 -0
  27. package/dist/docker-desktop-mx/browser/chunk-DrmeYv5g.js +1 -0
  28. package/dist/docker-desktop-mx/browser/chunk-Duka1ezn.js +1 -0
  29. package/dist/docker-desktop-mx/browser/chunk-GNa4NoSX.js +2 -0
  30. package/dist/docker-desktop-mx/browser/chunk-MHYwHTvv.js +1 -0
  31. package/dist/docker-desktop-mx/browser/chunk-V8IwFs3U.js +1 -0
  32. package/dist/docker-desktop-mx/browser/chunk-ltArY2xW.js +1 -0
  33. package/dist/docker-desktop-mx/browser/chunk-oQtDYwMw.js +1 -0
  34. package/dist/docker-desktop-mx/browser/chunk-sKoSitq-.js +1 -0
  35. package/dist/docker-desktop-mx/browser/chunk-tewFiBKE.js +1 -0
  36. package/dist/docker-desktop-mx/browser/chunk-uyqlb3cB.js +1 -0
  37. package/dist/docker-desktop-mx/browser/index.html +1 -1
  38. package/dist/docker-desktop-mx/browser/main-EZ2B2NFK.js +1 -0
  39. package/package.json +1 -1
  40. package/dist/docker-desktop-mx/browser/chunk-64WWLMUP.js +0 -39
  41. package/dist/docker-desktop-mx/browser/chunk-N4VBBC4W.js +0 -1
  42. package/dist/docker-desktop-mx/browser/main-CTIRTSOI.js +0 -5
@@ -1,39 +0,0 @@
1
- var YE=Object.defineProperty,ZE=Object.defineProperties;var QE=Object.getOwnPropertyDescriptors;var lp=Object.getOwnPropertySymbols;var XE=Object.prototype.hasOwnProperty,JE=Object.prototype.propertyIsEnumerable;var cp=(e,t,n)=>t in e?YE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ae=(e,t)=>{for(var n in t||={})XE.call(t,n)&&cp(e,n,t[n]);if(lp)for(var n of lp(t))JE.call(t,n)&&cp(e,n,t[n]);return e},xe=(e,t)=>ZE(e,QE(t));var m=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var pL=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}};function T(e){let t=We;return We=e,t}function Eo(){return We}function nn(e){if(Co)throw new Error("");if(We===null)return;We.consumerOnSignalRead(e);let t=We.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=We.recomputing;if(r&&(n=t!==void 0?t.nextProducer:We.producers,n!==void 0&&n.producer===e)){We.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=er;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===We&&(!r||i.knownValidAtEpoch===er))return;let s=Vr(We),o={producer:e,consumer:We,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:er,lastReadVersion:e.version,nextConsumer:void 0};We.producersTail=o,t!==void 0?t.nextProducer=o:We.producers=o,s&&fp(e,o)}function up(){er++}function rr(e){if(!(Vr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===er)){if(!e.producerMustRecompute(e)&&!jr(e)){Hr(e);return}e.producerRecomputeValue(e),Hr(e)}}function cc(e){if(e.consumers===void 0)return;let t=Co;Co=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||tD(r)}}finally{Co=t}}function uc(){return We?.consumerAllowSignalWrites!==!1}function tD(e){e.dirty=!0,cc(e),e.consumerMarkedDirty?.(e)}function Hr(e){e.dirty=!1,e.lastCleanEpoch=er}function rn(e){return e&&dp(e),T(e)}function dp(e){if(e.producersTail?.knownValidAtEpoch===er){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function Tn(e,t){T(t),e&&hp(e)}function hp(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Vr(e))do n=dc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function jr(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(rr(n),r!==n.version))return!0}return!1}function Mn(e){if(Vr(e)){let t=e.producers;for(;t!==void 0;)t=dc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function fp(e,t){let n=e.consumersTail,r=Vr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let i=e.producers;i!==void 0;i=i.nextProducer)fp(i.producer,i)}function dc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!Vr(t)){let s=t.producers;for(;s!==void 0;)s=dc(s)}return n}function Vr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Oi(e){eD?.(e)}function Pi(e,t){return Object.is(e,t)}function $i(e,t){let n=Object.create(nD);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(rr(n),nn(n),n.value===jt)throw n.error;return n.value};return r[de]=n,Oi(n),r}function rD(){throw new Error}function gp(e){pp(e)}function hc(e){pp=e}function fc(e,t){let n=Object.create(zr);n.value=e,t!==void 0&&(n.equal=t);let r=()=>mp(n);return r[de]=n,Oi(n),[r,o=>sn(n,o),o=>Do(n,o)]}function mp(e){return nn(e),e.value}function sn(e,t){uc()||gp(e),e.equal(e.value,t)||(e.value=t,sD(e))}function Do(e,t){uc()||gp(e),sn(e,t(e.value))}function sD(e){e.version++,up(),cc(e),iD?.(e)}function gc(e){if(e.dirty=!1,e.version>0&&!jr(e))return;e.version++;let t=rn(e);try{e.cleanup(),e.fn()}finally{Tn(e,t)}}var We,Co,er,eD,de,xn,tr,nr,jt,nD,pp,iD,zr,pc,ir=m(()=>{We=null,Co=!1,er=1,eD=null,de=Symbol("SIGNAL");xn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};tr=Symbol("UNSET"),nr=Symbol("COMPUTING"),jt=Symbol("ERRORED"),nD=xe(ae({},xn),{value:tr,dirty:!0,error:null,equal:Pi,kind:"computed",producerMustRecompute(e){return e.value===tr||e.value===nr},producerRecomputeValue(e){if(e.value===nr)throw new Error("");let t=e.value;e.value=nr;let n=rn(e),r,i=!1;try{r=e.computation(),T(null),i=t!==tr&&t!==jt&&r!==jt&&e.equal(t,r)}catch(s){r=jt,e.error=s}finally{Tn(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});pp=rD;iD=null;zr=xe(ae({},xn),{equal:Pi,value:void 0,kind:"signal"});pc=xe(ae({},xn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"})});function ko(){return mc}function Vt(e){let t=mc;return mc=e,t}function Ur(e){return e===vp||e?.name==="\u0275NotFound"}var mc,vp,vc=m(()=>{vp=Symbol("NotFound")});function _c(e,t,n){let r=Object.create(oD);r.source=e,r.computation=t,n!=null&&(r.equal=n);let s=()=>{if(rr(r),nn(r),r.value===jt)throw r.error;return r.value};return s[de]=r,Oi(r),s}function yc(e,t){rr(e),sn(e,t),Hr(e)}function _p(e,t){if(rr(e),e.value===jt)throw e.error;Do(e,t),Hr(e)}function yp(e){let t=T(null);try{return e()}finally{T(t)}}var oD,bp=m(()=>{ir();oD=xe(ae({},xn),{value:tr,dirty:!0,error:null,equal:Pi,kind:"linkedSignal",producerMustRecompute(e){return e.value===tr||e.value===nr},producerRecomputeValue(e){if(e.value===nr)throw new Error("");let t=e.value;e.value=nr;let n=rn(e),r,i=!1;try{let s=e.source(),o=t!==tr&&t!==jt,a=o?{source:e.sourceValue,value:t}:void 0;r=e.computation(s,a),e.sourceValue=s,T(null),i=o&&r!==jt&&e.equal(t,r)}catch(s){r=jt,e.error=s}finally{Tn(e,n)}if(i){e.value=t;return}e.value=r,e.version++}})});var bc=m(()=>{ir();});var wp=m(()=>{vc();});function $(e){return typeof e=="function"}var Se=m(()=>{});function Wr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Io=m(()=>{});var xo,Sp=m(()=>{Io();xo=Wr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
- ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n})});function Fi(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var wc=m(()=>{});function To(e){return e instanceof qe||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function Cp(e){$(e)?e():e.unsubscribe()}var qe,Sc,Bi=m(()=>{Se();Sp();wc();qe=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let s of n)s.remove(this);else n.remove(this);let{initialTeardown:r}=this;if($(r))try{r()}catch(s){t=s instanceof xo?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{Cp(s)}catch(o){t=t??[],o instanceof xo?t=[...t,...o.errors]:t.push(o)}}if(t)throw new xo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Cp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Fi(n,t)}remove(t){let{_finalizers:n}=this;n&&Fi(n,t),t instanceof e&&t._removeParent(this)}};qe.EMPTY=(()=>{let e=new qe;return e.closed=!0,e})();Sc=qe.EMPTY});var It,Hi=m(()=>{It={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var qr,Cc=m(()=>{qr={setTimeout(e,t,...n){let{delegate:r}=qr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=qr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0}});function Mo(e){qr.setTimeout(()=>{let{onUnhandledError:t}=It;if(t)t(e);else throw e})}var Ec=m(()=>{Hi();Cc()});function ji(){}var Dc=m(()=>{});function Dp(e){return kc("E",void 0,e)}function kp(e){return kc("N",e,void 0)}function kc(e,t,n){return{kind:e,value:t,error:n}}var Ep,Ip=m(()=>{Ep=kc("C",void 0,void 0)});function Gr(e){if(It.useDeprecatedSynchronousErrorHandling){let t=!sr;if(t&&(sr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=sr;if(sr=null,n)throw r}}else e()}function xp(e){It.useDeprecatedSynchronousErrorHandling&&sr&&(sr.errorThrown=!0,sr.error=e)}var sr,No=m(()=>{Hi();sr=null});function Ic(e,t){return aD.call(e,t)}function Ao(e){It.useDeprecatedSynchronousErrorHandling?xp(e):Mo(e)}function lD(e){throw e}function xc(e,t){let{onStoppedNotification:n}=It;n&&qr.setTimeout(()=>n(e,t))}var or,aD,Tc,Kr,cD,Mc=m(()=>{Se();Bi();Hi();Ec();Dc();Ip();Cc();No();or=class extends qe{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,To(t)&&t.add(this)):this.destination=cD}static create(t,n,r){return new Kr(t,n,r)}next(t){this.isStopped?xc(kp(t),this):this._next(t)}error(t){this.isStopped?xc(Dp(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?xc(Ep,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},aD=Function.prototype.bind;Tc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ao(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ao(r)}else Ao(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ao(n)}}},Kr=class extends or{constructor(t,n,r){super();let i;if($(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let s;this&&It.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Ic(t.next,s),error:t.error&&Ic(t.error,s),complete:t.complete&&Ic(t.complete,s)}):i=t}this.destination=new Tc(i)}};cD={closed:!0,next:ji,error:lD,complete:ji}});var Yr,Ro=m(()=>{Yr=typeof Symbol=="function"&&Symbol.observable||"@@observable"});function xt(e){return e}var Zr=m(()=>{});function uD(...e){return Nc(e)}function Nc(e){return e.length===0?xt:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var Ac=m(()=>{Zr()});function Tp(e){var t;return(t=e??It.Promise)!==null&&t!==void 0?t:Promise}function dD(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function hD(e){return e&&e instanceof or||dD(e)&&To(e)}var W,it=m(()=>{Mc();Bi();Ro();Ac();Hi();Se();No();W=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let i=hD(t)?t:new Kr(t,n,r);return Gr(()=>{let{operator:s,source:o}=this;i.add(s?s.call(i,o):o?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=Tp(n),new n((r,i)=>{let s=new Kr({next:o=>{try{t(o)}catch(a){i(a),s.unsubscribe()}},error:i,complete:r});this.subscribe(s)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[Yr](){return this}pipe(...t){return Nc(t)(this)}toPromise(t){return t=Tp(t),new t((n,r)=>{let i;this.subscribe(s=>i=s,s=>r(s),()=>n(i))})}};W.create=e=>new W(e)});function fD(e){return $(e?.lift)}function Y(e){return t=>{if(fD(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var je=m(()=>{Se()});function Z(e,t,n,r,i){return new Rc(e,t,n,r,i)}var Rc,Ge=m(()=>{Mc();Rc=class extends or{constructor(t,n,r,i,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}}});var Mp,Np=m(()=>{Io();Mp=Wr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})});var mt,Lo,Lc=m(()=>{it();Bi();Np();wc();No();mt=class extends W{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new Lo(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new Mp}next(t){Gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){Gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){Gr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:i}=this;return n||r?Sc:(this.currentObservers=null,i.push(t),new qe(()=>{this.currentObservers=null,Fi(i,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:i}=this;n?t.error(r):i&&t.complete()}asObservable(){let t=new W;return t.source=this,t}};mt.create=(e,t)=>new Lo(e,t);Lo=class extends mt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Sc}}});var Vi,Ap=m(()=>{Lc();Vi=class extends mt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}});var zi,Oo=m(()=>{it();zi=new W(e=>e.complete())});function Rp(e){return e&&$(e.schedule)}var Lp=m(()=>{Se()});function Op(e){return e[e.length-1]}function Po(e){return $(Op(e))?e.pop():void 0}function Nn(e){return Rp(Op(e))?e.pop():void 0}var Qr=m(()=>{Se();Lp()});function $p(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function Pp(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ar(e){return this instanceof ar?(this.v=e,this):new ar(e)}function Fp(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(i[f]=function(g){return new Promise(function(_,y){s.push([f,g,_,y])>1||l(f,g)})},p&&(i[f]=p(i[f])))}function l(f,p){try{c(r[f](p))}catch(g){h(s[0][3],g)}}function c(f){f.value instanceof ar?Promise.resolve(f.value.v).then(u,d):h(s[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Bp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Pp=="function"?Pp(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}var Oc=m(()=>{});var $o,Pc=m(()=>{$o=(e=>e&&typeof e.length=="number"&&typeof e!="function")});function Fo(e){return $(e?.then)}var $c=m(()=>{Se()});function Bo(e){return $(e[Yr])}var Fc=m(()=>{Ro();Se()});function Ho(e){return Symbol.asyncIterator&&$(e?.[Symbol.asyncIterator])}var Bc=m(()=>{Se()});function jo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}var Hc=m(()=>{});function pD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Vo,jc=m(()=>{Vo=pD()});function zo(e){return $(e?.[Vo])}var Vc=m(()=>{jc();Se()});function Uo(e){return Fp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield ar(n.read());if(i)return yield ar(void 0);yield yield ar(r)}}finally{n.releaseLock()}})}function Wo(e){return $(e?.getReader)}var qo=m(()=>{Oc();Se()});function _e(e){if(e instanceof W)return e;if(e!=null){if(Bo(e))return gD(e);if($o(e))return mD(e);if(Fo(e))return vD(e);if(Ho(e))return Hp(e);if(zo(e))return _D(e);if(Wo(e))return yD(e)}throw jo(e)}function gD(e){return new W(t=>{let n=e[Yr]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mD(e){return new W(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function vD(e){return new W(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mo)})}function _D(e){return new W(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Hp(e){return new W(t=>{bD(e,t).catch(n=>t.error(n))})}function yD(e){return Hp(Uo(e))}function bD(e,t){var n,r,i,s;return $p(this,void 0,void 0,function*(){try{for(n=Bp(e);r=yield n.next(),!r.done;){let o=r.value;if(t.next(o),t.closed)return}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}t.complete()})}var Tt=m(()=>{Oc();Pc();$c();it();Fc();Bc();Hc();Vc();qo();Se();Ec();Ro()});function Xe(e,t,n,r=0,i=!1){let s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}var Xr=m(()=>{});function Go(e,t=0){return Y((n,r)=>{n.subscribe(Z(r,i=>Xe(r,e,()=>r.next(i),t),()=>Xe(r,e,()=>r.complete(),t),i=>Xe(r,e,()=>r.error(i),t)))})}var zc=m(()=>{Xr();je();Ge()});function Ko(e,t=0){return Y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}var Uc=m(()=>{je()});function jp(e,t){return _e(e).pipe(Ko(t),Go(t))}var Vp=m(()=>{Tt();zc();Uc()});function zp(e,t){return _e(e).pipe(Ko(t),Go(t))}var Up=m(()=>{Tt();zc();Uc()});function Wp(e,t){return new W(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}var qp=m(()=>{it()});function Gp(e,t){return new W(n=>{let r;return Xe(n,t,()=>{r=e[Vo](),Xe(n,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){n.error(o);return}s?n.complete():n.next(i)},0,!0)}),()=>$(r?.return)&&r.return()})}var Kp=m(()=>{it();jc();Se();Xr()});function Yo(e,t){if(!e)throw new Error("Iterable cannot be null");return new W(n=>{Xe(n,t,()=>{let r=e[Symbol.asyncIterator]();Xe(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}var Wc=m(()=>{it();Xr()});function Yp(e,t){return Yo(Uo(e),t)}var Zp=m(()=>{Wc();qo()});function Qp(e,t){if(e!=null){if(Bo(e))return jp(e,t);if($o(e))return Wp(e,t);if(Fo(e))return zp(e,t);if(Ho(e))return Yo(e,t);if(zo(e))return Gp(e,t);if(Wo(e))return Yp(e,t)}throw jo(e)}var Xp=m(()=>{Vp();Up();qp();Kp();Wc();Fc();$c();Pc();Vc();Bc();Hc();qo();Zp()});function An(e,t){return t?Qp(e,t):_e(e)}var Ui=m(()=>{Xp();Tt()});function wD(...e){let t=Nn(e);return An(e,t)}var Jp=m(()=>{Qr();Ui()});function SD(e,t){let n=$(e)?e:()=>e,r=i=>i.error(n());return new W(t?i=>t.schedule(r,0,i):r)}var eg=m(()=>{it();Se()});function CD(e){return!!e&&(e instanceof W||$(e.lift)&&$(e.subscribe))}var tg=m(()=>{it();Se()});var Wi,Zo=m(()=>{Io();Wi=Wr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"})});function lr(e,t){return Y((n,r)=>{let i=0;n.subscribe(Z(r,s=>{r.next(e.call(t,s,i++))}))})}var Qo=m(()=>{je();Ge()});function DD(e,t){return ED(t)?e(...t):e(t)}function Xo(e){return lr(t=>DD(e,t))}var ED,qc=m(()=>{Qo();({isArray:ED}=Array)});function Jo(e){if(e.length===1){let t=e[0];if(kD(t))return{args:t,keys:null};if(MD(t)){let n=TD(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function MD(e){return e&&typeof e=="object"&&ID(e)===xD}var kD,ID,xD,TD,Gc=m(()=>{({isArray:kD}=Array),{getPrototypeOf:ID,prototype:xD,keys:TD}=Object});function ea(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}var Kc=m(()=>{});function ND(...e){let t=Nn(e),n=Po(e),{args:r,keys:i}=Jo(e);if(r.length===0)return An([],t);let s=new W(AD(r,t,i?o=>ea(i,o):xt));return n?s.pipe(Xo(n)):s}function AD(e,t,n=xt){return r=>{ng(t,()=>{let{length:i}=e,s=new Array(i),o=i,a=i;for(let l=0;l<i;l++)ng(t,()=>{let c=An(e[l],t),u=!1;c.subscribe(Z(r,d=>{s[l]=d,u||(u=!0,a--),a||r.next(n(s.slice()))},()=>{--o||r.complete()}))},r)},r)}}function ng(e,t,n){e?Xe(n,e,t):t()}var rg=m(()=>{it();Gc();Ui();Zr();qc();Qr();Kc();Ge();Xr()});function ig(e,t,n,r,i,s,o,a){let l=[],c=0,u=0,d=!1,h=()=>{d&&!l.length&&!c&&t.complete()},f=g=>c<r?p(g):l.push(g),p=g=>{s&&t.next(g),c++;let _=!1;_e(n(g,u++)).subscribe(Z(t,y=>{i?.(y),s?f(y):t.next(y)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&c<r;){let y=l.shift();o?Xe(t,o,()=>p(y)):p(y)}h()}catch(y){t.error(y)}}))};return e.subscribe(Z(t,f,()=>{d=!0,h()})),()=>{a?.()}}var sg=m(()=>{Tt();Xr();Ge()});function cr(e,t,n=1/0){return $(t)?cr((r,i)=>lr((s,o)=>t(r,s,i,o))(_e(e(r,i))),n):(typeof t=="number"&&(n=t),Y((r,i)=>ig(r,i,e,n)))}var ta=m(()=>{Qo();Tt();je();sg();Se()});function Yc(e=1/0){return cr(xt,e)}var Zc=m(()=>{ta();Zr()});function og(){return Yc(1)}var ag=m(()=>{Zc()});function na(...e){return og()(An(e,Nn(e)))}var Qc=m(()=>{ag();Qr();Ui()});function RD(e){return new W(t=>{_e(e()).subscribe(t)})}var lg=m(()=>{it();Tt()});function LD(...e){let t=Po(e),{args:n,keys:r}=Jo(e),i=new W(s=>{let{length:o}=n;if(!o){s.complete();return}let a=new Array(o),l=o,c=o;for(let u=0;u<o;u++){let d=!1;_e(n[u]).subscribe(Z(s,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(r?ea(r,a):a),s.complete())}))}});return t?i.pipe(Xo(t)):i}var cg=m(()=>{it();Gc();Tt();Qr();Ge();qc();Kc()});function Xc(e,t){return Y((n,r)=>{let i=0;n.subscribe(Z(r,s=>e.call(t,s,i++)&&r.next(s)))})}var Jc=m(()=>{je();Ge()});var ug=m(()=>{});function dg(e){return Y((t,n)=>{let r=null,i=!1,s;r=t.subscribe(Z(n,void 0,void 0,o=>{s=_e(e(o,dg(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}var hg=m(()=>{Tt();Ge();je()});function OD(e,t){return $(t)?cr(e,t,1):cr(e,1)}var fg=m(()=>{ta();Se()});function pg(e){return Y((t,n)=>{let r=!1;t.subscribe(Z(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}var gg=m(()=>{je();Ge()});function eu(e){return e<=0?()=>zi:Y((t,n)=>{let r=0;t.subscribe(Z(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}var tu=m(()=>{Oo();je();Ge()});function mg(e=PD){return Y((t,n)=>{let r=!1;t.subscribe(Z(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function PD(){return new Wi}var vg=m(()=>{Zo();je();Ge()});function $D(e){return Y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}var _g=m(()=>{je()});function FD(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Xc((i,s)=>e(i,s,r)):xt,eu(1),n?pg(t):mg(()=>new Wi))}var yg=m(()=>{Zo();Jc();tu();gg();vg();Zr()});function BD(e){return e<=0?()=>zi:Y((t,n)=>{let r=[];t.subscribe(Z(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}var bg=m(()=>{Oo();je();Ge()});function HD(...e){let t=Nn(e);return Y((n,r)=>{(t?na(e,n,t):na(e,n)).subscribe(r)})}var wg=m(()=>{Qc();Qr();je()});function jD(e,t){return Y((n,r)=>{let i=null,s=0,o=!1,a=()=>o&&!i&&r.complete();n.subscribe(Z(r,l=>{i?.unsubscribe();let c=0,u=s++;_e(e(l,u)).subscribe(i=Z(r,d=>r.next(t?t(l,d,u,c++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}var Sg=m(()=>{Tt();je();Ge()});function VD(e){return Y((t,n)=>{_e(e).subscribe(Z(n,()=>n.complete(),ji)),!n.closed&&t.subscribe(n)})}var Cg=m(()=>{je();Ge();Tt();Dc()});function zD(e,t,n){let r=$(e)||t||n?{next:e,error:t,complete:n}:e;return r?Y((i,s)=>{var o;(o=r.subscribe)===null||o===void 0||o.call(r);let a=!0;i.subscribe(Z(s,l=>{var c;(c=r.next)===null||c===void 0||c.call(r,l),s.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),s.complete()},l=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),s.error(l)},()=>{var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):xt}var Eg=m(()=>{Se();je();Ge();Zr()});var nu=m(()=>{it();Lc();Ap();Bi();Ac();tg();Zo();rg();Qc();lg();cg();Ui();Jp();eg();Oo();ug()});function UD(e){return`NG0${Math.abs(e)}`}function Xi(e,t){return`${UD(e)}${t?": "+t:""}`}function Q(e){for(let t in e)if(e[t]===Q)return t;throw Error("")}function Mg(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function Ji(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ji).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function ua(e,t){return e?t?`${e} ${t}`:e:t||""}function da(e){return e.__forward_ref__=da,e}function Ce(e){return vu(e)?e():e}function vu(e){return typeof e=="function"&&Object.hasOwn(e,WD)&&e.__forward_ref__===da}function Te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function es(e){return GD(e,ha)}function qD(e){return es(e)!==null}function GD(e,t){return Object.hasOwn(e,t)&&e[t]||null}function KD(e){let t=e?.[ha]??null;return t||null}function iu(e){return e&&Object.hasOwn(e,ia)?e[ia]:null}function _u(e){return e&&!!e.\u0275providers}function Ng(e){return fa(e,"@NgModule"),e[bu]||null}function dn(e){return fa(e,"@Component"),e[ts]||null}function rs(e){return fa(e,"@Directive"),e[ns]||null}function wu(e){return fa(e,"@Pipe"),e[yu]||null}function fa(e,t){if(e==null)throw new H(-919,!1)}function hn(e){return typeof e=="string"?e:e==null?"":String(e)}function Su(e,t){return Rg("",-200,t)}function pa(e,t){throw new H(-201,!1)}function Rg(e,t,n){let r=new H(t,e);return r[Ag]=t,r[YD]=e,n&&(r[ZD]=n),r}function QD(e){return e[Ag]}function Lg(){return su}function Ke(e){let t=su;return su=e,t}function Cu(e,t,n){let r=es(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;pa(e,"")}function ek(e,t=0){let n=ko();if(n===void 0)throw new H(-203,!1);if(n===null)return Cu(e,void 0,t);{let r=tk(t),i=n.retrieve(e,r);if(Ur(i)){if(r.optional)return null;throw i}return i}}function zt(e,t=0){return(Lg()||ek)(Ce(e),t)}function A(e,t){return zt(e,dr(t))}function dr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function tk(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function au(e){let t=[];for(let n=0;n<e.length;n++){let r=Ce(e[n]);if(Array.isArray(r)){if(r.length===0)throw new H(900,!1);let i,s=0;for(let o=0;o<r.length;o++){let a=r[o],l=nk(a);typeof l=="number"?l===-1?i=a.token:s|=l:i=a}t.push(zt(i,s))}else t.push(zt(r))}return t}function nk(e){return e[JD]}function Ln(e,t){let n=Object.hasOwn(e,Ki);return n?e[Ki]:null}function Og(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}function Pg(e){return e.flat(Number.POSITIVE_INFINITY)}function ga(e,t){e.forEach(n=>Array.isArray(n)?ga(n,t):t(n))}function Eu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function is(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $g(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let s=i-2;e[i]=e[s],i--}e[t]=n,e[t+1]=r}}function ma(e,t,n){let r=ti(e,t);return r>=0?e[r|1]=n:(r=~r,$g(e,r,t,n)),r}function va(e,t){let n=ti(e,t);if(n>=0)return e[n|1]}function ti(e,t){return rk(e,t,1)}function rk(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let s=r+(i-r>>1),o=e[s<<n];if(t===o)return s<<n;o>t?i=s:r=s+1}return~(i<<n)}function os(e){return{\u0275providers:e}}function Fg(e){return os([{provide:ni,multi:!0,useValue:e}])}function Bg(...e){return{\u0275providers:_a(!0,e),\u0275fromNgModule:!0}}function _a(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return ga(t,o=>{let a=o;sa(a,s,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Hg(i,s),n}function Hg(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];ku(i,s=>{t(s,r)})}}function sa(e,t,n,r){if(e=Ce(e),!e)return!1;let i=null,s=iu(e),o=!s&&dn(e);if(!s&&!o){let l=e.ngModule;if(s=iu(l),s)i=l;else return!1}else{if(o&&!o.standalone)return!1;i=e}let a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let c of l)sa(c,t,n,r)}}else if(s){if(s.imports!=null&&!a){r.add(i);let c;ga(s.imports,u=>{sa(u,t,n,r)&&(c||=[],c.push(u))}),c!==void 0&&Hg(c,t)}if(!a){let c=Ln(i)||(()=>new i);t({provide:i,useFactory:c,deps:vt},i),t({provide:Du,useValue:i,multi:!0},i),t({provide:ni,useValue:()=>zt(i),multi:!0},i)}let l=s.providers;if(l!=null&&!a){let c=e;ku(l,u=>{t(u,c)})}}else return!1;return i!==e&&e.providers!==void 0}function ku(e,t){for(let n of e)_u(n)&&(n=n.\u0275providers),Array.isArray(n)?ku(n,t):t(n)}function jg(e){return e!==null&&typeof e=="object"&&ik in e}function sk(e){return!!(e&&e.useExisting)}function ok(e){return!!(e&&e.useFactory)}function hr(e){return typeof e=="function"}function Vg(e){return!!e.useClass}function as(){return ru===void 0&&(ru=new ei),ru}function lu(e){let t=es(e),n=t!==null?t.factory:Ln(e);if(n!==null)return n;if(e instanceof G)throw new H(-204,!1);if(e instanceof Function)return ak(e);throw new H(-204,!1)}function ak(e){if(e.length>0)throw new H(-204,!1);let n=KD(e);return n!==null?()=>n.factory(e):()=>new e}function lk(e){if(jg(e))return Jr(void 0,e.useValue);{let t=xu(e);return Jr(t,ra)}}function xu(e,t,n){let r;if(hr(e)){let i=Ce(e);return Ln(i)||lu(i)}else if(jg(e))r=()=>Ce(e.useValue);else if(ok(e))r=()=>e.useFactory(...au(e.deps||[]));else if(sk(e))r=(i,s)=>zt(Ce(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=Ce(e&&(e.useClass||e.provide));if(ck(e))r=()=>new i(...au(e.deps));else return Ln(i)||lu(i)}return r}function qi(e){if(e.destroyed)throw new H(-205,!1)}function Jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ck(e){return!!e.deps}function uk(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function dk(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function cu(e,t){for(let n of e)Array.isArray(n)?cu(n,t):n&&_u(n)?cu(n.\u0275providers,t):t(n)}function ya(e,t){let n;e instanceof fr?(qi(e),n=e):n=new ou(e);let r,i=Vt(n),s=Ke(void 0);try{return t()}finally{Vt(i),Ke(s)}}function zg(){return Lg()!==void 0||ko()!=null}function fn(e){return Array.isArray(e)&&typeof e[Ug]=="object"}function yt(e){return Array.isArray(e)&&e[Ug]===!0}function Nu(e){return(e.flags&4)!==0}function pn(e){return e.componentOffset>-1}function oi(e){return(e.flags&1)===1}function Lt(e){return!!e.template}function ai(e){return(e[R]&512)!==0}function Hn(e){return(e[R]&256)===256}function hk(){return Gi||(Gi=du(),Rn($e.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),Rn($e.STYLE,void 0,[["*",["style"]]]),Rn($e.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),Rn($e.URL,wa,[["*",["href","xlink:href"]]]),Rn($e.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),Rn($e.URL,pr,[["a",["href","xlink:href"]]]),Rn($e.ATTRIBUTE_NO_BINDING,pr,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),Rn($e.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),Gi)}function Rn(e,t,n){let r=t??uu;for(let[i,s]of n){let o=i.toLowerCase();for(let a of s){let l=a.toLowerCase(),c=Gi[l]??=du(),u=c[r]??=du();u[o]=e}}}function Wg(e,t,n){let i=hk()[t.toLowerCase()];if(!i)return $e.NONE;let s=e.toLowerCase(),o;if(n){let a=i[n];a&&(o=a[s]??a[Ig])}if(o===void 0){let a=i[uu];a&&(o=a[s]??a[Ig])}if(o===void 0&&(!n||n===uu)){let a=i[pr];a&&(o=a[s])}return o??$e.NONE}function Fe(e){for(;Array.isArray(e);)e=e[At];return e}function Au(e,t){return Fe(t[e])}function bt(e,t){return Fe(t[e.index])}function li(e,t){return e.data[t]}function Sa(e,t){return e[t]}function cs(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function wt(e,t){let n=t[e];return fn(n)?n:n[At]}function qg(e){return(e[R]&4)===4}function Ca(e){return(e[R]&128)===128}function Gg(e){return yt(e[ye])}function lt(e,t){return t==null?null:e[t]}function Ru(e){e[mr]=0}function Ea(e){e[R]&1024||(e[R]|=1024,Ca(e)&&br(e))}function Kg(e,t){for(;e>0;)t=t[$n],e--;return t}function us(e){return!!(e[R]&9216||e[at]?.dirty)}function Da(e){e[Rt].changeDetectionScheduler?.notify(8),e[R]&64&&(e[R]|=1024),us(e)&&br(e)}function br(e){e[Rt].changeDetectionScheduler?.notify(0);let t=cn(e);for(;t!==null&&!(t[R]&8192||(t[R]|=8192,!Ca(t)));)t=cn(t)}function ds(e,t){if(Hn(e))throw new H(911,!1);e[an]===null&&(e[an]=[]),e[an].push(t)}function Lu(e,t){if(e[an]===null)return;let n=e[an].indexOf(t);n!==-1&&e[an].splice(n,1)}function cn(e){let t=e[ye];return yt(t)?t[ye]:t}function Ou(e){return e[ii]??=[]}function Pu(e){return e.cleanup??=[]}function Yg(e,t,n,r){let i=Ou(t);i.push(n),e.firstCreatePass&&Pu(e).push(r,i.length-1)}function Zg(){return F.lFrame.elementDepthCount}function Qg(){F.lFrame.elementDepthCount++}function $u(){F.lFrame.elementDepthCount--}function ka(){return F.bindingsEnabled}function Xg(){return F.skipHydrationRootTNode!==null}function Fu(e){return F.skipHydrationRootTNode===e}function Bu(){F.skipHydrationRootTNode=null}function M(){return F.lFrame.lView}function J(){return F.lFrame.tView}function Ia(e){return F.lFrame.contextLView=e,e[pe]}function xa(e){return F.lFrame.contextLView=null,e}function ge(){let e=Hu();for(;e!==null&&e.type===64;)e=e.parent;return e}function Hu(){return F.lFrame.currentTNode}function Jg(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function wr(e,t){let n=F.lFrame;n.currentTNode=e,n.isParent=t}function ju(){return F.lFrame.isParent}function em(){F.lFrame.isParent=!1}function Vu(){return F.lFrame.contextLView}function zu(){return hu}function Yi(e){let t=hu;return hu=e,t}function Ta(){let e=F.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Uu(){return F.lFrame.bindingIndex}function tm(e){return F.lFrame.bindingIndex=e}function gn(){return F.lFrame.bindingIndex++}function hs(e){let t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function nm(){return F.lFrame.inI18n}function rm(e,t){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ma(t)}function im(){return F.lFrame.currentDirectiveIndex}function Ma(e){F.lFrame.currentDirectiveIndex=e}function sm(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Na(){return F.lFrame.currentQueryIndex}function fs(e){F.lFrame.currentQueryIndex=e}function fk(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[et]:null}function Wu(e,t,n){if(n&4){let i=t,s=e;for(;i=i.parent,i===null&&!(n&1);)if(i=fk(s),i===null||(s=s[$n],i.type&10))break;if(i===null)return!1;t=i,e=s}let r=F.lFrame=om();return r.currentTNode=t,r.lView=e,!0}function Aa(e){let t=om(),n=e[I];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function om(){let e=F.lFrame,t=e===null?null:e.child;return t===null?am(e):t}function am(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function lm(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}function Ra(){let e=lm();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function cm(e){return(F.lFrame.contextLView=Kg(e,F.lFrame.contextLView))[pe]}function ct(){return F.lFrame.selectedIndex}function jn(e){F.lFrame.selectedIndex=e}function Sr(){let e=F.lFrame;return li(e.tView,e.selectedIndex)}function ps(){F.lFrame.currentNamespace=pr}function um(){pk()}function pk(){F.lFrame.currentNamespace=null}function Gu(){return F.lFrame.currentNamespace}function La(){return dm}function gs(e){dm=e}function fu(e,t=null,n=null,r){let i=Ku(e,t,n,r);return i.resolveInjectorInitializers(),i}function Ku(e,t=null,n=null,r,i=new Set){let s=[n||vt,Bg(e)],o;return new fr(s,t||as(),o||null,i)}function gk(){return new oa(M())}function aa(...e){}function Yu(e){let t,n;function r(){e=aa;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function pm(e){return queueMicrotask(()=>e()),()=>{e=aa}}function Qu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _k(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Yu(()=>{e.callbackScheduled=!1,gu(e),e.isCheckStableRunning=!0,Qu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),gu(e)}function yk(e){let t=()=>{_k(e)},n=mk++;e._inner=e._inner.fork({name:"angular",properties:{[Zu]:!0,[Zi]:n,[Zi+n]:!0},onInvokeTask:(r,i,s,o,a,l)=>{if(bk(l))return r.invokeTask(s,o,a,l);try{return xg(e),r.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Tg(e)}},onInvoke:(r,i,s,o,a,l,c)=>{try{return xg(e),r.invoke(s,o,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!wk(l)&&t(),Tg(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,gu(e),Qu(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function gu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function xg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tg(e){e._nesting--,Qu(e)}function bk(e){return gm(e,"__ignore_ng_zone__")}function wk(e){return gm(e,"__scheduler_tick__")}function gm(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function Ck(){return os([Fg(()=>{A(Sk)})])}function ut(e,t){let[n,r,i]=fc(e,t?.equal),s=n,o=s[de];return s.set=r,s.update=i,s.asReadonly=vs.bind(s),s}function vs(){let e=this[de];if(e.readonlyFn===void 0){let t=()=>this();t[de]=e,e.readonlyFn=t}return e.readonlyFn}function Ik(){return new ci(M(),ge())}function ui(e,t){let n=t?.injector??A(Mt),r=t?.manualCleanup!==!0?n.get(Je):null,i,s=n.get(ci,null,{optional:!0}),o=n.get(Ut);return s!==null?(i=bm(s.view,o,e),r instanceof oa&&r._lView===s.view&&(r=null)):i=Mk(e,n.get(Oa),o),i.injector=n,r!==null&&(i.onDestroyFns=[r.onDestroy(()=>i.destroy())]),new la(i)}function bm(e,t,n){let r=Object.create(Tk);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=wm(r,n),e[ln]??=new Set,e[ln].add(r),r.consumerMarkedDirty(r),r}function Mk(e,t,n){let r=Object.create(xk);return r.fn=wm(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function wm(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Pa(e){return typeof e=="function"&&e[de]!==void 0}function $a(e){return Pa(e)&&typeof e.set=="function"}var ca,H,WD,ha,ia,G,ts,ns,yu,bu,Ki,gr,Dg,Ag,YD,ZD,su,On,XD,ur,JD,ou,Pn,vt,ni,ss,Du,ei,ik,Iu,ra,kg,ru,st,fr,At,I,R,ye,_t,et,ri,ii,pe,Ve,Rt,te,si,Tu,$n,ot,Fn,mr,Wt,qt,Mu,an,ba,ln,at,vr,Gt,ne,Ug,Bn,_r,ls,yr,le,$e,Gi,pr,wa,uu,Ig,du,F,hu,qu,dm,Mt,ms,Je,oa,hm,fm,Cr,pu,on,Zu,Zi,mk,Nt,vk,Qi,un,Vn,mm,Sk,vm,Ek,_m,Dk,kk,ci,Ut,_s,Xu,Oa,mu,la,ym,xk,Tk,Fa,ys=m(()=>{ir();vc();bc();wp();nu();ca="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",H=class extends Error{code;constructor(t,n){super(Xi(t,n)),this.code=t}};WD=Q({__forward_ref__:Q});ha=Q({\u0275prov:Q}),ia=Q({\u0275inj:Q}),G=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=Te({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};ts=Q({\u0275cmp:Q}),ns=Q({\u0275dir:Q}),yu=Q({\u0275pipe:Q}),bu=Q({\u0275mod:Q}),Ki=Q({\u0275fac:Q}),gr=Q({__NG_ELEMENT_ID__:Q}),Dg=Q({__NG_ENV_ID__:Q});Ag=Q({ngErrorCode:Q}),YD=Q({ngErrorMessage:Q}),ZD=Q({ngTokenPath:Q});On=globalThis,XD={},ur=XD,JD="__NG_DI_FLAG__",ou=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=dr(n)||0;try{return this.injector.get(t,r&8?null:ur,r)}catch(i){if(Ur(i))return i;throw i}}};Pn={},vt=[],ni=new G(""),ss=new G("",-1),Du=new G(""),ei=class{get(t,n=ur){if(n===ur){let i=Rg("",-201);throw i.name="\u0275NotFound",i}return n}};ik=Q({provide:String,useValue:Q});Iu=new G(""),ra={},kg={};st=class{},fr=class extends st{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,cu(t,o=>this.processProvider(o)),this.records.set(ss,Jr(void 0,this)),i.has("environment")&&this.records.set(st,Jr(void 0,this));let s=this.records.get(Iu);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Du,vt,{self:!0}))}retrieve(t,n){let r=dr(n)||0;try{return this.get(t,ur,r)}catch(i){if(Ur(i))return i;throw i}}destroy(){qi(this),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return qi(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){qi(this);let n=Vt(this),r=Ke(void 0),i;try{return t()}finally{Vt(n),Ke(r)}}get(t,n=ur,r){if(qi(this),Object.hasOwn(t,Dg))return t[Dg](this);let i=dr(r),s,o=Vt(this),a=Ke(void 0);try{if(!(i&4)){let c=this.records.get(t);if(c===void 0){let u=dk(t)&&es(t);u&&this.injectableDefInScope(u)?c=Jr(lu(t),ra):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,i)}let l=i&2?as():this.parent;return n=i&8&&n===ur?null:n,l.get(t,n)}catch(l){let c=QD(l);throw c===-200||c===-201?new H(c,null):l}finally{Ke(a),Vt(o)}}resolveInjectorInitializers(){let t=T(null),n=Vt(this),r=Ke(void 0),i;try{let s=this.get(ni,vt,{self:!0});for(let o of s)o()}finally{Vt(n),Ke(r),T(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Ce(t);let n=hr(t)?t:Ce(t&&t.provide),r=lk(t);if(!hr(t)&&t.multi===!0){let i=this.records.get(n);i||(i=Jr(void 0,ra,!0),i.factory=()=>au(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let i=T(null);try{if(n.value===kg)throw Su("");return n.value===ra&&(n.value=kg,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&uk(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ce(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};At=0,I=1,R=2,ye=3,_t=4,et=5,ri=6,ii=7,pe=8,Ve=9,Rt=10,te=11,si=12,Tu=13,$n=14,ot=15,Fn=16,mr=17,Wt=18,qt=19,Mu=20,an=21,ba=22,ln=23,at=24,vr=25,Gt=26,ne=27,Ug=1,Bn=6,_r=7,ls=8,yr=9,le=10;$e=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})($e||{}),pr="svg",wa="math",uu="",Ig="*",du=()=>Object.create(null);F={lFrame:am(null),bindingsEnabled:!0,skipHydrationRootTNode:null},hu=!1;qu=lm;dm=!0;Mt=class e{static THROW_IF_NOT_FOUND=ur;static NULL=new ei;static create(t,n){if(Array.isArray(t))return fu({name:""},n,t,"");{let r=t.name??"";return fu({name:r},t.parent,t.providers,r)}}static \u0275prov=Te({token:e,providedIn:"any",factory:()=>zt(ss)});static __NG_ELEMENT_ID__=-1},ms=new G(""),Je=class{static __NG_ELEMENT_ID__=gk;static __NG_ENV_ID__=t=>t},oa=class extends Je{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Hn(this._lView)}onDestroy(t){let n=this._lView;return ds(n,t),()=>Lu(n,t)}};hm=!1,fm=new G(""),Cr=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Vi(!1);debugTaskTracker=A(fm,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new W(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Te({token:e,providedIn:"root",factory:()=>new e})}return e})(),pu=class extends mt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,zg()&&(this.destroyRef=A(Je,{optional:!0})??void 0,this.pendingTasks=A(Cr,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,r){let i=t,s=n||(()=>null),o=r;if(t&&typeof t=="object"){let l=t;i=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=this.wrapInTimeout(s),i&&(i=this.wrapInTimeout(i)),o&&(o=this.wrapInTimeout(o)));let a=super.subscribe({next:i,error:s,complete:o});return t instanceof qe&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},on=pu;Zu="isAngularZone",Zi=Zu+"_ID",mk=0,Nt=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new on(!1);onMicrotaskEmpty=new on(!1);onStable=new on(!1);onError=new on(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=hm}=t;if(typeof Zone>"u")throw new H(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,yk(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Zu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new H(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new H(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,vk,aa,aa);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},vk={};Qi=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new on;onMicrotaskEmpty=new on;onStable=new on;onError=new on;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};un=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Vn=new G("",{factory:()=>{let e=A(Nt),t=A(st),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(un),n.handleError(r))})}}}),mm={provide:ni,useValue:()=>{let e=A(un,{optional:!0})},multi:!0},Sk=new G("",{factory:()=>{let e=A(ms).defaultView;if(!e)return;let t=A(Vn),n=s=>{t(s.reason),s.preventDefault()},r=s=>{s.error?t(s.error):t(new Error(s.message,{cause:s})),s.preventDefault()},i=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(i):i(),A(Je).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});vm=new G("",{factory:()=>Ek}),Ek="ng",_m=new G(""),Dk=new G("",{providedIn:"platform",factory:()=>"unknown"}),kk=new G("",{factory:()=>A(ms).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),ci=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Ik}return e})();Ut=class{},_s=new G("",{factory:()=>!0}),Xu=new G(""),Oa=(()=>{class e{static \u0275prov=Te({token:e,providedIn:"root",factory:()=>new mu})}return e})(),mu=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},la=class{[de];constructor(t){this[de]=t}destroy(){this[de].destroy()}};ym=xe(ae({},pc),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Yi(!1);try{gc(this)}finally{Yi(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=T(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],T(e)}}}),xk=xe(ae({},ym),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Mn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Tk=xe(ae({},ym),{consumerMarkedDirty(){this.view[R]|=8192,br(this.view),this.notifier.notify(13)},destroy(){if(Mn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[ln]?.delete(this)}});Fa=(()=>{class e{internalPendingTasks=A(Cr);scheduler=A(Ut);errorHandler=A(Vn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(i){this.errorHandler(i),r()}}static \u0275prov=Te({token:e,providedIn:"root",factory:()=>new e})}return e})()});var Sm=m(()=>{hg();fg();Jc();_g();yg();Qo();Zc();ta();wg();Sg();tu();bg();Cg();Eg()});function ul(e){return{toString:e}.toString()}function uv(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function zk(){return dv}function Cm(e){return e.type.prototype.ngOnChanges&&(e.setInput=Wk),Uk}function Uk(){let e=hv(this),t=e?.current;if(t){let n=e.previous;if(n===Pn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Wk(e,t,n,r,i){let s=this.declaredInputs[r],o=hv(e)||qk(e,{previous:Pn,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new Ga(c&&c.currentValue,n,l===Pn),uv(e,t,i,n)}function hv(e){return Object.hasOwn(e,hd)&&e[hd]||null}function qk(e,t){return e[hd]=t}function Gk(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=zk()(t);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}function fv(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let s=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(e.contentHooks??=[]).push(-n,o),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function ja(e,t,n){pv(e,t,3,n)}function Va(e,t,n,r){(e[R]&3)===n&&pv(e,t,n,r)}function Ju(e,t){let n=e[R];(n&3)===t&&(n&=16383,n+=1,e[R]=n)}function pv(e,t,n,r){let i=r!==void 0?e[mr]&65535:0,s=r??-1,o=t.length-1,a=0;for(let l=i;l<o;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[mr]+=65536),(a<s||s==-1)&&(Kk(e,n,t,l),e[mr]=(e[mr]&4294901760)+l+2),l++}function Dm(e,t){K(q.LifecycleHookStart,e,t);let n=T(null);try{t.call(e)}finally{T(n),K(q.LifecycleHookEnd,e,t)}}function Kk(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],a=e[o];i?e[R]>>14<e[mr]>>16&&(e[R]&3)===t&&(e[R]+=16384,Dm(a,s)):Dm(a,s)}function Yk(e){return(e.flags&8)!==0}function Zk(e){return(e.flags&16)!==0}function Qk(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let s=n[r++],o=n[r++],a=n[r++];e.setAttribute(t,o,a,s)}else{let s=i,o=n[++r];Xk(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function gv(e){return e===3||e===4||e===6}function Xk(e){return e.charCodeAt(0)===64}function fi(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?km(e,n,i,null,t[++r]):km(e,n,i,null,null))}}return e}function km(e,t,n,r,i){let s=0,o=e.length;if(t===-1)o=-1;else for(;s<e.length;){let a=e[s++];if(typeof a=="number"){if(a===t){o=-1;break}else if(a>t){o=s-1;break}}}for(;s<e.length;){let a=e[s];if(typeof a=="number")break;if(a===n){i!==null&&(e[s+1]=i);return}s++,i!==null&&s++}o!==-1&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),i!==null&&e.splice(s++,0,i)}function mv(e){return e!==hi}function Ka(e){return e&32767}function Jk(e){return e>>16}function Ya(e,t){let n=Jk(e),r=t;for(;n>0;)r=r[$n],n--;return r}function Za(e){let t=fd;return fd=e,t}function nI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,gr)&&(r=n[gr]),r==null&&(r=n[gr]=tI++);let i=r&vv,s=1<<i;t.data[e+(i>>_v)]|=s}function Qa(e,t){let n=yv(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,ed(r.data,e),ed(t,null),ed(r.blueprint,null));let i=Wd(e,t),s=e.injectorIndex;if(mv(i)){let o=Ka(i),a=Ya(i,t),l=a[I].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=i,s}function ed(e,t){e.push(0,0,0,0,0,0,0,0,t)}function yv(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Wd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ev(i),r===null)return hi;if(n++,i=i[$n],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return hi}function pd(e,t,n){nI(e,t,n)}function rI(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,i=0;for(;i<r;){let s=n[i];if(gv(s))break;if(s===0)i=i+2;else if(typeof s=="number")for(i++;i<r&&typeof n[i]=="string";)i++;else{if(s===t)return n[i+1];i=i+2}}}return null}function bv(e,t,n){if(n&8||e!==void 0)return e;pa(t,"NodeInjector")}function wv(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[Ve],s=Ke(void 0);try{return i?i.get(t,r,n&8):Cu(t,r,n&8)}finally{Ke(s)}}return bv(r,t,n)}function Sv(e,t,n,r=0,i){if(e!==null){if(t[R]&2048&&!(r&2)){let o=lI(e,t,n,r,Kt);if(o!==Kt)return o}let s=Cv(e,t,n,r,Kt);if(s!==Kt)return s}return wv(t,n,r,i)}function Cv(e,t,n,r,i){let s=sI(n);if(typeof s=="function"){if(!Wu(t,e,r))return r&1?bv(i,n,r):wv(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))pa(n);else return o}finally{qu()}}else if(typeof s=="number"){let o=null,a=yv(e,t),l=hi,c=r&1?t[ot][et]:null;for((a===-1||r&4)&&(l=a===-1?Wd(e,t):t[a+8],l===hi||!xm(r,!1)?a=-1:(o=t[I],a=Ka(l),t=Ya(l,t)));a!==-1;){let u=t[I];if(Im(s,a,u.data)){let d=iI(a,t,n,o,r,c);if(d!==Kt)return d}l=t[a+8],l!==hi&&xm(r,t[I].data[a+8]===c)&&Im(s,a,t)?(o=u,a=Ka(l),t=Ya(l,t)):a=-1}}return i}function iI(e,t,n,r,i,s){let o=t[I],a=o.data[e+8],l=r==null?pn(a)&&fd:r!=o&&(a.type&3)!==0,c=i&1&&s===a,u=za(a,o,n,l,c);return u!==null?Es(t,o,u,a,i):Kt}function za(e,t,n,r,i){let s=e.providerIndexes,o=t.data,a=s&1048575,l=e.directiveStart,c=e.directiveEnd,u=s>>20,d=r?a:a+u,h=i?a+u:c;for(let f=d;f<h;f++){let p=o[f];if(f<l&&n===p||f>=l&&p.type===n)return f}if(i){let f=o[l];if(f&&Lt(f)&&f.type===n)return l}return null}function Es(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof kr){let a=s;if(a.resolving)throw Su("");let l=Za(a.canSeeViewProviders);a.resolving=!0;let c=o[n].type||o[n],u,d=a.injectImpl?Ke(a.injectImpl):null,h=Wu(e,r,0);try{s=e[n]=a.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Gk(n,o[n],t)}finally{d!==null&&Ke(d),Za(l),a.resolving=!1,qu()}}return s}function sI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,gr)?e[gr]:void 0;return typeof t=="number"?t>=0?t&vv:oI:t}function Im(e,t,n){let r=1<<e;return!!(n[t+(e>>_v)]&r)}function xm(e,t){return!(e&2)&&!(e&1&&t)}function oI(){return new Un(ge(),M())}function aI(e){return ul(()=>{let t=e.prototype.constructor,n=t[Ki]||gd(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[Ki]||gd(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function gd(e){return vu(e)?()=>{let t=gd(Ce(e));return t&&t()}:Ln(e)}function lI(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[R]&2048&&!ai(o);){let a=Cv(s,o,n,r|2,Kt);if(a!==Kt)return a;r&=-5;let l=s.parent;if(!l){let c=o[Mu];if(c){let u=c.get(n,Kt,r);if(u!==Kt)return u}l=Ev(o),o=o[$n]}s=l}return i}function Ev(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[et]:null}function Dv(e){return rI(ge(),e)}function Rs(e){return{token:e.token,providedIn:e.autoProvided===!1?null:"root",factory:e.factory,value:void 0}}function dI(){return Si(ge(),M())}function Si(e,t){return new Ls(bt(e,t))}function Iv(e){return e instanceof Ls?e.nativeElement:e}function hI(){return this._results[Symbol.iterator]()}function xv(e){return(e.flags&128)===128}function pI(){return fI++}function gI(e){Tv.set(e[qt],e)}function vd(e){Tv.delete(e[qt])}function pi(e,t){fn(t)?(e[Tm]=t[qt],gI(t)):e[Tm]=t}function Mv(e){return Av(e[si])}function Nv(e){return Av(e[_t])}function Av(e){for(;e!==null&&!yt(e);)e=e[_t];return e}function mI(e){_d=e}function Rv(){if(_d!==void 0)return _d;if(typeof document<"u")return document;throw new H(210,!1)}function vI(e,t){if(e==null||typeof e!="object")return;let n=Mm.get(e);n||(n=new WeakSet,Mm.set(e,n)),n.add(t)}function yI(e,t,n,r){_I(e,t,n,r)}function Yd(e){return(e.flags&32)===32}function Bv(e,t,n=!1){return bI(e,t,n)}function Zd(e){return e.get($v,!1,{optional:!0})}function Hv(e,t){let n=e.contentQueries;if(n!==null){let r=T(null);try{for(let i=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o!==-1){let a=e.data[o];fs(s),a.contentQueries(2,t[o],o)}}}finally{T(r)}}}function yd(e,t,n){fs(0);let r=T(null);try{t(e,n)}finally{T(r)}}function Qd(e,t,n){if(Nu(t)){let r=T(null);try{let i=t.directiveStart,s=t.directiveEnd;for(let o=i;o<s;o++){let a=e.data[o];if(a.contentQueries){let l=n[o];a.contentQueries(1,l,o)}}}finally{T(r)}}}function SI(){if(Ba===void 0&&(Ba=null,On.trustedTypes))try{Ba=On.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ba}function Nm(e){return SI()?.createScriptURL(e)||e}function gi(e){return e instanceof Ja?e.changingThisBreaksApplicationSecurity:e}function Xd(e,t){let n=jv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ca})`)}return n===t}function jv(e){return e instanceof Ja&&e.getTypeName()||null}function Vv(e){return e=String(e),e.match(CI)?e:"unsafe:"+e}function II(e){return e.replace(EI,t=>t.replace(DI,kI))}function xI(e,t){return e.createText(t)}function TI(e,t,n){e.setValue(t,n)}function MI(e,t){return e.createComment(II(t))}function zv(e,t,n){return e.createElement(t,n)}function Er(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Uv(e,t,n){e.appendChild(t,n)}function Am(e,t,n,r,i){r!==null?Er(e,t,n,r,i):Uv(e,t,n)}function Wv(e,t,n,r){e.removeChild(null,t,n,r)}function NI(e,t,n){e.setAttribute(t,"style",n)}function AI(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function qv(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&Qk(e,t,r),i!==null&&AI(e,t,i),s!==null&&NI(e,t,s)}function RI(e,t=!0){if(e[0]!=":")return[null,e];let n=e.indexOf(":",1);if(n===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function Gv(e){let t=Yv();return t?t.sanitize($e.URL,e)||"":Xd(e,"URL")?gi(e):Vv(hn(e))}function Kv(e){let t=Yv();if(t)return Nm(t.sanitize($e.RESOURCE_URL,e)||"");if(Xd(e,"ResourceURL"))return Nm(gi(e));throw new H(904,!1)}function LI(e,t){switch(PI(e,t)){case $e.RESOURCE_URL:return Kv;case $e.URL:return Gv;default:return null}}function OI(e,t,n){return LI(t,n)?.(e)??e}function Yv(){let e=M();return e&&e[Rt].sanitizer}function PI(e,t){let[n,r]=$I(e);return Wg(r,t,n)}function $I(e){e=e.toLowerCase();let t=RI(e,!1);if(t[0])return t;let r=ct()===-1?null:Sr(),i=r?.namespace;if(e==="#host"&&r?.type===2){let s=bt(r,M());if(s.tagName&&(e=s.tagName.toLowerCase()),i==null){let o=s.namespaceURI;i=o&&wI[o]}}return[i,e]}function FI(e){return e.ownerDocument.defaultView}function BI(e){return e.ownerDocument}function HI(e){return e instanceof Function?e():e}function jI(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}function VI(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&jI(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Jd(e))return!1;if(i=t.indexOf(1,i),i>-1){let s;for(;++i<t.length&&typeof(s=t[i])=="string";)if(s.toLowerCase()===n)return!0}return!1}function Jd(e){return e.type===4&&e.value!==Zv}function zI(e,t,n){let r=e.type===4&&!n?Zv:e.value;return t===r}function UI(e,t,n){let r=4,i=e.attrs,s=i!==null?GI(i):0,o=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!o&&!Ot(r)&&!Ot(l))return!1;if(o&&Ot(l))continue;o=!1,r=l|r&1;continue}if(!o)if(r&4){if(r=2|r&1,l!==""&&!zI(e,l,n)||l===""&&t.length===1){if(Ot(r))return!1;o=!0}}else if(r&8){if(i===null||!VI(e,i,l,n)){if(Ot(r))return!1;o=!0}}else{let c=t[++a],u=WI(l,i,Jd(e),n);if(u===-1){if(Ot(r))return!1;o=!0;continue}if(c!==""){let d;if(u>s?d="":d=i[u+1].toLowerCase(),r&2&&c!==d){if(Ot(r))return!1;o=!0}}}}return Ot(r)||o}function Ot(e){return(e&1)===0}function WI(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){let o=t[i];if(o===e)return i;if(o===3||o===6)s=!0;else if(o===1||o===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(o===4)break;if(o===0){i+=4;continue}}i+=s?1:2}return-1}else return KI(t,e)}function qI(e,t,n=!1){for(let r=0;r<t.length;r++)if(UI(e,t[r],n))return!0;return!1}function GI(e){for(let t=0;t<e.length;t++){let n=e[t];if(gv(n))return t}return e.length}function KI(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Rm(e,t){return e?":not("+t.trim()+")":t}function YI(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let o=e[n];if(typeof o=="string")if(r&2){let a=e[++n];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+o:r&4&&(i+=" "+o);else i!==""&&!Ot(o)&&(t+=Rm(s,i),i=""),r=o,s=s||!Ot(r);n++}return i!==""&&(t+=Rm(s,i)),t}function ZI(e){return e.map(YI).join(",")}function QI(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let s=e[r];if(typeof s=="string")i===2?s!==""&&t.push(s,e[++r]):i===8&&n.push(s);else{if(!Ot(i))break;i=s}r++}return n.length&&t.push(1,...n),t}function eh(e,t){return XI(e,t)}function Qv(e){return e?e[$n]??e:null}function JI(e,t,n){let r=bd.get(e);if(!r||r.length===0)return;let i=t.parentNode,s=t.previousSibling,o=Qv(n);for(let a=r.length-1;a>=0;a--){let{el:l,declarationView:c}=r[a],u=l.parentNode;l===t?(r.splice(a,1),ws.add(l),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):s&&l===s?(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l)):u&&i&&u!==i&&(o===null||c===null||o===c)&&(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l))}}function e0(e,t,n){let r=Qv(n),i=bd.get(e);i?i.some(s=>s.el===t)||i.push({el:t,declarationView:r}):bd.set(e,[{el:t,declarationView:r}])}function mn(e){Lm.has(e)||(Lm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function t0(e,t){let n=t?.injector??A(Mt);return mn("NgAfterNextRender"),r0(e,n,t,!0)}function n0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function r0(e,t,n,r){let i=t.get(hl);i.impl??=t.get(nh);let s=t.get(Tr,null,{optional:!0}),o=n?.manualCleanup!==!0?t.get(Je):null,a=t.get(ci,null,{optional:!0}),l=new Ds(i.impl,n0(e),a?.view,r,o,s?.snapshot(null));return i.impl.register(l),l}function Xv(e,t,n){let r=e.get(rh);if(Array.isArray(t))for(let i of t)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function i0(e,t){let n=e.get(rh);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function s0(e,t){let n=e.get(rh);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function o0(e,t){for(let[n,r]of t)Xv(e,r.animateFns)}function Om(e,t,n,r){let i=e?.[Gt]?.enter;t!==null&&i&&i.has(n.index)&&o0(r,i)}function Pm(e,t,n,r){try{n.get(ss)}catch{return r(!1)}let i=e?.[Gt];i?.enter?.has(t.index)&&i0(n,i.enter.get(t.index).animateFns);let s=a0(e,t,i);if(s.size===0){let o=!1;if(e){let a=[];fl(e,t,a),o=a.length>0}if(!o)return r(!1)}e&&mi.add(e[qt]),Xv(n,()=>l0(e,t,i||void 0,s,r),i||void 0)}function a0(e,t,n){let r=new Map,i=n?.leave;if(i&&i.has(t.index)&&r.set(t.index,i.get(t.index)),e&&i)for(let[s,o]of i){if(r.has(s))continue;let l=e[I].data[s].parent;for(;l;){if(l===t){r.set(s,o);break}l=l.parent}}return r}function l0(e,t,n,r,i){let s=[];if(n&&n.leave)for(let[o]of r){if(!n.leave.has(o))continue;let a=n.leave.get(o);for(let l of a.animateFns){let{promise:c}=l();s.push(c)}n.detachedLeaveAnimationFns=void 0}if(e&&fl(e,t,s),s.length>0){let o=n||e?.[Gt];if(o){let a=o.running;a&&s.push(a),o.running=Promise.allSettled(s),u0(e,o.running,i)}else Promise.allSettled(s).then(()=>{e&&mi.delete(e[qt]),i(!0)})}else e&&mi.delete(e[qt]),i(!1)}function fl(e,t,n){if(t.type&12){let i=e[t.index];if(yt(i))for(let s=le;s<i.length;s++){let o=i[s];o[I].type===2&&c0(o,n)}}let r=t.child;for(;r;)fl(e,r,n),r=r.next}function c0(e,t){let n=e[Gt];if(n&&n.leave)for(let i of n.leave.values())for(let s of i.animateFns){let{promise:o}=s();t.push(o)}let r=e[I].firstChild;for(;r;)fl(e,r,t),r=r.next}function u0(e,t,n){t.then(()=>{e[Gt]?.running===t&&(e[Gt].running=void 0,mi.delete(e[qt])),n(!0)})}function di(e,t,n,r,i,s,o,a){if(i!=null){let l,c=!1;yt(i)?l=i:fn(i)&&(c=!0,i=i[At]);let u=Fe(i);e===0&&r!==null?(Om(a,r,s,n),o==null?Uv(t,r,u):Er(t,r,u,o||null,!0)):e===1&&r!==null?(Om(a,r,s,n),Er(t,r,u,o||null,!0),JI(s,u,a)):e===2?(a?.[Gt]?.leave?.has(s.index)&&e0(s,u,a),ws.delete(u),Pm(a,s,n,d=>{if(ws.has(u)){ws.delete(u);return}Wv(t,u,c,d)})):e===3&&(ws.delete(u),Pm(a,s,n,()=>{t.destroyNode(u)})),l!=null&&C0(t,e,n,l,s,r,o)}}function d0(e,t){Jv(e,t),t[At]=null,t[et]=null}function h0(e,t,n,r,i,s){r[At]=i,r[et]=t,gl(e,r,n,1,i,s)}function Jv(e,t){t[Rt].changeDetectionScheduler?.notify(9),gl(e,t,t[te],2,null,null)}function f0(e){let t=e[si];if(!t)return td(e[I],e);for(;t;){let n=null;if(fn(t))n=t[si];else{let r=t[le];r&&(n=r)}if(!n){for(;t&&!t[_t]&&t!==e;)fn(t)&&td(t[I],t),t=t[ye];t===null&&(t=e),fn(t)&&td(t[I],t),n=t&&t[_t]}t=n}}function ih(e,t){let n=e[yr],r=n.indexOf(t);n.splice(r,1)}function pl(e,t){if(Hn(t))return;let n=t[te];n.destroyNode&&gl(e,t,n,3,null,null),f0(t)}function td(e,t){if(Hn(t))return;let n=T(null);try{t[R]&=-129,t[R]|=256,t[at]&&Mn(t[at]),g0(e,t),p0(e,t),t[I].type===1&&t[te].destroy();let r=t[Fn];if(r!==null&&yt(t[ye])){r!==t[ye]&&ih(r,t);let i=t[Wt];i!==null&&i.detachView(e)}vd(t)}finally{T(n)}}function p0(e,t){let n=e.cleanup,r=t[ii];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let a=n[o+3];a>=0?r[a]():r[-a].unsubscribe(),o+=2}else{let a=r[n[o+1]];n[o].call(a)}r!==null&&(t[ii]=null);let i=t[an];if(i!==null){t[an]=null;for(let o=0;o<i.length;o++){let a=i[o];a()}}let s=t[ln];if(s!==null){t[ln]=null;for(let o of s)o.destroy()}}function g0(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof kr)){let s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let a=i[s[o]],l=s[o+1];K(q.LifecycleHookStart,a,l);try{l.call(a)}finally{K(q.LifecycleHookEnd,a,l)}}else{K(q.LifecycleHookStart,i,s);try{s.call(i)}finally{K(q.LifecycleHookEnd,i,s)}}}}}function m0(e,t,n){if(t===null)throw new H(510,!1);return v0(e,t.parent,n)}function v0(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[At];if(pn(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Ir.None||i===Ir.Emulated)return null}return bt(r,n)}function _0(e,t,n){return b0(e,t,n)}function y0(e,t,n){return e.type&40?bt(e,n):null}function sh(e,t,n,r){let i=m0(e,r,t),s=t[te],o=r.parent||t[et],a=_0(o,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Am(s,i,n[l],a,!1);else Am(s,i,n,a,!1);$m!==void 0&&$m(s,r,t,n,i)}function Ss(e,t){if(t!==null){let n=t.type;if(n&3)return bt(t,e);if(n&4)return wd(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Ss(e,r);{let i=e[t.index];return yt(i)?wd(-1,i):Fe(i)}}else{if(n&128)return Ss(e,t.next);if(n&32)return eh(t,e)()||Fe(e[t.index]);{let r=e_(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=cn(e[ot]);return Ss(i,r)}else return Ss(e,t.next)}}}return null}function e_(e,t){if(t!==null){let r=e[ot][et],i=t.projection;return r.projection[i]}return null}function wd(e,t){let n=le+e+1;if(n<t.length){let r=t[n],i=r[I].firstChild;if(i!==null)return Ss(r,i)}return t[_r]}function oh(e,t,n,r,i,s,o){for(;n!=null;){let a=r[Ve];if(n.type===128){n=n.next;continue}let l=r[n.index],c=n.type;if(o&&t===0&&(l&&pi(Fe(l),r),n.flags|=2),!Yd(n))if(c&8)oh(e,t,n.child,r,i,s,!1),di(t,e,a,i,l,n,s,r);else if(c&32){let u=eh(n,r),d;for(;d=u();)di(t,e,a,i,d,n,s,r);di(t,e,a,i,l,n,s,r)}else c&16?S0(e,t,r,n,i,s):di(t,e,a,i,l,n,s,r);n=o?n.projectionNext:n.next}}function gl(e,t,n,r,i,s){e.type===3?w0(n,r,t,i,s):oh(n,r,e.firstChild,t,i,s,!1)}function w0(e,t,n,r,i){let o=n[I].firstChild,a=o.next,l=Fe(n[o.index]),c=Fe(n[a.index]),u=a.index+1,d=n[u];if(t===1||t===0)r!==null&&(d&&d.hasChildNodes()?Er(e,r,d,i,!0):(Er(e,r,l,i,!0),Er(e,r,c,i,!0)));else if(t===2){if(d||(d=document.createDocumentFragment(),n[u]=d),l&&l.parentNode===d)return;let h=l;for(;h!==null;){let f=h.nextSibling;if(d.appendChild(h),h===c)break;h=f}}}function S0(e,t,n,r,i,s){let o=n[ot],l=o[et].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];di(t,e,n[Ve],i,u,r,s,n)}else{let c=l,u=o[ye];xv(r)&&(c.flags|=128),oh(e,t,c,u,i,s,!0)}}function C0(e,t,n,r,i,s,o){let a=r[_r],l=Fe(r);if(a!==l&&di(t,e,n,s,a,i,o),(r[R]&4)===0)for(let c=le;c<r.length;c++){let u=r[c];gl(u[I],u,e,t,s,a)}}function E0(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:el.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=el.Important),e.setStyle(n,r,i,s))}}function ah(e,t,n,r,i,s,o,a,l,c,u){let d=ne+r,h=d+i,f=D0(d,h),p=typeof c=="function"?c():c;return f[I]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:u}}function D0(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Be);return n}function k0(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ah(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function lh(e,t,n,r,i,s,o,a,l,c,u){let d=t.blueprint.slice();return d[At]=i,d[R]=r|4|128|8|64|1024,(c!==null||e&&e[R]&2048)&&(d[R]|=2048),Ru(d),d[ye]=d[$n]=e,d[pe]=n,d[Rt]=o||e&&e[Rt],d[te]=a||e&&e[te],d[Ve]=l||e&&e[Ve]||null,d[et]=s,d[qt]=pI(),d[ri]=u,d[Mu]=c,d[ot]=t.type==2?e[ot]:d,d}function I0(e,t,n){let r=bt(t,e),i=k0(n),s=e[Rt].rendererFactory,o=ch(e,lh(e,i,null,t_(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function t_(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function n_(e,t,n,r){if(n===0)return-1;let i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function ch(e,t){return e[si]?e[Tu][_t]=t:e[si]=t,e[Tu]=t,t}function dt(e=1){r_(J(),M(),ct()+e,!1)}function r_(e,t,n,r){if(!r)if((t[R]&3)===3){let s=e.preOrderCheckHooks;s!==null&&ja(t,s,n)}else{let s=e.preOrderHooks;s!==null&&Va(t,s,0,n)}jn(n)}function Sd(e,t,n,r){let i=T(null);try{let[s,o,a]=e.inputs[n],l=null;(o&ml.SignalBased)!==0&&(l=t[s][de]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,s):uv(t,l,s,r)}finally{T(i)}}function i_(e,t,n,r,i){let s=ct(),o=r&2;try{jn(-1),o&&t.length>ne&&r_(e,t,ne,!1);let a=o?q.TemplateUpdateStart:q.TemplateCreateStart;K(a,i,n),n(r,i)}finally{jn(s);let a=o?q.TemplateUpdateEnd:q.TemplateCreateEnd;K(a,i,n)}}function vl(e,t,n){R0(e,t,n),(n.flags&64)===64&&L0(e,t,n)}function Os(e,t,n=bt){let r=t.localNames;if(r!==null){let i=t.index+1;for(let s=0;s<r.length;s+=2){let o=r[s+1],a=o===-1?n(t,e):e[o];e[i++]=a}}}function x0(e,t,n,r){let s=r.get(Pv,Ov)||n===Ir.ShadowDom||n===Ir.ExperimentalIsolatedShadowDom,o=e.selectRootElement(t,s);return T0(o),o}function T0(e){M0(e)}function N0(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function s_(e,t,n,r,i,s){let o=t[I];if(ph(e,o,t,n,r)){pn(e)&&A0(t,e.index);return}e.type&3&&(n=N0(n)),o_(e,t,n,r,i,s)}function o_(e,t,n,r,i,s){if(e.type&3){let o=bt(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function A0(e,t){let n=wt(t,e);n[R]&16||(n[R]|=64)}function R0(e,t,n){let r=n.directiveStart,i=n.directiveEnd;pn(n)&&I0(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Qa(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let a=e.data[o],l=Es(t,e,o,n);if(pi(l,t),s!==null&&F0(t,o-r,l,a,n,s),Lt(a)){let c=wt(n.index,t);c[pe]=Es(t,e,o,n)}}}function L0(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=im();try{jn(s);for(let a=r;a<i;a++){let l=e.data[a],c=t[a];Ma(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&O0(l,c)}}finally{jn(-1),Ma(o)}}function O0(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function uh(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];qI(t,s.selectors,!1)&&(r??=[],Lt(s)?r.unshift(s):r.push(s))}return r}function P0(e,t,n,r,i,s){let o=bt(e,t);$0(t[te],o,s,e.value,n,r,i)}function $0(e,t,n,r,i,s,o){if(s==null)o?.(s,r||"",i),e.removeAttribute(t,i,n);else{let a=o==null?hn(s):o(s,r||"",i);e.setAttribute(t,i,a,n)}}function F0(e,t,n,r,i,s){let o=s[t];if(o!==null)for(let a=0;a<o.length;a+=2){let l=o[a],c=o[a+1];Sd(r,n,l,c)}}function dh(e,t,n,r,i){let s=ne+n,o=t[I],a=i(o,t,e,r,n);t[s]=a,wr(e,!0);let l=e.type===2;return l?(qv(t[te],a,e),(Zg()===0||oi(e))&&pi(a,t),Qg()):pi(a,t),La()&&(!l||!Yd(e))&&sh(o,t,a,e),e}function hh(e){let t=e;return ju()?em():(t=t.parent,wr(t,!1)),t}function fh(e,t){let n=e[Ve];if(!n)return;let r;try{r=n.get(Vn,null)}catch{r=null}r?.(t)}function ph(e,t,n,r,i){let s=e.inputs?.[r],o=e.hostDirectiveInputs?.[r],a=!1;if(o)for(let l=0;l<o.length;l+=2){let c=o[l],u=o[l+1],d=t.data[c];Sd(d,n[c],u,i),a=!0}if(s)for(let l of s){let c=n[l],u=t.data[l];Sd(u,c,r,i),a=!0}return a}function B0(e,t){let n=wt(t,e),r=n[I];H0(r,n);let i=n[At];i!==null&&n[ri]===null&&(n[ri]=Bv(i,n[Ve])),K(q.ComponentStart);try{gh(r,n,n[pe])}finally{K(q.ComponentEnd,n[pe])}}function H0(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function gh(e,t,n){Aa(t);try{let r=e.viewQuery;r!==null&&yd(1,r,n);let i=e.template;i!==null&&i_(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Wt]?.finishViewCreation(e),e.staticContentQueries&&Hv(e,t),e.staticViewQueries&&yd(2,e.viewQuery,n);let s=e.components;s!==null&&j0(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[R]&=-5,Ra()}}function j0(e,t){for(let n=0;n<t.length;n++)B0(e,t[n])}function Ps(e,t,n,r){let i=T(null);try{let s=t.tView,a=e[R]&4096?4096:16,l=lh(e,s,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[Fn]=c;let u=e[Wt];return u!==null&&(l[Wt]=u.createEmbeddedView(s)),gh(s,l,n),l}finally{T(i)}}function vi(e,t){return!t||t.firstChild===null||xv(e)}function ks(e,t,n,r,i=!1){if(e.type===3){let s=e.firstChild,o=s.next,a=Fe(t[s.index]),l=Fe(t[o.index]),c=a;for(;c!==null&&(r.push(c),c!==l);)c=c.nextSibling;return r}for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let s=t[n.index];if(s!==null)if(yt(s)){let a=s[_r];a!==s[At]&&r.push(Fe(s)),s[R]&4||a_(s,r),r.push(a)}else r.push(Fe(s));let o=n.type;if(o&8)ks(e,t,n.child,r);else if(o&32){let a=eh(n,t),l;for(;l=a();)r.push(l)}else if(o&16){let a=e_(t,n);if(Array.isArray(a))r.push(...a);else{let l=cn(t[ot]);ks(l[I],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function a_(e,t){for(let n=le;n<e.length;n++){let r=e[n],i=r[I].firstChild;i!==null&&ks(r[I],r,i,t)}}function l_(e){if(e[vr]!==null){for(let t of e[vr])t.impl.addSequence(t);e[vr].length=0}}function V0(e){return e[at]??z0(e)}function z0(e){let t=c_.pop()??Object.create(W0);return t.lView=e,t}function U0(e){e.lView[at]!==e&&(e.lView=null,c_.push(e))}function q0(e){let t=e[at]??Object.create(G0);return t.lView=e,t}function u_(e){return e.type!==2}function d_(e){if(e[ln]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ln])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[ln]===null))return;t=n&&!!(e[R]&8192)}}function h_(e,t=0){let r=e[Rt].rendererFactory,i=!1;i||r.begin?.();try{Y0(e,t)}finally{i||r.end?.()}}function Y0(e,t){let n=zu();try{Yi(!0),Cd(e,t);let r=0;for(;us(e);){if(r===K0)throw new H(103,!1);r++,Cd(e,1)}}finally{Yi(n)}}function Z0(e,t,n,r){if(Hn(t))return;let i=t[R],s=!1,o=!1;Aa(t);let a=!0,l=null,c=null;s||(u_(e)?(c=V0(t),l=rn(c)):Eo()===null?(a=!1,c=q0(t),l=rn(c)):t[at]&&(Mn(t[at]),t[at]=null));try{Ru(t),tm(e.bindingStartIndex),n!==null&&i_(e,t,n,2,r);let u=(i&3)===3;if(!s)if(u){let f=e.preOrderCheckHooks;f!==null&&ja(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Va(t,f,0,null),Ju(t,0)}if(o||Q0(t),d_(t),f_(t,0),e.contentQueries!==null&&Hv(e,t),!s)if(u){let f=e.contentCheckHooks;f!==null&&ja(t,f)}else{let f=e.contentHooks;f!==null&&Va(t,f,1),Ju(t,1)}J0(e,t);let d=e.components;d!==null&&g_(t,d,0);let h=e.viewQuery;if(h!==null&&yd(2,h,r),!s)if(u){let f=e.viewCheckHooks;f!==null&&ja(t,f)}else{let f=e.viewHooks;f!==null&&Va(t,f,2),Ju(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ba]){for(let f of t[ba])f();t[ba]=null}s||(l_(t),t[R]&=-73)}catch(u){throw s||br(t),u}finally{c!==null&&(Tn(c,l),a&&U0(c)),Ra()}}function f_(e,t){for(let n=Mv(e);n!==null;n=Nv(n))for(let r=le;r<n.length;r++){let i=n[r];p_(i,t)}}function Q0(e){for(let t=Mv(e);t!==null;t=Nv(t)){if(!(t[R]&2))continue;let n=t[yr];for(let r=0;r<n.length;r++){let i=n[r];Ea(i)}}}function X0(e,t,n){K(q.ComponentStart);let r=wt(t,e);try{p_(r,n)}finally{K(q.ComponentEnd,r[pe])}}function p_(e,t){Ca(e)&&Cd(e,t)}function Cd(e,t){let r=e[I],i=e[R],s=e[at],o=!!(t===0&&i&16);if(o||=!!(i&64&&t===0),o||=!!(i&1024),o||=!!(s?.dirty&&jr(s)),o||=!1,s&&(s.dirty=!1),e[R]&=-9217,o)Z0(r,e,r.template,e[pe]);else if(i&8192){let a=T(null);try{d_(e),f_(e,1);let l=r.components;l!==null&&g_(e,l,1),l_(e)}finally{T(a)}}}function g_(e,t,n){for(let r=0;r<t.length;r++)X0(e,t[r],n)}function J0(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)jn(~i);else{let s=i,o=n[++r],a=n[++r];rm(o,s);let l=t[s];K(q.HostBindingsUpdateStart,l);try{a(2,l)}finally{K(q.HostBindingsUpdateEnd,l)}}}}finally{jn(-1)}}function mh(e,t){let n=zu()?64:1088;for(e[Rt].changeDetectionScheduler?.notify(t);e;){e[R]|=n;let r=cn(e);if(ai(e)&&!r)return e;e=r}return null}function m_(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function v_(e,t){let n=le+t;if(n<e.length)return e[n]}function $s(e,t,n,r=!0){let i=t[I];if(e1(i,t,e,n),r){let o=wd(n,e),a=t[te],l=a.parentNode(e[_r]);l!==null&&h0(i,e[et],a,t,l,o)}let s=t[ri];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function vh(e,t){let n=Is(e,t);return n!==void 0&&pl(n[I],n),n}function Is(e,t){if(e.length<=le)return;let n=le+t,r=e[n];if(r){let i=r[Fn];i!==null&&i!==e&&ih(i,r),t>0&&(e[n-1][_t]=r[_t]);let s=is(e,le+t);d0(r[I],r);let o=s[Wt];o!==null&&o.detachView(s[I]),r[ye]=null,r[_t]=null,r[R]&=-129}return r}function e1(e,t,n,r){let i=le+r,s=n.length;r>0&&(n[i-1][_t]=t),r<s-le?(t[_t]=n[i],Eu(n,le+r,t)):(n.push(t),t[_t]=null),t[ye]=n;let o=t[Fn];o!==null&&n!==o&&__(o,t);let a=t[Wt];a!==null&&a.insertView(e),Da(t),t[R]|=128}function __(e,t){let n=e[yr],r=t[ye];if(fn(r))e[R]|=2;else{let i=r[ye][ot];t[ot]!==i&&(e[R]|=2)}n===null?e[yr]=[t]:n.push(t)}function t1(){return _l(ge(),M())}function _l(e,t){return e.type&4?new xs(t,e,Si(e,t)):null}function Ci(e,t,n,r,i){let s=e.data[t];if(s===null)s=n1(e,t,n,r,i),nm()&&(s.flags|=32);else if(s.type&64){s.type=n,s.value=r,s.attrs=i;let o=Jg();s.injectorIndex=o===null?-1:o.injectorIndex}return wr(s,!0),s}function n1(e,t,n,r,i){let s=Hu(),o=ju(),a=o?s:s&&s.parent,l=e.data[t]=i1(e,a,n,t,r,i);return r1(e,l,s,o),l}function r1(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function i1(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,a=0;return Xg()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,namespace:Gu(),attrs:s,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function s1(e){let t=e[Bn]??[],r=e[ye][te],i=[];for(let s of t)s.data[Gd]!==void 0?i.push(s):o1(s,r);e[Bn]=i}function o1(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[Lv];for(;n<i;){let s=r.nextSibling;Wv(t,r,!1),r=s,n++}}}function Ed(e,t){return a1(e,t)}function y_(e,t,n){return l1(e,t,n)}function c1(){let e=M(),t=ge(),n=wt(t.index,e);return(fn(n)?n:e)[te]}function S_(e){return e.debugInfo?.className||e.type.name||null}function _h(e,t,n){return e[t]=n}function u1(e,t){return e[t]}function nt(e,t,n){if(n===Be)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function yh(e,t,n,r){let i=nt(e,t,n);return nt(e,t+1,r)||i}function d1(e,t,n,r,i){let s=yh(e,t,n,r);return nt(e,t+2,i)||s}function Wa(e,t,n){return function r(i){let s=r.__ngNativeEl__;s!==void 0&&vI(i,s);let o=pn(e)?wt(e.index,t):t;mh(o,5);let a=t[pe],l=Fm(t,a,n,i),c=r.__ngNextListenerFn__;for(;c;)l=Fm(t,a,c,i)&&l,c=c.__ngNextListenerFn__;return l}}function Fm(e,t,n,r){let i=T(null);try{return K(q.OutputStart,t,n),n(r)!==!1}catch(s){return fh(e,s),!1}finally{K(q.OutputEnd,t,n),T(i)}}function C_(e,t,n,r,i,s,o,a){let l=oi(e),c=!1,u=null;if(!r&&l&&(u=f1(t,n,s,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=o,u.__ngLastListenerFn__=o,c=!0}else{let d=bt(e,n),h=r?r(d):d;yI(n,h,s,a),r||(a.__ngNativeEl__=d);let f=i.listen(h,s,a);if(!h1(s)){let p=r?g=>r(Fe(g[e.index])):e.index;E_(p,t,n,s,a,f,!1)}}return c}function h1(e){return e.startsWith("animation")||e.startsWith("transition")}function f1(e,t,n,r){let i=e.cleanup;if(i!=null)for(let s=0;s<i.length-1;s+=2){let o=i[s];if(o===n&&i[s+1]===r){let a=t[ii],l=i[s+2];return a&&a.length>l?a[l]:null}typeof o=="string"&&(s+=2)}return null}function E_(e,t,n,r,i,s,o){let a=t.firstCreatePass?Pu(t):null,l=Ou(n),c=l.length;l.push(i,s),a&&a.push(r,e,c,(c+1)*(o?-1:1))}function Bm(e,t,n,r,i,s){let o=t[n],a=t[I],c=a.data[n].outputs[r],d=o[c].subscribe(s);E_(e.index,a,t,i,s,d,!0)}function tl(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(t!==null)for(let o=0;o<t.length;o++){let a=t[o];if(typeof a=="number")s=a;else if(s==1)i=ua(i,a);else if(s==2){let l=a,c=t[++o];r=ua(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Fs(e,t=0){let n=M();if(n===null)return zt(e,t);let r=ge();return Sv(r,n,Ce(e),t)}function p1(){let e="invalid";throw new Error(e)}function k_(e,t,n,r,i){let s=r===null?null:{"":-1},o=i(e,n);if(o!==null){let a=o,l=null,c=null;for(let u of o)if(u.resolveHostDirectives!==null){[a,l,c]=u.resolveHostDirectives(o);break}v1(e,t,n,a,s,l,c)}s!==null&&r!==null&&g1(n,r,s)}function g1(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let s=n[t[i+1]];if(s==null)throw new H(-301,!1);r.push(t[i],s)}}function m1(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function v1(e,t,n,r,i,s,o){let a=r.length,l=null;for(let h=0;h<a;h++){let f=r[h];l===null&&Lt(f)&&(l=f,m1(e,n,h)),pd(Qa(n,t),e,f.type)}C1(n,e.data.length,a),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let c=!1,u=!1,d=n_(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=fi(n.mergedAttrs,f.hostAttrs),y1(e,n,t,d,f),S1(d,f,i),o!==null&&o.has(f)){let[g,_]=o.get(f);n.directiveToIndex.set(f.type,[d,g+n.directiveStart,_+n.directiveStart])}else(s===null||!s.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let p=f.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!u&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}_1(e,n,s)}function _1(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Hm(0,t,i,r),Hm(1,t,i,r),Vm(t,r,!1);else{let s=n.get(i);jm(0,t,s,r),jm(1,t,s,r),Vm(t,r,!0)}}}function Hm(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(Object.hasOwn(i,s)){let o;e===0?o=t.inputs??={}:o=t.outputs??={},o[s]??=[],o[s].push(r),I_(t,s)}}function jm(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(Object.hasOwn(i,s)){let o=i[s],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[o]??=[],a[o].push(r,s),I_(t,o)}}function I_(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Vm(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||Jd(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&Object.hasOwn(i,l)){let c=i[l];for(let u of c)if(u===t){o??=[],o.push(l,r[a+1]);break}}else if(n&&Object.hasOwn(s,l)){let c=s[l];for(let u=0;u<c.length;u+=2)if(c[u]===t){o??=[],o.push(c[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(o)}function y1(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=Ln(i.type,!0)),o=new kr(s,Lt(i),Fs,null);e.blueprint[r]=o,n[r]=o,b1(e,t,r,n_(e,n,i.hostVars,Be),i)}function b1(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let a=~t.index;w1(o)!=a&&o.push(a),o.push(n,r,s)}}function w1(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function S1(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Lt(t)&&(n[""]=e)}}function C1(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function bh(e,t,n,r,i,s,o,a){let l=t[I],c=l.consts,u=lt(c,o),d=Ci(l,e,n,r,u);return s&&k_(l,t,d,lt(c,a),i),d.mergedAttrs=fi(d.mergedAttrs,d.attrs),d.attrs!==null&&tl(d,d.attrs,!1),d.mergedAttrs!==null&&tl(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function wh(e,t){fv(e,t),Nu(t)&&e.queries.elementEnd(t)}function E1(e,t,n,r,i,s){let o=t.consts,a=lt(o,i),l=Ci(t,e,n,r,a);if(l.mergedAttrs=fi(l.mergedAttrs,l.attrs),s!=null){let c=lt(o,s);l.localNames=[];for(let u=0;u<c.length;u+=2)l.localNames.push(c[u],-1)}return l.attrs!==null&&tl(l,l.attrs,!1),l.mergedAttrs!==null&&tl(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function k1(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&ml.SignalBased)!==0};return i&&(s.transform=i),s})}function I1(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function x1(e,t,n){let r=t instanceof st?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Dr(n,r):n}function T1(e){let t=e.get(Ts,null);if(t===null)throw new H(407,!1);let n=e.get(w_,null),r=e.get(Ut,null),i=e.get(Tr,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:i}}function M1(e,t,n){let r=T_(e);return zv(t,r,r==="svg"?pr:r==="math"?wa:n)}function N1(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new H(905,!1)}function T_(e){return(e.selectors[0][0]||"div").toLowerCase()}function A1(e,t,n,r){let i=e?["ng-version","22.1.7"]:QI(t.selectors[0]),s=null,o=null,a=0;if(n)for(let u of n)a+=u[kd].requiredVars,u.create&&(u.targetIdx=0,(s??=[]).push(u)),u.update&&(u.targetIdx=0,(o??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let h of d.bindings){a+=h[kd].requiredVars;let f=u+1;h.create&&(h.targetIdx=f,(s??=[]).push(h)),h.update&&(h.targetIdx=f,(o??=[]).push(h))}}let l=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,h=rs(d);l.push(h)}return ah(0,null,L1(s,o),1,a,l,null,null,null,[i],null)}function R1(e,t){let n=e.getRootNode?.();return D1&&n instanceof Document?n.head:n&&x_&&n instanceof ShadowRoot?n:t().head}function L1(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function zm(e){let t=e[kd].kind;return t==="input"||t==="twoWay"}function O1(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let s=n[i];r.push(s!=null&&s.length?Array.from(s):null)}}function P1(){let e=ge();return M_(e,M())}function Um(e){return e[ls]}function nd(e){return e[ls]||(e[ls]=[])}function M_(e,t){let n,r=t[e.index];return yt(r)?n=r:(n=m_(r,t,null,e),t[e.index]=n,ch(t,n)),F1(n,t,e,r),new Id(n,e,t)}function $1(e,t){let n=e[te],r=n.createComment(""),i=bt(t,e),s=n.parentNode(i);return Er(n,s,r,n.nextSibling(i),!1),r}function N_(e,t,n){return B1(e,t,n)}function H1(e,t,n,r){if(e[_r])return;let i;n.type&8?i=Fe(r):i=$1(t,n),e[_r]=i}function j1(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function V1(e,t){return e.type&11?Si(e,t):e.type&4?_l(e,t):null}function z1(e,t,n,r){return n===-1?V1(t,e):n===-2?U1(e,t,r):Es(e,e[I],n,t)}function U1(e,t,n){if(n===Ls)return Si(t,e);if(n===xs)return _l(t,e);if(n===yl)return M_(t,e)}function A_(e,t,n,r){let i=t[Wt].queries[r];if(i.matches===null){let s=e.data,o=n.matches,a=[];for(let l=0;o!==null&&l<o.length;l+=2){let c=o[l];if(c<0)a.push(null);else{let u=s[c];a.push(z1(t,u,o[l+1],n.metadata.read))}}i.matches=a}return i.matches}function Ad(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=A_(e,t,i,n);for(let a=0;a<s.length;a+=2){let l=s[a];if(l>0)r.push(o[a/2]);else{let c=s[a+1],u=t[-l];for(let d=le;d<u.length;d++){let h=u[d];h[Fn]===h[ye]&&Ad(h[I],h,c,r)}if(u[yr]!==null){let d=u[yr];for(let h=0;h<d.length;h++){let f=d[h];Ad(f[I],f,c,r)}}}}}return r}function Sh(e,t){return e[Wt].queries[t].queryList}function R_(e,t,n){let r=new Xa((n&4)===4);return Yg(e,t,r,r.destroy),(t[Wt]??=new Td).queries.push(new xd(r))-1}function W1(e,t,n){let r=J();return r.firstCreatePass&&(O_(r,new rl(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),R_(r,M(),t)}function L_(e,t,n,r){let i=J();if(i.firstCreatePass){let s=ge();O_(i,new rl(t,n,r),s.index),G1(i,e),(n&2)===2&&(i.staticContentQueries=!0)}return R_(i,M(),n)}function q1(e){return e.split(",").map(t=>t.trim())}function O_(e,t,n){e.queries===null&&(e.queries=new Md),e.queries.track(new Nd(t,n))}function G1(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Ch(e,t){return e.queries.getByIndex(t)}function P_(e,t){let n=e[I],r=Ch(n,t);return r.crossesNgTemplate?Ad(n,e,t,[]):A_(n,e,r,t)}function Eh(e,t,n){let r,i=$i(()=>{r._dirtyCounter();let s=K1(r,e);if(t&&s===void 0)throw new H(-951,!1);return s});return r=i[de],r._dirtyCounter=ut(0),r._flatValue=void 0,i}function Dh(e){return Eh(!0,!1,e)}function kh(e){return Eh(!0,!0,e)}function $_(e){return Eh(!1,!1,e)}function F_(e,t){let n=e[de];n._lView=M(),n._queryIndex=t,n._queryList=Sh(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function K1(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[R]&4)return t?void 0:vt;let i=Sh(n,r),s=P_(n,r);return i.reset(s,Iv),t?i.first:i._changesDetected||e._flatValue===void 0?e._flatValue=i.toArray():e._flatValue}function Ih(e){return!!e&&typeof e.then=="function"}function B_(e){return!!e&&typeof e.subscribe=="function"}function xh(e,t,n=null){return new Ms({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Bs(e){return ul(()=>{let t=j_(e),n=xe(ae({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==qd.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(Y1).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ir.Emulated,styles:e.styles||vt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&mn("NgStandalone"),V_(n);let r=e.dependencies;return n.directiveDefs=Wm(r,Z1),n.pipeDefs=Wm(r,wu),n.id=tx(n),n})}function Z1(e){return dn(e)||rs(e)}function Q1(e,t){if(e==null)return Pn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let i=e[r],s,o,a,l;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s,l=i[3]||null):(s=i,o=i,a=ml.None,l=null),n[s]=[r,a,l],t[s]=o}return n}function X1(e){if(e==null)return Pn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function J1(e){return ul(()=>{let t=j_(e);return V_(t),t})}function ex(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function j_(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Pn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||vt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Q1(e.inputs,t),outputs:X1(e.outputs),debugInfo:null}}function V_(e){e.features?.forEach(t=>t(e))}function Wm(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let s=t(i);s!==null&&r.push(s)}return r}:null}function tx(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let s of r.join("|"))t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function nx(e){return os([{provide:Th,multi:!0,useValue:e}])}function rx(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=ix,n.hostDirectives=r?e.map(Rd):[e]):r?n.hostDirectives.unshift(...e.map(Rd)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function ix(e){let t=[],n=!1,r=null,i=null;for(let s=0;s<e.length;s++){let o=e[s];if(o.hostDirectives!==null){let a=t.length;r??=new Map,i??=new Map,z_(o,t,r,e),i.set(o,[a,t.length-1])}s===0&&Lt(o)&&(n=!0,t.push(o))}for(let s=n?1:0;s<e.length;s++)t.push(e[s]);return r!==null&&r.forEach((s,o)=>{sx(o.declaredInputs,s.inputs)}),[t,r,i]}function z_(e,t,n,r){if(e.hostDirectives!==null)for(let i of e.hostDirectives)if(typeof i=="function"){let s=i();for(let o of s)qm(Rd(o),t,n,r)}else qm(i,t,n,r)}function qm(e,t,n,r){let i=rs(e.directive);if(z_(i,t,n,r),n.has(i)){let s=n.get(i);Gm(s,e.inputs,"input"),Gm(s,e.outputs,"output")}else r.includes(i)||(n.set(i,e),t.push(i))}function Gm(e,t,n){let r=n==="input"?e.inputs:e.outputs;Object.keys(t).forEach(i=>{let s=t[i];(!Object.hasOwn(r,i)||r[i]===s)&&(r[i]=s)})}function Rd(e){return typeof e=="function"?{directive:Ce(e),inputs:{},outputs:{}}:{directive:Ce(e.directive),inputs:Km(e.inputs),outputs:Km(e.outputs)}}function Km(e){let t={};if(e!==void 0&&e.length>0)for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function sx(e,t){for(let n in t)if(Object.hasOwn(t,n)){let r=t[n],i=e[n];e[r]=i}}function ox(e){return Object.getPrototypeOf(e.prototype).constructor}function U_(e){let t=ox(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let i,s=Object.hasOwn(t,ts)?t[ts]:void 0,o=Object.hasOwn(t,ns)?t[ns]:void 0;if(Lt(e))i=s??o;else{if(s)throw new H(903,!1);i=o}if(i){if(n){r.push(i);let l=e;l.inputs=rd(e.inputs),l.declaredInputs=rd(e.declaredInputs),l.outputs=rd(e.outputs);let c=i.hostBindings;c&&dx(e,c);let u=i.viewQuery,d=i.contentQueries;if(u&&cx(e,u),d&&ux(e,d),ax(e,i),Mg(e.outputs,i.outputs),Lt(i)&&i.data.animation){let h=e.data;h.animation=(h.animation||[]).concat(i.data.animation)}}let a=i.features;if(a)for(let l=0;l<a.length;l++){let c=a[l];c&&c.ngInherit&&c(e),c===U_&&(n=!1)}}t=Object.getPrototypeOf(t)}lx(r)}function ax(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function lx(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=fi(i.hostAttrs,n=fi(n,i.hostAttrs))}}function rd(e){return e===Pn?{}:e===vt?[]:e}function cx(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function ux(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function dx(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function W_(e,t,n,r,i,s,o,a){if(n.firstCreatePass){e.mergedAttrs=fi(e.mergedAttrs,e.attrs);let u=e.tView=ah(2,e,i,s,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),wr(e,!1);let l=fx(n,t,e,r);La()&&sh(n,t,l,e),pi(l,t);let c=m_(l,t,l,e);t[r+ne]=c,ch(t,c),N_(c,e,t)}function hx(e,t,n,r,i,s,o,a,l,c,u){let d=n+ne,h;return t.firstCreatePass?(h=Ci(t,d,4,o||null,a||null),ka()&&k_(t,e,h,lt(t.consts,c),uh),fv(t,h)):h=t.data[d],W_(h,e,t,n,r,i,s,l),oi(h)&&vl(t,e,h),c!=null&&Os(e,h,u),h}function bi(e,t,n,r,i,s,o,a,l,c,u){let d=n+ne,h;if(t.firstCreatePass){if(h=Ci(t,d,4,o||null,a||null),c!=null){let f=lt(t.consts,c);h.localNames=[];for(let p=0;p<f.length;p+=2)h.localNames.push(f[p],-1)}}else h=t.data[d];return W_(h,e,t,n,r,i,s,l),c!=null&&Os(e,h,u),h}function q_(e,t,n,r,i,s,o,a){let l=M(),c=J(),u=lt(c.consts,s);return hx(l,c,e,t,n,r,i,u,void 0,o,a),q_}function G_(e,t,n,r,i,s,o,a){let l=M(),c=J(),u=lt(c.consts,s);return bi(l,c,e,t,n,r,i,u,void 0,o,a),G_}function px(e,t,n,r){return gs(!0),t[te].createComment("")}function K_(e,t,n){let r=Z_(e);t[r]===null&&(t[r]=[]),t[r].push(n)}function qa(e,t){let n=Z_(e),r=t[n];if(r!==null){for(let i of r)i();t[n]=null}}function Y_(e){qa(1,e),qa(0,e),qa(2,e)}function Z_(e){let t=vx;return e===1?t=_x:e===2&&(t=wx),t}function bl(e){return e+1}function Mr(e,t){let n=e[I],r=bl(t.index);return e[r]}function Sx(e,t,n){let r=e[I],i=bl(t);e[i]=n}function Ei(e,t){let n=bl(t.index);return e.data[n]}function Cx(e,t,n){let r=bl(t);e.data[r]=n}function Ex(e,t,n){let r=t[I],i=Ei(r,n);switch(e){case me.Complete:return i.primaryTmplIndex;case me.Loading:return i.loadingTmplIndex;case me.Error:return i.errorTmplIndex;case me.Placeholder:return i.placeholderTmplIndex;default:return null}}function Zm(e,t){return t===me.Placeholder?e.placeholderBlockConfig?.[Ym]??null:t===me.Loading?e.loadingBlockConfig?.[Ym]??null:null}function Dx(e){return e.loadingBlockConfig?.[gx]??null}function Qm(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function kx(e,t){let n=t.primaryTmplIndex+ne;return li(e,n)}function sd(e,t,n){return e.get(Ix).getOrCreateInjector(t,e,n,"")}function xx(e,t,n){if(e instanceof Dr){let i=e.injector,s=e.parentInjector,o=sd(s,t,n);return new Dr(i,o)}let r=e.get(st);if(r!==e){let i=sd(r,t,n);return new Dr(e,i)}return sd(e,t,n)}function zn(e,t,n,r=!1){let i=n[ye],s=i[I];if(Hn(i))return;let o=Mr(i,t),a=o[Hs],l=o[bx];if(!(l!==null&&e<l)&&Xm(a,e)&&Xm(o[mx]??-1,e)){let c=Ei(s,t),d=!r&&!0&&(Dx(c)!==null||Zm(c,me.Loading)!==null||Zm(c,me.Placeholder))?Nx:Mx;try{d(e,o,n,t,i)}catch(h){fh(i,h)}}}function Tx(e,t){let n=e[Bn]?.findIndex(i=>i.data[Kd]===t[Hs])??-1;return{dehydratedView:n>-1?e[Bn][n]:null,dehydratedViewIx:n}}function Mx(e,t,n,r,i){K(q.DeferBlockStateStart);let s=Ex(e,i,r);if(s!==null){t[Hs]=e;let o=i[I],a=s+ne,l=li(o,a),c=0;vh(n,c);let u;if(e===me.Complete){let p=Ei(o,r),g=p.providers;g&&g.length>0&&(u=xx(i[Ve],p,g))}let{dehydratedView:d,dehydratedViewIx:h}=Tx(n,t),f=Ps(i,l,null,{injector:u,dehydratedView:d});if($s(n,f,c,vi(l,d)),Ea(f),h>-1&&n[Bn]?.splice(h,1),(e===me.Complete||e===me.Error)&&Array.isArray(t[id])){for(let p of t[id])p();t[id]=null}}K(q.DeferBlockStateEnd)}function Xm(e,t){return e<t}function X_(e,t){let n=e[t.index];zn(me.Placeholder,t,n)}function Jm(e,t,n){e.loadingPromise.then(()=>{e.loadingState===tt.COMPLETE?zn(me.Complete,t,n):e.loadingState===tt.FAILED&&zn(me.Error,t,n)})}function J_(e,t){return t[Ve].get(Q_,null,{optional:!0})?.behavior!==Nh.Manual}function ny(){hc(()=>{let e="";throw new H(600,e)})}function Lx(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Cs(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ox(e,t,n){let r=t.get($x),i=()=>r.remove(e);return r.add(e,n),i}function Px(e){return(t,n)=>Ox(t,n,e)}function ev(e){return!e||e.timeout==null?"":`${e.timeout}`}function Fx(e){let t=M(),n=ge();if(X_(t,n),!J_(0,t))return;let r=t[Ve],i=Mr(t,n),s=e(()=>iy(0,t,n),r);K_(0,i,s)}function ry(e,t,n){let r=t[Ve],i=t[I];if(e.loadingState!==tt.NOT_STARTED)return e.loadingPromise??Promise.resolve();let s=Mr(t,n),o=kx(i,e);e.loadingState=tt.IN_PROGRESS,qa(1,s);let a=e.dependencyResolverFn,l=r.get(Fa).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(c=>{let u=!1,d=null,h=[],f=[];for(let p=0;p<c.length;p++){let g=c[p];if(g.status==="fulfilled"){let _=g.value,y=dn(_)||rs(_);if(y)h.push(y);else{let O=wu(_);O&&f.push(O)}}else{u=!0,d=g.reason instanceof Error?g.reason:new Error(String(g.reason));break}}if(u){if(e.loadingState=tt.FAILED,e.errorTmplIndex===null){let g="",_=new H(-750,g);fh(t,_)}}else{e.loadingState=tt.COMPLETE;let p=o.tView;if(h.length>0){p.directiveRegistry=Qm(p.directiveRegistry,h);let g=h.map(y=>y.type),_=_a(!1,...g);e.providers=_}f.length>0&&(p.pipeRegistry=Qm(p.pipeRegistry,f))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,l()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=tt.COMPLETE,l()}),e.loadingPromise)}function iy(e,t,n){let r=t[I],i=t[n.index];if(!J_(e,t))return;let s=Mr(t,n),o=Ei(r,n);switch(Y_(s),o.loadingState){case tt.NOT_STARTED:zn(me.Loading,n,i),ry(o,t,n),o.loadingState===tt.IN_PROGRESS&&Jm(o,n,i);break;case tt.IN_PROGRESS:zn(me.Loading,n,i),Jm(o,n,i);break;case tt.COMPLETE:zn(me.Complete,n,i);break;case tt.FAILED:zn(me.Error,n,i);break;default:}}function sy(e,t,n){return e===0?tv(t,n):e===2?!tv(t,n):!0}function Bx(e){return e!=null&&(e&1)===1}function tv(e,t){let n=e[Ve],r=Ei(e[I],t),i=Zd(n),s=Bx(r.flags),a=Mr(e,t)[yx]!==null;return!(s&&a&&i)}function Hx(e,t,n,r,i,s,o,a,l,c){let u=M(),d=J(),h=e+ne,f=bi(u,d,e,null,0,0),p=u[Ve],g=Zd(p);if(d.firstCreatePass){mn("NgDefer");let z={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:i??null,errorTmplIndex:s??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:tt.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:c??0};l?.(d,z,a,o),Cx(d,h,z)}let _=u[h];N_(_,f,u);let y=null,O=null;if(_[Bn]?.length>0){let z=_[Bn][0].data;O=z[Gd]??null,y=z[Kd]}let P=[null,ol.Initial,null,null,null,null,O,y,null,null];Sx(u,h,P);let x=null;O!==null&&g&&(x=p.get(Fv),x.add(O,{lView:u,tNode:f,lContainer:_}));let V=()=>{Y_(P),O!==null&&x?.cleanup([O])};K_(0,P,()=>Lu(u,V)),ds(u,V)}function jx(e){let t=M(),n=Sr();if(!sy(0,t,n))return;let r=gn();if(nt(t,r,e)){let i=T(null);try{let s=!!e,a=Mr(t,n)[Hs];s===!1&&a===ol.Initial?X_(t,n):s===!0&&(a===ol.Initial||a===me.Placeholder)&&iy(0,t,n)}finally{T(i)}}}function Vx(e){let t=M(),n=ge();sy(0,t,n)&&Fx(Px({timeout:e}))}function Vs(e,t,n,r){let i=M(),s=gn();if(nt(i,s,t)){let o=J(),a=Sr();P0(a,i,e,t,n,r)}return Vs}function od(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function zx(e,t,n,r){let i,s,o=0,a=e.length-1,l=void 0;if(Array.isArray(t)){T(r);let c=t.length-1;for(T(null);o<=a&&o<=c;){let u=e.at(o),d=t[o],h=od(o,u,o,d,n);if(h!==0){h<0&&e.updateValue(o,d),o++;continue}let f=e.at(a),p=t[c],g=od(a,f,c,p,n);if(g!==0){g<0&&e.updateValue(a,p),a--,c--;continue}let _=n(o,u),y=n(a,f),O=n(o,d);if(Object.is(O,y)){let P=n(c,p);Object.is(P,_)?(e.swap(o,a),e.updateValue(a,p),c--,a--):e.move(a,o),e.updateValue(o,d),o++;continue}if(i??=new al,s??=rv(e,o,a,n),Od(e,i,o,O))e.updateValue(o,d),o++,a++;else if(s.has(O))i.set(_,e.detach(o)),a--;else{let P=e.create(o,t[o]);e.attach(o,P),o++,a++}}for(;o<=c;)nv(e,i,n,o,t[o]),o++}else if(t!=null){T(r);let c=t[Symbol.iterator]();T(null);let u=c.next();for(;!u.done&&o<=a;){let d=e.at(o),h=u.value,f=od(o,d,o,h,n);if(f!==0)f<0&&e.updateValue(o,h),o++,u=c.next();else{i??=new al,s??=rv(e,o,a,n);let p=n(o,h);if(Od(e,i,o,p))e.updateValue(o,h),o++,a++,u=c.next();else if(!s.has(p))e.attach(o,e.create(o,h)),o++,a++,u=c.next();else{let g=n(o,d);i.set(g,e.detach(o)),a--}}}for(;!u.done;)nv(e,i,n,e.length,u.value),u=c.next()}for(;o<=a;)e.destroy(e.detach(a--));i?.forEach(c=>{e.destroy(c)})}function Od(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function nv(e,t,n,r,i){if(Od(e,t,r,n(r,i)))e.updateValue(r,i);else{let s=e.create(r,i);e.attach(r,s)}}function rv(e,t,n,r){let i=new Set;for(let s=t;s<=n;s++)i.add(r(s,e.at(s)));return i}function zs(e,t,n,r,i,s,o,a){mn("NgControlFlow");let l=M(),c=J(),u=lt(c.consts,s);return bi(l,c,e,t,n,r,i,u,256,o,a),Ah}function Ah(e,t,n,r,i,s,o,a){mn("NgControlFlow");let l=M(),c=J(),u=lt(c.consts,s);return bi(l,c,e,t,n,r,i,u,512,o,a),Ah}function Us(e,t){mn("NgControlFlow");let n=M(),r=gn(),i=n[r]!==Be?n[r]:-1,s=i!==-1?ll(n,ne+i):void 0,o=0;if(nt(n,r,e)){let a=T(null);try{if(s!==void 0&&vh(s,o),e!==-1){let l=ne+e,c=ll(n,l),u=Bd(n[I],l),d=y_(c,u,n),h=Ps(n,u,t,{dehydratedView:d});$s(c,h,o,vi(u,d))}}finally{T(a)}}else if(s!==void 0){let a=v_(s,o);a!==void 0&&(a[pe]=t)}}function Ux(e){return e}function Rh(e,t){return t}function Lh(e,t,n,r,i,s,o,a,l,c,u,d,h){mn("NgControlFlow");let f=M(),p=J(),g=l!==void 0,_=M(),y=a?o.bind(_[ot][pe]):o,O=new $d(g,y);_[ne+e]=O,bi(f,p,e+1,t,n,r,i,lt(p.consts,s),256),g&&bi(f,p,e+2,l,c,u,d,lt(p.consts,h),512)}function Oh(e){let t=T(null),n=ct();try{let r=M(),i=r[I],s=r[n],o=n+1,a=ll(r,o);if(s.liveCollection===void 0){let c=Bd(i,o);s.liveCollection=new Fd(a,r,c)}else s.liveCollection.reset();let l=s.liveCollection;if(zx(l,e,s.trackByFn,t),l.updateIndexes(),s.hasEmptyBlock){let c=gn(),u=l.length===0;if(nt(r,c,u)){let d=n+2,h=ll(r,d);if(u){let f=Bd(i,d),p=y_(h,f,r),g=Ps(r,f,void 0,{dehydratedView:p});$s(h,g,0,vi(f,p))}else i.firstUpdatePass&&s1(h),vh(h,0)}}}finally{T(t)}}function ll(e,t){return e[t]}function Wx(e,t){if(e.length<=le)return;let n=le+t,r=e[n],i=r?r[Gt]:void 0;if(r&&i&&i.detachedLeaveAnimationFns&&i.detachedLeaveAnimationFns.length>0){let s=r[Ve];s0(s,i),mi.delete(r[qt]),i.detachedLeaveAnimationFns=void 0}}function qx(e,t){if(e.length<=le)return;let n=le+t,r=e[n],i=r?r[Gt]:void 0;i&&i.leave&&i.leave.size>0&&(i.detachedLeaveAnimationFns=[])}function Gx(e,t){return Is(e,t)}function Kx(e,t){return v_(e,t)}function Bd(e,t){return li(e,t)}function wl(e,t,n){let r=M(),i=gn();if(nt(r,i,t)){let s=J(),o=Sr();s_(o,r,e,t,r[te],n)}return wl}function Hd(e,t,n,r,i){ph(t,e,n,i?"class":"style",r)}function $t(e,t,n,r){let i=M(),s=i[I],o=e+ne,a=s.firstCreatePass?bh(o,i,2,t,uh,ka(),n,r):s.data[o];if(pn(a)){let l=i[Rt].tracingService;if(l&&l.componentCreate){let c=s.data[a.directiveStart+a.componentOffset];return l.componentCreate(S_(c),()=>(iv(e,t,i,a,r),$t))}}return iv(e,t,i,a,r),$t}function iv(e,t,n,r,i){if(dh(r,n,e,t,oy),oi(r)){let s=n[I];vl(s,n,r),Qd(s,r,n)}i!=null&&Os(n,r)}function Yt(){let e=J(),t=ge(),n=hh(t);return e.firstCreatePass&&wh(e,n),Fu(n)&&Bu(),$u(),n.classesWithoutHost!=null&&Yk(n)&&Hd(e,n,M(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Zk(n)&&Hd(e,n,M(),n.stylesWithoutHost,!1),Yt}function Ws(e,t,n,r){return $t(e,t,n,r),Yt(),Ws}function qs(e,t,n,r){let i=M(),s=i[I],o=e+ne,a=s.firstCreatePass?E1(o,s,2,t,n,r):s.data[o];return dh(a,i,e,t,oy),r!=null&&Os(i,a),qs}function Gs(){let e=ge(),t=hh(e);return Fu(t)&&Bu(),$u(),Gs}function Sl(e,t,n,r){return qs(e,t,n,r),Gs(),Sl}function Ph(e,t,n){let r=M(),i=r[I],s=e+ne,o=i.firstCreatePass?bh(s,r,8,"ng-container",uh,ka(),t,n):i.data[s];if(dh(o,r,e,"ng-container",Yx),oi(o)){let a=r[I];vl(a,r,o),Qd(a,o,r)}return n!=null&&Os(r,o),Ph}function $h(){let e=J(),t=ge(),n=hh(t);return e.firstCreatePass&&wh(e,n),$h}function ay(e,t,n){return Ph(e,t,n),$h(),ay}function Fh(){return M()}function ly(e,t,n){let r=M(),i=gn();if(nt(r,i,t)){let s=J(),o=Sr();o_(o,r,e,t,r[te],n)}return ly}function Zx(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}function Xx(e){let t=eT(e),n=sv(t);if(n)return n;let r=t.split("-")[0];if(n=sv(r),n)return n;if(r==="en")return Qx;throw new H(701,!1)}function sv(e){if(!(e in ad)){let t=On.ng&&On.ng.common&&On.ng.common.locales&&On.ng.common.locales[e];return t!==void 0&&(ad[e]=t),t}return ad[e]}function eT(e){return e.toLowerCase().replace(/_/g,"-")}function cy(e){typeof e=="string"&&(tT=e.toLowerCase().replace(/_/g,"-"))}function Cl(e,t,n){let r=M(),i=J(),s=ge();return dy(i,r,r[te],s,e,t,n),Cl}function uy(e,t,n){let r=M(),i=J(),s=ge();return(s.type&3||n)&&C_(s,i,r,n,r[te],e,t,Wa(s,r,t)),uy}function dy(e,t,n,r,i,s,o){let a=!0,l=null;if((r.type&3||o)&&(l??=Wa(r,t,s),C_(r,e,t,o,n,i,s,l)&&(a=!1)),a){let c=r.outputs?.[i],u=r.hostDirectiveOutputs?.[i];if(u&&u.length)for(let d=0;d<u.length;d+=2){let h=u[d],f=u[d+1];l??=Wa(r,t,s),Bm(r,t,h,f,i,l)}if(c&&c.length)for(let d of c)l??=Wa(r,t,s),Bm(r,t,d,i,i,l)}}function El(e=1){return cm(e)}function hy(e,t,n,r){return L_(e,t,n,r),hy}function nT(e){let t=M(),n=J(),r=Na();fs(r+1);let i=Ch(n,r);if(e.dirty&&qg(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=P_(t,r);e.reset(s,Iv),e.notifyOnChanges()}return!0}return!1}function rT(){return Sh(M(),Na())}function fy(e,t,n,r,i){return F_(t,L_(e,n,r,i)),fy}function Dl(e,t,n,r){return F_(e,W1(t,n,r)),Dl}function Bh(e=1){fs(Na()+e)}function iT(e){let t=Vu();return Sa(t,ne+e)}function Ha(e,t){return e<<17|t<<2}function xr(e){return e>>17&32767}function sT(e){return(e&2)==2}function oT(e,t){return e&131071|t<<17}function jd(e){return e|2}function wi(e){return(e&131068)>>2}function ld(e,t){return e&-131069|t<<2}function aT(e){return(e&1)===1}function Vd(e){return e|1}function lT(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,a=xr(o),l=wi(o);e[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||ti(d,u)>0)&&(c=!0)}else u=n;if(i)if(l!==0){let h=xr(e[a+1]);e[r+1]=Ha(h,a),h!==0&&(e[h+1]=ld(e[h+1],r)),e[a+1]=oT(e[a+1],r)}else e[r+1]=Ha(a,0),a!==0&&(e[a+1]=ld(e[a+1],r)),a=r;else e[r+1]=Ha(l,0),a===0?a=r:e[l+1]=ld(e[l+1],r),l=r;c&&(e[r+1]=jd(e[r+1])),ov(e,u,r,!0),ov(e,u,r,!1),cT(t,u,e,r,s),o=Ha(a,l),s?t.classBindings=o:t.styleBindings=o}function cT(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&ti(s,t)>=0&&(n[r+1]=Vd(n[r+1]))}function ov(e,t,n,r){let i=e[n+1],s=t===null,o=r?xr(i):wi(i),a=!1;for(;o!==0&&(a===!1||s);){let l=e[o],c=e[o+1];uT(l,t)&&(a=!0,e[o+1]=r?Vd(c):jd(c)),o=r?xr(c):wi(c)}a&&(e[n+1]=r?jd(i):Vd(i))}function uT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ti(e,t)>=0:!1}function dT(e){return e.substring(Pt.key,Pt.keyEnd)}function hT(e){return fT(e),py(e,gy(e,0,Pt.textEnd))}function py(e,t){let n=Pt.textEnd;return n===t?-1:(t=Pt.keyEnd=pT(e,Pt.key=t,n),gy(e,t,n))}function fT(e){Pt.key=0,Pt.keyEnd=0,Pt.value=0,Pt.valueEnd=0,Pt.textEnd=e.length}function gy(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function pT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function my(e,t,n){return _y(e,t,n,!1),my}function vy(e,t){return _y(e,t,null,!0),vy}function gT(e){vT(CT,mT,e,!0)}function mT(e,t){for(let n=hT(t);n>=0;n=py(t,n))ma(e,dT(t),!0)}function _y(e,t,n,r){let i=M(),s=J(),o=hs(2);if(s.firstUpdatePass&&by(s,e,o,r),t!==Be&&nt(i,o,t)){let a=s.data[ct()];wy(s,a,i,i[te],e,i[o+1]=DT(t,n),r,o)}}function vT(e,t,n,r){let i=J(),s=hs(2);i.firstUpdatePass&&by(i,null,s,r);let o=M();if(n!==Be&&nt(o,s,n)){let a=i.data[ct()];if(Sy(a,r)&&!yy(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=ua(l,n||"")),Hd(i,a,o,n,r)}else ET(i,a,o,o[te],o[s+1],o[s+1]=ST(e,t,n),r,s)}}function yy(e,t){return t>=e.expandoStartIndex}function by(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[ct()],o=yy(e,n);Sy(s,r)&&t===null&&!o&&(t=!1),t=_T(i,s,t,r),lT(i,s,t,n,o,r)}}function _T(e,t,n,r){let i=sm(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=cd(null,e,t,n,r),n=Ns(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=cd(i,e,t,n,r),s===null){let l=yT(e,t,r);l!==void 0&&Array.isArray(l)&&(l=cd(null,e,t,l[1],r),l=Ns(l,t.attrs,r),bT(e,t,r,l))}else s=wT(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function yT(e,t,n){let r=n?t.classBindings:t.styleBindings;if(wi(r)!==0)return e[xr(r)]}function bT(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[xr(i)]=r}function wT(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=Ns(r,o,n)}return Ns(r,t.attrs,n)}function cd(e,t,n,r,i){let s=null,o=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<o&&(s=t[a],r=Ns(r,s.hostAttrs,i),s!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Ns(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let s=0;s<t.length;s++){let o=t[s];typeof o=="number"?i=o:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ma(e,o,n?!0:t[++s]))}return e===void 0?null:e}function ST(e,t,n){if(n==null||n==="")return vt;let r=[],i=gi(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if(i instanceof Set)for(let s of i)e(r,s,!0);else if(typeof i=="object")for(let s in i)Object.hasOwn(i,s)&&e(r,s,i[s]);else typeof i=="string"&&t(r,i);return r}function CT(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ma(e,r,n)}function ET(e,t,n,r,i,s,o,a){i===Be&&(i=vt);let l=0,c=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;u!==null||d!==null;){let h=l<i.length?i[l+1]:void 0,f=c<s.length?s[c+1]:void 0,p=null,g;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):d===null||u!==null&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),p!==null&&wy(e,t,n,r,p,g,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}function wy(e,t,n,r,i,s,o,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=aT(c)?av(l,t,n,i,wi(c),o):void 0;if(!cl(u)){cl(s)||sT(c)&&(s=av(l,null,n,i,a,o));let d=Au(ct(),n);E0(r,o,d,i,s)}}function av(e,t,n,r,i,s){let o=t===null,a;for(;i>0;){let l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=u===null,h=n[i+1];h===Be&&(h=d?vt:void 0);let f=d?va(h,r):u===r?h:void 0;if(c&&!cl(f)&&(f=va(l,r)),cl(f)&&(a=f,o))return a;let p=e[i+1];i=o?xr(p):wi(p)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=va(l,r))}return a}function cl(e){return e!==void 0}function DT(e,t){return e==null||e===""||(typeof t=="string"?e=gi(e)+t:typeof e=="object"&&(e=Ji(gi(e)))),e}function Sy(e,t){return(e.flags&(t?8:16))!==0}function Nr(e,t=""){let n=M(),r=J(),i=e+ne,s=r.firstCreatePass?Ci(r,i,1,t,null):r.data[i],o=kT(r,n,s,t);n[i]=o,La()&&sh(r,n,o,s),wr(s,!1)}function IT(e,t,n,r=""){return nt(e,gn(),n)?t+hn(n)+r:Be}function xT(e,t,n,r,i,s=""){let o=Uu(),a=yh(e,o,n,i);return hs(2),a?t+hn(n)+r+hn(i)+s:Be}function TT(e,t,n,r,i,s,o,a=""){let l=Uu(),c=d1(e,l,n,i,o);return hs(3),c?t+hn(n)+r+hn(i)+s+hn(o)+a:Be}function Di(e){return ki("",e),Di}function ki(e,t,n){let r=M(),i=IT(r,e,t,n);return i!==Be&&Hh(r,ct(),i),ki}function Cy(e,t,n,r,i){let s=M(),o=xT(s,e,t,n,r,i);return o!==Be&&Hh(s,ct(),o),Cy}function Ey(e,t,n,r,i,s,o){let a=M(),l=TT(a,e,t,n,r,i,s,o);return l!==Be&&Hh(a,ct(),l),Ey}function Hh(e,t,n){let r=Au(t,e);TI(e[te],r,n)}function Dy(e,t,n){$a(t)&&(t=t());let r=M(),i=gn();if(nt(r,i,t)){let s=J(),o=Sr();s_(o,r,e,t,r[te],n)}return Dy}function MT(e,t){let n=$a(e);return n&&e.set(t),n}function ky(e,t){let n=M(),r=J(),i=ge();return dy(r,n,n[te],i,e,t),ky}function xy(e){mn("NgLet");let t=J(),n=M(),r=e+ne,i=Ci(t,r,128,null,null);return wr(i,!1),cs(t,n,r,Iy),xy}function NT(e){let t=J(),n=M(),r=ct();return cs(t,n,r,e),e}function AT(e){let t=Vu(),n=Sa(t,ne+e);if(n===Iy)throw new H(314,!1);return n}function lv(e,t,n){let r=J();r.firstCreatePass&&Ty(t,r.data,r.blueprint,Lt(e),n)}function Ty(e,t,n,r,i){if(e=Ce(e),Array.isArray(e))for(let s=0;s<e.length;s++)Ty(e[s],t,n,r,i);else{let s=J(),o=M(),a=ge(),l=hr(e)?e:Ce(e.provide),c=xu(e),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(hr(e)||!e.multi){let f=new kr(c,i,Fs,null),p=dd(l,t,i?u:u+h,d);p===-1?(pd(Qa(a,o),s,l),ud(s,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),o.push(f)):(n[p]=f,o[p]=f)}else{let f=dd(l,t,u+h,d),p=dd(l,t,u,u+h),g=f>=0&&n[f],_=p>=0&&n[p];if(i&&!_||!i&&!g){pd(Qa(a,o),s,l);let y=OT(i?LT:RT,n.length,i,r,c,e);!i&&_&&(n[p].providerFactory=y),ud(s,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(y),o.push(y)}else{let y=My(n[i?p:f],c,!i&&r);ud(s,e,f>-1?f:p,y)}!i&&r&&_&&n[p].componentProviders++}}}function ud(e,t,n,r){let i=hr(t),s=Vg(t);if(i||s){let l=(s?Ce(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function My(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function dd(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function RT(e,t,n,r,i){return zd(this.multi,[])}function LT(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Es(r,r[I],this.providerFactory.index,i);o=l.slice(0,a),zd(s,o);for(let c=a;c<l.length;c++)o.push(l[c])}else o=[],zd(s,o);return o}function zd(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function OT(e,t,n,r,i,s){let o=new kr(e,n,Fs,null);return o.multi=[],o.index=t,o.componentProviders=0,My(o,i,r&&!n),o}function PT(e,t){return n=>{n.providersResolver=(r,i)=>lv(r,i?i(e):e,!1),t&&(n.viewProvidersResolver=(r,i)=>lv(r,i?i(t):t,!0))}}function $T(e,t){let n=Ta()+e,r=M();return r[n]===Be?_h(r,n,t()):u1(r,n)}function FT(e,t,n){return BT(M(),Ta(),e,t,n)}function Ny(e,t){let n=e[t];return n===Be?void 0:n}function BT(e,t,n,r,i,s){let o=t+n;return nt(e,o,i)?_h(e,o+1,s?r.call(s,i):r(i)):Ny(e,o+1)}function HT(e,t,n,r,i,s,o){let a=t+n;return yh(e,a,i,s)?_h(e,a+2,o?r.call(o,i,s):r(i,s)):Ny(e,a+2)}function jT(e,t){let n=J(),r,i=e+ne;n.firstCreatePass?(r=VT(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let s=r.factory||(r.factory=Ln(r.type,!0)),o,a=Ke(Fs);try{let l=Za(!1),c=s();return Za(l),cs(n,M(),i,c),c}finally{Ke(a)}}function VT(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function zT(e,t,n,r){let i=e+ne,s=M(),o=Sa(s,i);return UT(s,i)?HT(s,Ta(),t,o.transform,n,r,o):o.transform(n,r)}function UT(e,t){return e[I].data[t].pure}function WT(e,t){return _l(e,t)}function Ry(){return[{provide:Ut,useExisting:Ay},{provide:Nt,useClass:Qi},{provide:_s,useValue:!0}]}function GT(){return typeof $localize<"u"&&$localize.locale||Ks}var As,Ud,q,Ga,dv,Vk,hd,Em,K,hi,kr,fd,eI,vv,_v,tI,Kt,Un,cI,uI,kv,md,Ls,Xa,qd,Tv,fI,Tm,_d,Lv,Gd,Kd,Ov,Pv,$v,Mm,_I,Fv,bI,Ir,wI,Ba,Ja,CI,EI,DI,kI,Zv,Be,el,XI,mi,uH,bd,ws,dl,Tr,Lm,hl,th,nh,Ds,rh,b0,$m,ml,M0,c_,W0,G0,K0,Wn,xs,a1,l1,b_,Ts,Dd,w_,Ua,Dr,kd,D_,x_,D1,_i,nl,yl,Id,F1,B1,xd,Td,rl,Md,Nd,yi,H_,il,sl,Ms,Y1,Th,Mh,fx,tt,Ym,gx,me,ol,mx,Hs,vx,_x,yx,bx,id,wx,Nh,Ix,Q_,Nx,Ax,ey,ty,Rx,js,$x,Ld,al,Pd,$d,Fd,oy,Yx,bs,Qx,ad,Jx,Ks,tT,Pt,kT,Iy,Ay,qT,jh,Vh=m(()=>{ys();bc();ir();nu();Sm();As=Symbol("InputSignalNode#UNSET"),Ud=xe(ae({},zr),{transformFn:void 0,applyValueToInputSignal(e,t){sn(e,t)}});q=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(q||{}),Ga=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};dv=null,Vk=(()=>{dv=Cm;let e=()=>Cm;return e.ngInherit=!0,e})();hd="__ngSimpleChanges__";Em=[],K=function(e,t=null,n){for(let r=0;r<Em.length;r++){let i=Em[r];i(e,t,n)}};hi=-1,kr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,i){this.factory=t,this.name=i,this.canSeeViewProviders=n,this.injectImpl=r}};fd=!0;eI=256,vv=eI-1,_v=5,tI=0,Kt={};Un=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Sv(this._tNode,this._lView,t,dr(r),n)}};cI=()=>(typeof requestIdleCallback<"u"?requestIdleCallback:e=>setTimeout(e)).bind(globalThis),uI=()=>(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis),kv=new G("",{factory:()=>new md}),md=class{requestIdleCallback=cI();cancelIdleCallback=uI();requestOnIdle(t,n){return this.requestIdleCallback(t,n)}cancelOnIdle(t){return this.cancelIdleCallback(t)}};Ls=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=dI}return e})();Xa=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new mt}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Pg(t);(this._changesDetected=!Og(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=hI};qd=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(qd||{}),Tv=new Map,fI=0;Tm="__ngContext__";Lv="r",Gd="di",Kd="s",Ov=!1,Pv=new G("",{factory:()=>Ov}),$v=new G(""),Mm=new WeakMap;_I=(e,t,n,r)=>{};Fv=new G("");bI=()=>null;Ir=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Ir||{}),wI={"http://www.w3.org/2000/svg":pr,"http://www.w3.org/1998/Math/MathML":wa};Ja=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ca})`}};CI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;EI=/^>|^->|<!--|-->|--!>|<!-$/g,DI=/(<|>)/g,kI="\u200B$1\u200B";Zv="ng-template";Be={},el=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(el||{});mi=new Set,uH=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function",bd=new WeakMap;ws=new WeakSet;dl=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(dl||{}),Tr=new G(""),Lm=new Set;hl=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Te({token:e,providedIn:"root",factory:()=>new e})}return e})(),th=[0,1,2,3],nh=(()=>{class e{ngZone=A(Nt);scheduler=A(Ut);errorHandler=A(un,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){A(Tr,{optional:!0})}execute(){let n=this.sequences.size>0;n&&K(q.AfterRenderHooksStart),this.executing=!0;for(let r of th)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let s=i.hooks[r];return s(i.pipelinedValue)},i.snapshot))}catch(s){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(s)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&K(q.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[vr]??=[]).push(n),br(r),r[R]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(dl.AFTER_NEXT_RENDER,n):n()}static \u0275prov=Te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ds=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,i,s,o=null){this.impl=t,this.hooks=n,this.view=r,this.once=i,this.snapshot=o,this.unregisterOnDestroy=s?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[vr];t&&(this.view[vr]=t.filter(n=>n!==this))}};rh=new G("",{factory:()=>{let e=A(st),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});b0=y0;ml=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(ml||{});M0=()=>null;c_=[];W0=xe(ae({},xn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{br(e.lView)},consumerOnSignalRead(){this.lView[at]=this}});G0=xe(ae({},xn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=cn(e.lView);for(;t&&!u_(t[I]);)t=cn(t);t&&Ea(t)},consumerOnSignalRead(){this.lView[at]=this}});K0=100;Wn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[I];return ks(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[pe]}set context(t){this._lView[pe]=t}get destroyed(){return Hn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ye];if(yt(t)){let n=t[ls],r=n?n.indexOf(this):-1;r>-1&&(Is(t,r),is(n,r))}this._attachedToViewContainer=!1}pl(this._lView[I],this._lView)}onDestroy(t){ds(this._lView,t)}markForCheck(){mh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[R]&=-129}reattach(){Da(this._lView),this._lView[R]|=128}detectChanges(){this._lView[R]|=1024,h_(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new H(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=ai(this._lView),n=this._lView[Fn];n!==null&&!t&&ih(n,this._lView),Jv(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new H(902,!1);this._appRef=t;let n=ai(this._lView),r=this._lView[Fn];r!==null&&!n&&__(r,this._lView),Da(this._lView)}},xs=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=t1;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let s=Ps(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new Wn(s)}}return e})();a1=()=>null,l1=()=>null;b_=class{},Ts=class{},Dd=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>c1()};w_=(()=>{class e{static \u0275prov=Te({token:e,providedIn:"root",factory:()=>null})}return e})();Ua={},Dr=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let i=this.injector.get(t,Ua,r);return i!==Ua||n===Ua?i:this.parentInjector.get(t,n,r)}};kd=Symbol("BINDING"),D_=new G("");x_=typeof ShadowRoot<"u",D1=typeof Document<"u";_i=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=k1(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I1(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=ZI(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,i,s,o,a){K(q.DynamicComponentStart);let l=T(null);try{let c=this.componentDef,u=x1(c,i||this.ngModule,t),d=T1(u),h=d.tracingService;return h&&h.componentCreate?h.componentCreate(S_(c),()=>this.createComponentRef(d,u,n,r,s,o,a)):this.createComponentRef(d,u,n,r,s,o,a)}finally{T(l)}}createComponentRef(t,n,r,i,s,o,a){let l=this.componentDef,c=A1(i,l,o,s),u=t.rendererFactory.createRenderer(null,l),d=i?x0(u,i,l.encapsulation,n):M1(l,u,a??null);N1(d);let h=n.get(D_,null),f=R1(d,()=>n.get(ms,null)??Rv());h&&h.addHost(f);let p=o?.some(zm)||s?.some(y=>typeof y!="function"&&y.bindings.some(zm)),g=lh(null,c,null,512|t_(l),null,null,t,u,n,null,Bv(d,n,!0));h&&x_&&f instanceof ShadowRoot&&ds(g,()=>{h.removeHost(f)}),g[ne]=d,Aa(g);let _=null;try{let y=bh(ne,g,2,"#host",()=>c.directiveRegistry,!0,0);qv(u,d,y),pi(d,g),vl(c,g,y),Qd(c,y,g),wh(c,y),r!==void 0&&O1(y,this.ngContentSelectors,r),_=wt(y.index,g),g[pe]=_[pe],gh(c,g,null)}catch(y){throw _!==null&&vd(_),vd(g),y}finally{K(q.DynamicComponentEnd),Ra()}return new nl(this.componentType,g,!!p)}};nl=class extends b_{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=li(n[I],ne),this.location=Si(this._tNode,n),this.instance=wt(this._tNode.index,n)[pe],this.hostView=this.changeDetectorRef=new Wn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView,s=ph(r,i[I],i,t,n);this.previousInputValues.set(t,n);let o=wt(r.index,i);mh(o,1)}get injector(){return new Un(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};yl=(()=>{class e{static __NG_ELEMENT_ID__=P1}return e})();Id=class e extends yl{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Si(this._hostTNode,this._hostLView)}get injector(){return new Un(this._hostTNode,this._hostLView)}get parentInjector(){let t=Wd(this._hostTNode,this._hostLView);if(mv(t)){let n=Ya(t,this._hostLView),r=Ka(t),i=n[I].data[r+8];return new Un(i,n)}else return new Un(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Um(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-le}createEmbeddedView(t,n,r){let i,s;typeof r=="number"?i=r:r!=null&&(i=r.index,s=r.injector);let o=Ed(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},s,o);return this.insertImpl(a,i,vi(this._hostTNode,o)),a}createComponent(t,n,r,i,s,o,a){let l,c=n||{};l=c.index,r=c.injector,i=c.projectableNodes,s=c.environmentInjector||c.ngModuleRef,o=c.directives,a=c.bindings;let u=new _i(dn(t)),d=r||this.parentInjector;if(!s&&u.ngModule==null){let y=this.parentInjector.get(st,null);y&&(s=y)}let h=dn(u.componentType??{}),f=Ed(this._lContainer,h?.id??null),p=f?.firstChild??null,g=u.create(d,i,p,s,o,a,this._getHostElementNamespace());return this.insertImpl(g.hostView,l,vi(this._hostTNode,f)),g}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[et];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Gg(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=i[ye],c=new e(l,l[et],l[ye]);c.detach(c.indexOf(t))}}let s=this._adjustIndex(n),o=this._lContainer;return $s(o,i,s,r),t.attachToViewContainerRef(),Eu(nd(o),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Um(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Is(this._lContainer,n);r&&(is(nd(this._lContainer),n),pl(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=Is(this._lContainer,n);return r&&is(nd(this._lContainer),n)!=null?new Wn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};F1=H1,B1=()=>!1;xd=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Td=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){let o=n.getByIndex(s),a=this.queries[o.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Ch(t,n).matches!==null&&this.queries[n].setDirty()}},rl=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=q1(t):this.predicate=t}},Md=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,n!==null?n.push(s):n=[s])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Nd=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let s=r[i];this.matchTNodeWithReadOption(t,n,j1(n,s)),this.matchTNodeWithReadOption(t,n,za(n,t,s,!1,!1))}else r===xs?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,za(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Ls||i===yl||i===xs&&n.type&4)this.addMatch(n.index,-2);else{let s=za(n,t,i,!1,!1);s!==null&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};yi=class{},H_=class{},il=class extends yi{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n;let s=Ng(t);this._bootstrapComponents=HI(s.bootstrap),this._r3Injector=Ku(t,n,[{provide:yi,useValue:this},...r],Ji(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},sl=class extends H_{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new il(this.moduleType,t,[])}},Ms=class extends yi{injector;instance=null;constructor(t){super();let n=new fr([...t.providers,{provide:yi,useValue:this}],t.parent||as(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};Y1=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=_a(!1,n.type),i=r.length>0?xh([r],this._injector,""):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Te({token:e,providedIn:"environment",factory:()=>new e(zt(st))})}return e})();Th=new G("");Mh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=A(Th,{optional:!0})??[];injector=A(Mt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=ya(this.injector,i);if(Ih(s))n.push(s);else if(B_(s)){let o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});n.push(o)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Rs({token:e,factory:e.\u0275fac})}return e})();fx=px;tt=(function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e})(tt||{}),Ym=0,gx=1,me=(function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e})(me||{}),ol=(function(e){return e[e.Initial=-1]="Initial",e})(ol||{}),mx=0,Hs=1,vx=4,_x=5,yx=6,bx=7,id=8,wx=9,Nh=(function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e})(Nh||{});Ix=(()=>{class e{cachedInjectors=new Map;getOrCreateInjector(n,r,i,s){if(!this.cachedInjectors.has(n)){let o=i.length>0?xh(i,r,s):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Te({token:e,providedIn:"environment",factory:()=>new e})}return e})(),Q_=new G("");Nx=null;Ax=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ey=new G(""),ty=new G("");Rx=10,js=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=A(Vn);afterRenderManager=A(hl);zonelessEnabled=A(_s);rootEffectScheduler=A(Oa);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new mt;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=A(Cr);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(lr(n=>!n))}constructor(){A(Tr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=A(st);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=Mt.NULL){return this._injector.get(Nt).run(()=>{if(K(q.BootstrapComponentStart),!this._injector.get(Mh).done){let y="";throw new H(405,y)}let a=dn(n),l=this._injector.get(yi),c=new _i(a,l);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:h}=Lx(r),f=u||c.selector,p=c.create(i,[],f,l.injector,d,h),g=p.location.nativeElement,_=p.injector.get(ey,null);return _?.registerApplication(g),p.onDestroy(()=>{this.detachView(p.hostView),Cs(this.components,p),_?.unregisterApplication(g)}),this._loadComponent(p),K(q.BootstrapComponentEnd,p),p})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){K(q.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(dl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw K(q.ChangeDetectionEnd),new H(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,T(n),this.afterTick.next(),K(q.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ts,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Rx;){K(q.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{K(q.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!us(i))continue;let s=r&&!this.zonelessEnabled?0:1;h_(i,s),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>us(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Cs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(n),this._injector.get(ty,[]).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Cs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new H(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Rs({token:e,factory:e.\u0275fac})}return e})();$x=(()=>{class e{buckets=new Map;callbackBucket=new Map;applicationRef=A(js);ngZone=A(Nt);idleService=A(kv);add(n,r){let i=ev(r);this.callbackBucket.set(n,i);let s=this.buckets.get(i);s==null&&(s={idleId:null,queue:new Set},this.buckets.set(i,s)),s.queue.add(n),this.scheduleBucket(s,r)}remove(n){let r=this.callbackBucket.get(n);if(r===void 0)return;this.callbackBucket.delete(n);let i=this.buckets.get(r);i&&(i.queue.delete(n),i.queue.size===0&&(this.cancelBucket(i),this.buckets.delete(r)))}scheduleBucket(n,r){if(n.idleId!==null)return;let i=ev(r),s=o=>{for(let a of n.queue)if(a(),this.applicationRef._tick(),n.queue.delete(a),this.callbackBucket.delete(a),o&&o.timeRemaining()===0&&!o.didTimeout)break;n.idleId=null,n.queue.size>0?this.scheduleBucket(n,r):this.buckets.delete(i)};n.idleId=this.idleService.requestOnIdle(o=>this.ngZone.run(()=>s(o)),r)}cancelBucket(n){n.idleId!==null&&(this.idleService.cancelOnIdle(n.idleId),n.idleId=null)}ngOnDestroy(){for(let n of this.buckets.values())this.cancelBucket(n);this.buckets.clear(),this.callbackBucket.clear()}static \u0275prov=Te({token:e,providedIn:"root",factory:()=>new e})}return e})();Ld=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),s=this.detach(i);if(i-r>1){let o=this.detach(r);this.attach(r,s),this.attach(i,o)}else this.attach(r,s)}move(t,n){this.attach(n,this.detach(t))}};al=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};Pd=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-le}};$d=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};Fd=class extends Ld{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-le}at(t){return this.getLView(t)[pe].$implicit}attach(t,n){let r=n[ri];this.needsIndexUpdate||=t!==this.length,$s(this.lContainer,n,t,vi(this.templateTNode,r)),Wx(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,qx(this.lContainer,t),Gx(this.lContainer,t)}create(t,n){let r=Ed(this.lContainer,this.templateTNode.tView.ssrId);return Ps(this.hostLView,this.templateTNode,new Pd(this.lContainer,n,t),{dehydratedView:r})}destroy(t){pl(t[I],t)}updateValue(t,n){this.getLView(t)[pe].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[pe].$index=t}getLView(t){return Kx(this.lContainer,t)}};oy=(e,t,n,r,i)=>(gs(!0),zv(t[te],r,Gu()));Yx=(e,t,n,r,i)=>(gs(!0),MI(t[te],""));bs=void 0;Qx=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],bs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],bs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",bs,bs,bs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Zx],ad=Object.create(null);Jx={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};Ks="en-US",tT=Ks;Pt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};kT=(e,t,n,r)=>(gs(!0),xI(t[te],r));Iy={};Ay=(()=>{class e{applicationErrorHandler=A(Vn);appRef=A(js);taskService=A(Cr);ngZone=A(Nt);zonelessEnabled=A(_s);tracing=A(Tr,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new qe;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Zi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(A(Xu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?pm:Yu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Zi+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Rs({token:e,factory:e.\u0275fac})}return e})();qT=(()=>{class e{compileModuleSync(n){return new sl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Rs({token:e,factory:e.\u0275fac})}return e})();jh=new G("",{factory:()=>A(jh,{optional:!0,skipSelf:!0})||GT()})});function KT(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function bH(e){return e.destroyRef}function vn(e,t){return $i(e,t?.equal)}function Py(e){return yp(e)}function ZT(e,t){if(typeof e=="function"){let n=_c(e,YT,t?.equal);return Oy(n,t?.debugName,t?.set)}else{let n=_c(e.source,e.computation,e.equal);return Oy(n,e.debugName,e.set)}}function Oy(e,t,n){let r=e[de],i=e;if(n!==void 0){let s=o=>yc(r,o);i.set=o=>n(o,s),i.update=o=>n(o(Py(e)),s)}else i.set=s=>yc(r,s),i.update=s=>_p(r,s);return i.asReadonly=vs.bind(e),i}var Ys,Ly,YT,$y=m(()=>{ys();ir();bp();Ys=class{destroyed=!1;listeners=null;errorHandler=A(un,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=A(Je);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new H(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(t){if(this.destroyed){console.warn(Xi(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=T(null);try{for(let r of this.listeners)try{r!==null&&r(t)}catch(i){this.errorHandler?.handleError(i)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&KT(this.listeners)),T(n),this.isEmitting=!1}}};Ly=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")},YT=e=>e});function Wy(e,t){let n=Object.create(Ud);n.value=e,n.transformFn=t?.transform;function r(){if(nn(n),n.value===As){let i=null;throw new H(-950,i)}return n.value}return r[de]=n,r}function p3(e){return QT(e)?e.default:e}function QT(e){return e&&typeof e=="object"&&"default"in e}function g3(e){return new Ys}function By(e,t){return Wy(e,t)}function XT(e){return Wy(As,e)}function qy(e,t){let n=Object.create(Ud),r=new Ys;n.value=e;function i(){return nn(n),Hy(n.value),n.value}return i[de]=n,i.asReadonly=vs.bind(i),i.set=s=>{n.equal(n.value,s)||(sn(n,s),r.emit(s))},i.update=s=>{Hy(n.value),i.set(s(n.value))},i.subscribe=r.subscribe.bind(r),i.destroyRef=r.destroyRef,i}function Hy(e){if(e===As)throw new H(952,!1)}function jy(e,t){return qy(e,t)}function JT(e){return qy(As,e)}function Vy(e,t){return Dh(t)}function eM(e,t){return kh(t)}function zy(e,t){return Dh(t)}function tM(e,t){return kh(t)}function _3(e,t){return $_(t)}function rM(e){return iM(ge(),M(),(e&16)===16)}function iM(e,t,n){if(pn(e)&&!n){let r=wt(e.index,t);return new Wn(r,r)}else if(e.type&175){let r=t[ot];return new Wn(r,t)}return null}function Zs(e){return!e.moduleRef}function oM(e){let t=Zs(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Nt);return n.run(()=>{Zs(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Vn),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),Zs(e)){let s=()=>t.destroy(),o=e.platformInjector.get(Uh);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(Uh);o.add(s),e.moduleRef.onDestroy(()=>{Cs(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return lM(r,n,()=>{let s=t.get(Cr),o=s.add(),a=t.get(Mh);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(jh,Ks);if(cy(l||Ks),!t.get(sM,!0))return Zs(e)?t.get(js):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Zs(e)){let u=t.get(js);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return aM?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}function lM(e,t,n){try{let r=n();return Ih(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}function cM(e=[],t){return Mt.create({name:t,providers:[{provide:Iu,useValue:"platform"},{provide:Uh,useValue:new Set([()=>kl=null])},...e]})}function uM(e=[]){if(kl)return kl;let t=cM(e);return kl=t,ny(),dM(t),t}function dM(e){let t=e.get(_m,null);ya(e,()=>{t?.forEach(n=>n())})}function w3(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;K(q.BootstrapApplicationStart);try{let s=i?.injector??uM(r),o=[Ry(),mm,...n||[]],a=new Ms({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return oM({r3Injector:a.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{K(q.BootstrapApplicationEnd)}}function S3(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function C3(e,t){let n=t?.injector??A(Mt),r=n.get(Ut),i=n.get(hl),s=n.get(Tr,null,{optional:!0});i.impl??=n.get(nh);let o=e;typeof o=="function"&&(o={mixedReadWrite:e});let a=n.get(ci,null,{optional:!0}),l=new Wh(i.impl,[o.earlyRead,o.write,o.mixedReadWrite,o.read],a?.view,r,n,s?.snapshot(null));return i.impl.register(l),l}function E3(e){let t=dn(e);if(!t)return null;let n=new _i(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}function D3(){return!1}var Fy,Ii,m3,Gy,v3,nM,y3,b3,Uh,sM,aM,kl,zh,Ky,hM,Wh,_n=m(()=>{ys();ys();Vh();Vh();$y();ir();Fy=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Dv(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};Ii=(By.required=XT,By);m3=(jy.required=JT,jy);Gy=(Vy.required=eM,Vy);v3=(zy.required=tM,zy);nM=1e4,y3=nM-1e3,b3=(()=>{class e{static __NG_ELEMENT_ID__=rM}return e})();Uh=new G(""),sM=new G("");kl=null;zh=Symbol("NOT_SET"),Ky=new Set,hM=xe(ae({},zr),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:zh,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==zh&&!jr(this))return this.signal;try{for(let i of this.cleanup??Ky)i()}finally{this.cleanup?.clear()}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=rn(this),r;try{r=this.userFn.apply(null,t)}finally{Tn(this,n)}return(this.value===zh||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Wh=class extends Ds{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,i,s,o=null){super(t,[void 0,void 0,void 0,void 0],r,!1,s.get(Je),o),this.scheduler=i;for(let a of th){let l=n[a];if(l===void 0)continue;let c=Object.create(hM);c.sequence=this,c.phase=a,c.userFn=l,c.dirty=!0,c.signal=()=>(nn(c),c.value),c.signal[de]=c,c.registerCleanupFn=u=>(c.cleanup??=new Set).add(u),this.nodes[a]=c,this.hooks[a]=u=>c.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??Ky)n()}finally{Mn(t)}}}});var fM,pM,Yy,Zy=m(()=>{fM=2,pM=1,Yy=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(){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:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue("height")),i=Math.max(0,parseInt(n.getPropertyValue("width"))),s=window.getComputedStyle(this._terminal.element),o={top:parseInt(s.getPropertyValue("padding-top")),bottom:parseInt(s.getPropertyValue("padding-bottom")),right:parseInt(s.getPropertyValue("padding-right")),left:parseInt(s.getPropertyValue("padding-left"))},a=o.top+o.bottom,l=o.right+o.left,c=r-a,u=i-l-t;return{cols:Math.max(fM,Math.floor(u/e.css.cell.width)),rows:Math.max(pM,Math.floor(c/e.css.cell.height))}}}});function vM(e){return e.replace(/\r?\n/g,"\r")}function _M(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function yM(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function bM(e,t,n,r){if(e.stopPropagation(),e.clipboardData){let i=e.clipboardData.getData("text/plain");tw(i,t,n,r)}}function tw(e,t,n,r){e=vM(e),e=_M(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=""}function nw(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,s=e.clientY-r.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${i}px`,t.style.top=`${s}px`,t.style.zIndex="1000",t.focus()}function Jy(e,t,n,r,i){nw(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function Zn(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Xl(e,t=0,n=e.length){let r="";for(let i=t;i<n;++i){let s=e[i];s>65535?(s-=65536,r+=String.fromCharCode((s>>10)+55296)+String.fromCharCode(s%1024+56320)):r+=String.fromCharCode(s)}return r}function CM(e){return e[df]||[]}function Le(e){if(qh.has(e))return qh.get(e);let t=function(n,r,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");EM(t,n,i)};return t._id=e,qh.set(e,t),t}function EM(e,t,n){t[eb]===t?t[df].push({id:e,index:n}):(t[df]=[{id:e,index:n}],t[eb]=t)}function IM(e,t){if(confirm(`Do you want to navigate to ${t}?
5
-
6
- WARNING: This link could potentially be dangerous`)){let n=window.open();if(n){try{n.opener=null}catch{}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}function Rl(e){NM(e)||MM.onUnexpectedError(e)}function NM(e){return e instanceof AM?!0:e instanceof Error&&e.name===ff&&e.message===ff}function RM(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function ht(e,t=0){return e[e.length-(1+t)]}function LM(e,t){return(n,r)=>t(e(n),e(r))}function PM(e,t){let n=Object.create(null);for(let r of e){let i=t(r),s=n[i];s||(s=n[i]=[]),s.push(r)}return n}function FM(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}function jM(e){Pr=e}function ec(e){return Pr?.trackDisposable(e),e}function tc(e){Pr?.markAsDisposed(e)}function fo(e,t){Pr?.setParent(e,t)}function VM(e,t){if(Pr)for(let n of e)Pr.setParent(n,t)}function sb(e){return Pr?.markAsSingleton(e),e}function $r(e){if(pw.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function zM(...e){let t=ie(()=>$r(e));return VM(e,t),t}function ie(e){let t=ec({dispose:FM(()=>{tc(t),e()})});return t}function iN(e,t,n){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",n)}function sN(e){return Yf.INSTANCE.getZoomFactor(e)}function oN(){return $l}function CN(e){if(e.charCode){let n=String.fromCharCode(e.charCode).toUpperCase();return Dw.fromString(n)}let t=e.keyCode;if(t===3)return 7;if(Cf)switch(t){case 59:return 85;case 60:if(pN)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Jt)return 57;break}else if(Pl&&(Jt&&t===93||!Jt&&t===92))return 57;return bN[t]||0}function xN(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,n=e.parent.location;if(t.origin!=="null"&&n.origin!=="null"&&t.origin!==n.origin)return null}catch{return null}return e.parent}function ON(e){return 55296<=e&&e<=56319}function gb(e){return 56320<=e&&e<=57343}function PN(e,t){return(e-55296<<10)+(t-56320)+65536}function $N(e){return Jf(e,0)}function Jf(e,t){switch(typeof e){case"object":return e===null?wn(349,t):Array.isArray(e)?BN(e,t):HN(e,t);case"string":return xw(e,t);case"boolean":return FN(e,t);case"number":return wn(e,t);case"undefined":return wn(937,t);default:return wn(617,t)}}function wn(e,t){return(t<<5)-t+e|0}function FN(e,t){return wn(e?433:863,t)}function xw(e,t){t=wn(149417,t);for(let n=0,r=e.length;n<r;n++)t=wn(e.charCodeAt(n),t);return t}function BN(e,t){return t=wn(104579,t),e.reduce((n,r)=>Jf(r,n),t)}function HN(e,t){return t=wn(181387,t),Object.keys(e).sort().reduce((n,r)=>(n=xw(r,n),Jf(e[r],n)),t)}function Qh(e,t,n=32){let r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function mb(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function jN(e,t,n="0"){for(;e.length<t;)e=n+e;return e}function Qs(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join(""):jN((e>>>0).toString(16),t/4)}function L(e,t,n,r){return new UN(e,t,n,r)}function WN(e,t){return function(n){return t(new io(e,n))}}function qN(e){return function(t){return e(new Ef(t))}}function YN(e){let t=e.getBoundingClientRect(),n=Ft(e);return{left:t.left+n.scrollX,top:t.top+n.scrollY,width:t.width,height:t.height}}function Mw(e,t,n,...r){let i=ZN.exec(t);if(!i)throw new Error("Bad use of emmet");let s=i[1]||"div",o;return e!=="http://www.w3.org/1999/xhtml"?o=document.createElementNS(e,s):o=document.createElement(s),i[3]&&(o.id=i[3]),i[4]&&(o.className=i[4].replace(/\./g," ").trim()),n&&Object.entries(n).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?o[a]=l:a==="selected"?l&&o.setAttribute(a,"true"):o.setAttribute(a,l))}),o.append(...r),o}function QN(e,t,...n){return Mw("http://www.w3.org/1999/xhtml",e,t,...n)}function rt(e){return typeof e=="number"?`${e}px`:e}function ho(e){return new XN(e)}function JN(e,t,n){let r=null,i=null;if(typeof n.value=="function"?(r="value",i=n.value,i.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof n.get=="function"&&(r="get",i=n.get),!i)throw new Error("not supported");let s=`$memoize$${t}`;n[r]=function(...o){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,o)}),this[s]}}function Jh(e,t){let n=t-e;return function(r){return e+n*oA(r)}}function iA(e,t,n){return function(r){return r<n?e(r/n):t((r-n)/(1-n))}}function sA(e){return Math.pow(e,3)}function oA(e){return 1-sA(1-e)}function mA(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,Jt&&(t.className+=" mac"),t}function Ar(e){let t=e.toString(16);return t.length<2?"0"+t:t}function yn(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function yA(e){return 57508<=e&&e<=57558}function bA(e){return 9472<=e&&e<=9631}function wA(e){return yA(e)||bA(e)}function SA(){return{css:{canvas:Tl(),cell:Tl()},device:{canvas:Tl(),cell:Tl(),char:{width:0,height:0,left:0,top:0}}}}function Tl(){return{width:0,height:0}}function kb(e,t,n){for(;e.length<n;)e=t+e;return e}function DA(){return new EA}function tp(e,t,n){let r=n.getBoundingClientRect(),i=e.getComputedStyle(n),s=parseInt(i.getPropertyValue("padding-left")),o=parseInt(i.getPropertyValue("padding-top"));return[t.clientX-r.left-s,t.clientY-r.top-o]}function AA(e,t,n,r,i,s,o,a,l){if(!s)return;let c=tp(e,t,n);if(c)return c[0]=Math.ceil((c[0]+(l?o/2:0))/o),c[1]=Math.ceil(c[1]/a),c[0]=Math.min(Math.max(c[0],1),r+(l?1:0)),c[1]=Math.min(Math.max(c[1],1),i),c}function OA(){if(!Fw)return 0;let e=yo.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}function VA(e,t,n,r){let i=n.buffer.x,s=n.buffer.y;if(!n.buffer.hasScrollback)return WA(i,s,e,t,n,r)+rc(s,t,n,r)+qA(i,s,e,t,n,r);let o;if(s===t)return o=i>e?"D":"C",go(Math.abs(i-e),po(o,r));o=s>t?"D":"C";let a=Math.abs(s-t),l=UA(s>t?e:i,n)+(a-1)*n.cols+1+zA(s>t?i:e,n);return go(l,po(o,r))}function zA(e,t){return e-1}function UA(e,t){return t.cols-e}function WA(e,t,n,r,i,s){return rc(t,r,i,s).length===0?"":go(zw(e,t,e,t-Fr(t,i),!1,i).length,po("D",s))}function rc(e,t,n,r){let i=e-Fr(e,n),s=t-Fr(t,n),o=Math.abs(i-s)-GA(e,t,n);return go(o,po(Vw(e,t),r))}function qA(e,t,n,r,i,s){let o;rc(t,r,i,s).length>0?o=r-Fr(r,i):o=t;let a=r,l=KA(e,t,n,r,i,s);return go(zw(e,o,n,a,l==="C",i).length,po(l,s))}function GA(e,t,n){let r=0,i=e-Fr(e,n),s=t-Fr(t,n);for(let o=0;o<Math.abs(i-s);o++){let a=Vw(e,t)==="A"?-1:1;n.buffer.lines.get(i+a*o)?.isWrapped&&r++}return r}function Fr(e,t){let n=0,r=t.buffer.lines.get(e),i=r?.isWrapped;for(;i&&e>=0&&e<t.rows;)n++,r=t.buffer.lines.get(--e),i=r?.isWrapped;return n}function KA(e,t,n,r,i,s){let o;return rc(n,r,i,s).length>0?o=r-Fr(r,i):o=t,e<n&&o<=r||e>=n&&o<r?"C":"D"}function Vw(e,t){return e>t?"A":"B"}function zw(e,t,n,r,i,s){let o=e,a=t,l="";for(;(o!==n||a!==r)&&a>=0&&a<s.buffer.lines.length;)o+=i?1:-1,i&&o>s.cols-1?(l+=s.buffer.translateBufferLineToString(a,!1,e,o),o=0,e=0,a++):!i&&o<0&&(l+=s.buffer.translateBufferLineToString(a,!1,0,e+1),o=s.cols-1,e=o,a--);return l+s.buffer.translateBufferLineToString(a,!1,e,o)}function po(e,t){let n=t?"O":"[";return v.ESC+n+e}function go(e,t){e=Math.floor(e);let n="";for(let r=0;r<e;r++)n+=t;return n}function xb(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)}function ee(e,t){if(e!==void 0)try{return ue.toColor(e)}catch{}return t}function aR(e,t,n,r,i,s){let o=[];for(let a=0;a<e.length-1;a++){let l=a,c=e.get(++l);if(!c.isWrapped)continue;let u=[e.get(a)];for(;l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(!s&&r>=a&&r<l){a+=u.length-1;continue}let d=0,h=mo(u,d,t),f=1,p=0;for(;f<u.length;){let _=mo(u,f,t),y=_-p,O=n-h,P=Math.min(y,O);u[d].copyCellsFrom(u[f],p,h,P,!1),h+=P,h===n&&(d++,h=0),p+=P,p===_&&(f++,p=0),h===0&&d!==0&&u[d-1].getWidth(n-1)===2&&(u[d].copyCellsFrom(u[d-1],n-1,h++,1,!1),u[d-1].setCell(n-1,i))}u[d].replaceCells(h,n,i);let g=0;for(let _=u.length-1;_>0&&(_>d||u[_].getTrimmedLength()===0);_--)g++;g>0&&(o.push(a+u.length-g),o.push(g)),a+=u.length-1}return o}function lR(e,t){let n=[],r=0,i=t[r],s=0;for(let o=0;o<e.length;o++)if(i===o){let a=t[++r];e.onDeleteEmitter.fire({index:o-s,amount:a}),o+=a-1,s+=a,i=t[++r]}else n.push(o);return{layout:n,countRemoved:s}}function cR(e,t){let n=[];for(let r=0;r<t.length;r++)n.push(e.get(t[r]));for(let r=0;r<n.length;r++)e.set(r,n[r]);e.length=t.length}function uR(e,t,n){let r=[],i=e.map((l,c)=>mo(e,c,t)).reduce((l,c)=>l+c),s=0,o=0,a=0;for(;a<i;){if(i-a<n){r.push(i-a);break}s+=n;let l=mo(e,o,t);s>l&&(s-=l,o++);let c=e[o].getWidth(s-1)===2;c&&s--;let u=c?n-1:n;r.push(u),a+=u}return r}function mo(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();let r=!e[t].hasContent(n-1)&&e[t].getWidth(n-1)===1,i=e[t+1].getWidth(0)===2;return r&&i?n-1:n}function mR(e){return e==="block"||e==="underline"||e==="bar"}function lo(e,t=5){if(typeof e!="object")return e;let n=Array.isArray(e)?[]:{};for(let r in e)n[r]=t<=1?e[r]:e[r]&&lo(e[r],t-1);return n}function rf(e,t){let n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(n|=64,n|=e.action):(n|=e.button&3,e.button&4&&(n|=64),e.button&8&&(n|=128),e.action===32?n|=32:e.action===0&&!t&&(n|=3)),n}function _R(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}function Hb(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);n&&t&&(n.isWrapped=t[3]!==0&&t[3]!==32)}function Vb(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let n=IR.exec(t);if(n){let r=n[1]?15:n[4]?255:n[7]?4095:65535;return[Math.round(parseInt(n[1]||n[4]||n[7]||n[10],16)/r*255),Math.round(parseInt(n[2]||n[5]||n[8]||n[11],16)/r*255),Math.round(parseInt(n[3]||n[6]||n[9]||n[12],16)/r*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),xR.exec(t)&&[3,6,9,12].includes(t.length))){let n=t.length/3,r=[0,0,0];for(let i=0;i<3;++i){let s=parseInt(t.slice(n*i,n*i+n),16);r[i]=n===1?s<<4:n===2?s:n===3?s>>4:s>>8}return r}}function af(e,t){let n=e.toString(16),r=n.length<2?"0"+n:n;switch(t){case 4:return n[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}function TR(e,t=16){let[n,r,i]=e;return`rgb:${af(n,t)}/${af(r,t)}/${af(i,t)}`}function Ub(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}function Gb(e){return 0<=e&&e<256}function $R(e,t,n,r){let i={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?i.key=v.ESC+"OA":i.key=v.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?i.key=v.ESC+"OD":i.key=v.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?i.key=v.ESC+"OC":i.key=v.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?i.key=v.ESC+"OB":i.key=v.ESC+"[B");break;case 8:i.key=e.ctrlKey?"\b":v.DEL,e.altKey&&(i.key=v.ESC+i.key);break;case 9:if(e.shiftKey){i.key=v.ESC+"[Z";break}i.key=v.HT,i.cancel=!0;break;case 13:i.key=e.altKey?v.ESC+v.CR:v.CR,i.cancel=!0;break;case 27:i.key=v.ESC,e.altKey&&(i.key=v.ESC+v.ESC),i.cancel=!0;break;case 37:if(e.metaKey)break;s?i.key=v.ESC+"[1;"+(s+1)+"D":t?i.key=v.ESC+"OD":i.key=v.ESC+"[D";break;case 39:if(e.metaKey)break;s?i.key=v.ESC+"[1;"+(s+1)+"C":t?i.key=v.ESC+"OC":i.key=v.ESC+"[C";break;case 38:if(e.metaKey)break;s?i.key=v.ESC+"[1;"+(s+1)+"A":t?i.key=v.ESC+"OA":i.key=v.ESC+"[A";break;case 40:if(e.metaKey)break;s?i.key=v.ESC+"[1;"+(s+1)+"B":t?i.key=v.ESC+"OB":i.key=v.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(i.key=v.ESC+"[2~");break;case 46:s?i.key=v.ESC+"[3;"+(s+1)+"~":i.key=v.ESC+"[3~";break;case 36:s?i.key=v.ESC+"[1;"+(s+1)+"H":t?i.key=v.ESC+"OH":i.key=v.ESC+"[H";break;case 35:s?i.key=v.ESC+"[1;"+(s+1)+"F":t?i.key=v.ESC+"OF":i.key=v.ESC+"[F";break;case 33:e.shiftKey?i.type=2:e.ctrlKey?i.key=v.ESC+"[5;"+(s+1)+"~":i.key=v.ESC+"[5~";break;case 34:e.shiftKey?i.type=3:e.ctrlKey?i.key=v.ESC+"[6;"+(s+1)+"~":i.key=v.ESC+"[6~";break;case 112:s?i.key=v.ESC+"[1;"+(s+1)+"P":i.key=v.ESC+"OP";break;case 113:s?i.key=v.ESC+"[1;"+(s+1)+"Q":i.key=v.ESC+"OQ";break;case 114:s?i.key=v.ESC+"[1;"+(s+1)+"R":i.key=v.ESC+"OR";break;case 115:s?i.key=v.ESC+"[1;"+(s+1)+"S":i.key=v.ESC+"OS";break;case 116:s?i.key=v.ESC+"[15;"+(s+1)+"~":i.key=v.ESC+"[15~";break;case 117:s?i.key=v.ESC+"[17;"+(s+1)+"~":i.key=v.ESC+"[17~";break;case 118:s?i.key=v.ESC+"[18;"+(s+1)+"~":i.key=v.ESC+"[18~";break;case 119:s?i.key=v.ESC+"[19;"+(s+1)+"~":i.key=v.ESC+"[19~";break;case 120:s?i.key=v.ESC+"[20;"+(s+1)+"~":i.key=v.ESC+"[20~";break;case 121:s?i.key=v.ESC+"[21;"+(s+1)+"~":i.key=v.ESC+"[21~";break;case 122:s?i.key=v.ESC+"[23;"+(s+1)+"~":i.key=v.ESC+"[23~";break;case 123:s?i.key=v.ESC+"[24;"+(s+1)+"~":i.key=v.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?i.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?i.key=v.NUL:e.keyCode>=51&&e.keyCode<=55?i.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?i.key=v.DEL:e.keyCode===219?i.key=v.ESC:e.keyCode===220?i.key=v.FS:e.keyCode===221&&(i.key=v.GS);else if((!n||r)&&e.altKey&&!e.metaKey){let o=PR[e.keyCode]?.[e.shiftKey?1:0];if(o)i.key=v.ESC+o;else if(e.keyCode>=65&&e.keyCode<=90){let a=e.ctrlKey?e.keyCode-64:e.keyCode+32,l=String.fromCharCode(a);e.shiftKey&&(l=l.toUpperCase()),i.key=v.ESC+l}else if(e.keyCode===32)i.key=v.ESC+(e.ctrlKey?v.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let a=e.code.slice(3,4);e.shiftKey||(a=a.toLowerCase()),i.key=v.ESC+a,i.cancel=!0}}else n&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(i.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?i.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(i.key=v.US),e.key==="@"&&(i.key=v.NUL));break}return i}function zR(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}function WR(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var ew,gM,mM,fe,D,Qy,cf,Xy,uf,wM,SM,rw,Qn,vo,zl,Dt,eb,df,qh,Ze,aw,Br,DM,Gf,lw,Qe,cw,kM,_o,hf,Jl,Cn,Kf,En,xM,uw,Ni,dw,TM,MM,ff,AM,tb,gf,fw,OM,nb,rb,ib,N3,$M,pw,BM,Pr,HM,UM,Xn,B,Mi,gt,vf,ce,ob,WM,qM,GM,ab,KM,He,yf,YM,lb,ZM,QM,wf,XM,JM,eN,Ll,tN,nN,Ol,b,rN,Sf,Yf,R3,L3,Ai,Cf,Pl,Zf,bw,O3,P3,$l,Ti,Ul,Wl,uo,aN,ww,Sw,lN,cN,uN,dN,xl,Fl,cb,hN,bn,Sn,pt,Cw,fN,Gh,Ew,Jt,pN,Kh,gN,$3,en,qn,mN,vN,_N,yN,F3,B3,H3,j3,Gn,V3,Qf,Yh,ub,db,bN,Dw,wN,SN,EN,DN,kN,IN,Ef,hb,TN,io,fb,Iw,MN,NN,Xf,AN,RN,Zh,LN,pb,VN,z3,Ft,U3,W3,q3,vb,G3,K3,zN,Y3,Z3,UN,_b,GN,ql,KN,Xh,yb,Q3,Me,ZN,XN,Nw,Xt,so,eA,ep,bb,tA,nA,rA,wb,Sb,aA,lA,Aw,Rw,cA,uA,dA,Cb,Eb,hA,xf,fA,pA,gA,Tf,Mf,vA,Zt,Kn,Xs,Gl,v,Hl,Lw,Nf,Ne,Ae,Re,he,Db,we,re,ue,Ye,jl,_A,Kl,Af,CA,EA,ef,St,Ml,Ib,Js,Nl,kA,Rf,Lf,Ow,IA,xA,TA,MA,NA,Of,RA,Pw,nc,yo,bo,$w,LA,Fw,Yl,PA,$A,Bw,np,Hw,jw,FA,BA,Zl,HA,Pf,jA,YA,tf,ZA,QA,XA,JA,eR,$f,Tb,Mb,Ee,Rr,oo,Nb,Ab,eo,tR,Ff,nR,rR,iR,sR,Bf,oR,Rb,j,be,Al,nf,ao,dR,hR,ke,Lr,Lb,Ob,fR,qw,Gw,Hf,xi,pR,gR,Pb,$b,jf,Fb,sf,Bb,Vf,of,vR,De,yR,Or,bR,to,wR,Kw,no,SR,ft,ro,CR,co,jb,ER,Et,DR,kR,IR,xR,MR,Yn,zb,Wb,qb,NR,Uf,AR,Kb,RR,LR,Wf,Yb,OR,PR,ve,FR,lf,Zb,BR,HR,jR,VR,Qb,Xb,Ql,qf,UR,qR,GR,Jb,KR,YR,ZR,QR,Qt,Yw,Zw=m(()=>{ew=Object.defineProperty,gM=Object.getOwnPropertyDescriptor,mM=(e,t)=>{for(var n in t)ew(e,n,{get:t[n],enumerable:!0})},fe=(e,t,n,r)=>{for(var i=r>1?void 0:r?gM(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&ew(t,n,i),i},D=(e,t)=>(n,r)=>t(n,r,e),Qy="Terminal input",cf={get:()=>Qy,set:e=>Qy=e},Xy="Too much output to announce, navigate to rows manually to read",uf={get:()=>Xy,set:e=>Xy=e};wM=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let s=e.charCodeAt(i++);56320<=s&&s<=57343?t[r++]=(this._interim-55296)*1024+s-56320+65536:(t[r++]=this._interim,t[r++]=s),this._interim=0}for(let s=i;s<n;++s){let o=e.charCodeAt(s);if(55296<=o&&o<=56319){if(++s>=n)return this._interim=o,r;let a=e.charCodeAt(s);56320<=a&&a<=57343?t[r++]=(o-55296)*1024+a-56320+65536:(t[r++]=o,t[r++]=a);continue}o!==65279&&(t[r++]=o)}return r}},SM=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,s,o,a,l=0,c=0;if(this.interim[0]){let h=!1,f=this.interim[0];f&=(f&224)===192?31:(f&240)===224?15:7;let p=0,g;for(;(g=this.interim[++p]&63)&&p<4;)f<<=6,f|=g;let _=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,y=_-p;for(;c<y;){if(c>=n)return 0;if(g=e[c++],(g&192)!==128){c--,h=!0;break}else this.interim[p++]=g,f<<=6,f|=g&63}h||(_===2?f<128?c--:t[r++]=f:_===3?f<2048||f>=55296&&f<=57343||f===65279||(t[r++]=f):f<65536||f>1114111||(t[r++]=f)),this.interim.fill(0)}let u=n-4,d=c;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((s=e[d+1])&128)&&!((o=e[d+2])&128)&&!((a=e[d+3])&128);)t[r++]=i,t[r++]=s,t[r++]=o,t[r++]=a,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)===192){if(d>=n)return this.interim[0]=i,r;if(s=e[d++],(s&192)!==128){d--;continue}if(l=(i&31)<<6|s&63,l<128){d--;continue}t[r++]=l}else if((i&240)===224){if(d>=n)return this.interim[0]=i,r;if(s=e[d++],(s&192)!==128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=s,r;if(o=e[d++],(o&192)!==128){d--;continue}if(l=(i&15)<<12|(s&63)<<6|o&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[r++]=l}else if((i&248)===240){if(d>=n)return this.interim[0]=i,r;if(s=e[d++],(s&192)!==128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=s,r;if(o=e[d++],(o&192)!==128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=s,this.interim[2]=o,r;if(a=e[d++],(a&192)!==128){d--;continue}if(l=(i&7)<<18|(s&63)<<12|(o&63)<<6|a&63,l<65536||l>1114111)continue;t[r++]=l}}return r}},rw="",Qn=" ",vo=class iw{constructor(){this.fg=0,this.bg=0,this.extended=new zl}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 iw;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}},zl=class sw{constructor(t=0,n=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=n}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 sw(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Dt=class ow extends vo{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new zl,this.combinedData=""}static fromCharData(t){let n=new ow;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?Zn(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 n=!1;if(t[1].length>2)n=!0;else if(t[1].length===2){let r=t[1].charCodeAt(0);if(55296<=r&&r<=56319){let i=t[1].charCodeAt(1);56320<=i&&i<=57343?this.content=(r-55296)*1024+i-56320+65536|t[2]<<22:n=!0}else n=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;n&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},eb="di$target",df="di$dependencies",qh=new Map;Ze=Le("BufferService"),aw=Le("CoreMouseService"),Br=Le("CoreService"),DM=Le("CharsetService"),Gf=Le("InstantiationService"),lw=Le("LogService"),Qe=Le("OptionsService"),cw=Le("OscLinkService"),kM=Le("UnicodeService"),_o=Le("DecorationService"),hf=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,s=new Dt,o=n.getTrimmedLength(),a=-1,l=-1,c=!1;for(let u=0;u<o;u++)if(!(l===-1&&!n.hasContent(u))){if(n.loadCell(u,s),s.hasExtendedAttrs()&&s.extended.urlId)if(l===-1){l=u,a=s.extended.urlId;continue}else c=s.extended.urlId!==a;else l!==-1&&(c=!0);if(c||l!==-1&&u===o-1){let d=this._oscLinkService.getLinkData(a)?.uri;if(d){let h={start:{x:l+1,y:e},end:{x:u+(!c&&u===o-1?1:0),y:e}},f=!1;if(!i?.allowNonHttpProtocols)try{let p=new URL(d);["http:","https:"].includes(p.protocol)||(f=!0)}catch{f=!0}f||r.push({text:d,range:h,activate:(p,g)=>i?i.activate(p,g,h):IM(p,g),hover:(p,g)=>i?.hover?.(p,g,h),leave:(p,g)=>i?.leave?.(p,g,h)})}c=!1,s.hasExtendedAttrs()&&s.extended.urlId?(l=u,a=s.extended.urlId):(l=-1,a=-1)}}t(r)}};hf=fe([D(0,Ze),D(1,Qe),D(2,cw)],hf);Jl=Le("CharSizeService"),Cn=Le("CoreBrowserService"),Kf=Le("MouseService"),En=Le("RenderService"),xM=Le("SelectionService"),uw=Le("CharacterJoinerService"),Ni=Le("ThemeService"),dw=Le("LinkProviderService"),TM=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?tb.isErrorNoTelemetry(e)?new tb(e.message+`
7
-
8
- `+e.stack):new Error(e.message+`
9
-
10
- `+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)}},MM=new TM;ff="Canceled";AM=class extends Error{constructor(){super(ff),this.name=this.message}};tb=class pf extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof pf)return t;let n=new pf;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},gf=class hw extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,hw.prototype)}};(e=>{function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(fw||={});OM=(e,t)=>e-t,nb=class mf{constructor(t){this.iterate=t}forEach(t){this.iterate(n=>(t(n),!0))}toArray(){let t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new mf(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new mf(n=>this.iterate(r=>n(t(r))))}some(t){let n=!1;return this.iterate(r=>(n=t(r),!n)),n}findFirst(t){let n;return this.iterate(r=>t(r)?(n=r,!1):!0),n}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||fw.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};nb.empty=new nb(e=>{});N3=class{constructor(e,t){this.toKey=t,this._map=new Map,this[rb]="SetWithKey";for(let n of e)this.add(n)}get size(){return this._map.size}add(e){let t=this.toKey(e);return this._map.set(t,e),this}delete(e){return this._map.delete(this.toKey(e))}has(e){return this._map.has(this.toKey(e))}*entries(){for(let e of this._map.values())yield[e,e]}keys(){return this.values()}*values(){for(let e of this._map.values())yield e}clear(){this._map.clear()}forEach(e,t){this._map.forEach(n=>e.call(t,n,n,this))}[(ib=Symbol.iterator,rb=Symbol.toStringTag,ib)](){return this.values()}},$M=class{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}get(e){return this.map.get(e)||new Set}};(e=>{function t(x){return x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(x){yield x}e.single=i;function s(x){return t(x)?x:i(x)}e.wrap=s;function o(x){return x||n}e.from=o;function*a(x){for(let V=x.length-1;V>=0;V--)yield x[V]}e.reverse=a;function l(x){return!x||x[Symbol.iterator]().next().done===!0}e.isEmpty=l;function c(x){return x[Symbol.iterator]().next().value}e.first=c;function u(x,V){let z=0;for(let Oe of x)if(V(Oe,z++))return!0;return!1}e.some=u;function d(x,V){for(let z of x)if(V(z))return z}e.find=d;function*h(x,V){for(let z of x)V(z)&&(yield z)}e.filter=h;function*f(x,V){let z=0;for(let Oe of x)yield V(Oe,z++)}e.map=f;function*p(x,V){let z=0;for(let Oe of x)yield*V(Oe,z++)}e.flatMap=p;function*g(...x){for(let V of x)yield*V}e.concat=g;function _(x,V,z){let Oe=z;for(let kt of x)Oe=V(Oe,kt);return Oe}e.reduce=_;function*y(x,V,z=x.length){for(V<0&&(V+=x.length),z<0?z+=x.length:z>x.length&&(z=x.length);V<z;V++)yield x[V]}e.slice=y;function O(x,V=Number.POSITIVE_INFINITY){let z=[];if(V===0)return[z,x];let Oe=x[Symbol.iterator]();for(let kt=0;kt<V;kt++){let Bt=Oe.next();if(Bt.done)return[z,e.empty()];z.push(Bt.value)}return[z,{[Symbol.iterator](){return Oe}}]}e.consume=O;async function P(x){let V=[];for await(let z of x)V.push(z);return Promise.resolve(V)}e.asyncToArray=P})(pw||={});BM=!1,Pr=null,HM=class gw{constructor(){this.livingDisposables=new Map}getDisposableData(t){let n=this.livingDisposables.get(t);return n||(n={parent:null,source:null,isSingleton:!1,value:t,idx:gw.idx++},this.livingDisposables.set(t,n)),n}trackDisposable(t){let n=this.getDisposableData(t);n.source||(n.source=new Error().stack)}setParent(t,n){let r=this.getDisposableData(t);r.parent=n}markAsDisposed(t){this.livingDisposables.delete(t)}markAsSingleton(t){this.getDisposableData(t).isSingleton=!0}getRootParent(t,n){let r=n.get(t);if(r)return r;let i=t.parent?this.getRootParent(this.getDisposableData(t.parent),n):t;return n.set(t,i),i}getTrackedDisposables(){let t=new Map;return[...this.livingDisposables.entries()].filter(([,n])=>n.source!==null&&!this.getRootParent(n,t).isSingleton).flatMap(([n])=>n)}computeLeakingDisposables(t=10,n){let r;if(n)r=n;else{let l=new Map,c=[...this.livingDisposables.values()].filter(d=>d.source!==null&&!this.getRootParent(d,l).isSingleton);if(c.length===0)return;let u=new Set(c.map(d=>d.value));if(r=c.filter(d=>!(d.parent&&u.has(d.parent))),r.length===0)throw new Error("There are cyclic diposable chains!")}if(!r)return;function i(l){function c(d,h){for(;d.length>0&&h.some(f=>typeof f=="string"?f===d[0]:d[0].match(f));)d.shift()}let u=l.source.split(`
11
- `).map(d=>d.trim().replace("at ","")).filter(d=>d!=="");return c(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}let s=new $M;for(let l of r){let c=i(l);for(let u=0;u<=c.length;u++)s.add(c.slice(0,u).join(`
12
- `),l)}r.sort(LM(l=>l.idx,OM));let o="",a=0;for(let l of r.slice(0,t)){a++;let c=i(l),u=[];for(let d=0;d<c.length;d++){let h=c[d];h=`(shared with ${s.get(c.slice(0,d+1).join(`
13
- `)).size}/${r.length} leaks) at ${h}`;let f=s.get(c.slice(0,d).join(`
14
- `)),p=PM([...f].map(g=>i(g)[d]),g=>g);delete p[c[d]];for(let[g,_]of Object.entries(p))u.unshift(` - stacktraces of ${_.length} other leaks continue with ${g}`);u.unshift(h)}o+=`
15
-
16
-
17
- ==================== Leaking disposable ${a}/${r.length}: ${l.value.constructor.name} ====================
18
- ${u.join(`
19
- `)}
20
- ============================================================
21
-
22
- `}return r.length>t&&(o+=`
23
-
24
-
25
- ... and ${r.length-t} more leaking disposables
26
-
27
- `),{leaks:r,details:o}}};HM.idx=0;if(BM){let e="__is_disposable_tracked__";jM(new class{trackDisposable(t){let n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==B.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==B.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}UM=(()=>{let e=class mw{constructor(){this._toDispose=new Set,this._isDisposed=!1,ec(this)}dispose(){this._isDisposed||(tc(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{$r(this._toDispose)}finally{this._toDispose.clear()}}add(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return fo(n,this),this._isDisposed?mw.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(n),n}delete(n){if(n){if(n===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(n),n.dispose()}}deleteAndLeak(n){n&&this._toDispose.has(n)&&(this._toDispose.delete(n),fo(n,null))}};return e.DISABLE_DISPOSED_WARNING=!1,e})(),Xn=UM,B=class{constructor(){this._store=new Xn,ec(this),fo(this._store,this)}dispose(){tc(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};B.None=Object.freeze({dispose(){}});Mi=class{constructor(){this._isDisposed=!1,ec(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&fo(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,tc(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&fo(e,null),e}},gt=typeof window=="object"?window:globalThis,vf=class _f{constructor(t){this.element=t,this.next=_f.Undefined,this.prev=_f.Undefined}};vf.Undefined=new vf(void 0);ce=vf,ob=class{constructor(){this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ce.Undefined}clear(){let e=this._first;for(;e!==ce.Undefined;){let t=e.next;e.prev=ce.Undefined,e.next=ce.Undefined,e=t}this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new ce(e);if(this._first===ce.Undefined)this._first=n,this._last=n;else if(t){let i=this._last;this._last=n,n.prev=i,i.next=n}else{let i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==ce.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ce.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ce.Undefined&&e.next!==ce.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ce.Undefined&&e.next===ce.Undefined?(this._first=ce.Undefined,this._last=ce.Undefined):e.next===ce.Undefined?(this._last=this._last.prev,this._last.next=ce.Undefined):e.prev===ce.Undefined&&(this._first=this._first.next,this._first.prev=ce.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ce.Undefined;)yield e.element,e=e.next}},WM=globalThis.performance&&typeof globalThis.performance.now=="function",qM=class vw{static create(t){return new vw(t)}constructor(t){this._now=WM&&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}},GM=!1,ab=!1,KM=!1;(e=>{e.None=()=>B.None;function t(C){if(KM){let{onDidAddListener:w}=C,k=wf.create(),E=0;C.onDidAddListener=()=>{++E===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),k.print()),w?.()}}}function n(C,w){return h(C,()=>{},0,void 0,!0,void 0,w)}e.defer=n;function r(C){return(w,k=null,E)=>{let N=!1,S;return S=C(U=>{if(!N)return S?S.dispose():N=!0,w.call(k,U)},null,E),N&&S.dispose(),S}}e.once=r;function i(C,w,k){return u((E,N=null,S)=>C(U=>E.call(N,w(U)),null,S),k)}e.map=i;function s(C,w,k){return u((E,N=null,S)=>C(U=>{w(U),E.call(N,U)},null,S),k)}e.forEach=s;function o(C,w,k){return u((E,N=null,S)=>C(U=>w(U)&&E.call(N,U),null,S),k)}e.filter=o;function a(C){return C}e.signal=a;function l(...C){return(w,k=null,E)=>{let N=zM(...C.map(S=>S(U=>w.call(k,U))));return d(N,E)}}e.any=l;function c(C,w,k,E){let N=k;return i(C,S=>(N=w(N,S),N),E)}e.reduce=c;function u(C,w){let k,E={onWillAddFirstListener(){k=C(N.fire,N)},onDidRemoveLastListener(){k?.dispose()}};w||t(E);let N=new b(E);return w?.add(N),N.event}function d(C,w){return w instanceof Array?w.push(C):w&&w.add(C),C}function h(C,w,k=100,E=!1,N=!1,S,U){let oe,Pe,Ht,tn=0,Ie,Dn={leakWarningThreshold:S,onWillAddFirstListener(){oe=C(Jn=>{tn++,Pe=w(Pe,Jn),E&&!Ht&&(Ue.fire(Pe),Pe=void 0),Ie=()=>{let Ri=Pe;Pe=void 0,Ht=void 0,(!E||tn>1)&&Ue.fire(Ri),tn=0},typeof k=="number"?(clearTimeout(Ht),Ht=setTimeout(Ie,k)):Ht===void 0&&(Ht=0,queueMicrotask(Ie))})},onWillRemoveListener(){N&&tn>0&&Ie?.()},onDidRemoveLastListener(){Ie=void 0,oe.dispose()}};U||t(Dn);let Ue=new b(Dn);return U?.add(Ue),Ue.event}e.debounce=h;function f(C,w=0,k){return e.debounce(C,(E,N)=>E?(E.push(N),E):[N],w,void 0,!0,void 0,k)}e.accumulate=f;function p(C,w=(E,N)=>E===N,k){let E=!0,N;return o(C,S=>{let U=E||!w(S,N);return E=!1,N=S,U},k)}e.latch=p;function g(C,w,k){return[e.filter(C,w,k),e.filter(C,E=>!w(E),k)]}e.split=g;function _(C,w=!1,k=[],E){let N=k.slice(),S=C(Pe=>{N?N.push(Pe):oe.fire(Pe)});E&&E.add(S);let U=()=>{N?.forEach(Pe=>oe.fire(Pe)),N=null},oe=new b({onWillAddFirstListener(){S||(S=C(Pe=>oe.fire(Pe)),E&&E.add(S))},onDidAddFirstListener(){N&&(w?setTimeout(U):U())},onDidRemoveLastListener(){S&&S.dispose(),S=null}});return E&&E.add(oe),oe.event}e.buffer=_;function y(C,w){return(k,E,N)=>{let S=w(new P);return C(function(U){let oe=S.evaluate(U);oe!==O&&k.call(E,oe)},void 0,N)}}e.chain=y;let O=Symbol("HaltChainable");class P{constructor(){this.steps=[]}map(w){return this.steps.push(w),this}forEach(w){return this.steps.push(k=>(w(k),k)),this}filter(w){return this.steps.push(k=>w(k)?k:O),this}reduce(w,k){let E=k;return this.steps.push(N=>(E=w(E,N),E)),this}latch(w=(k,E)=>k===E){let k=!0,E;return this.steps.push(N=>{let S=k||!w(N,E);return k=!1,E=N,S?N:O}),this}evaluate(w){for(let k of this.steps)if(w=k(w),w===O)break;return w}}function x(C,w,k=E=>E){let E=(...oe)=>U.fire(k(...oe)),N=()=>C.on(w,E),S=()=>C.removeListener(w,E),U=new b({onWillAddFirstListener:N,onDidRemoveLastListener:S});return U.event}e.fromNodeEventEmitter=x;function V(C,w,k=E=>E){let E=(...oe)=>U.fire(k(...oe)),N=()=>C.addEventListener(w,E),S=()=>C.removeEventListener(w,E),U=new b({onWillAddFirstListener:N,onDidRemoveLastListener:S});return U.event}e.fromDOMEventEmitter=V;function z(C){return new Promise(w=>r(C)(w))}e.toPromise=z;function Oe(C){let w=new b;return C.then(k=>{w.fire(k)},()=>{w.fire(void 0)}).finally(()=>{w.dispose()}),w.event}e.fromPromise=Oe;function kt(C,w){return C(k=>w.fire(k))}e.forward=kt;function Bt(C,w,k){return w(k),C(E=>w(E))}e.runAndSubscribe=Bt;class wo{constructor(w,k){this._observable=w,this._counter=0,this._hasChanged=!1;let E={onWillAddFirstListener:()=>{w.addObserver(this)},onDidRemoveLastListener:()=>{w.removeObserver(this)}};k||t(E),this.emitter=new b(E),k&&k.add(this.emitter)}beginUpdate(w){this._counter++}handlePossibleChange(w){}handleChange(w,k){this._hasChanged=!0}endUpdate(w){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function se(C,w){return new wo(C,w).emitter.event}e.fromObservable=se;function ac(C){return(w,k,E)=>{let N=0,S=!1,U={beginUpdate(){N++},endUpdate(){N--,N===0&&(C.reportChanges(),S&&(S=!1,w.call(k)))},handlePossibleChange(){},handleChange(){S=!0}};C.addObserver(U),C.reportChanges();let oe={dispose(){C.removeObserver(U)}};return E instanceof Xn?E.add(oe):Array.isArray(E)&&E.push(oe),oe}}e.fromObservableLight=ac})(He||={});yf=class bf{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${bf._idPool++}`,bf.all.add(this)}start(t){this._stopWatch=new qM,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}}};yf.all=new Set,yf._idPool=0;YM=yf,lb=-1,ZM=(()=>{let e=class _w{constructor(n,r,i=(_w._idPool++).toString(16).padStart(3,"0")){this._errorHandler=n,this.threshold=r,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(n,r){let i=this.threshold;if(i<=0||r<i)return;this._stacks||(this._stacks=new Map);let s=this._stacks.get(n.value)||0;if(this._stacks.set(n.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let[o,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(o);let c=new XM(l,o);this._errorHandler(c)}return()=>{let o=this._stacks.get(n.value)||0;this._stacks.set(n.value,o-1)}}getMostFrequentStack(){if(!this._stacks)return;let n,r=0;for(let[i,s]of this._stacks)(!n||r<s)&&(n=[i,s],r=s);return n}};return e._idPool=1,e})(),QM=ZM,wf=class yw{constructor(t){this.value=t}static create(){let t=new Error;return new yw(t.stack??"")}print(){console.warn(this.value.split(`
28
- `).slice(2).join(`
29
- `))}},XM=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},JM=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},eN=0,Ll=class{constructor(e){this.value=e,this.id=eN++}},tN=2,nN=(e,t)=>{if(e instanceof Ll)t(e);else for(let n=0;n<e.length;n++){let r=e[n];r&&t(r)}};if(GM){let e=[];setInterval(()=>{e.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(e.join(`
30
- `)),e.length=0)},3e3),Ol=new FinalizationRegistry(t=>{typeof t=="string"&&e.push(t)})}b=class{constructor(e){this._size=0,this._options=e,this._leakageMon=lb>0||this._options?.leakWarningThreshold?new QM(e?.onListenerError??Rl,this._options?.leakWarningThreshold??lb):void 0,this._perfMon=this._options?._profName?new YM(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(ab){let e=this._listeners;queueMicrotask(()=>{nN(e,t=>t.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);let l=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new JM(`${a}. HINT: Stack shows most frequent listener (${l[1]}-times)`,l[0]);return(this._options?.onListenerError||Rl)(c),B.None}if(this._disposed)return B.None;t&&(e=e.bind(t));let r=new Ll(e),i,s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=wf.create(),i=this._leakageMon.check(r.stack,this._size+1)),ab&&(r.stack=s??wf.create()),this._listeners?this._listeners instanceof Ll?(this._deliveryQueue??=new rN,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;let o=ie(()=>{Ol?.unregister(o),i?.(),this._removeListener(r)});if(n instanceof Xn?n.add(o):Array.isArray(n)&&n.push(o),Ol){let a=new Error().stack.split(`
31
- `).slice(2,3).join(`
32
- `).trim(),l=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(a);Ol.register(o,l?.[2]??a,o)}return o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-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[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*tN<=t.length){let i=0;for(let s=0;s<t.length;s++)t[s]?t[i++]=t[s]:r&&(this._deliveryQueue.end--,i<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=i}}_deliver(e,t){if(!e)return;let n=this._options?.onListenerError||Rl;if(!n){e.value(t);return}try{e.value(t)}catch(r){n(r)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Ll)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},rN=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Sf=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new b,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new b,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(t){return this.mapWindowIdToZoomLevel.get(this.getWindowId(t))??0}setZoomLevel(t,n){if(this.getZoomLevel(n)===t)return;let r=this.getWindowId(n);this.mapWindowIdToZoomLevel.set(r,t),this._onDidChangeZoomLevel.fire(r)}getZoomFactor(t){return this.mapWindowIdToZoomFactor.get(this.getWindowId(t))??1}setZoomFactor(t,n){this.mapWindowIdToZoomFactor.set(this.getWindowId(n),t)}setFullscreen(t,n){if(this.isFullscreen(n)===t)return;let r=this.getWindowId(n);this.mapWindowIdToFullScreen.set(r,t),this._onDidChangeFullscreen.fire(r)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};Sf.INSTANCE=new Sf;Yf=Sf;R3=Yf.INSTANCE.onDidChangeZoomLevel;L3=Yf.INSTANCE.onDidChangeFullscreen,Ai=typeof navigator=="object"?navigator.userAgent:"",Cf=Ai.indexOf("Firefox")>=0,Pl=Ai.indexOf("AppleWebKit")>=0,Zf=Ai.indexOf("Chrome")>=0,bw=!Zf&&Ai.indexOf("Safari")>=0,O3=Ai.indexOf("Electron/")>=0,P3=Ai.indexOf("Android")>=0,$l=!1;if(typeof gt.matchMedia=="function"){let e=gt.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=gt.matchMedia("(display-mode: fullscreen)");$l=e.matches,iN(gt,e,({matches:n})=>{$l&&t.matches||($l=n)})}Ti="en",Ul=!1,Wl=!1,uo=!1,aN=!1,ww=!1,Sw=!1,lN=!1,cN=!1,uN=!1,dN=!1,Fl=Ti,cb=Ti,Sn=globalThis;typeof Sn.vscode<"u"&&typeof Sn.vscode.process<"u"?pt=Sn.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(pt=process);Cw=typeof pt?.versions?.electron=="string",fN=Cw&&pt?.type==="renderer";if(typeof pt=="object"){Ul=pt.platform==="win32",Wl=pt.platform==="darwin",uo=pt.platform==="linux",aN=uo&&!!pt.env.SNAP&&!!pt.env.SNAP_REVISION,lN=Cw,uN=!!pt.env.CI||!!pt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,xl=Ti,Fl=Ti;let e=pt.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);xl=t.userLocale,cb=t.osLocale,Fl=t.resolvedLanguage||Ti,hN=t.languagePack?.translationsConfigFile}catch{}ww=!0}else typeof navigator=="object"&&!fN?(bn=navigator.userAgent,Ul=bn.indexOf("Windows")>=0,Wl=bn.indexOf("Macintosh")>=0,cN=(bn.indexOf("Macintosh")>=0||bn.indexOf("iPad")>=0||bn.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,uo=bn.indexOf("Linux")>=0,dN=bn?.indexOf("Mobi")>=0,Sw=!0,Fl=globalThis._VSCODE_NLS_LANGUAGE||Ti,xl=navigator.language.toLowerCase(),cb=xl):console.error("Unable to resolve platform.");Gh=0;Wl?Gh=1:Ul?Gh=3:uo&&(Gh=2);Ew=Ul,Jt=Wl,pN=uo,Kh=ww,gN=Sw&&typeof Sn.importScripts=="function",$3=gN?Sn.origin:void 0,en=bn,qn=Fl;(e=>{function t(){return qn}e.value=t;function n(){return qn.length===2?qn==="en":qn.length>=3?qn[0]==="e"&&qn[1]==="n"&&qn[2]==="-":!1}e.isDefaultVariant=n;function r(){return qn==="en"}e.isDefault=r})(mN||={});vN=typeof Sn.postMessage=="function"&&!Sn.importScripts,_N=(()=>{if(vN){let e=[];Sn.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){let s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),Sn.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),yN=!!(en&&en.indexOf("Chrome")>=0),F3=!!(en&&en.indexOf("Firefox")>=0),B3=!!(!yN&&en&&en.indexOf("Safari")>=0),H3=!!(en&&en.indexOf("Edg/")>=0),j3=!!(en&&en.indexOf("Android")>=0),Gn=typeof navigator=="object"?navigator:{},V3={clipboard:{writeText:Kh||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(Gn&&Gn.clipboard&&Gn.clipboard.writeText),readText:Kh||!!(Gn&&Gn.clipboard&&Gn.clipboard.readText)},keyboard:Kh||oN()?0:Gn.keyboard||bw?1:2,touch:"ontouchstart"in gt||Gn.maxTouchPoints>0,pointerEvents:gt.PointerEvent&&("ontouchstart"in gt||navigator.maxTouchPoints>0)},Qf=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}},Yh=new Qf,ub=new Qf,db=new Qf,bN=new Array(230);(e=>{function t(a){return Yh.keyCodeToStr(a)}e.toString=t;function n(a){return Yh.strToKeyCode(a)}e.fromString=n;function r(a){return ub.keyCodeToStr(a)}e.toUserSettingsUS=r;function i(a){return db.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function s(a){return ub.strToKeyCode(a)||db.strToKeyCode(a)}e.fromUserSettings=s;function o(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Yh.keyCodeToStr(a)}e.toElectronAccelerator=o})(Dw||={});wN=class kw{constructor(t,n,r,i,s){this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=i,this.keyCode=s}equals(t){return t instanceof kw&&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",n=this.shiftKey?"1":"0",r=this.altKey?"1":"0",i=this.metaKey?"1":"0";return`K${t}${n}${r}${i}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new SN([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},SN=class{constructor(e){if(e.length===0)throw RM("chords");this.chords=e}getHashCode(){let e="";for(let t=0,n=this.chords.length;t<n;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}};EN=Jt?256:2048,DN=512,kN=1024,IN=Jt?2048:256,Ef=class{constructor(e){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=t.getModifierState?.("AltGraph"),this.keyCode=CN(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|=EN),this.altKey&&(t|=DN),this.shiftKey&&(t|=kN),this.metaKey&&(t|=IN),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new wN(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},hb=new WeakMap;TN=class{static getSameOriginWindowChain(e){let t=hb.get(e);if(!t){t=[],hb.set(e,t);let n=e,r;do r=xN(n),r?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=r;while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0,i=this.getSameOriginWindowChain(e);for(let s of i){let o=s.window.deref();if(n+=o?.scrollY??0,r+=o?.scrollX??0,o===t||!s.iframeElement)break;let a=s.iframeElement.getBoundingClientRect();n+=a.top,r+=a.left}return{top:n,left:r}}},io=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 n=TN.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=n.left,this.posy-=n.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},fb=class{constructor(e,t=0,n=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t;let r=!1;if(Zf){let i=navigator.userAgent.match(/Chrome\/(\d+)/);r=(i?parseInt(i[1]):123)<=122}if(e){let i=e,s=e,o=e.view?.devicePixelRatio||1;if(typeof i.wheelDeltaY<"u")r?this.deltaY=i.wheelDeltaY/(120*o):this.deltaY=i.wheelDeltaY/120;else if(typeof s.VERTICAL_AXIS<"u"&&s.axis===s.VERTICAL_AXIS)this.deltaY=-s.detail/3;else if(e.type==="wheel"){let a=e;a.deltaMode===a.DOM_DELTA_LINE?Cf&&!Jt?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof i.wheelDeltaX<"u")bw&&Ew?this.deltaX=-(i.wheelDeltaX/120):r?this.deltaX=i.wheelDeltaX/(120*o):this.deltaX=i.wheelDeltaX/120;else if(typeof s.HORIZONTAL_AXIS<"u"&&s.axis===s.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let a=e;a.deltaMode===a.DOM_DELTA_LINE?Cf&&!Jt?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(r?this.deltaY=e.wheelDelta/(120*o):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}},Iw=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});(e=>{function t(n){return n===e.None||n===e.Cancelled||n instanceof NN?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:He.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Iw})})(MN||={});NN=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?Iw:(this._emitter||(this._emitter=new b),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Xf=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 gf("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new gf("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},AN=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new gf("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let r=n.setInterval(()=>{e()},t);this.disposable=ie(()=>{n.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}};(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?Zh=(e,t)=>{_N(()=>{if(n)return;let r=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,r-Date.now())}}))});let n=!1;return{dispose(){n||(n=!0)}}}:Zh=(e,t,n)=>{let r=e.requestIdleCallback(t,typeof n=="number"?{timeout:n}:void 0),i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(r))}}},RN=e=>Zh(globalThis,e)})();(e=>{async function t(r){let i,s=await Promise.all(r.map(o=>o.then(a=>a,a=>{i||(i=a)})));if(typeof i<"u")throw i;return s}e.settled=t;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(o){s(o)}})}e.withAsyncBody=n})(LN||={});pb=class Ct{static fromArray(t){return new Ct(n=>{n.emitMany(t)})}static fromPromise(t){return new Ct(async n=>{n.emitMany(await t)})}static fromPromises(t){return new Ct(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new Ct(async n=>{await Promise.all(t.map(async r=>{for await(let i of r)n.emitOne(i)}))})}constructor(t,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new b,queueMicrotask(async()=>{let r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await He.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new Ct(async r=>{for await(let i of t)r.emitOne(n(i))})}map(t){return Ct.map(this,t)}static filter(t,n){return new Ct(async r=>{for await(let i of t)n(i)&&r.emitOne(i)})}filter(t){return Ct.filter(this,t)}static coalesce(t){return Ct.filter(t,n=>!!n)}coalesce(){return Ct.coalesce(this)}static async toPromise(t){let n=[];for await(let r of t)n.push(r);return n}toPromise(){return Ct.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())}};pb.EMPTY=pb.fromArray([]);VN=class Tw{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let n=t.length;if(n===0)return;let r=this._buff,i=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=t.charCodeAt(0),a=0);;){let l=o;if(ON(o))if(a+1<n){let c=t.charCodeAt(a+1);gb(c)?(a++,l=PN(o,c)):l=65533}else{s=o;break}else gb(o)&&(l=65533);if(i=this._push(r,i,l),a++,a<n)o=t.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(t,n,r){return r<128?t[n++]=r:r<2048?(t[n++]=192|(r&1984)>>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Qs(this._h0)+Qs(this._h1)+Qs(this._h2)+Qs(this._h3)+Qs(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,mb(this._buff,this._buffLen),this._buffLen>56&&(this._step(),mb(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=Tw._bigBlock32,n=this._buffDV;for(let d=0;d<64;d+=4)t.setUint32(d,n.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)t.setUint32(d,Qh(t.getUint32(d-12,!1)^t.getUint32(d-32,!1)^t.getUint32(d-56,!1)^t.getUint32(d-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,a=this._h4,l,c,u;for(let d=0;d<80;d++)d<20?(l=i&s|~i&o,c=1518500249):d<40?(l=i^s^o,c=1859775393):d<60?(l=i&s|i&o|s&o,c=2400959708):(l=i^s^o,c=3395469782),u=Qh(r,5)+l+a+c+t.getUint32(d*4,!1)&4294967295,a=o,o=s,s=Qh(i,30),i=r,r=u;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}};VN._bigBlock32=new DataView(new ArrayBuffer(320));({registerWindow:z3,getWindow:Ft,getDocument:U3,getWindows:W3,getWindowsCount:q3,getWindowId:vb,getWindowById:G3,hasWindow:K3,onDidRegisterWindow:zN,onWillUnregisterWindow:Y3,onDidUnregisterWindow:Z3}=(function(){let e=new Map,t={window:gt,disposables:new Xn};e.set(gt.vscodeWindowId,t);let n=new b,r=new b,i=new b;function s(o,a){return(typeof o=="number"?e.get(o):void 0)??(a?t:void 0)}return{onDidRegisterWindow:n.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:r.event,registerWindow(o){if(e.has(o.vscodeWindowId))return B.None;let a=new Xn,l={window:o,disposables:a.add(new Xn)};return e.set(o.vscodeWindowId,l),a.add(ie(()=>{e.delete(o.vscodeWindowId),r.fire(o)})),a.add(L(o,Me.BEFORE_UNLOAD,()=>{i.fire(o)})),n.fire(l),a},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(o){return o.vscodeWindowId},hasWindow(o){return e.has(o)},getWindowById:s,getWindow(o){let a=o;if(a?.ownerDocument?.defaultView)return a.ownerDocument.defaultView.window;let l=o;return l?.view?l.view.window:gt},getDocument(o){return Ft(o).document}}})()),UN=class{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};_b=function(e,t,n,r){let i=n;return t==="click"||t==="mousedown"||t==="contextmenu"?i=WN(Ft(e),n):(t==="keydown"||t==="keypress"||t==="keyup")&&(i=qN(n)),L(e,t,i,r)},KN=class extends AN{constructor(e){super(),this.defaultTarget=e&&Ft(e)}cancelAndSet(e,t,n){return super.cancelAndSet(e,t,n??this.defaultTarget)}},Xh=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){Rl(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,n=new Map,r=new Map,i=s=>{n.set(s,!1);let o=e.get(s)??[];for(t.set(s,o),e.set(s,[]),r.set(s,!0);o.length>0;)o.sort(Xh.sort),o.shift().execute();r.set(s,!1)};ql=(s,o,a=0)=>{let l=vb(s),c=new Xh(o,a),u=e.get(l);return u||(u=[],e.set(l,u)),u.push(c),n.get(l)||(n.set(l,!0),s.requestAnimationFrame(()=>i(l))),c},GN=(s,o,a)=>{let l=vb(s);if(r.get(l)){let c=new Xh(o,a),u=t.get(l);return u||(u=[],t.set(l,u)),u.push(c),c}else return ql(s,o,a)}})();yb=class Bl{constructor(t,n){this.width=t,this.height=n}with(t=this.width,n=this.height){return t!==this.width||n!==this.height?new Bl(t,n):this}static is(t){return typeof t=="object"&&typeof t.height=="number"&&typeof t.width=="number"}static lift(t){return t instanceof Bl?t:new Bl(t.width,t.height)}static equals(t,n){return t===n?!0:!t||!n?!1:t.width===n.width&&t.height===n.height}};yb.None=new yb(0,0);Q3=new class{constructor(){this.mutationObservers=new Map}observe(e,t,n){let r=this.mutationObservers.get(e);r||(r=new Map,this.mutationObservers.set(e,r));let i=$N(n),s=r.get(i);if(s)s.users+=1;else{let o=new b,a=new MutationObserver(c=>o.fire(c));a.observe(e,n);let l=s={users:1,observer:a,onDidMutate:o.event};t.add(ie(()=>{l.users-=1,l.users===0&&(o.dispose(),a.disconnect(),r?.delete(i),r?.size===0&&this.mutationObservers.delete(e))})),r.set(i,s)}return s.onDidMutate}},Me={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:Pl?"webkitAnimationStart":"animationstart",ANIMATION_END:Pl?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Pl?"webkitAnimationIteration":"animationiteration"},ZN=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;QN.SVG=function(e,t,...n){return Mw("http://www.w3.org/2000/svg",e,t,...n)};XN=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=rt(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=rt(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=rt(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=rt(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=rt(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=rt(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=rt(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=rt(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=rt(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=rt(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=rt(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=rt(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=rt(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=rt(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)}};Nw=class{constructor(){this._hooks=new Xn,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 n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,n,r,i){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=i;let s=e;try{e.setPointerCapture(t),this._hooks.add(ie(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{s=Ft(e)}this._hooks.add(L(s,Me.POINTER_MOVE,o=>{if(o.buttons!==n){this.stopMonitoring(!0);return}o.preventDefault(),this._pointerMoveCallback(o)})),this._hooks.add(L(s,Me.POINTER_UP,o=>this.stopMonitoring(!0)))}};(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(Xt||={});so=class ze extends B{constructor(){super(),this.dispatched=!1,this.targets=new ob,this.ignoreTargets=new ob,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(He.runAndSubscribe(zN,({window:t,disposables:n})=>{n.add(L(t.document,"touchstart",r=>this.onTouchStart(r),{passive:!1})),n.add(L(t.document,"touchend",r=>this.onTouchEnd(t,r))),n.add(L(t.document,"touchmove",r=>this.onTouchMove(r),{passive:!1}))},{window:gt,disposables:this._store}))}static addTarget(t){if(!ze.isTouchDevice())return B.None;ze.INSTANCE||(ze.INSTANCE=sb(new ze));let n=ze.INSTANCE.targets.push(t);return ie(n)}static ignoreTarget(t){if(!ze.isTouchDevice())return B.None;ze.INSTANCE||(ze.INSTANCE=sb(new ze));let n=ze.INSTANCE.ignoreTargets.push(t);return ie(n)}static isTouchDevice(){return"ontouchstart"in gt||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(t){let n=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let r=0,i=t.targetTouches.length;r<i;r++){let s=t.targetTouches.item(r);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:n,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[n],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};let o=this.newGestureEvent(Xt.Start,s.target);o.pageX=s.pageX,o.pageY=s.pageY,this.dispatchEvent(o)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,n){let r=Date.now(),i=Object.keys(this.activeTouches).length;for(let s=0,o=n.changedTouches.length;s<o;s++){let a=n.changedTouches.item(s);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}let l=this.activeTouches[a.identifier],c=Date.now()-l.initialTimeStamp;if(c<ze.HOLD_DELAY&&Math.abs(l.initialPageX-ht(l.rollingPageX))<30&&Math.abs(l.initialPageY-ht(l.rollingPageY))<30){let u=this.newGestureEvent(Xt.Tap,l.initialTarget);u.pageX=ht(l.rollingPageX),u.pageY=ht(l.rollingPageY),this.dispatchEvent(u)}else if(c>=ze.HOLD_DELAY&&Math.abs(l.initialPageX-ht(l.rollingPageX))<30&&Math.abs(l.initialPageY-ht(l.rollingPageY))<30){let u=this.newGestureEvent(Xt.Contextmenu,l.initialTarget);u.pageX=ht(l.rollingPageX),u.pageY=ht(l.rollingPageY),this.dispatchEvent(u)}else if(i===1){let u=ht(l.rollingPageX),d=ht(l.rollingPageY),h=ht(l.rollingTimestamps)-l.rollingTimestamps[0],f=u-l.rollingPageX[0],p=d-l.rollingPageY[0],g=[...this.targets].filter(_=>l.initialTarget instanceof Node&&_.contains(l.initialTarget));this.inertia(t,g,r,Math.abs(f)/h,f>0?1:-1,u,Math.abs(p)/h,p>0?1:-1,d)}this.dispatchEvent(this.newGestureEvent(Xt.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(n.preventDefault(),n.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,n){let r=document.createEvent("CustomEvent");return r.initEvent(t,!1,!0),r.initialTarget=n,r.tapCount=0,r}dispatchEvent(t){if(t.type===Xt.Tap){let n=new Date().getTime(),r=0;n-this._lastSetTapCountTime>ze.CLEAR_TAP_COUNT_TIME?r=1:r=2,this._lastSetTapCountTime=n,t.tapCount=r}else(t.type===Xt.Change||t.type===Xt.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let r of this.ignoreTargets)if(r.contains(t.initialTarget))return;let n=[];for(let r of this.targets)if(r.contains(t.initialTarget)){let i=0,s=t.initialTarget;for(;s&&s!==r;)i++,s=s.parentElement;n.push([i,r])}n.sort((r,i)=>r[0]-i[0]);for(let[r,i]of n)i.dispatchEvent(t),this.dispatched=!0}}inertia(t,n,r,i,s,o,a,l,c){this.handle=ql(t,()=>{let u=Date.now(),d=u-r,h=0,f=0,p=!0;i+=ze.SCROLL_FRICTION*d,a+=ze.SCROLL_FRICTION*d,i>0&&(p=!1,h=s*i*d),a>0&&(p=!1,f=l*a*d);let g=this.newGestureEvent(Xt.Change);g.translationX=h,g.translationY=f,n.forEach(_=>_.dispatchEvent(g)),p||this.inertia(t,n,u,i,s,o+h,a,l,c+f)})}onTouchMove(t){let n=Date.now();for(let r=0,i=t.changedTouches.length;r<i;r++){let s=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}let o=this.activeTouches[s.identifier],a=this.newGestureEvent(Xt.Change,o.initialTarget);a.translationX=s.pageX-ht(o.rollingPageX),a.translationY=s.pageY-ht(o.rollingPageY),a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(s.pageX),o.rollingPageY.push(s.pageY),o.rollingTimestamps.push(n)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};so.SCROLL_FRICTION=-.005,so.HOLD_DELAY=700,so.CLEAR_TAP_COUNT_TIME=400,fe([JN],so,"isTouchDevice",1);eA=so,ep=class extends B{onclick(e,t){this._register(L(e,Me.CLICK,n=>t(new io(Ft(e),n))))}onmousedown(e,t){this._register(L(e,Me.MOUSE_DOWN,n=>t(new io(Ft(e),n))))}onmouseover(e,t){this._register(L(e,Me.MOUSE_OVER,n=>t(new io(Ft(e),n))))}onmouseleave(e,t){this._register(L(e,Me.MOUSE_LEAVE,n=>t(new io(Ft(e),n))))}onkeydown(e,t){this._register(L(e,Me.KEY_DOWN,n=>t(new Ef(n))))}onkeyup(e,t){this._register(L(e,Me.KEY_UP,n=>t(new Ef(n))))}oninput(e,t){this._register(L(e,Me.INPUT,t))}onblur(e,t){this._register(L(e,Me.BLUR,t))}onfocus(e,t){this._register(L(e,Me.FOCUS,t))}onchange(e,t){this._register(L(e,Me.CHANGE,t))}ignoreGesture(e){return eA.ignoreTarget(e)}},bb=11,tA=class extends ep{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=bb+"px",this.domNode.style.height=bb+"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 Nw),this._register(_b(this.bgDomNode,Me.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(_b(this.domNode,Me.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new KN),this._pointerdownScheduleRepeatTimer=this._register(new Xf)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,Ft(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}},nA=class Df{constructor(t,n,r,i,s,o,a){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(n=n|0,r=r|0,i=i|0,s=s|0,o=o|0,a=a|0),this.rawScrollLeft=i,this.rawScrollTop=a,n<0&&(n=0),i+n>r&&(i=r-n),i<0&&(i=0),s<0&&(s=0),a+s>o&&(a=o-s),a<0&&(a=0),this.width=n,this.scrollWidth=r,this.scrollLeft=i,this.height=s,this.scrollHeight=o,this.scrollTop=a}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,n){return new Df(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,n?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,n?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new Df(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,n){let r=this.width!==t.width,i=this.scrollWidth!==t.scrollWidth,s=this.scrollLeft!==t.scrollLeft,o=this.height!==t.height,a=this.scrollHeight!==t.scrollHeight,l=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:n,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:r,scrollWidthChanged:i,scrollLeftChanged:s,heightChanged:o,scrollHeightChanged:a,scrollTopChanged:l}}},rA=class extends B{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new b),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new nA(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){let n=this._state.withScrollDimensions(e,t);this._setState(n,!!this._smoothScrolling),this._smoothScrolling?.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 n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;let r;t?r=new Sb(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):r=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=r}else{let n=this._state.withScrollPosition(e);this._smoothScrolling=Sb.start(this._state,n,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 n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}},wb=class{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}};Sb=class kf{constructor(t,n,r,i){this.from=t,this.to=n,this.duration=i,this.startTime=r,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,n,r){if(Math.abs(t-n)>2.5*r){let i,s;return t<n?(i=t+.75*r,s=n-.75*r):(i=t-.75*r,s=n+.75*r),iA(Jh(t,i),Jh(s,n),.33)}return Jh(t,n)}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 n=(t-this.startTime)/this.duration;if(n<1){let r=this.scrollLeft(n),i=this.scrollTop(n);return new wb(r,i,!1)}return new wb(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,n,r){return kf.start(t,n,r)}static start(t,n,r){r=r+10;let i=Date.now()-10;return new kf(t,n,i,r)}};aA=class extends B{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new Xf)}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(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}},lA=140,Aw=class extends ep{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 aA(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new Nw),this._shouldRender=!0,this.domNode=ho(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(L(this.domNode.domNode,Me.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new tA(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,r){this.slider=ho(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof n=="number"&&this.slider.setWidth(n),typeof r=="number"&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(L(this.slider.domNode,Me.POINTER_DOWN,i=>{i.button===0&&(i.preventDefault(),this._sliderPointerDown(i))})),this.onclick(this.slider.domNode,i=>{i.leftButton&&i.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,n=t+this._scrollbarState.getSliderPosition(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderPointerPosition(e);n<=i&&i<=r?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,n;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,n=e.offsetY;else{let i=YN(this.domNode.domNode);t=e.pageX-i.left,n=e.pageY-i.top}let r=this._pointerDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),n=this._sliderOrthogonalPointerPosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{let s=this._sliderOrthogonalPointerPosition(i),o=Math.abs(s-n);if(Ew&&o>lA){this._setDesiredScrollPositionNow(r.getScrollPosition());return}let a=this._sliderPointerPosition(i)-t;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(a))},()=>{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()}},Rw=class If{constructor(t,n,r,i,s,o){this._scrollbarSize=Math.round(n),this._oppositeScrollbarSize=Math.round(r),this._arrowSize=Math.round(t),this._visibleSize=i,this._scrollSize=s,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new If(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){let n=Math.round(t);return this._visibleSize!==n?(this._visibleSize=n,this._refreshComputedValues(),!0):!1}setScrollSize(t){let n=Math.round(t);return this._scrollSize!==n?(this._scrollSize=n,this._refreshComputedValues(),!0):!1}setScrollPosition(t){let n=Math.round(t);return this._scrollPosition!==n?(this._scrollPosition=n,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,n,r,i,s){let o=Math.max(0,r-t),a=Math.max(0,o-2*n),l=i>0&&i>r;if(!l)return{computedAvailableSize:Math.round(o),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(r*a/i))),u=(a-c)/(i-r),d=s*u;return{computedAvailableSize:Math.round(o),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){let t=If._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 n=t-this._arrowSize-this._computedSliderSize/2;return Math.round(n/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;let n=t-this._arrowSize,r=this._scrollPosition;return n<this._computedSliderPosition?r-=this._visibleSize:r+=this._visibleSize,r}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let n=this._computedSliderPosition+t;return Math.round(n/this._computedSliderRatio)}},cA=class extends Aw{constructor(e,t,n){let r=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new Rw(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,r.width,r.scrollWidth,i.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}},uA=class extends Aw{constructor(e,t,n){let r=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new Rw(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,r.height,r.scrollHeight,i.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}},dA=500,Cb=50,Eb=!0,hA=class{constructor(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}},xf=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,n=0,r=1,i=this._rear;do{let s=i===this._front?t:Math.pow(2,-r);if(t-=s,n+=this._memory[i].score*s,i===this._front)break;i=(this._capacity+i-1)%this._capacity,r++}while(!0);return n<=.5}acceptStandardWheelEvent(t){if(Zf){let n=Ft(t.browserEvent),r=sN(n);this.accept(Date.now(),t.deltaX*r,t.deltaY*r)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,n,r){let i=null,s=new hA(t,n,r);this._front===-1&&this._rear===-1?(this._memory[0]=s,this._front=0,this._rear=0):(i=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,i)}_computeScore(t,n){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let r=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(r+=.25),n){let i=Math.abs(t.deltaX),s=Math.abs(t.deltaY),o=Math.abs(n.deltaX),a=Math.abs(n.deltaY),l=Math.max(Math.min(i,o),1),c=Math.max(Math.min(s,a),1),u=Math.max(i,o),d=Math.max(s,a);u%l===0&&d%c===0&&(r-=.5)}return Math.min(Math.max(r,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};xf.INSTANCE=new xf;fA=xf,pA=class extends ep{constructor(e,t,n){super(),this._onScroll=this._register(new b),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new b),this.onWillScroll=this._onWillScroll.event,this._options=mA(t),this._scrollable=n,this._register(this._scrollable.onScroll(i=>{this._onWillScroll.fire(i),this._onDidScroll(i),this._onScroll.fire(i)}));let r={onMouseWheel:i=>this._onMouseWheel(i),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new uA(this._scrollable,this._options,r)),this._horizontalScrollbar=this._register(new cA(this._scrollable,this._options,r)),this._domNode=document.createElement("div"),this._domNode.className="xterm-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=ho(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=ho(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=ho(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,i=>this._onMouseOver(i)),this.onmouseleave(this._listenOnDomNode,i=>this._onMouseLeave(i)),this._hideTimeout=this._register(new Xf),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=$r(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,Jt&&(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 fb(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=$r(this._mouseWheelToDispose),e)){let t=n=>{this._onMouseWheel(new fb(n))};this._mouseWheelToDispose.push(L(this._listenOnDomNode,Me.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;let t=fA.INSTANCE;Eb&&t.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let i=e.deltaY*this._options.mouseWheelScrollSensitivity,s=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&s+i===0?s=i=0:Math.abs(i)>=Math.abs(s)?s=0:i=0),this._options.flipAxes&&([i,s]=[s,i]);let o=!Jt&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||o)&&!s&&(s=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(s=s*this._options.fastScrollSensitivity,i=i*this._options.fastScrollSensitivity);let a=this._scrollable.getFutureScrollPosition(),l={};if(i){let c=Cb*i,u=a.scrollTop-(c<0?Math.floor(c):Math.ceil(c));this._verticalScrollbar.writeScrollPosition(l,u)}if(s){let c=Cb*s,u=a.scrollLeft-(c<0?Math.floor(c):Math.ceil(c));this._horizontalScrollbar.writeScrollPosition(l,u)}l=this._scrollable.validateScrollPosition(l),(a.scrollLeft!==l.scrollLeft||a.scrollTop!==l.scrollTop)&&(Eb&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(l):this._scrollable.setScrollPositionNow(l),n=!0)}let r=n;!r&&this._options.alwaysConsumeMouseWheel&&(r=!0),!r&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(r=!0),r&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,r=n?" left":"",i=t?" top":"",s=n||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${r}`),this._topShadowDomNode.setClassName(`shadow${i}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${i}${r}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),dA)}},gA=class extends pA{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};Tf=class extends B{constructor(e,t,n,r,i,s,o,a){super(),this._bufferService=n,this._optionsService=o,this._renderService=a,this._onRequestScrollLines=this._register(new b),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let l=this._register(new rA({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:c=>ql(r.window,c)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{l.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new gA(t,ae({vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0},this._getChangeOptions()),l)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(i.onProtocolChange(c=>{this._scrollableElement.updateOptions({handleMouseWheel:!(c&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(He.runAndSubscribe(s.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=s.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(ie(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=r.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(ie(()=>this._styleElement.remove())),this._register(He.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(`
33
- `)})),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(){return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:this._optionsService.rawOptions.overviewRuler?.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),n=t-this._bufferService.buffer.ydisp;n!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(n)),this._isHandlingScroll=!1}};Tf=fe([D(2,Ze),D(3,Cn),D(4,aw),D(5,Ni),D(6,Qe),D(7,En)],Tf);Mf=class extends B{constructor(e,t,n,r,i){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=n,this._decorationService=r,this._renderService=i,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(ie(()=>{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){let t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer",e?.options?.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 n=e.options.x??0;return n&&n>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 n=this._decorationElements.get(e);n||(n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n),e.onDispose(()=>{this._decorationElements.delete(e),n.remove()})),n.style.display=this._altBufferIsActive?"none":"block",this._altBufferIsActive||(n.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,n.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,n.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,n.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(n)}}_refreshXPosition(e,t=e.element){if(!t)return;let n=e.options.x??0;(e.options.anchor||"left")==="right"?t.style.right=n?`${n*this._renderService.dimensions.css.cell.width}px`:"":t.style.left=n?`${n*this._renderService.dimensions.css.cell.width}px`:""}_removeDecoration(e){this._decorationElements.get(e)?.remove(),this._decorationElements.delete(e),e.dispose()}};Mf=fe([D(1,Ze),D(2,Cn),D(3,_o),D(4,En)],Mf);vA=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,n){return t>=e.startBufferLine-this._linePadding[n||"full"]&&t<=e.endBufferLine+this._linePadding[n||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},Zt={full:0,left:0,center:0,right:0},Kn={full:0,left:0,center:0,right:0},Xs={full:0,left:0,center:0,right:0},Gl=class extends B{constructor(e,t,n,r,i,s,o,a){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=n,this._decorationService=r,this._renderService=i,this._optionsService=s,this._themeService=o,this._coreBrowserService=a,this._colorZoneStore=new vA,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(),this._viewportElement.parentElement?.insertBefore(this._canvas,this._viewportElement),this._register(ie(()=>this._canvas?.remove()));let l=this._canvas.getContext("2d");if(l)this._ctx=l;else throw new Error("Ctx cannot be null");this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{(!this._containerHeight||this._containerHeight!==this._screenElement.clientHeight)&&(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange("overviewRuler",()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){return this._optionsService.options.overviewRuler?.width||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);Kn.full=this._canvas.width,Kn.left=e,Kn.center=t,Kn.right=e,this._refreshDrawHeightConstants(),Xs.full=1,Xs.left=1,Xs.center=1+Kn.left,Xs.right=1+Kn.left+Kn.center}_refreshDrawHeightConstants(){Zt.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);Zt.left=t,Zt.center=t,Zt.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Zt.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Zt.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Zt.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Zt.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(Xs[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-Zt[e.position||"full"]/2),Kn[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+Zt[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}))}};Gl=fe([D(2,Ze),D(3,_o),D(4,En),D(5,Qe),D(6,Ni),D(7,Cn)],Gl);(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=`
34
- `,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="\x7F"))(v||={});(e=>(e.PAD="\x80",e.HOP="\x81",e.BPH="\x82",e.NBH="\x83",e.IND="\x84",e.NEL="\x85",e.SSA="\x86",e.ESA="\x87",e.HTS="\x88",e.HTJ="\x89",e.VTS="\x8A",e.PLD="\x8B",e.PLU="\x8C",e.RI="\x8D",e.SS2="\x8E",e.SS3="\x8F",e.DCS="\x90",e.PU1="\x91",e.PU2="\x92",e.STS="\x93",e.CCH="\x94",e.MW="\x95",e.SPA="\x96",e.EPA="\x97",e.SOS="\x98",e.SGCI="\x99",e.SCI="\x9A",e.CSI="\x9B",e.ST="\x9C",e.OSC="\x9D",e.PM="\x9E",e.APC="\x9F"))(Hl||={});(e=>e.ST=`${v.ESC}\\`)(Lw||={});Nf=class{constructor(e,t,n,r,i,s){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=r,this._coreService=i,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 n;t.start+=this._dataAlreadySent.length,this._isComposing?n=this._textarea.value.substring(t.start,this._compositionPosition.start):n=this._textarea.value.substring(t.start),n.length>0&&this._coreService.triggerDataEvent(n,!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,n=t.replace(e,"");this._dataAlreadySent=n,t.length>e.length?this._coreService.triggerDataEvent(n,!0):t.length<e.length?this._coreService.triggerDataEvent(`${v.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),n=this._renderService.dimensions.css.cell.height,r=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,i=t*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"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=i+"px",this._textarea.style.top=r+"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)}}};Nf=fe([D(2,Ze),D(3,Qe),D(4,Br),D(5,En)],Nf);Ne=0,Ae=0,Re=0,he=0,Db={css:"#00000000",rgba:0};(e=>{function t(i,s,o,a){return a!==void 0?`#${Ar(i)}${Ar(s)}${Ar(o)}${Ar(a)}`:`#${Ar(i)}${Ar(s)}${Ar(o)}`}e.toCss=t;function n(i,s,o,a=255){return(i<<24|s<<16|o<<8|a)>>>0}e.toRgba=n;function r(i,s,o,a){return{css:e.toCss(i,s,o,a),rgba:e.toRgba(i,s,o,a)}}e.toColor=r})(we||={});(e=>{function t(l,c){if(he=(c.rgba&255)/255,he===1)return{css:c.css,rgba:c.rgba};let u=c.rgba>>24&255,d=c.rgba>>16&255,h=c.rgba>>8&255,f=l.rgba>>24&255,p=l.rgba>>16&255,g=l.rgba>>8&255;Ne=f+Math.round((u-f)*he),Ae=p+Math.round((d-p)*he),Re=g+Math.round((h-g)*he);let _=we.toCss(Ne,Ae,Re),y=we.toRgba(Ne,Ae,Re);return{css:_,rgba:y}}e.blend=t;function n(l){return(l.rgba&255)===255}e.isOpaque=n;function r(l,c,u){let d=jl.ensureContrastRatio(l.rgba,c.rgba,u);if(d)return we.toColor(d>>24&255,d>>16&255,d>>8&255)}e.ensureContrastRatio=r;function i(l){let c=(l.rgba|255)>>>0;return[Ne,Ae,Re]=jl.toChannels(c),{css:we.toCss(Ne,Ae,Re),rgba:c}}e.opaque=i;function s(l,c){return he=Math.round(c*255),[Ne,Ae,Re]=jl.toChannels(l.rgba),{css:we.toCss(Ne,Ae,Re,he),rgba:we.toRgba(Ne,Ae,Re,he)}}e.opacity=s;function o(l,c){return he=l.rgba&255,s(l,he*c/255)}e.multiplyOpacity=o;function a(l){return[l.rgba>>24&255,l.rgba>>16&255,l.rgba>>8&255]}e.toColorRGB=a})(re||={});(e=>{let t,n;try{let i=document.createElement("canvas");i.width=1,i.height=1;let s=i.getContext("2d",{willReadFrequently:!0});s&&(t=s,t.globalCompositeOperation="copy",n=t.createLinearGradient(0,0,1,1))}catch{}function r(i){if(i.match(/#[\da-f]{3,8}/i))switch(i.length){case 4:return Ne=parseInt(i.slice(1,2).repeat(2),16),Ae=parseInt(i.slice(2,3).repeat(2),16),Re=parseInt(i.slice(3,4).repeat(2),16),we.toColor(Ne,Ae,Re);case 5:return Ne=parseInt(i.slice(1,2).repeat(2),16),Ae=parseInt(i.slice(2,3).repeat(2),16),Re=parseInt(i.slice(3,4).repeat(2),16),he=parseInt(i.slice(4,5).repeat(2),16),we.toColor(Ne,Ae,Re,he);case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}let s=i.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 Ne=parseInt(s[1]),Ae=parseInt(s[2]),Re=parseInt(s[3]),he=Math.round((s[5]===void 0?1:parseFloat(s[5]))*255),we.toColor(Ne,Ae,Re,he);if(!t||!n)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=n,t.fillStyle=i,typeof t.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[Ne,Ae,Re,he]=t.getImageData(0,0,1,1).data,he!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:we.toRgba(Ne,Ae,Re,he),css:i}}e.toColor=r})(ue||={});(e=>{function t(r){return n(r>>16&255,r>>8&255,r&255)}e.relativeLuminance=t;function n(r,i,s){let o=r/255,a=i/255,l=s/255,c=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),u=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),d=l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4);return c*.2126+u*.7152+d*.0722}e.relativeLuminance2=n})(Ye||={});(e=>{function t(o,a){if(he=(a&255)/255,he===1)return a;let l=a>>24&255,c=a>>16&255,u=a>>8&255,d=o>>24&255,h=o>>16&255,f=o>>8&255;return Ne=d+Math.round((l-d)*he),Ae=h+Math.round((c-h)*he),Re=f+Math.round((u-f)*he),we.toRgba(Ne,Ae,Re)}e.blend=t;function n(o,a,l){let c=Ye.relativeLuminance(o>>8),u=Ye.relativeLuminance(a>>8);if(yn(c,u)<l){if(u<c){let f=r(o,a,l),p=yn(c,Ye.relativeLuminance(f>>8));if(p<l){let g=i(o,a,l),_=yn(c,Ye.relativeLuminance(g>>8));return p>_?f:g}return f}let d=i(o,a,l),h=yn(c,Ye.relativeLuminance(d>>8));if(h<l){let f=r(o,a,l),p=yn(c,Ye.relativeLuminance(f>>8));return h>p?d:f}return d}}e.ensureContrastRatio=n;function r(o,a,l){let c=o>>24&255,u=o>>16&255,d=o>>8&255,h=a>>24&255,f=a>>16&255,p=a>>8&255,g=yn(Ye.relativeLuminance2(h,f,p),Ye.relativeLuminance2(c,u,d));for(;g<l&&(h>0||f>0||p>0);)h-=Math.max(0,Math.ceil(h*.1)),f-=Math.max(0,Math.ceil(f*.1)),p-=Math.max(0,Math.ceil(p*.1)),g=yn(Ye.relativeLuminance2(h,f,p),Ye.relativeLuminance2(c,u,d));return(h<<24|f<<16|p<<8|255)>>>0}e.reduceLuminance=r;function i(o,a,l){let c=o>>24&255,u=o>>16&255,d=o>>8&255,h=a>>24&255,f=a>>16&255,p=a>>8&255,g=yn(Ye.relativeLuminance2(h,f,p),Ye.relativeLuminance2(c,u,d));for(;g<l&&(h<255||f<255||p<255);)h=Math.min(255,h+Math.ceil((255-h)*.1)),f=Math.min(255,f+Math.ceil((255-f)*.1)),p=Math.min(255,p+Math.ceil((255-p)*.1)),g=yn(Ye.relativeLuminance2(h,f,p),Ye.relativeLuminance2(c,u,d));return(h<<24|f<<16|p<<8|255)>>>0}e.increaseLuminance=i;function s(o){return[o>>24&255,o>>16&255,o>>8&255,o&255]}e.toChannels=s})(jl||={});_A=class extends vo{constructor(e,t,n){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=n}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()]}},Kl=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new Dt}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 n=[],r=t.translateToString(!0),i=0,s=0,o=0,a=t.getFg(0),l=t.getBg(0);for(let c=0;c<t.getTrimmedLength();c++)if(t.loadCell(c,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==a||this._workCell.bg!==l){if(c-i>1){let u=this._getJoinedRanges(r,o,s,t,i);for(let d=0;d<u.length;d++)n.push(u[d])}i=c,o=s,a=this._workCell.fg,l=this._workCell.bg}s+=this._workCell.getChars().length||Qn.length}if(this._bufferService.cols-i>1){let c=this._getJoinedRanges(r,o,s,t,i);for(let u=0;u<c.length;u++)n.push(c[u])}return n}_getJoinedRanges(e,t,n,r,i){let s=e.substring(t,n),o=[];try{o=this._characterJoiners[0].handler(s)}catch(a){console.error(a)}for(let a=1;a<this._characterJoiners.length;a++)try{let l=this._characterJoiners[a].handler(s);for(let c=0;c<l.length;c++)Kl._mergeRanges(o,l[c])}catch(l){console.error(l)}return this._stringRangesToCellRanges(o,r,i),o}_stringRangesToCellRanges(e,t,n){let r=0,i=!1,s=0,o=e[r];if(o){for(let a=n;a<this._bufferService.cols;a++){let l=t.getWidth(a),c=t.getString(a).length||Qn.length;if(l!==0){if(!i&&o[0]<=s&&(o[0]=a,i=!0),o[1]<=s){if(o[1]=a,o=e[++r],!o)break;o[0]<=s?(o[0]=a,i=!0):i=!1}s+=c}}o&&(o[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(n){if(t[1]<=i[0])return e[r-1][1]=t[1],e;if(t[1]<=i[1])return e[r-1][1]=Math.max(t[1],i[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=i[0])return e.splice(r,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),n=!0);continue}}return n?e[e.length-1][1]=t[1]:e.push(t),e}};Kl=fe([D(0,Ze)],Kl);Af=class{constructor(e,t,n,r,i,s,o){this._document=e,this._characterJoinerService=t,this._optionsService=n,this._coreBrowserService=r,this._coreService=i,this._decorationService=s,this._themeService=o,this._workCell=new Dt,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,n){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=n}createRow(e,t,n,r,i,s,o,a,l,c,u){let d=[],h=this._characterJoinerService.getJoinedCharacters(t),f=this._themeService.colors,p=e.getNoBgTrimmedLength();n&&p<s+1&&(p=s+1);let g,_=0,y="",O=0,P=0,x=0,V=0,z=!1,Oe=0,kt=!1,Bt=0,wo=0,se=[],ac=c!==-1&&u!==-1;for(let C=0;C<p;C++){e.loadCell(C,this._workCell);let w=this._workCell.getWidth();if(w===0)continue;let k=!1,E=C>=wo,N=C,S=this._workCell;if(h.length>0&&C===h[0][0]&&E){let X=h.shift(),lc=this._isCellInSelection(X[0],t);for(O=X[0]+1;O<X[1];O++)E&&=lc===this._isCellInSelection(O,t);E&&=!n||s<X[0]||s>=X[1],E?(k=!0,S=new _A(this._workCell,e.translateToString(!0,X[0],X[1]),X[1]-X[0]),N=X[1]-1,w=S.getWidth()):wo=X[1]}let U=this._isCellInSelection(C,t),oe=n&&C===s,Pe=ac&&C>=c&&C<=u,Ht=!1;this._decorationService.forEachDecorationAtCell(C,t,void 0,X=>{Ht=!0});let tn=S.getChars()||Qn;if(tn===" "&&(S.isUnderline()||S.isOverline())&&(tn="\xA0"),Bt=w*a-l.get(tn,S.isBold(),S.isItalic()),!g)g=this._document.createElement("span");else if(_&&(U&&kt||!U&&!kt&&S.bg===P)&&(U&&kt&&f.selectionForeground||S.fg===x)&&S.extended.ext===V&&Pe===z&&Bt===Oe&&!oe&&!k&&!Ht&&E){S.isInvisible()?y+=Qn:y+=tn,_++;continue}else _&&(g.textContent=y),g=this._document.createElement("span"),_=0,y="";if(P=S.bg,x=S.fg,V=S.extended.ext,z=Pe,Oe=Bt,kt=U,k&&s>=C&&s<=N&&(s=C),!this._coreService.isCursorHidden&&oe&&this._coreService.isCursorInitialized){if(se.push("xterm-cursor"),this._coreBrowserService.isFocused)o&&se.push("xterm-cursor-blink"),se.push(r==="bar"?"xterm-cursor-bar":r==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(i)switch(i){case"outline":se.push("xterm-cursor-outline");break;case"block":se.push("xterm-cursor-block");break;case"bar":se.push("xterm-cursor-bar");break;case"underline":se.push("xterm-cursor-underline");break;default:break}}if(S.isBold()&&se.push("xterm-bold"),S.isItalic()&&se.push("xterm-italic"),S.isDim()&&se.push("xterm-dim"),S.isInvisible()?y=Qn:y=S.getChars()||Qn,S.isUnderline()&&(se.push(`xterm-underline-${S.extended.underlineStyle}`),y===" "&&(y="\xA0"),!S.isUnderlineColorDefault()))if(S.isUnderlineColorRGB())g.style.textDecorationColor=`rgb(${vo.toColorRGB(S.getUnderlineColor()).join(",")})`;else{let X=S.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&S.isBold()&&X<8&&(X+=8),g.style.textDecorationColor=f.ansi[X].css}S.isOverline()&&(se.push("xterm-overline"),y===" "&&(y="\xA0")),S.isStrikethrough()&&se.push("xterm-strikethrough"),Pe&&(g.style.textDecoration="underline");let Ie=S.getFgColor(),Dn=S.getFgColorMode(),Ue=S.getBgColor(),Jn=S.getBgColorMode(),Ri=!!S.isInverse();if(Ri){let X=Ie;Ie=Ue,Ue=X;let lc=Dn;Dn=Jn,Jn=lc}let kn,So,Li=!1;this._decorationService.forEachDecorationAtCell(C,t,void 0,X=>{X.options.layer!=="top"&&Li||(X.backgroundColorRGB&&(Jn=50331648,Ue=X.backgroundColorRGB.rgba>>8&16777215,kn=X.backgroundColorRGB),X.foregroundColorRGB&&(Dn=50331648,Ie=X.foregroundColorRGB.rgba>>8&16777215,So=X.foregroundColorRGB),Li=X.options.layer==="top")}),!Li&&U&&(kn=this._coreBrowserService.isFocused?f.selectionBackgroundOpaque:f.selectionInactiveBackgroundOpaque,Ue=kn.rgba>>8&16777215,Jn=50331648,Li=!0,f.selectionForeground&&(Dn=50331648,Ie=f.selectionForeground.rgba>>8&16777215,So=f.selectionForeground)),Li&&se.push("xterm-decoration-top");let In;switch(Jn){case 16777216:case 33554432:In=f.ansi[Ue],se.push(`xterm-bg-${Ue}`);break;case 50331648:In=we.toColor(Ue>>16,Ue>>8&255,Ue&255),this._addStyle(g,`background-color:#${kb((Ue>>>0).toString(16),"0",6)}`);break;default:Ri?(In=f.foreground,se.push("xterm-bg-257")):In=f.background}switch(kn||S.isDim()&&(kn=re.multiplyOpacity(In,.5)),Dn){case 16777216:case 33554432:S.isBold()&&Ie<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Ie+=8),this._applyMinimumContrast(g,In,f.ansi[Ie],S,kn,void 0)||se.push(`xterm-fg-${Ie}`);break;case 50331648:let X=we.toColor(Ie>>16&255,Ie>>8&255,Ie&255);this._applyMinimumContrast(g,In,X,S,kn,So)||this._addStyle(g,`color:#${kb(Ie.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(g,In,f.foreground,S,kn,So)||Ri&&se.push("xterm-fg-257")}se.length&&(g.className=se.join(" "),se.length=0),!oe&&!k&&!Ht&&E?_++:g.textContent=y,Bt!==this.defaultSpacing&&(g.style.letterSpacing=`${Bt}px`),d.push(g),C=N}return g&&_&&(g.textContent=y),d}_applyMinimumContrast(e,t,n,r,i,s){if(this._optionsService.rawOptions.minimumContrastRatio===1||wA(r.getCode()))return!1;let o=this._getContrastCache(r),a;if(!i&&!s&&(a=o.getColor(t.rgba,n.rgba)),a===void 0){let l=this._optionsService.rawOptions.minimumContrastRatio/(r.isDim()?2:1);a=re.ensureContrastRatio(i||t,s||n,l),o.setColor((i||t).rgba,(s||n).rgba,a??null)}return a?(this._addStyle(e,`color:${a.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 n=this._selectionStart,r=this._selectionEnd;return!n||!r?!1:this._columnSelectMode?n[0]<=r[0]?e>=n[0]&&t>=n[1]&&e<r[0]&&t<=r[1]:e<n[0]&&t>=n[1]&&e>=r[0]&&t<=r[1]:t>n[1]&&t<r[1]||n[1]===r[1]&&t===n[1]&&e>=n[0]&&e<r[0]||n[1]<r[1]&&t===r[1]&&e<r[0]||n[1]<r[1]&&t===n[1]&&e>=n[0]}};Af=fe([D(1,uw),D(2,Qe),D(3,Cn),D(4,Br),D(5,_o),D(6,Ni)],Af);CA=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 n=e.createElement("span");n.classList.add("xterm-char-measure-element");let r=e.createElement("span");r.classList.add("xterm-char-measure-element"),r.style.fontWeight="bold";let i=e.createElement("span");i.classList.add("xterm-char-measure-element"),i.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=[n,r,i,s],this._container.appendChild(n),this._container.appendChild(r),this._container.appendChild(i),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,n,r){e===this._font&&t===this._fontSize&&n===this._weight&&r===this._weightBold||(this._font=e,this._fontSize=t,this._weight=n,this._weightBold=r,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${n}`,this._measureElements[1].style.fontWeight=`${r}`,this._measureElements[2].style.fontWeight=`${n}`,this._measureElements[3].style.fontWeight=`${r}`,this.clear())}get(e,t,n){let r=0;if(!t&&!n&&e.length===1&&(r=e.charCodeAt(0))<256){if(this._flat[r]!==-9999)return this._flat[r];let o=this._measure(e,0);return o>0&&(this._flat[r]=o),o}let i=e;t&&(i+="B"),n&&(i+="I");let s=this._holey.get(i);if(s===void 0){let o=0;t&&(o|=1),n&&(o|=2),s=this._measure(e,o),s>0&&this._holey.set(i,s)}return s}_measure(e,t){let n=this._measureElements[t];return n.textContent=e.repeat(32),n.offsetWidth/32}},EA=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,n,r=!1){if(this.selectionStart=t,this.selectionEnd=n,!t||!n||t[0]===n[0]&&t[1]===n[1]){this.clear();return}let i=e.buffers.active.ydisp,s=t[1]-i,o=n[1]-i,a=Math.max(s,0),l=Math.min(o,e.rows-1);if(a>=e.rows||l<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=r,this.viewportStartRow=s,this.viewportEndRow=o,this.viewportCappedStartRow=a,this.viewportCappedEndRow=l,this.startCol=t[0],this.endCol=n[0]}isCellSelected(e,t,n){return this.hasSelection?(n-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&n>=this.viewportCappedStartRow&&t<this.endCol&&n<=this.viewportCappedEndRow:t<this.startCol&&n>=this.viewportCappedStartRow&&t>=this.endCol&&n<=this.viewportCappedEndRow:n>this.viewportStartRow&&n<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol):!1}};ef="xterm-dom-renderer-owner-",St="xterm-rows",Ml="xterm-fg-",Ib="xterm-bg-",Js="xterm-focus",Nl="xterm-selection",kA=1,Rf=class extends B{constructor(e,t,n,r,i,s,o,a,l,c,u,d,h,f){super(),this._terminal=e,this._document=t,this._element=n,this._screenElement=r,this._viewportElement=i,this._helperContainer=s,this._linkifier2=o,this._charSizeService=l,this._optionsService=c,this._bufferService=u,this._coreService=d,this._coreBrowserService=h,this._themeService=f,this._terminalClass=kA++,this._rowElements=[],this._selectionRenderModel=DA(),this.onRequestRedraw=this._register(new b).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(St),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(Nl),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=SA(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(p=>this._injectCss(p))),this._injectCss(this._themeService.colors),this._rowFactory=a.createInstance(Af,document),this._element.classList.add(ef+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(p=>this._handleLinkHover(p))),this._register(this._linkifier2.onHideLinkUnderline(p=>this._handleLinkLeave(p))),this._register(ie(()=>{this._element.classList.remove(ef+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new CA(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 n of this._rowElements)n.style.width=`${this.dimensions.css.canvas.width}px`,n.style.height=`${this.dimensions.css.cell.height}px`,n.style.lineHeight=`${this.dimensions.css.cell.height}px`,n.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${St} 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} .${St} { 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} .${St} .xterm-dim { color: ${re.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 n=`blink_underline_${this._terminalClass}`,r=`blink_bar_${this._terminalClass}`,i=`blink_block_${this._terminalClass}`;t+=`@keyframes ${n} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${r} { 50% { box-shadow: none; }}`,t+=`@keyframes ${i} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${St}.${Js} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${St}.${Js} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${St}.${Js} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${St} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${St} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${St} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${St} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${St} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${Nl} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${Nl} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${Nl} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[s,o]of e.ansi.entries())t+=`${this._terminalSelector} .${Ml}${s} { color: ${o.css}; }${this._terminalSelector} .${Ml}${s}.xterm-dim { color: ${re.multiplyOpacity(o,.5).css}; }${this._terminalSelector} .${Ib}${s} { background-color: ${o.css}; }`;t+=`${this._terminalSelector} .${Ml}257 { color: ${re.opaque(e.background).css}; }${this._terminalSelector} .${Ml}257.xterm-dim { color: ${re.multiplyOpacity(re.opaque(e.background),.5).css}; }${this._terminalSelector} .${Ib}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 n=this._rowElements.length;n<=t;n++){let r=this._document.createElement("div");this._rowContainer.appendChild(r),this._rowElements.push(r)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(Js),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(Js),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,n){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,n),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,n),!this._selectionRenderModel.hasSelection))return;let r=this._selectionRenderModel.viewportStartRow,i=this._selectionRenderModel.viewportEndRow,s=this._selectionRenderModel.viewportCappedStartRow,o=this._selectionRenderModel.viewportCappedEndRow,a=this._document.createDocumentFragment();if(n){let l=e[0]>t[0];a.appendChild(this._createSelectionElement(s,l?t[0]:e[0],l?e[0]:t[0],o-s+1))}else{let l=r===s?e[0]:0,c=s===i?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(s,l,c));let u=o-s-1;if(a.appendChild(this._createSelectionElement(s+1,0,this._bufferService.cols,u)),s!==o){let d=i===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,d))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,n,r=1){let i=this._document.createElement("div"),s=t*this.dimensions.css.cell.width,o=this.dimensions.css.cell.width*(n-t);return s+o>this.dimensions.css.canvas.width&&(o=this.dimensions.css.canvas.width-s),i.style.height=`${r*this.dimensions.css.cell.height}px`,i.style.top=`${e*this.dimensions.css.cell.height}px`,i.style.left=`${s}px`,i.style.width=`${o}px`,i}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 n=this._bufferService.buffer,r=n.ybase+n.y,i=Math.min(n.x,this._bufferService.cols-1),s=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,o=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,a=this._optionsService.rawOptions.cursorInactiveStyle;for(let l=e;l<=t;l++){let c=l+n.ydisp,u=this._rowElements[l],d=n.lines.get(c);if(!u||!d)break;u.replaceChildren(...this._rowFactory.createRow(d,c,c===r,o,a,i,s,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${ef}${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,n,r,i,s){n<0&&(e=0),r<0&&(t=0);let o=this._bufferService.rows-1;n=Math.max(Math.min(n,o),0),r=Math.max(Math.min(r,o),0),i=Math.min(i,this._bufferService.cols);let a=this._bufferService.buffer,l=a.ybase+a.y,c=Math.min(a.x,i-1),u=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,h=this._optionsService.rawOptions.cursorInactiveStyle;for(let f=n;f<=r;++f){let p=f+a.ydisp,g=this._rowElements[f],_=a.lines.get(p);if(!g||!_)break;g.replaceChildren(...this._rowFactory.createRow(_,p,p===l,d,h,c,u,this.dimensions.css.cell.width,this._widthCache,s?f===n?e:0:-1,s?(f===r?t:i)-1:-1))}}};Rf=fe([D(7,Gf),D(8,Jl),D(9,Qe),D(10,Ze),D(11,Br),D(12,Cn),D(13,Ni)],Rf);Lf=class extends B{constructor(e,t,n){super(),this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=this._register(new b),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new xA(this._optionsService))}catch{this._measureStrategy=this._register(new IA(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())}};Lf=fe([D(2,Qe)],Lf);Ow=class extends B{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)}},IA=class extends Ow{constructor(e,t,n){super(),this._document=e,this._parentElement=t,this._optionsService=n,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}},xA=class extends Ow{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}},TA=class extends B{constructor(e,t,n){super(),this._textarea=e,this._window=t,this.mainDocument=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new MA(this._window)),this._onDprChange=this._register(new b),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new b),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(r=>this._screenDprMonitor.setWindow(r))),this._register(He.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(L(this._textarea,"focus",()=>this._isFocused=!0)),this._register(L(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}},MA=class extends B{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new Mi),this._onDprChange=this._register(new b),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(ie(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=L(this._parentWindow,"resize",()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){this._outerListener&&(this._resolutionMediaMatchList?.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)}},NA=class extends B{constructor(){super(),this.linkProviders=[],this._register(ie(()=>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)}}}};Of=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,n,r,i){return AA(window,e,t,n,r,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,i)}getMouseReportCoords(e,t){let n=tp(window,e,t);if(this._charSizeService.hasValidSize)return n[0]=Math.min(Math.max(n[0],0),this._renderService.dimensions.css.canvas.width-1),n[1]=Math.min(Math.max(n[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(n[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(n[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(n[0]),y:Math.floor(n[1])}}};Of=fe([D(0,En),D(1,Jl)],Of);RA=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,n){this._rowCount=n,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=[]}},Pw={};mM(Pw,{getSafariVersion:()=>OA,isChromeOS:()=>Hw,isFirefox:()=>$w,isIpad:()=>PA,isIphone:()=>$A,isLegacyEdge:()=>LA,isLinux:()=>np,isMac:()=>Yl,isNode:()=>nc,isSafari:()=>Fw,isWindows:()=>Bw});nc=typeof process<"u"&&"title"in process,yo=nc?"node":navigator.userAgent,bo=nc?"node":navigator.platform,$w=yo.includes("Firefox"),LA=yo.includes("Edge"),Fw=/^((?!chrome|android).)*safari/i.test(yo);Yl=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(bo),PA=bo==="iPad",$A=bo==="iPhone",Bw=["Windows","Win16","Win32","WinCE"].includes(bo),np=bo.indexOf("Linux")>=0,Hw=/\bCrOS\b/.test(yo),jw=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,n=0,r=e.timeRemaining(),i=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),n=Math.max(t,n),i=e.timeRemaining(),n*1.5>i){r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),this._start();return}r=i}this.clear()}},FA=class extends jw{_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())}}},BA=class extends jw{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},Zl=!nc&&"requestIdleCallback"in window?BA:FA,HA=class{constructor(){this._queue=new Zl}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},Pf=class extends B{constructor(e,t,n,r,i,s,o,a,l){super(),this._rowCount=e,this._optionsService=n,this._charSizeService=r,this._coreService=i,this._coreBrowserService=a,this._renderer=this._register(new Mi),this._pausedResizeTask=new HA,this._observerDisposable=this._register(new Mi),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 b),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new b),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new b),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new b),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new RA((c,u)=>this._renderRows(c,u),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new jA(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(ie(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(o.onResize(()=>this._fullRefresh())),this._register(o.buffers.onBufferActivate(()=>this._renderer.value?.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(o.cols,o.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(o.buffer.y,o.buffer.y,!0))),this._register(l.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(c=>this._registerIntersectionObserver(c,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if("IntersectionObserver"in e){let n=new e.IntersectionObserver(r=>this._handleIntersectionChange(r[r.length-1]),{threshold:0});n.observe(t),this._observerDisposable.value=ie(()=>n.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,n=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let r=this._syncOutputHandler.flush();r&&(e=Math.min(e,r.start),t=Math.max(t,r.end)),n||(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(){this._renderer.value&&(this._renderer.value.clearTextureAtlas?.(),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(()=>this._renderer.value?.handleResize(e,t)):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){this._renderer.value?.handleCharSizeChanged()}handleBlur(){this._renderer.value?.handleBlur()}handleFocus(){this._renderer.value?.handleFocus()}handleSelectionChanged(e,t,n){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,this._renderer.value?.handleSelectionChanged(e,t,n)}handleCursorMove(){this._renderer.value?.handleCursorMove()}clear(){this._renderer.value?.clear()}};Pf=fe([D(2,Qe),D(3,Jl),D(4,Br),D(5,_o),D(6,Ze),D(7,Cn),D(8,Ni)],Pf);jA=class{constructor(e,t,n){this._coreBrowserService=e,this._coreService=t,this._onTimeout=n,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)}};YA=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)}};tf=50,ZA=15,QA=50,XA=500,JA="\xA0",eR=new RegExp(JA,"g"),$f=class extends B{constructor(e,t,n,r,i,s,o,a,l){super(),this._element=e,this._screenElement=t,this._linkifier=n,this._bufferService=r,this._coreService=i,this._mouseService=s,this._optionsService=o,this._renderService=a,this._coreBrowserService=l,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new Dt,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new b),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new b),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new b),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new b),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 YA(this._bufferService),this._activeSelectionMode=0,this._register(ie(()=>{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 n=this._bufferService.buffer,r=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return"";let i=e[0]<t[0]?e[0]:t[0],s=e[0]<t[0]?t[0]:e[0];for(let o=e[1];o<=t[1];o++){let a=n.translateBufferLineToString(o,!0,i,s);r.push(a)}}else{let i=e[1]===t[1]?t[0]:void 0;r.push(n.translateBufferLineToString(e[1],!0,e[0],i));for(let s=e[1]+1;s<=t[1]-1;s++){let o=n.lines.get(s),a=n.translateBufferLineToString(s,!0);o?.isWrapped?r[r.length-1]+=a:r.push(a)}if(e[1]!==t[1]){let s=n.lines.get(t[1]),o=n.translateBufferLineToString(t[1],!0,0,t[0]);s&&s.isWrapped?r[r.length-1]+=o:r.push(o)}}return r.map(i=>i.replace(eR," ")).join(Bw?`\r
35
- `:`
36
- `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),np&&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),n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r||!t?!1:this._areCoordsInSelection(t,n,r)}isCellInSelection(e,t){let n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r?!1:this._areCoordsInSelection([e,t],n,r)}_areCoordsInSelection(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){let n=this._linkifier.currentLink?.link?.range;if(n)return this._model.selectionStart=[n.start.x-1,n.start.y-1],this._model.selectionStartLength=xb(n,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let r=this._getMouseBufferCoords(e);return r?(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=tp(this._coreBrowserService.window,e,this._screenElement)[1],n=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-tf),tf),t/=tf,t/Math.abs(t)+Math.round(t*(ZA-1)))}shouldForceSelection(e){return Yl?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(),QA)}_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&&!(Yl&&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 n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){let r=n.lines.get(this._model.selectionEnd[1]);r&&r.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}(!t||t[0]!==this._model.selectionEnd[0]||t[1]!==this._model.selectionEnd[1])&&this.refresh(!0)}_dragScroll(){if(!(!this._model.selectionEnd||!this._model.selectionStart)&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<XA&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&n[0]!==void 0&&n[1]!==void 0){let r=VA(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(r,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!!e&&!!t&&(e[0]!==t[0]||e[1]!==t[1]);if(!n){this._oldHasSelection&&this._fireOnSelectionChange(e,t,n);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,n)}_fireOnSelectionChange(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(t=>this._handleTrim(t))}_convertViewportColToCharacterIndex(e,t){let n=t;for(let r=0;t>=r;r++){let i=e.loadCell(r,this._workCell).getChars().length;this._workCell.getWidth()===0?n--:i>1&&t!==r&&(n+=i-1)}return n}setSelection(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,n=!0,r=!0){if(e[0]>=this._bufferService.cols)return;let i=this._bufferService.buffer,s=i.lines.get(e[1]);if(!s)return;let o=i.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(s,e[0]),l=a,c=e[0]-a,u=0,d=0,h=0,f=0;if(o.charAt(a)===" "){for(;a>0&&o.charAt(a-1)===" ";)a--;for(;l<o.length&&o.charAt(l+1)===" ";)l++}else{let _=e[0],y=e[0];s.getWidth(_)===0&&(u++,_--),s.getWidth(y)===2&&(d++,y++);let O=s.getString(y).length;for(O>1&&(f+=O-1,l+=O-1);_>0&&a>0&&!this._isCharWordSeparator(s.loadCell(_-1,this._workCell));){s.loadCell(_-1,this._workCell);let P=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,_--):P>1&&(h+=P-1,a-=P-1),a--,_--}for(;y<s.length&&l+1<o.length&&!this._isCharWordSeparator(s.loadCell(y+1,this._workCell));){s.loadCell(y+1,this._workCell);let P=this._workCell.getChars().length;this._workCell.getWidth()===2?(d++,y++):P>1&&(f+=P-1,l+=P-1),l++,y++}}l++;let p=a+c-u+h,g=Math.min(this._bufferService.cols,l-a+u+d-h-f);if(!(!t&&o.slice(a,l).trim()==="")){if(n&&p===0&&s.getCodePoint(0)!==32){let _=i.lines.get(e[1]-1);if(_&&s.isWrapped&&_.getCodePoint(this._bufferService.cols-1)!==32){let y=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(y){let O=this._bufferService.cols-y.start;p-=O,g+=O}}}if(r&&p+g===this._bufferService.cols&&s.getCodePoint(this._bufferService.cols-1)!==32){let _=i.lines.get(e[1]+1);if(_?.isWrapped&&_.getCodePoint(0)!==32){let y=this._getWordAt([0,e[1]+1],!1,!1,!0);y&&(g+=y.length)}}return{start:p,length:g}}}_selectWordAt(e,t){let n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let n=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}}_isCharWordSeparator(e){return e.getWidth()===0?!1:this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),n={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=xb(n,this._bufferService.cols)}};$f=fe([D(3,Ze),D(4,Br),D(5,Kf),D(6,Qe),D(7,En),D(8,Cn)],$f);Tb=class{constructor(){this._data={}}set(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},Mb=class{constructor(){this._color=new Tb,this._css=new Tb}setCss(e,t,n){this._css.set(e,t,n)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,n){this._color.set(e,t,n)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},Ee=Object.freeze((()=>{let e=[ue.toColor("#2e3436"),ue.toColor("#cc0000"),ue.toColor("#4e9a06"),ue.toColor("#c4a000"),ue.toColor("#3465a4"),ue.toColor("#75507b"),ue.toColor("#06989a"),ue.toColor("#d3d7cf"),ue.toColor("#555753"),ue.toColor("#ef2929"),ue.toColor("#8ae234"),ue.toColor("#fce94f"),ue.toColor("#729fcf"),ue.toColor("#ad7fa8"),ue.toColor("#34e2e2"),ue.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],s=t[n%6];e.push({css:we.toCss(r,i,s),rgba:we.toRgba(r,i,s)})}for(let n=0;n<24;n++){let r=8+n*10;e.push({css:we.toCss(r,r,r),rgba:we.toRgba(r,r,r)})}return e})()),Rr=ue.toColor("#ffffff"),oo=ue.toColor("#000000"),Nb=ue.toColor("#ffffff"),Ab=oo,eo={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117},tR=Rr,Ff=class extends B{constructor(e){super(),this._optionsService=e,this._contrastCache=new Mb,this._halfContrastCache=new Mb,this._onChangeColors=this._register(new b),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:Rr,background:oo,cursor:Nb,cursorAccent:Ab,selectionForeground:void 0,selectionBackgroundTransparent:eo,selectionBackgroundOpaque:re.blend(oo,eo),selectionInactiveBackgroundTransparent:eo,selectionInactiveBackgroundOpaque:re.blend(oo,eo),scrollbarSliderBackground:re.opacity(Rr,.2),scrollbarSliderHoverBackground:re.opacity(Rr,.4),scrollbarSliderActiveBackground:re.opacity(Rr,.5),overviewRulerBorder:Rr,ansi:Ee.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=ee(e.foreground,Rr),t.background=ee(e.background,oo),t.cursor=re.blend(t.background,ee(e.cursor,Nb)),t.cursorAccent=re.blend(t.background,ee(e.cursorAccent,Ab)),t.selectionBackgroundTransparent=ee(e.selectionBackground,eo),t.selectionBackgroundOpaque=re.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=ee(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=re.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?ee(e.selectionForeground,Db):void 0,t.selectionForeground===Db&&(t.selectionForeground=void 0),re.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=re.opacity(t.selectionBackgroundTransparent,.3)),re.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=re.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=ee(e.scrollbarSliderBackground,re.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=ee(e.scrollbarSliderHoverBackground,re.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=ee(e.scrollbarSliderActiveBackground,re.opacity(t.foreground,.5)),t.overviewRulerBorder=ee(e.overviewRulerBorder,tR),t.ansi=Ee.slice(),t.ansi[0]=ee(e.black,Ee[0]),t.ansi[1]=ee(e.red,Ee[1]),t.ansi[2]=ee(e.green,Ee[2]),t.ansi[3]=ee(e.yellow,Ee[3]),t.ansi[4]=ee(e.blue,Ee[4]),t.ansi[5]=ee(e.magenta,Ee[5]),t.ansi[6]=ee(e.cyan,Ee[6]),t.ansi[7]=ee(e.white,Ee[7]),t.ansi[8]=ee(e.brightBlack,Ee[8]),t.ansi[9]=ee(e.brightRed,Ee[9]),t.ansi[10]=ee(e.brightGreen,Ee[10]),t.ansi[11]=ee(e.brightYellow,Ee[11]),t.ansi[12]=ee(e.brightBlue,Ee[12]),t.ansi[13]=ee(e.brightMagenta,Ee[13]),t.ansi[14]=ee(e.brightCyan,Ee[14]),t.ansi[15]=ee(e.brightWhite,Ee[15]),e.extendedAnsi){let n=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let r=0;r<n;r++)t.ansi[r+16]=ee(e.extendedAnsi[r],Ee[r+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e===void 0){for(let t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t];return}switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};Ff=fe([D(0,Qe)],Ff);nR=class{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){let n=this._entries.get(e);return this._entries.set(e,t),n}forEach(e){for(let[t,n]of this._entries.entries())e(t,n)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},rR=class{constructor(){this._services=new nR,this._services.set(Gf,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let n=CM(e).sort((s,o)=>s.index-o.index),r=[];for(let s of n){let o=this._services.get(s.id);if(!o)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${s.id._id}.`);r.push(o)}let i=n.length>0?n[0].index:t.length;if(t.length!==i)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${i+1} conflicts with ${t.length} static arguments`);return new e(...t,...r)}},iR={trace:0,debug:1,info:2,warn:3,error:4,off:5},sR="xterm.js: ",Bf=class extends B{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),oR=this}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=iR[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,n){this._evalLazyOptionalParams(n),e.call(console,(this._optionsService.options.logger?"":sR)+t,...n)}trace(e,...t){this._logLevel<=0&&this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger)??console.log,e,t)}debug(e,...t){this._logLevel<=1&&this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger)??console.log,e,t)}info(e,...t){this._logLevel<=2&&this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger)??console.info,e,t)}warn(e,...t){this._logLevel<=3&&this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger)??console.warn,e,t)}error(e,...t){this._logLevel<=4&&this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger)??console.error,e,t)}};Bf=fe([D(0,Qe)],Bf);Rb=class extends B{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new b),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new b),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new b),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 n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];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,...n){if(t){for(let r=e;r<this._length-t;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let r=this._length-1;r>=e;r--)this._array[this._getCyclicIndex(r+n.length)]=this._array[this._getCyclicIndex(r)];for(let r=0;r<n.length;r++)this._array[this._getCyclicIndex(e+r)]=n[r];if(n.length&&this.onInsertEmitter.fire({index:e,amount:n.length}),this._length+n.length>this._maxLength){let r=this._length+n.length-this._maxLength;this._startIndex+=r,this._length=this._maxLength,this.onTrimEmitter.fire(r)}else this._length+=n.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(let i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));let r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let r=0;r<t;r++)this.set(e+r+n,this.get(e+r))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},j=3,be=Object.freeze(new vo),Al=0,nf=2,ao=class Uw{constructor(t,n,r=!1){this.isWrapped=r,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(t*j);let i=n||Dt.fromCharData([0,rw,1,0]);for(let s=0;s<t;++s)this.setCell(s,i);this.length=t}get(t){let n=this._data[t*j+0],r=n&2097151;return[this._data[t*j+1],n&2097152?this._combined[t]:r?Zn(r):"",n>>22,n&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):r]}set(t,n){this._data[t*j+1]=n[0],n[1].length>1?(this._combined[t]=n[1],this._data[t*j+0]=t|2097152|n[2]<<22):this._data[t*j+0]=n[1].charCodeAt(0)|n[2]<<22}getWidth(t){return this._data[t*j+0]>>22}hasWidth(t){return this._data[t*j+0]&12582912}getFg(t){return this._data[t*j+1]}getBg(t){return this._data[t*j+2]}hasContent(t){return this._data[t*j+0]&4194303}getCodePoint(t){let n=this._data[t*j+0];return n&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):n&2097151}isCombined(t){return this._data[t*j+0]&2097152}getString(t){let n=this._data[t*j+0];return n&2097152?this._combined[t]:n&2097151?Zn(n&2097151):""}isProtected(t){return this._data[t*j+2]&536870912}loadCell(t,n){return Al=t*j,n.content=this._data[Al+0],n.fg=this._data[Al+1],n.bg=this._data[Al+2],n.content&2097152&&(n.combinedData=this._combined[t]),n.bg&268435456&&(n.extended=this._extendedAttrs[t]),n}setCell(t,n){n.content&2097152&&(this._combined[t]=n.combinedData),n.bg&268435456&&(this._extendedAttrs[t]=n.extended),this._data[t*j+0]=n.content,this._data[t*j+1]=n.fg,this._data[t*j+2]=n.bg}setCellFromCodepoint(t,n,r,i){i.bg&268435456&&(this._extendedAttrs[t]=i.extended),this._data[t*j+0]=n|r<<22,this._data[t*j+1]=i.fg,this._data[t*j+2]=i.bg}addCodepointToCell(t,n,r){let i=this._data[t*j+0];i&2097152?this._combined[t]+=Zn(n):i&2097151?(this._combined[t]=Zn(i&2097151)+Zn(n),i&=-2097152,i|=2097152):i=n|1<<22,r&&(i&=-12582913,i|=r<<22),this._data[t*j+0]=i}insertCells(t,n,r){if(t%=this.length,t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),n<this.length-t){let i=new Dt;for(let s=this.length-t-n-1;s>=0;--s)this.setCell(t+n+s,this.loadCell(t+s,i));for(let s=0;s<n;++s)this.setCell(t+s,r)}else for(let i=t;i<this.length;++i)this.setCell(i,r);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,r)}deleteCells(t,n,r){if(t%=this.length,n<this.length-t){let i=new Dt;for(let s=0;s<this.length-t-n;++s)this.setCell(t+s,this.loadCell(t+n+s,i));for(let s=this.length-n;s<this.length;++s)this.setCell(s,r)}else for(let i=t;i<this.length;++i)this.setCell(i,r);t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),this.getWidth(t)===0&&!this.hasContent(t)&&this.setCellFromCodepoint(t,0,1,r)}replaceCells(t,n,r,i=!1){if(i){for(t&&this.getWidth(t-1)===2&&!this.isProtected(t-1)&&this.setCellFromCodepoint(t-1,0,1,r),n<this.length&&this.getWidth(n-1)===2&&!this.isProtected(n)&&this.setCellFromCodepoint(n,0,1,r);t<n&&t<this.length;)this.isProtected(t)||this.setCell(t,r),t++;return}for(t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),n<this.length&&this.getWidth(n-1)===2&&this.setCellFromCodepoint(n,0,1,r);t<n&&t<this.length;)this.setCell(t++,r)}resize(t,n){if(t===this.length)return this._data.length*4*nf<this._data.buffer.byteLength;let r=t*j;if(t>this.length){if(this._data.buffer.byteLength>=r*4)this._data=new Uint32Array(this._data.buffer,0,r);else{let i=new Uint32Array(r);i.set(this._data),this._data=i}for(let i=this.length;i<t;++i)this.setCell(i,n)}else{this._data=this._data.subarray(0,r);let i=Object.keys(this._combined);for(let o=0;o<i.length;o++){let a=parseInt(i[o],10);a>=t&&delete this._combined[a]}let s=Object.keys(this._extendedAttrs);for(let o=0;o<s.length;o++){let a=parseInt(s[o],10);a>=t&&delete this._extendedAttrs[a]}}return this.length=t,r*4*nf<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*nf<this._data.buffer.byteLength){let t=new Uint32Array(this._data.length);return t.set(this._data),this._data=t,1}return 0}fill(t,n=!1){if(n){for(let r=0;r<this.length;++r)this.isProtected(r)||this.setCell(r,t);return}this._combined={},this._extendedAttrs={};for(let r=0;r<this.length;++r)this.setCell(r,t)}copyFrom(t){this.length!==t.length?this._data=new Uint32Array(t._data):this._data.set(t._data),this.length=t.length,this._combined={};for(let n in t._combined)this._combined[n]=t._combined[n];this._extendedAttrs={};for(let n in t._extendedAttrs)this._extendedAttrs[n]=t._extendedAttrs[n];this.isWrapped=t.isWrapped}clone(){let t=new Uw(0);t._data=new Uint32Array(this._data),t.length=this.length;for(let n in this._combined)t._combined[n]=this._combined[n];for(let n in this._extendedAttrs)t._extendedAttrs[n]=this._extendedAttrs[n];return t.isWrapped=this.isWrapped,t}getTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*j+0]&4194303)return t+(this._data[t*j+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*j+0]&4194303||this._data[t*j+2]&50331648)return t+(this._data[t*j+0]>>22);return 0}copyCellsFrom(t,n,r,i,s){let o=t._data;if(s)for(let l=i-1;l>=0;l--){for(let c=0;c<j;c++)this._data[(r+l)*j+c]=o[(n+l)*j+c];o[(n+l)*j+2]&268435456&&(this._extendedAttrs[r+l]=t._extendedAttrs[n+l])}else for(let l=0;l<i;l++){for(let c=0;c<j;c++)this._data[(r+l)*j+c]=o[(n+l)*j+c];o[(n+l)*j+2]&268435456&&(this._extendedAttrs[r+l]=t._extendedAttrs[n+l])}let a=Object.keys(t._combined);for(let l=0;l<a.length;l++){let c=parseInt(a[l],10);c>=n&&(this._combined[c-n+r]=t._combined[c])}}translateToString(t,n,r,i){n=n??0,r=r??this.length,t&&(r=Math.min(r,this.getTrimmedLength())),i&&(i.length=0);let s="";for(;n<r;){let o=this._data[n*j+0],a=o&2097151,l=o&2097152?this._combined[n]:a?Zn(a):Qn;if(s+=l,i)for(let c=0;c<l.length;++c)i.push(n);n+=o>>22||1}return i&&i.push(n),s}};dR=(()=>{let e=class Ww{constructor(n){this.line=n,this.isDisposed=!1,this._disposables=[],this._id=Ww._nextId++,this._onDispose=this.register(new b),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),$r(this._disposables),this._disposables.length=0)}register(n){return this._disposables.push(n),n}};return e._nextId=1,e})(),hR=dR,ke={},Lr=ke.B;ke[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"};ke.A={"#":"\xA3"};ke.B=void 0;ke[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"};ke.C=ke[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"};ke.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"};ke.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"};ke.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"};ke.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"};ke.E=ke[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"};ke.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"};ke.H=ke[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"};ke["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"};Lb=4294967295,Ob=class{constructor(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=be.clone(),this.savedCharset=Lr,this.markers=[],this._nullCell=Dt.fromCharData([0,rw,1,0]),this._whitespaceCell=Dt.fromCharData([0,Qn,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new Zl,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new Rb(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 zl),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 zl),this._whitespaceCell}getBlankLine(e,t){return new ao(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>Lb?Lb:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=be);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 Rb(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let n=this.getNullCell(be),r=0,i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(let o=0;o<this.lines.length;o++)r+=+this.lines.get(o).resize(e,n);let s=0;if(this._rows<t)for(let o=this._rows;o<t;o++)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 ao(e,n)):this.ybase>0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(new ao(e,n)));else for(let o=this._rows;o>t;o--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){let o=this.lines.length-i;o>0&&(this.lines.trimStart(o),this.ybase=Math.max(this.ybase-o,0),this.ydisp=Math.max(this.ydisp-o,0),this.savedY=Math.max(this.savedY-o,0)),this.lines.maxLength=i}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++)r+=+this.lines.get(s).resize(e,n);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),r>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend==="conpty"&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let n=this._optionsService.rawOptions.reflowCursorLine,r=aR(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(be),n);if(r.length>0){let i=lR(this.lines,r);cR(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}}_reflowLargerAdjustViewport(e,t,n){let r=this.getNullCell(be),i=n;for(;i-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new ao(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)}_reflowSmaller(e,t){let n=this._optionsService.rawOptions.reflowCursorLine,r=this.getNullCell(be),i=[],s=0;for(let o=this.lines.length-1;o>=0;o--){let a=this.lines.get(o);if(!a||!a.isWrapped&&a.getTrimmedLength()<=e)continue;let l=[a];for(;a.isWrapped&&o>0;)a=this.lines.get(--o),l.unshift(a);if(!n){let P=this.ybase+this.y;if(P>=o&&P<o+l.length)continue}let c=l[l.length-1].getTrimmedLength(),u=uR(l,this._cols,e),d=u.length-l.length,h;this.ybase===0&&this.y!==this.lines.length-1?h=Math.max(0,this.y-this.lines.maxLength+d):h=Math.max(0,this.lines.length-this.lines.maxLength+d);let f=[];for(let P=0;P<d;P++){let x=this.getBlankLine(be,!0);f.push(x)}f.length>0&&(i.push({start:o+l.length+s,newLines:f}),s+=f.length),l.push(...f);let p=u.length-1,g=u[p];g===0&&(p--,g=u[p]);let _=l.length-d-1,y=c;for(;_>=0;){let P=Math.min(y,g);if(l[p]===void 0)break;if(l[p].copyCellsFrom(l[_],y-P,g-P,P,!0),g-=P,g===0&&(p--,g=u[p]),y-=P,y===0){_--;let x=Math.max(_,0);y=mo(l,x,this._cols)}}for(let P=0;P<l.length;P++)u[P]<e&&l[P].setCell(u[P],r);let O=d-h;for(;O-- >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(i.length>0){let o=[],a=[];for(let g=0;g<this.lines.length;g++)a.push(this.lines.get(g));let l=this.lines.length,c=l-1,u=0,d=i[u];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+s);let h=0;for(let g=Math.min(this.lines.maxLength-1,l+s-1);g>=0;g--)if(d&&d.start>c+h){for(let _=d.newLines.length-1;_>=0;_--)this.lines.set(g--,d.newLines[_]);g++,o.push({index:c+1,amount:d.newLines.length}),h+=d.newLines.length,d=i[++u]}else this.lines.set(g,a[c--]);let f=0;for(let g=o.length-1;g>=0;g--)o[g].index+=f,this.lines.onInsertEmitter.fire(o[g]),f+=o[g].amount;let p=Math.max(0,l+s-this.lines.maxLength);p>0&&this.lines.onTrimEmitter.fire(p)}}translateBufferLineToString(e,t,n=0,r){let i=this.lines.get(e);return i?i.translateToString(t,n,r):""}getWrappedRangeForLine(e){let t=e,n=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}}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 hR(e);return this.markers.push(t),t.register(this.lines.onTrim(n=>{t.line-=n,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(n=>{t.line>=n.index&&(t.line+=n.amount)})),t.register(this.lines.onDelete(n=>{t.line>=n.index&&t.line<n.index+n.amount&&t.dispose(),t.line>n.index&&(t.line-=n.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},fR=class extends B{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new b),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 Ob(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new Ob(!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)}},qw=2,Gw=1,Hf=class extends B{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new b),this.onResize=this._onResize.event,this._onScroll=this._register(new b),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,qw),this.rows=Math.max(e.rawOptions.rows||0,Gw),this.buffers=this._register(new fR(e,this)),this._register(this.buffers.onBufferActivate(t=>{this._onScroll.fire(t.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let n=this.cols!==e,r=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:n,rowsChanged:r})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let n=this.buffer,r;r=this._cachedBlankLine,(!r||r.length!==this.cols||r.getFg(0)!==e.fg||r.getBg(0)!==e.bg)&&(r=n.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;let i=n.ybase+n.scrollTop,s=n.ybase+n.scrollBottom;if(n.scrollTop===0){let o=n.lines.isFull;s===n.lines.length-1?o?n.lines.recycle().copyFrom(r):n.lines.push(r.clone()):n.lines.splice(s+1,0,r.clone()),o?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{let o=s-i+1;n.lines.shiftElements(i+1,o-1,-1),n.lines.set(s,r.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)}scrollLines(e,t){let n=this.buffer;if(e<0){if(n.ydisp===0)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);let r=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),r!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))}};Hf=fe([D(0,Qe)],Hf);xi={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:Yl,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRuler:{}},pR=["normal","bold","100","200","300","400","500","600","700","800","900"],gR=class extends B{constructor(e){super(),this._onOptionChange=this._register(new b),this.onOptionChange=this._onOptionChange.event;let t=ae({},xi);for(let n in e)if(n in t)try{let r=e[n];t[n]=this._sanitizeAndValidateOption(n,r)}catch(r){console.error(r)}this.rawOptions=t,this.options=ae({},t),this._setupOptions(),this._register(ie(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(n=>{n===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(n=>{e.indexOf(n)!==-1&&t()})}_setupOptions(){let e=n=>{if(!(n in xi))throw new Error(`No option with key "${n}"`);return this.rawOptions[n]},t=(n,r)=>{if(!(n in xi))throw new Error(`No option with key "${n}"`);r=this._sanitizeAndValidateOption(n,r),this.rawOptions[n]!==r&&(this.rawOptions[n]=r,this._onOptionChange.fire(n))};for(let n in this.rawOptions){let r={get:e.bind(this,n),set:t.bind(this,n)};Object.defineProperty(this.options,n,r)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if(t||(t=xi[e]),!mR(t))throw new Error(`"${t}" is not a valid value for ${e}`);break;case"wordSeparator":t||(t=xi[e]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=pR.includes(t)?t:xi[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}};Pb=Object.freeze({insertMode:!1}),$b=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),jf=class extends B{constructor(e,t,n){super(),this._bufferService=e,this._logService=t,this._optionsService=n,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new b),this.onData=this._onData.event,this._onUserInput=this._register(new b),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new b),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new b),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=lo(Pb),this.decPrivateModes=lo($b)}reset(){this.modes=lo(Pb),this.decPrivateModes=lo($b)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let n=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&n.ybase!==n.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace("sending data (codes)",()=>e.split("").map(r=>r.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace("sending binary (codes)",()=>e.split("").map(t=>t.charCodeAt(0))),this._onBinary.fire(e))}};jf=fe([D(0,Ze),D(1,lw),D(2,Qe)],jf);Fb={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}};sf=String.fromCharCode,Bb={DEFAULT:e=>{let t=[rf(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1B[M${sf(t[0])}${sf(t[1])}${sf(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${rf(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${rf(e,!0)};${e.x};${e.y}${t}`}},Vf=class extends B{constructor(e,t,n){super(),this._bufferService=e,this._coreService=t,this._optionsService=n,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new b),this.onProtocolChange=this._onProtocolChange.event;for(let r of Object.keys(Fb))this.addProtocol(r,Fb[r]);for(let r of Object.keys(Bb))this.addEncoding(r,Bb[r]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,n){if(e.deltaY===0||e.shiftKey||t===void 0||n===void 0)return 0;let r=t/n,i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=r+0,Math.abs(e.deltaY)<50&&(i*=.3),this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i}_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,n){if(n){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)}};Vf=fe([D(0,Ze),D(1,Br),D(2,Qe)],Vf);of=[[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]],vR=[[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]];yR=class{constructor(){if(this.version="6",!De){De=new Uint8Array(65536),De.fill(1),De[0]=0,De.fill(0,1,32),De.fill(0,127,160),De.fill(2,4352,4448),De[9001]=2,De[9002]=2,De.fill(2,11904,42192),De[12351]=1,De.fill(2,44032,55204),De.fill(2,63744,64256),De.fill(2,65040,65050),De.fill(2,65072,65136),De.fill(2,65280,65377),De.fill(2,65504,65511);for(let e=0;e<of.length;++e)De.fill(0,of[e][0],of[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?De[e]:_R(e,vR)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let i=Or.extractWidth(t);i===0?r=!1:i>n&&(n=i)}return Or.createPropertyValue(0,n,r)}},Or=class Vl{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new b,this.onChange=this._onChange.event;let t=new yR;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,n,r=!1){return(t&16777215)<<3|(n&3)<<1|(r?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(t){if(!this._providers[t])throw new Error(`unknown Unicode version "${t}"`);this._active=t,this._activeProvider=this._providers[t],this._onChange.fire(t)}register(t){this._providers[t.version]=t}wcwidth(t){return this._activeProvider.wcwidth(t)}getStringCellWidth(t){let n=0,r=0,i=t.length;for(let s=0;s<i;++s){let o=t.charCodeAt(s);if(55296<=o&&o<=56319){if(++s>=i)return n+this.wcwidth(o);let c=t.charCodeAt(s);56320<=c&&c<=57343?o=(o-55296)*1024+c-56320+65536:n+=this.wcwidth(c)}let a=this.charProperties(o,r),l=Vl.extractWidth(a);Vl.extractShouldJoin(a)&&(l-=Vl.extractWidth(r)),n+=l,r=a}return n}charProperties(t,n){return this._activeProvider.charProperties(t,n)}},bR=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)}};to=2147483647,wR=256,Kw=class zf{constructor(t=32,n=32){if(this.maxLength=t,this.maxSubParamsLength=n,n>wR)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(n),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let n=new zf;if(!t.length)return n;for(let r=Array.isArray(t[0])?1:0;r<t.length;++r){let i=t[r];if(Array.isArray(i))for(let s=0;s<i.length;++s)n.addSubParam(i[s]);else n.addParam(i)}return n}clone(){let t=new zf(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 n=0;n<this.length;++n){t.push(this.params[n]);let r=this._subParamsIdx[n]>>8,i=this._subParamsIdx[n]&255;i-r>0&&t.push(Array.prototype.slice.call(this._subParams,r,i))}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>to?to: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>to?to:t,this._subParamsIdx[this.length-1]++}}hasSubParams(t){return(this._subParamsIdx[t]&255)-(this._subParamsIdx[t]>>8)>0}getSubParams(t){let n=this._subParamsIdx[t]>>8,r=this._subParamsIdx[t]&255;return r-n>0?this._subParams.subarray(n,r):null}getSubParamsAll(){let t={};for(let n=0;n<this.length;++n){let r=this._subParamsIdx[n]>>8,i=this._subParamsIdx[n]&255;i-r>0&&(t[n]=this._subParams.slice(r,i))}return t}addDigit(t){let n;if(this._rejectDigits||!(n=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let r=this._digitIsSub?this._subParams:this.params,i=r[n-1];r[n-1]=~i?Math.min(i*10+t,to):t}},no=[],SR=class{constructor(){this._state=0,this._active=no,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 n=this._handlers[e];return n.push(t),{dispose:()=>{let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=no}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=no,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||no,!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,n){if(!this._active.length)this._handlerFb(this._id,"PUT",Xl(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}start(){this.reset(),this._state=1}put(e,t,n){if(this._state!==3){if(this._state===1)for(;t<n;){let r=e[t++];if(r===59){this._state=2,this._start();break}if(r<48||57<r){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+r-48}this._state===2&&n-t>0&&this._put(e,t,n)}}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 n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].end(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].end(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}this._active=no,this._id=-1,this._state=0}}},ft=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=Xl(e,t,n),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(n=>(this._data="",this._hitLimit=!1,n));return this._data="",this._hitLimit=!1,t}},ro=[],CR=class{constructor(){this._handlers=Object.create(null),this._active=ro,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=ro}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=ro,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||ro,!this._active.length)this._handlerFb(this._ident,"HOOK",t);else for(let n=this._active.length-1;n>=0;n--)this._active[n].hook(t)}put(e,t,n){if(!this._active.length)this._handlerFb(this._ident,"PUT",Xl(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,"UNHOOK",e);else{let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].unhook(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].unhook(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}this._active=ro,this._ident=0}},co=new Kw;co.addParam(0);jb=class{constructor(e){this._handler=e,this._data="",this._params=co,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():co,this._data="",this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=Xl(e,t,n),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(n=>(this._params=co,this._data="",this._hitLimit=!1,n));return this._params=co,this._data="",this._hitLimit=!1,t}},ER=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,n,r){this.table[t<<8|e]=n<<4|r}addMany(e,t,n,r){for(let i=0;i<e.length;i++)this.table[t<<8|e[i]]=n<<4|r}},Et=160,DR=(function(){let e=new ER(4095),t=Array.apply(null,Array(256)).map((a,l)=>l),n=(a,l)=>t.slice(a,l),r=n(32,127),i=n(0,24);i.push(25),i.push.apply(i,n(28,32));let s=n(0,14),o;e.setDefault(1,0),e.addMany(r,0,2,0);for(o in s)e.addMany([24,26,153,154],o,3,0),e.addMany(n(128,144),o,3,0),e.addMany(n(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(Et,0,2,0),e.add(Et,8,5,8),e.add(Et,6,0,6),e.add(Et,11,0,11),e.add(Et,13,13,13),e})(),kR=class extends B{constructor(e=DR){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 Kw,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(t,n,r)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,n)=>{},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(ie(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new SR),this._dcsParser=this._register(new CR),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let n=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(n=e.prefix.charCodeAt(0),n&&60>n||n>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 i=0;i<e.intermediates.length;++i){let s=e.intermediates.charCodeAt(i);if(32>s||s>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=s}}if(e.final.length!==1)throw new Error("final must be a single byte");let r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return n<<=8,n|=r,n}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 n=this._identifier(e,[48,126]);this._escHandlers[n]===void 0&&(this._escHandlers[n]=[]);let r=this._escHandlers[n];return r.push(t),{dispose:()=>{let i=r.indexOf(t);i!==-1&&r.splice(i,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 n=this._identifier(e);this._csiHandlers[n]===void 0&&(this._csiHandlers[n]=[]);let r=this._csiHandlers[n];return r.push(t),{dispose:()=>{let i=r.indexOf(t);i!==-1&&r.splice(i,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,n,r,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=r,this._parseStack.chunkPos=i}parse(e,t,n){let r=0,i=0,s=0,o;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,s=this._parseStack.chunkPos+1;else{if(n===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let a=this._parseStack.handlers,l=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(n===!1&&l>-1){for(;l>=0&&(o=a[l](this._params),o!==!0);l--)if(o instanceof Promise)return this._parseStack.handlerPos=l,o}this._parseStack.handlers=[];break;case 4:if(n===!1&&l>-1){for(;l>=0&&(o=a[l](),o!==!0);l--)if(o instanceof Promise)return this._parseStack.handlerPos=l,o}this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],o=this._dcsParser.unhook(r!==24&&r!==26,n),o)return o;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],o=this._oscParser.end(r!==24&&r!==26,n),o)return o;r===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 a=s;a<t;++a){switch(r=e[a],i=this._transitions.table[this.currentState<<8|(r<160?r:Et)],i>>4){case 2:for(let h=a+1;;++h){if(h>=t||(r=e[h])<32||r>126&&r<Et){this._printHandler(e,a,h),a=h-1;break}if(++h>=t||(r=e[h])<32||r>126&&r<Et){this._printHandler(e,a,h),a=h-1;break}if(++h>=t||(r=e[h])<32||r>126&&r<Et){this._printHandler(e,a,h),a=h-1;break}if(++h>=t||(r=e[h])<32||r>126&&r<Et){this._printHandler(e,a,h),a=h-1;break}}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:a,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let l=this._csiHandlers[this._collect<<8|r],c=l?l.length-1:-1;for(;c>=0&&(o=l[c](this._params),o!==!0);c--)if(o instanceof Promise)return this._preserveStack(3,l,c,i,a),o;c<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingJoinState=0;break;case 8:do switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}while(++a<t&&(r=e[a])>47&&r<60);a--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:let u=this._escHandlers[this._collect<<8|r],d=u?u.length-1:-1;for(;d>=0&&(o=u[d](),o!==!0);d--)if(o instanceof Promise)return this._preserveStack(4,u,d,i,a),o;d<0&&this._escHandlerFb(this._collect<<8|r),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let h=a+1;;++h)if(h>=t||(r=e[h])===24||r===26||r===27||r>127&&r<Et){this._dcsParser.put(e,a,h),a=h-1;break}break;case 14:if(o=this._dcsParser.unhook(r!==24&&r!==26),o)return this._preserveStack(6,[],0,i,a),o;r===27&&(i|=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 h=a+1;;h++)if(h>=t||(r=e[h])<32||r>127&&r<Et){this._oscParser.put(e,a,h),a=h-1;break}break;case 6:if(o=this._oscParser.end(r!==24&&r!==26),o)return this._preserveStack(5,[],0,i,a),o;r===27&&(i|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break}this.currentState=i&15}}},IR=/^([\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})$/,xR=/^[\da-f]+$/;MR={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Yn=131072,zb=10;Wb=5e3,qb=0,NR=class extends B{constructor(e,t,n,r,i,s,o,a,l=new kR){super(),this._bufferService=e,this._charsetService=t,this._coreService=n,this._logService=r,this._optionsService=i,this._oscLinkService=s,this._coreMouseService=o,this._unicodeService=a,this._parser=l,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new wM,this._utf8Decoder=new SM,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=be.clone(),this._eraseAttrDataInternal=be.clone(),this._onRequestBell=this._register(new b),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new b),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new b),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new b),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new b),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new b),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new b),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new b),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new b),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new b),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new b),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new b),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new b),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 Uf(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(v.BEL,()=>this.bell()),this._parser.setExecuteHandler(v.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(v.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(v.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(v.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(v.BS,()=>this.backspace()),this._parser.setExecuteHandler(v.HT,()=>this.tab()),this._parser.setExecuteHandler(v.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(v.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(Hl.IND,()=>this.index()),this._parser.setExecuteHandler(Hl.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(Hl.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new ft(c=>(this.setTitle(c),this.setIconName(c),!0))),this._parser.registerOscHandler(1,new ft(c=>this.setIconName(c))),this._parser.registerOscHandler(2,new ft(c=>this.setTitle(c))),this._parser.registerOscHandler(4,new ft(c=>this.setOrReportIndexedColor(c))),this._parser.registerOscHandler(8,new ft(c=>this.setHyperlink(c))),this._parser.registerOscHandler(10,new ft(c=>this.setOrReportFgColor(c))),this._parser.registerOscHandler(11,new ft(c=>this.setOrReportBgColor(c))),this._parser.registerOscHandler(12,new ft(c=>this.setOrReportCursorColor(c))),this._parser.registerOscHandler(104,new ft(c=>this.restoreIndexedColor(c))),this._parser.registerOscHandler(110,new ft(c=>this.restoreFgColor(c))),this._parser.registerOscHandler(111,new ft(c=>this.restoreBgColor(c))),this._parser.registerOscHandler(112,new ft(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 ke)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 jb((c,u)=>this.requestStatusString(c,u)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,n,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=r}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((t,n)=>setTimeout(()=>n("#SLOW_TIMEOUT"),Wb))]).catch(t=>{if(t!=="#SLOW_TIMEOUT")throw t;console.warn(`async parser handler taking longer than ${Wb} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let n,r=this._activeBuffer.x,i=this._activeBuffer.y,s=0,o=this._parseStack.paused;if(o){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;r=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>Yn&&(s=this._parseStack.position+Yn)}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<Yn&&(this._parseBuffer=new Uint32Array(Math.min(e.length,Yn))),o||this._dirtyRowTracker.clearRange(),e.length>Yn)for(let c=s;c<e.length;c+=Yn){let u=c+Yn<e.length?c+Yn: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(n=this._parser.parse(this._parseBuffer,d))return this._preserveStack(r,i,d,c),this._logSlowResolvingAsync(n),n}else if(!o){let c=typeof e=="string"?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,c))return this._preserveStack(r,i,c,0),this._logSlowResolvingAsync(n),n}(this._activeBuffer.x!==r||this._activeBuffer.y!==i)&&this._onCursorMove.fire();let a=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),l=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);l<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(l,this._bufferService.rows-1),end:Math.min(a,this._bufferService.rows-1)})}print(e,t,n){let r,i,s=this._charsetService.charset,o=this._optionsService.rawOptions.screenReaderMode,a=this._bufferService.cols,l=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&&n-t>0&&d.getWidth(this._activeBuffer.x-1)===2&&d.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let h=this._parser.precedingJoinState;for(let f=t;f<n;++f){if(r=e[f],r<127&&s){let y=s[String.fromCharCode(r)];y&&(r=y.charCodeAt(0))}let p=this._unicodeService.charProperties(r,h);i=Or.extractWidth(p);let g=Or.extractShouldJoin(p),_=g?Or.extractWidth(h):0;if(h=p,o&&this._onA11yChar.fire(Zn(r)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+i-_>a){if(l){let y=d,O=this._activeBuffer.x-_;for(this._activeBuffer.x=_,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),_>0&&d instanceof ao&&d.copyCellsFrom(y,O,0,_,!1);O<a;)y.setCellFromCodepoint(O++,0,1,u)}else if(this._activeBuffer.x=a-1,i===2)continue}if(g&&this._activeBuffer.x){let y=d.getWidth(this._activeBuffer.x-1)?1:2;d.addCodepointToCell(this._activeBuffer.x-y,r,i);for(let O=i-_;--O>=0;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u);continue}if(c&&(d.insertCells(this._activeBuffer.x,i-_,this._activeBuffer.getNullCell(u)),d.getWidth(a-1)===2&&d.setCellFromCodepoint(a-1,0,1,u)),d.setCellFromCodepoint(this._activeBuffer.x++,r,i,u),i>0)for(;--i;)d.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=h,this._activeBuffer.x<a&&n-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,n=>Ub(n.params[0],this._optionsService.rawOptions.windowOptions)?t(n):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new jb(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new ft(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(){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&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.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,n,r=!1,i=!1){let s=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);s.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),i),r&&(s.isWrapped=!1)}_resetBufferLine(e,t=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n&&(n.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),n.isWrapped=!1)}eraseInDisplay(e,t=!1){this._restrictCursor(this._bufferService.cols);let n;switch(e.params[0]){case 0:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);n<this._bufferService.rows;n++)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(n);break;case 1:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(n+1).isWrapped=!1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(n=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,n-1);n--&&!this._activeBuffer.lines.get(this._activeBuffer.ybase+n)?.getTrimmedLength(););for(;n>=0;n--)this._bufferService.scroll(this._eraseAttrData())}else{for(n=this._bufferService.rows,this._dirtyRowTracker.markDirty(n-1);n--;)this._resetBufferLine(n,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 n=this._activeBuffer.ybase+this._activeBuffer.y,r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-r+1;for(;t--;)this._activeBuffer.lines.splice(i-1,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}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 n=this._activeBuffer.ybase+this._activeBuffer.y,r;for(r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-r;t--;)this._activeBuffer.lines.splice(n,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(be));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 n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){let t=this._parser.precedingJoinState;if(!t)return!0;let n=e.params[0]||1,r=Or.extractWidth(t),i=this._activeBuffer.x-r,s=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(i),o=new Uint32Array(s.length*n),a=0;for(let c=0;c<s.length;){let u=s.codePointAt(c)||0;o[a++]=u,c+=u>65535?2:1}let l=a;for(let c=1;c<n;++c)o.copyWithin(l,0,a),l+=a;return this.print(o,0,l),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(v.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(v.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(v.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(v.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(v.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,Lr),this._charsetService.setgCharset(1,Lr),this._charsetService.setgCharset(2,Lr),this._charsetService.setgCharset(3,Lr);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){let n;(g=>(g[g.NOT_RECOGNIZED=0]="NOT_RECOGNIZED",g[g.SET=1]="SET",g[g.RESET=2]="RESET",g[g.PERMANENTLY_SET=3]="PERMANENTLY_SET",g[g.PERMANENTLY_RESET=4]="PERMANENTLY_RESET"))(n||={});let r=this._coreService.decPrivateModes,{activeProtocol:i,activeEncoding:s}=this._coreMouseService,o=this._coreService,{buffers:a,cols:l}=this._bufferService,{active:c,alt:u}=a,d=this._optionsService.rawOptions,h=(g,_)=>(o.triggerDataEvent(`${v.ESC}[${t?"":"?"}${g};${_}$y`),!0),f=g=>g?1:2,p=e.params[0];return t?p===2?h(p,4):p===4?h(p,f(o.modes.insertMode)):p===12?h(p,3):p===20?h(p,f(d.convertEol)):h(p,0):p===1?h(p,f(r.applicationCursorKeys)):p===3?h(p,d.windowOptions.setWinLines?l===80?2:l===132?1:0:0):p===6?h(p,f(r.origin)):p===7?h(p,f(r.wraparound)):p===8?h(p,3):p===9?h(p,f(i==="X10")):p===12?h(p,f(d.cursorBlink)):p===25?h(p,f(!o.isCursorHidden)):p===45?h(p,f(r.reverseWraparound)):p===66?h(p,f(r.applicationKeypad)):p===67?h(p,4):p===1e3?h(p,f(i==="VT200")):p===1002?h(p,f(i==="DRAG")):p===1003?h(p,f(i==="ANY")):p===1004?h(p,f(r.sendFocus)):p===1005?h(p,4):p===1006?h(p,f(s==="SGR")):p===1015?h(p,4):p===1016?h(p,f(s==="SGR_PIXELS")):p===1048?h(p,1):p===47||p===1047||p===1049?h(p,f(c===u)):p===2004?h(p,f(r.bracketedPasteMode)):p===2026?h(p,f(r.synchronizedOutput)):h(p,0)}_updateAttrColor(e,t,n,r,i){return t===2?(e|=50331648,e&=-16777216,e|=vo.fromColorRGB([n,r,i])):t===5&&(e&=-50331904,e|=33554432|n&255),e}_extractColor(e,t,n){let r=[0,0,-1,0,0,0],i=0,s=0;do{if(r[s+i]=e.params[t+s],e.hasSubParams(t+s)){let o=e.getSubParams(t+s),a=0;do r[1]===5&&(i=1),r[s+a+1+i]=o[a];while(++a<o.length&&a+s+1+i<r.length);break}if(r[1]===5&&s+i>=2||r[1]===2&&s+i>=5)break;r[1]&&(i=1)}while(++s+t<e.length&&s+i<r.length);for(let o=2;o<r.length;++o)r[o]===-1&&(r[o]=0);switch(r[0]){case 38:n.fg=this._updateAttrColor(n.fg,r[1],r[3],r[4],r[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,r[1],r[3],r[4],r[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,r[1],r[3],r[4],r[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=be.fg,e.bg=be.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,n,r=this._curAttrData;for(let i=0;i<t;i++)n=e.params[i],n>=30&&n<=37?(r.fg&=-50331904,r.fg|=16777216|n-30):n>=40&&n<=47?(r.bg&=-50331904,r.bg|=16777216|n-40):n>=90&&n<=97?(r.fg&=-50331904,r.fg|=16777216|n-90|8):n>=100&&n<=107?(r.bg&=-50331904,r.bg|=16777216|n-100|8):n===0?this._processSGR0(r):n===1?r.fg|=134217728:n===3?r.bg|=67108864:n===4?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):n===5?r.fg|=536870912:n===7?r.fg|=67108864:n===8?r.fg|=1073741824:n===9?r.fg|=2147483648:n===2?r.bg|=134217728:n===21?this._processUnderline(2,r):n===22?(r.fg&=-134217729,r.bg&=-134217729):n===23?r.bg&=-67108865:n===24?(r.fg&=-268435457,this._processUnderline(0,r)):n===25?r.fg&=-536870913:n===27?r.fg&=-67108865:n===28?r.fg&=-1073741825:n===29?r.fg&=2147483647:n===39?(r.fg&=-67108864,r.fg|=be.fg&16777215):n===49?(r.bg&=-67108864,r.bg|=be.bg&16777215):n===38||n===48||n===58?i+=this._extractColor(e,i,r):n===53?r.bg|=1073741824:n===55?r.bg&=-1073741825:n===59?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):n===100?(r.fg&=-67108864,r.fg|=be.fg&16777215,r.bg&=-67108864,r.bg|=be.bg&16777215):this._logService.debug("Unknown SGR attribute: %d.",n);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${v.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${v.ESC}[${t};${n}R`);break}return!0}deviceStatusPrivate(e){switch(e.params[0]){case 6:let t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${v.ESC}[?${t};${n}R`);break;case 15:break;case 25:break;case 26:break;case 53: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=be.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 n=t%2===1;this._coreService.decPrivateModes.cursorBlink=n}return!0}setScrollRegion(e){let t=e.params[0]||1,n;return(e.length<2||(n=e.params[1])>this._bufferService.rows||n===0)&&(n=this._bufferService.rows),n>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=n-1,this._setCursor(0,0)),!0}windowOptions(e){if(!Ub(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(`${v.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>zb&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>zb&&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=[],n=e.split(";");for(;n.length>1;){let r=n.shift(),i=n.shift();if(/^\d+$/.exec(r)){let s=parseInt(r);if(Gb(s))if(i==="?")t.push({type:0,index:s});else{let o=Vb(i);o&&t.push({type:1,index:s,color:o})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(";");if(t===-1)return!0;let n=e.slice(0,t).trim(),r=e.slice(t+1);return r?this._createHyperlink(n,r):n.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let n=e.split(":"),r,i=n.findIndex(s=>s.startsWith("id="));return i!==-1&&(r=n[i].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:r,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let n=e.split(";");for(let r=0;r<n.length&&!(t>=this._specialColors.length);++r,++t)if(n[r]==="?")this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let i=Vb(n[r]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}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=[],n=e.split(";");for(let r=0;r<n.length;++r)if(/^\d+$/.exec(n[r])){let i=parseInt(n[r]);Gb(i)&&t.push({type:2,index:i})}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,Lr),!0}selectCharset(e){return e.length!==2?(this.selectDefaultCharset(),!0):(e[0]==="/"||this._charsetService.setgCharset(MR[e[0]],ke[e[1]]||Lr),!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=be.clone(),this._eraseAttrDataInternal=be.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 Dt;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 n=this._activeBuffer.ybase+this._activeBuffer.y+t,r=this._activeBuffer.lines.get(n);r&&(r.fill(e),r.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let n=o=>(this._coreService.triggerDataEvent(`${v.ESC}${o}${v.ESC}\\`),!0),r=this._bufferService.buffer,i=this._optionsService.rawOptions;return n(e==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:e==='"p'?'P1$r61;1"p':e==="r"?`P1$r${r.scrollTop+1};${r.scrollBottom+1}r`:e==="m"?"P1$r0m":e===" q"?`P1$r${{block:2,underline:4,bar:6}[i.cursorStyle]-(i.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},Uf=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&&(qb=e,e=t,t=qb),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};Uf=fe([D(0,Ze)],Uf);AR=5e7,Kb=12,RR=50,LR=class extends B{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 b),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 n;for(;n=this._writeBuffer.shift();){this._action(n);let r=this._callbacks.shift();r&&r()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>AR)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 n=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let r=this._writeBuffer[this._bufferOffset],i=this._action(r,t);if(i){let o=a=>performance.now()-n>=Kb?setTimeout(()=>this._innerWrite(0,a)):this._innerWrite(n,a);i.catch(a=>(queueMicrotask(()=>{throw a}),Promise.resolve(!1))).then(o);return}let s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=r.length,performance.now()-n>=Kb)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>RR&&(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()}},Wf=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 a=t.addMarker(t.ybase+t.y),l={data:e,id:this._nextId++,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(l,a)),this._dataByLinkId.set(l.id,l),l.id}let n=e,r=this._getEntryIdKey(n),i=this._entriesWithId.get(r);if(i)return this.addLineToLink(i.id,t.ybase+t.y),i.id;let s=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(n),data:n,lines:[s]};return s.onDispose(()=>this._removeMarkerFromLink(o,s)),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){let n=this._dataByLinkId.get(e);if(n&&n.lines.every(r=>r.line!==t)){let r=this._bufferService.buffer.addMarker(t);n.lines.push(r),r.onDispose(()=>this._removeMarkerFromLink(n,r))}}getLinkData(e){return this._dataByLinkId.get(e)?.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let n=e.lines.indexOf(t);n!==-1&&(e.lines.splice(n,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};Wf=fe([D(0,Ze)],Wf);Yb=!1,OR=class extends B{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new Mi),this._onBinary=this._register(new b),this.onBinary=this._onBinary.event,this._onData=this._register(new b),this.onData=this._onData.event,this._onLineFeed=this._register(new b),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new b),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new b),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new b),this._instantiationService=new rR,this.optionsService=this._register(new gR(e)),this._instantiationService.setService(Qe,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(Hf)),this._instantiationService.setService(Ze,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(Bf)),this._instantiationService.setService(lw,this._logService),this.coreService=this._register(this._instantiationService.createInstance(jf)),this._instantiationService.setService(Br,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(Vf)),this._instantiationService.setService(aw,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(Or)),this._instantiationService.setService(kM,this.unicodeService),this._charsetService=this._instantiationService.createInstance(bR),this._instantiationService.setService(DM,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(Wf),this._instantiationService.setService(cw,this._oscLinkService),this._inputHandler=this._register(new NR(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(He.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(He.forward(this._bufferService.onResize,this._onResize)),this._register(He.forward(this.coreService.onData,this._onData)),this._register(He.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 LR((t,n)=>this._inputHandler.parse(t,n))),this._register(He.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new b),this._onScroll.event(e=>{this._onScrollApi?.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&&!Yb&&(this._logService.warn("writeSync is unreliable and will be removed soon."),Yb=!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,qw),t=Math.max(t,Gw),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(Hb.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>(Hb(this._bufferService),!1))),this._windowsWrappingHeuristics.value=ie(()=>{for(let t of e)t.dispose()})}}},PR={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:["'",'"']};ve=0,FR=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new Zl,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new Zl,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((i,s)=>this._getKey(i)-this._getKey(s)),t=0,n=0,r=new Array(this._array.length+this._insertedValues.length);for(let i=0;i<r.length;i++)n>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[n])?(r[i]=e[t],t++):r[i]=this._array[n++];this._array=r,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(ve=this._search(t),ve===-1)||this._getKey(this._array[ve])!==t)return!1;do if(this._array[ve]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(ve),!0;while(++ve<this._array.length&&this._getKey(this._array[ve])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((i,s)=>i-s),t=0,n=new Array(this._array.length-e.length),r=0;for(let i=0;i<this._array.length;i++)e[t]===i?t++:n[r++]=this._array[i];this._array=n,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&&(ve=this._search(e),!(ve<0||ve>=this._array.length)&&this._getKey(this._array[ve])===e))do yield this._array[ve];while(++ve<this._array.length&&this._getKey(this._array[ve])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(ve=this._search(e),!(ve<0||ve>=this._array.length)&&this._getKey(this._array[ve])===e))do t(this._array[ve]);while(++ve<this._array.length&&this._getKey(this._array[ve])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,n=this._array.length-1;for(;n>=t;){let r=t+n>>1,i=this._getKey(this._array[r]);if(i>e)n=r-1;else if(i<e)t=r+1;else{for(;r>0&&this._getKey(this._array[r-1])===e;)r--;return r}}return t}},lf=0,Zb=0,BR=class extends B{constructor(){super(),this._decorations=new FR(e=>e?.marker.line),this._onDecorationRegistered=this._register(new b),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new b),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(ie(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new HR(e);if(t){let n=t.marker.onDispose(()=>t.dispose()),r=t.onDispose(()=>{r.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),n.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,n){let r=0,i=0;for(let s of this._decorations.getKeyIterator(t))r=s.options.x??0,i=r+(s.options.width??1),e>=r&&e<i&&(!n||(s.options.layer??"bottom")===n)&&(yield s)}forEachDecorationAtCell(e,t,n,r){this._decorations.forEachByKey(t,i=>{lf=i.options.x??0,Zb=lf+(i.options.width??1),e>=lf&&e<Zb&&(!n||(i.options.layer??"bottom")===n)&&r(i)})}},HR=class extends Xn{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new b),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new b),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=ue.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=ue.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},jR=1e3,VR=class{constructor(e,t=jR){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,n){this._rowCount=n,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t;let r=performance.now();if(r-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=r,this._innerRefresh();else if(!this._additionalRefreshRequested){let i=r-this._lastRefreshMs,s=this._debounceThresholdMS-i;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)}},Qb=20,Xb=!1,Ql=class extends B{constructor(e,t,n,r){super(),this._terminal=e,this._coreBrowserService=n,this._renderService=r,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="";let i=this._coreBrowserService.mainDocument;this._accessibilityContainer=i.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=i.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=i.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new VR(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");Xb?(this._accessibilityContainer.classList.add("debug"),this._rowContainer.classList.add("debug"),this._debugRootContainer=i.createElement("div"),this._debugRootContainer.classList.add("xterm"),this._debugRootContainer.appendChild(i.createTextNode("------start a11y------")),this._debugRootContainer.appendChild(this._accessibilityContainer),this._debugRootContainer.appendChild(i.createTextNode("------end a11y------")),this._terminal.element.insertAdjacentElement("afterend",this._debugRootContainer)):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(`
37
- `))),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(L(i,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(ie(()=>{Xb?this._debugRootContainer.remove():this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<Qb+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
38
- `&&(this._liveRegionLineCount++,this._liveRegionLineCount===Qb+1&&(this._liveRegion.textContent+=uf.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 n=this._terminal.buffer,r=n.lines.length.toString();for(let i=e;i<=t;i++){let s=n.lines.get(n.ydisp+i),o=[],a=s?.translateToString(!0,void 0,void 0,o)||"",l=(n.ydisp+i+1).toString(),c=this._rowElements[i];c&&(a.length===0?(c.textContent="\xA0",this._rowColumns.set(c,[0,1])):(c.textContent=a,this._rowColumns.set(c,o)),c.setAttribute("aria-posinset",l),c.setAttribute("aria-setsize",r),this._alignRowWidth(c))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let n=e.target,r=this._rowElements[t===0?1:this._rowElements.length-2],i=n.getAttribute("aria-posinset"),s=t===0?"1":`${this._terminal.buffer.lines.length}`;if(i===s||e.relatedTarget!==r)return;let o,a;if(t===0?(o=n,a=this._rowElements.pop(),this._rowContainer.removeChild(a)):(o=this._rowElements.shift(),a=n,this._rowContainer.removeChild(o)),o.removeEventListener("focus",this._topBoundaryFocusListener),a.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{let l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){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},n={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(n.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===n.node&&t.offset>n.offset)&&([t,n]=[n,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let r=this._rowElements.slice(-1)[0];if(n.node.compareDocumentPosition(r)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(n={node:r,offset:r.textContent?.length??0}),!this._rowContainer.contains(n.node))return;let i=({node:a,offset:l})=>{let c=a instanceof Text?a.parentNode:a,u=parseInt(c?.getAttribute("aria-posinset"),10)-1;if(isNaN(u))return console.warn("row is invalid. Race condition?"),null;let d=this._rowColumns.get(c);if(!d)return console.warn("columns is null. Race condition?"),null;let h=l<d.length?d[l]:d.slice(-1)[0]+1;return h>=this._terminal.cols&&(++u,h=0),{row:u,column:h}},s=i(t),o=i(n);if(!(!s||!o)){if(s.row>o.row||s.row===o.row&&s.column>=o.column)throw new Error("invalid range");this._terminal.select(s.column,s.row,(o.row-s.row)*this._terminal.cols-s.column+o.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){e.style.transform="";let t=e.getBoundingClientRect().width,n=this._rowColumns.get(e)?.slice(-1)?.[0];if(!n)return;let r=n*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${r/t})`}};Ql=fe([D(1,Gf),D(2,Cn),D(3,En)],Ql);qf=class extends B{constructor(e,t,n,r,i){super(),this._element=e,this._mouseService=t,this._renderService=n,this._bufferService=r,this._linkProviderService=i,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new b),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new b),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(ie(()=>{$r(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(L(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(L(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(L(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(L(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 n=e.composedPath();for(let r=0;r<n.length;r++){let i=n[r];if(i.classList.contains("xterm"))break;if(i.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){(!this._activeProviderReplies||!t)&&(this._activeProviderReplies?.forEach(r=>{r?.forEach(i=>{i.link.dispose&&i.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let n=!1;for(let[r,i]of this._linkProviderService.linkProviders.entries())t?this._activeProviderReplies?.get(r)&&(n=this._checkLinkProviderResult(r,e,n)):i.provideLinks(e.y,s=>{if(this._isMouseOut)return;let o=s?.map(a=>({link:a}));this._activeProviderReplies?.set(r,o),n=this._checkLinkProviderResult(r,e,n),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let n=new Set;for(let r=0;r<t.size;r++){let i=t.get(r);if(i)for(let s=0;s<i.length;s++){let o=i[s],a=o.link.range.start.y<e?0:o.link.range.start.x,l=o.link.range.end.y>e?this._bufferService.cols:o.link.range.end.x;for(let c=a;c<=l;c++){if(n.has(c)){i.splice(s--,1);break}n.add(c)}}}}_checkLinkProviderResult(e,t,n){if(!this._activeProviderReplies)return n;let r=this._activeProviderReplies.get(e),i=!1;for(let s=0;s<e;s++)(!this._activeProviderReplies.has(s)||this._activeProviderReplies.get(s))&&(i=!0);if(!i&&r){let s=r.find(o=>this._linkAtPosition(o.link,t));s&&(n=!0,this._handleNewLink(s))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!n)for(let s=0;s<this._activeProviderReplies.size;s++){let o=this._activeProviderReplies.get(s)?.find(a=>this._linkAtPosition(a.link,t));if(o){n=!0,this._handleNewLink(o);break}}return n}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&zR(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,$r(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:()=>this._currentLink?.state?.decorations.pointerCursor,set:n=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==n&&(this._currentLink.state.decorations.pointerCursor=n,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",n))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:n=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==n&&(this._currentLink.state.decorations.underline=n,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,n))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(n=>{if(!this._currentLink)return;let r=n.start===0?0:n.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+n.end;if(this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(r,i),this._lastMouseEvent)){let s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._askForLink(s,!1)}})))}_linkHover(e,t,n){this._currentLink?.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(n,t.text)}_fireUnderlineEvent(e,t){let n=e.range,r=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-r-1,n.end.x,n.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)}_linkLeave(e,t,n){this._currentLink?.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(n,t.text)}_linkAtPosition(e,t){let n=e.range.start.y*this._bufferService.cols+e.range.start.x,r=e.range.end.y*this._bufferService.cols+e.range.end.x,i=t.y*this._bufferService.cols+t.x;return n<=i&&i<=r}_positionFromMouseEvent(e,t,n){let r=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}}};qf=fe([D(1,Kf),D(2,En),D(3,Ze),D(4,dw)],qf);UR=class extends OR{constructor(e={}){super(e),this._linkifier=this._register(new Mi),this.browser=Pw,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new Mi),this._onCursorMove=this._register(new b),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new b),this.onKey=this._onKey.event,this._onRender=this._register(new b),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new b),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new b),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new b),this.onBell=this._onBell.event,this._onFocus=this._register(new b),this._onBlur=this._register(new b),this._onA11yCharEmitter=this._register(new b),this._onA11yTabEmitter=this._register(new b),this._onWillOpen=this._register(new b),this._setup(),this._decorationService=this._instantiationService.createInstance(BR),this._instantiationService.setService(_o,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(NA),this._instantiationService.setService(dw,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(hf)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(t=>this.refresh(t?.start??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(He.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(He.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(He.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(He.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(ie(()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.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 n,r="";switch(t.index){case 256:n="foreground",r="10";break;case 257:n="background",r="11";break;case 258:n="cursor",r="12";break;default:n="ansi",r="4;"+t.index}switch(t.type){case 0:let i=re.toColorRGB(n==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[n]);this.coreService.triggerDataEvent(`${v.ESC}]${r};${TR(i)}${Lw.ST}`);break;case 1:if(n==="ansi")this._themeService.modifyColors(s=>s.ansi[t.index]=we.toColor(...t.color));else{let s=n;this._themeService.modifyColors(o=>o[s]=we.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(Ql,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(v.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(v.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 n=Math.min(this.buffer.x,this.cols-1),r=this._renderService.dimensions.css.cell.height,i=t.getWidth(n),s=this._renderService.dimensions.css.cell.width*i,o=this.buffer.y*this._renderService.dimensions.css.cell.height,a=n*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=o+"px",this.textarea.style.width=s+"px",this.textarea.style.height=r+"px",this.textarea.style.lineHeight=r+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(L(this.element,"copy",t=>{this.hasSelection()&&yM(t,this._selectionService)}));let e=t=>bM(t,this.textarea,this.coreService,this.optionsService);this._register(L(this.textarea,"paste",e)),this._register(L(this.element,"paste",e)),$w?this._register(L(this.element,"mousedown",t=>{t.button===2&&Jy(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(L(this.element,"contextmenu",t=>{Jy(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),np&&this._register(L(this.element,"auxclick",t=>{t.button===1&&nw(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(L(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(L(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(L(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(L(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(L(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(L(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(L(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){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"),this.element?.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(L(this.screenElement,"mousemove",i=>this.updateCursorStyle(i))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let n=this.textarea=this._document.createElement("textarea");this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",cf.get()),Hw||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",()=>n.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(TA,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(Cn,this._coreBrowserService),this._register(L(this.textarea,"focus",i=>this._handleTextAreaFocus(i))),this._register(L(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(Lf,this._document,this._helperContainer),this._instantiationService.setService(Jl,this._charSizeService),this._themeService=this._instantiationService.createInstance(Ff),this._instantiationService.setService(Ni,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(Kl),this._instantiationService.setService(uw,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(Pf,this.rows,this.screenElement)),this._instantiationService.setService(En,this._renderService),this._register(this._renderService.onRenderedViewportChange(i=>this._onRender.fire(i))),this.onResize(i=>this._renderService.resize(i.cols,i.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(Nf,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(Of),this._instantiationService.setService(Kf,this._mouseService);let r=this._linkifier.value=this._register(this._instantiationService.createInstance(qf,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(Tf,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(i=>{super.scrollLines(i,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance($f,this.element,this.screenElement,r)),this._instantiationService.setService(xM,this._selectionService),this._register(this._selectionService.onRequestScrollLines(i=>this.scrollLines(i.amount,i.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(i=>this._renderService.handleSelectionChanged(i.start,i.end,i.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(i=>{this.textarea.value=i,this.textarea.focus(),this.textarea.select()})),this._register(He.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{this._selectionService.refresh(),this._viewport?.queueSync()})),this._register(this._instantiationService.createInstance(Mf,this.screenElement)),this._register(L(this.element,"mousedown",i=>this._selectionService.handleMouseDown(i))),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(Ql,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",i=>this._handleScreenReaderModeOptionChange(i))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Gl,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",i=>{!this._overviewRulerRenderer&&i&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Gl,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(Rf,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function n(s){let o=e._mouseService.getMouseReportCoords(s,e.screenElement);if(!o)return!1;let a,l;switch(s.overrideType||s.type){case"mousemove":l=32,s.buttons===void 0?(a=3,s.button!==void 0&&(a=s.button<3?s.button:3)):a=s.buttons&1?0:s.buttons&4?1:s.buttons&2?2:3;break;case"mouseup":l=0,a=s.button<3?s.button:3;break;case"mousedown":l=1,a=s.button<3?s.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(s)===!1)return!1;let c=s.deltaY;if(c===0||e.coreMouseService.consumeWheelEvent(s,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return!1;l=c<0?0:1,a=4;break;default:return!1}return l===void 0||a===void 0||a>4?!1:e.coreMouseService.triggerMouseEvent({col:o.col,row:o.row,x:o.x,y:o.y,button:a,action:l,ctrl:s.ctrlKey,alt:s.altKey,shift:s.shiftKey})}let r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},i={mouseup:s=>(n(s),s.buttons||(this._document.removeEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.removeEventListener("mousemove",r.mousedrag)),this.cancel(s)),wheel:s=>(n(s),this.cancel(s,!0)),mousedrag:s=>{s.buttons&&n(s)},mousemove:s=>{s.buttons||n(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?r.mousemove||(t.addEventListener("mousemove",i.mousemove),r.mousemove=i.mousemove):(t.removeEventListener("mousemove",r.mousemove),r.mousemove=null),s&16?r.wheel||(t.addEventListener("wheel",i.wheel,{passive:!1}),r.wheel=i.wheel):(t.removeEventListener("wheel",r.wheel),r.wheel=null),s&2?r.mouseup||(r.mouseup=i.mouseup):(this._document.removeEventListener("mouseup",r.mouseup),r.mouseup=null),s&4?r.mousedrag||(r.mousedrag=i.mousedrag):(this._document.removeEventListener("mousemove",r.mousedrag),r.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(L(t,"mousedown",s=>{if(s.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(s)))return n(s),r.mouseup&&this._document.addEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.addEventListener("mousemove",r.mousedrag),this.cancel(s)})),this._register(L(t,"wheel",s=>{if(!r.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,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return this.cancel(s,!0);let o=v.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(s.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(o,!0),this.cancel(s,!0)}}},{passive:!1}))}refresh(e,t){this._renderService?.refreshRows(e,t)}updateCursorStyle(e){this._selectionService?.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){tw(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,n){this._selectionService.setSelection(e,t,n)}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(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(e,t){this._selectionService?.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 n=$R(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),n.type===3||n.type===2){let r=this.rows-1;return this.scrollLines(n.type===2?-r:r),this.cancel(e,!0)}if(n.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(n.cancel&&this.cancel(e,!0),!n.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((n.key===v.ETX||n.key===v.CR)&&(this.textarea.value=""),this._onKey.fire({key:n.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(n.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let n=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"?n:n&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(WR(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){this._charSizeService?.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(be));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),this._selectionService?.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){this._renderService?.clearTextureAtlas()}_reportFocus(){this.element?.classList.contains("focus")?this.coreService.triggerDataEvent(v.ESC+"[I"):this.coreService.triggerDataEvent(v.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let t=this._renderService.dimensions.css.canvas.width.toFixed(0),n=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${v.ESC}[4;${n};${t}t`);break;case 1:let r=this._renderService.dimensions.css.cell.width.toFixed(0),i=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${v.ESC}[6;${i};${r}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};qR=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=()=>this._wrappedAddonDispose(n),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;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)}},GR=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 Dt)}translateToString(e,t,n){return this._line.translateToString(e,t,n)}},Jb=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 GR(t)}getNullCell(){return new Dt}},KR=class extends B{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new b),this.onBufferChange=this._onBufferChange.event,this._normal=new Jb(this._core.buffers.normal,"normal"),this._alternate=new Jb(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)}},YR=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,n=>t(n.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(n,r)=>t(n,r.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},ZR=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}},QR=["cols","rows"],Qt=0,Yw=class extends B{constructor(e){super(),this._core=this._register(new UR(e)),this._addonManager=this._register(new qR),this._publicOptions=ae({},this._core.options);let t=r=>this._core.options[r],n=(r,i)=>{this._checkReadonlyOptions(r),this._core.options[r]=i};for(let r in this._core.options){let i={get:t.bind(this,r),set:n.bind(this,r)};Object.defineProperty(this._publicOptions,r,i)}}_checkReadonlyOptions(e){if(QR.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 YR(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new ZR(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 KR(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,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)}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
39
- `,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 cf.get()},set promptLabel(e){cf.set(e)},get tooMuchOutput(){return uf.get()},set tooMuchOutput(e){uf.set(e)}}}_verifyIntegers(...e){for(Qt of e)if(Qt===1/0||isNaN(Qt)||Qt%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(Qt of e)if(Qt&&(Qt===1/0||isNaN(Qt)||Qt%1!==0||Qt<0))throw new Error("This API only accepts positive integers")}}});function XR(e){document.documentElement.dataset.theme=e}function JR(){try{let e=localStorage.getItem(Qw);return e==="light"||e==="dark"?e:null}catch{return null}}function eL(){try{return matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}}function tL(){return JR()??(eL()?"dark":"light")}var Qw,ic,Xw=m(()=>{_n();_n();Qw="mx.theme";ic=class e{current=ut(tL());theme=this.current.asReadonly();toggle(){let t=this.current()==="dark"?"light":"dark";this.current.set(t),XR(t);try{localStorage.setItem(Qw,t)}catch{}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}});function nL(e,t){if(e&1&&(ps(),Sl(0,"path")),e&2){let n=t.$implicit;Vs("d",n)}}var rL,sc,Jw=m(()=>{_n();_n();rL={dashboard:["M4 4h7v7H4z","M13 4h7v4h-7z","M13 10h7v10h-7z","M4 13h7v7H4z"],containers:["M12 2.5 20.5 7v10L12 21.5 3.5 17V7z","M3.5 7 12 11.5 20.5 7","M12 11.5V21.5"],images:["M12 3 3 7.5l9 4.5 9-4.5z","M3 12.5 12 17l9-4.5"],volumes:["M12 3c4.4 0 8 1.1 8 2.5S16.4 8 12 8 4 6.9 4 5.5 7.6 3 12 3z","M4 5.5v13C4 19.9 7.6 21 12 21s8-1.1 8-2.5v-13","M4 12c0 1.4 3.6 2.5 8 2.5s8-1.1 8-2.5"],networks:["M12 2.5a2.5 2.5 0 100 5 2.5 2.5 0 100-5","M5 16.5a2.5 2.5 0 100 5 2.5 2.5 0 100-5","M19 16.5a2.5 2.5 0 100 5 2.5 2.5 0 100-5","M12 7.5v4M12 11.5 5.9 15.6M12 11.5l6.1 4.1"],compose:["M8 3h13v13H8z","M3 8v13h13"],sun:["M12 7.5a4.5 4.5 0 100 9 4.5 4.5 0 100-9","M12 1.5v2M12 20.5v2M1.5 12h2M20.5 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"],moon:["M20 14.5A8.5 8.5 0 019.5 4a8.5 8.5 0 1010.5 10.5z"],power:["M12 3v8.5","M7 5.8a8 8 0 1010 0"],refresh:["M20 11a8 8 0 10-.7 4.3","M20 5v6h-6"],play:["M8 5.5v13l11-6.5z"],stop:["M7 7h10v10H7z"],pause:["M9.5 5.5v13M14.5 5.5v13"],trash:["M4 7h16","M10 7V4.5h4V7","M6 7l1 12.5h10L18 7","M10.5 11v5M13.5 11v5"],search:["M11 3.5a7.5 7.5 0 100 15 7.5 7.5 0 100-15","M16.5 16.5 21 21"],external:["M14 4h6v6","M20 4l-8.5 8.5","M18 13.5V19a1 1 0 01-1 1H5a1 1 0 01-1-1V7a1 1 0 011-1h5.5"],warning:["M12 3.5 22 20H2z","M12 10v4.5","M12 17.2v.1"],chevronRight:["M9.5 5.5 16 12l-6.5 6.5"],chevronDown:["M5.5 9.5 12 16l6.5-6.5"],chevronUp:["M5.5 14.5 12 8l6.5 6.5"],plus:["M12 5.5v13","M5.5 12h13"],close:["M6.5 6.5l11 11","M17.5 6.5l-11 11"],check:["M5 12.5 10 17.5 19 6.5"],download:["M12 4v10","M7.5 9.5 12 14l4.5-4.5","M4.5 19h15"],upload:["M12 14V4","M7.5 8.5 12 4l4.5 4.5","M4.5 19h15"],folder:["M3.5 6.5a1 1 0 0 1 1-1h4.8l2 2.2h8.2a1 1 0 0 1 1 1v9.8a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1z"],file:["M6 3.5h8l4 4v13H6z","M14 3.5v4h4"],pencil:["M4.5 19.5h4L20 8a2.1 2.1 0 0 0-3-3L5.5 16.5z","M15.5 6.5l3 3"],"arrow-up":["M12 19V5","M6.5 10.5 12 5l5.5 5.5"],sliders:["M4 7h9","M17 7h3","M4 17h3","M11 17h9","M15 5v4","M9 15v4"],copy:["M9 8.5h10.5V19H9z","M15 8.5V5H4.5v10.5H9"],broom:["M16 22l-1-4","M19 14a1 1 0 001-1v-1a2 2 0 00-2-2h-3a1 1 0 01-1-1V4a2 2 0 00-4 0v5a1 1 0 01-1 1H6a2 2 0 00-2 2v1a1 1 0 001 1","M5 14h14l2 6.8a1 1 0 01-1 1.2H4a1 1 0 01-1-1.2z","M8 22l1-4"],eraser:["M7 21l-4.3-4.3a2.4 2.4 0 010-3.4l9.6-9.6a2.4 2.4 0 013.4 0l5.6 5.6a2.4 2.4 0 010 3.4L13 21","M22 21H7","M5 11l9 9"],clock:["M12 3.5a8.5 8.5 0 100 17 8.5 8.5 0 100-17","M12 7v5.3l3.5 2"],terminal:["M5 17l6-5.5L5 6","M12.5 18h6.5"],code:["M16 18l6-6-6-6","M8 6l-6 6 6 6"],chart:["M4 3.5v15a2 2 0 002 2h14","M19 9.5l-4.5 4.5-3.5-3.5-3 3"],lines:["M5 7h14","M5 12h14","M5 17h9"],menu:["M4 6h16","M4 12h16","M4 18h16"],sparkle:["M12 3.5l1.8 5.2 5.2 1.8-5.2 1.8L12 17.5l-1.8-5.2L5 10.5l5.2-1.8z","M18.5 15v5","M16 17.5h5"],pulse:["M3 12h4l2.5-6.5L14 18l2.5-6H21"]},sc=class e{name=Ii.required();size=Ii(18);paths=vn(()=>rL[this.name()]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Bs({type:e,selectors:[["app-icon"]],hostAttrs:[1,"inline-flex","shrink-0"],inputs:{name:[1,"name"],size:[1,"size"]},decls:3,vars:2,consts:[["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true","focusable","false"]],template:function(n,r){n&1&&(ps(),qs(0,"svg",0),Lh(1,nL,1,1,":svg:path",null,Rh),Gs()),n&2&&(Vs("width",r.size())("height",r.size()),dt(),Oh(r.paths()))},encapsulation:2})}});function eS(e){return(e instanceof Error?e.message:String(e)).replace(iL,"")}var iL,tS=m(()=>{iL=/^Error invoking remote method '[^']*': (?:[A-Za-z]*Error: )?/});var nS,rS=m(()=>{nS={cancel:"Abbrechen",close:"Schlie\xDFen",remove:"Entfernen",retry:"Erneut versuchen",refresh:"Aktualisieren",search:"Suchen",loading:"Wird geladen\u2026",save:"Speichern",copy:"Kopieren",copied:"Kopiert",start:"Starten",stop:"Stoppen",restart:"Neu starten",yes:"Ja",no:"Nein",none:"Keine",unknown:"Unbekannt",nothingToPrune:"Es gab nichts aufzur\xE4umen."}});var iS,sS=m(()=>{iS={title:"Compose",intro:"Projekte aus den Labels Ihrer Container. Ein gestopptes Projekt steht auch in der Liste, solange seine Container noch existieren.",updating:"Wird aktualisiert\u2026",state:{running:"l\xE4uft",partial:"teilweise",stopped:"gestoppt"},runningOf:(e,t)=>`${String(e)} von ${String(t)}`,expand:e=>`Ausklappen: ${e}`,collapse:e=>`Einklappen: ${e}`,menuAria:e=>`Aktionen f\xFCr ${e}`,upAria:e=>`${e} hochfahren`,startAria:e=>`${e} starten`,stopAria:e=>`${e} stoppen`,restartAria:e=>`${e} neu starten`,downAria:e=>`${e} herunterfahren`,up:"Up",down:"Down",fileAria:e=>`Die Compose-Datei von ${e} anzeigen`,file:{button:"Datei",title:e=>`Die Compose-Datei von ${e}`,loading:"Wird geladen\u2026",raw:"Wie geschrieben",resolved:"Wie Compose sie liest",rawHint:"Die Datei auf der Platte, unver\xE4ndert.",resolvedHint:"Overrides zusammengef\xFChrt und ${VAR} eingesetzt: darauf basiert das laufende Projekt.",empty:"Diese Datei ist leer.",copyFailed:e=>`Kopieren fehlgeschlagen: ${e}`},noCli:"Die docker-CLI ist nicht verf\xFCgbar",noWorkingDir:"Es ist nicht bekannt, wo dieses Projekt liegt",busy:"L\xE4uft\u2026 ein Up kann dauern, wenn Images geholt werden m\xFCssen.",empty:"Keine Compose-Projekte gefunden. Sie erscheinen hier, sobald es Container mit Compose-Labels gibt.",downDialog:{title:"Projekt herunterfahren?",description:e=>`Die Container und Netzwerke von '${e}' werden gestoppt und entfernt. Volumes bleiben erhalten, Ihre Daten bleiben also bestehen.`,confirm:"Herunterfahren"},recreate:"Neu",recreateAria:e=>`${e} neu aufbauen`,recreateTitle:"docker compose up -d --no-deps --force-recreate",recreateDone:e=>`${e} wurde neu aufgebaut.`,upDone:e=>`'${e}' l\xE4uft.`,downDone:e=>`'${e}' wurde heruntergefahren.`}});var oS,aS=m(()=>{oS={actions:{pause:"Pausieren",resume:"Fortsetzen",copyDiagnosis:"Diagnose kopieren",copyRunCommand:"Run-Befehl kopieren",restartPolicy:"Restart Policy\u2026",recreate:"Neu aufbauen"},page:{title:"Container",cpuUsage:"CPU-Auslastung",memoryUsage:"Speicherauslastung",search:"Nach Name, Image oder ID suchen",onlyRunning:"Nur laufende Container",updating:"Wird aktualisiert\u2026",selected:e=>`${String(e)} ausgew\xE4hlt`,empty:"Keine Container gefunden.",columns:{name:"Name",id:"Container-ID",image:"Image",ports:"Ports",cpu:"CPU",memory:"Speicher",actions:"Aktionen"},group:{loose:"Einzelne Container",expand:e=>`Ausklappen: ${e}`,collapse:e=>`Einklappen: ${e}`,count:e=>e===1?"1 Container":`${String(e)} Container`,running:e=>`${String(e)} laufend`,startAll:"Alle starten",stopAll:"Alle stoppen",restartAll:"Alle neu starten",removeAll:"Alle entfernen",menu:e=>`Aktionen f\xFCr alle in ${e}`,manual:"Eigene Gruppe",addToGroup:"Zu Gruppe hinzuf\xFCgen\u2026",removeFromGroup:"Aus Gruppe nehmen",rename:"Gruppe umbenennen\u2026",dissolve:"Gruppe aufl\xF6sen"},groupDialog:{assignTitle:"Zu Gruppe hinzuf\xFCgen",assignOne:e=>`'${e}' kommt in die Gruppe, die du hier benennst.`,assignMany:e=>`${String(e)} Container kommen in die Gruppe, die du hier benennst.`,renameTitle:"Gruppe umbenennen",renameDescription:e=>`Alles in '${e}' zieht mit dem neuen Namen um.`,nameLabel:"Gruppenname",namePlaceholder:"zum Beispiel mein-stack",existing:"Vorhandene Gruppen",hint:"Eine eigene Gruppe lebt in dieser App und folgt dem Containernamen; Docker selbst wei\xDF nichts davon.",empty:"Bitte einen Namen eingeben.",reserved:e=>`'${e}' ist bereits ein Compose-Projekt.`,submit:"Speichern"},row:{diagnosisOf:e=>`Diagnose von ${e}`,missingNetwork:e=>`L\xE4uft, h\xE4ngt aber nicht an ${e}`,menu:e=>`Aktionen f\xFCr ${e}`},confirm:{title:"Container entfernen?",one:e=>`'${e}' wird gestoppt und entfernt. Das l\xE4sst sich nicht r\xFCckg\xE4ngig machen; Volumes bleiben erhalten.`,many:e=>`${e===1?"1 Container wird":`${String(e)} Container werden`} gestoppt und entfernt. Das l\xE4sst sich nicht r\xFCckg\xE4ngig machen; Volumes bleiben erhalten.`,group:(e,t)=>`Die ${String(e)} Container von '${t}' werden gestoppt und entfernt. Das l\xE4sst sich nicht r\xFCckg\xE4ngig machen; Volumes bleiben erhalten.`}},detail:{back:"\u2039 Container",menu:"Aktionen f\xFCr diesen Container",gone:" existiert nicht mehr. Ein Container mit --rm verschwindet, sobald er stoppt, und compose legt beim Up einen neuen an.",goneUnnamed:"Diesen Container gibt es nicht mehr.",successor:(e,t)=>`Zum aktuellen ${e} (${t})`,tabsLabel:"Container-Details",tabs:{logs:"Logs",health:"Health",events:"Ereignisse",inspect:"Inspect",stats:"Stats",terminal:"Terminal",files:"Dateien",networks:"Netzwerke",assistant:"Claude"},wiring:{network:e=>`L\xE4uft, h\xE4ngt aber nicht an ${e}. \xDCber dieses Netzwerk erreicht ihn nichts, und er nichts.`,networkWhy:"Das passiert, wenn das Netzwerk entfernt und neu erstellt wurde, w\xE4hrend der Container existierte.",connect:e=>`An ${e} anh\xE4ngen`,ports:e=>`L\xE4uft, ver\xF6ffentlicht ${e} aber nicht.`,portsWhy:"Das passiert, wenn er nach einem Start, der an einem belegten Port scheiterte, noch einmal gestartet wurde.",portsFromNetwork:"Das folgt aus dem fehlenden Netzwerk oben: Ports laufen \xFCber ein Netzwerk.",restart:"Neu starten"},events:{loading:"Wird geladen\u2026",empty:"Noch nichts aufgezeichnet. Die App zeichnet ab ihrem Start auf, plus was Docker dann noch wusste.",scope:"In der App seit ihrem Start aufgezeichnet, bis zu 100 pro Containername; nach einem Neustart der App erg\xE4nzt Docker, was es noch wei\xDF.",crashLoop:e=>`In der letzten Stunde ${String(e)}-mal abgest\xFCrzt.`,create:"Erstellt",start:"Gestartet",exited:e=>e===0?"Normal beendet":`Beendet mit Code ${String(e)}`,exitedUnknown:"Beendet",exitHint137:"SIGKILL: von au\xDFen beendet, oft Speicher voll oder ein Stopp, der zu lange dauerte",exitHint143:"SIGTERM: zum Beenden aufgefordert",kill:e=>`${e} gesendet`,oom:"Vom Kernel beendet: Speicher voll",stop:"Gestoppt",restart:"Neu gestartet",pause:"Pausiert",unpause:"Fortgesetzt",destroy:"Entfernt",rename:e=>`Umbenannt, war ${e}`,renamed:"Umbenannt",health:{starting:"Healthcheck beginnt",healthy:"Healthy geworden",unhealthy:"Unhealthy geworden"}},health:{loading:"Wird geladen\u2026",refresh:"Aktualisieren",status:{starting:"starting",healthy:"healthy",unhealthy:"unhealthy",unknown:"noch nicht gelaufen"},failingStreak:e=>e===1?"einmal fehlgeschlagen":`${String(e)} mal hintereinander fehlgeschlagen`,command:"Befehl",fromImage:"Kommt aus dem Image; der Daemon nennt den Befehl nicht.",rhythm:"Rhythmus",every:e=>`alle ${e}`,timeout:e=>`Timeout ${e}`,startPeriod:e=>`Start period ${e}`,retries:e=>e===1?"1 Versuch bis unhealthy":`${String(e)} Versuche bis unhealthy`,defaults:"die Standardwerte von Docker",probes:"Letzte Ergebnisse",noProbes:"Die Pr\xFCfung ist noch nicht gelaufen.",exitCode:e=>`Exit-Code ${String(e)}`,unknownExitCode:"kein Exit-Code",noOutput:"keine Ausgabe"},networks:{title:"H\xE4ngt an diesen Netzwerken",loading:"Wird geladen\u2026",empty:"Dieser Container h\xE4ngt an keinem Netzwerk.",noAddress:"keine Adresse",alsoKnownAs:e=>`auch erreichbar als ${e}`,disconnect:"Trennen",disconnectFrom:e=>`Von ${e} trennen`,addTitle:"Mit einem Netzwerk verbinden",addHint:"Wirkt sofort, auch w\xE4hrend der Container l\xE4uft.",allConnected:"Dieser Container h\xE4ngt schon an jedem Netzwerk.",networkLabel:"Netzwerk",choose:"Netzwerk w\xE4hlen\u2026",alias:"Zus\xE4tzlicher Name im Netzwerk",aliasHint:"Ein zus\xE4tzlicher Name, unter dem die anderen Container in diesem Netzwerk ihn ansprechen k\xF6nnen, neben dem Containernamen.",aliasPlaceholder:"datenbank",connect:"Verbinden",working:"L\xE4uft\u2026",invalidAlias:e=>`'${e}' ist kein g\xFCltiger Name. Nehmen Sie Buchstaben, Ziffern, Punkte, Bindestriche und Unterstriche.`},fetching:"Wird geladen\u2026",terminalLoading:"Terminal wird geladen\u2026",shellOnlyRunning:"Eine Shell l\xE4sst sich nur in einem laufenden Container \xF6ffnen.",cpu:"CPU",lastMinute:e=>`letzte Minute \xB7 Spitze ${e} %`,chartPending:"das Diagramm erscheint nach ein paar Messwerten",memory:"Speicher",ofLimit:e=>`${e} % des Limits`,noLimit:"kein Limit gesetzt",statsOnlyRunning:"Stats werden nur f\xFCr einen laufenden Container erfasst.",confirmTitle:"Container entfernen?",confirmDescription:"Dieser Container wird gestoppt und entfernt. Das l\xE4sst sich nicht r\xFCckg\xE4ngig machen; Volumes bleiben erhalten."},diagnosis:{title:"Diagnose kopieren",description:"Status, Health, Mounts, Events und die letzten Logzeilen, zum Einf\xFCgen in einen Chat oder ein Issue. Genau das wird kopiert.",collecting:"Wird gesammelt\u2026",noRedactions:"Nichts ausgelassen; kein Wert sah nach einem Geheimnis aus.",redactions:e=>`${e===1?"1 Wert":`${String(e)} Werte`} ausgelassen: Umgebungsvariablen und alles, was nach einem Passwort, Token oder Schl\xFCssel aussah.`,copyFailed:e=>`Kopieren fehlgeschlagen: ${e}`},restartPolicy:{title:"Restart Policy",description:"Was der Daemon tut, wenn dieser Container stoppt. Wirkt sofort; der Container wird daf\xFCr nicht neu erstellt.",loading:"Wird geladen\u2026",label:"Richtlinie",names:{no:"Nie",always:"Immer","unless-stopped":"Au\xDFer wenn Sie ihn selbst gestoppt haben","on-failure":"Nur nach einem Fehlercode"},maximum:"H\xF6chstens so viele Versuche",maximumHint:"0 bedeutet, es weiter zu versuchen.",save:"Speichern",saving:"Wird gespeichert\u2026",saved:e=>`Die Restart Policy steht jetzt auf ${e}.`},runCommand:{title:"Run-Befehl kopieren",description:"Der Befehl, der diesen Container neu erstellt, abgeleitet aus inspect. Was aus dem Image kommt, bleibt weg.",building:"Wird abgeleitet\u2026",composeNote:e=>`Dieser Container geh\xF6rt zum Compose-Projekt ${e}; dort ist docker compose up die Antwort. So l\xE4uft er gerade.`,envWarning:e=>`${e===1?"1 Umgebungsvariable steht":`${String(e)} Umgebungsvariablen stehen`} darin, samt Passw\xF6rtern: der Befehl muss funktionieren.`,noEnv:"Keine eigenen Umgebungsvariablen.",copyFailed:e=>`Kopieren fehlgeschlagen: ${e}`},logs:{filter:"Nach Text filtern",follow:"Folgen",timestamps:"Zeitstempel",clear:"Leeren",connecting:"Wird verbunden\u2026",count:(e,t)=>`${String(e)} von ${String(t)} Zeilen`,truncated:"\xE4lteste Zeilen verworfen",empty:"Noch keine Logzeilen.",noMatches:"Dazu passen keine Zeilen."},files:{up:"Einen Ordner nach oben",path:"Pfad im Container",refresh:"Aktualisieren",changed:"Ge\xE4ndert",changesTitle:"Ge\xE4ndert gegen\xFCber dem Image",changesCount:e=>e===1?"1 Pfad":`${String(e)} Pfade`,changesEmpty:"Dieser Container hat nichts an seinem Image ge\xE4ndert.",changesHint:"Ordner, die sich nur ge\xE4ndert haben, weil etwas darin liegt, fehlen hier. Volumes z\xE4hlen nicht mit.",changeKind:{added:"hinzugef\xFCgt",modified:"ge\xE4ndert",deleted:"gel\xF6scht"},openFolderOf:e=>`Den Ordner von ${e} \xF6ffnen`,upload:"Hochladen\u2026",empty:"Dieser Ordner ist leer.",downloadFolder:e=>`Ordner als tar herunterladen: ${e}`,downloadFile:e=>`Herunterladen: ${e}`,hint:e=>`Legen Sie Dateien hier ab, um sie in ${e} zu legen. Ein Ordner wird als .tar heruntergeladen, damit Rechte und Symlinks erhalten bleiben.`,savedAs:e=>`Gespeichert als ${e}.`,uploaded:(e,t)=>`${e===1?"1 Datei":`${String(e)} Dateien`} in ${t} gelegt.`},terminal:{exited:"Die Shell wurde beendet.",reopen:"Erneut \xF6ffnen",connecting:"Wird verbunden\u2026",connected:"verbunden"},assistant:{introHost:"Claude bekommt einen \xDCberblick \xFCber die Engine und die Container, liest im Terminal mit und fordert Logs und Inspect selbst an. Jede Anfrage steht unten in der Liste, Geheimnisse bleiben drau\xDFen. Claude tippt nie selbst etwas: ein vorgeschlagener Befehl wird zu einer Schaltfl\xE4che, die ihn auf den Prompt setzt, und Sie dr\xFCcken Enter.",introContainer:"Claude bekommt die Diagnose dieses Containers, ohne Geheimnisse, und fordert danach selbst Logs, Inspect, Events oder die anderen Container an. Jede Anfrage steht unten in der Liste. Claude \xE4ndert selbst nichts: ein Vorschlag wird zu einer Schaltfl\xE4che, und Sie entscheiden.",defaultQuestion:"Was ist mit diesem Container los, und was kann ich dagegen tun?",defaultHostQuestion:"Was siehst du im Terminal, und was bedeutet das?",onPrompt:"Auf dem Prompt",done:"Fertig",thinking:"Claude denkt nach\u2026",questionLabel:"Frage an Claude",followUp:"Anschlussfrage",ask:"Claude fragen",putInTerminal:"Ins Terminal setzen",composeUp:e=>`compose up f\xFCr ${e}`,start:e=>`${e} starten`,stop:e=>`${e} stoppen`,restart:e=>`${e} neu starten`,panelClosed:"Das Panel wurde geschlossen.",usage:(e,t,n)=>`${e} Tokens rein, ${t} aus dem Cache, ${n} raus`}}});var lS,cS=m(()=>{lS={title:"Dashboard",engine:{connecting:"Verbindung zu Docker wird hergestellt\u2026",running:"Engine l\xE4uft",unreachable:"Engine nicht erreichbar",startDistro:e=>`${e} starten`,startingDistro:e=>`${e} wird gestartet\u2026`,startDaemon:e=>`Docker in ${e} starten`,startingDaemon:e=>`Docker wird in ${e} gestartet\u2026`,daemonHint:e=>`${e} l\xE4uft, es ist also der Daemon darin, der steht. Die App kann ihn dort starten.`,idleHint:{intro:e=>`${e} wurde vorhin gestartet, ist aber wieder gestoppt. WSL f\xE4hrt eine Distro ohne offene Sitzung nach 15 Sekunden herunter; setzen Sie`,under:"unter",in:"in",outro:", damit sie weiterl\xE4uft."}},contexts:{switchFailed:e=>`Wechsel zu ${e} nicht m\xF6glich`},usage:{cpu:"CPU \xFCber alle Container",memory:"Arbeitsspeicher",memoryChart:"Arbeitsspeicher \xFCber alle Container",network:"Netzwerk \xFCber alle Container",networkChart:"Netzwerkverkehr \xFCber alle Container",received:"Empfangen",sent:"Gesendet",receivedAria:"empfangen",sentAria:"gesendet",hostNote:"Container mit network_mode: host z\xE4hlen nicht mit; sie haben keine eigenen Z\xE4hler."},counts:{containers:"Container",runningOfTotal:"laufend von gesamt",images:"Images",volumesNetworks:"Volumes \xB7 Netzwerke"},disk:{title:"Speicherbelegung",total:e=>`${e} insgesamt`,calculating:"wird berechnet\u2026",prune:"Aufr\xE4umen",pruning:"Wird aufger\xE4umt\u2026",unused:e=>`${String(e)} ungenutzt`,labels:{images:"Images",containers:"Container",volumes:"Volumes",buildCache:"Build-Cache"},footnoteBefore:"Dieselben Zahlen wie",footnoteAfter:". Wie viel Platz das Aufr\xE4umen tats\xE4chlich freigibt, steht hier nicht: das h\xE4ngt von gemeinsam genutzten Layern ab, und eine Sch\xE4tzung, die wie eine Tatsache aussieht, ist schlechter als gar keine Zahl."},attention:{title:"Braucht Aufmerksamkeit",none:"Alles in Ordnung: keine Absturzschleifen, nichts unhealthy, alles angeh\xE4ngt.",loading:"Wird gepr\xFCft\u2026",crashLoop:e=>`in der letzten Stunde ${String(e)}-mal abgest\xFCrzt`,restarting:"startet immer wieder neu",unhealthy:"Healthcheck schl\xE4gt fehl",network:e=>`l\xE4uft, h\xE4ngt aber nicht an ${e}`,ports:e=>`l\xE4uft, ver\xF6ffentlicht ${e} aber nicht`},stopped:{title:"K\xFCrzlich gestoppt",none:"Es ist nichts gestoppt.",clean:"sauber beendet",failed:e=>`beendet mit Code ${String(e)}`,created:e=>`erstellt ${e}`},pruneDialog:{title:"Aufr\xE4umen",description:"Was Sie ankreuzen, wird entfernt und l\xE4sst sich nicht wiederherstellen.",confirm:"Aufr\xE4umen",containers:"Gestoppte Container",containersHint:"Ein pausierter Container bleibt erhalten.",networks:"Ungenutzte Netzwerke",networksHint:"bridge, host und none bleiben immer erhalten.",images:"Images ohne Tag",imagesHint:"Meist \xDCberbleibsel eines neueren Builds.",allImages:"Auch getaggte Images ohne Container",allImagesHint:"Sie m\xFCssen sie danach erneut pullen.",buildCache:"Build-Cache",buildCacheHint:"Alles, was nicht in Gebrauch ist. Der n\xE4chste Build dauert l\xE4nger.",volumes:"Anonyme Volumes",volumesHint:"Benannte Volumes bleiben erhalten. In denen stehen Daten."},pruneResult:{removed:{containers:e=>e===1?"1 Container":`${String(e)} Container`,networks:e=>e===1?"1 Netzwerk":`${String(e)} Netzwerke`,volumes:e=>e===1?"1 Volume":`${String(e)} Volumes`,images:e=>e===1?"1 Image":`${String(e)} Images`,buildCache:e=>e===1?"1 Build-Cache-Eintrag":`${String(e)} Build-Cache-Eintr\xE4ge`},kinds:{containers:"Container",networks:"Netzwerke",volumes:"Volumes",images:"Images",buildCache:"Build-Cache"},and:"und",notice:(e,t)=>`${e} entfernt, ${t} freigegeben.`,problem:e=>`Aufr\xE4umen von ${e} nicht m\xF6glich`}}});var uS,dS=m(()=>{uS={justNow:"gerade eben",hoursAgo:e=>e===1?"vor 1 Stunde":`vor ${String(e)} Stunden`,yesterday:"gestern",daysAgo:e=>`vor ${String(e)} Tagen`,lastMonth:"letzten Monat",monthsAgo:e=>`vor ${String(e)} Monaten`,lastYear:"letztes Jahr",yearsAgo:e=>`vor ${String(e)} Jahren`}});var hS,fS,pS,gS=m(()=>{hS=e=>`${String(e)} Image${e===1?"":"s"}`,fS=e=>`${String(e)} Container`,pS={title:"Images",diskSpace:"Speicherplatz",unused:"Ungenutzt",menuLabel:"Image-Aktionen",searchLabel:"Nach Repository, Tag oder ID suchen",onlyUnused:"Nur ungenutzte Images",refreshing:"Wird aktualisiert\u2026",updatesHint:"Beim Aktualisieren wird das neue Image geholt. Ein laufender Container beh\xE4lt das alte, bis er neu angelegt wird; bei einem Container aus einem Compose-Projekt bietet die App das nach dem Pull an.",selected:e=>`${String(e)} ausgew\xE4hlt`,empty:"Keine Images gefunden.",columns:{repository:"Repository",tag:"Tag",imageId:"Image-ID",inUse:"In Gebrauch",created:"Erstellt",size:"Gr\xF6\xDFe",actions:"Aktionen"},badge:{newer:"neuere Version",notInRegistry:"nicht in der Registry",uncheckable:"nicht pr\xFCfbar"},containerCount:fS,updateTitle:e=>`Aktualisieren: ${e} erneut pullen`,rowMenu:e=>`Aktionen f\xFCr ${e}`,rowUpdate:"Neuere Version pullen",rowRun:"Container starten\u2026",rowLayers:"Schichten\u2026",runLabel:e=>`Einen Container aus ${e} starten`,runLabelDangling:"Einen Container aus diesem Image ohne Tag starten",layers:{title:e=>`Schichten von ${e}`,description:"Neueste zuerst, so wie docker history sie zeigt: die letzte Zeile des Dockerfiles oben.",loading:"Wird geladen\u2026",summary:(e,t)=>`${e===1?"1 Schicht":`${String(e)} Schichten`} \xB7 Image ${t}`,packed:e=>`Die Schichten ergeben zusammen ${e}: bei diesem Speicher meldet Docker jede Schicht so, wie sie ankam \u2014 gepackt. Auf der Platte ist das Image gr\xF6\xDFer.`,noSize:"\xE4ndert nichts auf der Platte",expand:"Den ganzen Befehl zeigen",empty:"Dieses Image meldet keine Schichten."},menu:{pull:"Image pullen",check:"Nach Updates suchen",checking:"Wird gepr\xFCft\u2026",pruneDangling:"Ohne Tag aufr\xE4umen",pruneUnused:"Ungenutzte aufr\xE4umen"},remove:{title:"Image entfernen?",description:e=>`'${e}' wird entfernt. Hat dieses Image weitere Tags, verschwindet nur dieser Tag.`,forceTitle:"Image erzwungen entfernen?",forceDescription:(e,t)=>`'${e}' wird von ${fS(t)} benutzt. Es l\xE4sst sich nur erzwungen entfernen, und diese Container funktionieren dann nicht mehr.`,forceConfirm:"Trotzdem entfernen",manyTitle:"Images entfernen?",manyDescription:e=>`${hS(e)} werden entfernt. Images, die noch in Gebrauch sind, werden \xFCbersprungen.`},prune:{allTitle:"Alle ungenutzten Images aufr\xE4umen?",allDescription:"Alles ohne angeh\xE4ngten Container wird entfernt, auch Images, die Sie selbst gepullt haben. Sie m\xFCssen sie erneut pullen.",danglingTitle:"Images ohne Tag aufr\xE4umen?",danglingDescription:"Images ohne Tag werden entfernt. Das sind meist \xDCberbleibsel eines neueren Builds.",confirm:"Aufr\xE4umen"},pruned:(e,t)=>`${hS(e)} entfernt, ${t} freigegeben.`,check:{allCurrent:"Alles ist aktuell",updates:e=>`${e===1?"1 Image hat":`${String(e)} Images haben`} eine neuere Version`,notInRegistry:e=>`${String(e)} nicht in einer Registry`,uncheckable:e=>`${String(e)} nicht pr\xFCfbar`,summary:(e,t)=>`${e} (${String(t)} gepr\xFCft).`},pullDialog:{title:"Image pullen",nameAndTag:"Name und Tag, zum Beispiel",withoutTag:"Ohne Tag wird",isUsed:"benutzt.",inputLabel:"Image",submit:"Pullen",staleHeading:"Diese Container laufen noch mit der vorherigen Version:",inProject:e=>`in ${e}`,notCompose:"nicht mit compose gestartet; legen Sie ihn selbst neu an",renewed:e=>`Neu angelegt: ${e}.`,renew:"Container neu anlegen",renewing:"Wird neu angelegt\u2026",renewHint:"Bei compose nur diese Services."},runDialog:{title:"Container starten",fromImage:"Aus Image",name:"Name",namePlaceholder:"leer lassen = Docker w\xE4hlt einen",autoRestart:"Automatisch neu starten",autoRestartHint:"Nach einem Absturz oder wenn Docker neu startet. Nicht, wenn Sie ihn selbst stoppen.",ports:"Ports",portsHint:"Einen Port des Containers von diesem Rechner aus erreichbar machen, zum Beispiel localhost:8080.",onThisComputer:"Auf diesem Rechner",inContainer:"Im Container",protocolHeader:"Protokoll",hostPortPlaceholder:"leer = beliebiger freier Port",addPort:"Port hinzuf\xFCgen",hostPort:e=>`Host-Port ${String(e)}`,containerPort:e=>`Container-Port ${String(e)}`,protocol:e=>`Protokoll ${String(e)}`,removePort:e=>`Port ${String(e)} entfernen`,network:"Netzwerk",networkHint:"Container in einem selbst angelegten Netzwerk erreichen sich gegenseitig \xFCber den Namen. Im Standardnetzwerk nicht.",networkDefault:"Standard (bridge)",networkAlias:"Zus\xE4tzlicher Name im Netzwerk",networkAliasHint:"Ein zus\xE4tzlicher Name, unter dem die anderen Container in diesem Netzwerk ihn ansprechen k\xF6nnen, neben dem Containernamen.",networkAliasPlaceholder:"datenbank",invalidAlias:e=>`'${e}' ist kein g\xFCltiger Name. Nehmen Sie Buchstaben, Ziffern, Punkte, Bindestriche und Unterstriche.`,volumes:"Volumes",volumesHint:"Daten, die den Container \xFCberleben m\xFCssen: ein Volume oder ein Ordner auf der Docker-Maschine.",source:"Volume oder Ordner",addVolume:"Volume hinzuf\xFCgen",sourcePlaceholder:"my-data oder /srv/data",targetPlaceholder:"/pfad/im/container",volumeSource:e=>`Volume-Quelle ${String(e)}`,volumeTarget:e=>`Volume-Ziel ${String(e)}`,readOnly:"nur lesen",readOnlyHint:"Der Container kann die Dateien lesen, aber nicht \xE4ndern.",removeVolume:e=>`Volume ${String(e)} entfernen`,env:"Umgebungsvariablen",envHint:"Einstellungen f\xFCr das Programm im Container. Sie k\xF6nnen auch NAME=wert einf\xFCgen.",envNameHeader:"Name",envValueHeader:"Wert",addEnv:"Variable hinzuf\xFCgen",envName:e=>`Variablenname ${String(e)}`,envValue:e=>`Variablenwert ${String(e)}`,removeEnv:e=>`Variable ${String(e)} entfernen`,submit:"Starten",starting:"Wird gestartet\u2026",invalidContainerPort:e=>`'${e}' ist kein g\xFCltiger Container-Port. Nehmen Sie eine Zahl von 1 bis 65535.`,invalidHostPort:e=>`'${e}' ist kein g\xFCltiger Host-Port. Lassen Sie ihn leer, damit Docker einen w\xE4hlt.`,volumeIncomplete:"Ein Volume braucht eine Quelle und ein Ziel.",notAbsolute:e=>`'${e}' ist kein absoluter Pfad. Das Ziel im Container beginnt mit einem /.`,envNameMissing:"Eine Variable braucht einen Namen.",envNameWithEquals:e=>`'${e}' darf kein = enthalten; das trennt den Namen vom Wert.`}}});var mS,vS=m(()=>{mS={title:"Logs",intro:"Alles, was Ihre laufenden Container schreiben, nach Zeit ineinander verschr\xE4nkt. Ein Container, der startet oder stoppt, kommt von selbst hinzu oder f\xE4llt weg.",projectLabel:"Compose-Projekt",allProjects:"Alle Container",searchLabel:"Logs durchsuchen",searchPlaceholder:"Suchbegriff oder ein Ausdruck wie /error|warn/",caseSensitive:"Gro\xDF-/Kleinschreibung beachten",containers:"Container",nothingRunning:"Es l\xE4uft nichts.",showAll:"Alles wieder einschalten",timestamps:"Zeitstempel",clear:"Leeren",columns:{time:"Zeit",object:"Objekt",line:"Zeile"},allFiltered:e=>e===1?"Die einzige Zeile wird vom Filter verborgen.":`Alle ${String(e)} Zeilen werden vom Filter verborgen.`,empty:"Noch keine Zeilen. Sobald ein Container etwas schreibt, erscheint es hier.",lineCount:e=>e===1?"1 Zeile":`${String(e)} Zeilen`,filteredOut:e=>`${String(e)} herausgefiltert`,truncated:"\xC4ltere Zeilen sind aus dem Puffer gefallen.",invalidExpression:e=>`Kein g\xFCltiger Ausdruck: ${e}`,levels:{label:"Stufe",errors:"Fehler",warnings:"Warnungen",unknownHidden:"Zeilen ohne erkennbare Stufe, etwa ein Stacktrace unter einem Fehler, blendet dieser Filter aus."}}});var _S,yS,bS,wS=m(()=>{_S=e=>`${String(e)} ${e===1?"Netzwerk":"Netzwerke"}`,yS=e=>`${String(e)} Container`,bS={title:"Netzwerke",unused:"Ungenutzt",menuLabel:"Netzwerkaktionen",searchLabel:"Nach Name oder Driver suchen",hideBuiltIn:"Eingebaute Netzwerke ausblenden",refreshing:"Wird aktualisiert\u2026",selected:e=>`${String(e)} ausgew\xE4hlt`,empty:"Keine Netzwerke gefunden.",builtIn:"eingebaut",internal:"intern",columns:{name:"Name",driver:"Driver",scope:"Scope",subnet:"Subnetz",connected:"Verbunden",actions:"Aktionen"},containerCount:yS,rowMenu:e=>`Aktionen f\xFCr ${e}`,rowMembers:"Wer ist verbunden\u2026",members:{title:e=>`Verbunden mit ${e}`,description:"Dieselben Container, auf denen die Anzahl auf dieser Seite beruht, auch gestoppte.",loading:"Wird geladen\u2026",empty:"Kein Container ist mit diesem Netzwerk verbunden.",noAddress:"keine Adresse",stopped:"gestoppt"},builtInReason:"Eingebautes Docker-Netzwerk; kann nicht entfernt werden",connectedReason:e=>`${yS(e)} verbunden; trennen Sie sie zuerst`,menu:{create:"Netzwerk anlegen\u2026",pruneUnused:"Ungenutzte aufr\xE4umen"},createDialog:{title:"Netzwerk anlegen",description:"Ein eigenes Netzwerk, in dem Container einander \xFCber den Namen finden.",nameLabel:"Name",namePlaceholder:"mein-netzwerk",internal:"Nur intern",internalHint:"Die Container erreichen einander, haben aber keine Route nach au\xDFen.",advanced:"Erweitert",driverLabel:"Driver",driverHint:"Lassen Sie das auf bridge, au\xDFer Sie betreiben einen Swarm oder benutzen ein Netzwerk-Plugin.",subnetLabel:"Subnetz",subnetHint:"Leer lassen, dann sucht Docker selbst einen freien Bereich aus.",gatewayLabel:"Gateway",gatewayHint:"Muss im Subnetz liegen. Leer bedeutet die erste Adresse des Bereichs.",submit:"Anlegen",creating:"Wird angelegt\u2026"},remove:{title:"Netzwerk entfernen?",description:e=>`'${e}' wird entfernt. Container, die sp\xE4ter daran h\xE4ngen, finden es nicht mehr.`,manyTitle:"Netzwerke entfernen?",manyDescription:e=>`${_S(e)} werden entfernt. Netzwerke mit verbundenen Containern und die eingebauten Netzwerke werden \xFCbersprungen.`},prune:{title:"Ungenutzte Netzwerke aufr\xE4umen?",description:"Jedes Netzwerk ohne verbundenen Container wird entfernt. Das gibt keinen Speicherplatz frei; es h\xE4lt die Liste \xFCbersichtlich.",confirm:"Aufr\xE4umen"},pruned:e=>`${_S(e)} entfernt.`,created:e=>`Netzwerk ${e} wurde angelegt.`}});var SS,CS=m(()=>{SS={title:"Einstellungen",language:{heading:"Sprache",label:"Sprache der App",hint:"Fachbegriffe wie container, image und volume bleiben englisch."},startup:{heading:"Start",startAtLogin:"Beim Anmelden starten, direkt in den Infobereich",hintAvailable:"So kommen die Meldungen unten auch an, wenn Sie die App nicht selbst \xF6ffnen. Hier ausschalten, oder im Task-Manager unter Autostart-Apps.",hintUnavailable:"Funktioniert nur in der installierten App. Hier w\xFCrde Windows eine nackte electron.exe starten."},notifications:{heading:"Meldungen",crash:"Wenn ein Container unerwartet stoppt",unhealthy:"Wenn ein Container unhealthy wird",wiring:"Wenn ein Container sein Netzwerk oder seine Ports verliert",hint:"Ein Container, den Sie selbst stoppen \u2014 aus der App, dem Terminal oder mit compose down \u2014 l\xF6st nie eine Meldung aus. Derselbe Container meldet sich h\xF6chstens einmal pro Minute."},update:{heading:"Updates",version:e=>`Version ${e}`,install:"Neu starten und aktualisieren",check:"Jetzt pr\xFCfen",auto:"Nach neuen Versionen suchen und sie vorab herunterladen",unavailable:"Nur die installierte App unter Windows aktualisiert sich selbst. Bei npm aktualisieren Sie \xFCber npm.",idle:"Eine neue Version wird heruntergeladen und installiert, sobald Sie die App schlie\xDFen.",checking:"Es wird nach einer neuen Version gesucht\u2026",upToDate:e=>`Das ist die neueste Version. Gepr\xFCft um ${e}.`,downloading:(e,t)=>`Version ${e} wird heruntergeladen\u2026 ${String(t)} %`,ready:e=>`Version ${e} liegt bereit und wird installiert, wenn Sie die App schlie\xDFen. Starten Sie neu, um sie jetzt zu installieren.`,error:e=>`Pr\xFCfen fehlgeschlagen: ${e}`},servers:{heading:"Server",hint:"Docker-Hosts \xFCber SSH oder TCP. Sie werden als docker-Contexts gespeichert, also kennt die docker-CLI sie auch. Mit der Auswahl in der Statusleiste wechseln Sie zwischen ihnen.",empty:"Noch keine Server.",inUse:"in Gebrauch",cli:"CLI",test:"Testen",testing:"Wird getestet\u2026",remove:"Entfernen",removeBlocked:"Von der App oder der docker-CLI benutzt. Wechseln Sie zuerst zu einem anderen Context.",removeTitle:e=>`Server '${e}' entfernen?`,removeDescription:"Das entfernt den docker-Context, auch f\xFCr die docker-CLI. Auf dem Server selbst \xE4ndert sich nichts.",connected:(e,t,n)=>`Verbunden: Docker ${e} auf ${t}/${n}.`,unknownHostKey:(e,t)=>`${e} ist noch nicht bekannt. Vergleichen Sie diesen ${t}-Fingerabdruck mit dem auf dem Server (ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub), bevor Sie ihm vertrauen:`,trust:"Vertrauen und erneut testen",add:{heading:"Einen Server hinzuf\xFCgen",name:"Name",namePlaceholder:"heimserver",kind:"Verbindung",ssh:"SSH",tcp:"TCP",username:"Benutzer",usernamePlaceholder:"leer: Benutzer dieses Rechners",host:"Host",hostPlaceholder:"192.168.1.16",port:"Port",description:"Beschreibung",descriptionPlaceholder:"optional",submit:"Hinzuf\xFCgen",tcpWarning:"Reines TCP hat keine Authentifizierung: wer im Netzwerk den Port erreicht, steuert Docker. Nehmen Sie lieber SSH.",added:e=>`Server '${e}' hinzugef\xFCgt.`}},assistant:{configured:"Ein Schl\xFCssel ist hinterlegt.",clearKey:"Schl\xFCssel entfernen",keyLabel:"API-Schl\xFCssel",model:"Modell",modelHint:"Opus denkt am besten \xFCber ein hartn\xE4ckiges Problem nach; Sonnet und Haiku antworten schneller und kosten weniger. Haiku liest au\xDFerdem weniger auf einmal.",hint:"Mit Ihrem eigenen Claude-API-Schl\xFCssel bekommt jeder Container einen Claude-Tab, der beim Eingrenzen eines Problems hilft. Der Schl\xFCssel wird verschl\xFCsselt auf diesem Rechner gespeichert und ist nur f\xFCr Ihren Windows-Benutzer lesbar. Jede Frage kostet ein paar Cent API-Nutzung, auf Ihrem Konto."}}});var ES,DS=m(()=>{ES={nav:{label:"Hauptnavigation",dashboard:"Dashboard",containers:"Container",images:"Images",volumes:"Volumes",networks:"Netzwerke",compose:"Compose",logs:"Logs",terminal:"Terminal",settings:"Einstellungen"},routes:{container:"Container"},header:{search:"Suchen (Strg+K)",lightTheme:"Helles Design",darkTheme:"Dunkles Design",quit:"Docker Client MX beenden"},statusBar:{connecting:"Verbindung zu Docker wird hergestellt\u2026",engineRunning:"Engine l\xE4uft",engineUnreachable:"Engine nicht erreichbar",containers:(e,t)=>`${String(e)} von ${String(t)} Containern`,images:e=>e===1?"1 Image":`${String(e)} Images`,reconnect:"Neu verbinden"},contextPicker:{label:"Docker-Context",switching:"Wird gewechselt\u2026",unsupported:"nicht unterst\xFCtzt",inUseByCli:"von der CLI benutzt"},actionMenu:{label:"Aktionen"},confirmDialog:{confirm:"Entfernen"},dataTable:{empty:"Nichts gefunden.",selectAll:"Alle ausw\xE4hlen",clearSelection:"Auswahl aufheben",select:e=>`${e} ausw\xE4hlen`},jsonView:{expand:e=>`Ausklappen: ${e}`,collapse:e=>`Einklappen: ${e}`,empty:"Nichts anzuzeigen."},toast:{region:"Meldungen (F8)",close:"Meldung schlie\xDFen"},usageChart:{ago:e=>`vor ${e}`,max:e=>`max. ${e}`,now:"jetzt",values:(e,t,n)=>`jetzt ${e}, h\xF6chster Wert ${t}, niedrigster Wert ${n}`,noData:e=>`${e}: noch keine Messwerte.`,summary:(e,t,n)=>`${e} \xFCber die letzten ${t}: ${n}.`},palette:{title:"Gehe zu",description:"Tippen Sie, um Seiten, Container, Images, Volumes und Netzwerke zu suchen. Pfeiltasten w\xE4hlen, Enter f\xFChrt aus.",placeholder:"Nach einer Seite, einem Container, Image, Volume oder Netzwerk suchen\u2026",results:"Ergebnisse",empty:"Nichts gefunden.",groups:{page:"Seite",container:"Container",image:"Image",volume:"Volume",compose:"Compose",network:"Netzwerk"},start:e=>`${e} starten`,stop:e=>`${e} stoppen`,restart:e=>`${e} neu starten`,diagnose:e=>`${e} diagnostizieren`,imageInUse:e=>`Image \xB7 von ${String(e)} Container${e===1?"":"n"} benutzt`,imageUnused:"Image \xB7 ungenutzt",network:e=>`Netzwerk \xB7 ${e}`,composeDetail:(e,t)=>`Compose \xB7 ${String(e)} von ${String(t)} laufen`,composeUp:e=>`${e}: up`,composeFile:e=>`${e}: Compose-Datei anzeigen`,composeDown:e=>`${e}: down\u2026`,recreate:e=>`${e} neu aufbauen`,recreateDetail:"up --force-recreate nur f\xFCr diesen Service",volumeBrowse:e=>`In ${e} schauen`,networkMembers:e=>`Wer ist mit ${e} verbunden`}}});var kS,IS=m(()=>{kS={title:"Terminal",intro:{start:"Eine Shell auf der Maschine, auf der der Docker-Daemon l\xE4uft, etwa Ihrer WSL-Distro.",afterDocker:" funktioniert hier wie gewohnt. Sie sind ",afterRoot:": die Shell l\xE4uft \xFCber einen kurzlebigen, privilegierten ",afterAlpine:"-Container, der verschwindet, sobald Sie die Shell oder diese Seite schlie\xDFen."},tabsLabel:"Terminal",tabs:{terminal:"Terminal",assistant:"Claude"},loading:"Terminal wird geladen\u2026"}});var xS,rp,TS,MS=m(()=>{xS=e=>`${String(e)} Volume${e===1?"":"s"}`,rp=e=>`${String(e)} Container`,TS={title:"Volumes",diskSpace:"Speicherplatz",calculating:"wird berechnet\u2026",unused:"Ungenutzt",menuLabel:"Volume-Aktionen",searchLabel:"Nach Name suchen",onlyUnused:"Nur ungenutzte Volumes",refreshing:"Wird aktualisiert\u2026",selected:e=>`${String(e)} ausgew\xE4hlt`,empty:"Keine Volumes gefunden.",columns:{name:"Name",driver:"Driver",inUse:"In Gebrauch",created:"Erstellt",size:"Gr\xF6\xDFe",actions:"Aktionen"},containerCount:rp,rowMenu:e=>`Aktionen f\xFCr ${e}`,rowBrowse:"Inhalt ansehen\u2026",browse:{title:e=>`In ${e}`,description:"Nur lesend, \xFCber einen kurzlebigen Hilfscontainer. Er verschwindet, wenn Sie dies schlie\xDFen.",loading:"Wird geladen\u2026",empty:"Dieser Ordner ist leer.",up:"Ordner nach oben",path:"Pfad im Volume"},rowBackup:"Als .tar sichern",rowRestore:"Sicherung zur\xFCckspielen\u2026",backupTitle:e=>`${e} als .tar sichern`,backupTitleInUse:e=>`${e} sichern. Es ist in Gebrauch: eine Datenbank, die w\xE4hrend der Sicherung schreibt, kann eine Sicherung hinterlassen, die sich nicht immer zur\xFCckspielen l\xE4sst. Stoppen Sie den Container zuerst, oder nehmen Sie ihren eigenen Dump.`,restoreTitle:e=>`Eine Sicherung in ${e} zur\xFCckspielen`,inUseReason:e=>`Von ${rp(e)} benutzt; entfernen oder stoppen Sie sie zuerst`,menu:{create:"Volume anlegen\u2026",pruneAnonymous:"Anonyme aufr\xE4umen",pruneUnused:"Ungenutzte aufr\xE4umen"},createDialog:{title:"Volume anlegen",description:"Ein leeres Volume mit einem Namen, das Sie sp\xE4ter an einen Container h\xE4ngen.",nameLabel:"Name",namePlaceholder:"my-data",storageLabel:"Wo werden die Daten gespeichert?",storage:{docker:"Von Docker verwaltet",dockerHint:"Empfohlen. Docker entscheidet, wo die Daten liegen.",folder:"Ein Ordner auf der Docker-Maschine",folderHint:"Ein vorhandener Ordner, etwa um Dateien mit einem Container zu teilen.",nfs:"Eine NFS-Freigabe im Netzwerk",nfsHint:"Ein freigegebener Ordner auf einem NAS oder Server."},folderLabel:"Ordner",folderHint:"Der Ordner muss auf der Maschine, auf der Docker l\xE4uft, schon vorhanden sein. Unter WSL ist C:\\data gleich /mnt/c/data.",nfsServerLabel:"Server",nfsPathLabel:"Freigegebener Ordner",nfsHint:"Wird erst gepr\xFCft, wenn ein Container dieses Volume benutzt.",advanced:"Erweitert",driverLabel:"Driver",driverHint:"Lassen Sie das auf local, au\xDFer Sie benutzen ein Volume-Plugin.",submit:"Anlegen",creating:"Wird angelegt\u2026"},restore:{title:e=>`Eine Sicherung in ${e} zur\xFCckspielen?`,description:e=>"Dateien mit demselben Namen werden \xFCberschrieben; was nicht in der Sicherung steht, bleibt. "+(e>0?`Stoppen Sie zuerst ${rp(e)}, die dieses Volume benutzen: eine laufende Datenbank merkt nicht, dass sich ihre Dateien ge\xE4ndert haben. `:"")+"Die Datei w\xE4hlen Sie als N\xE4chstes.",confirm:"Datei w\xE4hlen"},remove:{title:"Volume entfernen?",description:e=>`Alle Daten in '${e}' gehen verloren. Das l\xE4sst sich nicht r\xFCckg\xE4ngig machen.`,manyTitle:"Volumes entfernen?",manyDescription:e=>`Alle Daten in ${xS(e)} gehen verloren. Volumes, die noch in Gebrauch sind, werden \xFCbersprungen.`},prune:{allTitle:"Alle ungenutzten Volumes aufr\xE4umen?",allDescription:"Jedes Volume ohne angeh\xE4ngten Container wird entfernt, auch benannte Volumes, die Sie selbst angelegt haben. Die Daten darin sind danach weg.",anonymousTitle:"Anonyme Volumes aufr\xE4umen?",anonymousDescription:"Volumes ohne Namen, die kein Container mehr benutzt, werden entfernt. Das sind meist \xDCberbleibsel von Containern, die es l\xE4ngst nicht mehr gibt.",confirm:"Aufr\xE4umen"},created:e=>`Volume ${e} wurde angelegt.`,pruned:(e,t)=>`${xS(e)} entfernt, ${t} freigegeben.`,backedUp:(e,t)=>`Sicherung von ${e} gespeichert als ${t}.`,restored:(e,t)=>`${e} wurde in ${t} zur\xFCckgespielt.`}});var NS,AS=m(()=>{rS();sS();aS();cS();dS();gS();vS();wS();CS();DS();IS();MS();NS={common:nS,compose:iS,containers:oS,dashboard:lS,format:uS,images:pS,logs:mS,networks:bS,settings:SS,shell:ES,terminal:kS,volumes:TS}});var RS,LS=m(()=>{RS={cancel:"Cancelar",close:"Cerrar",remove:"Eliminar",retry:"Reintentar",refresh:"Actualizar",search:"Buscar",loading:"Cargando\u2026",save:"Guardar",copy:"Copiar",copied:"Copiado",start:"Iniciar",stop:"Detener",restart:"Reiniciar",yes:"S\xED",no:"No",none:"Ninguno",unknown:"Desconocido",nothingToPrune:"No hab\xEDa nada que limpiar."}});var OS,PS=m(()=>{OS={title:"Compose",intro:"Proyectos a partir de las labels de tus contenedores. Un proyecto detenido tambi\xE9n aparece, mientras sus contenedores sigan existiendo.",updating:"Actualizando\u2026",state:{running:"en marcha",partial:"parcial",stopped:"detenido"},runningOf:(e,t)=>`${String(e)} de ${String(t)}`,expand:e=>`Desplegar: ${e}`,collapse:e=>`Plegar: ${e}`,menuAria:e=>`Acciones para ${e}`,upAria:e=>`Levantar ${e}`,startAria:e=>`Iniciar ${e}`,stopAria:e=>`Detener ${e}`,restartAria:e=>`Reiniciar ${e}`,downAria:e=>`Bajar ${e}`,up:"Up",down:"Down",fileAria:e=>`Mostrar el archivo compose de ${e}`,file:{button:"Archivo",title:e=>`El archivo compose de ${e}`,loading:"Cargando\u2026",raw:"Tal como est\xE1 escrito",resolved:"Tal como lo lee compose",rawHint:"El archivo en el disco, sin cambios.",resolvedHint:"Overrides combinados y ${VAR} sustituidas: en esto se basa el proyecto en marcha.",empty:"Este archivo est\xE1 vac\xEDo.",copyFailed:e=>`No se ha podido copiar: ${e}`},noCli:"La CLI de docker no est\xE1 disponible",noWorkingDir:"No se sabe d\xF3nde est\xE1 este proyecto",busy:"Trabajando\u2026 un up puede tardar si hay que descargar images.",empty:"No se han encontrado proyectos de Compose. Aparecen aqu\xED en cuanto haya contenedores con labels de Compose.",downDialog:{title:"\xBFBajar el proyecto?",description:e=>`Los contenedores y las redes de '${e}' se detendr\xE1n y se eliminar\xE1n. Los volumes se conservan, as\xED que tus datos se mantienen.`,confirm:"Bajar"},recreate:"Recrear",recreateAria:e=>`Recrear ${e}`,recreateTitle:"docker compose up -d --no-deps --force-recreate",recreateDone:e=>`${e} se ha recreado.`,upDone:e=>`'${e}' est\xE1 en marcha.`,downDone:e=>`'${e}' se ha bajado.`}});var $S,FS=m(()=>{$S={actions:{pause:"Pausar",resume:"Reanudar",copyDiagnosis:"Copiar el diagn\xF3stico",copyRunCommand:"Copiar el comando run",restartPolicy:"Pol\xEDtica de reinicio\u2026",recreate:"Reconstruir"},page:{title:"Contenedores",cpuUsage:"Uso de CPU",memoryUsage:"Uso de memoria",search:"Buscar por nombre, image o ID",onlyRunning:"Solo los contenedores en marcha",updating:"Actualizando\u2026",selected:e=>`${String(e)} seleccionados`,empty:"No se han encontrado contenedores.",columns:{name:"Nombre",id:"ID del contenedor",image:"Image",ports:"Puertos",cpu:"CPU",memory:"Memoria",actions:"Acciones"},group:{loose:"Contenedores sueltos",expand:e=>`Desplegar: ${e}`,collapse:e=>`Plegar: ${e}`,count:e=>e===1?"1 contenedor":`${String(e)} contenedores`,running:e=>`${String(e)} en marcha`,startAll:"Iniciar todos",stopAll:"Detener todos",restartAll:"Reiniciar todos",removeAll:"Eliminar todos",menu:e=>`Acciones para todo en ${e}`,manual:"Grupo propio",addToGroup:"A\xF1adir a un grupo\u2026",removeFromGroup:"Sacar del grupo",rename:"Renombrar el grupo\u2026",dissolve:"Deshacer el grupo"},groupDialog:{assignTitle:"A\xF1adir a un grupo",assignOne:e=>`'${e}' pasa al grupo al que des nombre aqu\xED.`,assignMany:e=>`${String(e)} contenedores pasan al grupo al que des nombre aqu\xED.`,renameTitle:"Renombrar el grupo",renameDescription:e=>`Todo lo que hay en '${e}' se mueve al nombre nuevo.`,nameLabel:"Nombre del grupo",namePlaceholder:"por ejemplo mi-stack",existing:"Grupos existentes",hint:"Un grupo propio vive en esta aplicaci\xF3n y sigue el nombre del contenedor; Docker no sabe nada de \xE9l.",empty:"Escribe un nombre.",reserved:e=>`'${e}' ya es un proyecto de Compose.`,submit:"Guardar"},row:{diagnosisOf:e=>`Diagn\xF3stico de ${e}`,missingNetwork:e=>`Funciona, pero no est\xE1 conectado a ${e}`,menu:e=>`Acciones para ${e}`},confirm:{title:"\xBFEliminar el contenedor?",one:e=>`'${e}' se detendr\xE1 y se eliminar\xE1. Esto no se puede deshacer; los volumes se conservan.`,many:e=>`${e===1?"1 contenedor se detendr\xE1 y se eliminar\xE1":`${String(e)} contenedores se detendr\xE1n y se eliminar\xE1n`}. Esto no se puede deshacer; los volumes se conservan.`,group:(e,t)=>`Los ${String(e)} contenedores de '${t}' se detendr\xE1n y se eliminar\xE1n. Esto no se puede deshacer; los volumes se conservan.`}},detail:{back:"\u2039 Contenedores",menu:"Acciones para este contenedor",gone:" ya no existe. Un contenedor con --rm desaparece en cuanto se detiene, y compose crea uno nuevo al hacer up.",goneUnnamed:"Este contenedor ya no existe.",successor:(e,t)=>`Ir al ${e} actual (${t})`,tabsLabel:"Detalles del contenedor",tabs:{logs:"Logs",health:"Health",events:"Eventos",inspect:"Inspect",stats:"Stats",terminal:"Terminal",files:"Archivos",networks:"Redes",assistant:"Claude"},wiring:{network:e=>`Funciona, pero no est\xE1 conectado a ${e}. Nada lo alcanza por esa red, y \xE9l no alcanza nada.`,networkWhy:"Esto pasa cuando la red se elimin\xF3 y se volvi\xF3 a crear mientras el contenedor exist\xEDa.",connect:e=>`Conectar a ${e}`,ports:e=>`Funciona, pero no publica ${e}.`,portsWhy:"Esto pasa cuando se inici\xF3 otra vez tras un inicio que fall\xF3 por un puerto ocupado.",portsFromNetwork:"Eso se debe a la red que falta arriba: los puertos pasan por una red.",restart:"Reiniciar"},events:{loading:"Cargando\u2026",empty:"A\xFAn no hay nada registrado. La app registra desde que arranca, m\xE1s lo que Docker recordaba entonces.",scope:"Registrado en la app desde que arranc\xF3, hasta 100 por nombre de contenedor; tras reiniciar la app, Docker completa lo que a\xFAn recuerda.",crashLoop:e=>`Se cay\xF3 ${String(e)} veces en la \xFAltima hora.`,create:"Creado",start:"Iniciado",exited:e=>e===0?"Termin\xF3 con normalidad":`Termin\xF3 con el c\xF3digo ${String(e)}`,exitedUnknown:"Termin\xF3",exitHint137:"SIGKILL: matado desde fuera, a menudo memoria llena o una parada que tard\xF3 demasiado",exitHint143:"SIGTERM: se le pidi\xF3 parar",kill:e=>`${e} enviado`,oom:"Detenido por el kernel: memoria llena",stop:"Detenido",restart:"Reiniciado",pause:"En pausa",unpause:"Reanudado",destroy:"Eliminado",rename:e=>`Renombrado, antes ${e}`,renamed:"Renombrado",health:{starting:"Healthcheck empieza",healthy:"Pas\xF3 a healthy",unhealthy:"Pas\xF3 a unhealthy"}},health:{loading:"Cargando\u2026",refresh:"Actualizar",status:{starting:"starting",healthy:"healthy",unhealthy:"unhealthy",unknown:"a\xFAn no se ha ejecutado"},failingStreak:e=>e===1?"ha fallado una vez":`ha fallado ${String(e)} veces seguidas`,command:"Comando",fromImage:"Viene de la imagen; el daemon no indica el comando.",rhythm:"Ritmo",every:e=>`cada ${e}`,timeout:e=>`tiempo de espera ${e}`,startPeriod:e=>`start period ${e}`,retries:e=>e===1?"1 intento antes de unhealthy":`${String(e)} intentos antes de unhealthy`,defaults:"los valores por defecto de Docker",probes:"\xDAltimos resultados",noProbes:"La comprobaci\xF3n a\xFAn no se ha ejecutado.",exitCode:e=>`c\xF3digo de salida ${String(e)}`,unknownExitCode:"sin c\xF3digo de salida",noOutput:"sin salida"},networks:{title:"En estas redes",loading:"Cargando\u2026",empty:"Este contenedor no est\xE1 en ninguna red.",noAddress:"sin direcci\xF3n",alsoKnownAs:e=>`tambi\xE9n accesible como ${e}`,disconnect:"Desconectar",disconnectFrom:e=>`Desconectar de ${e}`,addTitle:"Conectar a una red",addHint:"Surte efecto de inmediato, tambi\xE9n mientras el contenedor est\xE1 en marcha.",allConnected:"Este contenedor ya est\xE1 en todas las redes.",networkLabel:"Red",choose:"Elige una red\u2026",alias:"Nombre adicional en la red",aliasHint:"Un nombre adicional que los dem\xE1s contenedores de esta red pueden usar, junto al nombre del contenedor.",aliasPlaceholder:"base-de-datos",connect:"Conectar",working:"En curso\u2026",invalidAlias:e=>`'${e}' no es un nombre v\xE1lido. Use letras, d\xEDgitos, puntos, guiones y guiones bajos.`},fetching:"Cargando\u2026",terminalLoading:"Cargando la terminal\u2026",shellOnlyRunning:"Solo se puede abrir un shell en un contenedor en marcha.",cpu:"CPU",lastMinute:e=>`\xFAltimo minuto \xB7 pico ${e} %`,chartPending:"el gr\xE1fico aparece tras unas cuantas muestras",memory:"Memoria",ofLimit:e=>`${e} % del l\xEDmite`,noLimit:"sin l\xEDmite definido",statsOnlyRunning:"Las stats solo se recogen de un contenedor en marcha.",confirmTitle:"\xBFEliminar el contenedor?",confirmDescription:"Este contenedor se detendr\xE1 y se eliminar\xE1. Esto no se puede deshacer; los volumes se conservan."},diagnosis:{title:"Copiar el diagn\xF3stico",description:"Estado, health, mounts, events y las \xFAltimas l\xEDneas de log, para pegarlos en un chat o en una issue. Esto es exactamente lo que se copia.",collecting:"Recogiendo\u2026",noRedactions:"No se ha omitido nada; ning\xFAn valor parec\xEDa un secreto.",redactions:e=>`${e===1?"1 valor omitido":`${String(e)} valores omitidos`}: las variables de entorno y todo lo que parec\xEDa una contrase\xF1a, un token o una clave.`,copyFailed:e=>`No se ha podido copiar: ${e}`},restartPolicy:{title:"Pol\xEDtica de reinicio",description:"Lo que hace el daemon cuando este contenedor se detiene. Surte efecto de inmediato; el contenedor no se vuelve a crear.",loading:"Cargando\u2026",label:"Pol\xEDtica",names:{no:"Nunca",always:"Siempre","unless-stopped":"Salvo si lo has parado t\xFA","on-failure":"Solo tras un c\xF3digo de error"},maximum:"Como m\xE1ximo tantos intentos",maximumHint:"0 significa seguir intent\xE1ndolo.",save:"Guardar",saving:"Guardando\u2026",saved:e=>`La pol\xEDtica de reinicio es ahora ${e}.`},runCommand:{title:"Copiar el comando run",description:"El comando que vuelve a crear este contenedor, deducido de inspect. Lo que viene de la imagen se omite.",building:"Deduciendo\u2026",composeNote:e=>`Este contenedor pertenece al proyecto de compose ${e}, donde docker compose up es la respuesta. As\xED es como se ejecuta ahora.`,envWarning:e=>`${e===1?"Incluye 1 variable de entorno":`Incluye ${String(e)} variables de entorno`}, contrase\xF1as incluidas: el comando tiene que funcionar.`,noEnv:"Sin variables de entorno propias.",copyFailed:e=>`No se ha podido copiar: ${e}`},logs:{filter:"Filtrar por texto",follow:"Seguir",timestamps:"Marcas de tiempo",clear:"Limpiar",connecting:"Conectando\u2026",count:(e,t)=>`${String(e)} de ${String(t)} l\xEDneas`,truncated:"se han descartado las l\xEDneas m\xE1s antiguas",empty:"Todav\xEDa no hay l\xEDneas de log.",noMatches:"No hay l\xEDneas que coincidan."},files:{up:"Subir una carpeta",path:"Ruta en el contenedor",refresh:"Actualizar",changed:"Modificado",changesTitle:"Modificado respecto a la imagen",changesCount:e=>e===1?"1 ruta":`${String(e)} rutas`,changesEmpty:"Este contenedor no ha cambiado nada de su imagen.",changesHint:"Las carpetas que solo cambiaron porque algo dentro cambi\xF3 no aparecen. Los vol\xFAmenes no cuentan.",changeKind:{added:"a\xF1adido",modified:"modificado",deleted:"eliminado"},openFolderOf:e=>`Abrir la carpeta de ${e}`,upload:"Subir\u2026",empty:"Esta carpeta est\xE1 vac\xEDa.",downloadFolder:e=>`Descargar la carpeta como tar: ${e}`,downloadFile:e=>`Descargar: ${e}`,hint:e=>`Suelta archivos aqu\xED para ponerlos en ${e}. Descargar una carpeta da un .tar, as\xED se conservan los permisos y los symlinks.`,savedAs:e=>`Guardado como ${e}.`,uploaded:(e,t)=>`${e===1?"1 archivo puesto":`${String(e)} archivos puestos`} en ${t}.`},terminal:{exited:"El shell ha terminado.",reopen:"Volver a abrir",connecting:"Conectando\u2026",connected:"conectado"},assistant:{introHost:"Claude recibe una visi\xF3n general del engine y de los contenedores, va leyendo la terminal y pide logs e inspect por su cuenta. Cada petici\xF3n aparece abajo, y los secretos quedan fuera. Claude nunca escribe nada \xE9l mismo: un comando sugerido se convierte en un bot\xF3n que lo pone en el prompt, y t\xFA pulsas Intro.",introContainer:"Claude recibe el diagn\xF3stico de este contenedor, sin secretos, y luego pide por su cuenta logs, inspect, events o los dem\xE1s contenedores. Cada petici\xF3n aparece abajo. Claude no cambia nada por su cuenta: una sugerencia se convierte en un bot\xF3n, y decides t\xFA.",defaultQuestion:"\xBFQu\xE9 le pasa a este contenedor, y qu\xE9 puedo hacer al respecto?",defaultHostQuestion:"\xBFQu\xE9 ves en la terminal, y qu\xE9 significa?",onPrompt:"En el prompt",done:"Listo",thinking:"Claude est\xE1 pensando\u2026",questionLabel:"Pregunta para Claude",followUp:"Pregunta de seguimiento",ask:"Preguntar a Claude",putInTerminal:"Poner en la terminal",composeUp:e=>`compose up para ${e}`,start:e=>`Iniciar ${e}`,stop:e=>`Detener ${e}`,restart:e=>`Reiniciar ${e}`,panelClosed:"El panel se ha cerrado.",usage:(e,t,n)=>`${e} tokens de entrada, ${t} de la cach\xE9, ${n} de salida`}}});var BS,HS=m(()=>{BS={title:"Panel",engine:{connecting:"Conectando con Docker\u2026",running:"Engine en marcha",unreachable:"Engine inaccesible",startDistro:e=>`Iniciar ${e}`,startingDistro:e=>`Iniciando ${e}\u2026`,startDaemon:e=>`Iniciar Docker en ${e}`,startingDaemon:e=>`Iniciando Docker en ${e}\u2026`,daemonHint:e=>`${e} est\xE1 en marcha, as\xED que es el daemon de dentro el que est\xE1 parado. La app puede iniciarlo ah\xED.`,idleHint:{intro:e=>`${e} arranc\xF3 antes pero se volvi\xF3 a detener. WSL apaga una distro sin sesi\xF3n abierta a los 15 segundos; pon`,under:"en",in:"en",outro:"para que siga en marcha."}},contexts:{switchFailed:e=>`No se ha podido cambiar a ${e}`},usage:{cpu:"CPU de todos los contenedores",memory:"Memoria",memoryChart:"Memoria de todos los contenedores",network:"Red de todos los contenedores",networkChart:"Tr\xE1fico de red de todos los contenedores",received:"Recibido",sent:"Enviado",receivedAria:"recibido",sentAria:"enviado",hostNote:"Los contenedores con network_mode: host no cuentan; no tienen contadores propios."},counts:{containers:"Contenedores",runningOfTotal:"en marcha del total",images:"Images",volumesNetworks:"Volumes \xB7 redes"},disk:{title:"Uso de disco",total:e=>`${e} en total`,calculating:"calculando\u2026",prune:"Limpiar",pruning:"Limpiando\u2026",unused:e=>`${String(e)} sin usar`,labels:{images:"Images",containers:"Contenedores",volumes:"Volumes",buildCache:"Cach\xE9 de build"},footnoteBefore:"Las mismas cifras que",footnoteAfter:". Cu\xE1nto espacio libera realmente la limpieza no se muestra: depende de las layers compartidas, y una estimaci\xF3n que parece un hecho es peor que no dar ninguna cifra."},attention:{title:"Requiere atenci\xF3n",none:"Todo en orden: sin bucles de ca\xEDdas, nada unhealthy, todo conectado.",loading:"Comprobando\u2026",crashLoop:e=>`se cay\xF3 ${String(e)} veces en la \xFAltima hora`,restarting:"se reinicia una y otra vez",unhealthy:"el healthcheck falla",network:e=>`funciona, pero no est\xE1 conectado a ${e}`,ports:e=>`funciona, pero no publica ${e}`},stopped:{title:"Detenidos hace poco",none:"No se ha detenido nada.",clean:"termin\xF3 limpiamente",failed:e=>`termin\xF3 con el c\xF3digo ${String(e)}`,created:e=>`creado ${e}`},pruneDialog:{title:"Limpiar",description:"Todo lo que marques se elimina y no se puede recuperar.",confirm:"Limpiar",containers:"Contenedores detenidos",containersHint:"Un contenedor en pausa se conserva.",networks:"Redes sin usar",networksHint:"bridge, host y none se conservan siempre.",images:"Images sin tag",imagesHint:"Normalmente restos de un build m\xE1s reciente.",allImages:"Tambi\xE9n las images con tag sin contenedor",allImagesHint:"Despu\xE9s tendr\xE1s que volver a descargarlas.",buildCache:"Cach\xE9 de build",buildCacheHint:"Todo lo que no est\xE1 en uso. El siguiente build tardar\xE1 m\xE1s.",volumes:"Volumes an\xF3nimos",volumesHint:"Los volumes con nombre se conservan. Ah\xED hay datos."},pruneResult:{removed:{containers:e=>e===1?"1 contenedor":`${String(e)} contenedores`,networks:e=>e===1?"1 red":`${String(e)} redes`,volumes:e=>e===1?"1 volume":`${String(e)} volumes`,images:e=>e===1?"1 image":`${String(e)} images`,buildCache:e=>e===1?"1 entrada de cach\xE9 de build":`${String(e)} entradas de cach\xE9 de build`},kinds:{containers:"contenedores",networks:"redes",volumes:"volumes",images:"images",buildCache:"cach\xE9 de build"},and:"y",notice:(e,t)=>`${e} eliminados, ${t} liberados.`,problem:e=>`No se ha podido limpiar ${e}`}}});var jS,VS=m(()=>{jS={justNow:"ahora mismo",hoursAgo:e=>e===1?"hace 1 hora":`hace ${String(e)} horas`,yesterday:"ayer",daysAgo:e=>`hace ${String(e)} d\xEDas`,lastMonth:"el mes pasado",monthsAgo:e=>`hace ${String(e)} meses`,lastYear:"el a\xF1o pasado",yearsAgo:e=>`hace ${String(e)} a\xF1os`}});var zS,US,WS,qS=m(()=>{zS=e=>`${String(e)} image${e===1?"":"s"}`,US=e=>`${String(e)} contenedor${e===1?"":"es"}`,WS={title:"Images",diskSpace:"Espacio en disco",unused:"Sin usar",menuLabel:"Acciones de image",searchLabel:"Buscar por repository, tag o ID",onlyUnused:"Solo las images sin usar",refreshing:"Actualizando\u2026",updatesHint:"Actualizar descarga la image nueva. Un contenedor en marcha conserva la antigua hasta que se vuelva a crear; para un contenedor de un proyecto de Compose, la app ofrece hacerlo tras la descarga.",selected:e=>`${String(e)} seleccionadas`,empty:"No se han encontrado images.",columns:{repository:"Repository",tag:"Tag",imageId:"ID de la image",inUse:"En uso",created:"Creada",size:"Tama\xF1o",actions:"Acciones"},badge:{newer:"versi\xF3n m\xE1s reciente",notInRegistry:"no est\xE1 en el registry",uncheckable:"no se ha podido comprobar"},containerCount:US,updateTitle:e=>`Actualizar: volver a descargar ${e}`,rowMenu:e=>`Acciones para ${e}`,rowUpdate:"Descargar la versi\xF3n m\xE1s reciente",rowRun:"Ejecutar un contenedor\u2026",rowLayers:"Capas\u2026",runLabel:e=>`Iniciar un contenedor a partir de ${e}`,runLabelDangling:"Iniciar un contenedor a partir de esta image sin tag",layers:{title:e=>`Capas de ${e}`,description:"Las m\xE1s nuevas primero, como las muestra docker history: la \xFAltima l\xEDnea del Dockerfile arriba.",loading:"Cargando\u2026",summary:(e,t)=>`${e===1?"1 capa":`${String(e)} capas`} \xB7 imagen ${t}`,packed:e=>`Las capas suman ${e}: con este almacenamiento Docker informa de cada capa tal como lleg\xF3, comprimida. En el disco la imagen es mayor.`,noSize:"no cambia nada en el disco",expand:"Mostrar el comando completo",empty:"Esta imagen no informa de ninguna capa."},menu:{pull:"Descargar una image",check:"Buscar actualizaciones",checking:"Comprobando\u2026",pruneDangling:"Limpiar las que no tienen tag",pruneUnused:"Limpiar las que no se usan"},remove:{title:"\xBFEliminar la image?",description:e=>`'${e}' se eliminar\xE1. Si esta image tiene otros tags, solo se va este tag.`,forceTitle:"\xBFForzar la eliminaci\xF3n de la image?",forceDescription:(e,t)=>`'${e}' la usa ${US(t)}. Solo se puede eliminar a la fuerza, y esos contenedores dejar\xE1n de funcionar.`,forceConfirm:"Eliminar igualmente",manyTitle:"\xBFEliminar las images?",manyDescription:e=>`Se eliminar\xE1n ${zS(e)}. Las images que todav\xEDa est\xE1n en uso se omiten.`},prune:{allTitle:"\xBFLimpiar todas las images sin usar?",allDescription:"Se elimina todo lo que no tenga un contenedor asociado, incluidas las images que descargaste t\xFA. Tendr\xE1s que volver a descargarlas.",danglingTitle:"\xBFLimpiar las images sin tag?",danglingDescription:"Se eliminan las images sin tag. Suelen ser restos de un build m\xE1s reciente.",confirm:"Limpiar"},pruned:(e,t)=>`${zS(e)} eliminadas, ${t} liberados.`,check:{allCurrent:"Todo est\xE1 al d\xEDa",updates:e=>`${e===1?"1 image tiene":`${String(e)} images tienen`} una versi\xF3n m\xE1s reciente`,notInRegistry:e=>`${String(e)} no est\xE1n en ning\xFAn registry`,uncheckable:e=>`${String(e)} no se han podido comprobar`,summary:(e,t)=>`${e} (${String(t)} comprobadas).`},pullDialog:{title:"Descargar una image",nameAndTag:"Nombre y tag, por ejemplo",withoutTag:"Sin tag se usa",isUsed:".",inputLabel:"Image",submit:"Descargar",staleHeading:"Estos contenedores siguen con la versi\xF3n anterior:",inProject:e=>`en ${e}`,notCompose:"no se inici\xF3 con compose; vuelve a crearlo t\xFA",renewed:e=>`Vueltos a crear: ${e}.`,renew:"Volver a crear los contenedores",renewing:"Volviendo a crear\u2026",renewHint:"Con compose, solo estos servicios."},runDialog:{title:"Iniciar un contenedor",fromImage:"A partir de la image",name:"Nombre",namePlaceholder:"d\xE9jalo vac\xEDo = Docker elige uno",autoRestart:"Reiniciar autom\xE1ticamente",autoRestartHint:"Tras un fallo o cuando Docker se reinicie. No cuando lo detienes t\xFA.",ports:"Puertos",portsHint:"Hacer accesible un puerto del contenedor desde este ordenador, por ejemplo localhost:8080.",onThisComputer:"En este ordenador",inContainer:"En el contenedor",protocolHeader:"Protocolo",hostPortPlaceholder:"vac\xEDo = cualquier puerto libre",addPort:"A\xF1adir un puerto",hostPort:e=>`Puerto del host ${String(e)}`,containerPort:e=>`Puerto del contenedor ${String(e)}`,protocol:e=>`Protocolo ${String(e)}`,removePort:e=>`Eliminar el puerto ${String(e)}`,network:"Red",networkHint:"Los contenedores de una red que hayas creado t\xFA se alcanzan por su nombre. En la red por defecto, no.",networkDefault:"Por defecto (bridge)",networkAlias:"Nombre adicional en la red",networkAliasHint:"Un nombre adicional que los dem\xE1s contenedores de esta red pueden usar, junto al nombre del contenedor.",networkAliasPlaceholder:"base-de-datos",invalidAlias:e=>`'${e}' no es un nombre v\xE1lido. Usa letras, d\xEDgitos, puntos, guiones y guiones bajos.`,volumes:"Volumes",volumesHint:"Datos que deben sobrevivir al contenedor: un volume, o una carpeta en la m\xE1quina de Docker.",source:"Volume o carpeta",addVolume:"A\xF1adir un volume",sourcePlaceholder:"my-data o /srv/data",targetPlaceholder:"/ruta/en/contenedor",volumeSource:e=>`Origen del volume ${String(e)}`,volumeTarget:e=>`Destino del volume ${String(e)}`,readOnly:"solo lectura",readOnlyHint:"El contenedor puede leer los archivos pero no cambiarlos.",removeVolume:e=>`Eliminar el volume ${String(e)}`,env:"Variables de entorno",envHint:"Ajustes para el programa del contenedor. Tambi\xE9n puedes pegar NOMBRE=valor.",envNameHeader:"Nombre",envValueHeader:"Valor",addEnv:"A\xF1adir una variable",envName:e=>`Nombre de la variable ${String(e)}`,envValue:e=>`Valor de la variable ${String(e)}`,removeEnv:e=>`Eliminar la variable ${String(e)}`,submit:"Iniciar",starting:"Iniciando\u2026",invalidContainerPort:e=>`'${e}' no es un puerto de contenedor v\xE1lido. Usa un n\xFAmero del 1 al 65535.`,invalidHostPort:e=>`'${e}' no es un puerto de host v\xE1lido. D\xE9jalo vac\xEDo para que Docker elija uno.`,volumeIncomplete:"Un volume necesita un origen y un destino.",notAbsolute:e=>`'${e}' no es una ruta absoluta. El destino en el contenedor empieza por /.`,envNameMissing:"Una variable necesita un nombre.",envNameWithEquals:e=>`'${e}' no puede contener =; eso separa el nombre del valor.`}}});var GS,KS=m(()=>{GS={title:"Logs",intro:"Todo lo que escriben tus contenedores en marcha, entrelazado por hora. Un contenedor que arranca o se detiene entra o sale por su cuenta.",projectLabel:"Proyecto de compose",allProjects:"Todos los contenedores",searchLabel:"Buscar en los logs",searchPlaceholder:"Un t\xE9rmino, o una expresi\xF3n como /error|warn/",caseSensitive:"Distinguir may\xFAsculas y min\xFAsculas",containers:"Contenedores",nothingRunning:"No hay nada en marcha.",showAll:"Volver a activarlo todo",timestamps:"Marcas de tiempo",clear:"Limpiar",columns:{time:"Hora",object:"Objeto",line:"L\xEDnea"},allFiltered:e=>e===1?"La \xFAnica l\xEDnea est\xE1 oculta por el filtro.":`Las ${String(e)} l\xEDneas est\xE1n ocultas por el filtro.`,empty:"Todav\xEDa no hay l\xEDneas. En cuanto un contenedor escriba algo, aparecer\xE1 aqu\xED.",lineCount:e=>e===1?"1 l\xEDnea":`${String(e)} l\xEDneas`,filteredOut:e=>`${String(e)} filtradas`,truncated:"Las l\xEDneas m\xE1s antiguas han salido del b\xFAfer.",invalidExpression:e=>`No es una expresi\xF3n v\xE1lida: ${e}`,levels:{label:"Nivel",errors:"Errores",warnings:"Avisos",unknownHidden:"Las l\xEDneas sin un nivel reconocible, como una traza bajo un error, quedan ocultas con este filtro."}}});var YS,ZS,QS,XS=m(()=>{YS=e=>`${String(e)} ${e===1?"red":"redes"}`,ZS=e=>`${String(e)} contenedor${e===1?"":"es"}`,QS={title:"Redes",unused:"Sin usar",menuLabel:"Acciones de red",searchLabel:"Buscar por nombre o driver",hideBuiltIn:"Ocultar las redes integradas",refreshing:"Actualizando\u2026",selected:e=>`${String(e)} seleccionadas`,empty:"No se han encontrado redes.",builtIn:"integrada",internal:"interna",columns:{name:"Nombre",driver:"Driver",scope:"Alcance",subnet:"Subred",connected:"Conectados",actions:"Acciones"},containerCount:ZS,rowMenu:e=>`Acciones para ${e}`,rowMembers:"Qui\xE9n est\xE1 conectado\u2026",members:{title:e=>`Conectados a ${e}`,description:"Los mismos contenedores en los que se basa el recuento de esta p\xE1gina, tambi\xE9n los detenidos.",loading:"Cargando\u2026",empty:"Ning\xFAn contenedor est\xE1 conectado a esta red.",noAddress:"sin direcci\xF3n",stopped:"detenido"},builtInReason:"Red integrada de Docker; no se puede eliminar",connectedReason:e=>`${ZS(e)} conectado${e===1?"":"s"}; descon\xE9ctalos primero`,menu:{create:"Crear una red\u2026",pruneUnused:"Limpiar las que no se usan"},createDialog:{title:"Crear una red",description:"Una red propia, en la que los contenedores se encuentran por su nombre.",nameLabel:"Nombre",namePlaceholder:"mi-red",internal:"Solo interna",internalHint:"Los contenedores se alcanzan entre s\xED, pero no tienen ruta hacia fuera.",advanced:"Avanzado",driverLabel:"Driver",driverHint:"D\xE9jalo en bridge salvo que uses un swarm o un plugin de red.",subnetLabel:"Subred",subnetHint:"D\xE9jalo vac\xEDo y Docker elige por su cuenta un rango libre.",gatewayLabel:"Puerta de enlace",gatewayHint:"Debe estar dentro de la subred. Vac\xEDo significa la primera direcci\xF3n del rango.",submit:"Crear",creating:"Creando\u2026"},remove:{title:"\xBFEliminar la red?",description:e=>`'${e}' se eliminar\xE1. Los contenedores que se conecten a ella m\xE1s adelante ya no la encontrar\xE1n.`,manyTitle:"\xBFEliminar las redes?",manyDescription:e=>`Se eliminar\xE1n ${YS(e)}. Las redes con contenedores conectados y las redes integradas se omiten.`},prune:{title:"\xBFLimpiar las redes que no se usan?",description:"Se elimina toda red sin ning\xFAn contenedor conectado. Esto no libera espacio en disco; mantiene la lista ordenada.",confirm:"Limpiar"},pruned:e=>`${YS(e)} eliminadas.`,created:e=>`La red ${e} se ha creado.`}});var JS,eC=m(()=>{JS={title:"Ajustes",language:{heading:"Idioma",label:"Idioma de la aplicaci\xF3n",hint:"Los t\xE9rminos t\xE9cnicos como container, image y volume se quedan en ingl\xE9s."},startup:{heading:"Inicio",startAtLogin:"Iniciar al entrar en la sesi\xF3n, directo al \xE1rea de notificaci\xF3n",hintAvailable:"As\xED las notificaciones de abajo tambi\xE9n llegan cuando no abres la aplicaci\xF3n t\xFA. Desact\xEDvalo aqu\xED, o en el Administrador de tareas en Aplicaciones de inicio.",hintUnavailable:"Solo funciona en la aplicaci\xF3n instalada. Aqu\xED Windows iniciar\xEDa un electron.exe pelado."},notifications:{heading:"Notificaciones",crash:"Cuando un contenedor se detiene de forma inesperada",unhealthy:"Cuando un contenedor pasa a unhealthy",wiring:"Cuando un contenedor pierde su red o sus puertos",hint:"Un contenedor que detienes t\xFA, desde la aplicaci\xF3n, la terminal o con compose down, nunca provoca una notificaci\xF3n. Un mismo contenedor avisa como mucho una vez por minuto."},update:{heading:"Actualizaciones",version:e=>`versi\xF3n ${e}`,install:"Reiniciar y actualizar",check:"Comprobar ahora",auto:"Buscar versiones nuevas y descargarlas por adelantado",unavailable:"Solo la aplicaci\xF3n instalada en Windows se actualiza sola. Con npm, actualizas por npm.",idle:"Se descarga una versi\xF3n nueva y se instala en cuanto cierras la aplicaci\xF3n.",checking:"Buscando una versi\xF3n nueva\u2026",upToDate:e=>`Esta es la \xFAltima versi\xF3n. Comprobado a las ${e}.`,downloading:(e,t)=>`Descargando la versi\xF3n ${e}\u2026 ${String(t)} %`,ready:e=>`La versi\xF3n ${e} est\xE1 lista y se instalar\xE1 cuando cierres la aplicaci\xF3n. Reinicia para instalarla ahora.`,error:e=>`No se ha podido comprobar: ${e}`},servers:{heading:"Servidores",hint:"Hosts de Docker por SSH o TCP. Se guardan como contexts de docker, as\xED que la CLI de docker tambi\xE9n los conoce. Cambia entre ellos con el selector de la barra de estado.",empty:"Todav\xEDa no hay servidores.",inUse:"en uso",cli:"CLI",test:"Probar",testing:"Probando\u2026",remove:"Eliminar",removeBlocked:"En uso por la aplicaci\xF3n o por la CLI de docker. Cambia antes a otro context.",removeTitle:e=>`\xBFEliminar el servidor '${e}'?`,removeDescription:"Esto elimina el context de docker, tambi\xE9n para la CLI de docker. En el servidor mismo no cambia nada.",connected:(e,t,n)=>`Conectado: Docker ${e} en ${t}/${n}.`,unknownHostKey:(e,t)=>`${e} todav\xEDa no se conoce. Compara esta huella ${t} con la del servidor (ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub) antes de confiar en ella:`,trust:"Confiar y volver a probar",add:{heading:"A\xF1adir un servidor",name:"Nombre",namePlaceholder:"servidor-casa",kind:"Conexi\xF3n",ssh:"SSH",tcp:"TCP",username:"Usuario",usernamePlaceholder:"vac\xEDo: usuario de este ordenador",host:"Host",hostPlaceholder:"192.168.1.16",port:"Puerto",description:"Descripci\xF3n",descriptionPlaceholder:"opcional",submit:"A\xF1adir",tcpWarning:"El TCP a secas no tiene autenticaci\xF3n: quien alcance el puerto en la red controla Docker. Mejor usa SSH.",added:e=>`Servidor '${e}' a\xF1adido.`}},assistant:{configured:"Hay una clave guardada.",clearKey:"Eliminar la clave",keyLabel:"Clave de API",model:"Modelo",modelHint:"Opus razona mejor sobre un problema dif\xEDcil; Sonnet y Haiku responden m\xE1s r\xE1pido y cuestan menos. Haiku adem\xE1s lee menos de una vez.",hint:"Con tu propia clave de API de Claude, cada contenedor tiene una pesta\xF1a de Claude que ayuda a mirar un problema. La clave se guarda cifrada en este ordenador, y solo la puede leer tu usuario de Windows. Cada pregunta cuesta unos c\xE9ntimos de uso de API, en tu cuenta."}}});var tC,nC=m(()=>{tC={nav:{label:"Navegaci\xF3n principal",dashboard:"Panel",containers:"Contenedores",images:"Images",volumes:"Volumes",networks:"Redes",compose:"Compose",logs:"Logs",terminal:"Terminal",settings:"Ajustes"},routes:{container:"Contenedor"},header:{search:"Buscar (Ctrl+K)",lightTheme:"Tema claro",darkTheme:"Tema oscuro",quit:"Salir de Docker Client MX"},statusBar:{connecting:"Conectando con Docker\u2026",engineRunning:"Engine en marcha",engineUnreachable:"Engine inaccesible",containers:(e,t)=>`${String(e)} de ${String(t)} contenedores`,images:e=>e===1?"1 image":`${String(e)} images`,reconnect:"Reconectar"},contextPicker:{label:"Context de Docker",switching:"Cambiando\u2026",unsupported:"no compatible",inUseByCli:"en uso por la CLI"},actionMenu:{label:"Acciones"},confirmDialog:{confirm:"Eliminar"},dataTable:{empty:"No se ha encontrado nada.",selectAll:"Seleccionar todo",clearSelection:"Borrar la selecci\xF3n",select:e=>`Seleccionar ${e}`},jsonView:{expand:e=>`Desplegar: ${e}`,collapse:e=>`Plegar: ${e}`,empty:"No hay nada que mostrar."},toast:{region:"Notificaciones (F8)",close:"Cerrar la notificaci\xF3n"},usageChart:{ago:e=>`hace ${e}`,max:e=>`m\xE1x. ${e}`,now:"ahora",values:(e,t,n)=>`ahora ${e}, m\xE1ximo ${t}, m\xEDnimo ${n}`,noData:e=>`${e}: todav\xEDa no hay mediciones.`,summary:(e,t,n)=>`${e} en ${t}: ${n}.`},palette:{title:"Ir a",description:"Escribe para buscar p\xE1ginas, contenedores, images, volumes y redes. Las flechas eligen, Intro ejecuta.",placeholder:"Busca una p\xE1gina, un contenedor, una image, un volume o una red\u2026",results:"Resultados",empty:"No se ha encontrado nada.",groups:{page:"P\xE1gina",container:"Contenedor",image:"Image",volume:"Volume",compose:"Compose",network:"Red"},start:e=>`Iniciar ${e}`,stop:e=>`Detener ${e}`,restart:e=>`Reiniciar ${e}`,diagnose:e=>`Diagnosticar ${e}`,imageInUse:e=>`Image \xB7 usada por ${String(e)} contenedor${e===1?"":"es"}`,imageUnused:"Image \xB7 sin usar",network:e=>`Red \xB7 ${e}`,composeDetail:(e,t)=>`Compose \xB7 ${String(e)} de ${String(t)} en marcha`,composeUp:e=>`${e}: up`,composeFile:e=>`${e}: mostrar el archivo compose`,composeDown:e=>`${e}: down\u2026`,recreate:e=>`Recrear ${e}`,recreateDetail:"up --force-recreate solo para este servicio",volumeBrowse:e=>`Mirar dentro de ${e}`,networkMembers:e=>`Qui\xE9n est\xE1 conectado a ${e}`}}});var rC,iC=m(()=>{rC={title:"Terminal",intro:{start:"Un shell en la m\xE1quina donde se ejecuta el daemon de Docker, como tu distro de WSL.",afterDocker:" funciona aqu\xED como siempre. Eres ",afterRoot:": el shell va por un contenedor ",afterAlpine:" ef\xEDmero y privilegiado que desaparece en cuanto cierras el shell o esta p\xE1gina."},tabsLabel:"Terminal",tabs:{terminal:"Terminal",assistant:"Claude"},loading:"Cargando la terminal\u2026"}});var sC,ip,oC,aC=m(()=>{sC=e=>`${String(e)} volume${e===1?"":"s"}`,ip=e=>`${String(e)} contenedor${e===1?"":"es"}`,oC={title:"Volumes",diskSpace:"Espacio en disco",calculating:"calculando\u2026",unused:"Sin usar",menuLabel:"Acciones de volume",searchLabel:"Buscar por nombre",onlyUnused:"Solo los volumes sin usar",refreshing:"Actualizando\u2026",selected:e=>`${String(e)} seleccionados`,empty:"No se han encontrado volumes.",columns:{name:"Nombre",driver:"Driver",inUse:"En uso",created:"Creado",size:"Tama\xF1o",actions:"Acciones"},containerCount:ip,rowMenu:e=>`Acciones para ${e}`,rowBrowse:"Ver el contenido\u2026",browse:{title:e=>`Dentro de ${e}`,description:"Solo lectura, mediante un contenedor auxiliar ef\xEDmero. Desaparece al cerrar esto.",loading:"Cargando\u2026",empty:"Esta carpeta est\xE1 vac\xEDa.",up:"Carpeta superior",path:"Ruta en el volumen"},rowBackup:"Hacer copia como .tar",rowRestore:"Restaurar una copia\u2026",backupTitle:e=>`Hacer una copia de ${e} como .tar`,backupTitleInUse:e=>`Hacer una copia de ${e}. Est\xE1 en uso: una base de datos que escriba durante la copia puede dejar una copia que no siempre se restaura bien. Det\xE9n antes ese contenedor, o usa su propio dump.`,restoreTitle:e=>`Restaurar una copia en ${e}`,inUseReason:e=>`Lo usa ${ip(e)}; elim\xEDnalos o detenlos primero`,menu:{create:"Crear un volume\u2026",pruneAnonymous:"Limpiar los an\xF3nimos",pruneUnused:"Limpiar los que no se usan"},createDialog:{title:"Crear un volume",description:"Un volume vac\xEDo con un nombre, para asociarlo despu\xE9s a un contenedor.",nameLabel:"Nombre",namePlaceholder:"my-data",storageLabel:"\xBFD\xF3nde se guardan los datos?",storage:{docker:"Gestionado por Docker",dockerHint:"Recomendado. Docker decide d\xF3nde van los datos.",folder:"Una carpeta en la m\xE1quina de Docker",folderHint:"Una carpeta que ya exista, por ejemplo para compartir archivos con un contenedor.",nfs:"Un recurso NFS en la red",nfsHint:"Una carpeta compartida en un NAS o un servidor."},folderLabel:"Carpeta",folderHint:"La carpeta ya debe existir en la m\xE1quina donde se ejecuta Docker. En WSL, C:\\data es /mnt/c/data.",nfsServerLabel:"Servidor",nfsPathLabel:"Carpeta compartida",nfsHint:"Solo se comprueba cuando un contenedor empieza a usar este volume.",advanced:"Avanzado",driverLabel:"Driver",driverHint:"D\xE9jalo en local salvo que uses un plugin de volume.",submit:"Crear",creating:"Creando\u2026"},restore:{title:e=>`\xBFRestaurar una copia en ${e}?`,description:e=>"Los archivos con el mismo nombre se sobrescriben; lo que no est\xE9 en la copia se queda. "+(e>0?`Det\xE9n primero ${ip(e)} que usan este volume: una base de datos en marcha no se entera de que sus archivos han cambiado. `:"")+"El archivo lo eliges a continuaci\xF3n.",confirm:"Elegir un archivo"},remove:{title:"\xBFEliminar el volume?",description:e=>`Se perder\xE1n todos los datos de '${e}'. Esto no se puede deshacer.`,manyTitle:"\xBFEliminar los volumes?",manyDescription:e=>`Se perder\xE1n todos los datos de ${sC(e)}. Los volumes que todav\xEDa est\xE1n en uso se omiten.`},prune:{allTitle:"\xBFLimpiar todos los volumes sin usar?",allDescription:"Se elimina todo volume sin un contenedor asociado, incluidos los volumes con nombre que creaste t\xFA. Los datos que contienen se pierden.",anonymousTitle:"\xBFLimpiar los volumes an\xF3nimos?",anonymousDescription:"Se eliminan los volumes sin nombre que ya no usa ning\xFAn contenedor. Suelen ser restos de contenedores que ya no existen.",confirm:"Limpiar"},created:e=>`El volume ${e} se ha creado.`,pruned:(e,t)=>`${sC(e)} eliminados, ${t} liberados.`,backedUp:(e,t)=>`Copia de ${e} guardada como ${t}.`,restored:(e,t)=>`${e} se ha restaurado en ${t}.`}});var lC,cC=m(()=>{LS();PS();FS();HS();VS();qS();KS();XS();eC();nC();iC();aC();lC={common:RS,compose:OS,containers:$S,dashboard:BS,format:jS,images:WS,logs:GS,networks:QS,settings:JS,shell:tC,terminal:rC,volumes:oC}});var uC,dC=m(()=>{uC={cancel:"Annuler",close:"Fermer",remove:"Supprimer",retry:"R\xE9essayer",refresh:"Actualiser",search:"Rechercher",loading:"Chargement\u2026",save:"Enregistrer",copy:"Copier",copied:"Copi\xE9",start:"D\xE9marrer",stop:"Arr\xEAter",restart:"Red\xE9marrer",yes:"Oui",no:"Non",none:"Aucun",unknown:"Inconnu",nothingToPrune:"Il n\u2019y avait rien \xE0 nettoyer."}});var hC,fC=m(()=>{hC={title:"Compose",intro:"Les projets issus des labels de vos conteneurs. Un projet arr\xEAt\xE9 figure aussi dans la liste, tant que ses conteneurs existent encore.",updating:"Mise \xE0 jour\u2026",state:{running:"en cours",partial:"partiel",stopped:"arr\xEAt\xE9"},runningOf:(e,t)=>`${String(e)} sur ${String(t)}`,expand:e=>`D\xE9plier : ${e}`,collapse:e=>`Replier : ${e}`,menuAria:e=>`Actions pour ${e}`,upAria:e=>`D\xE9marrer ${e} (up)`,startAria:e=>`D\xE9marrer ${e}`,stopAria:e=>`Arr\xEAter ${e}`,restartAria:e=>`Red\xE9marrer ${e}`,downAria:e=>`Arr\xEAter ${e} (down)`,up:"Up",down:"Down",fileAria:e=>`Afficher le fichier compose de ${e}`,file:{button:"Fichier",title:e=>`Le fichier compose de ${e}`,loading:"Chargement\u2026",raw:"Tel qu\u2019\xE9crit",resolved:"Tel que compose le lit",rawHint:"Le fichier sur le disque, inchang\xE9.",resolvedHint:"Overrides fusionn\xE9s et ${VAR} remplac\xE9es : c\u2019est la base du projet en cours.",empty:"Ce fichier est vide.",copyFailed:e=>`\xC9chec de la copie : ${e}`},noCli:"La CLI docker n\u2019est pas disponible",noWorkingDir:"L\u2019emplacement de ce projet est inconnu",busy:"En cours\u2026 un up peut prendre du temps si des images doivent \xEAtre t\xE9l\xE9charg\xE9es.",empty:"Aucun projet Compose trouv\xE9. Ils apparaissent ici d\xE8s qu\u2019il existe des conteneurs avec des labels Compose.",downDialog:{title:"Arr\xEAter le projet ?",description:e=>`Les conteneurs et les r\xE9seaux de '${e}' seront arr\xEAt\xE9s et supprim\xE9s. Les volumes sont conserv\xE9s, vos donn\xE9es sont donc pr\xE9serv\xE9es.`,confirm:"Arr\xEAter"},recreate:"Recr\xE9er",recreateAria:e=>`Recr\xE9er ${e}`,recreateTitle:"docker compose up -d --no-deps --force-recreate",recreateDone:e=>`${e} a \xE9t\xE9 recr\xE9\xE9.`,upDone:e=>`'${e}' est d\xE9marr\xE9.`,downDone:e=>`'${e}' a \xE9t\xE9 arr\xEAt\xE9.`}});var pC,gC=m(()=>{pC={actions:{pause:"Mettre en pause",resume:"Reprendre",copyDiagnosis:"Copier le diagnostic",copyRunCommand:"Copier la commande run",restartPolicy:"Politique de red\xE9marrage\u2026",recreate:"Reconstruire"},page:{title:"Conteneurs",cpuUsage:"Utilisation CPU",memoryUsage:"Utilisation m\xE9moire",search:"Rechercher par nom, image ou ID",onlyRunning:"Seulement les conteneurs en cours",updating:"Mise \xE0 jour\u2026",selected:e=>`${String(e)} s\xE9lectionn\xE9s`,empty:"Aucun conteneur trouv\xE9.",columns:{name:"Nom",id:"ID du conteneur",image:"Image",ports:"Ports",cpu:"CPU",memory:"M\xE9moire",actions:"Actions"},group:{loose:"Conteneurs isol\xE9s",expand:e=>`D\xE9plier : ${e}`,collapse:e=>`Replier : ${e}`,count:e=>e===1?"1 conteneur":`${String(e)} conteneurs`,running:e=>`${String(e)} en cours`,startAll:"Tout d\xE9marrer",stopAll:"Tout arr\xEAter",restartAll:"Tout red\xE9marrer",removeAll:"Tout supprimer",menu:e=>`Actions pour tout dans ${e}`,manual:"Groupe personnel",addToGroup:"Ajouter \xE0 un groupe\u2026",removeFromGroup:"Retirer du groupe",rename:"Renommer le groupe\u2026",dissolve:"Dissoudre le groupe"},groupDialog:{assignTitle:"Ajouter \xE0 un groupe",assignOne:e=>`'${e}' rejoint le groupe que vous nommez ici.`,assignMany:e=>`${String(e)} conteneurs rejoignent le groupe que vous nommez ici.`,renameTitle:"Renommer le groupe",renameDescription:e=>`Tout ce qui est dans '${e}' suit le nouveau nom.`,nameLabel:"Nom du groupe",namePlaceholder:"par exemple mon-stack",existing:"Groupes existants",hint:"Un groupe personnel vit dans cette application et suit le nom du conteneur ; Docker lui-m\xEAme n\u2019en sait rien.",empty:"Saisissez un nom.",reserved:e=>`'${e}' est d\xE9j\xE0 un projet Compose.`,submit:"Enregistrer"},row:{diagnosisOf:e=>`Diagnostic de ${e}`,missingNetwork:e=>`Tourne, mais n\u2019est pas reli\xE9 \xE0 ${e}`,menu:e=>`Actions pour ${e}`},confirm:{title:"Supprimer le conteneur ?",one:e=>`'${e}' sera arr\xEAt\xE9 et supprim\xE9. C\u2019est irr\xE9versible ; les volumes sont conserv\xE9s.`,many:e=>`${e===1?"1 conteneur sera arr\xEAt\xE9 et supprim\xE9":`${String(e)} conteneurs seront arr\xEAt\xE9s et supprim\xE9s`}. C\u2019est irr\xE9versible ; les volumes sont conserv\xE9s.`,group:(e,t)=>`Les ${String(e)} conteneurs de '${t}' seront arr\xEAt\xE9s et supprim\xE9s. C\u2019est irr\xE9versible ; les volumes sont conserv\xE9s.`}},detail:{back:"\u2039 Conteneurs",menu:"Actions pour ce conteneur",gone:" n\u2019existe plus. Un conteneur lanc\xE9 avec --rm dispara\xEEt d\xE8s qu\u2019il s\u2019arr\xEAte, et compose en cr\xE9e un nouveau au up.",goneUnnamed:"Ce conteneur n\u2019existe plus.",successor:(e,t)=>`Aller au ${e} actuel (${t})`,tabsLabel:"D\xE9tails du conteneur",tabs:{logs:"Logs",health:"Health",events:"\xC9v\xE9nements",inspect:"Inspect",stats:"Stats",terminal:"Terminal",files:"Fichiers",networks:"R\xE9seaux",assistant:"Claude"},wiring:{network:e=>`Tourne, mais n\u2019est pas reli\xE9 \xE0 ${e}. Rien ne le joint par ce r\xE9seau, et il ne joint rien.`,networkWhy:"Cela arrive quand le r\xE9seau a \xE9t\xE9 supprim\xE9 puis recr\xE9\xE9 alors que le conteneur existait.",connect:e=>`Relier \xE0 ${e}`,ports:e=>`Tourne, mais ne publie pas ${e}.`,portsWhy:"Cela arrive quand il a \xE9t\xE9 red\xE9marr\xE9 apr\xE8s un d\xE9marrage qui a \xE9chou\xE9 sur un port pris.",portsFromNetwork:"Cela d\xE9coule du r\xE9seau manquant ci-dessus : les ports passent par un r\xE9seau.",restart:"Red\xE9marrer"},events:{loading:"Chargement\u2026",empty:"Rien d\u2019enregistr\xE9 pour l\u2019instant. L\u2019app enregistre depuis son d\xE9marrage, plus ce dont Docker se souvenait alors.",scope:"Enregistr\xE9 dans l\u2019app depuis son d\xE9marrage, jusqu\u2019\xE0 100 par nom de conteneur ; apr\xE8s un red\xE9marrage de l\u2019app, Docker compl\xE8te avec ce dont il se souvient.",crashLoop:e=>`Plant\xE9 ${String(e)} fois dans la derni\xE8re heure.`,create:"Cr\xE9\xE9",start:"D\xE9marr\xE9",exited:e=>e===0?"Arr\xEAt\xE9 normalement":`Arr\xEAt\xE9 avec le code ${String(e)}`,exitedUnknown:"Arr\xEAt\xE9",exitHint137:"SIGKILL : tu\xE9 de l\u2019ext\xE9rieur, souvent m\xE9moire pleine ou un arr\xEAt trop long",exitHint143:"SIGTERM : pri\xE9 de s\u2019arr\xEAter",kill:e=>`${e} envoy\xE9`,oom:"Tu\xE9 par le noyau : m\xE9moire pleine",stop:"Arr\xEAt\xE9",restart:"Red\xE9marr\xE9",pause:"En pause",unpause:"Repris",destroy:"Supprim\xE9",rename:e=>`Renomm\xE9, \xE9tait ${e}`,renamed:"Renomm\xE9",health:{starting:"Healthcheck d\xE9marre",healthy:"Devenu healthy",unhealthy:"Devenu unhealthy"}},health:{loading:"Chargement\u2026",refresh:"Actualiser",status:{starting:"starting",healthy:"healthy",unhealthy:"unhealthy",unknown:"pas encore ex\xE9cut\xE9"},failingStreak:e=>e===1?"a \xE9chou\xE9 une fois":`a \xE9chou\xE9 ${String(e)} fois de suite`,command:"Commande",fromImage:"Vient de l\u2019image ; le daemon ne donne pas la commande.",rhythm:"Rythme",every:e=>`toutes les ${e}`,timeout:e=>`d\xE9lai ${e}`,startPeriod:e=>`start period ${e}`,retries:e=>e===1?"1 tentative avant unhealthy":`${String(e)} tentatives avant unhealthy`,defaults:"les valeurs par d\xE9faut de Docker",probes:"Derniers r\xE9sultats",noProbes:"La v\xE9rification n\u2019a pas encore \xE9t\xE9 ex\xE9cut\xE9e.",exitCode:e=>`code de sortie ${String(e)}`,unknownExitCode:"pas de code de sortie",noOutput:"pas de sortie"},networks:{title:"Sur ces r\xE9seaux",loading:"Chargement\u2026",empty:"Ce conteneur n\u2019est sur aucun r\xE9seau.",noAddress:"pas d\u2019adresse",alsoKnownAs:e=>`aussi joignable comme ${e}`,disconnect:"D\xE9connecter",disconnectFrom:e=>`D\xE9connecter de ${e}`,addTitle:"Connecter \xE0 un r\xE9seau",addHint:"Prend effet tout de suite, m\xEAme pendant que le conteneur tourne.",allConnected:"Ce conteneur est d\xE9j\xE0 sur tous les r\xE9seaux.",networkLabel:"R\xE9seau",choose:"Choisissez un r\xE9seau\u2026",alias:"Nom suppl\xE9mentaire dans le r\xE9seau",aliasHint:"Un nom suppl\xE9mentaire que les autres conteneurs de ce r\xE9seau peuvent utiliser, en plus du nom du conteneur.",aliasPlaceholder:"base-de-donnees",connect:"Connecter",working:"En cours\u2026",invalidAlias:e=>`'${e}' n\u2019est pas un nom valide. Utilisez des lettres, des chiffres, des points, des tirets et des underscores.`},fetching:"Chargement\u2026",terminalLoading:"Chargement du terminal\u2026",shellOnlyRunning:"Un shell ne peut \xEAtre ouvert que dans un conteneur en cours d\u2019ex\xE9cution.",cpu:"CPU",lastMinute:e=>`derni\xE8re minute \xB7 pic ${e} %`,chartPending:"le graphique appara\xEEt apr\xE8s quelques mesures",memory:"M\xE9moire",ofLimit:e=>`${e} % de la limite`,noLimit:"aucune limite d\xE9finie",statsOnlyRunning:"Les stats ne sont collect\xE9es que pour un conteneur en cours d\u2019ex\xE9cution.",confirmTitle:"Supprimer le conteneur ?",confirmDescription:"Ce conteneur sera arr\xEAt\xE9 et supprim\xE9. C\u2019est irr\xE9versible ; les volumes sont conserv\xE9s."},diagnosis:{title:"Copier le diagnostic",description:"Statut, health, mounts, events et les derni\xE8res lignes de log, \xE0 coller dans un chat ou une issue. C\u2019est exactement ce qui est copi\xE9.",collecting:"Collecte\u2026",noRedactions:"Rien n\u2019a \xE9t\xE9 omis ; aucune valeur ne ressemblait \xE0 un secret.",redactions:e=>`${e===1?"1 valeur omise":`${String(e)} valeurs omises`} : les variables d\u2019environnement et tout ce qui ressemblait \xE0 un mot de passe, un token ou une cl\xE9.`,copyFailed:e=>`\xC9chec de la copie : ${e}`},restartPolicy:{title:"Politique de red\xE9marrage",description:"Ce que fait le daemon quand ce conteneur s\u2019arr\xEAte. Effet imm\xE9diat ; le conteneur n\u2019est pas recr\xE9\xE9.",loading:"Chargement\u2026",label:"Politique",names:{no:"Jamais",always:"Toujours","unless-stopped":"Sauf si vous l\u2019avez arr\xEAt\xE9 vous-m\xEAme","on-failure":"Seulement apr\xE8s un code d\u2019erreur"},maximum:"Nombre maximal de tentatives",maximumHint:"0 signifie continuer d\u2019essayer.",save:"Enregistrer",saving:"Enregistrement\u2026",saved:e=>`La politique de red\xE9marrage est maintenant ${e}.`},runCommand:{title:"Copier la commande run",description:"La commande qui recr\xE9e ce conteneur, d\xE9duite de inspect. Ce qui vient de l\u2019image est omis.",building:"D\xE9duction\u2026",composeNote:e=>`Ce conteneur appartient au projet compose ${e}, o\xF9 docker compose up est la r\xE9ponse. Voici comment il tourne actuellement.`,envWarning:e=>`${e===1?"1 variable d\u2019environnement y figure":`${String(e)} variables d\u2019environnement y figurent`}, mots de passe compris : la commande doit fonctionner.`,noEnv:"Pas de variables d\u2019environnement propres.",copyFailed:e=>`\xC9chec de la copie : ${e}`},logs:{filter:"Filtrer par texte",follow:"Suivre",timestamps:"Horodatages",clear:"Effacer",connecting:"Connexion\u2026",count:(e,t)=>`${String(e)} lignes sur ${String(t)}`,truncated:"lignes les plus anciennes supprim\xE9es",empty:"Pas encore de lignes de log.",noMatches:"Aucune ligne ne correspond."},files:{up:"Remonter d\u2019un dossier",path:"Chemin dans le conteneur",refresh:"Actualiser",changed:"Modifi\xE9",changesTitle:"Modifi\xE9 par rapport \xE0 l\u2019image",changesCount:e=>e===1?"1 chemin":`${String(e)} chemins`,changesEmpty:"Ce conteneur n\u2019a rien chang\xE9 \xE0 son image.",changesHint:"Les dossiers qui n\u2019ont chang\xE9 que parce qu\u2019ils contiennent autre chose sont omis. Les volumes ne comptent pas.",changeKind:{added:"ajout\xE9",modified:"modifi\xE9",deleted:"supprim\xE9"},openFolderOf:e=>`Ouvrir le dossier de ${e}`,upload:"Envoyer\u2026",empty:"Ce dossier est vide.",downloadFolder:e=>`T\xE9l\xE9charger le dossier en tar : ${e}`,downloadFile:e=>`T\xE9l\xE9charger : ${e}`,hint:e=>`D\xE9posez des fichiers ici pour les placer dans ${e}. Le t\xE9l\xE9chargement d\u2019un dossier donne un .tar, ce qui pr\xE9serve les permissions et les liens symboliques.`,savedAs:e=>`Enregistr\xE9 sous ${e}.`,uploaded:(e,t)=>`${e===1?"1 fichier plac\xE9":`${String(e)} fichiers plac\xE9s`} dans ${t}.`},terminal:{exited:"Le shell s\u2019est termin\xE9.",reopen:"Rouvrir",connecting:"Connexion\u2026",connected:"connect\xE9"},assistant:{introHost:"Claude re\xE7oit une vue d\u2019ensemble de l\u2019engine et des conteneurs, suit ce qui se passe dans le terminal et demande logs et inspect de lui-m\xEAme. Chaque demande est list\xE9e ci-dessous, et les secrets sont exclus. Claude ne tape jamais rien lui-m\xEAme : une commande sugg\xE9r\xE9e devient un bouton qui la place sur le prompt, et vous appuyez sur Entr\xE9e.",introContainer:"Claude re\xE7oit le diagnostic de ce conteneur, sans les secrets, puis demande de lui-m\xEAme les logs, l\u2019inspect, les events ou les autres conteneurs. Chaque demande est list\xE9e ci-dessous. Claude ne modifie rien lui-m\xEAme : une suggestion devient un bouton, et c\u2019est vous qui d\xE9cidez.",defaultQuestion:"Que se passe-t-il avec ce conteneur, et que puis-je y faire ?",defaultHostQuestion:"Que vois-tu dans le terminal, et qu\u2019est-ce que cela veut dire ?",onPrompt:"Sur le prompt",done:"Termin\xE9",thinking:"Claude r\xE9fl\xE9chit\u2026",questionLabel:"Question pour Claude",followUp:"Question de suivi",ask:"Demander \xE0 Claude",putInTerminal:"Placer dans le terminal",composeUp:e=>`compose up pour ${e}`,start:e=>`D\xE9marrer ${e}`,stop:e=>`Arr\xEAter ${e}`,restart:e=>`Red\xE9marrer ${e}`,panelClosed:"Le panneau a \xE9t\xE9 ferm\xE9.",usage:(e,t,n)=>`${e} tokens en entr\xE9e, ${t} depuis le cache, ${n} en sortie`}}});var mC,vC=m(()=>{mC={title:"Tableau de bord",engine:{connecting:"Connexion \xE0 Docker\u2026",running:"Engine en cours",unreachable:"Engine injoignable",startDistro:e=>`D\xE9marrer ${e}`,startingDistro:e=>`D\xE9marrage de ${e}\u2026`,startDaemon:e=>`D\xE9marrer Docker dans ${e}`,startingDaemon:e=>`D\xE9marrage de Docker dans ${e}\u2026`,daemonHint:e=>`${e} tourne : c\u2019est donc le daemon \xE0 l\u2019int\xE9rieur qui est arr\xEAt\xE9. L\u2019application peut l\u2019y d\xE9marrer.`,idleHint:{intro:e=>`${e} a d\xE9marr\xE9 puis s\u2019est arr\xEAt\xE9. WSL \xE9teint une distro sans session ouverte au bout de 15 secondes ; d\xE9finissez`,under:"sous",in:"dans",outro:"pour la garder active."}},contexts:{switchFailed:e=>`Impossible de basculer vers ${e}`},usage:{cpu:"CPU de tous les conteneurs",memory:"M\xE9moire",memoryChart:"M\xE9moire de tous les conteneurs",network:"R\xE9seau de tous les conteneurs",networkChart:"Trafic r\xE9seau de tous les conteneurs",received:"Re\xE7u",sent:"Envoy\xE9",receivedAria:"re\xE7u",sentAria:"envoy\xE9",hostNote:"Les conteneurs en network_mode: host ne sont pas compt\xE9s ; ils n\u2019ont pas de compteurs propres."},counts:{containers:"Conteneurs",runningOfTotal:"en cours sur le total",images:"Images",volumesNetworks:"Volumes \xB7 r\xE9seaux"},disk:{title:"Espace disque",total:e=>`${e} au total`,calculating:"calcul en cours\u2026",prune:"Nettoyer",pruning:"Nettoyage\u2026",unused:e=>`${String(e)} inutilis\xE9s`,labels:{images:"Images",containers:"Conteneurs",volumes:"Volumes",buildCache:"Cache de build"},footnoteBefore:"Les m\xEAmes chiffres que",footnoteAfter:". L\u2019espace r\xE9ellement lib\xE9r\xE9 par un nettoyage n\u2019est pas indiqu\xE9 : cela d\xE9pend des layers partag\xE9s, et une estimation qui ressemble \xE0 un fait vaut moins que pas de chiffre du tout."},attention:{title:"\xC0 surveiller",none:"Tout est en ordre : pas de boucle de plantage, rien d\u2019unhealthy, tout est reli\xE9.",loading:"V\xE9rification\u2026",crashLoop:e=>`plant\xE9 ${String(e)} fois dans la derni\xE8re heure`,restarting:"red\xE9marre sans cesse",unhealthy:"le healthcheck \xE9choue",network:e=>`tourne, mais n\u2019est pas reli\xE9 \xE0 ${e}`,ports:e=>`tourne, mais ne publie pas ${e}`},stopped:{title:"Arr\xEAt\xE9s r\xE9cemment",none:"Rien ne s\u2019est arr\xEAt\xE9.",clean:"termin\xE9 proprement",failed:e=>`termin\xE9 avec le code ${String(e)}`,created:e=>`cr\xE9\xE9 ${e}`},pruneDialog:{title:"Nettoyer",description:"Tout ce que vous cochez est supprim\xE9 et ne peut pas \xEAtre r\xE9cup\xE9r\xE9.",confirm:"Nettoyer",containers:"Conteneurs arr\xEAt\xE9s",containersHint:"Un conteneur en pause est conserv\xE9.",networks:"R\xE9seaux inutilis\xE9s",networksHint:"bridge, host et none sont toujours conserv\xE9s.",images:"Images sans tag",imagesHint:"En g\xE9n\xE9ral des restes d\u2019un build plus r\xE9cent.",allImages:"Aussi les images tagu\xE9es sans conteneur",allImagesHint:"Vous devrez les ret\xE9l\xE9charger ensuite.",buildCache:"Cache de build",buildCacheHint:"Tout ce qui n\u2019est pas utilis\xE9. Le prochain build sera plus long.",volumes:"Volumes anonymes",volumesHint:"Les volumes nomm\xE9s sont conserv\xE9s. Ils contiennent des donn\xE9es."},pruneResult:{removed:{containers:e=>e===1?"1 conteneur":`${String(e)} conteneurs`,networks:e=>e===1?"1 r\xE9seau":`${String(e)} r\xE9seaux`,volumes:e=>e===1?"1 volume":`${String(e)} volumes`,images:e=>e===1?"1 image":`${String(e)} images`,buildCache:e=>e===1?"1 entr\xE9e de cache de build":`${String(e)} entr\xE9es de cache de build`},kinds:{containers:"conteneurs",networks:"r\xE9seaux",volumes:"volumes",images:"images",buildCache:"cache de build"},and:"et",notice:(e,t)=>`${e} supprim\xE9s, ${t} lib\xE9r\xE9s.`,problem:e=>`Impossible de nettoyer ${e}`}}});var _C,yC=m(()=>{_C={justNow:"\xE0 l\u2019instant",hoursAgo:e=>e===1?"il y a 1 heure":`il y a ${String(e)} heures`,yesterday:"hier",daysAgo:e=>`il y a ${String(e)} jours`,lastMonth:"le mois dernier",monthsAgo:e=>`il y a ${String(e)} mois`,lastYear:"l\u2019an dernier",yearsAgo:e=>`il y a ${String(e)} ans`}});var bC,wC,SC,CC=m(()=>{bC=e=>`${String(e)} image${e===1?"":"s"}`,wC=e=>`${String(e)} conteneur${e===1?"":"s"}`,SC={title:"Images",diskSpace:"Espace disque",unused:"Inutilis\xE9es",menuLabel:"Actions sur les images",searchLabel:"Rechercher par repository, tag ou ID",onlyUnused:"Seulement les images inutilis\xE9es",refreshing:"Actualisation\u2026",updatesHint:"La mise \xE0 jour t\xE9l\xE9charge la nouvelle image. Un conteneur en cours garde l\u2019ancienne jusqu\u2019\xE0 ce qu\u2019il soit recr\xE9\xE9 ; pour un conteneur d\u2019un projet Compose, l\u2019app propose de le faire apr\xE8s le pull.",selected:e=>`${String(e)} s\xE9lectionn\xE9es`,empty:"Aucune image trouv\xE9e.",columns:{repository:"Repository",tag:"Tag",imageId:"ID de l\u2019image",inUse:"Utilis\xE9e",created:"Cr\xE9\xE9e",size:"Taille",actions:"Actions"},badge:{newer:"version plus r\xE9cente",notInRegistry:"absente du registry",uncheckable:"v\xE9rification impossible"},containerCount:wC,updateTitle:e=>`Mettre \xE0 jour : ret\xE9l\xE9charger ${e}`,rowMenu:e=>`Actions pour ${e}`,rowUpdate:"T\xE9l\xE9charger la version plus r\xE9cente",rowRun:"Lancer un conteneur\u2026",rowLayers:"Couches\u2026",runLabel:e=>`D\xE9marrer un conteneur depuis ${e}`,runLabelDangling:"D\xE9marrer un conteneur depuis cette image sans tag",layers:{title:e=>`Couches de ${e}`,description:"Les plus r\xE9centes d\u2019abord, comme docker history les montre : la derni\xE8re ligne du Dockerfile en haut.",loading:"Chargement\u2026",summary:(e,t)=>`${e===1?"1 couche":`${String(e)} couches`} \xB7 image ${t}`,packed:e=>`Les couches totalisent ${e} : avec ce stockage, Docker indique chaque couche telle qu\u2019elle est arriv\xE9e, compress\xE9e. Sur le disque, l\u2019image est plus grande.`,noSize:"ne change rien sur le disque",expand:"Afficher toute la commande",empty:"Cette image ne signale aucune couche."},menu:{pull:"T\xE9l\xE9charger une image",check:"Rechercher des mises \xE0 jour",checking:"V\xE9rification\u2026",pruneDangling:"Nettoyer les images sans tag",pruneUnused:"Nettoyer les inutilis\xE9es"},remove:{title:"Supprimer l\u2019image ?",description:e=>`'${e}' sera supprim\xE9e. Si cette image a d\u2019autres tags, seul ce tag dispara\xEEt.`,forceTitle:"Forcer la suppression de l\u2019image ?",forceDescription:(e,t)=>`'${e}' est utilis\xE9e par ${wC(t)}. Elle ne peut \xEAtre supprim\xE9e que de force, et ces conteneurs cesseront de fonctionner.`,forceConfirm:"Supprimer quand m\xEAme",manyTitle:"Supprimer les images ?",manyDescription:e=>`${bC(e)} seront supprim\xE9es. Les images encore utilis\xE9es sont ignor\xE9es.`},prune:{allTitle:"Nettoyer toutes les images inutilis\xE9es ?",allDescription:"Tout ce qui n\u2019a pas de conteneur attach\xE9 est supprim\xE9, y compris les images que vous avez t\xE9l\xE9charg\xE9es vous-m\xEAme. Vous devrez les ret\xE9l\xE9charger.",danglingTitle:"Nettoyer les images sans tag ?",danglingDescription:"Les images sans tag sont supprim\xE9es. Ce sont en g\xE9n\xE9ral des restes d\u2019un build plus r\xE9cent.",confirm:"Nettoyer"},pruned:(e,t)=>`${bC(e)} supprim\xE9es, ${t} lib\xE9r\xE9s.`,check:{allCurrent:"Tout est \xE0 jour",updates:e=>`${e===1?"1 image a":`${String(e)} images ont`} une version plus r\xE9cente`,notInRegistry:e=>`${String(e)} absentes d\u2019un registry`,uncheckable:e=>`${String(e)} n\u2019ont pas pu \xEAtre v\xE9rifi\xE9es`,summary:(e,t)=>`${e} (${String(t)} v\xE9rifi\xE9es).`},pullDialog:{title:"T\xE9l\xE9charger une image",nameAndTag:"Nom et tag, par exemple",withoutTag:"Sans tag,",isUsed:"est utilis\xE9.",inputLabel:"Image",submit:"T\xE9l\xE9charger",staleHeading:"Ces conteneurs tournent encore avec la version pr\xE9c\xE9dente :",inProject:e=>`dans ${e}`,notCompose:"pas d\xE9marr\xE9 avec compose ; recr\xE9ez-le vous-m\xEAme",renewed:e=>`Recr\xE9\xE9s : ${e}.`,renew:"Recr\xE9er les conteneurs",renewing:"Recr\xE9ation\u2026",renewHint:"Avec compose, seulement ces services."},runDialog:{title:"D\xE9marrer un conteneur",fromImage:"Depuis l\u2019image",name:"Nom",namePlaceholder:"laisser vide = Docker en choisit un",autoRestart:"Red\xE9marrer automatiquement",autoRestartHint:"Apr\xE8s un crash ou au red\xE9marrage de Docker. Pas quand vous l\u2019arr\xEAtez vous-m\xEAme.",ports:"Ports",portsHint:"Rendre un port du conteneur joignable depuis cet ordinateur, par exemple localhost:8080.",onThisComputer:"Sur cet ordinateur",inContainer:"Dans le conteneur",protocolHeader:"Protocole",hostPortPlaceholder:"vide = n\u2019importe quel port libre",addPort:"Ajouter un port",hostPort:e=>`Port h\xF4te ${String(e)}`,containerPort:e=>`Port du conteneur ${String(e)}`,protocol:e=>`Protocole ${String(e)}`,removePort:e=>`Supprimer le port ${String(e)}`,network:"R\xE9seau",networkHint:"Les conteneurs d\u2019un r\xE9seau que vous avez cr\xE9\xE9 vous-m\xEAme se joignent par leur nom. Sur le r\xE9seau par d\xE9faut, non.",networkDefault:"Par d\xE9faut (bridge)",networkAlias:"Nom suppl\xE9mentaire dans le r\xE9seau",networkAliasHint:"Un nom suppl\xE9mentaire que les autres conteneurs de ce r\xE9seau peuvent utiliser, en plus du nom du conteneur.",networkAliasPlaceholder:"base-de-donnees",invalidAlias:e=>`'${e}' n\u2019est pas un nom valide. Utilisez des lettres, des chiffres, des points, des tirets et des underscores.`,volumes:"Volumes",volumesHint:"Les donn\xE9es qui doivent survivre au conteneur : un volume, ou un dossier sur la machine Docker.",source:"Volume ou dossier",addVolume:"Ajouter un volume",sourcePlaceholder:"my-data ou /srv/data",targetPlaceholder:"/chemin/dans/conteneur",volumeSource:e=>`Source du volume ${String(e)}`,volumeTarget:e=>`Cible du volume ${String(e)}`,readOnly:"lecture seule",readOnlyHint:"Le conteneur peut lire les fichiers mais pas les modifier.",removeVolume:e=>`Supprimer le volume ${String(e)}`,env:"Variables d\u2019environnement",envHint:"Les r\xE9glages du programme dans le conteneur. Vous pouvez aussi coller NOM=valeur.",envNameHeader:"Nom",envValueHeader:"Valeur",addEnv:"Ajouter une variable",envName:e=>`Nom de la variable ${String(e)}`,envValue:e=>`Valeur de la variable ${String(e)}`,removeEnv:e=>`Supprimer la variable ${String(e)}`,submit:"D\xE9marrer",starting:"D\xE9marrage\u2026",invalidContainerPort:e=>`'${e}' n\u2019est pas un port de conteneur valide. Utilisez un nombre de 1 \xE0 65535.`,invalidHostPort:e=>`'${e}' n\u2019est pas un port h\xF4te valide. Laissez-le vide pour que Docker en choisisse un.`,volumeIncomplete:"Un volume a besoin d\u2019une source et d\u2019une cible.",notAbsolute:e=>`'${e}' n\u2019est pas un chemin absolu. La cible dans le conteneur commence par un /.`,envNameMissing:"Une variable a besoin d\u2019un nom.",envNameWithEquals:e=>`'${e}' ne peut pas contenir de = ; c\u2019est ce qui s\xE9pare le nom de la valeur.`}}});var EC,DC=m(()=>{EC={title:"Logs",intro:"Tout ce qu\u2019\xE9crivent vos conteneurs en cours d\u2019ex\xE9cution, entrelac\xE9 par horodatage. Un conteneur qui d\xE9marre ou s\u2019arr\xEAte rejoint ou quitte la liste tout seul.",projectLabel:"Projet compose",allProjects:"Tous les conteneurs",searchLabel:"Rechercher dans les logs",searchPlaceholder:"Un terme, ou une expression telle que /error|warn/",caseSensitive:"Respecter la casse",containers:"Conteneurs",nothingRunning:"Rien ne tourne.",showAll:"Tout r\xE9activer",timestamps:"Horodatages",clear:"Effacer",columns:{time:"Heure",object:"Objet",line:"Ligne"},allFiltered:e=>e===1?"La seule ligne est masqu\xE9e par le filtre.":`Les ${String(e)} lignes sont masqu\xE9es par le filtre.`,empty:"Aucune ligne pour l\u2019instant. D\xE8s qu\u2019un conteneur \xE9crit quelque chose, cela appara\xEEt ici.",lineCount:e=>e===1?"1 ligne":`${String(e)} lignes`,filteredOut:e=>`${String(e)} filtr\xE9es`,truncated:"Les lignes les plus anciennes sont sorties du tampon.",invalidExpression:e=>`Expression non valide : ${e}`,levels:{label:"Niveau",errors:"Erreurs",warnings:"Avertissements",unknownHidden:"Les lignes sans niveau reconnaissable, comme une trace de pile sous une erreur, sont masqu\xE9es par ce filtre."}}});var kC,IC,xC,TC=m(()=>{kC=e=>`${String(e)} r\xE9seau${e===1?"":"x"}`,IC=e=>`${String(e)} conteneur${e===1?"":"s"}`,xC={title:"R\xE9seaux",unused:"Inutilis\xE9s",menuLabel:"Actions sur les r\xE9seaux",searchLabel:"Rechercher par nom ou driver",hideBuiltIn:"Masquer les r\xE9seaux int\xE9gr\xE9s",refreshing:"Actualisation\u2026",selected:e=>`${String(e)} s\xE9lectionn\xE9s`,empty:"Aucun r\xE9seau trouv\xE9.",builtIn:"int\xE9gr\xE9",internal:"interne",columns:{name:"Nom",driver:"Driver",scope:"Port\xE9e",subnet:"Sous-r\xE9seau",connected:"Connect\xE9s",actions:"Actions"},containerCount:IC,rowMenu:e=>`Actions pour ${e}`,rowMembers:"Qui est connect\xE9\u2026",members:{title:e=>`Connect\xE9s \xE0 ${e}`,description:"Les m\xEAmes conteneurs que ceux compt\xE9s sur cette page, y compris ceux arr\xEAt\xE9s.",loading:"Chargement\u2026",empty:"Aucun conteneur n\u2019est connect\xE9 \xE0 ce r\xE9seau.",noAddress:"pas d\u2019adresse",stopped:"arr\xEAt\xE9"},builtInReason:"R\xE9seau Docker int\xE9gr\xE9 ; ne peut pas \xEAtre supprim\xE9",connectedReason:e=>`${IC(e)} connect\xE9${e===1?"":"s"} ; d\xE9connectez-les d\u2019abord`,menu:{create:"Cr\xE9er un r\xE9seau\u2026",pruneUnused:"Nettoyer les inutilis\xE9s"},createDialog:{title:"Cr\xE9er un r\xE9seau",description:"Un r\xE9seau \xE0 vous, sur lequel les conteneurs se trouvent par leur nom.",nameLabel:"Nom",namePlaceholder:"mon-reseau",internal:"Interne uniquement",internalHint:"Les conteneurs se joignent entre eux, mais n\u2019ont aucune route vers l\u2019ext\xE9rieur.",advanced:"Avanc\xE9",driverLabel:"Driver",driverHint:"Laissez bridge, sauf si vous faites tourner un swarm ou utilisez un plugin r\xE9seau.",subnetLabel:"Sous-r\xE9seau",subnetHint:"Laissez vide et Docker choisit lui-m\xEAme une plage libre.",gatewayLabel:"Passerelle",gatewayHint:"Doit \xEAtre dans le sous-r\xE9seau. Vide signifie la premi\xE8re adresse de la plage.",submit:"Cr\xE9er",creating:"Cr\xE9ation\u2026"},remove:{title:"Supprimer le r\xE9seau ?",description:e=>`'${e}' sera supprim\xE9. Les conteneurs qui s\u2019y rattacheront plus tard ne le trouveront plus.`,manyTitle:"Supprimer les r\xE9seaux ?",manyDescription:e=>`${kC(e)} seront supprim\xE9s. Les r\xE9seaux avec des conteneurs connect\xE9s et les r\xE9seaux int\xE9gr\xE9s sont ignor\xE9s.`},prune:{title:"Nettoyer les r\xE9seaux inutilis\xE9s ?",description:"Tout r\xE9seau sans conteneur connect\xE9 est supprim\xE9. Cela ne lib\xE8re pas d\u2019espace disque ; cela garde la liste lisible.",confirm:"Nettoyer"},pruned:e=>`${kC(e)} supprim\xE9s.`,created:e=>`Le r\xE9seau ${e} a \xE9t\xE9 cr\xE9\xE9.`}});var MC,NC=m(()=>{MC={title:"Param\xE8tres",language:{heading:"Langue",label:"Langue de l\u2019application",hint:"Les termes techniques comme container, image et volume restent en anglais."},startup:{heading:"D\xE9marrage",startAtLogin:"D\xE9marrer \xE0 l\u2019ouverture de session, directement dans la zone de notification",hintAvailable:"Ainsi, les notifications ci-dessous arrivent aussi quand vous n\u2019ouvrez pas l\u2019application vous-m\xEAme. D\xE9sactivez-le ici, ou dans le Gestionnaire des t\xE2ches sous Applications de d\xE9marrage.",hintUnavailable:"Ne fonctionne que dans l\u2019application install\xE9e. Ici, Windows d\xE9marrerait un electron.exe nu."},notifications:{heading:"Notifications",crash:"Quand un conteneur s\u2019arr\xEAte de fa\xE7on inattendue",unhealthy:"Quand un conteneur devient unhealthy",wiring:"Quand un conteneur perd son r\xE9seau ou ses ports",hint:"Un conteneur que vous arr\xEAtez vous-m\xEAme, depuis l\u2019application, le terminal ou avec compose down, ne d\xE9clenche jamais de notification. Un m\xEAme conteneur ne notifie qu\u2019une fois par minute au maximum."},update:{heading:"Mises \xE0 jour",version:e=>`version ${e}`,install:"Red\xE9marrer et mettre \xE0 jour",check:"V\xE9rifier maintenant",auto:"Rechercher les nouvelles versions et les t\xE9l\xE9charger \xE0 l\u2019avance",unavailable:"Seule l\u2019application install\xE9e sous Windows se met \xE0 jour toute seule. Avec npm, la mise \xE0 jour passe par npm.",idle:"Une nouvelle version est t\xE9l\xE9charg\xE9e et install\xE9e d\xE8s que vous fermez l\u2019application.",checking:"Recherche d\u2019une nouvelle version\u2026",upToDate:e=>`C\u2019est la derni\xE8re version. V\xE9rifi\xE9 \xE0 ${e}.`,downloading:(e,t)=>`T\xE9l\xE9chargement de la version ${e}\u2026 ${String(t)} %`,ready:e=>`La version ${e} est pr\xEAte et sera install\xE9e \xE0 la fermeture de l\u2019application. Red\xE9marrez pour l\u2019installer maintenant.`,error:e=>`\xC9chec de la v\xE9rification : ${e}`},servers:{heading:"Serveurs",hint:"Des h\xF4tes Docker via SSH ou TCP. Ils sont enregistr\xE9s comme contexts docker, la CLI docker les conna\xEEt donc aussi. Basculez de l\u2019un \xE0 l\u2019autre avec le s\xE9lecteur dans la barre d\u2019\xE9tat.",empty:"Pas encore de serveurs.",inUse:"utilis\xE9",cli:"CLI",test:"Tester",testing:"Test en cours\u2026",remove:"Supprimer",removeBlocked:"Utilis\xE9 par l\u2019application ou par la CLI docker. Basculez d\u2019abord vers un autre context.",removeTitle:e=>`Supprimer le serveur '${e}' ?`,removeDescription:"Cela supprime le context docker, y compris pour la CLI docker. Rien ne change sur le serveur lui-m\xEAme.",connected:(e,t,n)=>`Connect\xE9 : Docker ${e} sur ${t}/${n}.`,unknownHostKey:(e,t)=>`${e} n\u2019est pas encore connu. Comparez cette empreinte ${t} avec celle du serveur (ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub) avant de lui faire confiance :`,trust:"Faire confiance et tester \xE0 nouveau",add:{heading:"Ajouter un serveur",name:"Nom",namePlaceholder:"serveur-maison",kind:"Connexion",ssh:"SSH",tcp:"TCP",username:"Utilisateur",usernamePlaceholder:"vide : utilisateur de cet ordinateur",host:"H\xF4te",hostPlaceholder:"192.168.1.16",port:"Port",description:"Description",descriptionPlaceholder:"facultatif",submit:"Ajouter",tcpWarning:"Le TCP simple n\u2019a pas d\u2019authentification : quiconque atteint le port sur le r\xE9seau contr\xF4le Docker. Pr\xE9f\xE9rez SSH.",added:e=>`Serveur '${e}' ajout\xE9.`}},assistant:{configured:"Une cl\xE9 est enregistr\xE9e.",clearKey:"Supprimer la cl\xE9",keyLabel:"Cl\xE9 API",model:"Mod\xE8le",modelHint:"Opus raisonne le mieux sur un probl\xE8me tenace ; Sonnet et Haiku r\xE9pondent plus vite et co\xFBtent moins cher. Haiku lit aussi moins de choses \xE0 la fois.",hint:"Avec votre propre cl\xE9 API Claude, chaque conteneur re\xE7oit un onglet Claude qui aide \xE0 creuser un probl\xE8me. La cl\xE9 est stock\xE9e chiffr\xE9e sur cet ordinateur, lisible seulement par votre utilisateur Windows. Chaque question co\xFBte quelques centimes d\u2019usage API, sur votre compte."}}});var AC,RC=m(()=>{AC={nav:{label:"Navigation principale",dashboard:"Tableau de bord",containers:"Conteneurs",images:"Images",volumes:"Volumes",networks:"R\xE9seaux",compose:"Compose",logs:"Logs",terminal:"Terminal",settings:"Param\xE8tres"},routes:{container:"Conteneur"},header:{search:"Rechercher (Ctrl+K)",lightTheme:"Th\xE8me clair",darkTheme:"Th\xE8me sombre",quit:"Quitter Docker Client MX"},statusBar:{connecting:"Connexion \xE0 Docker\u2026",engineRunning:"Engine en cours",engineUnreachable:"Engine injoignable",containers:(e,t)=>`${String(e)} conteneurs sur ${String(t)}`,images:e=>e===1?"1 image":`${String(e)} images`,reconnect:"Reconnecter"},contextPicker:{label:"Context Docker",switching:"Basculement\u2026",unsupported:"non pris en charge",inUseByCli:"utilis\xE9 par la CLI"},actionMenu:{label:"Actions"},confirmDialog:{confirm:"Supprimer"},dataTable:{empty:"Rien trouv\xE9.",selectAll:"Tout s\xE9lectionner",clearSelection:"Effacer la s\xE9lection",select:e=>`S\xE9lectionner ${e}`},jsonView:{expand:e=>`D\xE9plier : ${e}`,collapse:e=>`Replier : ${e}`,empty:"Rien \xE0 afficher."},toast:{region:"Notifications (F8)",close:"Fermer la notification"},usageChart:{ago:e=>`il y a ${e}`,max:e=>`max. ${e}`,now:"maintenant",values:(e,t,n)=>`maintenant ${e}, maximum ${t}, minimum ${n}`,noData:e=>`${e} : pas encore de mesures.`,summary:(e,t,n)=>`${e} sur les ${t} \xE9coul\xE9es : ${n}.`},palette:{title:"Aller \xE0",description:"Tapez pour rechercher des pages, conteneurs, images, volumes et r\xE9seaux. Les fl\xE8ches choisissent, Entr\xE9e ex\xE9cute.",placeholder:"Rechercher une page, un conteneur, une image, un volume ou un r\xE9seau\u2026",results:"R\xE9sultats",empty:"Rien trouv\xE9.",groups:{page:"Page",container:"Conteneur",image:"Image",volume:"Volume",compose:"Compose",network:"R\xE9seau"},start:e=>`D\xE9marrer ${e}`,stop:e=>`Arr\xEAter ${e}`,restart:e=>`Red\xE9marrer ${e}`,diagnose:e=>`Diagnostiquer ${e}`,imageInUse:e=>`Image \xB7 utilis\xE9e par ${String(e)} conteneur${e===1?"":"s"}`,imageUnused:"Image \xB7 inutilis\xE9e",network:e=>`R\xE9seau \xB7 ${e}`,composeDetail:(e,t)=>`Compose \xB7 ${String(e)} sur ${String(t)} en marche`,composeUp:e=>`${e} : up`,composeFile:e=>`${e} : afficher le fichier compose`,composeDown:e=>`${e} : down\u2026`,recreate:e=>`Recr\xE9er ${e}`,recreateDetail:"up --force-recreate pour ce service seulement",volumeBrowse:e=>`Regarder dans ${e}`,networkMembers:e=>`Qui est connect\xE9 \xE0 ${e}`}}});var LC,OC=m(()=>{LC={title:"Terminal",intro:{start:"Un shell sur la machine o\xF9 tourne le d\xE9mon Docker, par exemple votre distro WSL.",afterDocker:" fonctionne ici comme d\u2019habitude. Vous \xEAtes ",afterRoot:" : le shell passe par un conteneur ",afterAlpine:" \xE9ph\xE9m\xE8re et privil\xE9gi\xE9, qui dispara\xEEt d\xE8s que vous fermez le shell ou cette page."},tabsLabel:"Terminal",tabs:{terminal:"Terminal",assistant:"Claude"},loading:"Chargement du terminal\u2026"}});var PC,sp,$C,FC=m(()=>{PC=e=>`${String(e)} volume${e===1?"":"s"}`,sp=e=>`${String(e)} conteneur${e===1?"":"s"}`,$C={title:"Volumes",diskSpace:"Espace disque",calculating:"calcul en cours\u2026",unused:"Inutilis\xE9s",menuLabel:"Actions sur les volumes",searchLabel:"Rechercher par nom",onlyUnused:"Seulement les volumes inutilis\xE9s",refreshing:"Actualisation\u2026",selected:e=>`${String(e)} s\xE9lectionn\xE9s`,empty:"Aucun volume trouv\xE9.",columns:{name:"Nom",driver:"Driver",inUse:"Utilis\xE9",created:"Cr\xE9\xE9",size:"Taille",actions:"Actions"},containerCount:sp,rowMenu:e=>`Actions pour ${e}`,rowBrowse:"Voir le contenu\u2026",browse:{title:e=>`Dans ${e}`,description:"En lecture seule, via un conteneur d\u2019appoint \xE9ph\xE9m\xE8re. Il dispara\xEEt \xE0 la fermeture.",loading:"Chargement\u2026",empty:"Ce dossier est vide.",up:"Dossier parent",path:"Chemin dans le volume"},rowBackup:"Sauvegarder en .tar",rowRestore:"Restaurer une sauvegarde\u2026",backupTitle:e=>`Sauvegarder ${e} en .tar`,backupTitleInUse:e=>`Sauvegarder ${e}. Il est utilis\xE9 : une base de donn\xE9es qui \xE9crit pendant la sauvegarde peut laisser une sauvegarde qui ne se restaure pas toujours. Arr\xEAtez d\u2019abord ce conteneur, ou utilisez son propre dump.`,restoreTitle:e=>`Restaurer une sauvegarde dans ${e}`,inUseReason:e=>`Utilis\xE9 par ${sp(e)} ; supprimez-les ou arr\xEAtez-les d\u2019abord`,menu:{create:"Cr\xE9er un volume\u2026",pruneAnonymous:"Nettoyer les anonymes",pruneUnused:"Nettoyer les inutilis\xE9s"},createDialog:{title:"Cr\xE9er un volume",description:"Un volume vide avec un nom, \xE0 rattacher plus tard \xE0 un conteneur.",nameLabel:"Nom",namePlaceholder:"my-data",storageLabel:"O\xF9 les donn\xE9es sont-elles stock\xE9es ?",storage:{docker:"G\xE9r\xE9 par Docker",dockerHint:"Recommand\xE9. Docker d\xE9cide o\xF9 vont les donn\xE9es.",folder:"Un dossier sur la machine Docker",folderHint:"Un dossier existant, par exemple pour partager des fichiers avec un conteneur.",nfs:"Un partage NFS sur le r\xE9seau",nfsHint:"Un dossier partag\xE9 sur un NAS ou un serveur."},folderLabel:"Dossier",folderHint:"Le dossier doit d\xE9j\xE0 exister sur la machine qui fait tourner Docker. Sous WSL, C:\\data correspond \xE0 /mnt/c/data.",nfsServerLabel:"Serveur",nfsPathLabel:"Dossier partag\xE9",nfsHint:"V\xE9rifi\xE9 seulement au moment o\xF9 un conteneur se met \xE0 utiliser ce volume.",advanced:"Avanc\xE9",driverLabel:"Driver",driverHint:"Laissez local, sauf si vous utilisez un plugin de volume.",submit:"Cr\xE9er",creating:"Cr\xE9ation\u2026"},restore:{title:e=>`Restaurer une sauvegarde dans ${e} ?`,description:e=>"Les fichiers de m\xEAme nom sont \xE9cras\xE9s ; ce qui n\u2019est pas dans la sauvegarde reste en place. "+(e>0?`Arr\xEAtez d\u2019abord ${sp(e)} qui utilisent ce volume : une base de donn\xE9es en cours ne remarque pas que ses fichiers ont chang\xE9. `:"")+"Vous choisirez le fichier ensuite.",confirm:"Choisir un fichier"},remove:{title:"Supprimer le volume ?",description:e=>`Toutes les donn\xE9es de '${e}' seront perdues. C\u2019est irr\xE9versible.`,manyTitle:"Supprimer les volumes ?",manyDescription:e=>`Toutes les donn\xE9es de ${PC(e)} seront perdues. Les volumes encore utilis\xE9s sont ignor\xE9s.`},prune:{allTitle:"Nettoyer tous les volumes inutilis\xE9s ?",allDescription:"Tout volume sans conteneur attach\xE9 est supprim\xE9, y compris les volumes nomm\xE9s que vous avez cr\xE9\xE9s vous-m\xEAme. Les donn\xE9es qu\u2019ils contiennent seront perdues.",anonymousTitle:"Nettoyer les volumes anonymes ?",anonymousDescription:"Les volumes sans nom qu\u2019aucun conteneur n\u2019utilise plus sont supprim\xE9s. Ce sont en g\xE9n\xE9ral des restes de conteneurs qui n\u2019existent d\xE9j\xE0 plus.",confirm:"Nettoyer"},created:e=>`Le volume ${e} a \xE9t\xE9 cr\xE9\xE9.`,pruned:(e,t)=>`${PC(e)} supprim\xE9s, ${t} lib\xE9r\xE9s.`,backedUp:(e,t)=>`Sauvegarde de ${e} enregistr\xE9e sous ${t}.`,restored:(e,t)=>`${e} a \xE9t\xE9 restaur\xE9 dans ${t}.`}});var BC,HC=m(()=>{dC();fC();gC();vC();yC();CC();DC();TC();NC();RC();OC();FC();BC={common:uC,compose:hC,containers:pC,dashboard:mC,format:_C,images:SC,logs:EC,networks:xC,settings:MC,shell:AC,terminal:LC,volumes:$C}});var jC,VC=m(()=>{jC={cancel:"Cancel",close:"Close",remove:"Remove",retry:"Try again",refresh:"Refresh",search:"Search",loading:"Loading\u2026",save:"Save",copy:"Copy",copied:"Copied",start:"Start",stop:"Stop",restart:"Restart",yes:"Yes",no:"No",none:"None",unknown:"Unknown",nothingToPrune:"There was nothing to clean up."}});var zC,UC=m(()=>{zC={title:"Compose",intro:"Projects from the labels on your containers. A project that is stopped is listed too, as long as its containers still exist.",updating:"Updating\u2026",state:{running:"running",partial:"partial",stopped:"stopped"},runningOf:(e,t)=>`${String(e)} of ${String(t)}`,expand:e=>`Expand: ${e}`,collapse:e=>`Collapse: ${e}`,menuAria:e=>`Actions for ${e}`,upAria:e=>`Up ${e}`,startAria:e=>`Start ${e}`,stopAria:e=>`Stop ${e}`,restartAria:e=>`Restart ${e}`,downAria:e=>`Down ${e}`,up:"Up",down:"Down",fileAria:e=>`Show the compose file of ${e}`,file:{button:"File",title:e=>`The compose file of ${e}`,loading:"Loading\u2026",raw:"As written",resolved:"As compose reads it",rawHint:"The file on disk, unchanged.",resolvedHint:"Overrides merged and ${VAR} filled in: this is what the running project is based on.",empty:"This file is empty.",copyFailed:e=>`Copying failed: ${e}`},noCli:"The docker CLI isn't available",noWorkingDir:"It's not known where this project lives",busy:"Working\u2026 an up can take a while if images need to be pulled.",empty:"No compose projects found. They show up here as soon as there are containers with compose labels.",downDialog:{title:"Take project down?",description:e=>`The containers and networks of '${e}' will be stopped and removed. Volumes are kept, so your data is preserved.`,confirm:"Take down"},recreate:"Rebuild",recreateAria:e=>`Rebuild ${e}`,recreateTitle:"docker compose up -d --no-deps --force-recreate",recreateDone:e=>`${e} has been rebuilt.`,upDone:e=>`'${e}' is up.`,downDone:e=>`'${e}' has been taken down.`}});var WC,qC=m(()=>{WC={actions:{pause:"Pause",resume:"Resume",copyDiagnosis:"Copy diagnosis",copyRunCommand:"Copy run command",restartPolicy:"Restart policy\u2026",recreate:"Rebuild"},page:{title:"Containers",cpuUsage:"CPU usage",memoryUsage:"Memory usage",search:"Search by name, image or ID",onlyRunning:"Only running containers",updating:"Updating\u2026",selected:e=>`${String(e)} selected`,empty:"No containers found.",columns:{name:"Name",id:"Container ID",image:"Image",ports:"Ports",cpu:"CPU",memory:"Memory",actions:"Actions"},group:{loose:"Standalone containers",expand:e=>`Expand: ${e}`,collapse:e=>`Collapse: ${e}`,count:e=>e===1?"1 container":`${String(e)} containers`,running:e=>`${String(e)} running`,startAll:"Start all",stopAll:"Stop all",restartAll:"Restart all",removeAll:"Remove all",menu:e=>`Actions for all in ${e}`,manual:"Your own group",addToGroup:"Add to group\u2026",removeFromGroup:"Remove from group",rename:"Rename group\u2026",dissolve:"Dissolve group"},groupDialog:{assignTitle:"Add to group",assignOne:e=>`'${e}' goes into the group you name here.`,assignMany:e=>`${String(e)} containers go into the group you name here.`,renameTitle:"Rename group",renameDescription:e=>`Everything in '${e}' moves along to the new name.`,nameLabel:"Group name",namePlaceholder:"e.g. my-stack",existing:"Existing groups",hint:"A group of your own lives in this app and follows the container name; Docker itself knows nothing about it.",empty:"Fill in a name.",reserved:e=>`'${e}' is already a Compose project.`,submit:"Save"},row:{diagnosisOf:e=>`Diagnosis of ${e}`,missingNetwork:e=>`Running, but not attached to ${e}`,menu:e=>`Actions for ${e}`},confirm:{title:"Remove container?",one:e=>`'${e}' will be stopped and removed. This can't be undone; volumes are kept.`,many:e=>`${e===1?"1 container":`${String(e)} containers`} will be stopped and removed. This can't be undone; volumes are kept.`,group:(e,t)=>`The ${String(e)} containers of '${t}' will be stopped and removed. This can't be undone; volumes are kept.`}},detail:{back:"\u2039 Containers",menu:"Actions for this container",gone:" no longer exists. A container with --rm disappears once it stops, and compose creates a new one on up.",goneUnnamed:"This container no longer exists.",successor:(e,t)=>`Go to the current ${e} (${t})`,tabsLabel:"Container details",tabs:{logs:"Logs",health:"Health",events:"Events",inspect:"Inspect",stats:"Stats",terminal:"Terminal",files:"Files",networks:"Networks",assistant:"Claude"},wiring:{network:e=>`Running, but not attached to ${e}. Nothing reaches it over that network, and it reaches nothing.`,networkWhy:"This happens when the network was removed and created again while the container existed.",connect:e=>`Attach to ${e}`,ports:e=>`Running, but not publishing ${e}.`,portsWhy:"This happens when it was started again after a start that failed on a taken port.",portsFromNetwork:"That follows from the missing network above: ports are published through a network.",restart:"Restart"},events:{loading:"Loading\u2026",empty:"Nothing recorded yet. The app keeps track from the moment it starts, plus what Docker still remembered then.",scope:"Kept in the app since it started, up to 100 per container name; after a restart of the app, Docker fills in what it still remembers.",crashLoop:e=>`Crashed ${String(e)} times in the last hour.`,create:"Created",start:"Started",exited:e=>e===0?"Exited normally":`Exited with code ${String(e)}`,exitedUnknown:"Exited",exitHint137:"SIGKILL: killed from outside, often out of memory or a stop that took too long",exitHint143:"SIGTERM: asked to stop",kill:e=>`Sent ${e}`,oom:"Killed by the kernel: out of memory",stop:"Stopped",restart:"Restarted",pause:"Paused",unpause:"Resumed",destroy:"Removed",rename:e=>`Renamed, was ${e}`,renamed:"Renamed",health:{starting:"Health check starting",healthy:"Became healthy",unhealthy:"Became unhealthy"}},health:{loading:"Loading\u2026",refresh:"Refresh",status:{starting:"starting",healthy:"healthy",unhealthy:"unhealthy",unknown:"has not run yet"},failingStreak:e=>e===1?"failed once":`failed ${String(e)} times in a row`,command:"Command",fromImage:"Comes from the image; the daemon does not report the command itself.",rhythm:"Rhythm",every:e=>`every ${e}`,timeout:e=>`timeout ${e}`,startPeriod:e=>`start period ${e}`,retries:e=>e===1?"1 try before unhealthy":`${String(e)} tries before unhealthy`,defaults:"Docker's own defaults",probes:"Last results",noProbes:"The check has not run yet.",exitCode:e=>`exit code ${String(e)}`,unknownExitCode:"no exit code",noOutput:"no output"},networks:{title:"On these networks",loading:"Loading\u2026",empty:"This container is not on any network.",noAddress:"no address",alsoKnownAs:e=>`also reachable as ${e}`,disconnect:"Disconnect",disconnectFrom:e=>`Disconnect from ${e}`,addTitle:"Connect to a network",addHint:"Takes effect right away, also while the container is running.",allConnected:"This container is already on every network.",networkLabel:"Network",choose:"Choose a network\u2026",alias:"Extra name in the network",aliasHint:"An extra name the other containers on this network can use, next to the container name.",aliasPlaceholder:"database",connect:"Connect",working:"Busy\u2026",invalidAlias:e=>`'${e}' is not a valid name. Use letters, digits, dots, hyphens and underscores.`},fetching:"Loading\u2026",terminalLoading:"Loading terminal\u2026",shellOnlyRunning:"A shell can only be opened in a running container.",cpu:"CPU",lastMinute:e=>`last minute \xB7 peak ${e}%`,chartPending:"the chart appears after a few samples",memory:"Memory",ofLimit:e=>`${e}% of the limit`,noLimit:"no limit set",statsOnlyRunning:"Stats are only collected for a running container.",confirmTitle:"Remove container?",confirmDescription:"This container will be stopped and removed. This can't be undone; volumes are kept."},diagnosis:{title:"Copy diagnosis",description:"Status, health, mounts, events and the latest log lines, to paste into a chat or an issue. This is exactly what gets copied.",collecting:"Collecting\u2026",noRedactions:"Nothing left out; no value looked like a secret.",redactions:e=>`${e===1?"1 value":`${String(e)} values`} left out: environment variables and anything that looked like a password, token or key.`,copyFailed:e=>`Copying failed: ${e}`},restartPolicy:{title:"Restart policy",description:"What the daemon does when this container stops. Takes effect right away; the container is not recreated.",loading:"Loading\u2026",label:"Policy",names:{no:"Never",always:"Always","unless-stopped":"Unless you stopped it yourself","on-failure":"Only after a non-zero exit code"},maximum:"Attempts at most",maximumHint:"0 means keep trying.",save:"Save",saving:"Saving\u2026",saved:e=>`Restart policy is now ${e}.`},runCommand:{title:"Copy run command",description:"The command that recreates this container, derived from inspect. Whatever comes from the image is left out.",building:"Deriving\u2026",composeNote:e=>`This container belongs to compose project ${e}, where docker compose up is the answer. This is how it runs right now.`,envWarning:e=>`${e===1?"1 environment variable is":`${String(e)} environment variables are`} in there, passwords and all: the command has to work.`,noEnv:"No environment variables of its own.",copyFailed:e=>`Copying failed: ${e}`},logs:{filter:"Filter by text",follow:"Follow",timestamps:"Timestamps",clear:"Clear",connecting:"Connecting\u2026",count:(e,t)=>`${String(e)} of ${String(t)} lines`,truncated:"oldest lines dropped",empty:"No log lines yet.",noMatches:"No lines match that."},files:{up:"Up one folder",path:"Path in the container",refresh:"Refresh",changed:"Changed",changesTitle:"Changed compared to the image",changesCount:e=>e===1?"1 path":`${String(e)} paths`,changesEmpty:"This container has changed nothing in its image.",changesHint:"Folders that only changed because something inside them did are left out. Volumes are not part of this.",changeKind:{added:"added",modified:"changed",deleted:"deleted"},openFolderOf:e=>`Open the folder of ${e}`,upload:"Upload\u2026",empty:"This folder is empty.",downloadFolder:e=>`Download folder as tar: ${e}`,downloadFile:e=>`Download: ${e}`,hint:e=>`Drop files here to put them in ${e}. Downloading a folder gives a .tar, so permissions and symlinks are kept.`,savedAs:e=>`Saved as ${e}.`,uploaded:(e,t)=>`${e===1?"1 file":`${String(e)} files`} put in ${t}.`},terminal:{exited:"The shell has exited.",reopen:"Reopen",connecting:"Connecting\u2026",connected:"connected"},assistant:{introHost:"Claude gets an overview of the engine and the containers, reads along in the terminal and requests logs and inspect on its own. Every request is listed below, and secrets are left out. Claude never types anything itself: a suggested command becomes a button that puts it on the prompt, and you press Enter.",introContainer:"Claude gets the diagnosis of this container, without secrets, and then requests logs, inspect, events or the other containers on its own. Every request is listed below. Claude changes nothing itself: a suggestion becomes a button, and you decide.",defaultQuestion:"What's going on with this container, and what can I do about it?",defaultHostQuestion:"What do you see in the terminal, and what does it mean?",onPrompt:"On the prompt",done:"Done",thinking:"Claude is thinking\u2026",questionLabel:"Question for Claude",followUp:"Follow-up question",ask:"Ask Claude",putInTerminal:"Put in terminal",composeUp:e=>`compose up for ${e}`,start:e=>`Start ${e}`,stop:e=>`Stop ${e}`,restart:e=>`Restart ${e}`,panelClosed:"The panel was closed.",usage:(e,t,n)=>`${e} tokens in, ${t} from cache, ${n} out`}}});var GC,KC=m(()=>{GC={title:"Dashboard",engine:{connecting:"Connecting to Docker\u2026",running:"Engine running",unreachable:"Engine unreachable",startDistro:e=>`Start ${e}`,startingDistro:e=>`Starting ${e}\u2026`,startDaemon:e=>`Start Docker in ${e}`,startingDaemon:e=>`Starting Docker in ${e}\u2026`,daemonHint:e=>`${e} is running, so it is the daemon inside it that is not. The app can start it there.`,idleHint:{intro:e=>`${e} started earlier but stopped again. WSL shuts down a distro without an open session after 15 seconds; set`,under:"under",in:"in",outro:"to keep it running."}},contexts:{switchFailed:e=>`Couldn't switch to ${e}`},usage:{cpu:"CPU across all containers",memory:"Memory",memoryChart:"Memory across all containers",network:"Network across all containers",networkChart:"Network traffic across all containers",received:"Received",sent:"Sent",receivedAria:"received",sentAria:"sent",hostNote:"Containers with network_mode: host aren't counted; they have no counters of their own."},counts:{containers:"Containers",runningOfTotal:"running of total",images:"Images",volumesNetworks:"Volumes \xB7 networks"},disk:{title:"Disk usage",total:e=>`${e} total`,calculating:"calculating\u2026",prune:"Clean up",pruning:"Cleaning up\u2026",unused:e=>`${String(e)} unused`,labels:{images:"Images",containers:"Containers",volumes:"Volumes",buildCache:"Build cache"},footnoteBefore:"The same figures as",footnoteAfter:". How much space cleaning up actually frees isn't shown: that depends on shared layers, and an estimate that looks like a fact is worse than no number at all."},attention:{title:"Needs attention",none:"Everything checks out: no crash loops, nothing unhealthy, everything attached.",loading:"Checking\u2026",crashLoop:e=>`crashed ${String(e)} times in the last hour`,restarting:"keeps restarting",unhealthy:"health check failing",network:e=>`running, but not attached to ${e}`,ports:e=>`running, but not publishing ${e}`},stopped:{title:"Recently stopped",none:"Nothing has stopped.",clean:"exited cleanly",failed:e=>`exited with code ${String(e)}`,created:e=>`created ${e}`},pruneDialog:{title:"Clean up",description:"Whatever you tick is removed and can't be recovered.",confirm:"Clean up",containers:"Stopped containers",containersHint:"A paused container is kept.",networks:"Unused networks",networksHint:"bridge, host and none are always kept.",images:"Untagged images",imagesHint:"Usually leftovers from a newer build.",allImages:"Tagged images without a container too",allImagesHint:"You'll have to pull them again afterwards.",buildCache:"Build cache",buildCacheHint:"Everything that isn't in use. The next build will take longer.",volumes:"Anonymous volumes",volumesHint:"Named volumes are kept. These hold data."},pruneResult:{removed:{containers:e=>e===1?"1 container":`${String(e)} containers`,networks:e=>e===1?"1 network":`${String(e)} networks`,volumes:e=>e===1?"1 volume":`${String(e)} volumes`,images:e=>e===1?"1 image":`${String(e)} images`,buildCache:e=>e===1?"1 build cache item":`${String(e)} build cache items`},kinds:{containers:"containers",networks:"networks",volumes:"volumes",images:"images",buildCache:"build cache"},and:"and",notice:(e,t)=>`${e} removed, ${t} freed.`,problem:e=>`Couldn't clean up ${e}`}}});var YC,ZC=m(()=>{YC={justNow:"just now",hoursAgo:e=>e===1?"1 hour ago":`${String(e)} hours ago`,yesterday:"yesterday",daysAgo:e=>`${String(e)} days ago`,lastMonth:"last month",monthsAgo:e=>`${String(e)} months ago`,lastYear:"last year",yearsAgo:e=>`${String(e)} years ago`}});var QC,XC,JC,eE=m(()=>{QC=e=>`${String(e)} image${e===1?"":"s"}`,XC=e=>`${String(e)} container${e===1?"":"s"}`,JC={title:"Images",diskSpace:"Disk space",unused:"Unused",menuLabel:"Image actions",searchLabel:"Search by repository, tag or ID",onlyUnused:"Only unused images",refreshing:"Refreshing\u2026",updatesHint:"Updating pulls the new image. A running container keeps the old one until it is recreated; for a container from a compose project, the app offers to do that after the pull.",selected:e=>`${String(e)} selected`,empty:"No images found.",columns:{repository:"Repository",tag:"Tag",imageId:"Image ID",inUse:"In use",created:"Created",size:"Size",actions:"Actions"},badge:{newer:"newer version",notInRegistry:"not in registry",uncheckable:"could not check"},containerCount:XC,updateTitle:e=>`Update: pull ${e} again`,rowMenu:e=>`Actions for ${e}`,rowUpdate:"Pull newer version",rowRun:"Run container\u2026",rowLayers:"Layers\u2026",runLabel:e=>`Start a container from ${e}`,runLabelDangling:"Start a container from this untagged image",layers:{title:e=>`Layers of ${e}`,description:"Newest first, the way docker history shows them: the last line of the Dockerfile at the top.",loading:"Loading\u2026",summary:(e,t)=>`${e===1?"1 layer":`${String(e)} layers`} \xB7 image ${t}`,packed:e=>`The layers add up to ${e}: with this storage Docker reports each layer the way it arrived, packed. On disk the image is bigger.`,noSize:"changes nothing on disk",expand:"Show the whole command",empty:"This image reports no layers."},menu:{pull:"Pull image",check:"Check for updates",checking:"Checking\u2026",pruneDangling:"Clean up untagged",pruneUnused:"Clean up unused"},remove:{title:"Remove image?",description:e=>`'${e}' will be removed. If this image has other tags, only this tag goes.`,forceTitle:"Force remove image?",forceDescription:(e,t)=>`'${e}' is used by ${XC(t)}. It can only be removed by force, and those containers will stop working.`,forceConfirm:"Remove anyway",manyTitle:"Remove images?",manyDescription:e=>`${QC(e)} will be removed. Images that are still in use are skipped.`},prune:{allTitle:"Clean up all unused images?",allDescription:"Everything without a container attached is removed, including images you pulled yourself. You will have to pull them again.",danglingTitle:"Clean up untagged images?",danglingDescription:"Images without a tag are removed. These are usually leftovers from a newer build.",confirm:"Clean up"},pruned:(e,t)=>`${QC(e)} removed, ${t} freed.`,check:{allCurrent:"Everything is up to date",updates:e=>`${e===1?"1 image has":`${String(e)} images have`} a newer version`,notInRegistry:e=>`${String(e)} not in a registry`,uncheckable:e=>`${String(e)} could not be checked`,summary:(e,t)=>`${e} (${String(t)} checked).`},pullDialog:{title:"Pull image",nameAndTag:"Name and tag, for example",withoutTag:"Without a tag,",isUsed:"is used.",inputLabel:"Image",submit:"Pull",staleHeading:"These containers are still running the previous version:",inProject:e=>`in ${e}`,notCompose:"not started with compose; recreate it yourself",renewed:e=>`Recreated: ${e}.`,renew:"Recreate containers",renewing:"Recreating\u2026",renewHint:"With compose, only these services."},runDialog:{title:"Start container",fromImage:"From image",name:"Name",namePlaceholder:"leave empty = Docker picks one",autoRestart:"Restart automatically",autoRestartHint:"After a crash or when Docker restarts. Not when you stop it yourself.",ports:"Ports",portsHint:"Make a port of the container reachable from this computer, for example localhost:8080.",onThisComputer:"On this computer",inContainer:"In the container",protocolHeader:"Protocol",hostPortPlaceholder:"empty = any free port",addPort:"Add port",hostPort:e=>`Host port ${String(e)}`,containerPort:e=>`Container port ${String(e)}`,protocol:e=>`Protocol ${String(e)}`,removePort:e=>`Remove port ${String(e)}`,network:"Network",networkHint:"Containers on a network you made yourself can reach each other by name. On the default network they cannot.",networkDefault:"Default (bridge)",networkAlias:"Extra name in the network",networkAliasHint:"An extra name the other containers on this network can use, next to the container name.",networkAliasPlaceholder:"database",invalidAlias:e=>`'${e}' is not a valid name. Use letters, digits, dots, hyphens and underscores.`,volumes:"Volumes",volumesHint:"Data that must survive the container: a volume, or a folder on the Docker machine.",source:"Volume or folder",addVolume:"Add volume",sourcePlaceholder:"my-data or /srv/data",targetPlaceholder:"/path/in/container",volumeSource:e=>`Volume source ${String(e)}`,volumeTarget:e=>`Volume target ${String(e)}`,readOnly:"read-only",readOnlyHint:"The container can read the files but not change them.",removeVolume:e=>`Remove volume ${String(e)}`,env:"Environment variables",envHint:"Settings for the program in the container. You can also paste NAME=value.",envNameHeader:"Name",envValueHeader:"Value",addEnv:"Add variable",envName:e=>`Variable name ${String(e)}`,envValue:e=>`Variable value ${String(e)}`,removeEnv:e=>`Remove variable ${String(e)}`,submit:"Start",starting:"Starting\u2026",invalidContainerPort:e=>`'${e}' is not a valid container port. Use a number from 1 to 65535.`,invalidHostPort:e=>`'${e}' is not a valid host port. Leave it empty to let Docker pick one.`,volumeIncomplete:"A volume needs both a source and a target.",notAbsolute:e=>`'${e}' is not an absolute path. The target in the container starts with a /.`,envNameMissing:"A variable needs a name.",envNameWithEquals:e=>`'${e}' cannot contain =; that separates the name from the value.`}}});var tE,nE=m(()=>{tE={title:"Logs",intro:"Everything your running containers write, interleaved by time. A container that starts or stops joins or leaves automatically.",projectLabel:"Compose project",allProjects:"All containers",searchLabel:"Search the logs",searchPlaceholder:"Search, or an expression such as /error|warn/",caseSensitive:"Case-sensitive search",containers:"Containers",nothingRunning:"Nothing is running.",showAll:"Turn everything back on",timestamps:"Timestamps",clear:"Clear",columns:{time:"Time",object:"Object",line:"Line"},allFiltered:e=>e===1?"The only line is hidden by the filter.":`All ${String(e)} lines are hidden by the filter.`,empty:"No lines yet. As soon as a container writes something, it shows up here.",lineCount:e=>e===1?"1 line":`${String(e)} lines`,filteredOut:e=>`${String(e)} filtered out`,truncated:"Older lines have dropped out of the buffer.",invalidExpression:e=>`Not a valid expression: ${e}`,levels:{label:"Level",errors:"Errors",warnings:"Warnings",unknownHidden:"Lines without a recognisable level, such as a stack trace under an error, are hidden by this filter."}}});var rE,iE,sE,oE=m(()=>{rE=e=>`${String(e)} network${e===1?"":"s"}`,iE=e=>`${String(e)} container${e===1?"":"s"}`,sE={title:"Networks",unused:"Unused",menuLabel:"Network actions",searchLabel:"Search by name or driver",hideBuiltIn:"Hide built-in networks",refreshing:"Refreshing\u2026",selected:e=>`${String(e)} selected`,empty:"No networks found.",builtIn:"built-in",internal:"internal",columns:{name:"Name",driver:"Driver",scope:"Scope",subnet:"Subnet",connected:"Connected",actions:"Actions"},containerCount:iE,rowMenu:e=>`Actions for ${e}`,rowMembers:"Who is connected\u2026",members:{title:e=>`Connected to ${e}`,description:"The same containers the count on this page is based on, including stopped ones.",loading:"Loading\u2026",empty:"No container is connected to this network.",noAddress:"no address",stopped:"stopped"},builtInReason:"Built-in Docker network; cannot be removed",connectedReason:e=>`${iE(e)} connected; disconnect them first`,menu:{create:"Create network\u2026",pruneUnused:"Clean up unused"},createDialog:{title:"Create network",description:"A network of your own, on which containers find each other by name.",nameLabel:"Name",namePlaceholder:"my-network",internal:"Internal only",internalHint:"The containers reach each other, but have no route to the outside world.",advanced:"Advanced",driverLabel:"Driver",driverHint:"Leave this at bridge unless you run a swarm or use a network plugin.",subnetLabel:"Subnet",subnetHint:"Leave this empty and Docker picks a free range itself.",gatewayLabel:"Gateway",gatewayHint:"Has to be inside the subnet. Empty means the first address in the range.",submit:"Create",creating:"Creating\u2026"},remove:{title:"Remove network?",description:e=>`'${e}' will be removed. Containers that are attached to it later will no longer find it.`,manyTitle:"Remove networks?",manyDescription:e=>`${rE(e)} will be removed. Networks with attached containers and the built-in networks are skipped.`},prune:{title:"Clean up unused networks?",description:"Every network without a container attached is removed. This frees no disk space; it keeps the list tidy.",confirm:"Clean up"},pruned:e=>`${rE(e)} removed.`,created:e=>`Network ${e} has been created.`}});var aE,lE=m(()=>{aE={title:"Settings",language:{heading:"Language",label:"Language of the app",hint:"Technical terms such as container, image and volume stay in English."},startup:{heading:"Startup",startAtLogin:"Start at sign-in, straight to the system tray",hintAvailable:"That way the notifications below also arrive when you don\u2019t open the app yourself. Turn it off here, or in Task Manager under Startup apps.",hintUnavailable:"Only works in the installed app. Here Windows would start a bare electron.exe."},notifications:{heading:"Notifications",crash:"When a container stops unexpectedly",unhealthy:"When a container becomes unhealthy",wiring:"When a container loses its network or its ports",hint:"A container you stop yourself, from the app, the terminal or compose down, never triggers a notification. The same container notifies at most once a minute."},update:{heading:"Updates",version:e=>`version ${e}`,install:"Restart and update",check:"Check now",auto:"Check for new versions and download them in advance",unavailable:"Only the installed app on Windows updates itself. With npm, you update through npm.",idle:"A new version is downloaded and installed as soon as you close the app.",checking:"Checking for a new version\u2026",upToDate:e=>`This is the latest version. Checked at ${e}.`,downloading:(e,t)=>`Downloading version ${e}\u2026 ${String(t)}%`,ready:e=>`Version ${e} is ready and will be installed when you close the app. Restart to install it now.`,error:e=>`Checking failed: ${e}`},servers:{heading:"Servers",hint:"Docker hosts over SSH or TCP. They are stored as docker contexts, so the docker CLI knows them too. Switch between them with the picker in the status bar.",empty:"No servers yet.",inUse:"in use",cli:"CLI",test:"Test",testing:"Testing\u2026",remove:"Remove",removeBlocked:"In use by the app or the docker CLI. Switch to another context first.",removeTitle:e=>`Remove server '${e}'?`,removeDescription:"This removes the docker context, also for the docker CLI. Nothing changes on the server itself.",connected:(e,t,n)=>`Connected: Docker ${e} on ${t}/${n}.`,unknownHostKey:(e,t)=>`${e} is not known yet. Compare this ${t} fingerprint with the one on the server (ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub) before trusting it:`,trust:"Trust and test again",add:{heading:"Add a server",name:"Name",namePlaceholder:"homeserver",kind:"Connection",ssh:"SSH",tcp:"TCP",username:"User",usernamePlaceholder:"empty: user of this computer",host:"Host",hostPlaceholder:"192.168.1.16",port:"Port",description:"Description",descriptionPlaceholder:"optional",submit:"Add",tcpWarning:"Plain TCP has no authentication: anyone on the network who reaches the port controls Docker. Prefer SSH.",added:e=>`Server '${e}' added.`}},assistant:{configured:"A key is set.",clearKey:"Remove key",keyLabel:"API key",model:"Model",modelHint:"Opus reasons best about a stubborn problem; Sonnet and Haiku answer faster and cost less. Haiku also reads less at once.",hint:"With your own Claude API key, every container gets a Claude tab that helps look into a problem. The key is stored encrypted on this computer, readable only by your Windows user. Each question costs a few cents of API usage, on your account."}}});var cE,uE=m(()=>{cE={nav:{label:"Main navigation",dashboard:"Dashboard",containers:"Containers",images:"Images",volumes:"Volumes",networks:"Networks",compose:"Compose",logs:"Logs",terminal:"Terminal",settings:"Settings"},routes:{container:"Container"},header:{search:"Search (Ctrl+K)",lightTheme:"Light theme",darkTheme:"Dark theme",quit:"Quit Docker Client MX"},statusBar:{connecting:"Connecting to Docker\u2026",engineRunning:"Engine running",engineUnreachable:"Engine unreachable",containers:(e,t)=>`${String(e)} of ${String(t)} containers`,images:e=>e===1?"1 image":`${String(e)} images`,reconnect:"Reconnect"},contextPicker:{label:"Docker context",switching:"Switching\u2026",unsupported:"not supported",inUseByCli:"in use by the CLI"},actionMenu:{label:"Actions"},confirmDialog:{confirm:"Remove"},dataTable:{empty:"Nothing found.",selectAll:"Select all",clearSelection:"Clear selection",select:e=>`Select ${e}`},jsonView:{expand:e=>`Expand: ${e}`,collapse:e=>`Collapse: ${e}`,empty:"Nothing to show."},toast:{region:"Notifications (F8)",close:"Close notification"},usageChart:{ago:e=>`${e} ago`,max:e=>`max ${e}`,now:"now",values:(e,t,n)=>`now ${e}, highest ${t}, lowest ${n}`,noData:e=>`${e}: no measurements yet.`,summary:(e,t,n)=>`${e} over the last ${t}: ${n}.`},palette:{title:"Go to",description:"Type to search pages, containers, images, volumes and networks. Arrow keys choose, Enter runs.",placeholder:"Search for a page, container, image, volume or network\u2026",results:"Results",empty:"Nothing found.",groups:{page:"Page",container:"Container",image:"Image",volume:"Volume",compose:"Compose",network:"Network"},start:e=>`Start ${e}`,stop:e=>`Stop ${e}`,restart:e=>`Restart ${e}`,diagnose:e=>`Diagnose ${e}`,imageInUse:e=>`Image \xB7 used by ${String(e)} ${e===1?"container":"containers"}`,imageUnused:"Image \xB7 unused",network:e=>`Network \xB7 ${e}`,composeDetail:(e,t)=>`Compose \xB7 ${String(e)} of ${String(t)} running`,composeUp:e=>`${e}: up`,composeFile:e=>`${e}: show the compose file`,composeDown:e=>`${e}: down\u2026`,recreate:e=>`Rebuild ${e}`,recreateDetail:"up --force-recreate for this service only",volumeBrowse:e=>`Look inside ${e}`,networkMembers:e=>`Who is connected to ${e}`}}});var dE,hE=m(()=>{dE={title:"Terminal",intro:{start:"A shell on the machine where the Docker daemon runs, such as your WSL distro.",afterDocker:" works as usual here. You are ",afterRoot:": the shell runs through a short-lived, privileged ",afterAlpine:" container that disappears as soon as you close the shell or this page."},tabsLabel:"Terminal",tabs:{terminal:"Terminal",assistant:"Claude"},loading:"Loading terminal\u2026"}});var fE,op,pE,gE=m(()=>{fE=e=>`${String(e)} volume${e===1?"":"s"}`,op=e=>`${String(e)} container${e===1?"":"s"}`,pE={title:"Volumes",diskSpace:"Disk space",calculating:"calculating\u2026",unused:"Unused",menuLabel:"Volume actions",searchLabel:"Search by name",onlyUnused:"Only unused volumes",refreshing:"Refreshing\u2026",selected:e=>`${String(e)} selected`,empty:"No volumes found.",columns:{name:"Name",driver:"Driver",inUse:"In use",created:"Created",size:"Size",actions:"Actions"},containerCount:op,rowMenu:e=>`Actions for ${e}`,rowBrowse:"Look inside\u2026",browse:{title:e=>`Inside ${e}`,description:"Read-only, through a short-lived helper container. It disappears when you close this.",loading:"Loading\u2026",empty:"This folder is empty.",up:"Up one folder",path:"Path in the volume"},rowBackup:"Back up as .tar",rowRestore:"Restore backup\u2026",backupTitle:e=>`Back up ${e} as .tar`,backupTitleInUse:e=>`Back up ${e}. It is in use: a database that writes during the backup can leave a backup that does not always restore. Stop that container first, or use its own dump.`,restoreTitle:e=>`Restore a backup into ${e}`,inUseReason:e=>`In use by ${op(e)}; remove or stop them first`,menu:{create:"Create volume\u2026",pruneAnonymous:"Clean up anonymous",pruneUnused:"Clean up unused"},createDialog:{title:"Create volume",description:"An empty volume with a name, to attach to a container later.",nameLabel:"Name",namePlaceholder:"my-data",storageLabel:"Where is the data stored?",storage:{docker:"Managed by Docker",dockerHint:"Recommended. Docker decides where the data goes.",folder:"A folder on the Docker machine",folderHint:"An existing folder, for example to share files with a container.",nfs:"An NFS share on the network",nfsHint:"A shared folder on a NAS or server."},folderLabel:"Folder",folderHint:"The folder must already exist on the machine running Docker. On WSL, C:\\data is /mnt/c/data.",nfsServerLabel:"Server",nfsPathLabel:"Shared folder",nfsHint:"Only checked when a container starts using this volume.",advanced:"Advanced",driverLabel:"Driver",driverHint:"Leave this at local unless you use a volume plugin.",submit:"Create",creating:"Creating\u2026"},restore:{title:e=>`Restore a backup into ${e}?`,description:e=>"Files with the same name are overwritten; anything not in the backup stays. "+(e>0?`First stop the ${op(e)} using this volume: a running database does not notice that its files have changed. `:"")+"You pick the file next.",confirm:"Choose file"},remove:{title:"Remove volume?",description:e=>`All data in '${e}' will be lost. This cannot be undone.`,manyTitle:"Remove volumes?",manyDescription:e=>`All data in ${fE(e)} will be lost. Volumes that are still in use are skipped.`},prune:{allTitle:"Clean up all unused volumes?",allDescription:"Every volume without a container attached is removed, including named volumes you created yourself. The data in them is gone afterwards.",anonymousTitle:"Clean up anonymous volumes?",anonymousDescription:"Volumes without a name that no container uses any more are removed. These are usually leftovers from containers that are already gone.",confirm:"Clean up"},created:e=>`Volume ${e} has been created.`,pruned:(e,t)=>`${fE(e)} removed, ${t} freed.`,backedUp:(e,t)=>`Backup of ${e} saved as ${t}.`,restored:(e,t)=>`${e} has been restored into ${t}.`}});var mE,vE=m(()=>{VC();UC();qC();KC();ZC();eE();nE();oE();lE();uE();hE();gE();mE={common:jC,compose:zC,containers:WC,dashboard:GC,format:YC,images:JC,logs:tE,networks:sE,settings:aE,shell:cE,terminal:dE,volumes:pE}});var _E,yE=m(()=>{_E={cancel:"Annuleren",close:"Sluiten",remove:"Verwijderen",retry:"Opnieuw proberen",refresh:"Verversen",search:"Zoeken",loading:"Laden\u2026",save:"Bewaren",copy:"Kopi\xEBren",copied:"Gekopieerd",start:"Starten",stop:"Stoppen",restart:"Herstarten",yes:"Ja",no:"Nee",none:"Geen",unknown:"Onbekend",nothingToPrune:"Er was niets op te ruimen."}});var bE,wE=m(()=>{bE={title:"Compose",intro:"Projecten uit de labels op je containers. Een project dat stilligt staat er ook in, zolang zijn containers nog bestaan.",updating:"Bijwerken\u2026",state:{running:"draait",partial:"deels",stopped:"gestopt"},runningOf:(e,t)=>`${String(e)} van ${String(t)}`,expand:e=>`Uitklappen: ${e}`,collapse:e=>`Inklappen: ${e}`,menuAria:e=>`Acties voor ${e}`,upAria:e=>`Up ${e}`,startAria:e=>`Start ${e}`,stopAria:e=>`Stop ${e}`,restartAria:e=>`Herstart ${e}`,downAria:e=>`Down ${e}`,up:"Up",down:"Down",fileAria:e=>`Toon het compose-bestand van ${e}`,file:{button:"Bestand",title:e=>`Het compose-bestand van ${e}`,loading:"Ophalen\u2026",raw:"Zoals het er staat",resolved:"Zoals compose het leest",rawHint:"Het bestand op schijf, ongewijzigd.",resolvedHint:"Overrides samengevoegd en ${VAR} ingevuld: hierop is het draaiende project gebaseerd.",empty:"Dit bestand is leeg.",copyFailed:e=>`Kopi\xEBren lukte niet: ${e}`},noCli:"De docker CLI is niet beschikbaar",noWorkingDir:"Van dit project is niet bekend waar het staat",busy:"Bezig\u2026 een up kan even duren als er images opgehaald worden.",empty:"Geen compose-projecten gevonden. Ze verschijnen hier zodra er containers met compose-labels zijn.",downDialog:{title:"Project afbreken?",description:e=>`De containers en netwerken van '${e}' worden gestopt en verwijderd. Volumes blijven staan, dus je gegevens blijven behouden.`,confirm:"Afbreken"},recreate:"Opnieuw",recreateAria:e=>`${e} opnieuw opbouwen`,recreateTitle:"docker compose up -d --no-deps --force-recreate",recreateDone:e=>`${e} is opnieuw opgebouwd.`,upDone:e=>`'${e}' is opgestart.`,downDone:e=>`'${e}' is afgebroken.`}});var SE,CE=m(()=>{SE={actions:{pause:"Pauzeren",resume:"Hervatten",copyDiagnosis:"Diagnose kopi\xEBren",copyRunCommand:"Run-commando kopi\xEBren",restartPolicy:"Restart policy\u2026",recreate:"Opnieuw opbouwen"},page:{title:"Containers",cpuUsage:"CPU-gebruik",memoryUsage:"Geheugengebruik",search:"Zoeken op naam, image of ID",onlyRunning:"Alleen draaiende containers",updating:"Bijwerken\u2026",selected:e=>`${String(e)} geselecteerd`,empty:"Geen containers gevonden.",columns:{name:"Naam",id:"Container ID",image:"Image",ports:"Poorten",cpu:"CPU",memory:"Geheugen",actions:"Acties"},group:{loose:"Losse containers",expand:e=>`Uitklappen: ${e}`,collapse:e=>`Inklappen: ${e}`,count:e=>`${String(e)} container${e===1?"":"s"}`,running:e=>`${String(e)} ${e===1?"draait":"draaien"}`,startAll:"Alles starten",stopAll:"Alles stoppen",restartAll:"Alles herstarten",removeAll:"Alles verwijderen",menu:e=>`Acties voor alles in ${e}`,manual:"Eigen groep",addToGroup:"Aan groep toevoegen\u2026",removeFromGroup:"Uit groep halen",rename:"Groep hernoemen\u2026",dissolve:"Groep opheffen"},groupDialog:{assignTitle:"Aan groep toevoegen",assignOne:e=>`'${e}' komt in de groep die je hier een naam geeft.`,assignMany:e=>`${String(e)} containers komen in de groep die je hier een naam geeft.`,renameTitle:"Groep hernoemen",renameDescription:e=>`Alles in '${e}' verhuist mee naar de nieuwe naam.`,nameLabel:"Groepsnaam",namePlaceholder:"bijvoorbeeld mijn-stack",existing:"Bestaande groepen",hint:"Een eigen groep leeft in deze app en volgt de containernaam; Docker zelf weet er niets van.",empty:"Vul een naam in.",reserved:e=>`'${e}' is al de naam van een Compose-project.`,submit:"Opslaan"},row:{diagnosisOf:e=>`Diagnose van ${e}`,missingNetwork:e=>`Draait, maar hangt niet aan ${e}`,menu:e=>`Acties voor ${e}`},confirm:{title:"Container verwijderen?",one:e=>`'${e}' wordt gestopt en verwijderd. Dit kan niet ongedaan gemaakt worden; volumes blijven staan.`,many:e=>`${String(e)} containers wordt gestopt en verwijderd. Dit kan niet ongedaan gemaakt worden; volumes blijven staan.`,group:(e,t)=>`de ${String(e)} containers van '${t}' wordt gestopt en verwijderd. Dit kan niet ongedaan gemaakt worden; volumes blijven staan.`}},detail:{back:"\u2039 Containers",menu:"Acties voor deze container",gone:" bestaat niet meer. Een container met --rm verdwijnt na het stoppen, en compose maakt bij up een nieuwe aan.",goneUnnamed:"Deze container bestaat niet meer.",successor:(e,t)=>`Naar de huidige ${e} (${t})`,tabsLabel:"Containerdetails",tabs:{logs:"Logs",health:"Health",events:"Gebeurtenissen",inspect:"Inspect",stats:"Stats",terminal:"Terminal",files:"Bestanden",networks:"Netwerken",assistant:"Claude"},wiring:{network:e=>`Draait, maar hangt niet aan ${e}. Via dat netwerk bereikt niets hem, en hij niets.`,networkWhy:"Dat gebeurt als het netwerk weggehaald en opnieuw gemaakt werd terwijl de container bestond.",connect:e=>`Aanhangen aan ${e}`,ports:e=>`Draait, maar publiceert ${e} niet.`,portsWhy:"Dat gebeurt als hij nog eens gestart werd na een start die op een bezette poort mislukte.",portsFromNetwork:"Dat volgt uit het ontbrekende netwerk hierboven: poorten lopen via een netwerk.",restart:"Herstarten"},events:{loading:"Ophalen\u2026",empty:"Nog niets bijgehouden. De app houdt het bij vanaf het moment dat hij start, plus wat Docker dan nog wist.",scope:"Bijgehouden in de app sinds hij startte, tot 100 per containernaam; na een herstart van de app vult Docker aan wat hij nog weet.",crashLoop:e=>`Het afgelopen uur ${String(e)} keer omgevallen.`,create:"Aangemaakt",start:"Gestart",exited:e=>e===0?"Netjes gestopt":`Gestopt met code ${String(e)}`,exitedUnknown:"Gestopt",exitHint137:"SIGKILL: van buitenaf afgeschoten, vaak geheugen vol of een stop die te lang duurde",exitHint143:"SIGTERM: gevraagd te stoppen",kill:e=>`${e} gestuurd`,oom:"Door de kernel gestopt: geheugen vol",stop:"Gestopt",restart:"Herstart",pause:"Gepauzeerd",unpause:"Hervat",destroy:"Verwijderd",rename:e=>`Hernoemd, was ${e}`,renamed:"Hernoemd",health:{starting:"Healthcheck begint",healthy:"Healthy geworden",unhealthy:"Unhealthy geworden"}},health:{loading:"Ophalen\u2026",refresh:"Verversen",status:{starting:"starting",healthy:"healthy",unhealthy:"unhealthy",unknown:"nog niet gedraaid"},failingStreak:e=>e===1?"\xE9\xE9n keer mislukt":`${String(e)} keer op rij mislukt`,command:"Commando",fromImage:"Komt uit de image; de daemon noemt het commando zelf niet.",rhythm:"Ritme",every:e=>`elke ${e}`,timeout:e=>`timeout ${e}`,startPeriod:e=>`start period ${e}`,retries:e=>e===1?"1 poging voor unhealthy":`${String(e)} pogingen voor unhealthy`,defaults:"de standaard van Docker",probes:"Laatste uitslagen",noProbes:"De check heeft nog niet gedraaid.",exitCode:e=>`exitcode ${String(e)}`,unknownExitCode:"geen exitcode",noOutput:"geen uitvoer"},networks:{title:"Hangt aan deze netwerken",loading:"Ophalen\u2026",empty:"Deze container hangt aan geen enkel netwerk.",noAddress:"geen adres",alsoKnownAs:e=>`ook bereikbaar als ${e}`,disconnect:"Loskoppelen",disconnectFrom:e=>`Loskoppelen van ${e}`,addTitle:"Aan een netwerk koppelen",addHint:"Werkt meteen, ook terwijl de container draait.",allConnected:"Deze container hangt al aan elk netwerk.",networkLabel:"Netwerk",choose:"Kies een netwerk\u2026",alias:"Extra naam in het netwerk",aliasHint:"Een extra naam waarop de andere containers op dit netwerk hem kunnen aanspreken, naast de containernaam.",aliasPlaceholder:"database",connect:"Koppelen",working:"Bezig\u2026",invalidAlias:e=>`'${e}' is geen geldige naam. Gebruik letters, cijfers, punt, streepje en underscore.`},fetching:"Ophalen\u2026",terminalLoading:"Terminal laden\u2026",shellOnlyRunning:"Een shell openen kan alleen in een draaiende container.",cpu:"CPU",lastMinute:e=>`laatste minuut \xB7 piek ${e}%`,chartPending:"grafiek verschijnt na een paar metingen",memory:"Geheugen",ofLimit:e=>`${e}% van de limiet`,noLimit:"geen limiet ingesteld",statsOnlyRunning:"Metingen lopen alleen voor een draaiende container.",confirmTitle:"Container verwijderen?",confirmDescription:"Deze container wordt gestopt en verwijderd. Dit kan niet ongedaan gemaakt worden; volumes blijven staan."},diagnosis:{title:"Diagnose kopi\xEBren",description:"Status, health, mounts, events en de laatste logregels, om in een chat of een issue te plakken. Dit is precies wat er gekopieerd wordt.",collecting:"Verzamelen\u2026",noRedactions:"Niets weggelaten; er stond geen waarde in die op een geheim leek.",redactions:e=>`${String(e)} ${e===1?"waarde":"waarden"} weggelaten: omgevingsvariabelen en wat op een wachtwoord, token of sleutel leek.`,copyFailed:e=>`Kopi\xEBren lukte niet: ${e}`},restartPolicy:{title:"Restart policy",description:"Wat de daemon doet als deze container stopt. Werkt meteen; de container wordt er niet voor opnieuw gemaakt.",loading:"Ophalen\u2026",label:"Beleid",names:{no:"Nooit",always:"Altijd","unless-stopped":"Tenzij je hem zelf stopte","on-failure":"Alleen na een foutcode"},maximum:"Hoogstens zoveel pogingen",maximumHint:"0 betekent blijven proberen.",save:"Opslaan",saving:"Opslaan\u2026",saved:e=>`De restart policy staat nu op ${e}.`},runCommand:{title:"Run-commando kopi\xEBren",description:"Het commando waarmee je deze container opnieuw maakt, afgeleid uit inspect. Wat uit de image komt, blijft weg.",building:"Afleiden\u2026",composeNote:e=>`Deze container hoort bij compose-project ${e}, en daar is docker compose up het antwoord. Dit is hoe hij nu draait.`,envWarning:e=>`${e===1?"Er staat 1 omgevingsvariabele":`Er staan ${String(e)} omgevingsvariabelen`} in, wachtwoorden en al: het commando moet werken.`,noEnv:"Geen eigen omgevingsvariabelen.",copyFailed:e=>`Kopi\xEBren lukte niet: ${e}`},logs:{filter:"Filteren op tekst",follow:"Volgen",timestamps:"Tijdstempels",clear:"Wissen",connecting:"Verbinden\u2026",count:(e,t)=>`${String(e)} van ${String(t)} regels`,truncated:"oudste regels afgevallen",empty:"Nog geen logregels.",noMatches:"Geen regels die daarop passen."},files:{up:"Map omhoog",path:"Pad in de container",refresh:"Vernieuwen",changed:"Gewijzigd",changesTitle:"Gewijzigd ten opzichte van de image",changesCount:e=>e===1?"1 pad":`${String(e)} paden`,changesEmpty:"Deze container heeft niets veranderd aan zijn image.",changesHint:"Mappen die alleen meeveranderden omdat er iets in zit, staan er niet bij. Volumes tellen niet mee.",changeKind:{added:"toegevoegd",modified:"gewijzigd",deleted:"verwijderd"},openFolderOf:e=>`Open de map van ${e}`,upload:"Uploaden\u2026",empty:"Deze map is leeg.",downloadFolder:e=>`Map downloaden als tar: ${e}`,downloadFile:e=>`Downloaden: ${e}`,hint:e=>`Sleep bestanden hierheen om ze in ${e} te zetten. Een map downloaden geeft een .tar, zodat rechten en symlinks bewaard blijven.`,savedAs:e=>`Opgeslagen als ${e}.`,uploaded:(e,t)=>`${String(e)} ${e===1?"bestand":"bestanden"} in ${t} gezet.`},terminal:{exited:"De shell is afgesloten.",reopen:"Opnieuw openen",connecting:"Verbinden\u2026",connected:"verbonden"},assistant:{introHost:"Claude krijgt een overzicht van de engine en de containers, en leest zelf mee in de terminal of vraagt logs en inspect op. Elke opvraging staat hieronder, en geheimen worden weggelaten. Claude typt zelf niets: een voorgesteld commando wordt een knop die het op de prompt zet, en jij drukt op Enter.",introContainer:"Claude krijgt de diagnose van deze container, zonder geheimen, en vraagt daarna zelf logs, inspect, events of de andere containers op. Elke opvraging staat hieronder. Claude verandert zelf niets: een voorstel wordt een knop, en jij beslist.",defaultQuestion:"Wat is er met deze container aan de hand, en wat kan ik eraan doen?",defaultHostQuestion:"Wat zie je in de terminal, en wat betekent het?",onPrompt:"Staat op de prompt",done:"Gedaan",thinking:"Claude denkt na\u2026",questionLabel:"Vraag aan Claude",followUp:"Vervolgvraag",ask:"Vraag Claude",putInTerminal:"In de terminal zetten",composeUp:e=>`compose up voor ${e}`,start:e=>`${e} starten`,stop:e=>`${e} stoppen`,restart:e=>`${e} herstarten`,panelClosed:"Het paneel is gesloten.",usage:(e,t,n)=>`${e} tokens in, ${t} uit de cache, ${n} uit`}}});var EE,DE=m(()=>{EE={title:"Dashboard",engine:{connecting:"Verbinden met Docker\u2026",running:"Engine draait",unreachable:"Engine niet bereikbaar",startDistro:e=>`${e} starten`,startingDistro:e=>`${e} starten\u2026`,startDaemon:e=>`Docker starten in ${e}`,startingDaemon:e=>`Docker starten in ${e}\u2026`,daemonHint:e=>`${e} draait, dus het is de daemon erin die stilstaat. De app kan hem daar starten.`,idleHint:{intro:e=>`${e} is eerder gestart en toch weer gestopt. WSL legt een distro zonder open sessie na 15 seconden stil; zet`,under:"onder",in:"in",outro:"om hem te laten draaien."}},contexts:{switchFailed:e=>`Omschakelen naar ${e} lukte niet`},usage:{cpu:"CPU over alle containers",memory:"Geheugen",memoryChart:"Geheugen over alle containers",network:"Netwerk over alle containers",networkChart:"Netwerkverkeer over alle containers",received:"Ontvangen",sent:"Verzonden",receivedAria:"ontvangen",sentAria:"verzonden",hostNote:"Containers met network_mode: host tellen niet mee; die hebben geen eigen tellers."},counts:{containers:"Containers",runningOfTotal:"draaiend van totaal",images:"Images",volumesNetworks:"Volumes \xB7 netwerken"},disk:{title:"Schijfgebruik",total:e=>`${e} samen`,calculating:"berekenen\u2026",prune:"Opruimen",pruning:"Opruimen\u2026",unused:e=>`${String(e)} ongebruikt`,labels:{images:"Images",containers:"Containers",volumes:"Volumes",buildCache:"Build cache"},footnoteBefore:"Dezelfde cijfers als",footnoteAfter:". Hoeveel ruimte opruimen precies oplevert staat er niet bij: dat verrekent gedeelde lagen, en een schatting die als feit oogt is erger dan geen getal."},attention:{title:"Aandacht nodig",none:"Alles klopt: geen crashlussen, niets unhealthy, alles aangesloten.",loading:"Nakijken\u2026",crashLoop:e=>`het afgelopen uur ${String(e)} keer omgevallen`,restarting:"blijft herstarten",unhealthy:"healthcheck faalt",network:e=>`draait, maar hangt niet aan ${e}`,ports:e=>`draait, maar publiceert ${e} niet`},stopped:{title:"Onlangs gestopt",none:"Er staat niets stil.",clean:"netjes gestopt",failed:e=>`afgebroken met code ${String(e)}`,created:e=>`${e} aangemaakt`},pruneDialog:{title:"Opruimen",description:"Wat je aanvinkt wordt verwijderd en is niet terug te halen.",confirm:"Opruimen",containers:"Gestopte containers",containersHint:"Een gepauzeerde container blijft staan.",networks:"Ongebruikte netwerken",networksHint:"bridge, host en none blijven altijd staan.",images:"Images zonder tag",imagesHint:"Meestal restanten van een nieuwere build.",allImages:"Ook getagde images zonder container",allImagesHint:"Die moet je daarna opnieuw pullen.",buildCache:"Build cache",buildCacheHint:"Alles wat niet in gebruik is. Een volgende build duurt langer.",volumes:"Anonieme volumes",volumesHint:"Volumes met een naam blijven staan. Hierin zit data."},pruneResult:{removed:{containers:e=>`${String(e)} containers`,networks:e=>`${String(e)} netwerken`,volumes:e=>`${String(e)} volumes`,images:e=>`${String(e)} images`,buildCache:e=>`${String(e)} build-cache-items`},kinds:{containers:"containers",networks:"netwerken",volumes:"volumes",images:"images",buildCache:"build-cache-items"},and:"en",notice:(e,t)=>`${e} verwijderd, ${t} vrijgemaakt.`,problem:e=>`Niet gelukt bij ${e}`}}});var kE,IE=m(()=>{kE={justNow:"net",hoursAgo:e=>`${String(e)} uur geleden`,yesterday:"gisteren",daysAgo:e=>`${String(e)} dagen geleden`,lastMonth:"vorige maand",monthsAgo:e=>`${String(e)} maanden geleden`,lastYear:"vorig jaar",yearsAgo:e=>`${String(e)} jaar geleden`}});var xE,TE=m(()=>{xE={title:"Images",diskSpace:"Schijfruimte",unused:"Ongebruikt",menuLabel:"Acties voor images",searchLabel:"Zoeken op repository, tag of ID",onlyUnused:"Alleen ongebruikte images",refreshing:"Bijwerken\u2026",updatesHint:"Bijwerken haalt de nieuwe image op. Een container die al draait houdt de oude tot hij opnieuw aangemaakt wordt; voor een container uit een compose-project biedt de app dat na het ophalen aan.",selected:e=>`${String(e)} geselecteerd`,empty:"Geen images gevonden.",columns:{repository:"Repository",tag:"Tag",imageId:"Image ID",inUse:"In gebruik",created:"Aangemaakt",size:"Grootte",actions:"Acties"},badge:{newer:"nieuwere versie",notInRegistry:"niet in registry",uncheckable:"niet te controleren"},containerCount:e=>`${String(e)} container${e===1?"":"s"}`,updateTitle:e=>`Bijwerken: ${e} opnieuw ophalen`,rowMenu:e=>`Acties voor ${e}`,rowUpdate:"Nieuwere versie ophalen",rowRun:"Container starten\u2026",rowLayers:"Lagen\u2026",runLabel:e=>`Container starten van ${e}`,runLabelDangling:"Container starten van deze ongetagde image",layers:{title:e=>`Lagen van ${e}`,description:"Nieuwste eerst, zoals docker history ze toont: de laatste regel van de Dockerfile bovenaan.",loading:"Ophalen\u2026",summary:(e,t)=>`${e===1?"1 laag":`${String(e)} lagen`} \xB7 image ${t}`,packed:e=>`De lagen tellen op tot ${e}: bij deze opslag meldt Docker elke laag zoals hij binnenkwam, ingepakt. Op schijf is de image groter.`,noSize:"verandert niets op schijf",expand:"Het hele commando tonen",empty:"Deze image meldt geen lagen."},menu:{pull:"Image ophalen",check:"Op updates controleren",checking:"Controleren\u2026",pruneDangling:"Ongetagd opruimen",pruneUnused:"Ongebruikt opruimen"},remove:{title:"Image verwijderen?",description:e=>`'${e}' wordt verwijderd. Heeft deze image nog andere tags, dan verdwijnt alleen deze tag.`,forceTitle:"Image forceren te verwijderen?",forceDescription:(e,t)=>`'${e}' wordt gebruikt door ${String(t)} container(s). Verwijderen lukt alleen geforceerd, en die containers werken daarna niet meer.`,forceConfirm:"Toch verwijderen",manyTitle:"Images verwijderen?",manyDescription:e=>`${String(e)} images worden verwijderd. Images die nog in gebruik zijn worden overgeslagen.`},prune:{allTitle:"Alle ongebruikte images opruimen?",allDescription:"Alles waar geen container aan hangt wordt verwijderd, ook images die je zelf hebt opgehaald. Je moet ze daarna opnieuw pullen.",danglingTitle:"Ongetagde images opruimen?",danglingDescription:"Images zonder tag worden verwijderd. Dat zijn meestal restanten van een nieuwere build.",confirm:"Opruimen"},pruned:(e,t)=>`${String(e)} images verwijderd, ${t} vrijgemaakt.`,check:{allCurrent:"Alles is bijgewerkt",updates:e=>`${String(e)} ${e===1?"image heeft":"images hebben"} een nieuwere versie`,notInRegistry:e=>`${String(e)} niet in een registry`,uncheckable:e=>`${String(e)} niet te controleren`,summary:(e,t)=>`${e} (${String(t)} gecontroleerd).`},pullDialog:{title:"Image ophalen",nameAndTag:"Naam en tag, bijvoorbeeld",withoutTag:"Zonder tag wordt",isUsed:"gebruikt.",inputLabel:"Image",submit:"Ophalen",staleHeading:"Deze containers draaien nog op de vorige versie:",inProject:e=>`in ${e}`,notCompose:"niet met compose gestart; die maak je zelf opnieuw aan",renewed:e=>`Vernieuwd: ${e}.`,renew:"Containers vernieuwen",renewing:"Vernieuwen\u2026",renewHint:"Met compose, alleen deze services."},runDialog:{title:"Container starten",fromImage:"Vanaf image",name:"Naam",namePlaceholder:"leeg laten = Docker kiest er een",autoRestart:"Automatisch herstarten",autoRestartHint:"Na een crash of als Docker opnieuw opstart. Niet als je hem zelf stopt.",ports:"Poorten",portsHint:"Maak een poort van de container bereikbaar vanaf deze computer, bijvoorbeeld localhost:8080.",onThisComputer:"Op deze computer",inContainer:"In de container",protocolHeader:"Protocol",hostPortPlaceholder:"leeg = een vrije poort",addPort:"Poort toevoegen",hostPort:e=>`Hostpoort ${String(e)}`,containerPort:e=>`Containerpoort ${String(e)}`,protocol:e=>`Protocol ${String(e)}`,removePort:e=>`Poort ${String(e)} weghalen`,network:"Netwerk",networkHint:"Containers op een netwerk dat je zelf gemaakt hebt, kunnen elkaar op naam bereiken. Op het standaardnetwerk niet.",networkDefault:"Standaard (bridge)",networkAlias:"Extra naam in het netwerk",networkAliasHint:"Een extra naam waarop de andere containers op dit netwerk hem kunnen aanspreken, naast de containernaam.",networkAliasPlaceholder:"database",invalidAlias:e=>`'${e}' is geen geldige naam. Gebruik letters, cijfers, punt, streepje en underscore.`,volumes:"Volumes",volumesHint:"Gegevens die de container moeten overleven: een volume, of een map op de Docker-machine.",source:"Volume of map",addVolume:"Volume toevoegen",sourcePlaceholder:"mijn-data of /srv/data",targetPlaceholder:"/pad/in/container",volumeSource:e=>`Volumebron ${String(e)}`,volumeTarget:e=>`Volumedoel ${String(e)}`,readOnly:"alleen lezen",readOnlyHint:"De container kan de bestanden lezen, maar niet veranderen.",removeVolume:e=>`Volume ${String(e)} weghalen`,env:"Omgevingsvariabelen",envHint:"Instellingen voor het programma in de container. Je kunt ook NAAM=waarde plakken.",envNameHeader:"Naam",envValueHeader:"Waarde",addEnv:"Variabele toevoegen",envName:e=>`Naam variabele ${String(e)}`,envValue:e=>`Waarde variabele ${String(e)}`,removeEnv:e=>`Variabele ${String(e)} weghalen`,submit:"Starten",starting:"Starten\u2026",invalidContainerPort:e=>`'${e}' is geen geldige containerpoort. Gebruik een getal van 1 tot 65535.`,invalidHostPort:e=>`'${e}' is geen geldige hostpoort. Laat hem leeg om Docker er een te laten kiezen.`,volumeIncomplete:"Een volume heeft zowel een bron als een doel nodig.",notAbsolute:e=>`'${e}' is geen absoluut pad. Het doel in de container begint met een /.`,envNameMissing:"Een variabele heeft een naam nodig.",envNameWithEquals:e=>`'${e}' mag geen = bevatten; dat scheidt de naam van de waarde.`}}});var ME,NE=m(()=>{ME={title:"Logs",intro:"Alles wat je draaiende containers schrijven, op tijd door elkaar heen. Een container die start of stopt haakt vanzelf aan of af.",projectLabel:"Compose-project",allProjects:"Alle containers",searchLabel:"Zoeken in de logs",searchPlaceholder:"Zoeken, of een expressie zoals /error|warn/",caseSensitive:"Hoofdlettergevoelig zoeken",containers:"Containers",nothingRunning:"Er draait niets.",showAll:"Alles weer aanzetten",timestamps:"Tijdstempels",clear:"Wissen",columns:{time:"Tijd",object:"Object",line:"Regel"},allFiltered:e=>`Alle ${String(e)} regels vallen weg door het filter.`,empty:"Nog geen regels. Zodra een container iets schrijft staat het hier.",lineCount:e=>`${String(e)} regels`,filteredOut:e=>`${String(e)} weggefilterd`,truncated:"Oudere regels zijn uit de buffer gevallen.",invalidExpression:e=>`Geen geldige expressie: ${e}`,levels:{label:"Niveau",errors:"Fouten",warnings:"Waarschuwingen",unknownHidden:"Regels zonder herkenbaar niveau, zoals een stacktrace onder een fout, vallen weg bij dit filter."}}});var AE,RE=m(()=>{AE={title:"Networks",unused:"Ongebruikt",menuLabel:"Acties voor netwerken",searchLabel:"Zoeken op naam of driver",hideBuiltIn:"Ingebouwde netwerken verbergen",refreshing:"Bijwerken\u2026",selected:e=>`${String(e)} geselecteerd`,empty:"Geen netwerken gevonden.",builtIn:"ingebouwd",internal:"intern",columns:{name:"Naam",driver:"Driver",scope:"Scope",subnet:"Subnet",connected:"Aangesloten",actions:"Acties"},containerCount:e=>`${String(e)} container${e===1?"":"s"}`,rowMenu:e=>`Acties voor ${e}`,rowMembers:"Wie hangt eraan\u2026",members:{title:e=>`Aan ${e}`,description:"Dezelfde containers als waar het aantal op deze pagina op gebaseerd is, ook de gestopte.",loading:"Ophalen\u2026",empty:"Er hangt geen container aan dit netwerk.",noAddress:"geen adres",stopped:"gestopt"},builtInReason:"Ingebouwd netwerk van Docker; niet te verwijderen",connectedReason:e=>`${String(e)} container(s) aangesloten; koppel die eerst los`,menu:{create:"Netwerk aanmaken\u2026",pruneUnused:"Ongebruikt opruimen"},createDialog:{title:"Netwerk aanmaken",description:"Een eigen netwerk, waarop containers elkaar op naam vinden.",nameLabel:"Naam",namePlaceholder:"mijn-netwerk",internal:"Alleen intern",internalHint:"De containers bereiken elkaar, maar hebben geen route naar buiten.",advanced:"Geavanceerd",driverLabel:"Driver",driverHint:"Laat dit op bridge staan, tenzij je een swarm draait of een netwerkplugin gebruikt.",subnetLabel:"Subnet",subnetHint:"Laat dit leeg, dan kiest Docker zelf een bereik dat vrij is.",gatewayLabel:"Gateway",gatewayHint:"Moet in het subnet liggen. Leeg betekent het eerste adres uit het bereik.",submit:"Aanmaken",creating:"Bezig met aanmaken\u2026"},remove:{title:"Netwerk verwijderen?",description:e=>`'${e}' wordt verwijderd. Containers die er later aan gekoppeld worden, vinden het niet meer.`,manyTitle:"Netwerken verwijderen?",manyDescription:e=>`${String(e)} netwerken worden verwijderd. Netwerken met aangesloten containers en de ingebouwde netwerken worden overgeslagen.`},prune:{title:"Ongebruikte netwerken opruimen?",description:"Elk netwerk waar geen container aan hangt wordt verwijderd. Dit levert geen schijfruimte op; het houdt de lijst overzichtelijk.",confirm:"Opruimen"},pruned:e=>`${String(e)} netwerken verwijderd.`,created:e=>`Netwerk ${e} is aangemaakt.`}});var LE,OE=m(()=>{LE={title:"Instellingen",language:{heading:"Taal",label:"Taal van de app",hint:"Technische termen zoals container, image en volume blijven Engels."},startup:{heading:"Opstarten",startAtLogin:"Starten bij aanmelden, meteen in het systeemvak",hintAvailable:"Zo lopen de meldingen hieronder ook als je de app niet zelf opent. Uitzetten kan hier, of in Taakbeheer onder Opstarten.",hintUnavailable:"Kan alleen in de ge\xEFnstalleerde app. Hier zou Windows een kale electron.exe gaan starten."},notifications:{heading:"Meldingen",crash:"Als een container onverwacht stopt",unhealthy:"Als een container unhealthy wordt",wiring:"Als een container zijn netwerk of poorten kwijt is",hint:"Een container die je zelf stopt, uit de app, de terminal of compose down, geeft nooit een melding. Van dezelfde container komt hooguit \xE9\xE9n melding per minuut."},update:{heading:"Bijwerken",version:e=>`versie ${e}`,install:"Herstarten en bijwerken",check:"Nu zoeken",auto:"Zelf naar een nieuwe versie zoeken en die alvast binnenhalen",unavailable:"Alleen de ge\xEFnstalleerde app op Windows werkt zichzelf bij. Via npm werk je bij met npm.",idle:"Een nieuwe versie wordt binnengehaald en ge\xEFnstalleerd zodra je de app afsluit.",checking:"Zoeken naar een nieuwe versie\u2026",upToDate:e=>`Dit is de nieuwste versie. Gekeken om ${e}.`,downloading:(e,t)=>`Versie ${e} binnenhalen\u2026 ${String(t)}%`,ready:e=>`Versie ${e} staat klaar en wordt ge\xEFnstalleerd als je de app afsluit. Herstarten doet het nu.`,error:e=>`Zoeken lukte niet: ${e}`},servers:{heading:"Servers",hint:"Docker-hosts via SSH of TCP. Ze worden bewaard als docker contexts, dus de docker CLI kent ze ook. Wisselen doe je met de kiezer in de statusbalk.",empty:"Nog geen servers.",inUse:"in gebruik",cli:"CLI",test:"Testen",testing:"Bezig met testen\u2026",remove:"Verwijderen",removeBlocked:"In gebruik door de app of de docker CLI. Schakel eerst naar een andere context.",removeTitle:e=>`Server '${e}' verwijderen?`,removeDescription:"Dit haalt de docker context weg, ook voor de docker CLI. Op de server zelf verandert niets.",connected:(e,t,n)=>`Verbonden: Docker ${e} op ${t}/${n}.`,unknownHostKey:(e,t)=>`${e} is nog niet bekend. Vergelijk deze ${t}-vingerafdruk met die op de server (ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub) voordat je hem vertrouwt:`,trust:"Vertrouwen en opnieuw testen",add:{heading:"Server toevoegen",name:"Naam",namePlaceholder:"thuisserver",kind:"Verbinding",ssh:"SSH",tcp:"TCP",username:"Gebruiker",usernamePlaceholder:"leeg: gebruiker van deze computer",host:"Host",hostPlaceholder:"192.168.1.16",port:"Poort",description:"Omschrijving",descriptionPlaceholder:"optioneel",submit:"Toevoegen",tcpWarning:"Kaal TCP heeft geen authenticatie: wie de poort op het netwerk bereikt, bestuurt Docker. Kies liever SSH.",added:e=>`Server '${e}' toegevoegd.`}},assistant:{configured:"Er is een sleutel ingesteld.",clearKey:"Sleutel weghalen",keyLabel:"API-sleutel",model:"Model",modelHint:"Opus denkt het best na over een hardnekkig probleem; Sonnet en Haiku antwoorden sneller en kosten minder. Haiku leest ook minder in \xE9\xE9n keer.",hint:"Met een eigen sleutel van de Claude API krijgt elke container een tab Claude, die meekijkt bij een probleem. De sleutel staat versleuteld op deze computer, alleen leesbaar voor jouw Windows-gebruiker. Elke vraag kost een paar dubbeltjes aan API-gebruik, op jouw rekening."}}});var PE,$E=m(()=>{PE={nav:{label:"Hoofdnavigatie",dashboard:"Dashboard",containers:"Containers",images:"Images",volumes:"Volumes",networks:"Networks",compose:"Compose",logs:"Logs",terminal:"Terminal",settings:"Instellingen"},routes:{container:"Container"},header:{search:"Zoeken (Ctrl+K)",lightTheme:"Licht thema",darkTheme:"Donker thema",quit:"Docker Client MX afsluiten"},statusBar:{connecting:"Verbinden met Docker\u2026",engineRunning:"Engine draait",engineUnreachable:"Engine niet bereikbaar",containers:(e,t)=>`${String(e)} van ${String(t)} containers`,images:e=>`${String(e)} images`,reconnect:"Opnieuw verbinden"},contextPicker:{label:"Docker context",switching:"Omschakelen\u2026",unsupported:"niet ondersteund",inUseByCli:"in gebruik door de CLI"},actionMenu:{label:"Acties"},confirmDialog:{confirm:"Verwijderen"},dataTable:{empty:"Niets gevonden.",selectAll:"Alles selecteren",clearSelection:"Selectie opheffen",select:e=>`Selecteer ${e}`},jsonView:{expand:e=>`Uitklappen: ${e}`,collapse:e=>`Inklappen: ${e}`,empty:"Niets om te tonen."},toast:{region:"Meldingen (F8)",close:"Melding sluiten"},usageChart:{ago:e=>`${e} geleden`,max:e=>`max ${e}`,now:"nu",values:(e,t,n)=>`nu ${e}, hoogste ${t}, laagste ${n}`,noData:e=>`${e}: nog geen metingen.`,summary:(e,t,n)=>`${e} over de laatste ${t}: ${n}.`},palette:{title:"Snel naar",description:"Typ om te zoeken in pagina's, containers, images, volumes en netwerken. Pijltjes kiezen, Enter voert uit.",placeholder:"Zoek een pagina, container, image, volume of netwerk\u2026",results:"Resultaten",empty:"Niets gevonden.",groups:{page:"Pagina",container:"Container",image:"Image",volume:"Volume",compose:"Compose",network:"Netwerk"},start:e=>`${e} starten`,stop:e=>`${e} stoppen`,restart:e=>`${e} herstarten`,diagnose:e=>`${e} diagnose`,imageInUse:e=>`Image \xB7 in gebruik door ${String(e)}`,imageUnused:"Image \xB7 ongebruikt",network:e=>`Netwerk \xB7 ${e}`,composeDetail:(e,t)=>`Compose \xB7 ${String(e)} van ${String(t)} draaien`,composeUp:e=>`${e}: up`,composeFile:e=>`${e}: compose-bestand tonen`,composeDown:e=>`${e}: down\u2026`,recreate:e=>`${e} opnieuw opbouwen`,recreateDetail:"up --force-recreate voor alleen deze service",volumeBrowse:e=>`In ${e} kijken`,networkMembers:e=>`Wie hangt aan ${e}`}}});var FE,BE=m(()=>{FE={title:"Terminal",intro:{start:"Een shell op de machine waar de Docker-daemon draait, zoals je WSL-distro.",afterDocker:" werkt hier gewoon. Je bent ",afterRoot:": de shell loopt via een kortstondige, privileged ",afterAlpine:"-container die verdwijnt zodra je de shell of deze pagina sluit."},tabsLabel:"Terminal",tabs:{terminal:"Terminal",assistant:"Claude"},loading:"Terminal laden\u2026"}});var HE,jE=m(()=>{HE={title:"Volumes",diskSpace:"Schijfruimte",calculating:"berekenen\u2026",unused:"Ongebruikt",menuLabel:"Acties voor volumes",searchLabel:"Zoeken op naam",onlyUnused:"Alleen ongebruikte volumes",refreshing:"Bijwerken\u2026",selected:e=>`${String(e)} geselecteerd`,empty:"Geen volumes gevonden.",columns:{name:"Naam",driver:"Driver",inUse:"In gebruik",created:"Aangemaakt",size:"Grootte",actions:"Acties"},containerCount:e=>`${String(e)} container${e===1?"":"s"}`,rowMenu:e=>`Acties voor ${e}`,rowBrowse:"Inhoud bekijken\u2026",browse:{title:e=>`In ${e}`,description:"Alleen lezen, via een kortlevende hulpcontainer. Die gaat weg als je dit sluit.",loading:"Ophalen\u2026",empty:"Deze map is leeg.",up:"Map omhoog",path:"Pad in het volume"},rowBackup:"Back-up maken (.tar)",rowRestore:"Back-up terugzetten\u2026",backupTitle:e=>`Back-up van ${e} als .tar`,backupTitleInUse:e=>`Back-up van ${e}. Het is in gebruik: een database die tijdens de back-up schrijft, levert een back-up op die niet altijd terug te zetten is. Stop die container eerst, of gebruik zijn eigen dump.`,restoreTitle:e=>`Een back-up terugzetten in ${e}`,inUseReason:e=>`In gebruik door ${String(e)} container(s); verwijder of stop die eerst`,menu:{create:"Volume aanmaken\u2026",pruneAnonymous:"Anoniem opruimen",pruneUnused:"Ongebruikt opruimen"},createDialog:{title:"Volume aanmaken",description:"Een leeg volume met een naam, om later aan een container te koppelen.",nameLabel:"Naam",namePlaceholder:"mijn-data",storageLabel:"Waar komen de gegevens te staan?",storage:{docker:"Door Docker beheerd",dockerHint:"Aanbevolen. Docker bepaalt zelf waar de gegevens staan.",folder:"Een map op de Docker-machine",folderHint:"Een bestaande map, bijvoorbeeld om bestanden met een container te delen.",nfs:"Een NFS-share op het netwerk",nfsHint:"Een gedeelde map op een NAS of server."},folderLabel:"Map",folderHint:"De map moet al bestaan op de machine waar Docker draait. Onder WSL is C:\\data /mnt/c/data.",nfsServerLabel:"Server",nfsPathLabel:"Gedeelde map",nfsHint:"Dit wordt pas gecontroleerd als een container dit volume gaat gebruiken.",advanced:"Geavanceerd",driverLabel:"Driver",driverHint:"Laat dit op local staan, tenzij je een volume-plugin gebruikt.",submit:"Aanmaken",creating:"Aanmaken\u2026"},restore:{title:e=>`Back-up terugzetten in ${e}?`,description:e=>"Bestanden met dezelfde naam worden overschreven; wat niet in de back-up zit, blijft staan. "+(e>0?`Stop eerst de ${String(e)} container(s) die dit volume gebruiken: een database die draait, merkt niet dat zijn bestanden veranderd zijn. `:"")+"Je kiest het bestand hierna.",confirm:"Bestand kiezen"},remove:{title:"Volume verwijderen?",description:e=>`Alle gegevens in '${e}' gaan verloren. Dit kan niet ongedaan gemaakt worden.`,manyTitle:"Volumes verwijderen?",manyDescription:e=>`Alle gegevens in ${String(e)} volumes gaan verloren. Volumes die nog in gebruik zijn worden overgeslagen.`},prune:{allTitle:"Alle ongebruikte volumes opruimen?",allDescription:"Elk volume waar geen container aan hangt wordt verwijderd, ook de volumes met een naam die je zelf hebt aangemaakt. De gegevens erin zijn daarna weg.",anonymousTitle:"Anonieme volumes opruimen?",anonymousDescription:"Volumes zonder naam die geen container meer gebruikt worden verwijderd. Dat zijn meestal restanten van containers die al weg zijn.",confirm:"Opruimen"},created:e=>`Volume ${e} is aangemaakt.`,pruned:(e,t)=>`${String(e)} volumes verwijderd, ${t} vrijgemaakt.`,backedUp:(e,t)=>`Back-up van ${e} opgeslagen als ${t}.`,restored:(e,t)=>`${e} is teruggezet in ${t}.`}});var VE,zE=m(()=>{yE();wE();CE();DE();IE();TE();NE();RE();OE();$E();BE();jE();VE={common:_E,compose:bE,containers:SE,dashboard:EE,format:kE,images:xE,logs:ME,networks:AE,settings:LE,shell:PE,terminal:FE,volumes:HE}});function UE(e){oc.set(e),document.documentElement.lang=e}var oc,sL,Oq,oL,aL,ap,lL,WE,qE=m(()=>{_n();AS();cC();HC();vE();zE();_n();oc=ut("en"),sL=oc.asReadonly(),Oq={en:"English",nl:"Nederlands",de:"Deutsch",fr:"Fran\xE7ais",es:"Espa\xF1ol"},oL={en:mE,nl:VE,de:NS,fr:BC,es:lC},aL={en:"en-GB",nl:"nl-NL",de:"de-DE",fr:"fr-FR",es:"es-ES"},ap=vn(()=>oL[oc()]),lL=vn(()=>aL[oc()]);WE=class e{language=sL;t=ap;locale=lL;async load(){try{UE((await window.electron.settings.get()).language)}catch{UE("en")}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}});function uL(e,t){e&1&&($t(0,"span",3),Nr(1),Yt()),e&2&&(dt(),Di(t))}function dL(e,t){if(e&1){let n=Fh();$t(0,"span",7),Nr(1),Yt(),$t(2,"button",8),Cl("click",function(){Ia(n);let i=El();return xa(i.reconnect())}),Ws(3,"app-icon",9),Nr(4),Yt()}if(e&2){let n=El();dt(),Di(n.t().exited),dt(2),wl("size",14),dt(),ki(" ",n.t().reopen," ")}}function hL(e,t){e&1&&($t(0,"p",5),Nr(1),Yt()),e&2&&(dt(),ki(" ",t," "))}var cL,GE,KE,fL=m(()=>{_n();Zy();Zw();Xw();Jw();tS();qE();_n();cL=["host"];GE={dark:{background:"#08090b",foreground:"#e6eaf0",cursor:"#d97757",selectionBackground:"#232935"},light:{background:"#ffffff",foreground:"#161b23",cursor:"#c2552f",selectionBackground:"#d5dae4"}},KE=class e{containerId=Ii(null);active=Ii(!0);theme=A(ic);host=Gy.required("host");shell=ut(null);problem=ut(null);finished=ut(!1);connecting=ut(!1);t=vn(()=>ap().containers.terminal);status=vn(()=>this.connecting()?this.t().connecting:this.shell()===null?"":this.t().connected);terminal=null;fit=null;observer=null;streamId=null;unsubscribe=[];disposed=!1;constructor(){ui(()=>{this.active()&&this.terminal===null&&this.start()}),ui(()=>{let t=GE[this.theme.theme()],n=this.terminal;n!==null&&(n.options.theme=t)}),ui(()=>{this.active()&&queueMicrotask(()=>this.refit())}),A(Je).onDestroy(()=>this.dispose())}insert(t){let n=t.replace(/[\x00-\x1f\x7f]/g,"");this.streamId!==null&&n!==""&&window.electron.exec.write(this.streamId,n),this.terminal?.focus()}reconnect(){this.closeStream(),this.terminal?.clear(),this.finished.set(!1),this.connect()}start(){let t=new Yw({fontFamily:'ui-monospace, Consolas, "Cascadia Mono", monospace',fontSize:13,cursorBlink:!0,scrollback:5e3,theme:GE[this.theme.theme()]}),n=new Yy;t.loadAddon(n),t.open(this.host().nativeElement),t.onData(r=>{this.streamId!==null&&window.electron.exec.write(this.streamId,r)}),this.terminal=t,this.fit=n,this.observer=new ResizeObserver(()=>this.refit()),this.observer.observe(this.host().nativeElement),this.refit(),this.connect()}async connect(){let t=this.terminal;if(!(t===null||this.disposed)){this.connecting.set(!0),this.problem.set(null);try{let n=this.containerId(),r=n===null?await window.electron.exec.openHost(t.cols,t.rows):await window.electron.exec.open(n,t.cols,t.rows);if(!r.ok){this.problem.set(r.problem);return}if(this.disposed){window.electron.exec.close(r.streamId);return}this.streamId=r.streamId,this.shell.set(r.shell),this.unsubscribe=[window.electron.exec.onData(r.streamId,i=>t.write(i)),window.electron.exec.onEnd(r.streamId,()=>this.finished.set(!0))],t.focus()}catch(n){this.problem.set(eS(n))}finally{this.connecting.set(!1)}}}refit(){let t=this.terminal;t===null||this.fit===null||this.host().nativeElement.clientWidth===0||(this.fit.fit(),this.streamId!==null&&window.electron.exec.resize(this.streamId,t.cols,t.rows))}closeStream(){for(let t of this.unsubscribe)t();this.unsubscribe=[],this.streamId!==null&&(window.electron.exec.close(this.streamId),this.streamId=null)}dispose(){this.disposed=!0,this.closeStream(),this.observer?.disconnect(),this.observer=null,this.terminal?.dispose(),this.terminal=null}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Bs({type:e,selectors:[["app-terminal-view"]],viewQuery:function(n,r){n&1&&Dl(r.host,cL,5),n&2&&Bh()},inputs:{containerId:[1,"containerId"],active:[1,"active"]},decls:9,vars:4,consts:[["host",""],[1,"flex","h-full","flex-col"],[1,"flex","shrink-0","items-center","gap-3","border-b","border-ink-700","px-4","py-2","text-[12px]"],[1,"font-mono","text-ink-400"],[1,"ml-auto","text-ink-500"],[1,"m-4","rounded-md","border","border-danger/40","bg-danger/10","px-3","py-2","text-[13px]","text-danger"],["data-testid","terminal-host",1,"min-h-0","flex-1","overflow-hidden","px-2","py-1"],[1,"text-ink-500"],["type","button",1,"mx-btn","mx-focus",3,"click"],["name","refresh",3,"size"]],template:function(n,r){if(n&1&&($t(0,"div",1)(1,"div",2),zs(2,uL,2,1,"span",3),zs(3,dL,5,3),$t(4,"span",4),Nr(5),Yt()(),zs(6,hL,2,1,"p",5),Ws(7,"div",6,0),Yt()),n&2){let i,s;dt(2),Us((i=r.shell())?2:-1,i),dt(),Us(r.finished()?3:-1),dt(2),Di(r.status()),dt(),Us((s=r.problem())?6:-1,s)}},dependencies:[sc],encapsulation:2})}});export{ae as a,xe as b,m as c,pL as d,qe as e,uD as f,W as g,mt as h,Vi as i,zi as j,An as k,wD as l,SD as m,CD as n,Wi as o,lr as p,ND as q,cr as r,Yc as s,na as t,RD as u,LD as v,Xc as w,dg as x,OD as y,eu as z,$D as A,FD as B,BD as C,HD as D,jD as E,VD as F,zD as G,nu as H,H as I,Xi as J,da as K,Te as L,qD as M,G as N,zt as O,A as P,os as Q,Iu as R,st as S,ya as T,Ia as U,xa as V,ps as W,um as X,Mt as Y,ms as Z,Je as _,Cr as $,on as aa,Nt as ba,un as ca,Vn as da,Ck as ea,ut as fa,vm as ga,_m as ha,Dk as ia,kk as ja,ui as ka,ys as la,Sm as ma,Vk as na,aI as oa,Dv as pa,Rs as qa,Ls as ra,mI as sa,Ir as ta,Gv as ua,OI as va,FI as wa,BI as xa,el as ya,mi as za,Tr as Aa,t0 as Ba,dt as Ca,xs as Da,Ts as Ea,Dd as Fa,D_ as Ga,Fs as Ha,p1 as Ia,yl as Ja,Ih as Ka,H_ as La,xh as Ma,Bs as Na,J1 as Oa,ex as Pa,nx as Qa,rx as Ra,U_ as Sa,q_ as Ta,G_ as Ua,Ax as Va,ty as Wa,js as Xa,Hx as Ya,jx as Za,Vx as _a,Vs as $a,zs as ab,Us as bb,Ux as cb,Rh as db,Lh as eb,Oh as fb,wl as gb,$t as hb,Yt as ib,Ws as jb,qs as kb,Gs as lb,Sl as mb,ay as nb,Fh as ob,ly as pb,Xx as qb,Jx as rb,Cl as sb,uy as tb,El as ub,hy as vb,nT as wb,rT as xb,fy as yb,Dl as zb,Bh as Ab,iT as Bb,my as Cb,vy as Db,gT as Eb,Nr as Fb,Di as Gb,ki as Hb,Cy as Ib,Ey as Jb,Dy as Kb,MT as Lb,ky as Mb,xy as Nb,NT as Ob,AT as Pb,PT as Qb,$T as Rb,FT as Sb,jT as Tb,zT as Ub,WT as Vb,qT as Wb,jh as Xb,bH as Yb,vn as Zb,Py as _b,ZT as $b,$y as ac,Fy as bc,p3 as cc,g3 as dc,Ii as ec,m3 as fc,Gy as gc,v3 as hc,_3 as ic,b3 as jc,w3 as kc,S3 as lc,C3 as mc,E3 as nc,D3 as oc,_n as pc,Oq as qc,ap as rc,lL as sc,UE as tc,WE as uc,qE as vc,eS as wc,tS as xc,sc as yc,Jw as zc,XR as Ac,tL as Bc,ic as Cc,Xw as Dc,KE as Ec,fL as Fc};