diff --git a/index.html b/index.html index e4abeff..a21b1fa 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@ - + \ No newline at end of file diff --git a/main.18bb956b47d99bc2.js b/main.18bb956b47d99bc2.js deleted file mode 100644 index 316efc3..0000000 --- a/main.18bb956b47d99bc2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[179],{9199:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>ExampleComponent});var rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7579),_angular_forms__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2382),ng_terminal__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(617),xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3883),xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0__),_angular_core__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5e3),_angular_material_button__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(7423),_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2368),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7322),_angular_material_input__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7531),ngx_json_viewer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6224),_angular_material_tabs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6041);const _c0=["term"];let ExampleComponent=(()=>{class ExampleComponent{constructor(){this.title="NgTerminal Live Example",this.color="accent",this.prompt="\n"+ng_terminal__WEBPACK_IMPORTED_MODULE_2__.vd.cursorColumn(1)+"$ ",this._rows=void 0,this._cols=void 0,this._draggable=!1,this.draggableMode=!1,this.apiMode=!1,this.disabled=!1,this.rowsControl=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI,this.colsControl=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI,this.inputControl=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI,this.writeSubject=new rxjs__WEBPACK_IMPORTED_MODULE_4__.x,this.keyInput="",this.baseTheme={foreground:"#F8F8F8",background:"#2D2E2C",selectionBackground:"#5DA5D533",black:"#1E1E1D",brightBlack:"#262625",red:"#CE5C5C",brightRed:"#FF7272",green:"#5BCC5B",brightGreen:"#72FF72",yellow:"#CCCC5B",brightYellow:"#FFFF72",blue:"#5D5DD3",brightBlue:"#7279FF",magenta:"#BC5ED1",brightMagenta:"#E572FF",cyan:"#5DA5D5",brightCyan:"#72F0FF",white:"#F8F8F8",brightWhite:"#FFFFFF",border:"#85858a"}}ngAfterViewInit(){!this.child||(this.underlying=this.child.underlying,this.underlying.options.fontSize=20,this.underlying.loadAddon(new xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0__.WebLinksAddon),this.child.setXtermOptions({fontFamily:'"Cascadia Code", Menlo, monospace',theme:this.baseTheme,cursorBlink:!0}),this.child.write("$ NgTerminal Live Example"),this.child.write(this.prompt),this.child.onData().subscribe(nt=>{!this.child||("\r"===nt?this.child.write(this.prompt):"\x7f"===nt?this.child.underlying.buffer.active.cursorX>2&&this.child.write("\b \b"):"\x03"===nt?(this.child.write("^C"),this.child.write(this.prompt)):this.child.write(nt))}),this.child.onKey().subscribe(nt=>{}),this.rowsControl.valueChanges.subscribe(()=>{this.updateRows()}),this.colsControl.valueChanges.subscribe(()=>{this.updateCols()}))}resizableChange(nt){this.draggableMode=nt.checked,this.updateDraggable()}apiModeChange(nt){this.apiMode=nt.checked,this.updateDraggable()}updateDraggable(){this.apiMode?this.child.setDraggable(this.draggableMode):this._draggable=this.draggableMode}updateRows(){this.apiMode?this.child.setRows(this.rowsControl.value):this._rows=this.rowsControl.value}updateCols(){this.apiMode?this.child.setCols(this.colsControl.value):this._cols=this.colsControl.value}write(){this.writeSubject.next(eval(`'${this.inputControl.value}'`))}onKeyInput(nt){this.keyInput=nt}get displayOptionForLiveUpdate(){return{rows:this.rowsControl.value,cols:this.colsControl.value,draggable:this.draggableMode}}}return ExampleComponent.\u0275fac=function nt(Fe){return new(Fe||ExampleComponent)},ExampleComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_5__.Xpm({type:ExampleComponent,selectors:[["app-root"]],viewQuery:function nt(Fe,$){if(1&Fe&&_angular_core__WEBPACK_IMPORTED_MODULE_5__.Gf(_c0,5),2&Fe){let _;_angular_core__WEBPACK_IMPORTED_MODULE_5__.iGM(_=_angular_core__WEBPACK_IMPORTED_MODULE_5__.CRH())&&($.child=_.first)}},decls:41,vars:19,consts:[["tabGroup",""],["label","Terminal1"],[1,"outer-box"],[1,"ng-terminal",3,"dataSource","rows","cols","minWidth","minHeight","draggable","data"],["term",""],[2,"padding-left","1em","padding-top","0.3em","margin-top","0.7em","padding-bottom","1em"],[2,"display","inline-block","vertical-align","top","margin-bottom","0.8em"],[3,"checked","color","disabled","change"],[2,"margin-left","10px",3,"checked","color","disabled","change"],["matInput","","placeholder","rows","type","number",3,"formControl"],["matInput","","placeholder","cols","type","number",3,"formControl"],[2,"display","inline-block","vertical-align","top"],[3,"json"],[2,"font-size","0.8em","font-weight","bold"],["matInput","","placeholder","Type here","value","",3,"formControl"],["mat-raised-button","","color","primary",3,"click"],["label","Terminal2"]],template:function nt(Fe,$){1&Fe&&(_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(0,"mat-tab-group",null,0)(2,"mat-tab",1)(3,"div",2)(4,"ng-terminal",3,4),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("data",function(j){return $.onKeyInput(j)}),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(6,"div",5)(7,"div")(8,"div",6)(9,"h3"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(10,"Display Opiton"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(11,"div")(12,"mat-slide-toggle",7),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("change",function(j){return $.resizableChange(j)}),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(13," Draggable "),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(14,"mat-slide-toggle",8),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("change",function(j){return $.apiModeChange(j)}),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(15," by using API "),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(16,"div")(17,"mat-form-field"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(18,"input",9),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(19,"mat-form-field"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(20,"input",10),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(21,"div",11)(22,"h4"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(23,"JSON"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(24,"ngx-json-viewer",12),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(25,"h3"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(26,"Examples of data binding"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(27,"div")(28,"span",13),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(29,"[dataSource]"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(30,"div")(31,"mat-form-field"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(32,"input",14),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(33,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("click",function(){return $.write()}),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(34," Write "),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(35,"div")(36,"span",13),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(37),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(38,"mat-tab",16)(39,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(40,"ng-terminal"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()()),2&Fe&&(_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("dataSource",$.writeSubject)("rows",$._rows)("cols",$._cols)("minWidth",200)("minHeight",200)("draggable",$._draggable),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_5__.ekj("mat-elevation-z1",!0),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("checked",$.draggableMode)("color",$.color)("disabled",$.disabled),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("checked",$.apiMode)("color",$.color)("disabled",$.disabled),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("formControl",$.rowsControl),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("formControl",$.colsControl),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("json",$.displayOptionForLiveUpdate),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(8),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("formControl",$.inputControl),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_5__.hij("(data): ",$.keyInput,""))},dependencies:[ng_terminal__WEBPACK_IMPORTED_MODULE_2__.Eo,_angular_material_button__WEBPACK_IMPORTED_MODULE_6__.lW,_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_7__.Rr,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__.KE,_angular_material_input__WEBPACK_IMPORTED_MODULE_9__.Nt,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Fj,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.wV,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.oH,ngx_json_viewer__WEBPACK_IMPORTED_MODULE_1__.Y,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_10__.SP,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_10__.uX],styles:[".outer-box[_ngcontent-%COMP%]{height:40vh;overflow-y:auto;padding:5px 0}"]}),ExampleComponent})()},1950:(nt,Fe,$)=>{"use strict";var _=$(9808),j=$(5e3);class p extends _.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class h extends p{static makeCurrent(){(0,_.HT)(new h)}onAndCancel(o,a,m){return o.addEventListener(a,m,!1),()=>{o.removeEventListener(a,m,!1)}}dispatchEvent(o,a){o.dispatchEvent(a)}remove(o){o.parentNode&&o.parentNode.removeChild(o)}createElement(o,a){return(a=a||this.getDefaultDocument()).createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,a){return"window"===a?window:"document"===a?o:"body"===a?o.body:null}getBaseHref(o){const a=function E(){return b=b||document.querySelector("base"),b?b.getAttribute("href"):null}();return null==a?null:function D(O){x=x||document.createElement("a"),x.setAttribute("href",O);const o=x.pathname;return"/"===o.charAt(0)?o:`/${o}`}(a)}resetBaseElement(){b=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return(0,_.Mx)(document.cookie,o)}}let x,b=null;const I=new j.OlP("TRANSITION_ID"),T=[{provide:j.ip1,useFactory:function P(O,o,a){return()=>{a.get(j.CZH).donePromise.then(()=>{const m=(0,_.q)(),N=o.querySelectorAll(`style[ng-transition="${O}"]`);for(let G=0;G{class O{build(){return new XMLHttpRequest}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();const f=new j.OlP("EventManagerPlugins");let u=(()=>{class O{constructor(a,m){this._zone=m,this._eventNameToPlugin=new Map,a.forEach(N=>N.manager=this),this._plugins=a.slice().reverse()}addEventListener(a,m,N){return this._findPluginFor(m).addEventListener(a,m,N)}addGlobalEventListener(a,m,N){return this._findPluginFor(m).addGlobalEventListener(a,m,N)}getZone(){return this._zone}_findPluginFor(a){const m=this._eventNameToPlugin.get(a);if(m)return m;const N=this._plugins;for(let G=0;G{class O{constructor(){this._stylesSet=new Set}addStyles(a){const m=new Set;a.forEach(N=>{this._stylesSet.has(N)||(this._stylesSet.add(N),m.add(N))}),this.onStylesAdded(m)}onStylesAdded(a){}getAllStyles(){return Array.from(this._stylesSet)}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})(),R=(()=>{class O extends C{constructor(a){super(),this._doc=a,this._hostNodes=new Map,this._hostNodes.set(a.head,[])}_addStylesToHost(a,m,N){a.forEach(G=>{const ae=this._doc.createElement("style");ae.textContent=G,N.push(m.appendChild(ae))})}addHost(a){const m=[];this._addStylesToHost(this._stylesSet,a,m),this._hostNodes.set(a,m)}removeHost(a){const m=this._hostNodes.get(a);m&&m.forEach(U),this._hostNodes.delete(a)}onStylesAdded(a){this._hostNodes.forEach((m,N)=>{this._addStylesToHost(a,N,m)})}ngOnDestroy(){this._hostNodes.forEach(a=>a.forEach(U))}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();function U(O){(0,_.q)().remove(O)}const W={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},v=/%COMP%/g,F="%COMP%",Z=`_nghost-${F}`,Q=`_ngcontent-${F}`;function Be(O,o,a){for(let m=0;m{if("__ngUnwrap__"===o)return O;!1===O(o)&&(o.preventDefault(),o.returnValue=!1)}}let re=(()=>{class O{constructor(a,m,N){this.eventManager=a,this.sharedStylesHost=m,this.appId=N,this.rendererByCompId=new Map,this.defaultRenderer=new _e(a)}createRenderer(a,m){if(!a||!m)return this.defaultRenderer;switch(m.encapsulation){case j.ifc.Emulated:{let N=this.rendererByCompId.get(m.id);return N||(N=new Oe(this.eventManager,this.sharedStylesHost,m,this.appId),this.rendererByCompId.set(m.id,N)),N.applyToHost(a),N}case 1:case j.ifc.ShadowDom:return new ye(this.eventManager,this.sharedStylesHost,a,m);default:if(!this.rendererByCompId.has(m.id)){const N=Be(m.id,m.styles,[]);this.sharedStylesHost.addStyles(N),this.rendererByCompId.set(m.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(u),j.LFG(R),j.LFG(j.AFp))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();class _e{constructor(o){this.eventManager=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(o,a){return a?document.createElementNS(W[a]||a,o):document.createElement(o)}createComment(o){return document.createComment(o)}createText(o){return document.createTextNode(o)}appendChild(o,a){(Me(o)?o.content:o).appendChild(a)}insertBefore(o,a,m){o&&(Me(o)?o.content:o).insertBefore(a,m)}removeChild(o,a){o&&o.removeChild(a)}selectRootElement(o,a){let m="string"==typeof o?document.querySelector(o):o;if(!m)throw new Error(`The selector "${o}" did not match any elements`);return a||(m.textContent=""),m}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,a,m,N){if(N){a=N+":"+a;const G=W[N];G?o.setAttributeNS(G,a,m):o.setAttribute(a,m)}else o.setAttribute(a,m)}removeAttribute(o,a,m){if(m){const N=W[m];N?o.removeAttributeNS(N,a):o.removeAttribute(`${m}:${a}`)}else o.removeAttribute(a)}addClass(o,a){o.classList.add(a)}removeClass(o,a){o.classList.remove(a)}setStyle(o,a,m,N){N&(j.JOm.DashCase|j.JOm.Important)?o.style.setProperty(a,m,N&j.JOm.Important?"important":""):o.style[a]=m}removeStyle(o,a,m){m&j.JOm.DashCase?o.style.removeProperty(a):o.style[a]=""}setProperty(o,a,m){o[a]=m}setValue(o,a){o.nodeValue=a}listen(o,a,m){return"string"==typeof o?this.eventManager.addGlobalEventListener(o,a,Ie(m)):this.eventManager.addEventListener(o,a,Ie(m))}}function Me(O){return"TEMPLATE"===O.tagName&&void 0!==O.content}class Oe extends _e{constructor(o,a,m,N){super(o),this.component=m;const G=Be(N+"-"+m.id,m.styles,[]);a.addStyles(G),this.contentAttr=function ne(O){return Q.replace(v,O)}(N+"-"+m.id),this.hostAttr=function we(O){return Z.replace(v,O)}(N+"-"+m.id)}applyToHost(o){super.setAttribute(o,this.hostAttr,"")}createElement(o,a){const m=super.createElement(o,a);return super.setAttribute(m,this.contentAttr,""),m}}class ye extends _e{constructor(o,a,m,N){super(o),this.sharedStylesHost=a,this.hostEl=m,this.shadowRoot=m.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const G=Be(N.id,N.styles,[]);for(let ae=0;ae{class O extends d{constructor(a){super(a)}supports(a){return!0}addEventListener(a,m,N){return a.addEventListener(m,N,!1),()=>this.removeEventListener(a,m,N)}removeEventListener(a,m,N){return a.removeEventListener(m,N)}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();const ue=["alt","control","meta","shift"],de={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},be={alt:O=>O.altKey,control:O=>O.ctrlKey,meta:O=>O.metaKey,shift:O=>O.shiftKey};let ke=(()=>{class O extends d{constructor(a){super(a)}supports(a){return null!=O.parseEventName(a)}addEventListener(a,m,N){const G=O.parseEventName(m),ae=O.eventCallback(G.fullKey,N,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,_.q)().onAndCancel(a,G.domEventName,ae))}static parseEventName(a){const m=a.toLowerCase().split("."),N=m.shift();if(0===m.length||"keydown"!==N&&"keyup"!==N)return null;const G=O._normalizeKey(m.pop());let ae="",fe=m.indexOf("code");if(fe>-1&&(m.splice(fe,1),ae="code."),ue.forEach(Ke=>{const st=m.indexOf(Ke);st>-1&&(m.splice(st,1),ae+=Ke+".")}),ae+=G,0!=m.length||0===G.length)return null;const xe={};return xe.domEventName=N,xe.fullKey=ae,xe}static matchEventFullKeyCode(a,m){let N=de[a.key]||a.key,G="";return m.indexOf("code.")>-1&&(N=a.code,G="code."),!(null==N||!N)&&(N=N.toLowerCase()," "===N?N="space":"."===N&&(N="dot"),ue.forEach(ae=>{ae!==N&&(0,be[ae])(a)&&(G+=ae+".")}),G+=N,G===m)}static eventCallback(a,m,N){return G=>{O.matchEventFullKeyCode(G,a)&&N.runGuarded(()=>m(G))}}static _normalizeKey(a){return"esc"===a?"escape":a}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();const Nn=(0,j.eFA)(j._c5,"browser",[{provide:j.Lbi,useValue:_.bD},{provide:j.g9A,useValue:function It(){h.makeCurrent()},multi:!0},{provide:_.K0,useFactory:function Rt(){return(0,j.RDi)(document),document},deps:[]}]),Tn=new j.OlP(""),Re=[{provide:j.rWj,useClass:class y{addToWindow(o){j.dqk.getAngularTestability=(m,N=!0)=>{const G=o.findTestabilityInTree(m,N);if(null==G)throw new Error("Could not find testability for element.");return G},j.dqk.getAllAngularTestabilities=()=>o.getAllTestabilities(),j.dqk.getAllAngularRootElements=()=>o.getAllRootElements(),j.dqk.frameworkStabilizers||(j.dqk.frameworkStabilizers=[]),j.dqk.frameworkStabilizers.push(m=>{const N=j.dqk.getAllAngularTestabilities();let G=N.length,ae=!1;const fe=function(xe){ae=ae||xe,G--,0==G&&m(ae)};N.forEach(function(xe){xe.whenStable(fe)})})}findTestabilityInTree(o,a,m){if(null==a)return null;const N=o.getTestability(a);return null!=N?N:m?(0,_.q)().isShadowRoot(a)?this.findTestabilityInTree(o,a.host,!0):this.findTestabilityInTree(o,a.parentElement,!0):null}},deps:[]},{provide:j.lri,useClass:j.dDg,deps:[j.R0b,j.eoX,j.rWj]},{provide:j.dDg,useClass:j.dDg,deps:[j.R0b,j.eoX,j.rWj]}],$e=[{provide:j.zSh,useValue:"root"},{provide:j.qLn,useFactory:function pt(){return new j.qLn},deps:[]},{provide:f,useClass:Ne,multi:!0,deps:[_.K0,j.R0b,j.Lbi]},{provide:f,useClass:ke,multi:!0,deps:[_.K0]},{provide:re,useClass:re,deps:[u,R,j.AFp]},{provide:j.FYo,useExisting:re},{provide:C,useExisting:R},{provide:R,useClass:R,deps:[_.K0]},{provide:u,useClass:u,deps:[f,j.R0b]},{provide:_.JF,useClass:l,deps:[]},[]];let ie=(()=>{class O{constructor(a){}static withServerTransition(a){return{ngModule:O,providers:[{provide:j.AFp,useValue:a.appId},{provide:I,useExisting:j.AFp},T]}}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(Tn,12))},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({providers:[...$e,...Re],imports:[_.ez,j.hGG]}),O})();"undefined"!=typeof window&&window;var Xn=$(2368),Hn=$(7423),Oi=$(7531),oi=$(617),on=$(2382),Gt=$(1777);function pe(O){return new j.vHH(3e3,!1)}function us(){return"undefined"!=typeof window&&void 0!==window.document}function rr(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function pi(O){switch(O.length){case 0:return new Gt.ZN;case 1:return O[0];default:return new Gt.ZE(O)}}function Zr(O,o,a,m,N=new Map,G=new Map){const ae=[],fe=[];let xe=-1,Ke=null;if(m.forEach(st=>{const ct=st.get("offset"),Bt=ct==xe,Ut=Bt&&Ke||new Map;st.forEach((Tt,Nt)=>{let an=Nt,sn=Tt;if("offset"!==Nt)switch(an=o.normalizePropertyName(an,ae),sn){case Gt.k1:sn=N.get(Nt);break;case Gt.l3:sn=G.get(Nt);break;default:sn=o.normalizeStyleValue(Nt,an,sn,ae)}Ut.set(an,sn)}),Bt||fe.push(Ut),Ke=Ut,xe=ct}),ae.length)throw function cn(O){return new j.vHH(3502,!1)}();return fe}function Sr(O,o,a,m){switch(o){case"start":O.onStart(()=>m(a&&Xi(a,"start",O)));break;case"done":O.onDone(()=>m(a&&Xi(a,"done",O)));break;case"destroy":O.onDestroy(()=>m(a&&Xi(a,"destroy",O)))}}function Xi(O,o,a){const m=a.totalTime,G=wr(O.element,O.triggerName,O.fromState,O.toState,o||O.phaseName,null==m?O.totalTime:m,!!a.disabled),ae=O._data;return null!=ae&&(G._data=ae),G}function wr(O,o,a,m,N="",G=0,ae){return{element:O,triggerName:o,fromState:a,toState:m,phaseName:N,totalTime:G,disabled:!!ae}}function qn(O,o,a){let m=O.get(o);return m||O.set(o,m=a),m}function Qr(O){const o=O.indexOf(":");return[O.substring(1,o),O.slice(o+1)]}let Jr=(O,o)=>!1,Xr=(O,o,a)=>[],Mr=null;function Wi(O){const o=O.parentNode||O.host;return o===Mr?null:o}(rr()||"undefined"!=typeof Element)&&(us()?(Mr=(()=>document.documentElement)(),Jr=(O,o)=>{for(;o;){if(o===O)return!0;o=Wi(o)}return!1}):Jr=(O,o)=>O.contains(o),Xr=(O,o,a)=>{if(a)return Array.from(O.querySelectorAll(o));const m=O.querySelector(o);return m?[m]:[]});let mi=null,Ee=!1;const ce=Jr,Le=Xr;let Dt=(()=>{class O{validateStyleProperty(a){return function oe(O){mi||(mi=function X(){return"undefined"!=typeof document?document.body:null}()||{},Ee=!!mi.style&&"WebkitAppearance"in mi.style);let o=!0;return mi.style&&!function xs(O){return"ebkit"==O.substring(1,6)}(O)&&(o=O in mi.style,!o&&Ee&&(o="Webkit"+O.charAt(0).toUpperCase()+O.slice(1)in mi.style)),o}(a)}matchesElement(a,m){return!1}containsElement(a,m){return ce(a,m)}getParentElement(a){return Wi(a)}query(a,m,N){return Le(a,m,N)}computeStyle(a,m,N){return N||""}animate(a,m,N,G,ae,fe=[],xe){return new Gt.ZN(N,G)}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})(),Mt=(()=>{class O{}return O.NOOP=new Dt,O})();const Gi="ng-enter",Tr="ng-leave",sr="ng-trigger",Ar=".ng-trigger",to="ng-animating",_n=".ng-animating";function _i(O){if("number"==typeof O)return O;const o=O.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:Os(parseFloat(o[1]),o[2])}function Os(O,o){return"s"===o?1e3*O:O}function Si(O,o,a){return O.hasOwnProperty("duration")?O:function Un(O,o,a){let N,G=0,ae="";if("string"==typeof O){const fe=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===fe)return o.push(pe()),{duration:0,delay:0,easing:""};N=Os(parseFloat(fe[1]),fe[2]);const xe=fe[3];null!=xe&&(G=Os(parseFloat(xe),fe[4]));const Ke=fe[5];Ke&&(ae=Ke)}else N=O;if(!a){let fe=!1,xe=o.length;N<0&&(o.push(function le(){return new j.vHH(3100,!1)}()),fe=!0),G<0&&(o.push(function se(){return new j.vHH(3101,!1)}()),fe=!0),fe&&o.splice(xe,0,pe())}return{duration:N,delay:G,easing:ae}}(O,o,a)}function vi(O,o={}){return Object.keys(O).forEach(a=>{o[a]=O[a]}),o}function Ir(O){const o=new Map;return Object.keys(O).forEach(a=>{o.set(a,O[a])}),o}function ki(O,o=new Map,a){if(a)for(let[m,N]of a)o.set(m,N);for(let[m,N]of O)o.set(m,N);return o}function or(O,o,a){return a?o+":"+a+";":""}function hs(O){let o="";for(let a=0;a{const G=lr(N);a&&!a.has(N)&&a.set(N,O.style[G]),O.style[G]=m}),rr()&&hs(O))}function Zn(O,o){O.style&&(o.forEach((a,m)=>{const N=lr(m);O.style[N]=""}),rr()&&hs(O))}function Ki(O){return Array.isArray(O)?1==O.length?O[0]:(0,Gt.vP)(O):O}const xr=new RegExp("{{\\s*(.+?)\\s*}}","g");function fs(O){let o=[];if("string"==typeof O){let a;for(;a=xr.exec(O);)o.push(a[1]);xr.lastIndex=0}return o}function Or(O,o,a){const m=O.toString(),N=m.replace(xr,(G,ae)=>{let fe=o[ae];return null==fe&&(a.push(function Ve(O){return new j.vHH(3003,!1)}()),fe=""),fe.toString()});return N==m?O:N}function ar(O){const o=[];let a=O.next();for(;!a.done;)o.push(a.value),a=O.next();return o}const Rs=/-+([a-z0-9])/g;function lr(O){return O.replace(Rs,(...o)=>o[1].toUpperCase())}function no(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xt(O,o,a){switch(o.type){case 7:return O.visitTrigger(o,a);case 0:return O.visitState(o,a);case 1:return O.visitTransition(o,a);case 2:return O.visitSequence(o,a);case 3:return O.visitGroup(o,a);case 4:return O.visitAnimate(o,a);case 5:return O.visitKeyframes(o,a);case 6:return O.visitStyle(o,a);case 8:return O.visitReference(o,a);case 9:return O.visitAnimateChild(o,a);case 10:return O.visitAnimateRef(o,a);case 11:return O.visitQuery(o,a);case 12:return O.visitStagger(o,a);default:throw function tt(O){return new j.vHH(3004,!1)}()}}function ps(O,o){return window.getComputedStyle(O)[o]}function vn(O,o){const a=[];return"string"==typeof O?O.split(/\s*,\s*/).forEach(m=>function B(O,o,a){if(":"==O[0]){const xe=function k(O,o){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,m)=>parseFloat(m)>parseFloat(a);case":decrement":return(a,m)=>parseFloat(m) *"}}(O,a);if("function"==typeof xe)return void o.push(xe);O=xe}const m=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return a.push(function ui(O){return new j.vHH(3015,!1)}()),o;const N=m[1],G=m[2],ae=m[3];o.push(je(N,ae));"<"==G[0]&&!("*"==N&&"*"==ae)&&o.push(je(ae,N))}(m,a,o)):a.push(O),a}const S=new Set(["true","1"]),q=new Set(["false","0"]);function je(O,o){const a=S.has(O)||q.has(O),m=S.has(o)||q.has(o);return(N,G)=>{let ae="*"==O||O==N,fe="*"==o||o==G;return!ae&&a&&"boolean"==typeof N&&(ae=N?S.has(O):q.has(O)),!fe&&m&&"boolean"==typeof G&&(fe=G?S.has(o):q.has(o)),ae&&fe}}const Kt=new RegExp("s*:selfs*,?","g");function ti(O,o,a,m){return new ur(O).build(o,a,m)}class ur{constructor(o){this._driver=o}build(o,a,m){const N=new es(a);return this._resetContextStyleTimingState(N),xt(this,Ki(o),N)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,a){let m=a.queryCount=0,N=a.depCount=0;const G=[],ae=[];return"@"==o.name.charAt(0)&&a.errors.push(function mt(){return new j.vHH(3006,!1)}()),o.definitions.forEach(fe=>{if(this._resetContextStyleTimingState(a),0==fe.type){const xe=fe,Ke=xe.name;Ke.toString().split(/\s*,\s*/).forEach(st=>{xe.name=st,G.push(this.visitState(xe,a))}),xe.name=Ke}else if(1==fe.type){const xe=this.visitTransition(fe,a);m+=xe.queryCount,N+=xe.depCount,ae.push(xe)}else a.errors.push(function Qt(){return new j.vHH(3007,!1)}())}),{type:7,name:o.name,states:G,transitions:ae,queryCount:m,depCount:N,options:null}}visitState(o,a){const m=this.visitStyle(o.styles,a),N=o.options&&o.options.params||null;if(m.containsDynamicStyles){const G=new Set,ae=N||{};m.styles.forEach(fe=>{fe instanceof Map&&fe.forEach(xe=>{fs(xe).forEach(Ke=>{ae.hasOwnProperty(Ke)||G.add(Ke)})})}),G.size&&(ar(G.values()),a.errors.push(function hn(O,o){return new j.vHH(3008,!1)}()))}return{type:0,name:o.name,style:m,options:N?{params:N}:null}}visitTransition(o,a){a.queryCount=0,a.depCount=0;const m=xt(this,Ki(o.animation),a);return{type:1,matchers:vn(o.expr,a.errors),animation:m,queryCount:a.queryCount,depCount:a.depCount,options:kr(o.options)}}visitSequence(o,a){return{type:2,steps:o.steps.map(m=>xt(this,m,a)),options:kr(o.options)}}visitGroup(o,a){const m=a.currentTime;let N=0;const G=o.steps.map(ae=>{a.currentTime=m;const fe=xt(this,ae,a);return N=Math.max(N,a.currentTime),fe});return a.currentTime=N,{type:3,steps:G,options:kr(o.options)}}visitAnimate(o,a){const m=function fr(O,o){if(O.hasOwnProperty("duration"))return O;if("number"==typeof O)return Ls(Si(O,o).duration,0,"");const a=O;if(a.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Ls(0,0,"");return G.dynamic=!0,G.strValue=a,G}const N=Si(a,o);return Ls(N.duration,N.delay,N.easing)}(o.timings,a.errors);a.currentAnimateTimings=m;let N,G=o.styles?o.styles:(0,Gt.oB)({});if(5==G.type)N=this.visitKeyframes(G,a);else{let ae=o.styles,fe=!1;if(!ae){fe=!0;const Ke={};m.easing&&(Ke.easing=m.easing),ae=(0,Gt.oB)(Ke)}a.currentTime+=m.duration+m.delay;const xe=this.visitStyle(ae,a);xe.isEmptyStep=fe,N=xe}return a.currentAnimateTimings=null,{type:4,timings:m,style:N,options:null}}visitStyle(o,a){const m=this._makeStyleAst(o,a);return this._validateStyleAst(m,a),m}_makeStyleAst(o,a){const m=[],N=Array.isArray(o.styles)?o.styles:[o.styles];for(let fe of N)"string"==typeof fe?fe===Gt.l3?m.push(fe):a.errors.push(new j.vHH(3002,!1)):m.push(Ir(fe));let G=!1,ae=null;return m.forEach(fe=>{if(fe instanceof Map&&(fe.has("easing")&&(ae=fe.get("easing"),fe.delete("easing")),!G))for(let xe of fe.values())if(xe.toString().indexOf("{{")>=0){G=!0;break}}),{type:6,styles:m,easing:ae,offset:o.offset,containsDynamicStyles:G,options:null}}_validateStyleAst(o,a){const m=a.currentAnimateTimings;let N=a.currentTime,G=a.currentTime;m&&G>0&&(G-=m.duration+m.delay),o.styles.forEach(ae=>{"string"!=typeof ae&&ae.forEach((fe,xe)=>{const Ke=a.collectedStyles.get(a.currentQuerySelector),st=Ke.get(xe);let ct=!0;st&&(G!=N&&G>=st.startTime&&N<=st.endTime&&(a.errors.push(function zi(O,o,a,m,N){return new j.vHH(3010,!1)}()),ct=!1),G=st.startTime),ct&&Ke.set(xe,{startTime:G,endTime:N}),a.options&&function St(O,o,a){const m=o.params||{},N=fs(O);N.length&&N.forEach(G=>{m.hasOwnProperty(G)||a.push(function Te(O){return new j.vHH(3001,!1)}())})}(fe,a.options,a.errors)})})}visitKeyframes(o,a){const m={type:5,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(function Qi(){return new j.vHH(3011,!1)}()),m;let G=0;const ae=[];let fe=!1,xe=!1,Ke=0;const st=o.steps.map(sn=>{const Ln=this._makeStyleAst(sn,a);let ii=null!=Ln.offset?Ln.offset:function gs(O){if("string"==typeof O)return null;let o=null;if(Array.isArray(O))O.forEach(a=>{if(a instanceof Map&&a.has("offset")){const m=a;o=parseFloat(m.get("offset")),m.delete("offset")}});else if(O instanceof Map&&O.has("offset")){const a=O;o=parseFloat(a.get("offset")),a.delete("offset")}return o}(Ln.styles),$n=0;return null!=ii&&(G++,$n=Ln.offset=ii),xe=xe||$n<0||$n>1,fe=fe||$n0&&G{const ii=Bt>0?Ln==Ut?1:Bt*Ln:ae[Ln],$n=ii*an;a.currentTime=Tt+Nt.delay+$n,Nt.duration=$n,this._validateStyleAst(sn,a),sn.offset=ii,m.styles.push(sn)}),m}visitReference(o,a){return{type:8,animation:xt(this,Ki(o.animation),a),options:kr(o.options)}}visitAnimateChild(o,a){return a.depCount++,{type:9,options:kr(o.options)}}visitAnimateRef(o,a){return{type:10,animation:this.visitReference(o.animation,a),options:kr(o.options)}}visitQuery(o,a){const m=a.currentQuerySelector,N=o.options||{};a.queryCount++,a.currentQuery=o;const[G,ae]=function dr(O){const o=!!O.split(/\s*,\s*/).find(a=>":self"==a);return o&&(O=O.replace(Kt,"")),O=O.replace(/@\*/g,Ar).replace(/@\w+/g,a=>Ar+"-"+a.slice(1)).replace(/:animating/g,_n),[O,o]}(o.selector);a.currentQuerySelector=m.length?m+" "+G:G,qn(a.collectedStyles,a.currentQuerySelector,new Map);const fe=xt(this,Ki(o.animation),a);return a.currentQuery=null,a.currentQuerySelector=m,{type:11,selector:G,limit:N.limit||0,optional:!!N.optional,includeSelf:ae,animation:fe,originalSelector:o.selector,options:kr(o.options)}}visitStagger(o,a){a.currentQuery||a.errors.push(function ci(){return new j.vHH(3013,!1)}());const m="full"===o.timings?{duration:0,delay:0,easing:"full"}:Si(o.timings,a.errors,!0);return{type:12,animation:xt(this,Ki(o.animation),a),timings:m,options:null}}}class es{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function kr(O){return O?(O=vi(O)).params&&(O.params=function hr(O){return O?vi(O):null}(O.params)):O={},O}function Ls(O,o,a){return{duration:O,delay:o,easing:a}}function Pr(O,o,a,m,N,G,ae=null,fe=!1){return{type:1,element:O,keyframes:o,preStyleProps:a,postStyleProps:m,duration:N,delay:G,totalTime:N+G,easing:ae,subTimeline:fe}}class Lr{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,a){let m=this._map.get(o);m||this._map.set(o,m=[]),m.push(...a)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const ro=new RegExp(":enter","g"),Ma=new RegExp(":leave","g");function so(O,o,a,m,N,G=new Map,ae=new Map,fe,xe,Ke=[]){return(new ni).buildKeyframes(O,o,a,m,N,G,ae,fe,xe,Ke)}class ni{buildKeyframes(o,a,m,N,G,ae,fe,xe,Ke,st=[]){Ke=Ke||new Lr;const ct=new fn(o,a,Ke,N,G,st,[]);ct.options=xe;const Bt=xe.delay?_i(xe.delay):0;ct.currentTimeline.delayNextStep(Bt),ct.currentTimeline.setStyles([ae],null,ct.errors,xe),xt(this,m,ct);const Ut=ct.timelines.filter(Tt=>Tt.containsAnimation());if(Ut.length&&fe.size){let Tt;for(let Nt=Ut.length-1;Nt>=0;Nt--){const an=Ut[Nt];if(an.element===a){Tt=an;break}}Tt&&!Tt.allowOnlyTimelineStyles()&&Tt.setStyles([fe],null,ct.errors,xe)}return Ut.length?Ut.map(Tt=>Tt.buildKeyframes()):[Pr(a,[],[],[],0,Bt,"",!1)]}visitTrigger(o,a){}visitState(o,a){}visitTransition(o,a){}visitAnimateChild(o,a){const m=a.subInstructions.get(a.element);if(m){const N=a.createSubContext(o.options),G=a.currentTimeline.currentTime,ae=this._visitSubInstructions(m,N,N.options);G!=ae&&a.transformIntoNewTimeline(ae)}a.previousNode=o}visitAnimateRef(o,a){const m=a.createSubContext(o.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],a,m),this.visitReference(o.animation,m),a.transformIntoNewTimeline(m.currentTimeline.currentTime),a.previousNode=o}_applyAnimationRefDelays(o,a,m){var N;for(const G of o){const ae=null==G?void 0:G.delay;if(ae){const fe="number"==typeof ae?ae:_i(Or(ae,null!==(N=null==G?void 0:G.params)&&void 0!==N?N:{},a.errors));m.delayNextStep(fe)}}}_visitSubInstructions(o,a,m){let G=a.currentTimeline.currentTime;const ae=null!=m.duration?_i(m.duration):null,fe=null!=m.delay?_i(m.delay):null;return 0!==ae&&o.forEach(xe=>{const Ke=a.appendInstructionToTimeline(xe,ae,fe);G=Math.max(G,Ke.duration+Ke.delay)}),G}visitReference(o,a){a.updateOptions(o.options,!0),xt(this,o.animation,a),a.previousNode=o}visitSequence(o,a){const m=a.subContextCount;let N=a;const G=o.options;if(G&&(G.params||G.delay)&&(N=a.createSubContext(G),N.transformIntoNewTimeline(),null!=G.delay)){6==N.previousNode.type&&(N.currentTimeline.snapshotCurrentStyles(),N.previousNode=Li);const ae=_i(G.delay);N.delayNextStep(ae)}o.steps.length&&(o.steps.forEach(ae=>xt(this,ae,N)),N.currentTimeline.applyStylesToKeyframe(),N.subContextCount>m&&N.transformIntoNewTimeline()),a.previousNode=o}visitGroup(o,a){const m=[];let N=a.currentTimeline.currentTime;const G=o.options&&o.options.delay?_i(o.options.delay):0;o.steps.forEach(ae=>{const fe=a.createSubContext(o.options);G&&fe.delayNextStep(G),xt(this,ae,fe),N=Math.max(N,fe.currentTimeline.currentTime),m.push(fe.currentTimeline)}),m.forEach(ae=>a.currentTimeline.mergeTimelineCollectedStyles(ae)),a.transformIntoNewTimeline(N),a.previousNode=o}_visitTiming(o,a){if(o.dynamic){const m=o.strValue;return Si(a.params?Or(m,a.params,a.errors):m,a.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,a){const m=a.currentAnimateTimings=this._visitTiming(o.timings,a),N=a.currentTimeline;m.delay&&(a.incrementTime(m.delay),N.snapshotCurrentStyles());const G=o.style;5==G.type?this.visitKeyframes(G,a):(a.incrementTime(m.duration),this.visitStyle(G,a),N.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=o}visitStyle(o,a){const m=a.currentTimeline,N=a.currentAnimateTimings;!N&&m.hasCurrentStyleProperties()&&m.forwardFrame();const G=N&&N.easing||o.easing;o.isEmptyStep?m.applyEmptyStep(G):m.setStyles(o.styles,G,a.errors,a.options),a.previousNode=o}visitKeyframes(o,a){const m=a.currentAnimateTimings,N=a.currentTimeline.duration,G=m.duration,fe=a.createSubContext().currentTimeline;fe.easing=m.easing,o.styles.forEach(xe=>{fe.forwardTime((xe.offset||0)*G),fe.setStyles(xe.styles,xe.easing,a.errors,a.options),fe.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(fe),a.transformIntoNewTimeline(N+G),a.previousNode=o}visitQuery(o,a){const m=a.currentTimeline.currentTime,N=o.options||{},G=N.delay?_i(N.delay):0;G&&(6===a.previousNode.type||0==m&&a.currentTimeline.hasCurrentStyleProperties())&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Li);let ae=m;const fe=a.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!N.optional,a.errors);a.currentQueryTotal=fe.length;let xe=null;fe.forEach((Ke,st)=>{a.currentQueryIndex=st;const ct=a.createSubContext(o.options,Ke);G&&ct.delayNextStep(G),Ke===a.element&&(xe=ct.currentTimeline),xt(this,o.animation,ct),ct.currentTimeline.applyStylesToKeyframe(),ae=Math.max(ae,ct.currentTimeline.currentTime)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(ae),xe&&(a.currentTimeline.mergeTimelineCollectedStyles(xe),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=o}visitStagger(o,a){const m=a.parentContext,N=a.currentTimeline,G=o.timings,ae=Math.abs(G.duration),fe=ae*(a.currentQueryTotal-1);let xe=ae*a.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":xe=fe-xe;break;case"full":xe=m.currentStaggerTime}const st=a.currentTimeline;xe&&st.delayNextStep(xe);const ct=st.currentTime;xt(this,o.animation,a),a.previousNode=o,m.currentStaggerTime=N.currentTime-ct+(N.startTime-m.currentTimeline.startTime)}}const Li={};class fn{constructor(o,a,m,N,G,ae,fe,xe){this._driver=o,this.element=a,this.subInstructions=m,this._enterClassName=N,this._leaveClassName=G,this.errors=ae,this.timelines=fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=xe||new Fs(this._driver,a,0),fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,a){if(!o)return;const m=o;let N=this.options;null!=m.duration&&(N.duration=_i(m.duration)),null!=m.delay&&(N.delay=_i(m.delay));const G=m.params;if(G){let ae=N.params;ae||(ae=this.options.params={}),Object.keys(G).forEach(fe=>{(!a||!ae.hasOwnProperty(fe))&&(ae[fe]=Or(G[fe],ae,this.errors))})}}_copyOptions(){const o={};if(this.options){const a=this.options.params;if(a){const m=o.params={};Object.keys(a).forEach(N=>{m[N]=a[N]})}}return o}createSubContext(o=null,a,m){const N=a||this.element,G=new fn(this._driver,N,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(N,m||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(o),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(o){return this.previousNode=Li,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,a,m){const N={duration:null!=a?a:o.duration,delay:this.currentTimeline.currentTime+(null!=m?m:0)+o.delay,easing:""},G=new Ta(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,N,o.stretchStartingKeyframe);return this.timelines.push(G),N}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,a,m,N,G,ae){let fe=[];if(N&&fe.push(this.element),o.length>0){o=(o=o.replace(ro,"."+this._enterClassName)).replace(Ma,"."+this._leaveClassName);let Ke=this._driver.query(this.element,o,1!=m);0!==m&&(Ke=m<0?Ke.slice(Ke.length+m,Ke.length):Ke.slice(0,m)),fe.push(...Ke)}return!G&&0==fe.length&&ae.push(function Vn(O){return new j.vHH(3014,!1)}()),fe}}class Fs{constructor(o,a,m,N){this._driver=o,this.element=a,this.startTime=m,this._elementTimelineStylesLookup=N,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const a=1===this._keyframes.size&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+o),a&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,a){return this.applyStylesToKeyframe(),new Fs(this._driver,o,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,a){this._localTimelineStyles.set(o,a),this._globalTimelineStyles.set(o,a),this._styleSummary.set(o,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[a,m]of this._globalTimelineStyles)this._backFill.set(a,m||Gt.l3),this._currentKeyframe.set(a,Gt.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,a,m,N){var G;a&&this._previousKeyframe.set("easing",a);const ae=N&&N.params||{},fe=function Aa(O,o){const a=new Map;let m;return O.forEach(N=>{if("*"===N){m=m||o.keys();for(let G of m)a.set(G,Gt.l3)}else ki(N,a)}),a}(o,this._globalTimelineStyles);for(let[xe,Ke]of fe){const st=Or(Ke,ae,m);this._pendingStyles.set(xe,st),this._localTimelineStyles.has(xe)||this._backFill.set(xe,null!==(G=this._globalTimelineStyles.get(xe))&&void 0!==G?G:Gt.l3),this._updateStyle(xe,st)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,a)=>{this._currentKeyframe.set(a,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,o)}))}snapshotCurrentStyles(){for(let[o,a]of this._localTimelineStyles)this._pendingStyles.set(o,a),this._updateStyle(o,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let a in this._currentKeyframe)o.push(a);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((a,m)=>{const N=this._styleSummary.get(m);(!N||a.time>N.time)&&this._updateStyle(m,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,a=new Set,m=1===this._keyframes.size&&0===this.duration;let N=[];this._keyframes.forEach((fe,xe)=>{const Ke=ki(fe,new Map,this._backFill);Ke.forEach((st,ct)=>{st===Gt.k1?o.add(ct):st===Gt.l3&&a.add(ct)}),m||Ke.set("offset",xe/this.duration),N.push(Ke)});const G=o.size?ar(o.values()):[],ae=a.size?ar(a.values()):[];if(m){const fe=N[0],xe=new Map(fe);fe.set("offset",0),xe.set("offset",1),N=[fe,xe]}return Pr(this.element,N,G,ae,this.duration,this.startTime,this.easing,!1)}}class Ta extends Fs{constructor(o,a,m,N,G,ae,fe=!1){super(o,a,ae.delay),this.keyframes=m,this.preStyleProps=N,this.postStyleProps=G,this._stretchStartingKeyframe=fe,this.timings={duration:ae.duration,delay:ae.delay,easing:ae.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:a,duration:m,easing:N}=this.timings;if(this._stretchStartingKeyframe&&a){const G=[],ae=m+a,fe=a/ae,xe=ki(o[0]);xe.set("offset",0),G.push(xe);const Ke=ki(o[0]);Ke.set("offset",Wo(fe)),G.push(Ke);const st=o.length-1;for(let ct=1;ct<=st;ct++){let Bt=ki(o[ct]);const Ut=Bt.get("offset");Bt.set("offset",Wo((a+Ut*m)/ae)),G.push(Bt)}m=ae,a=0,N="",o=G}return Pr(this.element,o,this.preStyleProps,this.postStyleProps,m,a,N,!0)}}function Wo(O,o=3){const a=Math.pow(10,o-1);return Math.round(O*a)/a}class Ns{}const vs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ys extends Ns{normalizePropertyName(o,a){return lr(o)}normalizeStyleValue(o,a,m,N){let G="";const ae=m.toString().trim();if(vs.has(a)&&0!==m&&"0"!==m)if("number"==typeof m)G="px";else{const fe=m.match(/^[+-]?[\d\.]+([a-z]*)$/);fe&&0==fe[1].length&&N.push(function gt(O,o){return new j.vHH(3005,!1)}())}return ae+G}}function Bs(O,o,a,m,N,G,ae,fe,xe,Ke,st,ct,Bt){return{type:0,element:O,triggerName:o,isRemovalTransition:N,fromState:a,fromStyles:G,toState:m,toStyles:ae,timelines:fe,queriedElements:xe,preStyleProps:Ke,postStyleProps:st,totalTime:ct,errors:Bt}}const Hs={};class Go{constructor(o,a,m){this._triggerName=o,this.ast=a,this._stateStyles=m}match(o,a,m,N){return function bs(O,o,a,m,N){return O.some(G=>G(o,a,m,N))}(this.ast.matchers,o,a,m,N)}buildStyles(o,a,m){let N=this._stateStyles.get("*");return void 0!==o&&(N=this._stateStyles.get(null==o?void 0:o.toString())||N),N?N.buildStyles(a,m):new Map}build(o,a,m,N,G,ae,fe,xe,Ke,st){var ct;const Bt=[],Ut=this.ast.options&&this.ast.options.params||Hs,Nt=this.buildStyles(m,fe&&fe.params||Hs,Bt),an=xe&&xe.params||Hs,sn=this.buildStyles(N,an,Bt),Ln=new Set,ii=new Map,$n=new Map,rs="void"===N,Ai={params:Ia(an,Ut),delay:null===(ct=this.ast.options)||void 0===ct?void 0:ct.delay},Wn=st?[]:so(o,a,this.ast.animation,G,ae,Nt,sn,Ai,Ke,Bt);let Hi=0;if(Wn.forEach(Vi=>{Hi=Math.max(Vi.duration+Vi.delay,Hi)}),Bt.length)return Bs(a,this._triggerName,m,N,rs,Nt,sn,[],[],ii,$n,Hi,Bt);Wn.forEach(Vi=>{const zs=Vi.element,go=qn(ii,zs,new Set);Vi.preStyleProps.forEach(ws=>go.add(ws));const $s=qn($n,zs,new Set);Vi.postStyleProps.forEach(ws=>$s.add(ws)),zs!==a&&Ln.add(zs)});const ea=ar(Ln.values());return Bs(a,this._triggerName,m,N,rs,Nt,sn,Wn,ea,ii,$n,Hi)}}function Ia(O,o){const a=vi(o);for(const m in O)O.hasOwnProperty(m)&&null!=O[m]&&(a[m]=O[m]);return a}class xa{constructor(o,a,m){this.styles=o,this.defaultParams=a,this.normalizer=m}buildStyles(o,a){const m=new Map,N=vi(this.defaultParams);return Object.keys(o).forEach(G=>{const ae=o[G];null!==ae&&(N[G]=ae)}),this.styles.styles.forEach(G=>{"string"!=typeof G&&G.forEach((ae,fe)=>{ae&&(ae=Or(ae,N,a));const xe=this.normalizer.normalizePropertyName(fe,a);ae=this.normalizer.normalizeStyleValue(fe,xe,ae,a),m.set(xe,ae)})}),m}}class ao{constructor(o,a,m){this.name=o,this.ast=a,this._normalizer=m,this.transitionFactories=[],this.states=new Map,a.states.forEach(N=>{this.states.set(N.name,new xa(N.style,N.options&&N.options.params||{},m))}),A(this.states,"true","1"),A(this.states,"false","0"),a.transitions.forEach(N=>{this.transitionFactories.push(new Go(o,N,this.states))}),this.fallbackTransition=function Oa(O,o,a){return new Go(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ae,fe)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,a,m,N){return this.transitionFactories.find(ae=>ae.match(o,a,m,N))||null}matchStyles(o,a,m){return this.fallbackTransition.buildStyles(o,a,m)}}function A(O,o,a){O.has(o)?O.has(a)||O.set(a,O.get(o)):O.has(a)&&O.set(o,O.get(a))}const z=new Lr;class L{constructor(o,a,m){this.bodyNode=o,this._driver=a,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,a){const m=[],G=ti(this._driver,a,m,[]);if(m.length)throw function In(O){return new j.vHH(3503,!1)}();this._animations.set(o,G)}_buildPlayer(o,a,m){const N=o.element,G=Zr(0,this._normalizer,0,o.keyframes,a,m);return this._driver.animate(N,G,o.duration,o.delay,o.easing,[],!0)}create(o,a,m={}){const N=[],G=this._animations.get(o);let ae;const fe=new Map;if(G?(ae=so(this._driver,a,G,Gi,Tr,new Map,new Map,m,z,N),ae.forEach(st=>{const ct=qn(fe,st.element,new Map);st.postStyleProps.forEach(Bt=>ct.set(Bt,null))})):(N.push(function Ei(){return new j.vHH(3300,!1)}()),ae=[]),N.length)throw function Di(O){return new j.vHH(3504,!1)}();fe.forEach((st,ct)=>{st.forEach((Bt,Ut)=>{st.set(Ut,this._driver.computeStyle(ct,Ut,Gt.l3))})});const Ke=pi(ae.map(st=>{const ct=fe.get(st.element);return this._buildPlayer(st,new Map,ct)}));return this._playersById.set(o,Ke),Ke.onDestroy(()=>this.destroy(o)),this.players.push(Ke),Ke}destroy(o){const a=this._getPlayer(o);a.destroy(),this._playersById.delete(o);const m=this.players.indexOf(a);m>=0&&this.players.splice(m,1)}_getPlayer(o){const a=this._playersById.get(o);if(!a)throw function ir(O){return new j.vHH(3301,!1)}();return a}listen(o,a,m,N){const G=wr(a,"","","");return Sr(this._getPlayer(o),m,G,N),()=>{}}command(o,a,m,N){if("register"==m)return void this.register(o,N[0]);if("create"==m)return void this.create(o,a,N[0]||{});const G=this._getPlayer(o);switch(m){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(N[0]));break;case"destroy":this.destroy(o)}}}const J="ng-animate-queued",He="ng-animate-disabled",zt=[],tn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qt="__ng_removed";class Xt{constructor(o,a=""){this.namespaceId=a;const m=o&&o.hasOwnProperty("value");if(this.value=function mr(O){return null!=O?O:null}(m?o.value:o),m){const G=vi(o);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const a=o.params;if(a){const m=this.options.params;Object.keys(a).forEach(N=>{null==m[N]&&(m[N]=a[N])})}}}const wn="void",Fi=new Xt(wn);class Mi{constructor(o,a,m){this.id=o,this.hostElement=a,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,Ti(a,this._hostClassName)}listen(o,a,m,N){if(!this._triggers.has(a))throw function Yn(O,o){return new j.vHH(3302,!1)}();if(null==m||0==m.length)throw function Ji(O){return new j.vHH(3303,!1)}();if(!function Ko(O){return"start"==O||"done"==O}(m))throw function Is(O,o){return new j.vHH(3400,!1)}();const G=qn(this._elementListeners,o,[]),ae={name:a,phase:m,callback:N};G.push(ae);const fe=qn(this._engine.statesByElement,o,new Map);return fe.has(a)||(Ti(o,sr),Ti(o,sr+"-"+a),fe.set(a,Fi)),()=>{this._engine.afterFlush(()=>{const xe=G.indexOf(ae);xe>=0&&G.splice(xe,1),this._triggers.has(a)||fe.delete(a)})}}register(o,a){return!this._triggers.has(o)&&(this._triggers.set(o,a),!0)}_getTrigger(o){const a=this._triggers.get(o);if(!a)throw function Kr(O){return new j.vHH(3401,!1)}();return a}trigger(o,a,m,N=!0){const G=this._getTrigger(a),ae=new xn(this.id,a,o);let fe=this._engine.statesByElement.get(o);fe||(Ti(o,sr),Ti(o,sr+"-"+a),this._engine.statesByElement.set(o,fe=new Map));let xe=fe.get(a);const Ke=new Xt(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&xe&&Ke.absorbOptions(xe.options),fe.set(a,Ke),xe||(xe=Fi),Ke.value!==wn&&xe.value===Ke.value){if(!function lo(O,o){const a=Object.keys(O),m=Object.keys(o);if(a.length!=m.length)return!1;for(let N=0;N{Zn(o,an),bn(o,sn)})}return}const Bt=qn(this._engine.playersByElement,o,[]);Bt.forEach(Nt=>{Nt.namespaceId==this.id&&Nt.triggerName==a&&Nt.queued&&Nt.destroy()});let Ut=G.matchTransition(xe.value,Ke.value,o,Ke.params),Tt=!1;if(!Ut){if(!N)return;Ut=G.fallbackTransition,Tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:a,transition:Ut,fromState:xe,toState:Ke,player:ae,isFallbackTransition:Tt}),Tt||(Ti(o,J),ae.onStart(()=>{ts(o,J)})),ae.onDone(()=>{let Nt=this.players.indexOf(ae);Nt>=0&&this.players.splice(Nt,1);const an=this._engine.playersByElement.get(o);if(an){let sn=an.indexOf(ae);sn>=0&&an.splice(sn,1)}}),this.players.push(ae),Bt.push(ae),ae}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(a=>a.delete(o)),this._elementListeners.forEach((a,m)=>{this._elementListeners.set(m,a.filter(N=>N.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const a=this._engine.playersByElement.get(o);a&&(a.forEach(m=>m.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,a){const m=this._engine.driver.query(o,Ar,!0);m.forEach(N=>{if(N[qt])return;const G=this._engine.fetchNamespacesByElement(N);G.size?G.forEach(ae=>ae.triggerLeaveAnimation(N,a,!1,!0)):this.clearElementCache(N)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(N=>this.clearElementCache(N)))}triggerLeaveAnimation(o,a,m,N){const G=this._engine.statesByElement.get(o),ae=new Map;if(G){const fe=[];if(G.forEach((xe,Ke)=>{if(ae.set(Ke,xe.value),this._triggers.has(Ke)){const st=this.trigger(o,Ke,wn,N);st&&fe.push(st)}}),fe.length)return this._engine.markElementAsRemoved(this.id,o,!0,a,ae),m&&pi(fe).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const a=this._elementListeners.get(o),m=this._engine.statesByElement.get(o);if(a&&m){const N=new Set;a.forEach(G=>{const ae=G.name;if(N.has(ae))return;N.add(ae);const xe=this._triggers.get(ae).fallbackTransition,Ke=m.get(ae)||Fi,st=new Xt(wn),ct=new xn(this.id,ae,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:ae,transition:xe,fromState:Ke,toState:st,player:ct,isFallbackTransition:!0})})}}removeNode(o,a){const m=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,a),this.triggerLeaveAnimation(o,a,!0))return;let N=!1;if(m.totalAnimations){const G=m.players.length?m.playersByQueriedElement.get(o):[];if(G&&G.length)N=!0;else{let ae=o;for(;ae=ae.parentNode;)if(m.statesByElement.get(ae)){N=!0;break}}}if(this.prepareLeaveAnimationListeners(o),N)m.markElementAsRemoved(this.id,o,!1,a);else{const G=o[qt];(!G||G===tn)&&(m.afterFlush(()=>this.clearElementCache(o)),m.destroyInnerAnimations(o),m._onRemovalComplete(o,a))}}insertNode(o,a){Ti(o,this._hostClassName)}drainQueuedTransitions(o){const a=[];return this._queue.forEach(m=>{const N=m.player;if(N.destroyed)return;const G=m.element,ae=this._elementListeners.get(G);ae&&ae.forEach(fe=>{if(fe.name==m.triggerName){const xe=wr(G,m.triggerName,m.fromState.value,m.toState.value);xe._data=o,Sr(m.player,fe.phase,xe,fe.callback)}}),N.markedForDestroy?this._engine.afterFlush(()=>{N.destroy()}):a.push(m)}),this._queue=[],a.sort((m,N)=>{const G=m.transition.ast.depCount,ae=N.transition.ast.depCount;return 0==G||0==ae?G-ae:this._engine.driver.containsElement(m.element,N.element)?1:-1})}destroy(o){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let a=!1;return this._elementListeners.has(o)&&(a=!0),a=!!this._queue.find(m=>m.element===o)||a,a}}class pr{constructor(o,a,m){this.bodyNode=o,this.driver=a,this._normalizer=m,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(N,G)=>{}}_onRemovalComplete(o,a){this.onRemovalComplete(o,a)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(a=>{a.players.forEach(m=>{m.queued&&o.push(m)})}),o}createNamespace(o,a){const m=new Mi(o,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(m,a):(this.newHostElements.set(a,m),this.collectEnterElement(a)),this._namespaceLookup[o]=m}_balanceNamespaceList(o,a){const m=this._namespaceList,N=this.namespacesByHostElement;if(m.length-1>=0){let ae=!1,fe=this.driver.getParentElement(a);for(;fe;){const xe=N.get(fe);if(xe){const Ke=m.indexOf(xe);m.splice(Ke+1,0,o),ae=!0;break}fe=this.driver.getParentElement(fe)}ae||m.unshift(o)}else m.push(o);return N.set(a,o),o}register(o,a){let m=this._namespaceLookup[o];return m||(m=this.createNamespace(o,a)),m}registerTrigger(o,a,m){let N=this._namespaceLookup[o];N&&N.register(a,m)&&this.totalAnimations++}destroy(o,a){if(!o)return;const m=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(m.hostElement),delete this._namespaceLookup[o];const N=this._namespaceList.indexOf(m);N>=0&&this._namespaceList.splice(N,1)}),this.afterFlushAnimationsDone(()=>m.destroy(a))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const a=new Set,m=this.statesByElement.get(o);if(m)for(let N of m.values())if(N.namespaceId){const G=this._fetchNamespace(N.namespaceId);G&&a.add(G)}return a}trigger(o,a,m,N){if(gr(a)){const G=this._fetchNamespace(o);if(G)return G.trigger(a,m,N),!0}return!1}insertNode(o,a,m,N){if(!gr(a))return;const G=a[qt];if(G&&G.setForRemoval){G.setForRemoval=!1,G.setForMove=!0;const ae=this.collectedLeaveElements.indexOf(a);ae>=0&&this.collectedLeaveElements.splice(ae,1)}if(o){const ae=this._fetchNamespace(o);ae&&ae.insertNode(a,m)}N&&this.collectEnterElement(a)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,a){a?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Ti(o,He)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),ts(o,He))}removeNode(o,a,m,N){if(gr(a)){const G=o?this._fetchNamespace(o):null;if(G?G.removeNode(a,N):this.markElementAsRemoved(o,a,!1,N),m){const ae=this.namespacesByHostElement.get(a);ae&&ae.id!==o&&ae.removeNode(a,N)}}else this._onRemovalComplete(a,N)}markElementAsRemoved(o,a,m,N,G){this.collectedLeaveElements.push(a),a[qt]={namespaceId:o,setForRemoval:N,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:G}}listen(o,a,m,N,G){return gr(a)?this._fetchNamespace(o).listen(a,m,N,G):()=>{}}_buildInstruction(o,a,m,N,G){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,m,N,o.fromState.options,o.toState.options,a,G)}destroyInnerAnimations(o){let a=this.driver.query(o,Ar,!0);a.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(a=this.driver.query(o,_n,!0),a.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(o){const a=this.playersByElement.get(o);a&&a.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(o){const a=this.playersByQueriedElement.get(o);a&&a.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return pi(this.players).onDone(()=>o());o()})}processLeaveNode(o){var a;const m=o[qt];if(m&&m.setForRemoval){if(o[qt]=tn,m.namespaceId){this.destroyInnerAnimations(o);const N=this._fetchNamespace(m.namespaceId);N&&N.clearElementCache(o)}this._onRemovalComplete(o,m.setForRemoval)}!(null===(a=o.classList)||void 0===a)&&a.contains(He)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(N=>{this.markElementAsDisabled(N,!1)})}flush(o=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,N)=>this._balanceNamespaceList(m,N)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;mm()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],a.length?pi(a).onDone(()=>{m.forEach(N=>N())}):m.forEach(N=>N())}}reportError(o){throw function Yr(O){return new j.vHH(3402,!1)}()}_flushAnimations(o,a){const m=new Lr,N=[],G=new Map,ae=[],fe=new Map,xe=new Map,Ke=new Map,st=new Set;this.disabledNodes.forEach(dt=>{st.add(dt);const yt=this.driver.query(dt,".ng-animate-queued",!0);for(let At=0;At{const At=Gi+Nt++;Tt.set(yt,At),dt.forEach($t=>Ti($t,At))});const an=[],sn=new Set,Ln=new Set;for(let dt=0;dtsn.add($t)):Ln.add(yt))}const ii=new Map,$n=Ra(Bt,Array.from(sn));$n.forEach((dt,yt)=>{const At=Tr+Nt++;ii.set(yt,At),dt.forEach($t=>Ti($t,At))}),o.push(()=>{Ut.forEach((dt,yt)=>{const At=Tt.get(yt);dt.forEach($t=>ts($t,At))}),$n.forEach((dt,yt)=>{const At=ii.get(yt);dt.forEach($t=>ts($t,At))}),an.forEach(dt=>{this.processLeaveNode(dt)})});const rs=[],Ai=[];for(let dt=this._namespaceList.length-1;dt>=0;dt--)this._namespaceList[dt].drainQueuedTransitions(a).forEach(At=>{const $t=At.player,On=At.element;if(rs.push($t),this.collectedEnterElements.length){const di=On[qt];if(di&&di.setForMove){if(di.previousTriggersValues&&di.previousTriggersValues.has(At.triggerName)){const vr=di.previousTriggersValues.get(At.triggerName),qi=this.statesByElement.get(At.element);if(qi&&qi.has(At.triggerName)){const ta=qi.get(At.triggerName);ta.value=vr,qi.set(At.triggerName,ta)}}return void $t.destroy()}}const Yi=!ct||!this.driver.containsElement(ct,On),ji=ii.get(On),Hr=Tt.get(On),Cn=this._buildInstruction(At,m,Hr,ji,Yi);if(Cn.errors&&Cn.errors.length)return void Ai.push(Cn);if(Yi)return $t.onStart(()=>Zn(On,Cn.fromStyles)),$t.onDestroy(()=>bn(On,Cn.toStyles)),void N.push($t);if(At.isFallbackTransition)return $t.onStart(()=>Zn(On,Cn.fromStyles)),$t.onDestroy(()=>bn(On,Cn.toStyles)),void N.push($t);const _o=[];Cn.timelines.forEach(di=>{di.stretchStartingKeyframe=!0,this.disabledNodes.has(di.element)||_o.push(di)}),Cn.timelines=_o,m.append(On,Cn.timelines),ae.push({instruction:Cn,player:$t,element:On}),Cn.queriedElements.forEach(di=>qn(fe,di,[]).push($t)),Cn.preStyleProps.forEach((di,vr)=>{if(di.size){let qi=xe.get(vr);qi||xe.set(vr,qi=new Set),di.forEach((ta,Ka)=>qi.add(Ka))}}),Cn.postStyleProps.forEach((di,vr)=>{let qi=Ke.get(vr);qi||Ke.set(vr,qi=new Set),di.forEach((ta,Ka)=>qi.add(Ka))})});if(Ai.length){const dt=[];Ai.forEach(yt=>{dt.push(function ei(O,o){return new j.vHH(3505,!1)}())}),rs.forEach(yt=>yt.destroy()),this.reportError(dt)}const Wn=new Map,Hi=new Map;ae.forEach(dt=>{const yt=dt.element;m.has(yt)&&(Hi.set(yt,yt),this._beforeAnimationBuild(dt.player.namespaceId,dt.instruction,Wn))}),N.forEach(dt=>{const yt=dt.element;this._getPreviousPlayers(yt,!1,dt.namespaceId,dt.triggerName,null).forEach($t=>{qn(Wn,yt,[]).push($t),$t.destroy()})});const ea=an.filter(dt=>Ds(dt,xe,Ke)),Vi=new Map;js(Vi,this.driver,Ln,Ke,Gt.l3).forEach(dt=>{Ds(dt,xe,Ke)&&ea.push(dt)});const go=new Map;Ut.forEach((dt,yt)=>{js(go,this.driver,new Set(dt),xe,Gt.k1)}),ea.forEach(dt=>{var yt,At;const $t=Vi.get(dt),On=go.get(dt);Vi.set(dt,new Map([...Array.from(null!==(yt=null==$t?void 0:$t.entries())&&void 0!==yt?yt:[]),...Array.from(null!==(At=null==On?void 0:On.entries())&&void 0!==At?At:[])]))});const $s=[],ws=[],Ga={};ae.forEach(dt=>{const{element:yt,player:At,instruction:$t}=dt;if(m.has(yt)){if(st.has(yt))return At.onDestroy(()=>bn(yt,$t.toStyles)),At.disabled=!0,At.overrideTotalTime($t.totalTime),void N.push(At);let On=Ga;if(Hi.size>1){let ji=yt;const Hr=[];for(;ji=ji.parentNode;){const Cn=Hi.get(ji);if(Cn){On=Cn;break}Hr.push(ji)}Hr.forEach(Cn=>Hi.set(Cn,On))}const Yi=this._buildAnimation(At.namespaceId,$t,Wn,G,go,Vi);if(At.setRealPlayer(Yi),On===Ga)$s.push(At);else{const ji=this.playersByElement.get(On);ji&&ji.length&&(At.parentPlayer=pi(ji)),N.push(At)}}else Zn(yt,$t.fromStyles),At.onDestroy(()=>bn(yt,$t.toStyles)),ws.push(At),st.has(yt)&&N.push(At)}),ws.forEach(dt=>{const yt=G.get(dt.element);if(yt&&yt.length){const At=pi(yt);dt.setRealPlayer(At)}}),N.forEach(dt=>{dt.parentPlayer?dt.syncPlayerEvents(dt.parentPlayer):dt.destroy()});for(let dt=0;dt!Yi.destroyed);On.length?ka(this,yt,On):this.processLeaveNode(yt)}return an.length=0,$s.forEach(dt=>{this.players.push(dt),dt.onDone(()=>{dt.destroy();const yt=this.players.indexOf(dt);this.players.splice(yt,1)}),dt.play()}),$s}elementContainsData(o,a){let m=!1;const N=a[qt];return N&&N.setForRemoval&&(m=!0),this.playersByElement.has(a)&&(m=!0),this.playersByQueriedElement.has(a)&&(m=!0),this.statesByElement.has(a)&&(m=!0),this._fetchNamespace(o).elementContainsData(a)||m}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,a,m,N,G){let ae=[];if(a){const fe=this.playersByQueriedElement.get(o);fe&&(ae=fe)}else{const fe=this.playersByElement.get(o);if(fe){const xe=!G||G==wn;fe.forEach(Ke=>{Ke.queued||!xe&&Ke.triggerName!=N||ae.push(Ke)})}}return(m||N)&&(ae=ae.filter(fe=>!(m&&m!=fe.namespaceId||N&&N!=fe.triggerName))),ae}_beforeAnimationBuild(o,a,m){const G=a.element,ae=a.isRemovalTransition?void 0:o,fe=a.isRemovalTransition?void 0:a.triggerName;for(const xe of a.timelines){const Ke=xe.element,st=Ke!==G,ct=qn(m,Ke,[]);this._getPreviousPlayers(Ke,st,ae,fe,a.toState).forEach(Ut=>{const Tt=Ut.getRealPlayer();Tt.beforeDestroy&&Tt.beforeDestroy(),Ut.destroy(),ct.push(Ut)})}Zn(G,a.fromStyles)}_buildAnimation(o,a,m,N,G,ae){const fe=a.triggerName,xe=a.element,Ke=[],st=new Set,ct=new Set,Bt=a.timelines.map(Tt=>{const Nt=Tt.element;st.add(Nt);const an=Nt[qt];if(an&&an.removedBeforeQueried)return new Gt.ZN(Tt.duration,Tt.delay);const sn=Nt!==xe,Ln=function Pa(O){const o=[];return La(O,o),o}((m.get(Nt)||zt).map(Wn=>Wn.getRealPlayer())).filter(Wn=>!!Wn.element&&Wn.element===Nt),ii=G.get(Nt),$n=ae.get(Nt),rs=Zr(0,this._normalizer,0,Tt.keyframes,ii,$n),Ai=this._buildPlayer(Tt,rs,Ln);if(Tt.subTimeline&&N&&ct.add(Nt),sn){const Wn=new xn(o,fe,Nt);Wn.setRealPlayer(Ai),Ke.push(Wn)}return Ai});Ke.forEach(Tt=>{qn(this.playersByQueriedElement,Tt.element,[]).push(Tt),Tt.onDone(()=>function Es(O,o,a){let m=O.get(o);if(m){if(m.length){const N=m.indexOf(a);m.splice(N,1)}0==m.length&&O.delete(o)}return m}(this.playersByQueriedElement,Tt.element,Tt))}),st.forEach(Tt=>Ti(Tt,to));const Ut=pi(Bt);return Ut.onDestroy(()=>{st.forEach(Tt=>ts(Tt,to)),bn(xe,a.toStyles)}),ct.forEach(Tt=>{qn(N,Tt,[]).push(Ut)}),Ut}_buildPlayer(o,a,m){return a.length>0?this.driver.animate(o.element,a,o.duration,o.delay,o.easing,m):new Gt.ZN(o.duration,o.delay)}}class xn{constructor(o,a,m){this.namespaceId=o,this.triggerName=a,this.element=m,this._player=new Gt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((a,m)=>{a.forEach(N=>Sr(o,m,void 0,N))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const a=this._player;a.triggerCallback&&o.onStart(()=>a.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,a){qn(this._queuedCallbacks,o,[]).push(a)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const a=this._player;a.triggerCallback&&a.triggerCallback(o)}}function gr(O){return O&&1===O.nodeType}function Vs(O,o){const a=O.style.display;return O.style.display=null!=o?o:"none",a}function js(O,o,a,m,N){const G=[];a.forEach(xe=>G.push(Vs(xe)));const ae=[];m.forEach((xe,Ke)=>{const st=new Map;xe.forEach(ct=>{const Bt=o.computeStyle(Ke,ct,N);st.set(ct,Bt),(!Bt||0==Bt.length)&&(Ke[qt]=Vt,ae.push(Ke))}),O.set(Ke,st)});let fe=0;return a.forEach(xe=>Vs(xe,G[fe++])),ae}function Ra(O,o){const a=new Map;if(O.forEach(fe=>a.set(fe,[])),0==o.length)return a;const N=new Set(o),G=new Map;function ae(fe){if(!fe)return 1;let xe=G.get(fe);if(xe)return xe;const Ke=fe.parentNode;return xe=a.has(Ke)?Ke:N.has(Ke)?1:ae(Ke),G.set(fe,xe),xe}return o.forEach(fe=>{const xe=ae(fe);1!==xe&&a.get(xe).push(fe)}),a}function Ti(O,o){var a;null===(a=O.classList)||void 0===a||a.add(o)}function ts(O,o){var a;null===(a=O.classList)||void 0===a||a.remove(o)}function ka(O,o,a){pi(a).onDone(()=>O.processLeaveNode(o))}function La(O,o){for(let a=0;aN.add(G)):o.set(O,m),a.delete(O),!0}class co{constructor(o,a,m){this.bodyNode=o,this._driver=a,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(N,G)=>{},this._transitionEngine=new pr(o,a,m),this._timelineEngine=new L(o,a,m),this._transitionEngine.onRemovalComplete=(N,G)=>this.onRemovalComplete(N,G)}registerTrigger(o,a,m,N,G){const ae=o+"-"+N;let fe=this._triggerCache[ae];if(!fe){const xe=[],st=ti(this._driver,G,xe,[]);if(xe.length)throw function fi(O,o){return new j.vHH(3404,!1)}();fe=function Cs(O,o,a){return new ao(O,o,a)}(N,st,this._normalizer),this._triggerCache[ae]=fe}this._transitionEngine.registerTrigger(a,N,fe)}register(o,a){this._transitionEngine.register(o,a)}destroy(o,a){this._transitionEngine.destroy(o,a)}onInsert(o,a,m,N){this._transitionEngine.insertNode(o,a,m,N)}onRemove(o,a,m,N){this._transitionEngine.removeNode(o,a,N||!1,m)}disableAnimations(o,a){this._transitionEngine.markElementAsDisabled(o,a)}process(o,a,m,N){if("@"==m.charAt(0)){const[G,ae]=Qr(m);this._timelineEngine.command(G,a,ae,N)}else this._transitionEngine.trigger(o,a,m,N)}listen(o,a,m,N,G){if("@"==m.charAt(0)){const[ae,fe]=Qr(m);return this._timelineEngine.listen(ae,a,fe,G)}return this._transitionEngine.listen(o,a,m,N,G)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Na=(()=>{class O{constructor(a,m,N){this._element=a,this._startStyles=m,this._endStyles=N,this._state=0;let G=O.initialStylesByElement.get(a);G||O.initialStylesByElement.set(a,G=new Map),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&bn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bn(this._element,this._initialStyles),this._endStyles&&(bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Zn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zn(this._element,this._endStyles),this._endStyles=null),bn(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Nr(O){let o=null;return O.forEach((a,m)=>{(function Fl(O){return"display"===O||"position"===O})(m)&&(o=o||new Map,o.set(m,a))}),o}class Yo{constructor(o,a,m,N){this.element=o,this.keyframes=a,this.options=m,this._specialStyles=N,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const a=[];return o.forEach(m=>{a.push(Object.fromEntries(m))}),a}_triggerWebAnimation(o,a,m){return o.animate(this._convertKeyframesToObject(a),m)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,N)=>{"offset"!==N&&o.set(N,this._finished?m:ps(this.element,N))}),this.currentSnapshot=o}triggerCallback(o){const a="start"===o?this._onStartFns:this._onDoneFns;a.forEach(m=>m()),a.length=0}}class qo{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,a){return!1}containsElement(o,a){return ce(o,a)}getParentElement(o){return Wi(o)}query(o,a,m){return Le(o,a,m)}computeStyle(o,a,m){return window.getComputedStyle(o)[a]}animate(o,a,m,N,G,ae=[]){const xe={duration:m,delay:N,fill:0==N?"both":"forwards"};G&&(xe.easing=G);const Ke=new Map,st=ae.filter(Ut=>Ut instanceof Yo);(function Uo(O,o){return 0===O||0===o})(m,N)&&st.forEach(Ut=>{Ut.currentSnapshot.forEach((Tt,Nt)=>Ke.set(Nt,Tt))});let ct=function er(O){return O.length?O[0]instanceof Map?O:O.map(o=>Ir(o)):[]}(a).map(Ut=>ki(Ut));ct=function qe(O,o,a){if(a.size&&o.length){let m=o[0],N=[];if(a.forEach((G,ae)=>{m.has(ae)||N.push(ae),m.set(ae,G)}),N.length)for(let G=1;Gae.set(fe,ps(O,fe)))}}return o}(o,ct,Ke);const Bt=function Fa(O,o){let a=null,m=null;return Array.isArray(o)&&o.length?(a=Nr(o[0]),o.length>1&&(m=Nr(o[o.length-1]))):o instanceof Map&&(a=Nr(o)),a||m?new Na(O,a,m):null}(o,ct);return new Yo(o,ct,xe,Bt)}}let Nl=(()=>{class O extends Gt._j{constructor(a,m){super(),this._nextAnimationId=0,this._renderer=a.createRenderer(m.body,{id:"0",encapsulation:j.ifc.None,styles:[],data:{animation:[]}})}build(a){const m=this._nextAnimationId.toString();this._nextAnimationId++;const N=Array.isArray(a)?(0,Gt.vP)(a):a;return ns(this._renderer,null,m,"register",[N]),new Ba(m,this._renderer)}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(j.FYo),j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();class Ba extends Gt.LC{constructor(o,a){super(),this._id=o,this._renderer=a}create(o,a){return new Zo(this._id,o,a||{},this._renderer)}}class Zo{constructor(o,a,m,N){this.id=o,this.element=a,this._renderer=N,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(o,a){return this._renderer.listen(this.element,`@@${this.id}:${o}`,a)}_command(o,...a){return ns(this._renderer,this.element,this.id,o,a)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(o){this._command("setPosition",o)}getPosition(){var o,a;return null!==(a=null===(o=this._renderer.engine.players[+this.id])||void 0===o?void 0:o.getPosition())&&void 0!==a?a:0}}function ns(O,o,a,m,N){return O.setProperty(o,`@@${a}:${m}`,N)}const is="@.disabled";let Ha=(()=>{class O{constructor(a,m,N){this.delegate=a,this.engine=m,this._zone=N,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),m.onRemovalComplete=(G,ae)=>{const fe=null==ae?void 0:ae.parentNode(G);fe&&ae.removeChild(fe,G)}}createRenderer(a,m){const G=this.delegate.createRenderer(a,m);if(!(a&&m&&m.data&&m.data.animation)){let st=this._rendererCache.get(G);return st||(st=new uo("",G,this.engine,()=>this._rendererCache.delete(G)),this._rendererCache.set(G,st)),st}const ae=m.id,fe=m.id+"-"+this._currentId;this._currentId++,this.engine.register(fe,a);const xe=st=>{Array.isArray(st)?st.forEach(xe):this.engine.registerTrigger(ae,fe,a,st.name,st)};return m.data.animation.forEach(xe),new Ss(this,fe,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(a,m,N){a>=0&&am(N)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ae,fe]=G;ae(fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([m,N]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(j.FYo),j.LFG(co),j.LFG(j.R0b))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();class uo{constructor(o,a,m,N){this.namespaceId=o,this.delegate=a,this.engine=m,this._onDestroy=N,this.destroyNode=this.delegate.destroyNode?G=>a.destroyNode(G):null}get data(){return this.delegate.data}destroy(){var o;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(o=this._onDestroy)||void 0===o||o.call(this)}createElement(o,a){return this.delegate.createElement(o,a)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,a){this.delegate.appendChild(o,a),this.engine.onInsert(this.namespaceId,a,o,!1)}insertBefore(o,a,m,N=!0){this.delegate.insertBefore(o,a,m),this.engine.onInsert(this.namespaceId,a,o,N)}removeChild(o,a,m){this.engine.onRemove(this.namespaceId,a,this.delegate,m)}selectRootElement(o,a){return this.delegate.selectRootElement(o,a)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,a,m,N){this.delegate.setAttribute(o,a,m,N)}removeAttribute(o,a,m){this.delegate.removeAttribute(o,a,m)}addClass(o,a){this.delegate.addClass(o,a)}removeClass(o,a){this.delegate.removeClass(o,a)}setStyle(o,a,m,N){this.delegate.setStyle(o,a,m,N)}removeStyle(o,a,m){this.delegate.removeStyle(o,a,m)}setProperty(o,a,m){"@"==a.charAt(0)&&a==is?this.disableAnimations(o,!!m):this.delegate.setProperty(o,a,m)}setValue(o,a){this.delegate.setValue(o,a)}listen(o,a,m){return this.delegate.listen(o,a,m)}disableAnimations(o,a){this.engine.disableAnimations(o,a)}}class Ss extends uo{constructor(o,a,m,N,G){super(a,m,N,G),this.factory=o,this.namespaceId=a}setProperty(o,a,m){"@"==a.charAt(0)?"."==a.charAt(1)&&a==is?this.disableAnimations(o,m=void 0===m||!!m):this.engine.process(this.namespaceId,o,a.slice(1),m):this.delegate.setProperty(o,a,m)}listen(o,a,m){if("@"==a.charAt(0)){const N=function od(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(o);let G=a.slice(1),ae="";return"@"!=G.charAt(0)&&([G,ae]=function Bl(O){const o=O.indexOf(".");return[O.substring(0,o),O.slice(o+1)]}(G)),this.engine.listen(this.namespaceId,N,G,ae,fe=>{this.factory.scheduleListenerCallback(fe._data||-1,m,fe)})}return this.delegate.listen(o,a,m)}}const Hl=[{provide:Gt._j,useClass:Nl},{provide:Ns,useFactory:function ad(){return new ys}},{provide:co,useClass:(()=>{class O extends co{constructor(a,m,N,G){super(a.body,m,N)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0),j.LFG(Mt),j.LFG(Ns),j.LFG(j.z2F))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})()},{provide:j.FYo,useFactory:function ld(O,o,a){return new Ha(O,o,a)},deps:[re,co,j.R0b]}],Va=[{provide:Mt,useFactory:()=>new qo},{provide:j.QbO,useValue:"BrowserAnimations"},...Hl],Vl=[{provide:Mt,useClass:Dt},{provide:j.QbO,useValue:"NoopAnimations"},...Hl];let cd=(()=>{class O{static withConfig(a){return{ngModule:O,providers:a.disableAnimations?Vl:Va}}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({providers:Va,imports:[ie]}),O})();var jl=$(508);let za=(()=>{class O{}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({imports:[jl.BQ,jl.BQ]}),O})();var Wl=$(6224),Gl=$(9199),Kl=$(7322),Yl=$(6041);let Ql=(()=>{class O{static forRoot(){return{ngModule:O,providers:[]}}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({imports:[_.ez]}),O})(),Jl=(()=>{class O{}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O,bootstrap:[Gl.A]}),O.\u0275inj=j.cJS({imports:[ie,oi.qZ,Hn.ot,Xn.rP,Oi.c,on.UX,cd,za,Wl.s,Kl.lN,Yl.Nh,Ql.forRoot()]}),O})();(0,j.G48)(),Nn().bootstrapModule(Jl).catch(O=>console.error(O))},6224:(nt,Fe,$)=>{"use strict";$.d(Fe,{Y:()=>I,s:()=>P});var _=$(9808),j=$(5e3);function p(T,y){1&T&&j._UZ(0,"div",9)}function h(T,y){if(1&T&&(j.TgZ(0,"span",10),j._uU(1),j.qZA()),2&T){const l=j.oxw().$implicit;j.xp6(1),j.Oqu(l.description)}}function b(T,y){if(1&T&&(j.TgZ(0,"section",11),j._UZ(1,"ngx-json-viewer",12),j.qZA()),2&T){const l=j.oxw().$implicit,f=j.oxw();j.xp6(1),j.Q6J("json",l.value)("expanded",f.expanded)}}const E=function(T){return["segment",T]},x=function(T,y){return{"segment-main":!0,expandable:T,expanded:y}};function D(T,y){if(1&T){const l=j.EpF();j.TgZ(0,"section",2)(1,"section",3),j.NdJ("click",function(){const d=j.CHM(l).$implicit,C=j.oxw();return j.KtG(C.toggle(d))}),j.YNc(2,p,1,0,"div",4),j.TgZ(3,"span",5),j._uU(4),j.qZA(),j.TgZ(5,"span",6),j._uU(6,": "),j.qZA(),j.YNc(7,h,2,1,"span",7),j.qZA(),j.YNc(8,b,2,2,"section",8),j.qZA()}if(2&T){const l=y.$implicit,f=j.oxw();j.Q6J("ngClass",j.VKq(6,E,"segment-type-"+l.type)),j.xp6(1),j.Q6J("ngClass",j.WLB(8,x,f.isExpandable(l),l.expanded)),j.xp6(1),j.Q6J("ngIf",f.isExpandable(l)),j.xp6(2),j.Oqu(l.key),j.xp6(3),j.Q6J("ngIf",!l.expanded||!f.isExpandable(l)),j.xp6(1),j.Q6J("ngIf",l.expanded&&f.isExpandable(l))}}let I=(()=>{class T{constructor(){this.expanded=!0,this.cleanOnChange=!0,this.segments=[]}ngOnChanges(){this.cleanOnChange&&(this.segments=[]),"object"==typeof this.json?Object.keys(this.json).forEach(l=>{this.segments.push(this.parseKeyValue(l,this.json[l]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(l){return"object"===l.type||"array"===l.type}toggle(l){this.isExpandable(l)&&(l.expanded=!l.expanded)}parseKeyValue(l,f){const u={key:l,value:f,type:void 0,description:""+f,expanded:this.expanded};switch(typeof u.value){case"number":u.type="number";break;case"boolean":u.type="boolean";break;case"function":u.type="function";break;case"string":u.type="string",u.description='"'+u.value+'"';break;case"undefined":u.type="undefined",u.description="undefined";break;case"object":null===u.value?(u.type="null",u.description="null"):Array.isArray(u.value)?(u.type="array",u.description="Array["+u.value.length+"] "+JSON.stringify(u.value)):u.value instanceof Date?u.type="date":(u.type="object",u.description="Object "+JSON.stringify(u.value))}return u}}return T.\u0275fac=function(l){return new(l||T)},T.\u0275cmp=j.Xpm({type:T,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",cleanOnChange:"cleanOnChange",json:"json"},features:[j.TTD],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded"]],template:function(l,f){1&l&&(j.TgZ(0,"section",0),j.YNc(1,D,9,11,"section",1),j.qZA()),2&l&&(j.xp6(1),j.Q6J("ngForOf",f.segments))},dependencies:[_.mk,_.sg,_.O5,T],styles:['@charset "UTF-8";\n .ngx-json-viewer[_ngcontent-%COMP%] {\n font-family: monospace;\n font-size: 1em;\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: relative; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] {\n padding: 2px;\n margin: 1px 1px 1px 12px; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] {\n word-wrap: break-word; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%] {\n position: absolute;\n margin-left: -14px;\n margin-top: 3px;\n font-size: .8em;\n line-height: 1.2em;\n vertical-align: middle;\n color: #787878; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]::after {\n display: inline-block;\n content: "\u25ba";\n -webkit-transition: -webkit-transform 0.1s ease-in;\n transition: -webkit-transform 0.1s ease-in;\n transition: transform 0.1s ease-in;\n transition: transform 0.1s ease-in, -webkit-transform 0.1s ease-in; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%] {\n color: #4E187C; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%] {\n color: #000; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%] {\n margin-left: 12px; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #FF6B6B; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #009688; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #b938a4; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #05668D; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #fff; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #fff; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n background-color: red; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n background-color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] {\n white-space: nowrap; }\n .ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]::after {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%] {\n cursor: pointer; }']}),T})(),P=(()=>{class T{}return T.\u0275fac=function(l){return new(l||T)},T.\u0275mod=j.oAB({type:T}),T.\u0275inj=j.cJS({imports:[_.ez]}),T})()},8306:(nt,Fe,$)=>{"use strict";$.d(Fe,{y:()=>P});var _=$(930),j=$(727),p=$(8822),h=$(4671);var x=$(2416),D=$(576),I=$(2806);let P=(()=>{class f{constructor(d){d&&(this._subscribe=d)}lift(d){const C=new f;return C.source=this,C.operator=d,C}subscribe(d,C,R){const U=function l(f){return f&&f instanceof _.Lv||function y(f){return f&&(0,D.m)(f.next)&&(0,D.m)(f.error)&&(0,D.m)(f.complete)}(f)&&(0,j.Nn)(f)}(d)?d:new _.Hp(d,C,R);return(0,I.x)(()=>{const{operator:W,source:v}=this;U.add(W?W.call(U,v):v?this._subscribe(U):this._trySubscribe(U))}),U}_trySubscribe(d){try{return this._subscribe(d)}catch(C){d.error(C)}}forEach(d,C){return new(C=T(C))((R,U)=>{const W=new _.Hp({next:v=>{try{d(v)}catch(w){U(w),W.unsubscribe()}},error:U,complete:R});this.subscribe(W)})}_subscribe(d){var C;return null===(C=this.source)||void 0===C?void 0:C.subscribe(d)}[p.L](){return this}pipe(...d){return function E(f){return 0===f.length?h.y:1===f.length?f[0]:function(d){return f.reduce((C,R)=>R(C),d)}}(d)(this)}toPromise(d){return new(d=T(d))((C,R)=>{let U;this.subscribe(W=>U=W,W=>R(W),()=>C(U))})}}return f.create=u=>new f(u),f})();function T(f){var u;return null!==(u=null!=f?f:x.v.Promise)&&void 0!==u?u:Promise}},7579:(nt,Fe,$)=>{"use strict";$.d(Fe,{x:()=>x});var _=$(8306),j=$(727);const h=(0,$(3888).d)(I=>function(){I(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var b=$(8737),E=$(2806);let x=(()=>{class I extends _.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(T){const y=new D(this,this);return y.operator=T,y}_throwIfClosed(){if(this.closed)throw new h}next(T){(0,E.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const y of this.currentObservers)y.next(T)}})}error(T){(0,E.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=T;const{observers:y}=this;for(;y.length;)y.shift().error(T)}})}complete(){(0,E.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(T=this.observers)||void 0===T?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){const{hasError:y,isStopped:l,observers:f}=this;return y||l?j.Lc:(this.currentObservers=null,f.push(T),new j.w0(()=>{this.currentObservers=null,(0,b.P)(f,T)}))}_checkFinalizedStatuses(T){const{hasError:y,thrownError:l,isStopped:f}=this;y?T.error(l):f&&T.complete()}asObservable(){const T=new _.y;return T.source=this,T}}return I.create=(P,T)=>new D(P,T),I})();class D extends x{constructor(P,T){super(),this.destination=P,this.source=T}next(P){var T,y;null===(y=null===(T=this.destination)||void 0===T?void 0:T.next)||void 0===y||y.call(T,P)}error(P){var T,y;null===(y=null===(T=this.destination)||void 0===T?void 0:T.error)||void 0===y||y.call(T,P)}complete(){var P,T;null===(T=null===(P=this.destination)||void 0===P?void 0:P.complete)||void 0===T||T.call(P)}_subscribe(P){var T,y;return null!==(y=null===(T=this.source)||void 0===T?void 0:T.subscribe(P))&&void 0!==y?y:j.Lc}}},930:(nt,Fe,$)=>{"use strict";$.d(Fe,{Hp:()=>d,Lv:()=>y});var _=$(576),j=$(727),p=$(2416),h=$(7849),b=$(5032);const E=I("C",void 0,void 0);function I(v,w,F){return{kind:v,value:w,error:F}}var P=$(3410),T=$(2806);class y extends j.w0{constructor(w){super(),this.isStopped=!1,w?(this.destination=w,(0,j.Nn)(w)&&w.add(this)):this.destination=W}static create(w,F,Z){return new d(w,F,Z)}next(w){this.isStopped?U(function D(v){return I("N",v,void 0)}(w),this):this._next(w)}error(w){this.isStopped?U(function x(v){return I("E",void 0,v)}(w),this):(this.isStopped=!0,this._error(w))}complete(){this.isStopped?U(E,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(w){this.destination.next(w)}_error(w){try{this.destination.error(w)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const l=Function.prototype.bind;function f(v,w){return l.call(v,w)}class u{constructor(w){this.partialObserver=w}next(w){const{partialObserver:F}=this;if(F.next)try{F.next(w)}catch(Z){C(Z)}}error(w){const{partialObserver:F}=this;if(F.error)try{F.error(w)}catch(Z){C(Z)}else C(w)}complete(){const{partialObserver:w}=this;if(w.complete)try{w.complete()}catch(F){C(F)}}}class d extends y{constructor(w,F,Z){let Q;if(super(),(0,_.m)(w)||!w)Q={next:null!=w?w:void 0,error:null!=F?F:void 0,complete:null!=Z?Z:void 0};else{let ne;this&&p.v.useDeprecatedNextContext?(ne=Object.create(w),ne.unsubscribe=()=>this.unsubscribe(),Q={next:w.next&&f(w.next,ne),error:w.error&&f(w.error,ne),complete:w.complete&&f(w.complete,ne)}):Q=w}this.destination=new u(Q)}}function C(v){p.v.useDeprecatedSynchronousErrorHandling?(0,T.O)(v):(0,h.h)(v)}function U(v,w){const{onStoppedNotification:F}=p.v;F&&P.z.setTimeout(()=>F(v,w))}const W={closed:!0,next:b.Z,error:function R(v){throw v},complete:b.Z}},727:(nt,Fe,$)=>{"use strict";$.d(Fe,{Lc:()=>E,w0:()=>b,Nn:()=>x});var _=$(576);const p=(0,$(3888).d)(I=>function(T){I(this),this.message=T?`${T.length} errors occurred during unsubscription:\n${T.map((y,l)=>`${l+1}) ${y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=T});var h=$(8737);class b{constructor(P){this.initialTeardown=P,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let P;if(!this.closed){this.closed=!0;const{_parentage:T}=this;if(T)if(this._parentage=null,Array.isArray(T))for(const f of T)f.remove(this);else T.remove(this);const{initialTeardown:y}=this;if((0,_.m)(y))try{y()}catch(f){P=f instanceof p?f.errors:[f]}const{_finalizers:l}=this;if(l){this._finalizers=null;for(const f of l)try{D(f)}catch(u){P=null!=P?P:[],u instanceof p?P=[...P,...u.errors]:P.push(u)}}if(P)throw new p(P)}}add(P){var T;if(P&&P!==this)if(this.closed)D(P);else{if(P instanceof b){if(P.closed||P._hasParent(this))return;P._addParent(this)}(this._finalizers=null!==(T=this._finalizers)&&void 0!==T?T:[]).push(P)}}_hasParent(P){const{_parentage:T}=this;return T===P||Array.isArray(T)&&T.includes(P)}_addParent(P){const{_parentage:T}=this;this._parentage=Array.isArray(T)?(T.push(P),T):T?[T,P]:P}_removeParent(P){const{_parentage:T}=this;T===P?this._parentage=null:Array.isArray(T)&&(0,h.P)(T,P)}remove(P){const{_finalizers:T}=this;T&&(0,h.P)(T,P),P instanceof b&&P._removeParent(this)}}b.EMPTY=(()=>{const I=new b;return I.closed=!0,I})();const E=b.EMPTY;function x(I){return I instanceof b||I&&"closed"in I&&(0,_.m)(I.remove)&&(0,_.m)(I.add)&&(0,_.m)(I.unsubscribe)}function D(I){(0,_.m)(I)?I():I.unsubscribe()}},2416:(nt,Fe,$)=>{"use strict";$.d(Fe,{v:()=>_});const _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},7272:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>b});var _=$(8189),p=$(3269),h=$(2076);function b(...E){return function j(){return(0,_.J)(1)}()((0,h.D)(E,(0,p.yG)(E)))}},515:(nt,Fe,$)=>{"use strict";$.d(Fe,{E:()=>j});const j=new($(8306).y)(b=>b.complete())},2076:(nt,Fe,$)=>{"use strict";$.d(Fe,{D:()=>Z});var _=$(8421),j=$(9672),p=$(4482),h=$(5403);function b(Q,ne=0){return(0,p.e)((we,Be)=>{we.subscribe((0,h.x)(Be,Ie=>(0,j.f)(Be,Q,()=>Be.next(Ie),ne),()=>(0,j.f)(Be,Q,()=>Be.complete(),ne),Ie=>(0,j.f)(Be,Q,()=>Be.error(Ie),ne)))})}function E(Q,ne=0){return(0,p.e)((we,Be)=>{Be.add(Q.schedule(()=>we.subscribe(Be),ne))})}var I=$(8306),T=$(2202),y=$(576);function f(Q,ne){if(!Q)throw new Error("Iterable cannot be null");return new I.y(we=>{(0,j.f)(we,ne,()=>{const Be=Q[Symbol.asyncIterator]();(0,j.f)(we,ne,()=>{Be.next().then(Ie=>{Ie.done?we.complete():we.next(Ie.value)})},0,!0)})})}var u=$(3670),d=$(8239),C=$(1144),R=$(6495),U=$(2206),W=$(4532),v=$(3260);function Z(Q,ne){return ne?function F(Q,ne){if(null!=Q){if((0,u.c)(Q))return function x(Q,ne){return(0,_.Xf)(Q).pipe(E(ne),b(ne))}(Q,ne);if((0,C.z)(Q))return function P(Q,ne){return new I.y(we=>{let Be=0;return ne.schedule(function(){Be===Q.length?we.complete():(we.next(Q[Be++]),we.closed||this.schedule())})})}(Q,ne);if((0,d.t)(Q))return function D(Q,ne){return(0,_.Xf)(Q).pipe(E(ne),b(ne))}(Q,ne);if((0,U.D)(Q))return f(Q,ne);if((0,R.T)(Q))return function l(Q,ne){return new I.y(we=>{let Be;return(0,j.f)(we,ne,()=>{Be=Q[T.h](),(0,j.f)(we,ne,()=>{let Ie,Y;try{({value:Ie,done:Y}=Be.next())}catch(re){return void we.error(re)}Y?we.complete():we.next(Ie)},0,!0)}),()=>(0,y.m)(null==Be?void 0:Be.return)&&Be.return()})}(Q,ne);if((0,v.L)(Q))return function w(Q,ne){return f((0,v.Q)(Q),ne)}(Q,ne)}throw(0,W.z)(Q)}(Q,ne):(0,_.Xf)(Q)}},4968:(nt,Fe,$)=>{"use strict";$.d(Fe,{R:()=>P});var _=$(8421),j=$(8306),p=$(5577),h=$(1144),b=$(576),E=$(3268);const x=["addListener","removeListener"],D=["addEventListener","removeEventListener"],I=["on","off"];function P(u,d,C,R){if((0,b.m)(C)&&(R=C,C=void 0),R)return P(u,d,C).pipe((0,E.Z)(R));const[U,W]=function f(u){return(0,b.m)(u.addEventListener)&&(0,b.m)(u.removeEventListener)}(u)?D.map(v=>w=>u[v](d,w,C)):function y(u){return(0,b.m)(u.addListener)&&(0,b.m)(u.removeListener)}(u)?x.map(T(u,d)):function l(u){return(0,b.m)(u.on)&&(0,b.m)(u.off)}(u)?I.map(T(u,d)):[];if(!U&&(0,h.z)(u))return(0,p.z)(v=>P(v,d,C))((0,_.Xf)(u));if(!U)throw new TypeError("Invalid event target");return new j.y(v=>{const w=(...F)=>v.next(1W(w)})}function T(u,d){return C=>R=>u[C](d,R)}},8421:(nt,Fe,$)=>{"use strict";$.d(Fe,{Xf:()=>l});var _=$(7582),j=$(1144),p=$(8239),h=$(8306),b=$(3670),E=$(2206),x=$(4532),D=$(6495),I=$(3260),P=$(576),T=$(7849),y=$(8822);function l(v){if(v instanceof h.y)return v;if(null!=v){if((0,b.c)(v))return function f(v){return new h.y(w=>{const F=v[y.L]();if((0,P.m)(F.subscribe))return F.subscribe(w);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(v);if((0,j.z)(v))return function u(v){return new h.y(w=>{for(let F=0;F{v.then(F=>{w.closed||(w.next(F),w.complete())},F=>w.error(F)).then(null,T.h)})}(v);if((0,E.D)(v))return R(v);if((0,D.T)(v))return function C(v){return new h.y(w=>{for(const F of v)if(w.next(F),w.closed)return;w.complete()})}(v);if((0,I.L)(v))return function U(v){return R((0,I.Q)(v))}(v)}throw(0,x.z)(v)}function R(v){return new h.y(w=>{(function W(v,w){var F,Z,Q,ne;return(0,_.mG)(this,void 0,void 0,function*(){try{for(F=(0,_.KL)(v);!(Z=yield F.next()).done;)if(w.next(Z.value),w.closed)return}catch(we){Q={error:we}}finally{try{Z&&!Z.done&&(ne=F.return)&&(yield ne.call(F))}finally{if(Q)throw Q.error}}w.complete()})})(v,w).catch(F=>w.error(F))})}},6451:(nt,Fe,$)=>{"use strict";$.d(Fe,{T:()=>E});var _=$(8189),j=$(8421),p=$(515),h=$(3269),b=$(2076);function E(...x){const D=(0,h.yG)(x),I=(0,h._6)(x,1/0),P=x;return P.length?1===P.length?(0,j.Xf)(P[0]):(0,_.J)(I)((0,b.D)(P,D)):p.E}},9646:(nt,Fe,$)=>{"use strict";$.d(Fe,{of:()=>p});var _=$(3269),j=$(2076);function p(...h){const b=(0,_.yG)(h);return(0,j.D)(h,b)}},5403:(nt,Fe,$)=>{"use strict";$.d(Fe,{x:()=>j});var _=$(930);function j(h,b,E,x,D){return new p(h,b,E,x,D)}class p extends _.Lv{constructor(b,E,x,D,I,P){super(b),this.onFinalize=I,this.shouldUnsubscribe=P,this._next=E?function(T){try{E(T)}catch(y){b.error(y)}}:super._next,this._error=D?function(T){try{D(T)}catch(y){b.error(y)}finally{this.unsubscribe()}}:super._error,this._complete=x?function(){try{x()}catch(T){b.error(T)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var b;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:E}=this;super.unsubscribe(),!E&&(null===(b=this.onFinalize)||void 0===b||b.call(this))}}}},8372:(nt,Fe,$)=>{"use strict";$.d(Fe,{b:()=>h});var _=$(4986),j=$(4482),p=$(5403);function h(b,E=_.z){return(0,j.e)((x,D)=>{let I=null,P=null,T=null;const y=()=>{if(I){I.unsubscribe(),I=null;const f=P;P=null,D.next(f)}};function l(){const f=T+b,u=E.now();if(u{P=f,T=E.now(),I||(I=E.schedule(l,b),D.add(I))},()=>{y(),D.complete()},void 0,()=>{P=I=null}))})}},1884:(nt,Fe,$)=>{"use strict";$.d(Fe,{x:()=>h});var _=$(4671),j=$(4482),p=$(5403);function h(E,x=_.y){return E=null!=E?E:b,(0,j.e)((D,I)=>{let P,T=!0;D.subscribe((0,p.x)(I,y=>{const l=x(y);(T||!E(P,l))&&(T=!1,P=l,I.next(y))}))})}function b(E,x){return E===x}},9300:(nt,Fe,$)=>{"use strict";$.d(Fe,{h:()=>p});var _=$(4482),j=$(5403);function p(h,b){return(0,_.e)((E,x)=>{let D=0;E.subscribe((0,j.x)(x,I=>h.call(b,I,D++)&&x.next(I)))})}},4004:(nt,Fe,$)=>{"use strict";$.d(Fe,{U:()=>p});var _=$(4482),j=$(5403);function p(h,b){return(0,_.e)((E,x)=>{let D=0;E.subscribe((0,j.x)(x,I=>{x.next(h.call(b,I,D++))}))})}},8189:(nt,Fe,$)=>{"use strict";$.d(Fe,{J:()=>p});var _=$(5577),j=$(4671);function p(h=1/0){return(0,_.z)(j.y,h)}},5577:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>D});var _=$(4004),j=$(8421),p=$(4482),h=$(9672),b=$(5403),x=$(576);function D(I,P,T=1/0){return(0,x.m)(P)?D((y,l)=>(0,_.U)((f,u)=>P(y,f,l,u))((0,j.Xf)(I(y,l))),T):("number"==typeof P&&(T=P),(0,p.e)((y,l)=>function E(I,P,T,y,l,f,u,d){const C=[];let R=0,U=0,W=!1;const v=()=>{W&&!C.length&&!R&&P.complete()},w=Z=>R{f&&P.next(Z),R++;let Q=!1;(0,j.Xf)(T(Z,U++)).subscribe((0,b.x)(P,ne=>{null==l||l(ne),f?w(ne):P.next(ne)},()=>{Q=!0},void 0,()=>{if(Q)try{for(R--;C.length&&RF(ne)):F(ne)}v()}catch(ne){P.error(ne)}}))};return I.subscribe((0,b.x)(P,w,()=>{W=!0,v()})),()=>{null==d||d()}}(y,l,I,T)))}},3099:(nt,Fe,$)=>{"use strict";$.d(Fe,{B:()=>b});var _=$(8421),j=$(7579),p=$(930),h=$(4482);function b(x={}){const{connector:D=(()=>new j.x),resetOnError:I=!0,resetOnComplete:P=!0,resetOnRefCountZero:T=!0}=x;return y=>{let l,f,u,d=0,C=!1,R=!1;const U=()=>{null==f||f.unsubscribe(),f=void 0},W=()=>{U(),l=u=void 0,C=R=!1},v=()=>{const w=l;W(),null==w||w.unsubscribe()};return(0,h.e)((w,F)=>{d++,!R&&!C&&U();const Z=u=null!=u?u:D();F.add(()=>{d--,0===d&&!R&&!C&&(f=E(v,T))}),Z.subscribe(F),!l&&d>0&&(l=new p.Hp({next:Q=>Z.next(Q),error:Q=>{R=!0,U(),f=E(W,I,Q),Z.error(Q)},complete:()=>{C=!0,U(),f=E(W,P),Z.complete()}}),(0,_.Xf)(w).subscribe(l))})(y)}}function E(x,D,...I){if(!0===D)return void x();if(!1===D)return;const P=new p.Hp({next:()=>{P.unsubscribe(),x()}});return D(...I).subscribe(P)}},5684:(nt,Fe,$)=>{"use strict";$.d(Fe,{T:()=>j});var _=$(9300);function j(p){return(0,_.h)((h,b)=>p<=b)}},8675:(nt,Fe,$)=>{"use strict";$.d(Fe,{O:()=>h});var _=$(7272),j=$(3269),p=$(4482);function h(...b){const E=(0,j.yG)(b);return(0,p.e)((x,D)=>{(E?(0,_.z)(b,x,E):(0,_.z)(b,x)).subscribe(D)})}},5698:(nt,Fe,$)=>{"use strict";$.d(Fe,{q:()=>h});var _=$(515),j=$(4482),p=$(5403);function h(b){return b<=0?()=>_.E:(0,j.e)((E,x)=>{let D=0;E.subscribe((0,p.x)(x,I=>{++D<=b&&(x.next(I),b<=D&&x.complete())}))})}},2722:(nt,Fe,$)=>{"use strict";$.d(Fe,{R:()=>b});var _=$(4482),j=$(5403),p=$(8421),h=$(5032);function b(E){return(0,_.e)((x,D)=>{(0,p.Xf)(E).subscribe((0,j.x)(D,()=>D.complete(),h.Z)),!D.closed&&x.subscribe(D)})}},8505:(nt,Fe,$)=>{"use strict";$.d(Fe,{b:()=>b});var _=$(576),j=$(4482),p=$(5403),h=$(4671);function b(E,x,D){const I=(0,_.m)(E)||x||D?{next:E,error:x,complete:D}:E;return I?(0,j.e)((P,T)=>{var y;null===(y=I.subscribe)||void 0===y||y.call(I);let l=!0;P.subscribe((0,p.x)(T,f=>{var u;null===(u=I.next)||void 0===u||u.call(I,f),T.next(f)},()=>{var f;l=!1,null===(f=I.complete)||void 0===f||f.call(I),T.complete()},f=>{var u;l=!1,null===(u=I.error)||void 0===u||u.call(I,f),T.error(f)},()=>{var f,u;l&&(null===(f=I.unsubscribe)||void 0===f||f.call(I)),null===(u=I.finalize)||void 0===u||u.call(I)}))}):h.y}},4408:(nt,Fe,$)=>{"use strict";$.d(Fe,{o:()=>b});var _=$(727);class j extends _.w0{constructor(x,D){super()}schedule(x,D=0){return this}}const p={setInterval(E,x,...D){const{delegate:I}=p;return null!=I&&I.setInterval?I.setInterval(E,x,...D):setInterval(E,x,...D)},clearInterval(E){const{delegate:x}=p;return((null==x?void 0:x.clearInterval)||clearInterval)(E)},delegate:void 0};var h=$(8737);class b extends j{constructor(x,D){super(x,D),this.scheduler=x,this.work=D,this.pending=!1}schedule(x,D=0){var I;if(this.closed)return this;this.state=x;const P=this.id,T=this.scheduler;return null!=P&&(this.id=this.recycleAsyncId(T,P,D)),this.pending=!0,this.delay=D,this.id=null!==(I=this.id)&&void 0!==I?I:this.requestAsyncId(T,this.id,D),this}requestAsyncId(x,D,I=0){return p.setInterval(x.flush.bind(x,this),I)}recycleAsyncId(x,D,I=0){if(null!=I&&this.delay===I&&!1===this.pending)return D;null!=D&&p.clearInterval(D)}execute(x,D){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const I=this._execute(x,D);if(I)return I;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(x,D){let P,I=!1;try{this.work(x)}catch(T){I=!0,P=T||new Error("Scheduled action threw falsy error")}if(I)return this.unsubscribe(),P}unsubscribe(){if(!this.closed){const{id:x,scheduler:D}=this,{actions:I}=D;this.work=this.state=this.scheduler=null,this.pending=!1,(0,h.P)(I,this),null!=x&&(this.id=this.recycleAsyncId(D,x,null)),this.delay=null,super.unsubscribe()}}}},640:(nt,Fe,$)=>{"use strict";$.d(Fe,{v:()=>p});const _={now:()=>(_.delegate||Date).now(),delegate:void 0};class j{constructor(b,E=j.now){this.schedulerActionCtor=b,this.now=E}schedule(b,E=0,x){return new this.schedulerActionCtor(this,b).schedule(x,E)}}j.now=_.now;class p extends j{constructor(b,E=j.now){super(b,E),this.actions=[],this._active=!1}flush(b){const{actions:E}=this;if(this._active)return void E.push(b);let x;this._active=!0;do{if(x=b.execute(b.state,b.delay))break}while(b=E.shift());if(this._active=!1,x){for(;b=E.shift();)b.unsubscribe();throw x}}}},4986:(nt,Fe,$)=>{"use strict";$.d(Fe,{P:()=>h,z:()=>p});var _=$(4408);const p=new($(640).v)(_.o),h=p},3410:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>_});const _={setTimeout(j,p,...h){const{delegate:b}=_;return null!=b&&b.setTimeout?b.setTimeout(j,p,...h):setTimeout(j,p,...h)},clearTimeout(j){const{delegate:p}=_;return((null==p?void 0:p.clearTimeout)||clearTimeout)(j)},delegate:void 0}},2202:(nt,Fe,$)=>{"use strict";$.d(Fe,{h:()=>j});const j=function _(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(nt,Fe,$)=>{"use strict";$.d(Fe,{L:()=>_});const _="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(nt,Fe,$)=>{"use strict";$.d(Fe,{_6:()=>E,jO:()=>h,yG:()=>b});var _=$(576),j=$(3532);function p(x){return x[x.length-1]}function h(x){return(0,_.m)(p(x))?x.pop():void 0}function b(x){return(0,j.K)(p(x))?x.pop():void 0}function E(x,D){return"number"==typeof p(x)?x.pop():D}},4742:(nt,Fe,$)=>{"use strict";$.d(Fe,{D:()=>b});const{isArray:_}=Array,{getPrototypeOf:j,prototype:p,keys:h}=Object;function b(x){if(1===x.length){const D=x[0];if(_(D))return{args:D,keys:null};if(function E(x){return x&&"object"==typeof x&&j(x)===p}(D)){const I=h(D);return{args:I.map(P=>D[P]),keys:I}}}return{args:x,keys:null}}},8737:(nt,Fe,$)=>{"use strict";function _(j,p){if(j){const h=j.indexOf(p);0<=h&&j.splice(h,1)}}$.d(Fe,{P:()=>_})},3888:(nt,Fe,$)=>{"use strict";function _(j){const h=j(b=>{Error.call(b),b.stack=(new Error).stack});return h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h}$.d(Fe,{d:()=>_})},1810:(nt,Fe,$)=>{"use strict";function _(j,p){return j.reduce((h,b,E)=>(h[b]=p[E],h),{})}$.d(Fe,{n:()=>_})},2806:(nt,Fe,$)=>{"use strict";$.d(Fe,{O:()=>h,x:()=>p});var _=$(2416);let j=null;function p(b){if(_.v.useDeprecatedSynchronousErrorHandling){const E=!j;if(E&&(j={errorThrown:!1,error:null}),b(),E){const{errorThrown:x,error:D}=j;if(j=null,x)throw D}}else b()}function h(b){_.v.useDeprecatedSynchronousErrorHandling&&j&&(j.errorThrown=!0,j.error=b)}},9672:(nt,Fe,$)=>{"use strict";function _(j,p,h,b=0,E=!1){const x=p.schedule(function(){h(),E?j.add(this.schedule(null,b)):this.unsubscribe()},b);if(j.add(x),!E)return x}$.d(Fe,{f:()=>_})},4671:(nt,Fe,$)=>{"use strict";function _(j){return j}$.d(Fe,{y:()=>_})},1144:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>_});const _=j=>j&&"number"==typeof j.length&&"function"!=typeof j},2206:(nt,Fe,$)=>{"use strict";$.d(Fe,{D:()=>j});var _=$(576);function j(p){return Symbol.asyncIterator&&(0,_.m)(null==p?void 0:p[Symbol.asyncIterator])}},576:(nt,Fe,$)=>{"use strict";function _(j){return"function"==typeof j}$.d(Fe,{m:()=>_})},3670:(nt,Fe,$)=>{"use strict";$.d(Fe,{c:()=>p});var _=$(8822),j=$(576);function p(h){return(0,j.m)(h[_.L])}},6495:(nt,Fe,$)=>{"use strict";$.d(Fe,{T:()=>p});var _=$(2202),j=$(576);function p(h){return(0,j.m)(null==h?void 0:h[_.h])}},8239:(nt,Fe,$)=>{"use strict";$.d(Fe,{t:()=>j});var _=$(576);function j(p){return(0,_.m)(null==p?void 0:p.then)}},3260:(nt,Fe,$)=>{"use strict";$.d(Fe,{L:()=>h,Q:()=>p});var _=$(7582),j=$(576);function p(b){return(0,_.FC)(this,arguments,function*(){const x=b.getReader();try{for(;;){const{value:D,done:I}=yield(0,_.qq)(x.read());if(I)return yield(0,_.qq)(void 0);yield yield(0,_.qq)(D)}}finally{x.releaseLock()}})}function h(b){return(0,j.m)(null==b?void 0:b.getReader)}},3532:(nt,Fe,$)=>{"use strict";$.d(Fe,{K:()=>j});var _=$(576);function j(p){return p&&(0,_.m)(p.schedule)}},4482:(nt,Fe,$)=>{"use strict";$.d(Fe,{e:()=>p});var _=$(576);function p(h){return b=>{if(function j(h){return(0,_.m)(null==h?void 0:h.lift)}(b))return b.lift(function(E){try{return h(E,this)}catch(x){this.error(x)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(nt,Fe,$)=>{"use strict";$.d(Fe,{Z:()=>h});var _=$(4004);const{isArray:j}=Array;function h(b){return(0,_.U)(E=>function p(b,E){return j(E)?b(...E):b(E)}(b,E))}},5032:(nt,Fe,$)=>{"use strict";function _(){}$.d(Fe,{Z:()=>_})},7849:(nt,Fe,$)=>{"use strict";$.d(Fe,{h:()=>p});var _=$(2416),j=$(3410);function p(h){j.z.setTimeout(()=>{const{onUnhandledError:b}=_.v;if(!b)throw h;b(h)})}},4532:(nt,Fe,$)=>{"use strict";function _(j){return new TypeError(`You provided ${null!==j&&"object"==typeof j?"an invalid object":`'${j}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}$.d(Fe,{z:()=>_})},9162:nt=>{self,nt.exports=(()=>{"use strict";var $,Fe={};return $=Fe,Object.defineProperty($,"__esModule",{value:!0}),$.FitAddon=void 0,$.FitAddon=class{constructor(){}activate(_){this._terminal=_}dispose(){}fit(){const _=this.proposeDimensions();_&&this._terminal&&!isNaN(_.cols)&&!isNaN(_.rows)&&(this._terminal.rows===_.rows&&this._terminal.cols===_.cols||(this._terminal._core._renderService.clear(),this._terminal.resize(_.cols,_.rows)))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const _=this._terminal._core,j=_._renderService.dimensions;if(0===j.css.cell.width||0===j.css.cell.height)return;const p=0===this._terminal.options.scrollback?0:_.viewport.scrollBarWidth,h=window.getComputedStyle(this._terminal.element.parentElement),b=parseInt(h.getPropertyValue("height")),E=Math.max(0,parseInt(h.getPropertyValue("width"))),x=window.getComputedStyle(this._terminal.element),D=b-(parseInt(x.getPropertyValue("padding-top"))+parseInt(x.getPropertyValue("padding-bottom"))),I=E-(parseInt(x.getPropertyValue("padding-right"))+parseInt(x.getPropertyValue("padding-left")))-p;return{cols:Math.max(2,Math.floor(I/j.css.cell.width)),rows:Math.max(1,Math.floor(D/j.css.cell.height))}}},Fe})()},3883:nt=>{self,nt.exports=(()=>{"use strict";var Fe={6:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.LinkComputer=h.WebLinkProvider=void 0,h.WebLinkProvider=class{constructor(E,x,D,I={}){this._terminal=E,this._regex=x,this._handler=D,this._options=I}provideLinks(E,x){const D=b.computeLink(E,this._regex,this._terminal,this._handler);x(this._addCallbacks(D))}_addCallbacks(E){return E.map(x=>(x.leave=this._options.leave,x.hover=(D,I)=>{if(this._options.hover){const{range:P}=x;this._options.hover(D,I,P)}},x))}};class b{static computeLink(x,D,I,P){const T=new RegExp(D.source,(D.flags||"")+"g"),[y,l]=b._translateBufferLineToStringWithWrap(x-1,!1,I);let f,u=-1;const d=[];for(;null!==(f=T.exec(y));){const C=f[1];if(!C){console.log("match found without corresponding matchIndex");break}if(u=y.indexOf(C,u+1),T.lastIndex=u+C.length,u<0)break;let R=u+C.length,U=l+1;for(;R>I.cols;)R-=I.cols,U++;let W=u+1,v=l+1;for(;W>I.cols;)W-=I.cols,v++;d.push({range:{start:{x:W,y:v},end:{x:R,y:U}},text:C,activate:P})}return d}static _translateBufferLineToStringWithWrap(x,D,I){let P,T,y="";do{const f=I.buffer.active.getLine(x);if(!f)break;f.isWrapped&&x--,T=f.isWrapped}while(T);const l=x;do{const f=I.buffer.active.getLine(x+1);P=!!f&&f.isWrapped;const u=I.buffer.active.getLine(x);if(!u)break;y+=u.translateToString(!P&&D).substring(0,I.cols),x++}while(P);return[y,l]}}h.LinkComputer=b}},$={};function _(p){var h=$[p];if(void 0!==h)return h.exports;var b=$[p]={exports:{}};return Fe[p](b,b.exports,_),b.exports}var j={};return(()=>{var p=j;Object.defineProperty(p,"__esModule",{value:!0}),p.WebLinksAddon=void 0;const h=_(6),b=new RegExp("(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,18}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?((\\/[\\/\\w\\.\\-%~:+@]*)*([^:\"'\\s]))?(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)");function E(x,D){const I=window.open();if(I){try{I.opener=null}catch(P){}I.location.href=D}else console.warn("Opening link blocked as opener could not be cleared")}p.WebLinksAddon=class{constructor(x=E,D={}){this._handler=x,this._options=D}activate(x){this._terminal=x;const D=this._options;this._linkProvider=this._terminal.registerLinkProvider(new h.WebLinkProvider(this._terminal,D.urlRegex||b,this._handler,D))}dispose(){var x;null===(x=this._linkProvider)||void 0===x||x.dispose()}}})(),j})()},4793:nt=>{self,nt.exports=(()=>(()=>{"use strict";var Fe={4567:function(p,h,b){var E=this&&this.__decorate||function(d,C,R,U){var W,v=arguments.length,w=v<3?C:null===U?U=Object.getOwnPropertyDescriptor(C,R):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(d,C,R,U);else for(var F=d.length-1;F>=0;F--)(W=d[F])&&(w=(v<3?W(w):v>3?W(C,R,w):W(C,R))||w);return v>3&&w&&Object.defineProperty(C,R,w),w},x=this&&this.__param||function(d,C){return function(R,U){C(R,U,d)}};Object.defineProperty(h,"__esModule",{value:!0}),h.AccessibilityManager=void 0;const D=b(9042),I=b(6114),P=b(9924),T=b(844),y=b(5596),l=b(4725),f=b(3656);let u=class extends T.Disposable{constructor(d,C){super(),this._terminal=d,this._renderService=C,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let R=0;Rthis._handleBoundaryFocus(R,0),this._bottomBoundaryFocusListener=R=>this._handleBoundaryFocus(R,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new P.TimeBasedDebouncer(this._announceCharacters.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._liveRegionDebouncer),this.register(this._terminal.onResize(R=>this._handleResize(R.rows))),this.register(this._terminal.onRender(R=>this._refreshRows(R.start,R.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(R=>this._handleChar(R))),this.register(this._terminal.onLineFeed(()=>this._handleChar("\n"))),this.register(this._terminal.onA11yTab(R=>this._handleTab(R))),this.register(this._terminal.onKey(R=>this._handleKey(R.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new y.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,f.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,T.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(d){for(let C=0;C0?this._charsToConsume.shift()!==d&&(this._charsToAnnounce+=d):this._charsToAnnounce+=d,"\n"===d&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=D.tooMuchOutput)),I.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,I.isMac&&this._liveRegion.remove()}_handleKey(d){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(d)||this._charsToConsume.push(d)}_refreshRows(d,C){this._liveRegionDebouncer.refresh(d,C,this._terminal.rows)}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(d,C){const R=d.target,U=this._rowElements[0===C?1:this._rowElements.length-2];if(R.getAttribute("aria-posinset")===(0===C?"1":`${this._terminal.buffer.lines.length}`)||d.relatedTarget!==U)return;let W,v;if(0===C?(W=R,v=this._rowElements.pop(),this._rowContainer.removeChild(v)):(W=this._rowElements.shift(),v=R,this._rowContainer.removeChild(W)),W.removeEventListener("focus",this._topBoundaryFocusListener),v.removeEventListener("focus",this._bottomBoundaryFocusListener),0===C){const w=this._createAccessibilityTreeNode();this._rowElements.unshift(w),this._rowContainer.insertAdjacentElement("afterbegin",w)}else{const w=this._createAccessibilityTreeNode();this._rowElements.push(w),this._rowContainer.appendChild(w)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===C?-1:1),this._rowElements[0===C?1:this._rowElements.length-2].focus(),d.preventDefault(),d.stopImmediatePropagation()}_handleResize(d){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let C=this._rowContainer.children.length;Cd;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const d=document.createElement("div");return d.setAttribute("role","listitem"),d.tabIndex=-1,this._refreshRowDimensions(d),d}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let d=0;d{function b(I){return I.replace(/\r?\n/g,"\r")}function E(I,P){return P?"\x1b[200~"+I+"\x1b[201~":I}function x(I,P,T){I=E(I=b(I),T.decPrivateModes.bracketedPasteMode),T.triggerDataEvent(I,!0),P.value=""}function D(I,P,T){const y=T.getBoundingClientRect(),l=I.clientX-y.left-10,f=I.clientY-y.top-10;P.style.width="20px",P.style.height="20px",P.style.left=`${l}px`,P.style.top=`${f}px`,P.style.zIndex="1000",P.focus()}Object.defineProperty(h,"__esModule",{value:!0}),h.rightClickHandler=h.moveTextAreaUnderMouseCursor=h.paste=h.handlePasteEvent=h.copyHandler=h.bracketTextForPaste=h.prepareTextForTerminal=void 0,h.prepareTextForTerminal=b,h.bracketTextForPaste=E,h.copyHandler=function(I,P){I.clipboardData&&I.clipboardData.setData("text/plain",P.selectionText),I.preventDefault()},h.handlePasteEvent=function(I,P,T){I.stopPropagation(),I.clipboardData&&x(I.clipboardData.getData("text/plain"),P,T)},h.paste=x,h.moveTextAreaUnderMouseCursor=D,h.rightClickHandler=function(I,P,T,y,l){D(I,P,T),l&&y.rightClickSelect(I),P.value=y.selectionText,P.select()}},7239:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ColorContrastCache=void 0;const E=b(1505);h.ColorContrastCache=class{constructor(){this._color=new E.TwoKeyMap,this._css=new E.TwoKeyMap}setCss(x,D,I){this._css.set(x,D,I)}getCss(x,D){return this._css.get(x,D)}setColor(x,D,I){this._color.set(x,D,I)}getColor(x,D){return this._color.get(x,D)}clear(){this._color.clear(),this._css.clear()}}},3656:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.addDisposableDomListener=void 0,h.addDisposableDomListener=function(b,E,x,D){b.addEventListener(E,x,D);let I=!1;return{dispose:()=>{I||(I=!0,b.removeEventListener(E,x,D))}}}},6465:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},x=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.Linkifier2=void 0;const D=b(2585),I=b(8460),P=b(844),T=b(3656);let y=class extends P.Disposable{constructor(l){super(),this._bufferService=l,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new I.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new I.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,P.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,P.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}get currentLink(){return this._currentLink}registerLinkProvider(l){return this._linkProviders.push(l),{dispose:()=>{const f=this._linkProviders.indexOf(l);-1!==f&&this._linkProviders.splice(f,1)}}}attachToDom(l,f,u){this._element=l,this._mouseService=f,this._renderService=u,this.register((0,T.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,T.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,T.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,T.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(l){if(this._lastMouseEvent=l,!this._element||!this._mouseService)return;const f=this._positionFromMouseEvent(l,this._element,this._mouseService);if(!f)return;this._isMouseOut=!1;const u=l.composedPath();for(let d=0;d{null==R||R.forEach(U=>{U.link.dispose&&U.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=l.y);let C=!1;for(const[R,U]of this._linkProviders.entries())f?null!==(d=this._activeProviderReplies)&&void 0!==d&&d.get(R)&&(C=this._checkLinkProviderResult(R,l,C)):U.provideLinks(l.y,W=>{var v,w;if(this._isMouseOut)return;const F=null==W?void 0:W.map(Z=>({link:Z}));null===(v=this._activeProviderReplies)||void 0===v||v.set(R,F),C=this._checkLinkProviderResult(R,l,C),(null===(w=this._activeProviderReplies)||void 0===w?void 0:w.size)===this._linkProviders.length&&this._removeIntersectingLinks(l.y,this._activeProviderReplies)})}_removeIntersectingLinks(l,f){const u=new Set;for(let d=0;dl?this._bufferService.cols:U.link.range.end.x;for(let w=U.link.range.start.ythis._linkAtPosition(W.link,f));U&&(u=!0,this._handleNewLink(U))}if(this._activeProviderReplies.size===this._linkProviders.length&&!u)for(let U=0;Uthis._linkAtPosition(v.link,f));if(W){u=!0,this._handleNewLink(W);break}}return u}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(l){if(!this._element||!this._mouseService||!this._currentLink)return;const f=this._positionFromMouseEvent(l,this._element,this._mouseService);f&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,f)&&this._currentLink.link.activate(l,this._currentLink.link.text)}_clearCurrentLink(l,f){this._element&&this._currentLink&&this._lastMouseEvent&&(!l||!f||this._currentLink.link.range.start.y>=l&&this._currentLink.link.range.end.y<=f)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,P.disposeArray)(this._linkCacheDisposables))}_handleNewLink(l){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const f=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);f&&this._linkAtPosition(l.link,f)&&(this._currentLink=l,this._currentLink.state={decorations:{underline:void 0===l.link.decorations||l.link.decorations.underline,pointerCursor:void 0===l.link.decorations||l.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,l.link,this._lastMouseEvent),l.link.decorations={},Object.defineProperties(l.link.decorations,{pointerCursor:{get:()=>{var u,d;return null===(d=null===(u=this._currentLink)||void 0===u?void 0:u.state)||void 0===d?void 0:d.decorations.pointerCursor},set:u=>{var d,C;(null===(d=this._currentLink)||void 0===d?void 0:d.state)&&this._currentLink.state.decorations.pointerCursor!==u&&(this._currentLink.state.decorations.pointerCursor=u,this._currentLink.state.isHovered&&(null===(C=this._element)||void 0===C||C.classList.toggle("xterm-cursor-pointer",u)))}},underline:{get:()=>{var u,d;return null===(d=null===(u=this._currentLink)||void 0===u?void 0:u.state)||void 0===d?void 0:d.decorations.underline},set:u=>{var d,C,R;(null===(d=this._currentLink)||void 0===d?void 0:d.state)&&(null===(R=null===(C=this._currentLink)||void 0===C?void 0:C.state)||void 0===R?void 0:R.decorations.underline)!==u&&(this._currentLink.state.decorations.underline=u,this._currentLink.state.isHovered&&this._fireUnderlineEvent(l.link,u))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(u=>{if(!this._currentLink)return;const d=0===u.start?0:u.start+1+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.ydisp+1+u.end;if(this._currentLink.link.range.start.y>=d&&this._currentLink.link.range.end.y<=C&&(this._clearCurrentLink(d,C),this._lastMouseEvent&&this._element)){const R=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);R&&this._askForLink(R,!1)}})))}_linkHover(l,f,u){var d;!(null===(d=this._currentLink)||void 0===d)&&d.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(f,!0),this._currentLink.state.decorations.pointerCursor&&l.classList.add("xterm-cursor-pointer")),f.hover&&f.hover(u,f.text)}_fireUnderlineEvent(l,f){const u=l.range,d=this._bufferService.buffer.ydisp,C=this._createLinkUnderlineEvent(u.start.x-1,u.start.y-d-1,u.end.x,u.end.y-d-1,void 0);(f?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(C)}_linkLeave(l,f,u){var d;!(null===(d=this._currentLink)||void 0===d)&&d.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(f,!1),this._currentLink.state.decorations.pointerCursor&&l.classList.remove("xterm-cursor-pointer")),f.leave&&f.leave(u,f.text)}_linkAtPosition(l,f){const C=f.y*this._bufferService.cols+f.x;return l.range.start.y*this._bufferService.cols+l.range.start.x<=C&&C<=l.range.end.y*this._bufferService.cols+l.range.end.x}_positionFromMouseEvent(l,f,u){const d=u.getCoords(l,f,this._bufferService.cols,this._bufferService.rows);if(d)return{x:d[0],y:d[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(l,f,u,d,C){return{x1:l,y1:f,x2:u,y2:d,cols:this._bufferService.cols,fg:C}}};y=E([x(0,D.IBufferService)],y),h.Linkifier2=y},9042:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.tooMuchOutput=h.promptLabel=void 0,h.promptLabel="Terminal input",h.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(p,h,b){var E=this&&this.__decorate||function(y,l,f,u){var d,C=arguments.length,R=C<3?l:null===u?u=Object.getOwnPropertyDescriptor(l,f):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(y,l,f,u);else for(var U=y.length-1;U>=0;U--)(d=y[U])&&(R=(C<3?d(R):C>3?d(l,f,R):d(l,f))||R);return C>3&&R&&Object.defineProperty(l,f,R),R},x=this&&this.__param||function(y,l){return function(f,u){l(f,u,y)}};Object.defineProperty(h,"__esModule",{value:!0}),h.OscLinkProvider=void 0;const D=b(511),I=b(2585);let P=class{constructor(y,l,f){this._bufferService=y,this._optionsService=l,this._oscLinkService=f}provideLinks(y,l){var f;const u=this._bufferService.buffer.lines.get(y-1);if(!u)return void l(void 0);const d=[],C=this._optionsService.rawOptions.linkHandler,R=new D.CellData,U=u.getTrimmedLength();let W=-1,v=-1,w=!1;for(let F=0;FC?C.activate(we,Be,Q):T(0,Be),hover:(we,Be)=>{var Ie;return null===(Ie=null==C?void 0:C.hover)||void 0===Ie?void 0:Ie.call(C,we,Be,Q)},leave:(we,Be)=>{var Ie;return null===(Ie=null==C?void 0:C.leave)||void 0===Ie?void 0:Ie.call(C,we,Be,Q)}})}w=!1,R.hasExtendedAttrs()&&R.extended.urlId?(v=F,W=R.extended.urlId):(v=-1,W=-1)}}l(d)}};function T(y,l){if(confirm(`Do you want to navigate to ${l}?\n\nWARNING: This link could potentially be dangerous`)){const f=window.open();if(f){try{f.opener=null}catch(u){}f.location.href=l}else console.warn("Opening link blocked as opener could not be cleared")}}P=E([x(0,I.IBufferService),x(1,I.IOptionsService),x(2,I.IOscLinkService)],P),h.OscLinkProvider=P},6193:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.RenderDebouncer=void 0,h.RenderDebouncer=class{constructor(b,E){this._parentWindow=b,this._renderCallback=E,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(b){return this._refreshCallbacks.push(b),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(b,E,x){this._rowCount=x,b=void 0!==b?b:0,E=void 0!==E?E:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,b):b,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,E):E,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();const b=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(b,E),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const b of this._refreshCallbacks)b(0);this._refreshCallbacks=[]}}},5596:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ScreenDprMonitor=void 0;const E=b(844);h.ScreenDprMonitor=class x extends E.Disposable{constructor(I){super(),this._parentWindow=I,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,E.toDisposable)(()=>{this.clearListener()}))}setListener(I){this._listener&&this.clearListener(),this._listener=I,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var I;this._outerListener&&(null===(I=this._resolutionMediaMatchList)||void 0===I||I.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._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}},3236:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Terminal=void 0;const E=b(2950),x=b(1680),D=b(3614),I=b(2584),P=b(5435),T=b(9312),y=b(6114),l=b(3656),f=b(9042),u=b(4567),d=b(1296),C=b(7399),R=b(8460),U=b(8437),W=b(3230),v=b(4725),w=b(428),F=b(8934),Z=b(6465),Q=b(5114),ne=b(8969),we=b(8055),Be=b(4269),Ie=b(5941),Y=b(3107),re=b(5744),_e=b(9074),ee=b(2585),he=b(3730),Me=b(844),Oe=b(6731),ye="undefined"!=typeof window?window.document:null;h.Terminal=class Ne extends ne.CoreTerminal{constructor(de={}){super(de),this.browser=y,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._onCursorMove=this.register(new R.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new R.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new R.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new R.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new R.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new R.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new R.EventEmitter),this._onBlur=this.register(new R.EventEmitter),this._onA11yCharEmitter=this.register(new R.EventEmitter),this._onA11yTabEmitter=this.register(new R.EventEmitter),this._onWillOpen=this.register(new R.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(Z.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(he.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(_e.DecorationService),this._instantiationService.setService(ee.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((be,ke)=>this.refresh(be,ke))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(be=>this._reportWindowsOptions(be))),this.register(this._inputHandler.onColor(be=>this._handleColorEvent(be))),this.register((0,R.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,R.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,R.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,R.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(be=>this._afterResize(be.cols,be.rows))),this.register((0,Me.toDisposable)(()=>{var be,ke;this._customKeyEventHandler=void 0,null===(ke=null===(be=this.element)||void 0===be?void 0:be.parentNode)||void 0===ke||ke.removeChild(this.element)}))}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(de){if(this._themeService)for(const be of de){let ke,Ue="";switch(be.index){case 256:ke="foreground",Ue="10";break;case 257:ke="background",Ue="11";break;case 258:ke="cursor",Ue="12";break;default:ke="ansi",Ue="4;"+be.index}switch(be.type){case 0:const ft=we.color.toColorRGB("ansi"===ke?this._themeService.colors.ansi[be.index]:this._themeService.colors[ke]);this.coreService.triggerDataEvent(`${I.C0.ESC}]${Ue};${(0,Ie.toRgbString)(ft)}${I.C1_ESCAPED.ST}`);break;case 1:if("ansi"===ke)this._themeService.modifyColors(Je=>Je.ansi[be.index]=we.rgba.toColor(...be.color));else{const Je=ke;this._themeService.modifyColors(kt=>kt[Je]=we.rgba.toColor(...be.color))}break;case 2:this._themeService.restoreColor(be.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(de){var be;de?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=this._instantiationService.createInstance(u.AccessibilityManager,this)):(null===(be=this._accessibilityManager)||void 0===be||be.dispose(),this._accessibilityManager=void 0)}_handleTextAreaFocus(de){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(I.C0.ESC+"[I"),this.updateCursorStyle(de),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var de;return null===(de=this.textarea)||void 0===de?void 0:de.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(I.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const be=this.buffer.lines.get(this.buffer.ybase+this.buffer.y);if(!be)return;const ke=Math.min(this.buffer.x,this.cols-1),Ue=this._renderService.dimensions.css.cell.height,ft=be.getWidth(ke),Je=this._renderService.dimensions.css.cell.width*ft,kt=this.buffer.y*this._renderService.dimensions.css.cell.height;this.textarea.style.left=ke*this._renderService.dimensions.css.cell.width+"px",this.textarea.style.top=kt+"px",this.textarea.style.width=Je+"px",this.textarea.style.height=Ue+"px",this.textarea.style.lineHeight=Ue+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,l.addDisposableDomListener)(this.element,"copy",be=>{this.hasSelection()&&(0,D.copyHandler)(be,this._selectionService)}));const de=be=>(0,D.handlePasteEvent)(be,this.textarea,this.coreService);this.register((0,l.addDisposableDomListener)(this.textarea,"paste",de)),this.register((0,l.addDisposableDomListener)(this.element,"paste",de)),this.register(y.isFirefox?(0,l.addDisposableDomListener)(this.element,"mousedown",be=>{2===be.button&&(0,D.rightClickHandler)(be,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}):(0,l.addDisposableDomListener)(this.element,"contextmenu",be=>{(0,D.rightClickHandler)(be,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),y.isLinux&&this.register((0,l.addDisposableDomListener)(this.element,"auxclick",be=>{1===be.button&&(0,D.moveTextAreaUnderMouseCursor)(be,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,l.addDisposableDomListener)(this.textarea,"keyup",de=>this._keyUp(de),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"keydown",de=>this._keyDown(de),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"keypress",de=>this._keyPress(de),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionupdate",de=>this._compositionHelper.compositionupdate(de))),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,l.addDisposableDomListener)(this.textarea,"input",de=>this._inputEvent(de),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(de){var be;if(!de)throw new Error("Terminal requires a parent element.");de.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=de.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),de.appendChild(this.element);const ke=ye.createDocumentFragment();this._viewportElement=ye.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ke.appendChild(this._viewportElement),this._viewportScrollArea=ye.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ye.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ye.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ke.appendChild(this.screenElement),this.textarea=ye.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",f.promptLabel),y.isChromeOS||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._coreBrowserService=this._instantiationService.createInstance(Q.CoreBrowserService,this.textarea,null!==(be=this._document.defaultView)&&void 0!==be?be:window),this._instantiationService.setService(v.ICoreBrowserService,this._coreBrowserService),this.register((0,l.addDisposableDomListener)(this.textarea,"focus",Ue=>this._handleTextAreaFocus(Ue))),this.register((0,l.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(v.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(Oe.ThemeService),this._instantiationService.setService(v.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(Be.CharacterJoinerService),this._instantiationService.setService(v.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(W.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(v.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(Ue=>this._onRender.fire(Ue))),this.onResize(Ue=>this._renderService.resize(Ue.cols,Ue.rows)),this._compositionView=ye.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(E.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ke);try{this._onWillOpen.fire(this.element)}catch(Ue){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(F.MouseService),this._instantiationService.setService(v.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(x.Viewport,Ue=>this.scrollLines(Ue,!0,1),this._viewportElement,this._viewportScrollArea),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),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.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(T.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(v.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(Ue=>this.scrollLines(Ue.amount,Ue.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(Ue=>this._renderService.handleSelectionChanged(Ue.start,Ue.end,Ue.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(Ue=>{this.textarea.value=Ue,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(Ue=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,l.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(Y.BufferDecorationRenderer,this.screenElement)),this.register((0,l.addDisposableDomListener)(this.element,"mousedown",Ue=>this._selectionService.handleMouseDown(Ue))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=this._instantiationService.createInstance(u.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",Ue=>this._handleScreenReaderModeOptionChange(Ue))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(re.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",Ue=>{!this._overviewRulerRenderer&&Ue&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(re.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(d.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const de=this,be=this.element;function ke(Je){const kt=de._mouseService.getMouseReportCoords(Je,de.screenElement);if(!kt)return!1;let _t,It;switch(Je.overrideType||Je.type){case"mousemove":It=32,void 0===Je.buttons?(_t=3,void 0!==Je.button&&(_t=Je.button<3?Je.button:3)):_t=1&Je.buttons?0:4&Je.buttons?1:2&Je.buttons?2:3;break;case"mouseup":It=0,_t=Je.button<3?Je.button:3;break;case"mousedown":It=1,_t=Je.button<3?Je.button:3;break;case"wheel":if(0===de.viewport.getLinesScrolled(Je))return!1;It=Je.deltaY<0?0:1,_t=4;break;default:return!1}return!(void 0===It||void 0===_t||_t>4)&&de.coreMouseService.triggerMouseEvent({col:kt.col,row:kt.row,x:kt.x,y:kt.y,button:_t,action:It,ctrl:Je.ctrlKey,alt:Je.altKey,shift:Je.shiftKey})}const Ue={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ft={mouseup:Je=>(ke(Je),Je.buttons||(this._document.removeEventListener("mouseup",Ue.mouseup),Ue.mousedrag&&this._document.removeEventListener("mousemove",Ue.mousedrag)),this.cancel(Je)),wheel:Je=>(ke(Je),this.cancel(Je,!0)),mousedrag:Je=>{Je.buttons&&ke(Je)},mousemove:Je=>{Je.buttons||ke(Je)}};this.register(this.coreMouseService.onProtocolChange(Je=>{Je?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(Je)),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()),8&Je?Ue.mousemove||(be.addEventListener("mousemove",ft.mousemove),Ue.mousemove=ft.mousemove):(be.removeEventListener("mousemove",Ue.mousemove),Ue.mousemove=null),16&Je?Ue.wheel||(be.addEventListener("wheel",ft.wheel,{passive:!1}),Ue.wheel=ft.wheel):(be.removeEventListener("wheel",Ue.wheel),Ue.wheel=null),2&Je?Ue.mouseup||(Ue.mouseup=ft.mouseup):(this._document.removeEventListener("mouseup",Ue.mouseup),Ue.mouseup=null),4&Je?Ue.mousedrag||(Ue.mousedrag=ft.mousedrag):(this._document.removeEventListener("mousemove",Ue.mousedrag),Ue.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,l.addDisposableDomListener)(be,"mousedown",Je=>{if(Je.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(Je))return ke(Je),Ue.mouseup&&this._document.addEventListener("mouseup",Ue.mouseup),Ue.mousedrag&&this._document.addEventListener("mousemove",Ue.mousedrag),this.cancel(Je)})),this.register((0,l.addDisposableDomListener)(be,"wheel",Je=>{if(!Ue.wheel){if(!this.buffer.hasScrollback){const kt=this.viewport.getLinesScrolled(Je);if(0===kt)return;const _t=I.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Je.deltaY<0?"A":"B");let It="";for(let pt=0;pt{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(Je),this.cancel(Je)},{passive:!0})),this.register((0,l.addDisposableDomListener)(be,"touchmove",Je=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(Je)?void 0:this.cancel(Je)},{passive:!1}))}refresh(de,be){var ke;null===(ke=this._renderService)||void 0===ke||ke.refreshRows(de,be)}updateCursorStyle(de){var be;null!==(be=this._selectionService)&&void 0!==be&&be.shouldColumnSelect(de)?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(de,be,ke=0){super.scrollLines(de,be,ke),this.refresh(0,this.rows-1)}paste(de){(0,D.paste)(de,this.textarea,this.coreService)}attachCustomKeyEventHandler(de){this._customKeyEventHandler=de}registerLinkProvider(de){return this.linkifier2.registerLinkProvider(de)}registerCharacterJoiner(de){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const be=this._characterJoinerService.register(de);return this.refresh(0,this.rows-1),be}deregisterCharacterJoiner(de){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(de)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}addMarker(de){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+de)}registerDecoration(de){return this._decorationService.registerDecoration(de)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(de,be,ke){this._selectionService.setSelection(de,be,ke)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var de;null===(de=this._selectionService)||void 0===de||de.clearSelection()}selectAll(){var de;null===(de=this._selectionService)||void 0===de||de.selectAll()}selectLines(de,be){var ke;null===(ke=this._selectionService)||void 0===ke||ke.selectLines(de,be)}_keyDown(de){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(de))return!1;const be=this.browser.isMac&&this.options.macOptionIsMeta&&de.altKey;if(!be&&!this._compositionHelper.keydown(de))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;be||"Dead"!==de.key&&"AltGraph"!==de.key||(this._unprocessedDeadKey=!0);const ke=(0,C.evaluateKeyboardEvent)(de,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(de),3===ke.type||2===ke.type){const Ue=this.rows-1;return this.scrollLines(2===ke.type?-Ue:Ue),this.cancel(de,!0)}return 1===ke.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,de)||(ke.cancel&&this.cancel(de,!0),!ke.key||!!(de.key&&!de.ctrlKey&&!de.altKey&&!de.metaKey&&1===de.key.length&&de.key.charCodeAt(0)>=65&&de.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(ke.key!==I.C0.ETX&&ke.key!==I.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ke.key,domEvent:de}),this._showCursor(),this.coreService.triggerDataEvent(ke.key,!0),!this.optionsService.rawOptions.screenReaderMode||de.altKey||de.ctrlKey?this.cancel(de,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(de,be){const ke=de.isMac&&!this.options.macOptionIsMeta&&be.altKey&&!be.ctrlKey&&!be.metaKey||de.isWindows&&be.altKey&&be.ctrlKey&&!be.metaKey||de.isWindows&&be.getModifierState("AltGraph");return"keypress"===be.type?ke:ke&&(!be.keyCode||be.keyCode>47)}_keyUp(de){var be;this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(de)||(16===(be=de).keyCode||17===be.keyCode||18===be.keyCode||this.focus(),this.updateCursorStyle(de),this._keyPressHandled=!1)}_keyPress(de){let be;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(de))return!1;if(this.cancel(de),de.charCode)be=de.charCode;else if(null==de.which)be=de.keyCode;else{if(0===de.which||0===de.charCode)return!1;be=de.which}return!(!be||(de.altKey||de.ctrlKey||de.metaKey)&&!this._isThirdLevelShift(this.browser,de)||(be=String.fromCharCode(be),this._onKey.fire({key:be,domEvent:de}),this._showCursor(),this.coreService.triggerDataEvent(be,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(de){return!(!de.data||"insertText"!==de.inputType||de.composed&&this._keyDownSeen||this.optionsService.rawOptions.screenReaderMode||this._keyPressHandled||(this._unprocessedDeadKey=!1,this.coreService.triggerDataEvent(de.data,!0),this.cancel(de),0))}resize(de,be){de!==this.cols||be!==this.rows?super.resize(de,be):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(de,be){var ke,Ue;null===(ke=this._charSizeService)||void 0===ke||ke.measure(),null===(Ue=this.viewport)||void 0===Ue||Ue.syncScrollArea(!0)}clear(){if(0!==this.buffer.ybase||0!==this.buffer.y){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 de=1;de{Object.defineProperty(h,"__esModule",{value:!0}),h.TimeBasedDebouncer=void 0,h.TimeBasedDebouncer=class{constructor(b,E=1e3){this._renderCallback=b,this._debounceThresholdMS=E,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(b,E,x){this._rowCount=x,b=void 0!==b?b:0,E=void 0!==E?E:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,b):b,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,E):E;const D=Date.now();if(D-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=D,this._innerRefresh();else if(!this._additionalRefreshRequested){const P=this._debounceThresholdMS-(D-this._lastRefreshMs);this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},P)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;const b=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(b,E)}}},1680:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},x=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.Viewport=void 0;const D=b(844),I=b(3656),P=b(4725),T=b(2585);let y=class extends D.Disposable{constructor(l,f,u,d,C,R,U,W,v){super(),this._scrollLines=l,this._viewportElement=f,this._scrollArea=u,this._bufferService=d,this._optionsService=C,this._charSizeService=R,this._renderService=U,this._coreBrowserService=W,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,I.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(w=>this._activeBuffer=w.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(w=>this._renderDimensions=w)),this._handleThemeChange(v.colors),this.register(v.onChangeColors(w=>this._handleThemeChange(w))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea(),0)}_handleThemeChange(l){this._viewportElement.style.backgroundColor=l.background.css}_refresh(l){if(l)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const f=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==f&&(this._lastRecordedBufferHeight=f,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const l=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==l&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=l),this._refreshAnimationFrame=null}syncScrollArea(l=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(l);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(l)}_handleScroll(l){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);const f=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(f)}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;const l=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(l*(this._smoothScrollState.target-this._smoothScrollState.origin)),l<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(l,f){return!(f<0&&0!==this._viewportElement.scrollTop||f>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight0&&(d=Z),C=""}}return{bufferElements:R,cursorElement:d}}getLinesScrolled(l){if(0===l.deltaY||l.shiftKey)return 0;let f=this._applyScrollModifier(l.deltaY,l);return l.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(f/=this._currentRowHeight+0,this._wheelPartialScroll+=f,f=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=this._bufferService.rows),f}_applyScrollModifier(l,f){const u=this._optionsService.rawOptions.fastScrollModifier;return"alt"===u&&f.altKey||"ctrl"===u&&f.ctrlKey||"shift"===u&&f.shiftKey?l*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:l*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(l){this._lastTouchY=l.touches[0].pageY}handleTouchMove(l){const f=this._lastTouchY-l.touches[0].pageY;return this._lastTouchY=l.touches[0].pageY,0!==f&&(this._viewportElement.scrollTop+=f,this._bubbleScroll(l,f))}};y=E([x(3,T.IBufferService),x(4,T.IOptionsService),x(5,P.ICharSizeService),x(6,P.IRenderService),x(7,P.ICoreBrowserService),x(8,P.IThemeService)],y),h.Viewport=y},3107:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},x=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.BufferDecorationRenderer=void 0;const D=b(3656),I=b(4725),P=b(844),T=b(2585);let y=class extends P.Disposable{constructor(l,f,u,d){super(),this._screenElement=l,this._bufferService=f,this._decorationService=u,this._renderService=d,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((0,D.addDisposableDomListener)(window,"resize",()=>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(C=>this._removeDecoration(C))),this.register((0,P.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(const l of this._decorationService.decorations)this._renderDecoration(l);this._dimensionsChanged=!1}_renderDecoration(l){this._refreshStyle(l),this._dimensionsChanged&&this._refreshXPosition(l)}_createElement(l){var f,u;const d=document.createElement("div");d.classList.add("xterm-decoration"),d.classList.toggle("xterm-decoration-top-layer","top"===(null===(f=null==l?void 0:l.options)||void 0===f?void 0:f.layer)),d.style.width=`${Math.round((l.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,d.style.height=(l.options.height||1)*this._renderService.dimensions.css.cell.height+"px",d.style.top=(l.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",d.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const C=null!==(u=l.options.x)&&void 0!==u?u:0;return C&&C>this._bufferService.cols&&(d.style.display="none"),this._refreshXPosition(l,d),d}_refreshStyle(l){const f=l.marker.line-this._bufferService.buffers.active.ydisp;if(f<0||f>=this._bufferService.rows)l.element&&(l.element.style.display="none",l.onRenderEmitter.fire(l.element));else{let u=this._decorationElements.get(l);u||(u=this._createElement(l),l.element=u,this._decorationElements.set(l,u),this._container.appendChild(u)),u.style.top=f*this._renderService.dimensions.css.cell.height+"px",u.style.display=this._altBufferIsActive?"none":"block",l.onRenderEmitter.fire(u)}}_refreshXPosition(l,f=l.element){var u;if(!f)return;const d=null!==(u=l.options.x)&&void 0!==u?u:0;"right"===(l.options.anchor||"left")?f.style.right=d?d*this._renderService.dimensions.css.cell.width+"px":"":f.style.left=d?d*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(l){var f;null===(f=this._decorationElements.get(l))||void 0===f||f.remove(),this._decorationElements.delete(l),l.dispose()}};y=E([x(1,T.IBufferService),x(2,T.IDecorationService),x(3,I.IRenderService)],y),h.BufferDecorationRenderer=y},5871:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ColorZoneStore=void 0,h.ColorZoneStore=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(b){if(b.options.overviewRulerOptions){for(const E of this._zones)if(E.color===b.options.overviewRulerOptions.color&&E.position===b.options.overviewRulerOptions.position){if(this._lineIntersectsZone(E,b.marker.line))return;if(this._lineAdjacentToZone(E,b.marker.line,b.options.overviewRulerOptions.position))return void this._addLineToZone(E,b.marker.line)}if(this._zonePoolIndex=b.startBufferLine&&E<=b.endBufferLine}_lineAdjacentToZone(b,E,x){return E>=b.startBufferLine-this._linePadding[x||"full"]&&E<=b.endBufferLine+this._linePadding[x||"full"]}_addLineToZone(b,E){b.startBufferLine=Math.min(b.startBufferLine,E),b.endBufferLine=Math.max(b.endBufferLine,E)}}},5744:function(p,h,b){var E=this&&this.__decorate||function(C,R,U,W){var v,w=arguments.length,F=w<3?R:null===W?W=Object.getOwnPropertyDescriptor(R,U):W;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(C,R,U,W);else for(var Z=C.length-1;Z>=0;Z--)(v=C[Z])&&(F=(w<3?v(F):w>3?v(R,U,F):v(R,U))||F);return w>3&&F&&Object.defineProperty(R,U,F),F},x=this&&this.__param||function(C,R){return function(U,W){R(U,W,C)}};Object.defineProperty(h,"__esModule",{value:!0}),h.OverviewRulerRenderer=void 0;const D=b(5871),I=b(3656),P=b(4725),T=b(844),y=b(2585),l={full:0,left:0,center:0,right:0},f={full:0,left:0,center:0,right:0},u={full:0,left:0,center:0,right:0};let d=class extends T.Disposable{constructor(C,R,U,W,v,w,F){var Z;super(),this._viewportElement=C,this._screenElement=R,this._bufferService=U,this._decorationService=W,this._renderService=v,this._optionsService=w,this._coreBrowseService=F,this._colorZoneStore=new D.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null===(Z=this._viewportElement.parentElement)||void 0===Z||Z.insertBefore(this._canvas,this._viewportElement);const Q=this._canvas.getContext("2d");if(!Q)throw new Error("Ctx cannot be null");this._ctx=Q,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,T.toDisposable)(()=>{var ne;null===(ne=this._canvas)||void 0===ne||ne.remove()}))}get _width(){return this._optionsService.options.overviewRulerWidth||0}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){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())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,I.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){const C=Math.floor(this._canvas.width/3),R=Math.ceil(this._canvas.width/3);f.full=this._canvas.width,f.left=C,f.center=R,f.right=C,this._refreshDrawHeightConstants(),u.full=0,u.left=0,u.center=f.left,u.right=f.left+f.center}_refreshDrawHeightConstants(){l.full=Math.round(2*this._coreBrowseService.dpr);const R=Math.round(Math.max(Math.min(this._canvas.height/this._bufferService.buffer.lines.length,12),6)*this._coreBrowseService.dpr);l.left=R,l.center=R,l.right=R}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.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._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.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(const R of this._decorationService.decorations)this._colorZoneStore.addDecoration(R);this._ctx.lineWidth=1;const C=this._colorZoneStore.zones;for(const R of C)"full"!==R.position&&this._renderColorZone(R);for(const R of C)"full"===R.position&&this._renderColorZone(R);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(C){this._ctx.fillStyle=C.color,this._ctx.fillRect(u[C.position||"full"],Math.round(C.startBufferLine/this._bufferService.buffers.active.lines.length*(this._canvas.height-1)-l[C.position||"full"]/2),f[C.position||"full"],Math.round((C.endBufferLine-C.startBufferLine)/this._bufferService.buffers.active.lines.length*(this._canvas.height-1)+l[C.position||"full"]))}_queueRefresh(C,R){this._shouldUpdateDimensions=C||this._shouldUpdateDimensions,this._shouldUpdateAnchor=R||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};d=E([x(2,y.IBufferService),x(3,y.IDecorationService),x(4,P.IRenderService),x(5,y.IOptionsService),x(6,P.ICoreBrowserService)],d),h.OverviewRulerRenderer=d},2950:function(p,h,b){var E=this&&this.__decorate||function(y,l,f,u){var d,C=arguments.length,R=C<3?l:null===u?u=Object.getOwnPropertyDescriptor(l,f):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(y,l,f,u);else for(var U=y.length-1;U>=0;U--)(d=y[U])&&(R=(C<3?d(R):C>3?d(l,f,R):d(l,f))||R);return C>3&&R&&Object.defineProperty(l,f,R),R},x=this&&this.__param||function(y,l){return function(f,u){l(f,u,y)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CompositionHelper=void 0;const D=b(4725),I=b(2585),P=b(2584);let T=class{constructor(y,l,f,u,d,C){this._textarea=y,this._compositionView=l,this._bufferService=f,this._optionsService=u,this._coreService=d,this._renderService=C,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(y){this._compositionView.textContent=y.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(y){if(this._isComposing||this._isSendingComposition){if(229===y.keyCode||16===y.keyCode||17===y.keyCode||18===y.keyCode)return!1;this._finalizeComposition(!1)}return 229!==y.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(y){if(this._compositionView.classList.remove("active"),this._isComposing=!1,y){const l={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let f;this._isSendingComposition=!1,l.start+=this._dataAlreadySent.length,f=this._isComposing?this._textarea.value.substring(l.start,l.end):this._textarea.value.substring(l.start),f.length>0&&this._coreService.triggerDataEvent(f,!0)}},0)}else{this._isSendingComposition=!1;const l=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(l,!0)}}_handleAnyTextareaChanges(){const y=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const l=this._textarea.value,f=l.replace(y,"");this._dataAlreadySent=f,l.length>y.length?this._coreService.triggerDataEvent(f,!0):l.lengththis.updateCompositionElements(!0),0)}}};T=E([x(2,I.IBufferService),x(3,I.IOptionsService),x(4,I.ICoreService),x(5,D.IRenderService)],T),h.CompositionHelper=T},9806:(p,h)=>{function b(E,x,D){const I=D.getBoundingClientRect(),P=E.getComputedStyle(D),T=parseInt(P.getPropertyValue("padding-left")),y=parseInt(P.getPropertyValue("padding-top"));return[x.clientX-I.left-T,x.clientY-I.top-y]}Object.defineProperty(h,"__esModule",{value:!0}),h.getCoords=h.getCoordsRelativeToElement=void 0,h.getCoordsRelativeToElement=b,h.getCoords=function(E,x,D,I,P,T,y,l,f){if(!T)return;const u=b(E,x,D);return u?(u[0]=Math.ceil((u[0]+(f?y/2:0))/y),u[1]=Math.ceil(u[1]/l),u[0]=Math.min(Math.max(u[0],1),I+(f?1:0)),u[1]=Math.min(Math.max(u[1],1),P),u):void 0}},9504:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.moveToCellSequence=void 0;const E=b(2584);function x(l,f,u,d){const C=l-D(l,u),R=f-D(f,u);return y(Math.abs(C-R)-function(W,v,w){let F=0;const Z=W-D(W,w),Q=v-D(v,w);for(let ne=0;ne=0&&lf?"A":"B"}function P(l,f,u,d,C,R){let U=l,W=f,v="";for(;U!==u||W!==d;)U+=C?1:-1,C&&U>R.cols-1?(v+=R.buffer.translateBufferLineToString(W,!1,l,U),U=0,l=0,W++):!C&&U<0&&(v+=R.buffer.translateBufferLineToString(W,!1,0,l+1),U=R.cols-1,l=U,W--);return v+R.buffer.translateBufferLineToString(W,!1,l,U)}function T(l,f){return E.C0.ESC+(f?"O":"[")+l}function y(l,f){l=Math.floor(l);let u="";for(let d=0;d0?Z-D(Z,Q):w;const Be=Z,Ie=function(Y,re,_e,ee,he,Me){let Oe;return Oe=x(_e,ee,he,Me).length>0?ee-D(ee,he):re,Y<_e&&Oe<=ee||Y>=_e&&Oel?"D":"C",y(Math.abs(C-l),T(U,d));U=R>f?"D":"C";const W=Math.abs(R-f);return y(function(v,w){return w.cols-v}(R>f?l:C,u)+(W-1)*u.cols+1+((R>f?C:l)-1),T(U,d))}},1296:function(p,h,b){var E=this&&this.__decorate||function(W,v,w,F){var Z,Q=arguments.length,ne=Q<3?v:null===F?F=Object.getOwnPropertyDescriptor(v,w):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(W,v,w,F);else for(var we=W.length-1;we>=0;we--)(Z=W[we])&&(ne=(Q<3?Z(ne):Q>3?Z(v,w,ne):Z(v,w))||ne);return Q>3&&ne&&Object.defineProperty(v,w,ne),ne},x=this&&this.__param||function(W,v){return function(w,F){v(w,F,W)}};Object.defineProperty(h,"__esModule",{value:!0}),h.DomRenderer=void 0;const D=b(3787),I=b(2223),P=b(6171),T=b(4725),y=b(8055),l=b(8460),f=b(844),u=b(2585),d="xterm-dom-renderer-owner-",C="xterm-focus";let R=1,U=class extends f.Disposable{constructor(W,v,w,F,Z,Q,ne,we,Be,Ie){super(),this._element=W,this._screenElement=v,this._viewportElement=w,this._linkifier2=F,this._charSizeService=Q,this._optionsService=ne,this._bufferService=we,this._coreBrowserService=Be,this._themeService=Ie,this._terminalClass=R++,this._rowElements=[],this._cellToRowElements=[],this.onRequestRedraw=this.register(new l.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add("xterm-rows"),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add("xterm-selection"),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,P.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(Y=>this._injectCss(Y))),this._injectCss(this._themeService.colors),this._rowFactory=Z.createInstance(D.DomRendererRowFactory,document),this._element.classList.add(d+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(Y=>this._handleLinkHover(Y))),this.register(this._linkifier2.onHideLinkUnderline(Y=>this._handleLinkLeave(Y))),this.register((0,f.toDisposable)(()=>{this._element.classList.remove(d+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))}_updateDimensions(){const W=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*W,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*W),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/W),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/W),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(const w of this._rowElements)w.style.width=`${this.dimensions.css.canvas.width}px`,w.style.height=`${this.dimensions.css.cell.height}px`,w.style.lineHeight=`${this.dimensions.css.cell.height}px`,w.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement)),this._dimensionsStyleElement.textContent=`${this._terminalSelector} .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ${this.dimensions.css.cell.width}px}`,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(W){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let v=`${this._terminalSelector} .xterm-rows { color: ${W.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px;}`;v+=`${this._terminalSelector} .xterm-rows .xterm-dim { color: ${y.color.multiplyOpacity(W.foreground,.5).css};}`,v+=`${this._terminalSelector} span:not(.${D.BOLD_CLASS}) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.${D.BOLD_CLASS} { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.${D.ITALIC_CLASS} { font-style: italic;}`,v+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",v+="@keyframes blink_block_"+this._terminalClass+` { 0% { background-color: ${W.cursor.css}; color: ${W.cursorAccent.css}; } 50% { background-color: ${W.cursorAccent.css}; color: ${W.cursor.css}; }}`,v+=`${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BLOCK_CLASS} ,${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BAR_CLASS} ,${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_UNDERLINE_CLASS} { outline: 1px solid ${W.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .xterm-rows.xterm-focus .${D.CURSOR_CLASS}.${D.CURSOR_BLINK_CLASS}:not(.${D.CURSOR_STYLE_BLOCK_CLASS}) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .xterm-rows.xterm-focus .${D.CURSOR_CLASS}.${D.CURSOR_BLINK_CLASS}.${D.CURSOR_STYLE_BLOCK_CLASS} { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .xterm-rows.xterm-focus .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BLOCK_CLASS} { background-color: ${W.cursor.css}; color: ${W.cursorAccent.css};}${this._terminalSelector} .xterm-rows .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BAR_CLASS} { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${W.cursor.css} inset;}${this._terminalSelector} .xterm-rows .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_UNDERLINE_CLASS} { box-shadow: 0 -1px 0 ${W.cursor.css} inset;}`,v+=`${this._terminalSelector} .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .xterm-selection div { position: absolute; background-color: ${W.selectionBackgroundOpaque.css};}${this._terminalSelector} .xterm-selection div { position: absolute; background-color: ${W.selectionInactiveBackgroundOpaque.css};}`;for(const[w,F]of W.ansi.entries())v+=`${this._terminalSelector} .xterm-fg-${w} { color: ${F.css}; }${this._terminalSelector} .xterm-fg-${w}.${D.DIM_CLASS} { color: ${y.color.multiplyOpacity(F,.5).css}; }${this._terminalSelector} .xterm-bg-${w} { background-color: ${F.css}; }`;v+=`${this._terminalSelector} .xterm-fg-${I.INVERTED_DEFAULT_COLOR} { color: ${y.color.opaque(W.background).css}; }${this._terminalSelector} .xterm-fg-${I.INVERTED_DEFAULT_COLOR}.${D.DIM_CLASS} { color: ${y.color.multiplyOpacity(y.color.opaque(W.background),.5).css}; }${this._terminalSelector} .xterm-bg-${I.INVERTED_DEFAULT_COLOR} { background-color: ${W.foreground.css}; }`,this._themeStyleElement.textContent=v}handleDevicePixelRatioChange(){this._updateDimensions()}_refreshRowElements(W,v){for(let w=this._rowElements.length;w<=v;w++){const F=document.createElement("div");this._rowContainer.appendChild(F),this._rowElements.push(F)}for(;this._rowElements.length>v;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(W,v){this._refreshRowElements(W,v),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions()}handleBlur(){this._rowContainer.classList.remove(C)}handleFocus(){this._rowContainer.classList.add(C)}handleSelectionChanged(W,v,w){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.handleSelectionChanged(W,v,w),this.renderRows(0,this._bufferService.rows-1),!W||!v)return;const F=W[1]-this._bufferService.buffer.ydisp,Z=v[1]-this._bufferService.buffer.ydisp,Q=Math.max(F,0),ne=Math.min(Z,this._bufferService.rows-1);if(Q>=this._bufferService.rows||ne<0)return;const we=document.createDocumentFragment();if(w){const Be=W[0]>v[0];we.appendChild(this._createSelectionElement(Q,Be?v[0]:W[0],Be?W[0]:v[0],ne-Q+1))}else we.appendChild(this._createSelectionElement(Q,F===Q?W[0]:0,Q===Z?v[0]:this._bufferService.cols)),we.appendChild(this._createSelectionElement(Q+1,0,this._bufferService.cols,ne-Q-1)),Q!==ne&&we.appendChild(this._createSelectionElement(ne,0,Z===ne?v[0]:this._bufferService.cols));this._selectionContainer.appendChild(we)}_createSelectionElement(W,v,w,F=1){const Z=document.createElement("div");return Z.style.height=F*this.dimensions.css.cell.height+"px",Z.style.top=W*this.dimensions.css.cell.height+"px",Z.style.left=v*this.dimensions.css.cell.width+"px",Z.style.width=this.dimensions.css.cell.width*(w-v)+"px",Z}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors)}clear(){for(const W of this._rowElements)W.replaceChildren()}renderRows(W,v){const w=this._bufferService.buffer.ybase+this._bufferService.buffer.y,F=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),Z=this._optionsService.rawOptions.cursorBlink;for(let Q=W;Q<=v;Q++){const ne=this._rowElements[Q],we=Q+this._bufferService.buffer.ydisp,Be=this._bufferService.buffer.lines.get(we),Ie=this._optionsService.rawOptions.cursorStyle;this._cellToRowElements[Q]&&this._cellToRowElements[Q].length===this._bufferService.cols||(this._cellToRowElements[Q]=new Int16Array(this._bufferService.cols)),ne.replaceChildren(this._rowFactory.createRow(Be,we,we===w,Ie,F,Z,this.dimensions.css.cell.width,this._bufferService.cols,this._cellToRowElements[Q]))}}get _terminalSelector(){return`.${d}${this._terminalClass}`}_handleLinkHover(W){this._setCellUnderline(W.x1,W.x2,W.y1,W.y2,W.cols,!0)}_handleLinkLeave(W){this._setCellUnderline(W.x1,W.x2,W.y1,W.y2,W.cols,!1)}_setCellUnderline(W,v,w,F,Z,Q){w<0&&(W=0),F<0&&(v=0);const ne=this._cellToRowElements.length-1;w=Math.max(Math.min(w,ne),0),F=Math.max(Math.min(F,ne),0);const we=this._cellToRowElements[w],Be=this._cellToRowElements[F];if(!(W>=we.length||v>=Be.length)&&(v=Be[v],-1!==(W=we[W])&&-1!==v))for(;W!==v||w!==F;){const Ie=this._rowElements[w];if(!Ie)return;const Y=Ie.children[W];Y&&(Y.style.textDecoration=Q?"underline":"none"),++W>=Z&&(W=0,w++)}}};U=E([x(4,u.IInstantiationService),x(5,T.ICharSizeService),x(6,u.IOptionsService),x(7,u.IBufferService),x(8,T.ICoreBrowserService),x(9,T.IThemeService)],U),h.DomRenderer=U},3787:function(p,h,b){var E=this&&this.__decorate||function(U,W,v,w){var F,Z=arguments.length,Q=Z<3?W:null===w?w=Object.getOwnPropertyDescriptor(W,v):w;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(U,W,v,w);else for(var ne=U.length-1;ne>=0;ne--)(F=U[ne])&&(Q=(Z<3?F(Q):Z>3?F(W,v,Q):F(W,v))||Q);return Z>3&&Q&&Object.defineProperty(W,v,Q),Q},x=this&&this.__param||function(U,W){return function(v,w){W(v,w,U)}};Object.defineProperty(h,"__esModule",{value:!0}),h.DomRendererRowFactory=h.CURSOR_STYLE_UNDERLINE_CLASS=h.CURSOR_STYLE_BAR_CLASS=h.CURSOR_STYLE_BLOCK_CLASS=h.CURSOR_BLINK_CLASS=h.CURSOR_CLASS=h.STRIKETHROUGH_CLASS=h.OVERLINE_CLASS=h.UNDERLINE_CLASS=h.ITALIC_CLASS=h.DIM_CLASS=h.BOLD_CLASS=void 0;const D=b(2223),I=b(643),P=b(511),T=b(2585),y=b(8055),l=b(4725),f=b(4269),u=b(6171),d=b(3734);h.BOLD_CLASS="xterm-bold",h.DIM_CLASS="xterm-dim",h.ITALIC_CLASS="xterm-italic",h.UNDERLINE_CLASS="xterm-underline",h.OVERLINE_CLASS="xterm-overline",h.STRIKETHROUGH_CLASS="xterm-strikethrough",h.CURSOR_CLASS="xterm-cursor",h.CURSOR_BLINK_CLASS="xterm-cursor-blink",h.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",h.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",h.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";let C=class{constructor(U,W,v,w,F,Z,Q){this._document=U,this._characterJoinerService=W,this._optionsService=v,this._coreBrowserService=w,this._coreService=F,this._decorationService=Z,this._themeService=Q,this._workCell=new P.CellData,this._columnSelectMode=!1}handleSelectionChanged(U,W,v){this._selectionStart=U,this._selectionEnd=W,this._columnSelectMode=v}createRow(U,W,v,w,F,Z,Q,ne,we){const Be=this._document.createDocumentFragment(),Ie=this._characterJoinerService.getJoinedCharacters(W);let Y=0;for(let he=Math.min(U.length,ne)-1;he>=0;he--)if(U.loadCell(he,this._workCell).getCode()!==I.NULL_CELL_CODE||v&&he===F){Y=he+1;break}const re=this._themeService.colors;let _e=-1,ee=0;for(;ee0&&ee===Ie[0][0]){Me=!0;const pt=Ie.shift();ye=new f.JoinedCellData(this._workCell,U.translateToString(!0,pt[0],pt[1]),pt[1]-pt[0]),Oe=pt[1]-1,he=ye.getWidth()}const Ne=this._document.createElement("span");if(he>1&&(Ne.style.width=Q*he+"px"),Me&&(Ne.style.display="inline",F>=ee&&F<=Oe&&(F=ee)),!this._coreService.isCursorHidden&&v&&ee===F)switch(Ne.classList.add(h.CURSOR_CLASS),Z&&Ne.classList.add(h.CURSOR_BLINK_CLASS),w){case"bar":Ne.classList.add(h.CURSOR_STYLE_BAR_CLASS);break;case"underline":Ne.classList.add(h.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Ne.classList.add(h.CURSOR_STYLE_BLOCK_CLASS)}if(ye.isBold()&&Ne.classList.add(h.BOLD_CLASS),ye.isItalic()&&Ne.classList.add(h.ITALIC_CLASS),ye.isDim()&&Ne.classList.add(h.DIM_CLASS),Ne.textContent=ye.isInvisible()?I.WHITESPACE_CELL_CHAR:ye.getChars()||I.WHITESPACE_CELL_CHAR,ye.isUnderline()&&(Ne.classList.add(`${h.UNDERLINE_CLASS}-${ye.extended.underlineStyle}`)," "===Ne.textContent&&(Ne.textContent="\xa0"),!ye.isUnderlineColorDefault()))if(ye.isUnderlineColorRGB())Ne.style.textDecorationColor=`rgb(${d.AttributeData.toColorRGB(ye.getUnderlineColor()).join(",")})`;else{let pt=ye.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&ye.isBold()&&pt<8&&(pt+=8),Ne.style.textDecorationColor=re.ansi[pt].css}ye.isOverline()&&(Ne.classList.add(h.OVERLINE_CLASS)," "===Ne.textContent&&(Ne.textContent="\xa0")),ye.isStrikethrough()&&Ne.classList.add(h.STRIKETHROUGH_CLASS);let ue=ye.getFgColor(),de=ye.getFgColorMode(),be=ye.getBgColor(),ke=ye.getBgColorMode();const Ue=!!ye.isInverse();if(Ue){const pt=ue;ue=be,be=pt;const Rt=de;de=ke,ke=Rt}let ft,Je,kt=!1;this._decorationService.forEachDecorationAtCell(ee,W,void 0,pt=>{"top"!==pt.options.layer&&kt||(pt.backgroundColorRGB&&(ke=50331648,be=pt.backgroundColorRGB.rgba>>8&16777215,ft=pt.backgroundColorRGB),pt.foregroundColorRGB&&(de=50331648,ue=pt.foregroundColorRGB.rgba>>8&16777215,Je=pt.foregroundColorRGB),kt="top"===pt.options.layer)});const _t=this._isCellInSelection(ee,W);let It;switch(kt||re.selectionForeground&&_t&&(de=50331648,ue=re.selectionForeground.rgba>>8&16777215,Je=re.selectionForeground),_t&&(ft=this._coreBrowserService.isFocused?re.selectionBackgroundOpaque:re.selectionInactiveBackgroundOpaque,kt=!0),kt&&Ne.classList.add("xterm-decoration-top"),ke){case 16777216:case 33554432:It=re.ansi[be],Ne.classList.add(`xterm-bg-${be}`);break;case 50331648:It=y.rgba.toColor(be>>16,be>>8&255,255&be),this._addStyle(Ne,`background-color:#${R((be>>>0).toString(16),"0",6)}`);break;default:Ue?(It=re.foreground,Ne.classList.add(`xterm-bg-${D.INVERTED_DEFAULT_COLOR}`)):It=re.background}switch(ft||ye.isDim()&&(ft=y.color.multiplyOpacity(It,.5)),de){case 16777216:case 33554432:ye.isBold()&&ue<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(ue+=8),this._applyMinimumContrast(Ne,It,re.ansi[ue],ye,ft,void 0)||Ne.classList.add(`xterm-fg-${ue}`);break;case 50331648:const pt=y.rgba.toColor(ue>>16&255,ue>>8&255,255&ue);this._applyMinimumContrast(Ne,It,pt,ye,ft,Je)||this._addStyle(Ne,`color:#${R(ue.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(Ne,It,re.foreground,ye,ft,void 0)||Ue&&Ne.classList.add(`xterm-fg-${D.INVERTED_DEFAULT_COLOR}`)}Be.appendChild(Ne),we[ee]=++_e,ee=Oe}return ee=v[0]&&W>=v[1]&&U=v[1]&&U>=w[0]&&W<=w[1]:W>v[1]&&W=v[0]&&U=v[0])}};function R(U,W,v){for(;U.length{Object.defineProperty(h,"__esModule",{value:!0}),h.TEXT_BASELINE=h.DIM_OPACITY=h.INVERTED_DEFAULT_COLOR=void 0;const E=b(6114);h.INVERTED_DEFAULT_COLOR=257,h.DIM_OPACITY=.5,h.TEXT_BASELINE=E.isFirefox||E.isLegacyEdge?"bottom":"ideographic"},6171:(p,h)=>{function b(E){return 57508<=E&&E<=57558}Object.defineProperty(h,"__esModule",{value:!0}),h.createRenderDimensions=h.excludeFromContrastRatioDemands=h.isRestrictedPowerlineGlyph=h.isPowerlineGlyph=h.throwIfFalsy=void 0,h.throwIfFalsy=function(E){if(!E)throw new Error("value must not be falsy");return E},h.isPowerlineGlyph=b,h.isRestrictedPowerlineGlyph=function(E){return 57520<=E&&E<=57527},h.excludeFromContrastRatioDemands=function(E){return b(E)||9472<=(x=E)&&x<=9631;var x},h.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.SelectionModel=void 0,h.SelectionModel=class{constructor(b){this._bufferService=b,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.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()){const b=this.selectionStart[0]+this.selectionStartLength;return b>this._bufferService.cols?b%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)-1]:[b%this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)]:[b,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const b=this.selectionStart[0]+this.selectionStartLength;return b>this._bufferService.cols?[b%this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)]:[Math.max(b,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const b=this.selectionStart,E=this.selectionEnd;return!(!b||!E)&&(b[1]>E[1]||b[1]===E[1]&&b[0]>E[0])}handleTrim(b){return this.selectionStart&&(this.selectionStart[1]-=b),this.selectionEnd&&(this.selectionEnd[1]-=b),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},x=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CharSizeService=void 0;const D=b(2585),I=b(8460),P=b(844);let T=class extends P.Disposable{constructor(l,f,u){super(),this._optionsService=u,this.width=0,this.height=0,this._onCharSizeChange=this.register(new I.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new y(l,f,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){const l=this._measureStrategy.measure();l.width===this.width&&l.height===this.height||(this.width=l.width,this.height=l.height,this._onCharSizeChange.fire())}};T=E([x(2,D.IOptionsService)],T),h.CharSizeService=T;class y{constructor(f,u,d){this._document=f,this._parentElement=u,this._optionsService=d,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const f=this._measureElement.getBoundingClientRect();return 0!==f.width&&0!==f.height&&(this._result.width=f.width,this._result.height=Math.ceil(f.height)),this._result}}},4269:function(p,h,b){var E=this&&this.__decorate||function(f,u,d,C){var R,U=arguments.length,W=U<3?u:null===C?C=Object.getOwnPropertyDescriptor(u,d):C;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(f,u,d,C);else for(var v=f.length-1;v>=0;v--)(R=f[v])&&(W=(U<3?R(W):U>3?R(u,d,W):R(u,d))||W);return U>3&&W&&Object.defineProperty(u,d,W),W},x=this&&this.__param||function(f,u){return function(d,C){u(d,C,f)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CharacterJoinerService=h.JoinedCellData=void 0;const D=b(3734),I=b(643),P=b(511),T=b(2585);h.JoinedCellData=class y extends D.AttributeData{constructor(u,d,C){super(),this.content=0,this.combinedData="",this.fg=u.fg,this.bg=u.bg,this.combinedData=d,this._width=C}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(u){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}};let l=class Dg{constructor(u){this._bufferService=u,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new P.CellData}register(u){const d={id:this._nextCharacterJoinerId++,handler:u};return this._characterJoiners.push(d),d.id}deregister(u){for(let d=0;d1){const Q=this._getJoinedRanges(R,v,W,d,U);for(let ne=0;ne1){const Z=this._getJoinedRanges(R,v,W,d,U);for(let Q=0;Q{Object.defineProperty(h,"__esModule",{value:!0}),h.CoreBrowserService=void 0,h.CoreBrowserService=class{constructor(b,E){this._textarea=b,this.window=E,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(p,h,b){var E=this&&this.__decorate||function(T,y,l,f){var u,d=arguments.length,C=d<3?y:null===f?f=Object.getOwnPropertyDescriptor(y,l):f;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)C=Reflect.decorate(T,y,l,f);else for(var R=T.length-1;R>=0;R--)(u=T[R])&&(C=(d<3?u(C):d>3?u(y,l,C):u(y,l))||C);return d>3&&C&&Object.defineProperty(y,l,C),C},x=this&&this.__param||function(T,y){return function(l,f){y(l,f,T)}};Object.defineProperty(h,"__esModule",{value:!0}),h.MouseService=void 0;const D=b(4725),I=b(9806);let P=class{constructor(T,y){this._renderService=T,this._charSizeService=y}getCoords(T,y,l,f,u){return(0,I.getCoords)(window,T,y,l,f,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,u)}getMouseReportCoords(T,y){const l=(0,I.getCoordsRelativeToElement)(window,T,y);if(!(!this._charSizeService.hasValidSize||l[0]<0||l[1]<0||l[0]>=this._renderService.dimensions.css.canvas.width||l[1]>=this._renderService.dimensions.css.canvas.height))return{col:Math.floor(l[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(l[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(l[0]),y:Math.floor(l[1])}}};P=E([x(0,D.IRenderService),x(1,D.ICharSizeService)],P),h.MouseService=P},3230:function(p,h,b){var E=this&&this.__decorate||function(C,R,U,W){var v,w=arguments.length,F=w<3?R:null===W?W=Object.getOwnPropertyDescriptor(R,U):W;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(C,R,U,W);else for(var Z=C.length-1;Z>=0;Z--)(v=C[Z])&&(F=(w<3?v(F):w>3?v(R,U,F):v(R,U))||F);return w>3&&F&&Object.defineProperty(R,U,F),F},x=this&&this.__param||function(C,R){return function(U,W){R(U,W,C)}};Object.defineProperty(h,"__esModule",{value:!0}),h.RenderService=void 0;const D=b(6193),I=b(8460),P=b(844),T=b(5596),y=b(3656),l=b(2585),f=b(4725),u=b(7226);let d=class extends P.Disposable{constructor(C,R,U,W,v,w,F,Z){if(super(),this._rowCount=C,this._charSizeService=W,this._pausedResizeTask=new u.DebouncedIdleTask,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 I.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new I.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new I.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new I.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this.register({dispose:()=>{var Q;return null===(Q=this._renderer)||void 0===Q?void 0:Q.dispose()}}),this._renderDebouncer=new D.RenderDebouncer(F.window,(Q,ne)=>this._renderRows(Q,ne)),this.register(this._renderDebouncer),this._screenDprMonitor=new T.ScreenDprMonitor(F.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(w.onResize(()=>this._fullRefresh())),this.register(w.buffers.onBufferActivate(()=>{var Q;return null===(Q=this._renderer)||void 0===Q?void 0:Q.clear()})),this.register(U.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(v.onDecorationRegistered(()=>this._fullRefresh())),this.register(v.onDecorationRemoved(()=>this._fullRefresh())),this.register(U.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(w.cols,w.rows),this._fullRefresh()})),this.register(U.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(w.buffer.y,w.buffer.y,!0))),this.register((0,y.addDisposableDomListener)(F.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(Z.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in F.window){const Q=new F.window.IntersectionObserver(ne=>this._handleIntersectionChange(ne[ne.length-1]),{threshold:0});Q.observe(R),this.register({dispose:()=>Q.disconnect()})}}get dimensions(){return this._renderer.dimensions}_handleIntersectionChange(C){this._isPaused=void 0===C.isIntersecting?0===C.intersectionRatio:!C.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(C,R,U=!1){this._isPaused?this._needsFullRefresh=!0:(U||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(C,R,this._rowCount))}_renderRows(C,R){this._renderer&&(C=Math.min(C,this._rowCount-1),R=Math.min(R,this._rowCount-1),this._renderer.renderRows(C,R),this._needsSelectionRefresh&&(this._renderer.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:C,end:R}),this._onRender.fire({start:C,end:R}),this._isNextRenderRedrawOnly=!0)}resize(C,R){this._rowCount=R,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer&&(this._renderer.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions))}hasRenderer(){return!!this._renderer}setRenderer(C){var R;null===(R=this._renderer)||void 0===R||R.dispose(),this._renderer=C,this._renderer.onRequestRedraw(U=>this.refreshRows(U.start,U.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(C){return this._renderDebouncer.addRefreshCallback(C)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var C,R;this._renderer&&(null===(R=(C=this._renderer).clearTextureAtlas)||void 0===R||R.call(C),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer&&(this._renderer.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(C,R){this._renderer&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.handleResize(C,R)):this._renderer.handleResize(C,R),this._fullRefresh())}handleCharSizeChanged(){var C;null===(C=this._renderer)||void 0===C||C.handleCharSizeChanged()}handleBlur(){var C;null===(C=this._renderer)||void 0===C||C.handleBlur()}handleFocus(){var C;null===(C=this._renderer)||void 0===C||C.handleFocus()}handleSelectionChanged(C,R,U){var W;this._selectionState.start=C,this._selectionState.end=R,this._selectionState.columnSelectMode=U,null===(W=this._renderer)||void 0===W||W.handleSelectionChanged(C,R,U)}handleCursorMove(){var C;null===(C=this._renderer)||void 0===C||C.handleCursorMove()}clear(){var C;null===(C=this._renderer)||void 0===C||C.clear()}};d=E([x(2,l.IOptionsService),x(3,f.ICharSizeService),x(4,l.IDecorationService),x(5,l.IBufferService),x(6,f.ICoreBrowserService),x(7,f.IThemeService)],d),h.RenderService=d},9312:function(p,h,b){var E=this&&this.__decorate||function(v,w,F,Z){var Q,ne=arguments.length,we=ne<3?w:null===Z?Z=Object.getOwnPropertyDescriptor(w,F):Z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)we=Reflect.decorate(v,w,F,Z);else for(var Be=v.length-1;Be>=0;Be--)(Q=v[Be])&&(we=(ne<3?Q(we):ne>3?Q(w,F,we):Q(w,F))||we);return ne>3&&we&&Object.defineProperty(w,F,we),we},x=this&&this.__param||function(v,w){return function(F,Z){w(F,Z,v)}};Object.defineProperty(h,"__esModule",{value:!0}),h.SelectionService=void 0;const D=b(6114),I=b(456),P=b(511),T=b(8460),y=b(4725),l=b(2585),f=b(9806),u=b(9504),d=b(844),C=b(4841),R=String.fromCharCode(160),U=new RegExp(R,"g");let W=class extends d.Disposable{constructor(v,w,F,Z,Q,ne,we,Be,Ie){super(),this._element=v,this._screenElement=w,this._linkifier=F,this._bufferService=Z,this._coreService=Q,this._mouseService=ne,this._optionsService=we,this._renderService=Be,this._coreBrowserService=Ie,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new P.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new T.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new T.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new T.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new T.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=Y=>this._handleMouseMove(Y),this._mouseUpListener=Y=>this._handleMouseUp(Y),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(Y=>this._handleTrim(Y)),this.register(this._bufferService.buffers.onBufferActivate(Y=>this._handleBufferActivate(Y))),this.enable(),this._model=new I.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,d.toDisposable)(()=>{this._removeMouseDownListeners()}))}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(){const v=this._model.finalSelectionStart,w=this._model.finalSelectionEnd;return!(!v||!w||v[0]===w[0]&&v[1]===w[1])}get selectionText(){const v=this._model.finalSelectionStart,w=this._model.finalSelectionEnd;if(!v||!w)return"";const F=this._bufferService.buffer,Z=[];if(3===this._activeSelectionMode){if(v[0]===w[0])return"";const Q=v[0]Q.replace(U," ")).join(D.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(v){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),D.isLinux&&v&&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:3===this._activeSelectionMode})}_isClickInSelection(v){const w=this._getMouseBufferCoords(v),F=this._model.finalSelectionStart,Z=this._model.finalSelectionEnd;return!!(F&&Z&&w)&&this._areCoordsInSelection(w,F,Z)}isCellInSelection(v,w){const F=this._model.finalSelectionStart,Z=this._model.finalSelectionEnd;return!(!F||!Z)&&this._areCoordsInSelection([v,w],F,Z)}_areCoordsInSelection(v,w,F){return v[1]>w[1]&&v[1]=w[0]&&v[0]=w[0]}_selectWordAtCursor(v,w){var F,Z;const Q=null===(Z=null===(F=this._linkifier.currentLink)||void 0===F?void 0:F.link)||void 0===Z?void 0:Z.range;if(Q)return this._model.selectionStart=[Q.start.x-1,Q.start.y-1],this._model.selectionStartLength=(0,C.getRangeLength)(Q,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const ne=this._getMouseBufferCoords(v);return!!ne&&(this._selectWordAt(ne,w),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(v,w){this._model.clearSelection(),v=Math.max(v,0),w=Math.min(w,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,v],this._model.selectionEnd=[this._bufferService.cols,w],this.refresh(),this._onSelectionChange.fire()}_handleTrim(v){this._model.handleTrim(v)&&this.refresh()}_getMouseBufferCoords(v){const w=this._mouseService.getCoords(v,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(w)return w[0]--,w[1]--,w[1]+=this._bufferService.buffer.ydisp,w}_getMouseEventScrollAmount(v){let w=(0,f.getCoordsRelativeToElement)(this._coreBrowserService.window,v,this._screenElement)[1];const F=this._renderService.dimensions.css.canvas.height;return w>=0&&w<=F?0:(w>F&&(w-=F),w=Math.min(Math.max(w,-50),50),w/=50,w/Math.abs(w)+Math.round(14*w))}shouldForceSelection(v){return D.isMac?v.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:v.shiftKey}handleMouseDown(v){if(this._mouseDownTimeStamp=v.timeStamp,(2!==v.button||!this.hasSelection)&&0===v.button){if(!this._enabled){if(!this.shouldForceSelection(v))return;v.stopPropagation()}v.preventDefault(),this._dragScrollAmount=0,this._enabled&&v.shiftKey?this._handleIncrementalClick(v):1===v.detail?this._handleSingleClick(v):2===v.detail?this._handleDoubleClick(v):3===v.detail&&this._handleTripleClick(v),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(),50)}_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(v){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(v))}_handleSingleClick(v){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(v)?3:0,this._model.selectionStart=this._getMouseBufferCoords(v),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const w=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);w&&w.length!==this._model.selectionStart[0]&&0===w.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(v){this._selectWordAtCursor(v,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(v){const w=this._getMouseBufferCoords(v);w&&(this._activeSelectionMode=2,this._selectLineAt(w[1]))}shouldColumnSelect(v){return v.altKey&&!(D.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(v){if(v.stopImmediatePropagation(),!this._model.selectionStart)return;const w=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(v),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const F=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(v.ydisp+this._bufferService.rows,v.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=v.ydisp),this.refresh()}}_handleMouseUp(v){const w=v.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&w<500&&v.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const F=this._mouseService.getCoords(v,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(F&&void 0!==F[0]&&void 0!==F[1]){const Z=(0,u.moveToCellSequence)(F[0]-1,F[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(Z,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const v=this._model.finalSelectionStart,w=this._model.finalSelectionEnd,F=!(!v||!w||v[0]===w[0]&&v[1]===w[1]);F?v&&w&&(this._oldSelectionStart&&this._oldSelectionEnd&&v[0]===this._oldSelectionStart[0]&&v[1]===this._oldSelectionStart[1]&&w[0]===this._oldSelectionEnd[0]&&w[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(v,w,F)):this._oldHasSelection&&this._fireOnSelectionChange(v,w,F)}_fireOnSelectionChange(v,w,F){this._oldSelectionStart=v,this._oldSelectionEnd=w,this._oldHasSelection=F,this._onSelectionChange.fire()}_handleBufferActivate(v){this.clearSelection(),this._trimListener.dispose(),this._trimListener=v.activeBuffer.lines.onTrim(w=>this._handleTrim(w))}_convertViewportColToCharacterIndex(v,w){let F=w;for(let Z=0;w>=Z;Z++){const Q=v.loadCell(Z,this._workCell).getChars().length;0===this._workCell.getWidth()?F--:Q>1&&w!==Z&&(F+=Q-1)}return F}setSelection(v,w,F){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[v,w],this._model.selectionStartLength=F,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(v){this._isClickInSelection(v)||(this._selectWordAtCursor(v,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(v,w,F=!0,Z=!0){if(v[0]>=this._bufferService.cols)return;const Q=this._bufferService.buffer,ne=Q.lines.get(v[1]);if(!ne)return;const we=Q.translateBufferLineToString(v[1],!1);let Be=this._convertViewportColToCharacterIndex(ne,v[0]),Ie=Be;const Y=v[0]-Be;let re=0,_e=0,ee=0,he=0;if(" "===we.charAt(Be)){for(;Be>0&&" "===we.charAt(Be-1);)Be--;for(;Ie1&&(he+=ue-1,Ie+=ue-1);ye>0&&Be>0&&!this._isCharWordSeparator(ne.loadCell(ye-1,this._workCell));){ne.loadCell(ye-1,this._workCell);const de=this._workCell.getChars().length;0===this._workCell.getWidth()?(re++,ye--):de>1&&(ee+=de-1,Be-=de-1),Be--,ye--}for(;Ne1&&(he+=de-1,Ie+=de-1),Ie++,Ne++}}Ie++;let Me=Be+Y-re+ee,Oe=Math.min(this._bufferService.cols,Ie-Be+re+_e-ee-he);if(w||""!==we.slice(Be,Ie).trim()){if(F&&0===Me&&32!==ne.getCodePoint(0)){const ye=Q.lines.get(v[1]-1);if(ye&&ne.isWrapped&&32!==ye.getCodePoint(this._bufferService.cols-1)){const Ne=this._getWordAt([this._bufferService.cols-1,v[1]-1],!1,!0,!1);if(Ne){const ue=this._bufferService.cols-Ne.start;Me-=ue,Oe+=ue}}}if(Z&&Me+Oe===this._bufferService.cols&&32!==ne.getCodePoint(this._bufferService.cols-1)){const ye=Q.lines.get(v[1]+1);if((null==ye?void 0:ye.isWrapped)&&32!==ye.getCodePoint(0)){const Ne=this._getWordAt([0,v[1]+1],!1,!1,!0);Ne&&(Oe+=Ne.length)}}return{start:Me,length:Oe}}}_selectWordAt(v,w){const F=this._getWordAt(v,w);if(F){for(;F.start<0;)F.start+=this._bufferService.cols,v[1]--;this._model.selectionStart=[F.start,v[1]],this._model.selectionStartLength=F.length}}_selectToWordAt(v){const w=this._getWordAt(v,!0);if(w){let F=v[1];for(;w.start<0;)w.start+=this._bufferService.cols,F--;if(!this._model.areSelectionValuesReversed())for(;w.start+w.length>this._bufferService.cols;)w.length-=this._bufferService.cols,F++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?w.start:w.start+w.length,F]}}_isCharWordSeparator(v){return 0!==v.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(v.getChars())>=0}_selectLineAt(v){const w=this._bufferService.buffer.getWrappedRangeForLine(v),F={start:{x:0,y:w.first},end:{x:this._bufferService.cols-1,y:w.last}};this._model.selectionStart=[0,w.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,C.getRangeLength)(F,this._bufferService.cols)}};W=E([x(3,l.IBufferService),x(4,l.ICoreService),x(5,y.IMouseService),x(6,l.IOptionsService),x(7,y.IRenderService),x(8,y.ICoreBrowserService)],W),h.SelectionService=W},4725:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.IThemeService=h.ICharacterJoinerService=h.ISelectionService=h.IRenderService=h.IMouseService=h.ICoreBrowserService=h.ICharSizeService=void 0;const E=b(8343);h.ICharSizeService=(0,E.createDecorator)("CharSizeService"),h.ICoreBrowserService=(0,E.createDecorator)("CoreBrowserService"),h.IMouseService=(0,E.createDecorator)("MouseService"),h.IRenderService=(0,E.createDecorator)("RenderService"),h.ISelectionService=(0,E.createDecorator)("SelectionService"),h.ICharacterJoinerService=(0,E.createDecorator)("CharacterJoinerService"),h.IThemeService=(0,E.createDecorator)("ThemeService")},6731:function(p,h,b){var E=this&&this.__decorate||function(W,v,w,F){var Z,Q=arguments.length,ne=Q<3?v:null===F?F=Object.getOwnPropertyDescriptor(v,w):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(W,v,w,F);else for(var we=W.length-1;we>=0;we--)(Z=W[we])&&(ne=(Q<3?Z(ne):Q>3?Z(v,w,ne):Z(v,w))||ne);return Q>3&&ne&&Object.defineProperty(v,w,ne),ne},x=this&&this.__param||function(W,v){return function(w,F){v(w,F,W)}};Object.defineProperty(h,"__esModule",{value:!0}),h.ThemeService=h.DEFAULT_ANSI_COLORS=void 0;const D=b(7239),I=b(8055),P=b(8460),T=b(844),y=b(2585),l=I.css.toColor("#ffffff"),f=I.css.toColor("#000000"),u=I.css.toColor("#ffffff"),d=I.css.toColor("#000000"),C={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};h.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const W=[I.css.toColor("#2e3436"),I.css.toColor("#cc0000"),I.css.toColor("#4e9a06"),I.css.toColor("#c4a000"),I.css.toColor("#3465a4"),I.css.toColor("#75507b"),I.css.toColor("#06989a"),I.css.toColor("#d3d7cf"),I.css.toColor("#555753"),I.css.toColor("#ef2929"),I.css.toColor("#8ae234"),I.css.toColor("#fce94f"),I.css.toColor("#729fcf"),I.css.toColor("#ad7fa8"),I.css.toColor("#34e2e2"),I.css.toColor("#eeeeec")],v=[0,95,135,175,215,255];for(let w=0;w<216;w++){const F=v[w/36%6|0],Z=v[w/6%6|0],Q=v[w%6];W.push({css:I.channels.toCss(F,Z,Q),rgba:I.channels.toRgba(F,Z,Q)})}for(let w=0;w<24;w++){const F=8+10*w;W.push({css:I.channels.toCss(F,F,F),rgba:I.channels.toRgba(F,F,F)})}return W})());let R=class extends T.Disposable{constructor(W){super(),this._optionsService=W,this._onChangeColors=this.register(new P.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._contrastCache=new D.ColorContrastCache,this._colors={foreground:l,background:f,cursor:u,cursorAccent:d,selectionForeground:void 0,selectionBackgroundTransparent:C,selectionBackgroundOpaque:I.color.blend(f,C),selectionInactiveBackgroundTransparent:C,selectionInactiveBackgroundOpaque:I.color.blend(f,C),ansi:h.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},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(W={}){const v=this._colors;if(v.foreground=U(W.foreground,l),v.background=U(W.background,f),v.cursor=U(W.cursor,u),v.cursorAccent=U(W.cursorAccent,d),v.selectionBackgroundTransparent=U(W.selectionBackground,C),v.selectionBackgroundOpaque=I.color.blend(v.background,v.selectionBackgroundTransparent),v.selectionInactiveBackgroundTransparent=U(W.selectionInactiveBackground,v.selectionBackgroundTransparent),v.selectionInactiveBackgroundOpaque=I.color.blend(v.background,v.selectionInactiveBackgroundTransparent),v.selectionForeground=W.selectionForeground?U(W.selectionForeground,I.NULL_COLOR):void 0,v.selectionForeground===I.NULL_COLOR&&(v.selectionForeground=void 0),I.color.isOpaque(v.selectionBackgroundTransparent)&&(v.selectionBackgroundTransparent=I.color.opacity(v.selectionBackgroundTransparent,.3)),I.color.isOpaque(v.selectionInactiveBackgroundTransparent)&&(v.selectionInactiveBackgroundTransparent=I.color.opacity(v.selectionInactiveBackgroundTransparent,.3)),v.ansi=h.DEFAULT_ANSI_COLORS.slice(),v.ansi[0]=U(W.black,h.DEFAULT_ANSI_COLORS[0]),v.ansi[1]=U(W.red,h.DEFAULT_ANSI_COLORS[1]),v.ansi[2]=U(W.green,h.DEFAULT_ANSI_COLORS[2]),v.ansi[3]=U(W.yellow,h.DEFAULT_ANSI_COLORS[3]),v.ansi[4]=U(W.blue,h.DEFAULT_ANSI_COLORS[4]),v.ansi[5]=U(W.magenta,h.DEFAULT_ANSI_COLORS[5]),v.ansi[6]=U(W.cyan,h.DEFAULT_ANSI_COLORS[6]),v.ansi[7]=U(W.white,h.DEFAULT_ANSI_COLORS[7]),v.ansi[8]=U(W.brightBlack,h.DEFAULT_ANSI_COLORS[8]),v.ansi[9]=U(W.brightRed,h.DEFAULT_ANSI_COLORS[9]),v.ansi[10]=U(W.brightGreen,h.DEFAULT_ANSI_COLORS[10]),v.ansi[11]=U(W.brightYellow,h.DEFAULT_ANSI_COLORS[11]),v.ansi[12]=U(W.brightBlue,h.DEFAULT_ANSI_COLORS[12]),v.ansi[13]=U(W.brightMagenta,h.DEFAULT_ANSI_COLORS[13]),v.ansi[14]=U(W.brightCyan,h.DEFAULT_ANSI_COLORS[14]),v.ansi[15]=U(W.brightWhite,h.DEFAULT_ANSI_COLORS[15]),W.extendedAnsi){const w=Math.min(v.ansi.length-16,W.extendedAnsi.length);for(let F=0;F{Object.defineProperty(h,"__esModule",{value:!0}),h.CircularList=void 0;const E=b(8460),x=b(844);h.CircularList=class D extends x.Disposable{constructor(P){super(),this._maxLength=P,this.onDeleteEmitter=this.register(new E.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new E.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new E.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(P){if(this._maxLength===P)return;const T=new Array(P);for(let y=0;ythis._length)for(let T=this._length;T=P;l--)this._array[this._getCyclicIndex(l+y.length)]=this._array[this._getCyclicIndex(l)];for(let l=0;lthis._maxLength){const l=this._length+y.length-this._maxLength;this._startIndex+=l,this._length=this._maxLength,this.onTrimEmitter.fire(l)}else this._length+=y.length}trimStart(P){P>this._length&&(P=this._length),this._startIndex+=P,this._length-=P,this.onTrimEmitter.fire(P)}shiftElements(P,T,y){if(!(T<=0)){if(P<0||P>=this._length)throw new Error("start argument out of range");if(P+y<0)throw new Error("Cannot shift elements in list beyond index 0");if(y>0){for(let f=T-1;f>=0;f--)this.set(P+f+y,this.get(P+f));const l=P+T+y-this._length;if(l>0)for(this._length+=l;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let l=0;l{Object.defineProperty(h,"__esModule",{value:!0}),h.clone=void 0,h.clone=function b(E,x=5){if("object"!=typeof E)return E;const D=Array.isArray(E)?[]:{};for(const I in E)D[I]=x<=1?E[I]:E[I]&&b(E[I],x-1);return D}},8055:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.contrastRatio=h.toPaddedHex=h.rgba=h.rgb=h.css=h.color=h.channels=h.NULL_COLOR=void 0;const E=b(6114);let x=0,D=0,I=0,P=0;var T,y,l,d;function f(d){const C=d.toString(16);return C.length<2?"0"+C:C}function u(d,C){return d>>0},function(d){function C(R,U){return P=Math.round(255*U),[x,D,I]=l.toChannels(R.rgba),{css:T.toCss(x,D,I,P),rgba:T.toRgba(x,D,I,P)}}d.blend=function(R,U){if(P=(255&U.rgba)/255,1===P)return{css:U.css,rgba:U.rgba};const v=U.rgba>>16&255,w=U.rgba>>8&255,F=R.rgba>>24&255,Z=R.rgba>>16&255,Q=R.rgba>>8&255;return x=F+Math.round(((U.rgba>>24&255)-F)*P),D=Z+Math.round((v-Z)*P),I=Q+Math.round((w-Q)*P),{css:T.toCss(x,D,I),rgba:T.toRgba(x,D,I)}},d.isOpaque=function(R){return 255==(255&R.rgba)},d.ensureContrastRatio=function(R,U,W){const v=l.ensureContrastRatio(R.rgba,U.rgba,W);if(v)return l.toColor(v>>24&255,v>>16&255,v>>8&255)},d.opaque=function(R){const U=(255|R.rgba)>>>0;return[x,D,I]=l.toChannels(U),{css:T.toCss(x,D,I),rgba:U}},d.opacity=C,d.multiplyOpacity=function(R,U){return P=255&R.rgba,C(R,P*U/255)},d.toColorRGB=function(R){return[R.rgba>>24&255,R.rgba>>16&255,R.rgba>>8&255]}}(h.color||(h.color={})),function(d){let C,R;if(!E.isNode){const U=document.createElement("canvas");U.width=1,U.height=1;const W=U.getContext("2d",{willReadFrequently:!0});W&&(C=W,C.globalCompositeOperation="copy",R=C.createLinearGradient(0,0,1,1))}d.toColor=function(U){if(U.match(/#[\da-f]{3,8}/i))switch(U.length){case 4:return x=parseInt(U.slice(1,2).repeat(2),16),D=parseInt(U.slice(2,3).repeat(2),16),I=parseInt(U.slice(3,4).repeat(2),16),l.toColor(x,D,I);case 5:return x=parseInt(U.slice(1,2).repeat(2),16),D=parseInt(U.slice(2,3).repeat(2),16),I=parseInt(U.slice(3,4).repeat(2),16),P=parseInt(U.slice(4,5).repeat(2),16),l.toColor(x,D,I,P);case 7:return{css:U,rgba:(parseInt(U.slice(1),16)<<8|255)>>>0};case 9:return{css:U,rgba:parseInt(U.slice(1),16)>>>0}}const W=U.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(W)return x=parseInt(W[1]),D=parseInt(W[2]),I=parseInt(W[3]),P=Math.round(255*(void 0===W[5]?1:parseFloat(W[5]))),l.toColor(x,D,I,P);if(!C||!R)throw new Error("css.toColor: Unsupported css format");if(C.fillStyle=R,C.fillStyle=U,"string"!=typeof C.fillStyle)throw new Error("css.toColor: Unsupported css format");if(C.fillRect(0,0,1,1),[x,D,I,P]=C.getImageData(0,0,1,1).data,255!==P)throw new Error("css.toColor: Unsupported css format");return{rgba:T.toRgba(x,D,I,P),css:U}}}(h.css||(h.css={})),function(d){function C(R,U,W){const v=R/255,w=U/255,F=W/255;return.2126*(v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4))+.7152*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.0722*(F<=.03928?F/12.92:Math.pow((F+.055)/1.055,2.4))}d.relativeLuminance=function(R){return C(R>>16&255,R>>8&255,255&R)},d.relativeLuminance2=C}(y=h.rgb||(h.rgb={})),function(d){function C(U,W,v){const w=U>>24&255,F=U>>16&255,Z=U>>8&255;let Q=W>>24&255,ne=W>>16&255,we=W>>8&255,Be=u(y.relativeLuminance2(Q,ne,we),y.relativeLuminance2(w,F,Z));for(;Be0||ne>0||we>0);)Q-=Math.max(0,Math.ceil(.1*Q)),ne-=Math.max(0,Math.ceil(.1*ne)),we-=Math.max(0,Math.ceil(.1*we)),Be=u(y.relativeLuminance2(Q,ne,we),y.relativeLuminance2(w,F,Z));return(Q<<24|ne<<16|we<<8|255)>>>0}function R(U,W,v){const w=U>>24&255,F=U>>16&255,Z=U>>8&255;let Q=W>>24&255,ne=W>>16&255,we=W>>8&255,Be=u(y.relativeLuminance2(Q,ne,we),y.relativeLuminance2(w,F,Z));for(;Be>>0}d.ensureContrastRatio=function(U,W,v){const w=y.relativeLuminance(U>>8),F=y.relativeLuminance(W>>8);if(u(w,F)>8));if(weu(w,y.relativeLuminance(Be>>8))?ne:Be}return ne}const Z=R(U,W,v),Q=u(w,y.relativeLuminance(Z>>8));if(Qu(w,y.relativeLuminance(ne>>8))?Z:ne}return Z}},d.reduceLuminance=C,d.increaseLuminance=R,d.toChannels=function(U){return[U>>24&255,U>>16&255,U>>8&255,255&U]},d.toColor=function(U,W,v,w){return{css:T.toCss(U,W,v,w),rgba:T.toRgba(U,W,v,w)}}}(l=h.rgba||(h.rgba={})),h.toPaddedHex=f,h.contrastRatio=u},8969:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.CoreTerminal=void 0;const E=b(844),x=b(2585),D=b(4348),I=b(7866),P=b(744),T=b(7302),y=b(6975),l=b(8460),f=b(1753),u=b(1480),d=b(7994),C=b(9282),R=b(5435),U=b(5981),W=b(2660);let v=!1;h.CoreTerminal=class w extends E.Disposable{constructor(Z){super(),this._onBinary=this.register(new l.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new l.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new l.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new l.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new l.EventEmitter),this._instantiationService=new D.InstantiationService,this.optionsService=this.register(new T.OptionsService(Z)),this._instantiationService.setService(x.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(P.BufferService)),this._instantiationService.setService(x.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(I.LogService)),this._instantiationService.setService(x.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(y.CoreService)),this._instantiationService.setService(x.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(f.CoreMouseService)),this._instantiationService.setService(x.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(u.UnicodeService)),this._instantiationService.setService(x.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(d.CharsetService),this._instantiationService.setService(x.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(W.OscLinkService),this._instantiationService.setService(x.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new R.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,l.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,l.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,l.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,l.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(Q=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(Q=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new U.WriteBuffer((Q,ne)=>this._inputHandler.parse(Q,ne))),this.register((0,l.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed)),this.register((0,E.toDisposable)(()=>{var Q;null===(Q=this._windowsWrappingHeuristics)||void 0===Q||Q.dispose(),this._windowsWrappingHeuristics=void 0}))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new l.EventEmitter),this._onScroll.event(Z=>{var Q;null===(Q=this._onScrollApi)||void 0===Q||Q.fire(Z.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(Z){for(const Q in Z)this.optionsService.options[Q]=Z[Q]}write(Z,Q){this._writeBuffer.write(Z,Q)}writeSync(Z,Q){this._logService.logLevel<=x.LogLevelEnum.WARN&&!v&&(this._logService.warn("writeSync is unreliable and will be removed soon."),v=!0),this._writeBuffer.writeSync(Z,Q)}resize(Z,Q){isNaN(Z)||isNaN(Q)||(Z=Math.max(Z,P.MINIMUM_COLS),Q=Math.max(Q,P.MINIMUM_ROWS),this._bufferService.resize(Z,Q))}scroll(Z,Q=!1){this._bufferService.scroll(Z,Q)}scrollLines(Z,Q,ne){this._bufferService.scrollLines(Z,Q,ne)}scrollPages(Z){this._bufferService.scrollPages(Z)}scrollToTop(){this._bufferService.scrollToTop()}scrollToBottom(){this._bufferService.scrollToBottom()}scrollToLine(Z){this._bufferService.scrollToLine(Z)}registerEscHandler(Z,Q){return this._inputHandler.registerEscHandler(Z,Q)}registerDcsHandler(Z,Q){return this._inputHandler.registerDcsHandler(Z,Q)}registerCsiHandler(Z,Q){return this._inputHandler.registerCsiHandler(Z,Q)}registerOscHandler(Z,Q){return this._inputHandler.registerOscHandler(Z,Q)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){var Z;let Q=!1;const ne=this.optionsService.rawOptions.windowsPty;ne&&void 0!==ne.buildNumber&&void 0!==ne.buildNumber?Q="conpty"===ne.backend&&ne.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(Q=!0),Q?this._enableWindowsWrappingHeuristics():(null===(Z=this._windowsWrappingHeuristics)||void 0===Z||Z.dispose(),this._windowsWrappingHeuristics=void 0)}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics){const Z=[];Z.push(this.onLineFeed(C.updateWindowsModeWrappedState.bind(null,this._bufferService))),Z.push(this.registerCsiHandler({final:"H"},()=>((0,C.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics=(0,E.toDisposable)(()=>{for(const Q of Z)Q.dispose()})}}}},8460:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.forwardEvent=h.EventEmitter=void 0,h.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=b=>(this._listeners.push(b),{dispose:()=>{if(!this._disposed)for(let E=0;EE.fire(x))}},5435:function(p,h,b){var E=this&&this.__decorate||function(Ie,Y,re,_e){var ee,he=arguments.length,Me=he<3?Y:null===_e?_e=Object.getOwnPropertyDescriptor(Y,re):_e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Me=Reflect.decorate(Ie,Y,re,_e);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(ee=Ie[Oe])&&(Me=(he<3?ee(Me):he>3?ee(Y,re,Me):ee(Y,re))||Me);return he>3&&Me&&Object.defineProperty(Y,re,Me),Me},x=this&&this.__param||function(Ie,Y){return function(re,_e){Y(re,_e,Ie)}};Object.defineProperty(h,"__esModule",{value:!0}),h.InputHandler=h.WindowsOptionsReportType=void 0;const D=b(2584),I=b(7116),P=b(2015),T=b(844),y=b(482),l=b(8437),f=b(8460),u=b(643),d=b(511),C=b(3734),R=b(2585),U=b(6242),W=b(6351),v=b(5941),w={"(":0,")":1,"*":2,"+":3,"-":1,".":2},F=131072;function Z(Ie,Y){if(Ie>24)return Y.setWinLines||!1;switch(Ie){case 1:return!!Y.restoreWin;case 2:return!!Y.minimizeWin;case 3:return!!Y.setWinPosition;case 4:return!!Y.setWinSizePixels;case 5:return!!Y.raiseWin;case 6:return!!Y.lowerWin;case 7:return!!Y.refreshWin;case 8:return!!Y.setWinSizeChars;case 9:return!!Y.maximizeWin;case 10:return!!Y.fullscreenWin;case 11:return!!Y.getWinState;case 13:return!!Y.getWinPosition;case 14:return!!Y.getWinSizePixels;case 15:return!!Y.getScreenSizePixels;case 16:return!!Y.getCellSizePixels;case 18:return!!Y.getWinSizeChars;case 19:return!!Y.getScreenSizeChars;case 20:return!!Y.getIconTitle;case 21:return!!Y.getWinTitle;case 22:return!!Y.pushTitle;case 23:return!!Y.popTitle;case 24:return!!Y.setWinLines}return!1}var Q,Ie;(Ie=Q=h.WindowsOptionsReportType||(h.WindowsOptionsReportType={}))[Ie.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",Ie[Ie.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";let ne=0;h.InputHandler=class we extends T.Disposable{constructor(Y,re,_e,ee,he,Me,Oe,ye,Ne=new P.EscapeSequenceParser){super(),this._bufferService=Y,this._charsetService=re,this._coreService=_e,this._logService=ee,this._optionsService=he,this._oscLinkService=Me,this._coreMouseService=Oe,this._unicodeService=ye,this._parser=Ne,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new y.StringToUtf32,this._utf8Decoder=new y.Utf8ToUtf32,this._workCell=new d.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new f.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new f.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new f.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new f.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new f.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new f.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new f.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new f.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new f.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new f.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new f.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new f.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new f.EventEmitter),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 Be(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(ue=>this._activeBuffer=ue.activeBuffer)),this._parser.setCsiHandlerFallback((ue,de)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(ue),params:de.toArray()})}),this._parser.setEscHandlerFallback(ue=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(ue)})}),this._parser.setExecuteHandlerFallback(ue=>{this._logService.debug("Unknown EXECUTE code: ",{code:ue})}),this._parser.setOscHandlerFallback((ue,de,be)=>{this._logService.debug("Unknown OSC code: ",{identifier:ue,action:de,data:be})}),this._parser.setDcsHandlerFallback((ue,de,be)=>{"HOOK"===de&&(be=be.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(ue),action:de,payload:be})}),this._parser.setPrintHandler((ue,de,be)=>this.print(ue,de,be)),this._parser.registerCsiHandler({final:"@"},ue=>this.insertChars(ue)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},ue=>this.scrollLeft(ue)),this._parser.registerCsiHandler({final:"A"},ue=>this.cursorUp(ue)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},ue=>this.scrollRight(ue)),this._parser.registerCsiHandler({final:"B"},ue=>this.cursorDown(ue)),this._parser.registerCsiHandler({final:"C"},ue=>this.cursorForward(ue)),this._parser.registerCsiHandler({final:"D"},ue=>this.cursorBackward(ue)),this._parser.registerCsiHandler({final:"E"},ue=>this.cursorNextLine(ue)),this._parser.registerCsiHandler({final:"F"},ue=>this.cursorPrecedingLine(ue)),this._parser.registerCsiHandler({final:"G"},ue=>this.cursorCharAbsolute(ue)),this._parser.registerCsiHandler({final:"H"},ue=>this.cursorPosition(ue)),this._parser.registerCsiHandler({final:"I"},ue=>this.cursorForwardTab(ue)),this._parser.registerCsiHandler({final:"J"},ue=>this.eraseInDisplay(ue,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},ue=>this.eraseInDisplay(ue,!0)),this._parser.registerCsiHandler({final:"K"},ue=>this.eraseInLine(ue,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},ue=>this.eraseInLine(ue,!0)),this._parser.registerCsiHandler({final:"L"},ue=>this.insertLines(ue)),this._parser.registerCsiHandler({final:"M"},ue=>this.deleteLines(ue)),this._parser.registerCsiHandler({final:"P"},ue=>this.deleteChars(ue)),this._parser.registerCsiHandler({final:"S"},ue=>this.scrollUp(ue)),this._parser.registerCsiHandler({final:"T"},ue=>this.scrollDown(ue)),this._parser.registerCsiHandler({final:"X"},ue=>this.eraseChars(ue)),this._parser.registerCsiHandler({final:"Z"},ue=>this.cursorBackwardTab(ue)),this._parser.registerCsiHandler({final:"`"},ue=>this.charPosAbsolute(ue)),this._parser.registerCsiHandler({final:"a"},ue=>this.hPositionRelative(ue)),this._parser.registerCsiHandler({final:"b"},ue=>this.repeatPrecedingCharacter(ue)),this._parser.registerCsiHandler({final:"c"},ue=>this.sendDeviceAttributesPrimary(ue)),this._parser.registerCsiHandler({prefix:">",final:"c"},ue=>this.sendDeviceAttributesSecondary(ue)),this._parser.registerCsiHandler({final:"d"},ue=>this.linePosAbsolute(ue)),this._parser.registerCsiHandler({final:"e"},ue=>this.vPositionRelative(ue)),this._parser.registerCsiHandler({final:"f"},ue=>this.hVPosition(ue)),this._parser.registerCsiHandler({final:"g"},ue=>this.tabClear(ue)),this._parser.registerCsiHandler({final:"h"},ue=>this.setMode(ue)),this._parser.registerCsiHandler({prefix:"?",final:"h"},ue=>this.setModePrivate(ue)),this._parser.registerCsiHandler({final:"l"},ue=>this.resetMode(ue)),this._parser.registerCsiHandler({prefix:"?",final:"l"},ue=>this.resetModePrivate(ue)),this._parser.registerCsiHandler({final:"m"},ue=>this.charAttributes(ue)),this._parser.registerCsiHandler({final:"n"},ue=>this.deviceStatus(ue)),this._parser.registerCsiHandler({prefix:"?",final:"n"},ue=>this.deviceStatusPrivate(ue)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},ue=>this.softReset(ue)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},ue=>this.setCursorStyle(ue)),this._parser.registerCsiHandler({final:"r"},ue=>this.setScrollRegion(ue)),this._parser.registerCsiHandler({final:"s"},ue=>this.saveCursor(ue)),this._parser.registerCsiHandler({final:"t"},ue=>this.windowOptions(ue)),this._parser.registerCsiHandler({final:"u"},ue=>this.restoreCursor(ue)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},ue=>this.insertColumns(ue)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},ue=>this.deleteColumns(ue)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},ue=>this.selectProtected(ue)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},ue=>this.requestMode(ue,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},ue=>this.requestMode(ue,!1)),this._parser.setExecuteHandler(D.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(D.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(D.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(D.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(D.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(D.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(D.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(D.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(D.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(D.C1.IND,()=>this.index()),this._parser.setExecuteHandler(D.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(D.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new U.OscHandler(ue=>(this.setTitle(ue),this.setIconName(ue),!0))),this._parser.registerOscHandler(1,new U.OscHandler(ue=>this.setIconName(ue))),this._parser.registerOscHandler(2,new U.OscHandler(ue=>this.setTitle(ue))),this._parser.registerOscHandler(4,new U.OscHandler(ue=>this.setOrReportIndexedColor(ue))),this._parser.registerOscHandler(8,new U.OscHandler(ue=>this.setHyperlink(ue))),this._parser.registerOscHandler(10,new U.OscHandler(ue=>this.setOrReportFgColor(ue))),this._parser.registerOscHandler(11,new U.OscHandler(ue=>this.setOrReportBgColor(ue))),this._parser.registerOscHandler(12,new U.OscHandler(ue=>this.setOrReportCursorColor(ue))),this._parser.registerOscHandler(104,new U.OscHandler(ue=>this.restoreIndexedColor(ue))),this._parser.registerOscHandler(110,new U.OscHandler(ue=>this.restoreFgColor(ue))),this._parser.registerOscHandler(111,new U.OscHandler(ue=>this.restoreBgColor(ue))),this._parser.registerOscHandler(112,new U.OscHandler(ue=>this.restoreCursorColor(ue))),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(const ue in I.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:ue},()=>this.selectCharset("("+ue)),this._parser.registerEscHandler({intermediates:")",final:ue},()=>this.selectCharset(")"+ue)),this._parser.registerEscHandler({intermediates:"*",final:ue},()=>this.selectCharset("*"+ue)),this._parser.registerEscHandler({intermediates:"+",final:ue},()=>this.selectCharset("+"+ue)),this._parser.registerEscHandler({intermediates:"-",final:ue},()=>this.selectCharset("-"+ue)),this._parser.registerEscHandler({intermediates:".",final:ue},()=>this.selectCharset("."+ue)),this._parser.registerEscHandler({intermediates:"/",final:ue},()=>this.selectCharset("/"+ue));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(ue=>(this._logService.error("Parsing error: ",ue),ue)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new W.DcsHandler((ue,de)=>this.requestStatusString(ue,de)))}getAttrData(){return this._curAttrData}_preserveStack(Y,re,_e,ee){this._parseStack.paused=!0,this._parseStack.cursorStartX=Y,this._parseStack.cursorStartY=re,this._parseStack.decodedLength=_e,this._parseStack.position=ee}_logSlowResolvingAsync(Y){this._logService.logLevel<=R.LogLevelEnum.WARN&&Promise.race([Y,new Promise((re,_e)=>setTimeout(()=>_e("#SLOW_TIMEOUT"),5e3))]).catch(re=>{if("#SLOW_TIMEOUT"!==re)throw re;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(Y,re){let _e,ee=this._activeBuffer.x,he=this._activeBuffer.y,Me=0;const Oe=this._parseStack.paused;if(Oe){if(_e=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,re))return this._logSlowResolvingAsync(_e),_e;ee=this._parseStack.cursorStartX,he=this._parseStack.cursorStartY,this._parseStack.paused=!1,Y.length>F&&(Me=this._parseStack.position+F)}if(this._logService.logLevel<=R.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof Y?` "${Y}"`:` "${Array.prototype.map.call(Y,ye=>String.fromCharCode(ye)).join("")}"`),"string"==typeof Y?Y.split("").map(ye=>ye.charCodeAt(0)):Y),this._parseBuffer.lengthF)for(let ye=Me;ye0&&2===be.getWidth(this._activeBuffer.x-1)&&be.setCellFromCodePoint(this._activeBuffer.x-1,0,1,de.fg,de.bg,de.extended);for(let ke=re;ke<_e;++ke){if(ee=Y[ke],he=this._unicodeService.wcwidth(ee),ee<127&&Me){const Ue=Me[String.fromCharCode(ee)];Ue&&(ee=Ue.charCodeAt(0))}if(Oe&&this._onA11yChar.fire((0,y.stringFromCodePoint)(ee)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),he||!this._activeBuffer.x){if(this._activeBuffer.x+he-1>=ye)if(Ne){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),be=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=ye-1,2===he)continue;if(ue&&(be.insertCells(this._activeBuffer.x,he,this._activeBuffer.getNullCell(de),de),2===be.getWidth(ye-1)&&be.setCellFromCodePoint(ye-1,u.NULL_CELL_CODE,u.NULL_CELL_WIDTH,de.fg,de.bg,de.extended)),be.setCellFromCodePoint(this._activeBuffer.x++,ee,he,de.fg,de.bg,de.extended),he>0)for(;--he;)be.setCellFromCodePoint(this._activeBuffer.x++,0,0,de.fg,de.bg,de.extended)}else be.getWidth(this._activeBuffer.x-1)?be.addCodepointToCell(this._activeBuffer.x-1,ee):be.addCodepointToCell(this._activeBuffer.x-2,ee)}_e-re>0&&(be.loadCell(this._activeBuffer.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),this._activeBuffer.x0&&0===be.getWidth(this._activeBuffer.x)&&!be.hasContent(this._activeBuffer.x)&&be.setCellFromCodePoint(this._activeBuffer.x,0,1,de.fg,de.bg,de.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(Y,re){return this._parser.registerCsiHandler(Y,"t"!==Y.final||Y.prefix||Y.intermediates?re:_e=>!Z(_e.params[0],this._optionsService.rawOptions.windowOptions)||re(_e))}registerDcsHandler(Y,re){return this._parser.registerDcsHandler(Y,new W.DcsHandler(re))}registerEscHandler(Y,re){return this._parser.registerEscHandler(Y,re)}registerOscHandler(Y,re){return this._parser.registerOscHandler(Y,new U.OscHandler(re))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var Y;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(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(Y=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===Y?void 0:Y.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const re=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);re.hasWidth(this._activeBuffer.x)&&!re.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const Y=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-Y),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(Y=this._bufferService.cols-1){this._activeBuffer.x=Math.min(Y,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(Y,re){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=Y,this._activeBuffer.y=this._activeBuffer.scrollTop+re):(this._activeBuffer.x=Y,this._activeBuffer.y=re),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(Y,re){this._restrictCursor(),this._setCursor(this._activeBuffer.x+Y,this._activeBuffer.y+re)}cursorUp(Y){const re=this._activeBuffer.y-this._activeBuffer.scrollTop;return this._moveCursor(0,re>=0?-Math.min(re,Y.params[0]||1):-(Y.params[0]||1)),!0}cursorDown(Y){const re=this._activeBuffer.scrollBottom-this._activeBuffer.y;return this._moveCursor(0,re>=0?Math.min(re,Y.params[0]||1):Y.params[0]||1),!0}cursorForward(Y){return this._moveCursor(Y.params[0]||1,0),!0}cursorBackward(Y){return this._moveCursor(-(Y.params[0]||1),0),!0}cursorNextLine(Y){return this.cursorDown(Y),this._activeBuffer.x=0,!0}cursorPrecedingLine(Y){return this.cursorUp(Y),this._activeBuffer.x=0,!0}cursorCharAbsolute(Y){return this._setCursor((Y.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(Y){return this._setCursor(Y.length>=2?(Y.params[1]||1)-1:0,(Y.params[0]||1)-1),!0}charPosAbsolute(Y){return this._setCursor((Y.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(Y){return this._moveCursor(Y.params[0]||1,0),!0}linePosAbsolute(Y){return this._setCursor(this._activeBuffer.x,(Y.params[0]||1)-1),!0}vPositionRelative(Y){return this._moveCursor(0,Y.params[0]||1),!0}hVPosition(Y){return this.cursorPosition(Y),!0}tabClear(Y){const re=Y.params[0];return 0===re?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===re&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(Y){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let re=Y.params[0]||1;for(;re--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(Y){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let re=Y.params[0]||1;for(;re--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(Y){const re=Y.params[0];return 1===re&&(this._curAttrData.bg|=536870912),2!==re&&0!==re||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(Y,re,_e,ee=!1,he=!1){const Me=this._activeBuffer.lines.get(this._activeBuffer.ybase+Y);Me.replaceCells(re,_e,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),he),ee&&(Me.isWrapped=!1)}_resetBufferLine(Y,re=!1){const _e=this._activeBuffer.lines.get(this._activeBuffer.ybase+Y);_e.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),re),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+Y),_e.isWrapped=!1}eraseInDisplay(Y,re=!1){let _e;switch(this._restrictCursor(this._bufferService.cols),Y.params[0]){case 0:for(_e=this._activeBuffer.y,this._dirtyRowTracker.markDirty(_e),this._eraseInBufferLine(_e++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,re);_e=this._bufferService.cols&&(this._activeBuffer.lines.get(_e+1).isWrapped=!1);_e--;)this._resetBufferLine(_e,re);this._dirtyRowTracker.markDirty(0);break;case 2:for(_e=this._bufferService.rows,this._dirtyRowTracker.markDirty(_e-1);_e--;)this._resetBufferLine(_e,re);this._dirtyRowTracker.markDirty(0);break;case 3:const ee=this._activeBuffer.lines.length-this._bufferService.rows;ee>0&&(this._activeBuffer.lines.trimStart(ee),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-ee,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-ee,0),this._onScroll.fire(0))}return!0}eraseInLine(Y,re=!1){switch(this._restrictCursor(this._bufferService.cols),Y.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,re);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,re);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,re)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(Y){this._restrictCursor();let re=Y.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(Y){return Y.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(Y.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0}_is(Y){return 0===(this._optionsService.rawOptions.termName+"").indexOf(Y)}setMode(Y){for(let re=0;reJe?1:2,ke=Y.params[0];return Ue=ke,ft=re?2===ke?4:4===ke?be(Me.modes.insertMode):12===ke?3:20===ke?be(de.convertEol):0:1===ke?be(_e.applicationCursorKeys):3===ke?de.windowOptions.setWinLines?80===ye?2:132===ye?1:0:0:6===ke?be(_e.origin):7===ke?be(_e.wraparound):8===ke?3:9===ke?be("X10"===ee):12===ke?be(de.cursorBlink):25===ke?be(!Me.isCursorHidden):45===ke?be(_e.reverseWraparound):66===ke?be(_e.applicationKeypad):67===ke?4:1e3===ke?be("VT200"===ee):1002===ke?be("DRAG"===ee):1003===ke?be("ANY"===ee):1004===ke?be(_e.sendFocus):1005===ke?4:1006===ke?be("SGR"===he):1015===ke?4:1016===ke?be("SGR_PIXELS"===he):1048===ke?1:47===ke||1047===ke||1049===ke?be(Ne===ue):2004===ke?be(_e.bracketedPasteMode):0,Me.triggerDataEvent(`${D.C0.ESC}[${re?"":"?"}${Ue};${ft}$y`),!0;var Ue,ft}_updateAttrColor(Y,re,_e,ee,he){return 2===re?(Y|=50331648,Y&=-16777216,Y|=C.AttributeData.fromColorRGB([_e,ee,he])):5===re&&(Y&=-50331904,Y|=33554432|255&_e),Y}_extractColor(Y,re,_e){const ee=[0,0,-1,0,0,0];let he=0,Me=0;do{if(ee[Me+he]=Y.params[re+Me],Y.hasSubParams(re+Me)){const Oe=Y.getSubParams(re+Me);let ye=0;do{5===ee[1]&&(he=1),ee[Me+ye+1+he]=Oe[ye]}while(++ye=2||2===ee[1]&&Me+he>=5)break;ee[1]&&(he=1)}while(++Me+re5)&&(Y=1),re.extended.underlineStyle=Y,re.fg|=268435456,0===Y&&(re.fg&=-268435457),re.updateExtended()}_processSGR0(Y){Y.fg=l.DEFAULT_ATTR_DATA.fg,Y.bg=l.DEFAULT_ATTR_DATA.bg,Y.extended=Y.extended.clone(),Y.extended.underlineStyle=0,Y.extended.underlineColor&=-67108864,Y.updateExtended()}charAttributes(Y){if(1===Y.length&&0===Y.params[0])return this._processSGR0(this._curAttrData),!0;const re=Y.length;let _e;const ee=this._curAttrData;for(let he=0;he=30&&_e<=37?(ee.fg&=-50331904,ee.fg|=16777216|_e-30):_e>=40&&_e<=47?(ee.bg&=-50331904,ee.bg|=16777216|_e-40):_e>=90&&_e<=97?(ee.fg&=-50331904,ee.fg|=16777224|_e-90):_e>=100&&_e<=107?(ee.bg&=-50331904,ee.bg|=16777224|_e-100):0===_e?this._processSGR0(ee):1===_e?ee.fg|=134217728:3===_e?ee.bg|=67108864:4===_e?(ee.fg|=268435456,this._processUnderline(Y.hasSubParams(he)?Y.getSubParams(he)[0]:1,ee)):5===_e?ee.fg|=536870912:7===_e?ee.fg|=67108864:8===_e?ee.fg|=1073741824:9===_e?ee.fg|=2147483648:2===_e?ee.bg|=134217728:21===_e?this._processUnderline(2,ee):22===_e?(ee.fg&=-134217729,ee.bg&=-134217729):23===_e?ee.bg&=-67108865:24===_e?(ee.fg&=-268435457,this._processUnderline(0,ee)):25===_e?ee.fg&=-536870913:27===_e?ee.fg&=-67108865:28===_e?ee.fg&=-1073741825:29===_e?ee.fg&=2147483647:39===_e?(ee.fg&=-67108864,ee.fg|=16777215&l.DEFAULT_ATTR_DATA.fg):49===_e?(ee.bg&=-67108864,ee.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):38===_e||48===_e||58===_e?he+=this._extractColor(Y,he,ee):53===_e?ee.bg|=1073741824:55===_e?ee.bg&=-1073741825:59===_e?(ee.extended=ee.extended.clone(),ee.extended.underlineColor=-1,ee.updateExtended()):100===_e?(ee.fg&=-67108864,ee.fg|=16777215&l.DEFAULT_ATTR_DATA.fg,ee.bg&=-67108864,ee.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",_e);return!0}deviceStatus(Y){switch(Y.params[0]){case 5:this._coreService.triggerDataEvent(`${D.C0.ESC}[0n`);break;case 6:this._coreService.triggerDataEvent(`${D.C0.ESC}[${this._activeBuffer.y+1};${this._activeBuffer.x+1}R`)}return!0}deviceStatusPrivate(Y){return 6===Y.params[0]&&this._coreService.triggerDataEvent(`${D.C0.ESC}[?${this._activeBuffer.y+1};${this._activeBuffer.x+1}R`),!0}softReset(Y){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=l.DEFAULT_ATTR_DATA.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(Y){const re=Y.params[0]||1;switch(re){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=re%2==1,!0}setScrollRegion(Y){const re=Y.params[0]||1;let _e;return(Y.length<2||(_e=Y.params[1])>this._bufferService.rows||0===_e)&&(_e=this._bufferService.rows),_e>re&&(this._activeBuffer.scrollTop=re-1,this._activeBuffer.scrollBottom=_e-1,this._setCursor(0,0)),!0}windowOptions(Y){if(!Z(Y.params[0],this._optionsService.rawOptions.windowOptions))return!0;const re=Y.length>1?Y.params[1]:0;switch(Y.params[0]){case 14:2!==re&&this._onRequestWindowsOptionsReport.fire(Q.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(Q.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${D.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==re&&2!==re||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==re&&1!==re||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==re&&2!==re||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==re&&1!==re||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(Y){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(Y){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(Y){return this._windowTitle=Y,this._onTitleChange.fire(Y),!0}setIconName(Y){return this._iconName=Y,!0}setOrReportIndexedColor(Y){const re=[],_e=Y.split(";");for(;_e.length>1;){const ee=_e.shift(),he=_e.shift();if(/^\d+$/.exec(ee)){const Me=parseInt(ee);if(0<=Me&&Me<256)if("?"===he)re.push({type:0,index:Me});else{const Oe=(0,v.parseColor)(he);Oe&&re.push({type:1,index:Me,color:Oe})}}}return re.length&&this._onColor.fire(re),!0}setHyperlink(Y){const re=Y.split(";");return!(re.length<2)&&(re[1]?this._createHyperlink(re[0],re[1]):!re[0]&&this._finishHyperlink())}_createHyperlink(Y,re){this._getCurrentLinkId()&&this._finishHyperlink();const _e=Y.split(":");let ee;const he=_e.findIndex(Me=>Me.startsWith("id="));return-1!==he&&(ee=_e[he].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:ee,uri:re}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(Y,re){const _e=Y.split(";");for(let ee=0;ee<_e.length&&!(re>=this._specialColors.length);++ee,++re)if("?"===_e[ee])this._onColor.fire([{type:0,index:this._specialColors[re]}]);else{const he=(0,v.parseColor)(_e[ee]);he&&this._onColor.fire([{type:1,index:this._specialColors[re],color:he}])}return!0}setOrReportFgColor(Y){return this._setOrReportSpecialColor(Y,0)}setOrReportBgColor(Y){return this._setOrReportSpecialColor(Y,1)}setOrReportCursorColor(Y){return this._setOrReportSpecialColor(Y,2)}restoreIndexedColor(Y){if(!Y)return this._onColor.fire([{type:2}]),!0;const re=[],_e=Y.split(";");for(let ee=0;ee<_e.length;++ee)if(/^\d+$/.exec(_e[ee])){const he=parseInt(_e[ee]);0<=he&&he<256&&re.push({type:2,index:he})}return re.length&&this._onColor.fire(re),!0}restoreFgColor(Y){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(Y){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(Y){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,I.DEFAULT_CHARSET),!0}selectCharset(Y){return 2!==Y.length?(this.selectDefaultCharset(),!0):("/"===Y[0]||this._charsetService.setgCharset(w[Y[0]],I.CHARSETS[Y[1]]||I.DEFAULT_CHARSET),!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(){return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,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)):(this._activeBuffer.y--,this._restrictCursor()),!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(Y){return this._charsetService.setgLevel(Y),!0}screenAlignmentPattern(){const Y=new d.CellData;Y.content=4194304|"E".charCodeAt(0),Y.fg=this._curAttrData.fg,Y.bg=this._curAttrData.bg,this._setCursor(0,0);for(let re=0;re(this._coreService.triggerDataEvent(`${D.C0.ESC}${he}${D.C0.ESC}\\`),!0))('"q'===Y?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===Y?'P1$r61;1"p':"r"===Y?`P1$r${_e.scrollTop+1};${_e.scrollBottom+1}r`:"m"===Y?"P1$r0m":" q"===Y?`P1$r${{block:2,underline:4,bar:6}[ee.cursorStyle]-(ee.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(Y,re){this._dirtyRowTracker.markRangeDirty(Y,re)}};let Be=class{constructor(Ie){this._bufferService=Ie,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(Ie){Iethis.end&&(this.end=Ie)}markRangeDirty(Ie,Y){Ie>Y&&(ne=Ie,Ie=Y,Y=ne),Iethis.end&&(this.end=Y)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};Be=E([x(0,R.IBufferService)],Be)},844:(p,h)=>{function b(E){for(const x of E)x.dispose();E.length=0}Object.defineProperty(h,"__esModule",{value:!0}),h.getDisposeArrayDisposable=h.disposeArray=h.toDisposable=h.Disposable=void 0,h.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const E of this._disposables)E.dispose();this._disposables.length=0}register(E){return this._disposables.push(E),E}unregister(E){const x=this._disposables.indexOf(E);-1!==x&&this._disposables.splice(x,1)}},h.toDisposable=function(E){return{dispose:E}},h.disposeArray=b,h.getDisposeArrayDisposable=function(E){return{dispose:()=>b(E)}}},1505:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.FourKeyMap=h.TwoKeyMap=void 0;class b{constructor(){this._data={}}set(x,D,I){this._data[x]||(this._data[x]={}),this._data[x][D]=I}get(x,D){return this._data[x]?this._data[x][D]:void 0}clear(){this._data={}}}h.TwoKeyMap=b,h.FourKeyMap=class{constructor(){this._data=new b}set(E,x,D,I,P){this._data.get(E,x)||this._data.set(E,x,new b),this._data.get(E,x).set(D,I,P)}get(E,x,D,I){var P;return null===(P=this._data.get(E,x))||void 0===P?void 0:P.get(D,I)}clear(){this._data.clear()}}},6114:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.isChromeOS=h.isLinux=h.isWindows=h.isIphone=h.isIpad=h.isMac=h.getSafariVersion=h.isSafari=h.isLegacyEdge=h.isFirefox=h.isNode=void 0,h.isNode="undefined"==typeof navigator;const b=h.isNode?"node":navigator.userAgent,E=h.isNode?"node":navigator.platform;h.isFirefox=b.includes("Firefox"),h.isLegacyEdge=b.includes("Edge"),h.isSafari=/^((?!chrome|android).)*safari/i.test(b),h.getSafariVersion=function(){if(!h.isSafari)return 0;const x=b.match(/Version\/(\d+)/);return null===x||x.length<2?0:parseInt(x[1])},h.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(E),h.isIpad="iPad"===E,h.isIphone="iPhone"===E,h.isWindows=["Windows","Win16","Win32","WinCE"].includes(E),h.isLinux=E.indexOf("Linux")>=0,h.isChromeOS=/\bCrOS\b/.test(b)},6106:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.SortedList=void 0;let b=0;h.SortedList=class{constructor(E){this._getKey=E,this._array=[]}clear(){this._array.length=0}insert(E){0!==this._array.length?(b=this._search(this._getKey(E),0,this._array.length-1),this._array.splice(b,0,E)):this._array.push(E)}delete(E){if(0===this._array.length)return!1;const x=this._getKey(E);if(void 0===x||(b=this._search(x,0,this._array.length-1),-1===b)||this._getKey(this._array[b])!==x)return!1;do{if(this._array[b]===E)return this._array.splice(b,1),!0}while(++b=this._array.length)&&this._getKey(this._array[b])===E))do{yield this._array[b]}while(++b=this._array.length)&&this._getKey(this._array[b])===E))do{x(this._array[b])}while(++bE)return this._search(E,x,I-1);if(P0&&this._getKey(this._array[I-1])===E;)I--;return I}}},7226:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DebouncedIdleTask=h.IdleTaskQueue=h.PriorityTaskQueue=void 0;const E=b(6114);class x{constructor(){this._tasks=[],this._i=0}enqueue(P){this._tasks.push(P),this._start()}flush(){for(;this._if)return l-T<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(l-T))}ms`),void this._start();l=f}this.clear()}}class D extends x{_requestCallback(P){return setTimeout(()=>P(this._createDeadline(16)))}_cancelCallback(P){clearTimeout(P)}_createDeadline(P){const T=Date.now()+P;return{timeRemaining:()=>Math.max(0,T-Date.now())}}}h.PriorityTaskQueue=D,h.IdleTaskQueue=!E.isNode&&"requestIdleCallback"in window?class extends x{_requestCallback(I){return requestIdleCallback(I)}_cancelCallback(I){cancelIdleCallback(I)}}:D,h.DebouncedIdleTask=class{constructor(){this._queue=new h.IdleTaskQueue}set(I){this._queue.clear(),this._queue.enqueue(I)}flush(){this._queue.flush()}}},9282:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.updateWindowsModeWrappedState=void 0;const E=b(643);h.updateWindowsModeWrappedState=function(x){const D=x.buffer.lines.get(x.buffer.ybase+x.buffer.y-1),I=null==D?void 0:D.get(x.cols-1),P=x.buffer.lines.get(x.buffer.ybase+x.buffer.y);P&&I&&(P.isWrapped=I[E.CHAR_DATA_CODE_INDEX]!==E.NULL_CELL_CODE&&I[E.CHAR_DATA_CODE_INDEX]!==E.WHITESPACE_CELL_CODE)}},3734:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ExtendedAttrs=h.AttributeData=void 0;class b{constructor(){this.fg=0,this.bg=0,this.extended=new E}static toColorRGB(D){return[D>>>16&255,D>>>8&255,255&D]}static fromColorRGB(D){return(255&D[0])<<16|(255&D[1])<<8|255&D[2]}clone(){const D=new b;return D.fg=this.fg,D.bg=this.bg,D.extended=this.extended.clone(),D}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}h.AttributeData=b;class E{constructor(D=0,I=0){this._ext=0,this._urlId=0,this._ext=D,this._urlId=I}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(D){this._ext=D}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(D){this._ext&=-469762049,this._ext|=D<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(D){this._ext&=-67108864,this._ext|=67108863&D}get urlId(){return this._urlId}set urlId(D){this._urlId=D}clone(){return new E(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}h.ExtendedAttrs=E},9092:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Buffer=h.MAX_BUFFER_SIZE=void 0;const E=b(6349),x=b(8437),D=b(511),I=b(643),P=b(4634),T=b(4863),y=b(7116),l=b(3734),f=b(7226);h.MAX_BUFFER_SIZE=4294967295,h.Buffer=class{constructor(u,d,C){this._hasScrollback=u,this._optionsService=d,this._bufferService=C,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=x.DEFAULT_ATTR_DATA.clone(),this.savedCharset=y.DEFAULT_CHARSET,this.markers=[],this._nullCell=D.CellData.fromCharData([0,I.NULL_CELL_CHAR,I.NULL_CELL_WIDTH,I.NULL_CELL_CODE]),this._whitespaceCell=D.CellData.fromCharData([0,I.WHITESPACE_CELL_CHAR,I.WHITESPACE_CELL_WIDTH,I.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new f.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(u){return u?(this._nullCell.fg=u.fg,this._nullCell.bg=u.bg,this._nullCell.extended=u.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new l.ExtendedAttrs),this._nullCell}getWhitespaceCell(u){return u?(this._whitespaceCell.fg=u.fg,this._whitespaceCell.bg=u.bg,this._whitespaceCell.extended=u.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new l.ExtendedAttrs),this._whitespaceCell}getBlankLine(u,d){return new x.BufferLine(this._bufferService.cols,this.getNullCell(u),d)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const u=this.ybase+this.y-this.ydisp;return u>=0&&uh.MAX_BUFFER_SIZE?h.MAX_BUFFER_SIZE:d}fillViewportRows(u){if(0===this.lines.length){void 0===u&&(u=x.DEFAULT_ATTR_DATA);let d=this._rows;for(;d--;)this.lines.push(this.getBlankLine(u))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(u,d){const C=this.getNullCell(x.DEFAULT_ATTR_DATA);let R=0;const U=this._getCorrectBufferLength(d);if(U>this.lines.maxLength&&(this.lines.maxLength=U),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+W+1?(this.ybase--,W++,this.ydisp>0&&this.ydisp--):this.lines.push(new x.BufferLine(u,C)));else for(let v=this._rows;v>d;v--)this.lines.length>d+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(U0&&(this.lines.trimStart(v),this.ybase=Math.max(this.ybase-v,0),this.ydisp=Math.max(this.ydisp-v,0),this.savedY=Math.max(this.savedY-v,0)),this.lines.maxLength=U}this.x=Math.min(this.x,u-1),this.y=Math.min(this.y,d-1),W&&(this.y+=W),this.savedX=Math.min(this.savedX,u-1),this.scrollTop=0}if(this.scrollBottom=d-1,this._isReflowEnabled&&(this._reflow(u,d),this._cols>u))for(let W=0;W.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let u=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,u=!1);let d=0;for(;this._memoryCleanupPosition100)return!0;return u}get _isReflowEnabled(){const u=this._optionsService.rawOptions.windowsPty;return u&&u.buildNumber?this._hasScrollback&&"conpty"===u.backend&&u.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(u,d){this._cols!==u&&(u>this._cols?this._reflowLarger(u,d):this._reflowSmaller(u,d))}_reflowLarger(u,d){const C=(0,P.reflowLargerGetLinesToRemove)(this.lines,this._cols,u,this.ybase+this.y,this.getNullCell(x.DEFAULT_ATTR_DATA));if(C.length>0){const R=(0,P.reflowLargerCreateNewLayout)(this.lines,C);(0,P.reflowLargerApplyNewLayout)(this.lines,R.layout),this._reflowLargerAdjustViewport(u,d,R.countRemoved)}}_reflowLargerAdjustViewport(u,d,C){const R=this.getNullCell(x.DEFAULT_ATTR_DATA);let U=C;for(;U-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;W--){let v=this.lines.get(W);if(!v||!v.isWrapped&&v.getTrimmedLength()<=u)continue;const w=[v];for(;v.isWrapped&&W>0;)v=this.lines.get(--W),w.unshift(v);const F=this.ybase+this.y;if(F>=W&&F0&&(R.push({start:W+w.length+U,newLines:Be}),U+=Be.length),w.push(...Be);let Ie=Q.length-1,Y=Q[Ie];0===Y&&(Ie--,Y=Q[Ie]);let re=w.length-ne-1,_e=Z;for(;re>=0;){const he=Math.min(_e,Y);if(void 0===w[Ie])break;if(w[Ie].copyCellsFrom(w[re],_e-he,Y-he,he,!0),Y-=he,0===Y&&(Ie--,Y=Q[Ie]),_e-=he,0===_e){re--;const Me=Math.max(re,0);_e=(0,P.getWrappedLineTrimmedLength)(w,Me,this._cols)}}for(let he=0;he0;)0===this.ybase?this.y0){const W=[],v=[];for(let Ie=0;Ie=0;Ie--)if(Q&&Q.start>F+ne){for(let Y=Q.newLines.length-1;Y>=0;Y--)this.lines.set(Ie--,Q.newLines[Y]);Ie++,W.push({index:F+1,amount:Q.newLines.length}),ne+=Q.newLines.length,Q=R[++Z]}else this.lines.set(Ie,v[F--]);let we=0;for(let Ie=W.length-1;Ie>=0;Ie--)W[Ie].index+=we,this.lines.onInsertEmitter.fire(W[Ie]),we+=W[Ie].amount;const Be=Math.max(0,w+U-this.lines.maxLength);Be>0&&this.lines.onTrimEmitter.fire(Be)}}translateBufferLineToString(u,d,C=0,R){const U=this.lines.get(u);return U?U.translateToString(d,C,R):""}getWrappedRangeForLine(u){let d=u,C=u;for(;d>0&&this.lines.get(d).isWrapped;)d--;for(;C+10;);return u>=this._cols?this._cols-1:u<0?0:u}nextStop(u){for(null==u&&(u=this.x);!this.tabs[++u]&&u=this._cols?this._cols-1:u<0?0:u}clearMarkers(u){this._isClearing=!0;for(let d=0;d{d.line-=C,d.line<0&&d.dispose()})),d.register(this.lines.onInsert(C=>{d.line>=C.index&&(d.line+=C.amount)})),d.register(this.lines.onDelete(C=>{d.line>=C.index&&d.lineC.index&&(d.line-=C.amount)})),d.register(d.onDispose(()=>this._removeMarker(d))),d}_removeMarker(u){this._isClearing||this.markers.splice(this.markers.indexOf(u),1)}}},8437:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferLine=h.DEFAULT_ATTR_DATA=void 0;const E=b(482),x=b(643),D=b(511),I=b(3734);h.DEFAULT_ATTR_DATA=Object.freeze(new I.AttributeData);let P=0;class T{constructor(l,f,u=!1){this.isWrapped=u,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*l);const d=f||D.CellData.fromCharData([0,x.NULL_CELL_CHAR,x.NULL_CELL_WIDTH,x.NULL_CELL_CODE]);for(let C=0;C>22,2097152&f?this._combined[l].charCodeAt(this._combined[l].length-1):u]}set(l,f){this._data[3*l+1]=f[x.CHAR_DATA_ATTR_INDEX],f[x.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[l]=f[1],this._data[3*l+0]=2097152|l|f[x.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*l+0]=f[x.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|f[x.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(l){return this._data[3*l+0]>>22}hasWidth(l){return 12582912&this._data[3*l+0]}getFg(l){return this._data[3*l+1]}getBg(l){return this._data[3*l+2]}hasContent(l){return 4194303&this._data[3*l+0]}getCodePoint(l){const f=this._data[3*l+0];return 2097152&f?this._combined[l].charCodeAt(this._combined[l].length-1):2097151&f}isCombined(l){return 2097152&this._data[3*l+0]}getString(l){const f=this._data[3*l+0];return 2097152&f?this._combined[l]:2097151&f?(0,E.stringFromCodePoint)(2097151&f):""}isProtected(l){return 536870912&this._data[3*l+2]}loadCell(l,f){return P=3*l,f.content=this._data[P+0],f.fg=this._data[P+1],f.bg=this._data[P+2],2097152&f.content&&(f.combinedData=this._combined[l]),268435456&f.bg&&(f.extended=this._extendedAttrs[l]),f}setCell(l,f){2097152&f.content&&(this._combined[l]=f.combinedData),268435456&f.bg&&(this._extendedAttrs[l]=f.extended),this._data[3*l+0]=f.content,this._data[3*l+1]=f.fg,this._data[3*l+2]=f.bg}setCellFromCodePoint(l,f,u,d,C,R){268435456&C&&(this._extendedAttrs[l]=R),this._data[3*l+0]=f|u<<22,this._data[3*l+1]=d,this._data[3*l+2]=C}addCodepointToCell(l,f){let u=this._data[3*l+0];2097152&u?this._combined[l]+=(0,E.stringFromCodePoint)(f):(2097151&u?(this._combined[l]=(0,E.stringFromCodePoint)(2097151&u)+(0,E.stringFromCodePoint)(f),u&=-2097152,u|=2097152):u=4194304|f,this._data[3*l+0]=u)}insertCells(l,f,u,d){if((l%=this.length)&&2===this.getWidth(l-1)&&this.setCellFromCodePoint(l-1,0,1,(null==d?void 0:d.fg)||0,(null==d?void 0:d.bg)||0,(null==d?void 0:d.extended)||new I.ExtendedAttrs),f=0;--R)this.setCell(l+f+R,this.loadCell(l+R,C));for(let R=0;Rthis.length){if(this._data.buffer.byteLength>=4*u)this._data=new Uint32Array(this._data.buffer,0,u);else{const d=new Uint32Array(u);d.set(this._data),this._data=d}for(let d=this.length;d=l&&delete this._combined[U]}const C=Object.keys(this._extendedAttrs);for(let R=0;R=l&&delete this._extendedAttrs[U]}}return this.length=l,4*u*2=0;--l)if(4194303&this._data[3*l+0])return l+(this._data[3*l+0]>>22);return 0}copyCellsFrom(l,f,u,d,C){const R=l._data;if(C)for(let W=d-1;W>=0;W--){for(let v=0;v<3;v++)this._data[3*(u+W)+v]=R[3*(f+W)+v];268435456&R[3*(f+W)+2]&&(this._extendedAttrs[u+W]=l._extendedAttrs[f+W])}else for(let W=0;W=f&&(this._combined[v-f+u]=l._combined[v])}}translateToString(l=!1,f=0,u=this.length){l&&(u=Math.min(u,this.getTrimmedLength()));let d="";for(;f>22||1}return d}}h.BufferLine=T},4841:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.getRangeLength=void 0,h.getRangeLength=function(b,E){if(b.start.y>b.end.y)throw new Error(`Buffer range end (${b.end.x}, ${b.end.y}) cannot be before start (${b.start.x}, ${b.start.y})`);return E*(b.end.y-b.start.y)+(b.end.x-b.start.x+1)}},4634:(p,h)=>{function b(E,x,D){if(x===E.length-1)return E[x].getTrimmedLength();const I=!E[x].hasContent(D-1)&&1===E[x].getWidth(D-1),P=2===E[x+1].getWidth(0);return I&&P?D-1:D}Object.defineProperty(h,"__esModule",{value:!0}),h.getWrappedLineTrimmedLength=h.reflowSmallerGetNewLineLengths=h.reflowLargerApplyNewLayout=h.reflowLargerCreateNewLayout=h.reflowLargerGetLinesToRemove=void 0,h.reflowLargerGetLinesToRemove=function(E,x,D,I,P){const T=[];for(let y=0;y=y&&I0&&(v>d||0===u[v].getTrimmedLength());v--)W++;W>0&&(T.push(y+u.length-W),T.push(W)),y+=u.length-1}return T},h.reflowLargerCreateNewLayout=function(E,x){const D=[];let I=0,P=x[I],T=0;for(let y=0;yb(E,u,x)).reduce((f,u)=>f+u);let T=0,y=0,l=0;for(;lf&&(T-=f,y++);const u=2===E[y].getWidth(T-1);u&&T--;const d=u?D-1:D;I.push(d),l+=d}return I},h.getWrappedLineTrimmedLength=b},5295:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferSet=void 0;const E=b(9092),x=b(8460),D=b(844);h.BufferSet=class I extends D.Disposable{constructor(T,y){super(),this._optionsService=T,this._bufferService=y,this._onBufferActivate=this.register(new x.EventEmitter),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 E.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new E.Buffer(!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(T){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(T),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(T,y){this._normal.resize(T,y),this._alt.resize(T,y),this.setupTabStops(T)}setupTabStops(T){this._normal.setupTabStops(T),this._alt.setupTabStops(T)}}},511:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.CellData=void 0;const E=b(482),x=b(643),D=b(3734);class I extends D.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new D.ExtendedAttrs,this.combinedData=""}static fromCharData(T){const y=new I;return y.setFromCharData(T),y}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,E.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(T){this.fg=T[x.CHAR_DATA_ATTR_INDEX],this.bg=0;let y=!1;if(T[x.CHAR_DATA_CHAR_INDEX].length>2)y=!0;else if(2===T[x.CHAR_DATA_CHAR_INDEX].length){const l=T[x.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){const f=T[x.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=f&&f<=57343?this.content=1024*(l-55296)+f-56320+65536|T[x.CHAR_DATA_WIDTH_INDEX]<<22:y=!0}else y=!0}else this.content=T[x.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|T[x.CHAR_DATA_WIDTH_INDEX]<<22;y&&(this.combinedData=T[x.CHAR_DATA_CHAR_INDEX],this.content=2097152|T[x.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}h.CellData=I},643:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.WHITESPACE_CELL_CODE=h.WHITESPACE_CELL_WIDTH=h.WHITESPACE_CELL_CHAR=h.NULL_CELL_CODE=h.NULL_CELL_WIDTH=h.NULL_CELL_CHAR=h.CHAR_DATA_CODE_INDEX=h.CHAR_DATA_WIDTH_INDEX=h.CHAR_DATA_CHAR_INDEX=h.CHAR_DATA_ATTR_INDEX=h.DEFAULT_EXT=h.DEFAULT_ATTR=h.DEFAULT_COLOR=void 0,h.DEFAULT_COLOR=0,h.DEFAULT_ATTR=256|h.DEFAULT_COLOR<<9,h.DEFAULT_EXT=0,h.CHAR_DATA_ATTR_INDEX=0,h.CHAR_DATA_CHAR_INDEX=1,h.CHAR_DATA_WIDTH_INDEX=2,h.CHAR_DATA_CODE_INDEX=3,h.NULL_CELL_CHAR="",h.NULL_CELL_WIDTH=1,h.NULL_CELL_CODE=0,h.WHITESPACE_CELL_CHAR=" ",h.WHITESPACE_CELL_WIDTH=1,h.WHITESPACE_CELL_CODE=32},4863:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Marker=void 0;const E=b(8460),x=b(844);class D{constructor(P){this.line=P,this.isDisposed=!1,this._disposables=[],this._id=D._nextId++,this._onDispose=this.register(new E.EventEmitter),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,x.disposeArray)(this._disposables),this._disposables.length=0)}register(P){return this._disposables.push(P),P}}h.Marker=D,D._nextId=1},7116:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_CHARSET=h.CHARSETS=void 0,h.CHARSETS={},h.DEFAULT_CHARSET=h.CHARSETS.B,h.CHARSETS[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"},h.CHARSETS.A={"#":"\xa3"},h.CHARSETS.B=void 0,h.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},h.CHARSETS.C=h.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},h.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},h.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},h.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},h.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},h.CHARSETS.E=h.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},h.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},h.CHARSETS.H=h.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},h.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:(p,h)=>{var b,E,x;Object.defineProperty(h,"__esModule",{value:!0}),h.C1_ESCAPED=h.C1=h.C0=void 0,(x=b=h.C0||(h.C0={})).NUL="\0",x.SOH="\x01",x.STX="\x02",x.ETX="\x03",x.EOT="\x04",x.ENQ="\x05",x.ACK="\x06",x.BEL="\x07",x.BS="\b",x.HT="\t",x.LF="\n",x.VT="\v",x.FF="\f",x.CR="\r",x.SO="\x0e",x.SI="\x0f",x.DLE="\x10",x.DC1="\x11",x.DC2="\x12",x.DC3="\x13",x.DC4="\x14",x.NAK="\x15",x.SYN="\x16",x.ETB="\x17",x.CAN="\x18",x.EM="\x19",x.SUB="\x1a",x.ESC="\x1b",x.FS="\x1c",x.GS="\x1d",x.RS="\x1e",x.US="\x1f",x.SP=" ",x.DEL="\x7f",(E=h.C1||(h.C1={})).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",(h.C1_ESCAPED||(h.C1_ESCAPED={})).ST=`${b.ESC}\\`},7399:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.evaluateKeyboardEvent=void 0;const E=b(2584),x={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:["'",'"']};h.evaluateKeyboardEvent=function(D,I,P,T){const y={type:0,cancel:!1,key:void 0},l=(D.shiftKey?1:0)|(D.altKey?2:0)|(D.ctrlKey?4:0)|(D.metaKey?8:0);switch(D.keyCode){case 0:"UIKeyInputUpArrow"===D.key?y.key=I?E.C0.ESC+"OA":E.C0.ESC+"[A":"UIKeyInputLeftArrow"===D.key?y.key=I?E.C0.ESC+"OD":E.C0.ESC+"[D":"UIKeyInputRightArrow"===D.key?y.key=I?E.C0.ESC+"OC":E.C0.ESC+"[C":"UIKeyInputDownArrow"===D.key&&(y.key=I?E.C0.ESC+"OB":E.C0.ESC+"[B");break;case 8:if(D.altKey){y.key=E.C0.ESC+E.C0.DEL;break}y.key=E.C0.DEL;break;case 9:if(D.shiftKey){y.key=E.C0.ESC+"[Z";break}y.key=E.C0.HT,y.cancel=!0;break;case 13:y.key=D.altKey?E.C0.ESC+E.C0.CR:E.C0.CR,y.cancel=!0;break;case 27:y.key=E.C0.ESC,D.altKey&&(y.key=E.C0.ESC+E.C0.ESC),y.cancel=!0;break;case 37:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"D",y.key===E.C0.ESC+"[1;3D"&&(y.key=E.C0.ESC+(P?"b":"[1;5D"))):y.key=I?E.C0.ESC+"OD":E.C0.ESC+"[D";break;case 39:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"C",y.key===E.C0.ESC+"[1;3C"&&(y.key=E.C0.ESC+(P?"f":"[1;5C"))):y.key=I?E.C0.ESC+"OC":E.C0.ESC+"[C";break;case 38:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"A",P||y.key!==E.C0.ESC+"[1;3A"||(y.key=E.C0.ESC+"[1;5A")):y.key=I?E.C0.ESC+"OA":E.C0.ESC+"[A";break;case 40:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"B",P||y.key!==E.C0.ESC+"[1;3B"||(y.key=E.C0.ESC+"[1;5B")):y.key=I?E.C0.ESC+"OB":E.C0.ESC+"[B";break;case 45:D.shiftKey||D.ctrlKey||(y.key=E.C0.ESC+"[2~");break;case 46:y.key=l?E.C0.ESC+"[3;"+(l+1)+"~":E.C0.ESC+"[3~";break;case 36:y.key=l?E.C0.ESC+"[1;"+(l+1)+"H":I?E.C0.ESC+"OH":E.C0.ESC+"[H";break;case 35:y.key=l?E.C0.ESC+"[1;"+(l+1)+"F":I?E.C0.ESC+"OF":E.C0.ESC+"[F";break;case 33:D.shiftKey?y.type=2:y.key=D.ctrlKey?E.C0.ESC+"[5;"+(l+1)+"~":E.C0.ESC+"[5~";break;case 34:D.shiftKey?y.type=3:y.key=D.ctrlKey?E.C0.ESC+"[6;"+(l+1)+"~":E.C0.ESC+"[6~";break;case 112:y.key=l?E.C0.ESC+"[1;"+(l+1)+"P":E.C0.ESC+"OP";break;case 113:y.key=l?E.C0.ESC+"[1;"+(l+1)+"Q":E.C0.ESC+"OQ";break;case 114:y.key=l?E.C0.ESC+"[1;"+(l+1)+"R":E.C0.ESC+"OR";break;case 115:y.key=l?E.C0.ESC+"[1;"+(l+1)+"S":E.C0.ESC+"OS";break;case 116:y.key=l?E.C0.ESC+"[15;"+(l+1)+"~":E.C0.ESC+"[15~";break;case 117:y.key=l?E.C0.ESC+"[17;"+(l+1)+"~":E.C0.ESC+"[17~";break;case 118:y.key=l?E.C0.ESC+"[18;"+(l+1)+"~":E.C0.ESC+"[18~";break;case 119:y.key=l?E.C0.ESC+"[19;"+(l+1)+"~":E.C0.ESC+"[19~";break;case 120:y.key=l?E.C0.ESC+"[20;"+(l+1)+"~":E.C0.ESC+"[20~";break;case 121:y.key=l?E.C0.ESC+"[21;"+(l+1)+"~":E.C0.ESC+"[21~";break;case 122:y.key=l?E.C0.ESC+"[23;"+(l+1)+"~":E.C0.ESC+"[23~";break;case 123:y.key=l?E.C0.ESC+"[24;"+(l+1)+"~":E.C0.ESC+"[24~";break;default:if(!D.ctrlKey||D.shiftKey||D.altKey||D.metaKey)if(P&&!T||!D.altKey||D.metaKey)!P||D.altKey||D.ctrlKey||D.shiftKey||!D.metaKey?D.key&&!D.ctrlKey&&!D.altKey&&!D.metaKey&&D.keyCode>=48&&1===D.key.length?y.key=D.key:D.key&&D.ctrlKey&&("_"===D.key&&(y.key=E.C0.US),"@"===D.key&&(y.key=E.C0.NUL)):65===D.keyCode&&(y.type=1);else{const f=x[D.keyCode],u=null==f?void 0:f[D.shiftKey?1:0];if(u)y.key=E.C0.ESC+u;else if(D.keyCode>=65&&D.keyCode<=90){let C=String.fromCharCode(D.ctrlKey?D.keyCode-64:D.keyCode+32);D.shiftKey&&(C=C.toUpperCase()),y.key=E.C0.ESC+C}else if(32===D.keyCode)y.key=E.C0.ESC+(D.ctrlKey?E.C0.NUL:" ");else if("Dead"===D.key&&D.code.startsWith("Key")){let d=D.code.slice(3,4);D.shiftKey||(d=d.toLowerCase()),y.key=E.C0.ESC+d,y.cancel=!0}}else D.keyCode>=65&&D.keyCode<=90?y.key=String.fromCharCode(D.keyCode-64):32===D.keyCode?y.key=E.C0.NUL:D.keyCode>=51&&D.keyCode<=55?y.key=String.fromCharCode(D.keyCode-51+27):56===D.keyCode?y.key=E.C0.DEL:219===D.keyCode?y.key=E.C0.ESC:220===D.keyCode?y.key=E.C0.FS:221===D.keyCode&&(y.key=E.C0.GS)}return y}},482:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Utf8ToUtf32=h.StringToUtf32=h.utf32ToString=h.stringFromCodePoint=void 0,h.stringFromCodePoint=function(b){return b>65535?(b-=65536,String.fromCharCode(55296+(b>>10))+String.fromCharCode(b%1024+56320)):String.fromCharCode(b)},h.utf32ToString=function(b,E=0,x=b.length){let D="";for(let I=E;I65535?(P-=65536,D+=String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):D+=String.fromCharCode(P)}return D},h.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(b,E){const x=b.length;if(!x)return 0;let D=0,I=0;if(this._interim){const P=b.charCodeAt(I++);56320<=P&&P<=57343?E[D++]=1024*(this._interim-55296)+P-56320+65536:(E[D++]=this._interim,E[D++]=P),this._interim=0}for(let P=I;P=x)return this._interim=T,D;const y=b.charCodeAt(P);56320<=y&&y<=57343?E[D++]=1024*(T-55296)+y-56320+65536:(E[D++]=T,E[D++]=y)}else 65279!==T&&(E[D++]=T)}return D}},h.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(b,E){const x=b.length;if(!x)return 0;let D,I,P,T,y=0,l=0,f=0;if(this.interim[0]){let C=!1,R=this.interim[0];R&=192==(224&R)?31:224==(240&R)?15:7;let U,W=0;for(;(U=63&this.interim[++W])&&W<4;)R<<=6,R|=U;const v=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,w=v-W;for(;f=x)return 0;if(U=b[f++],128!=(192&U)){f--,C=!0;break}this.interim[W++]=U,R<<=6,R|=63&U}C||(2===v?R<128?f--:E[y++]=R:3===v?R<2048||R>=55296&&R<=57343||65279===R||(E[y++]=R):R<65536||R>1114111||(E[y++]=R)),this.interim.fill(0)}const u=x-4;let d=f;for(;d=x)return this.interim[0]=D,y;if(I=b[d++],128!=(192&I)){d--;continue}if(l=(31&D)<<6|63&I,l<128){d--;continue}E[y++]=l}else if(224==(240&D)){if(d>=x)return this.interim[0]=D,y;if(I=b[d++],128!=(192&I)){d--;continue}if(d>=x)return this.interim[0]=D,this.interim[1]=I,y;if(P=b[d++],128!=(192&P)){d--;continue}if(l=(15&D)<<12|(63&I)<<6|63&P,l<2048||l>=55296&&l<=57343||65279===l)continue;E[y++]=l}else if(240==(248&D)){if(d>=x)return this.interim[0]=D,y;if(I=b[d++],128!=(192&I)){d--;continue}if(d>=x)return this.interim[0]=D,this.interim[1]=I,y;if(P=b[d++],128!=(192&P)){d--;continue}if(d>=x)return this.interim[0]=D,this.interim[1]=I,this.interim[2]=P,y;if(T=b[d++],128!=(192&T)){d--;continue}if(l=(7&D)<<18|(63&I)<<12|(63&P)<<6|63&T,l<65536||l>1114111)continue;E[y++]=l}}return y}}},225:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeV6=void 0;const b=[[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]],E=[[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]];let x;h.UnicodeV6=class{constructor(){if(this.version="6",!x){x=new Uint8Array(65536),x.fill(1),x[0]=0,x.fill(0,1,32),x.fill(0,127,160),x.fill(2,4352,4448),x[9001]=2,x[9002]=2,x.fill(2,11904,42192),x[12351]=1,x.fill(2,44032,55204),x.fill(2,63744,64256),x.fill(2,65040,65050),x.fill(2,65072,65136),x.fill(2,65280,65377),x.fill(2,65504,65511);for(let D=0;DP[l][1])return!1;for(;l>=y;)if(T=y+l>>1,I>P[T][1])y=T+1;else{if(!(I=131072&&D<=196605||D>=196608&&D<=262141?2:1}}},5981:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.WriteBuffer=void 0;const E=b(8460),x=b(844);h.WriteBuffer=class D extends x.Disposable{constructor(P){super(),this._action=P,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new E.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(P,T){if(void 0!==T&&this._syncCalls>T)return void(this._syncCalls=0);if(this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let y;for(this._isSyncWriting=!0;y=this._writeBuffer.shift();){this._action(y);const l=this._callbacks.shift();l&&l()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(P,T){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(T),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(T)}_innerWrite(P=0,T=!0){const y=P||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const l=this._writeBuffer[this._bufferOffset],f=this._action(l,T);if(f){const d=C=>Date.now()-y>=12?setTimeout(()=>this._innerWrite(0,C)):this._innerWrite(y,C);return void f.catch(C=>(queueMicrotask(()=>{throw C}),Promise.resolve(!1))).then(d)}const u=this._callbacks[this._bufferOffset];if(u&&u(),this._bufferOffset++,this._pendingData-=l.length,Date.now()-y>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(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()}}},5941:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.toRgbString=h.parseColor=void 0;const b=/^([\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})$/,E=/^[\da-f]+$/;function x(D,I){const P=D.toString(16),T=P.length<2?"0"+P:P;switch(I){case 4:return P[0];case 8:return T;case 12:return(T+T).slice(0,3);default:return T+T}}h.parseColor=function(D){if(!D)return;let I=D.toLowerCase();if(0===I.indexOf("rgb:")){I=I.slice(4);const P=b.exec(I);if(P){const T=P[1]?15:P[4]?255:P[7]?4095:65535;return[Math.round(parseInt(P[1]||P[4]||P[7]||P[10],16)/T*255),Math.round(parseInt(P[2]||P[5]||P[8]||P[11],16)/T*255),Math.round(parseInt(P[3]||P[6]||P[9]||P[12],16)/T*255)]}}else if(0===I.indexOf("#")&&(I=I.slice(1),E.exec(I)&&[3,6,9,12].includes(I.length))){const P=I.length/3,T=[0,0,0];for(let y=0;y<3;++y){const l=parseInt(I.slice(P*y,P*y+P),16);T[y]=1===P?l<<4:2===P?l:3===P?l>>4:l>>8}return T}},h.toRgbString=function(D,I=16){const[P,T,y]=D;return`rgb:${x(P,I)}/${x(T,I)}/${x(y,I)}`}},5770:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PAYLOAD_LIMIT=void 0,h.PAYLOAD_LIMIT=1e7},6351:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DcsHandler=h.DcsParser=void 0;const E=b(482),x=b(8742),D=b(5770),I=[];h.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=I,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=I}registerHandler(T,y){void 0===this._handlers[T]&&(this._handlers[T]=[]);const l=this._handlers[T];return l.push(y),{dispose:()=>{const f=l.indexOf(y);-1!==f&&l.splice(f,1)}}}clearHandler(T){this._handlers[T]&&delete this._handlers[T]}setHandlerFallback(T){this._handlerFb=T}reset(){if(this._active.length)for(let T=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;T>=0;--T)this._active[T].unhook(!1);this._stack.paused=!1,this._active=I,this._ident=0}hook(T,y){if(this.reset(),this._ident=T,this._active=this._handlers[T]||I,this._active.length)for(let l=this._active.length-1;l>=0;l--)this._active[l].hook(y);else this._handlerFb(this._ident,"HOOK",y)}put(T,y,l){if(this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].put(T,y,l);else this._handlerFb(this._ident,"PUT",(0,E.utf32ToString)(T,y,l))}unhook(T,y=!0){if(this._active.length){let l=!1,f=this._active.length-1,u=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,l=y,u=this._stack.fallThrough,this._stack.paused=!1),!u&&!1===l){for(;f>=0&&(l=this._active[f].unhook(T),!0!==l);f--)if(l instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,l;f--}for(;f>=0;f--)if(l=this._active[f].unhook(!1),l instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,l}else this._handlerFb(this._ident,"UNHOOK",T);this._active=I,this._ident=0}};const P=new x.Params;P.addParam(0),h.DcsHandler=class{constructor(T){this._handler=T,this._data="",this._params=P,this._hitLimit=!1}hook(T){this._params=T.length>1||T.params[0]?T.clone():P,this._data="",this._hitLimit=!1}put(T,y,l){this._hitLimit||(this._data+=(0,E.utf32ToString)(T,y,l),this._data.length>D.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(T){let y=!1;if(this._hitLimit)y=!1;else if(T&&(y=this._handler(this._data,this._params),y instanceof Promise))return y.then(l=>(this._params=P,this._data="",this._hitLimit=!1,l));return this._params=P,this._data="",this._hitLimit=!1,y}}},2015:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.EscapeSequenceParser=h.VT500_TRANSITION_TABLE=h.TransitionTable=void 0;const E=b(844),x=b(8742),D=b(6242),I=b(6351);class P{constructor(f){this.table=new Uint8Array(f)}setDefault(f,u){this.table.fill(f<<4|u)}add(f,u,d,C){this.table[u<<8|f]=d<<4|C}addMany(f,u,d,C){for(let R=0;Rv),u=(W,v)=>f.slice(W,v),d=u(32,127),C=u(0,24);C.push(25),C.push.apply(C,u(28,32));const R=u(0,14);let U;for(U in l.setDefault(1,0),l.addMany(d,0,2,0),R)l.addMany([24,26,153,154],U,3,0),l.addMany(u(128,144),U,3,0),l.addMany(u(144,152),U,3,0),l.add(156,U,0,0),l.add(27,U,11,1),l.add(157,U,4,8),l.addMany([152,158,159],U,0,7),l.add(155,U,11,3),l.add(144,U,11,9);return l.addMany(C,0,3,0),l.addMany(C,1,3,1),l.add(127,1,0,1),l.addMany(C,8,0,8),l.addMany(C,3,3,3),l.add(127,3,0,3),l.addMany(C,4,3,4),l.add(127,4,0,4),l.addMany(C,6,3,6),l.addMany(C,5,3,5),l.add(127,5,0,5),l.addMany(C,2,3,2),l.add(127,2,0,2),l.add(93,1,4,8),l.addMany(d,8,5,8),l.add(127,8,5,8),l.addMany([156,27,24,26,7],8,6,0),l.addMany(u(28,32),8,0,8),l.addMany([88,94,95],1,0,7),l.addMany(d,7,0,7),l.addMany(C,7,0,7),l.add(156,7,0,0),l.add(127,7,0,7),l.add(91,1,11,3),l.addMany(u(64,127),3,7,0),l.addMany(u(48,60),3,8,4),l.addMany([60,61,62,63],3,9,4),l.addMany(u(48,60),4,8,4),l.addMany(u(64,127),4,7,0),l.addMany([60,61,62,63],4,0,6),l.addMany(u(32,64),6,0,6),l.add(127,6,0,6),l.addMany(u(64,127),6,0,0),l.addMany(u(32,48),3,9,5),l.addMany(u(32,48),5,9,5),l.addMany(u(48,64),5,0,6),l.addMany(u(64,127),5,7,0),l.addMany(u(32,48),4,9,5),l.addMany(u(32,48),1,9,2),l.addMany(u(32,48),2,9,2),l.addMany(u(48,127),2,10,0),l.addMany(u(48,80),1,10,0),l.addMany(u(81,88),1,10,0),l.addMany([89,90,92],1,10,0),l.addMany(u(96,127),1,10,0),l.add(80,1,11,9),l.addMany(C,9,0,9),l.add(127,9,0,9),l.addMany(u(28,32),9,0,9),l.addMany(u(32,48),9,9,12),l.addMany(u(48,60),9,8,10),l.addMany([60,61,62,63],9,9,10),l.addMany(C,11,0,11),l.addMany(u(32,128),11,0,11),l.addMany(u(28,32),11,0,11),l.addMany(C,10,0,10),l.add(127,10,0,10),l.addMany(u(28,32),10,0,10),l.addMany(u(48,60),10,8,10),l.addMany([60,61,62,63],10,0,11),l.addMany(u(32,48),10,9,12),l.addMany(C,12,0,12),l.add(127,12,0,12),l.addMany(u(28,32),12,0,12),l.addMany(u(32,48),12,9,12),l.addMany(u(48,64),12,0,11),l.addMany(u(64,127),12,12,13),l.addMany(u(64,127),10,12,13),l.addMany(u(64,127),9,12,13),l.addMany(C,13,13,13),l.addMany(d,13,13,13),l.add(127,13,0,13),l.addMany([27,156,24,26],13,14,0),l.add(T,0,2,0),l.add(T,8,5,8),l.add(T,6,0,6),l.add(T,11,0,11),l.add(T,13,13,13),l}(),h.EscapeSequenceParser=class y extends E.Disposable{constructor(f=h.VT500_TRANSITION_TABLE){super(),this._transitions=f,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new x.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(u,d,C)=>{},this._executeHandlerFb=u=>{},this._csiHandlerFb=(u,d)=>{},this._escHandlerFb=u=>{},this._errorHandlerFb=u=>u,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,E.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new D.OscParser),this._dcsParser=this.register(new I.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(f,u=[64,126]){let d=0;if(f.prefix){if(f.prefix.length>1)throw new Error("only one byte as prefix supported");if(d=f.prefix.charCodeAt(0),d&&60>d||d>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(f.intermediates){if(f.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let R=0;RU||U>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");d<<=8,d|=U}}if(1!==f.final.length)throw new Error("final must be a single byte");const C=f.final.charCodeAt(0);if(u[0]>C||C>u[1])throw new Error(`final must be in range ${u[0]} .. ${u[1]}`);return d<<=8,d|=C,d}identToString(f){const u=[];for(;f;)u.push(String.fromCharCode(255&f)),f>>=8;return u.reverse().join("")}setPrintHandler(f){this._printHandler=f}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(f,u){const d=this._identifier(f,[48,126]);void 0===this._escHandlers[d]&&(this._escHandlers[d]=[]);const C=this._escHandlers[d];return C.push(u),{dispose:()=>{const R=C.indexOf(u);-1!==R&&C.splice(R,1)}}}clearEscHandler(f){this._escHandlers[this._identifier(f,[48,126])]&&delete this._escHandlers[this._identifier(f,[48,126])]}setEscHandlerFallback(f){this._escHandlerFb=f}setExecuteHandler(f,u){this._executeHandlers[f.charCodeAt(0)]=u}clearExecuteHandler(f){this._executeHandlers[f.charCodeAt(0)]&&delete this._executeHandlers[f.charCodeAt(0)]}setExecuteHandlerFallback(f){this._executeHandlerFb=f}registerCsiHandler(f,u){const d=this._identifier(f);void 0===this._csiHandlers[d]&&(this._csiHandlers[d]=[]);const C=this._csiHandlers[d];return C.push(u),{dispose:()=>{const R=C.indexOf(u);-1!==R&&C.splice(R,1)}}}clearCsiHandler(f){this._csiHandlers[this._identifier(f)]&&delete this._csiHandlers[this._identifier(f)]}setCsiHandlerFallback(f){this._csiHandlerFb=f}registerDcsHandler(f,u){return this._dcsParser.registerHandler(this._identifier(f),u)}clearDcsHandler(f){this._dcsParser.clearHandler(this._identifier(f))}setDcsHandlerFallback(f){this._dcsParser.setHandlerFallback(f)}registerOscHandler(f,u){return this._oscParser.registerHandler(f,u)}clearOscHandler(f){this._oscParser.clearHandler(f)}setOscHandlerFallback(f){this._oscParser.setHandlerFallback(f)}setErrorHandler(f){this._errorHandler=f}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.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(f,u,d,C,R){this._parseStack.state=f,this._parseStack.handlers=u,this._parseStack.handlerPos=d,this._parseStack.transition=C,this._parseStack.chunkPos=R}parse(f,u,d){let C,R=0,U=0,W=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,W=this._parseStack.chunkPos+1;else{if(void 0===d||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const v=this._parseStack.handlers;let w=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===d&&w>-1)for(;w>=0&&(C=v[w](this._params),!0!==C);w--)if(C instanceof Promise)return this._parseStack.handlerPos=w,C;this._parseStack.handlers=[];break;case 4:if(!1===d&&w>-1)for(;w>=0&&(C=v[w](),!0!==C);w--)if(C instanceof Promise)return this._parseStack.handlerPos=w,C;this._parseStack.handlers=[];break;case 6:if(R=f[this._parseStack.chunkPos],C=this._dcsParser.unhook(24!==R&&26!==R,d),C)return C;27===R&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(R=f[this._parseStack.chunkPos],C=this._oscParser.end(24!==R&&26!==R,d),C)return C;27===R&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,W=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let v=W;v>4){case 2:for(let ne=v+1;;++ne){if(ne>=u||(R=f[ne])<32||R>126&&R=u||(R=f[ne])<32||R>126&&R=u||(R=f[ne])<32||R>126&&R=u||(R=f[ne])<32||R>126&&R=0&&(C=w[F](this._params),!0!==C);F--)if(C instanceof Promise)return this._preserveStack(3,w,F,U,v),C;F<0&&this._csiHandlerFb(this._collect<<8|R,this._params),this.precedingCodepoint=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(++v47&&R<60);v--;break;case 9:this._collect<<=8,this._collect|=R;break;case 10:const Z=this._escHandlers[this._collect<<8|R];let Q=Z?Z.length-1:-1;for(;Q>=0&&(C=Z[Q](),!0!==C);Q--)if(C instanceof Promise)return this._preserveStack(4,Z,Q,U,v),C;Q<0&&this._escHandlerFb(this._collect<<8|R),this.precedingCodepoint=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 ne=v+1;;++ne)if(ne>=u||24===(R=f[ne])||26===R||27===R||R>127&&R=u||(R=f[ne])<32||R>127&&R{Object.defineProperty(h,"__esModule",{value:!0}),h.OscHandler=h.OscParser=void 0;const E=b(5770),x=b(482),D=[];h.OscParser=class{constructor(){this._state=0,this._active=D,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(I,P){void 0===this._handlers[I]&&(this._handlers[I]=[]);const T=this._handlers[I];return T.push(P),{dispose:()=>{const y=T.indexOf(P);-1!==y&&T.splice(y,1)}}}clearHandler(I){this._handlers[I]&&delete this._handlers[I]}setHandlerFallback(I){this._handlerFb=I}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=D}reset(){if(2===this._state)for(let I=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;I>=0;--I)this._active[I].end(!1);this._stack.paused=!1,this._active=D,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||D,this._active.length)for(let I=this._active.length-1;I>=0;I--)this._active[I].start();else this._handlerFb(this._id,"START")}_put(I,P,T){if(this._active.length)for(let y=this._active.length-1;y>=0;y--)this._active[y].put(I,P,T);else this._handlerFb(this._id,"PUT",(0,x.utf32ToString)(I,P,T))}start(){this.reset(),this._state=1}put(I,P,T){if(3!==this._state){if(1===this._state)for(;P0&&this._put(I,P,T)}}end(I,P=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let T=!1,y=this._active.length-1,l=!1;if(this._stack.paused&&(y=this._stack.loopPosition-1,T=P,l=this._stack.fallThrough,this._stack.paused=!1),!l&&!1===T){for(;y>=0&&(T=this._active[y].end(I),!0!==T);y--)if(T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!1,T;y--}for(;y>=0;y--)if(T=this._active[y].end(!1),T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!0,T}else this._handlerFb(this._id,"END",I);this._active=D,this._id=-1,this._state=0}}},h.OscHandler=class{constructor(I){this._handler=I,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(I,P,T){this._hitLimit||(this._data+=(0,x.utf32ToString)(I,P,T),this._data.length>E.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(I){let P=!1;if(this._hitLimit)P=!1;else if(I&&(P=this._handler(this._data),P instanceof Promise))return P.then(T=>(this._data="",this._hitLimit=!1,T));return this._data="",this._hitLimit=!1,P}}},8742:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Params=void 0;const b=2147483647;class E{constructor(D=32,I=32){if(this.maxLength=D,this.maxSubParamsLength=I,I>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(D),this.length=0,this._subParams=new Int32Array(I),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(D),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(D){const I=new E;if(!D.length)return I;for(let P=Array.isArray(D[0])?1:0;P>8,T=255&this._subParamsIdx[I];T-P>0&&D.push(Array.prototype.slice.call(this._subParams,P,T))}return D}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(D){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=D>b?b:D}}addSubParam(D){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=D>b?b:D,this._subParamsIdx[this.length-1]++}}hasSubParams(D){return(255&this._subParamsIdx[D])-(this._subParamsIdx[D]>>8)>0}getSubParams(D){const I=this._subParamsIdx[D]>>8,P=255&this._subParamsIdx[D];return P-I>0?this._subParams.subarray(I,P):null}getSubParamsAll(){const D={};for(let I=0;I>8,T=255&this._subParamsIdx[I];T-P>0&&(D[I]=this._subParams.slice(P,T))}return D}addDigit(D){let I;if(this._rejectDigits||!(I=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const P=this._digitIsSub?this._subParams:this.params,T=P[I-1];P[I-1]=~T?Math.min(10*T+D,b):D}}h.Params=E},5741:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.AddonManager=void 0,h.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let b=this._addons.length-1;b>=0;b--)this._addons[b].instance.dispose()}loadAddon(b,E){const x={instance:E,dispose:E.dispose,isDisposed:!1};this._addons.push(x),E.dispose=()=>this._wrappedAddonDispose(x),E.activate(b)}_wrappedAddonDispose(b){if(b.isDisposed)return;let E=-1;for(let x=0;x{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferApiView=void 0;const E=b(3785),x=b(511);h.BufferApiView=class{constructor(D,I){this._buffer=D,this.type=I}init(D){return this._buffer=D,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(D){const I=this._buffer.lines.get(D);if(I)return new E.BufferLineApiView(I)}getNullCell(){return new x.CellData}}},3785:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferLineApiView=void 0;const E=b(511);h.BufferLineApiView=class{constructor(x){this._line=x}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(x,D){if(!(x<0||x>=this._line.length))return D?(this._line.loadCell(x,D),D):this._line.loadCell(x,new E.CellData)}translateToString(x,D,I){return this._line.translateToString(x,D,I)}}},8285:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferNamespaceApi=void 0;const E=b(8771),x=b(8460);h.BufferNamespaceApi=class{constructor(D){this._core=D,this._onBufferChange=new x.EventEmitter,this.onBufferChange=this._onBufferChange.event,this._normal=new E.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new E.BufferApiView(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)}}},7975:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ParserApi=void 0,h.ParserApi=class{constructor(b){this._core=b}registerCsiHandler(b,E){return this._core.registerCsiHandler(b,x=>E(x.toArray()))}addCsiHandler(b,E){return this.registerCsiHandler(b,E)}registerDcsHandler(b,E){return this._core.registerDcsHandler(b,(x,D)=>E(x,D.toArray()))}addDcsHandler(b,E){return this.registerDcsHandler(b,E)}registerEscHandler(b,E){return this._core.registerEscHandler(b,E)}addEscHandler(b,E){return this.registerEscHandler(b,E)}registerOscHandler(b,E){return this._core.registerOscHandler(b,E)}addOscHandler(b,E){return this.registerOscHandler(b,E)}}},7090:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeApi=void 0,h.UnicodeApi=class{constructor(b){this._core=b}register(b){this._core.unicodeService.register(b)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(b){this._core.unicodeService.activeVersion=b}}},744:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},x=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.BufferService=h.MINIMUM_ROWS=h.MINIMUM_COLS=void 0;const D=b(2585),I=b(5295),P=b(8460),T=b(844);h.MINIMUM_COLS=2,h.MINIMUM_ROWS=1;let y=class extends T.Disposable{constructor(l){super(),this.isUserScrolling=!1,this._onResize=this.register(new P.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new P.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(l.rawOptions.cols||0,h.MINIMUM_COLS),this.rows=Math.max(l.rawOptions.rows||0,h.MINIMUM_ROWS),this.buffers=this.register(new I.BufferSet(l,this))}get buffer(){return this.buffers.active}resize(l,f){this.cols=l,this.rows=f,this.buffers.resize(l,f),this._onResize.fire({cols:l,rows:f})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(l,f=!1){const u=this.buffer;let d;d=this._cachedBlankLine,d&&d.length===this.cols&&d.getFg(0)===l.fg&&d.getBg(0)===l.bg||(d=u.getBlankLine(l,f),this._cachedBlankLine=d),d.isWrapped=f;const C=u.ybase+u.scrollTop,R=u.ybase+u.scrollBottom;if(0===u.scrollTop){const U=u.lines.isFull;R===u.lines.length-1?U?u.lines.recycle().copyFrom(d):u.lines.push(d.clone()):u.lines.splice(R+1,0,d.clone()),U?this.isUserScrolling&&(u.ydisp=Math.max(u.ydisp-1,0)):(u.ybase++,this.isUserScrolling||u.ydisp++)}else u.lines.shiftElements(C+1,R-C+1-1,-1),u.lines.set(R,d.clone());this.isUserScrolling||(u.ydisp=u.ybase),this._onScroll.fire(u.ydisp)}scrollLines(l,f,u){const d=this.buffer;if(l<0){if(0===d.ydisp)return;this.isUserScrolling=!0}else l+d.ydisp>=d.ybase&&(this.isUserScrolling=!1);const C=d.ydisp;d.ydisp=Math.max(Math.min(d.ydisp+l,d.ybase),0),C!==d.ydisp&&(f||this._onScroll.fire(d.ydisp))}scrollPages(l){this.scrollLines(l*(this.rows-1))}scrollToTop(){this.scrollLines(-this.buffer.ydisp)}scrollToBottom(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}scrollToLine(l){const f=l-this.buffer.ydisp;0!==f&&this.scrollLines(f)}};y=E([x(0,D.IOptionsService)],y),h.BufferService=y},7994:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.CharsetService=void 0,h.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(b){this.glevel=b,this.charset=this._charsets[b]}setgCharset(b,E){this._charsets[b]=E,this.glevel===b&&(this.charset=E)}}},1753:function(p,h,b){var E=this&&this.__decorate||function(d,C,R,U){var W,v=arguments.length,w=v<3?C:null===U?U=Object.getOwnPropertyDescriptor(C,R):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(d,C,R,U);else for(var F=d.length-1;F>=0;F--)(W=d[F])&&(w=(v<3?W(w):v>3?W(C,R,w):W(C,R))||w);return v>3&&w&&Object.defineProperty(C,R,w),w},x=this&&this.__param||function(d,C){return function(R,U){C(R,U,d)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CoreMouseService=void 0;const D=b(2585),I=b(8460),P=b(844),T={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:d=>4!==d.button&&1===d.action&&(d.ctrl=!1,d.alt=!1,d.shift=!1,!0)},VT200:{events:19,restrict:d=>32!==d.action},DRAG:{events:23,restrict:d=>32!==d.action||3!==d.button},ANY:{events:31,restrict:d=>!0}};function y(d,C){let R=(d.ctrl?16:0)|(d.shift?4:0)|(d.alt?8:0);return 4===d.button?(R|=64,R|=d.action):(R|=3&d.button,4&d.button&&(R|=64),8&d.button&&(R|=128),32===d.action?R|=32:0!==d.action||C||(R|=3)),R}const l=String.fromCharCode,f={DEFAULT:d=>{const C=[y(d,!1)+32,d.col+32,d.row+32];return C[0]>255||C[1]>255||C[2]>255?"":`\x1b[M${l(C[0])}${l(C[1])}${l(C[2])}`},SGR:d=>{const C=0===d.action&&4!==d.button?"m":"M";return`\x1b[<${y(d,!0)};${d.col};${d.row}${C}`},SGR_PIXELS:d=>{const C=0===d.action&&4!==d.button?"m":"M";return`\x1b[<${y(d,!0)};${d.x};${d.y}${C}`}};let u=class extends P.Disposable{constructor(d,C){super(),this._bufferService=d,this._coreService=C,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new I.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const R of Object.keys(T))this.addProtocol(R,T[R]);for(const R of Object.keys(f))this.addEncoding(R,f[R]);this.reset()}addProtocol(d,C){this._protocols[d]=C}addEncoding(d,C){this._encodings[d]=C}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(d){if(!this._protocols[d])throw new Error(`unknown protocol "${d}"`);this._activeProtocol=d,this._onProtocolChange.fire(this._protocols[d].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(d){if(!this._encodings[d])throw new Error(`unknown encoding "${d}"`);this._activeEncoding=d}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(d){if(d.col<0||d.col>=this._bufferService.cols||d.row<0||d.row>=this._bufferService.rows||4===d.button&&32===d.action||3===d.button&&32!==d.action||4!==d.button&&(2===d.action||3===d.action)||(d.col++,d.row++,32===d.action&&this._lastEvent&&this._equalEvents(this._lastEvent,d,"SGR_PIXELS"===this._activeEncoding))||!this._protocols[this._activeProtocol].restrict(d))return!1;const C=this._encodings[this._activeEncoding](d);return C&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(C):this._coreService.triggerDataEvent(C,!0)),this._lastEvent=d,!0}explainEvents(d){return{down:!!(1&d),up:!!(2&d),drag:!!(4&d),move:!!(8&d),wheel:!!(16&d)}}_equalEvents(d,C,R){if(R){if(d.x!==C.x||d.y!==C.y)return!1}else if(d.col!==C.col||d.row!==C.row)return!1;return d.button===C.button&&d.action===C.action&&d.ctrl===C.ctrl&&d.alt===C.alt&&d.shift===C.shift}};u=E([x(0,D.IBufferService),x(1,D.ICoreService)],u),h.CoreMouseService=u},6975:function(p,h,b){var E=this&&this.__decorate||function(u,d,C,R){var U,W=arguments.length,v=W<3?d:null===R?R=Object.getOwnPropertyDescriptor(d,C):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)v=Reflect.decorate(u,d,C,R);else for(var w=u.length-1;w>=0;w--)(U=u[w])&&(v=(W<3?U(v):W>3?U(d,C,v):U(d,C))||v);return W>3&&v&&Object.defineProperty(d,C,v),v},x=this&&this.__param||function(u,d){return function(C,R){d(C,R,u)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CoreService=void 0;const D=b(2585),I=b(8460),P=b(1439),T=b(844),y=Object.freeze({insertMode:!1}),l=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let f=class extends T.Disposable{constructor(u,d,C){super(),this._bufferService=u,this._logService=d,this._optionsService=C,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new I.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new I.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new I.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new I.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,P.clone)(y),this.decPrivateModes=(0,P.clone)(l)}reset(){this.modes=(0,P.clone)(y),this.decPrivateModes=(0,P.clone)(l)}triggerDataEvent(u,d=!1){if(this._optionsService.rawOptions.disableStdin)return;const C=this._bufferService.buffer;d&&this._optionsService.rawOptions.scrollOnUserInput&&C.ybase!==C.ydisp&&this._onRequestScrollToBottom.fire(),d&&this._onUserInput.fire(),this._logService.debug(`sending data "${u}"`,()=>u.split("").map(R=>R.charCodeAt(0))),this._onData.fire(u)}triggerBinaryEvent(u){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${u}"`,()=>u.split("").map(d=>d.charCodeAt(0))),this._onBinary.fire(u))}};f=E([x(0,D.IBufferService),x(1,D.ILogService),x(2,D.IOptionsService)],f),h.CoreService=f},9074:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DecorationService=void 0;const E=b(8055),x=b(8460),D=b(844),I=b(6106);let P=0,T=0;h.DecorationService=class y extends D.Disposable{constructor(){super(),this._decorations=new I.SortedList(u=>null==u?void 0:u.marker.line),this._onDecorationRegistered=this.register(new x.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new x.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,D.toDisposable)(()=>{for(const u of this._decorations.values())this._onDecorationRemoved.fire(u);this.reset()}))}get decorations(){return this._decorations.values()}registerDecoration(u){if(u.marker.isDisposed)return;const d=new l(u);if(d){const C=d.marker.onDispose(()=>d.dispose());d.onDispose(()=>{d&&(this._decorations.delete(d)&&this._onDecorationRemoved.fire(d),C.dispose())}),this._decorations.insert(d),this._onDecorationRegistered.fire(d)}return d}reset(){for(const u of this._decorations.values())u.dispose();this._decorations.clear()}*getDecorationsAtCell(u,d,C){var R,U,W;let v=0,w=0;for(const F of this._decorations.getKeyIterator(d))v=null!==(R=F.options.x)&&void 0!==R?R:0,w=v+(null!==(U=F.options.width)&&void 0!==U?U:1),u>=v&&u{var W,v,w;P=null!==(W=U.options.x)&&void 0!==W?W:0,T=P+(null!==(v=U.options.width)&&void 0!==v?v:1),u>=P&&u{Object.defineProperty(h,"__esModule",{value:!0}),h.InstantiationService=h.ServiceCollection=void 0;const E=b(2585),x=b(8343);class D{constructor(...P){this._entries=new Map;for(const[T,y]of P)this.set(T,y)}set(P,T){const y=this._entries.get(P);return this._entries.set(P,T),y}forEach(P){for(const[T,y]of this._entries.entries())P(T,y)}has(P){return this._entries.has(P)}get(P){return this._entries.get(P)}}h.ServiceCollection=D,h.InstantiationService=class{constructor(){this._services=new D,this._services.set(E.IInstantiationService,this)}setService(I,P){this._services.set(I,P)}getService(I){return this._services.get(I)}createInstance(I,...P){const T=(0,x.getServiceDependencies)(I).sort((f,u)=>f.index-u.index),y=[];for(const f of T){const u=this._services.get(f.id);if(!u)throw new Error(`[createInstance] ${I.name} depends on UNKNOWN service ${f.id}.`);y.push(u)}const l=T.length>0?T[0].index:P.length;if(P.length!==l)throw new Error(`[createInstance] First service dependency of ${I.name} at position ${l+1} conflicts with ${P.length} static arguments`);return new I(...P,...y)}}},7866:function(p,h,b){var E=this&&this.__decorate||function(y,l,f,u){var d,C=arguments.length,R=C<3?l:null===u?u=Object.getOwnPropertyDescriptor(l,f):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(y,l,f,u);else for(var U=y.length-1;U>=0;U--)(d=y[U])&&(R=(C<3?d(R):C>3?d(l,f,R):d(l,f))||R);return C>3&&R&&Object.defineProperty(l,f,R),R},x=this&&this.__param||function(y,l){return function(f,u){l(f,u,y)}};Object.defineProperty(h,"__esModule",{value:!0}),h.LogService=void 0;const D=b(844),I=b(2585),P={debug:I.LogLevelEnum.DEBUG,info:I.LogLevelEnum.INFO,warn:I.LogLevelEnum.WARN,error:I.LogLevelEnum.ERROR,off:I.LogLevelEnum.OFF};let T=class extends D.Disposable{constructor(y){super(),this._optionsService=y,this.logLevel=I.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel()))}_updateLogLevel(){this.logLevel=P[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(y){for(let l=0;l{Object.defineProperty(h,"__esModule",{value:!0}),h.OptionsService=h.DEFAULT_OPTIONS=void 0;const E=b(8460),x=b(6114),D=b(844);h.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:x.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const I=["normal","bold","100","200","300","400","500","600","700","800","900"];h.OptionsService=class P extends D.Disposable{constructor(y){super(),this._onOptionChange=this.register(new E.EventEmitter),this.onOptionChange=this._onOptionChange.event;const l=Object.assign({},h.DEFAULT_OPTIONS);for(const f in y)if(f in l)try{l[f]=this._sanitizeAndValidateOption(f,y[f])}catch(u){console.error(u)}this.rawOptions=l,this.options=Object.assign({},l),this._setupOptions()}onSpecificOptionChange(y,l){return this.onOptionChange(f=>{f===y&&l(this.rawOptions[y])})}onMultipleOptionChange(y,l){return this.onOptionChange(f=>{-1!==y.indexOf(f)&&l()})}_setupOptions(){const y=f=>{if(!(f in h.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);return this.rawOptions[f]},l=(f,u)=>{if(!(f in h.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);u=this._sanitizeAndValidateOption(f,u),this.rawOptions[f]!==u&&(this.rawOptions[f]=u,this._onOptionChange.fire(f))};for(const f in this.rawOptions){const u={get:y.bind(this,f),set:l.bind(this,f)};Object.defineProperty(this.options,f,u)}}_sanitizeAndValidateOption(y,l){switch(y){case"cursorStyle":if(l||(l=h.DEFAULT_OPTIONS[y]),"block"!==(f=l)&&"underline"!==f&&"bar"!==f)throw new Error(`"${l}" is not a valid value for ${y}`);break;case"wordSeparator":l||(l=h.DEFAULT_OPTIONS[y]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof l&&1<=l&&l<=1e3)break;l=I.includes(l)?l:h.DEFAULT_OPTIONS[y];break;case"cursorWidth":l=Math.floor(l);case"lineHeight":case"tabStopWidth":if(l<1)throw new Error(`${y} cannot be less than 1, value: ${l}`);break;case"minimumContrastRatio":l=Math.max(1,Math.min(21,Math.round(10*l)/10));break;case"scrollback":if((l=Math.min(l,4294967295))<0)throw new Error(`${y} cannot be less than 0, value: ${l}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(l<=0)throw new Error(`${y} cannot be less than or equal to 0, value: ${l}`);case"rows":case"cols":if(!l&&0!==l)throw new Error(`${y} must be numeric, value: ${l}`)}var f;return l}}},2660:function(p,h,b){var E=this&&this.__decorate||function(P,T,y,l){var f,u=arguments.length,d=u<3?T:null===l?l=Object.getOwnPropertyDescriptor(T,y):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(P,T,y,l);else for(var C=P.length-1;C>=0;C--)(f=P[C])&&(d=(u<3?f(d):u>3?f(T,y,d):f(T,y))||d);return u>3&&d&&Object.defineProperty(T,y,d),d},x=this&&this.__param||function(P,T){return function(y,l){T(y,l,P)}};Object.defineProperty(h,"__esModule",{value:!0}),h.OscLinkService=void 0;const D=b(2585);let I=class{constructor(P){this._bufferService=P,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(P){const T=this._bufferService.buffer;if(void 0===P.id){const C=T.addMarker(T.ybase+T.y),R={data:P,id:this._nextId++,lines:[C]};return C.onDispose(()=>this._removeMarkerFromLink(R,C)),this._dataByLinkId.set(R.id,R),R.id}const y=P,l=this._getEntryIdKey(y),f=this._entriesWithId.get(l);if(f)return this.addLineToLink(f.id,T.ybase+T.y),f.id;const u=T.addMarker(T.ybase+T.y),d={id:this._nextId++,key:this._getEntryIdKey(y),data:y,lines:[u]};return u.onDispose(()=>this._removeMarkerFromLink(d,u)),this._entriesWithId.set(d.key,d),this._dataByLinkId.set(d.id,d),d.id}addLineToLink(P,T){const y=this._dataByLinkId.get(P);if(y&&y.lines.every(l=>l.line!==T)){const l=this._bufferService.buffer.addMarker(T);y.lines.push(l),l.onDispose(()=>this._removeMarkerFromLink(y,l))}}getLinkData(P){var T;return null===(T=this._dataByLinkId.get(P))||void 0===T?void 0:T.data}_getEntryIdKey(P){return`${P.id};;${P.uri}`}_removeMarkerFromLink(P,T){const y=P.lines.indexOf(T);-1!==y&&(P.lines.splice(y,1),0===P.lines.length&&(void 0!==P.data.id&&this._entriesWithId.delete(P.key),this._dataByLinkId.delete(P.id)))}};I=E([x(0,D.IBufferService)],I),h.OscLinkService=I},8343:(p,h)=>{function b(E,x,D){x.di$target===x?x.di$dependencies.push({id:E,index:D}):(x.di$dependencies=[{id:E,index:D}],x.di$target=x)}Object.defineProperty(h,"__esModule",{value:!0}),h.createDecorator=h.getServiceDependencies=h.serviceRegistry=void 0,h.serviceRegistry=new Map,h.getServiceDependencies=function(E){return E.di$dependencies||[]},h.createDecorator=function(E){if(h.serviceRegistry.has(E))return h.serviceRegistry.get(E);const x=function(D,I,P){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");b(x,D,P)};return x.toString=()=>E,h.serviceRegistry.set(E,x),x}},2585:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.IDecorationService=h.IUnicodeService=h.IOscLinkService=h.IOptionsService=h.ILogService=h.LogLevelEnum=h.IInstantiationService=h.ICharsetService=h.ICoreService=h.ICoreMouseService=h.IBufferService=void 0;const E=b(8343);var x;h.IBufferService=(0,E.createDecorator)("BufferService"),h.ICoreMouseService=(0,E.createDecorator)("CoreMouseService"),h.ICoreService=(0,E.createDecorator)("CoreService"),h.ICharsetService=(0,E.createDecorator)("CharsetService"),h.IInstantiationService=(0,E.createDecorator)("InstantiationService"),(x=h.LogLevelEnum||(h.LogLevelEnum={}))[x.DEBUG=0]="DEBUG",x[x.INFO=1]="INFO",x[x.WARN=2]="WARN",x[x.ERROR=3]="ERROR",x[x.OFF=4]="OFF",h.ILogService=(0,E.createDecorator)("LogService"),h.IOptionsService=(0,E.createDecorator)("OptionsService"),h.IOscLinkService=(0,E.createDecorator)("OscLinkService"),h.IUnicodeService=(0,E.createDecorator)("UnicodeService"),h.IDecorationService=(0,E.createDecorator)("DecorationService")},1480:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeService=void 0;const E=b(8460),x=b(225);h.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new E.EventEmitter,this.onChange=this._onChange.event;const D=new x.UnicodeV6;this.register(D),this._active=D.version,this._activeProvider=D}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(D){if(!this._providers[D])throw new Error(`unknown Unicode version "${D}"`);this._active=D,this._activeProvider=this._providers[D],this._onChange.fire(D)}register(D){this._providers[D.version]=D}wcwidth(D){return this._activeProvider.wcwidth(D)}getStringCellWidth(D){let I=0;const P=D.length;for(let T=0;T=P)return I+this.wcwidth(y);const l=D.charCodeAt(T);56320<=l&&l<=57343?y=1024*(y-55296)+l-56320+65536:I+=this.wcwidth(l)}I+=this.wcwidth(y)}return I}}}},$={};function _(p){var h=$[p];if(void 0!==h)return h.exports;var b=$[p]={exports:{}};return Fe[p].call(b.exports,b,b.exports,_),b.exports}var j={};return(()=>{var p=j;Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;const h=_(3236),b=_(9042),E=_(7975),x=_(7090),D=_(5741),I=_(8285),P=["cols","rows"];p.Terminal=class{constructor(T){this._core=new h.Terminal(T),this._addonManager=new D.AddonManager,this._publicOptions=Object.assign({},this._core.options);const y=f=>this._core.options[f],l=(f,u)=>{this._checkReadonlyOptions(f),this._core.options[f]=u};for(const f in this._core.options){const u={get:y.bind(this,f),set:l.bind(this,f)};Object.defineProperty(this._publicOptions,f,u)}}_checkReadonlyOptions(T){if(P.includes(T))throw new Error(`Option "${T}" 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 E.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new x.UnicodeApi(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=new I.BufferNamespaceApi(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const T=this._core.coreService.decPrivateModes;let y="none";switch(this._core.coreMouseService.activeProtocol){case"X10":y="x10";break;case"VT200":y="vt200";break;case"DRAG":y="drag";break;case"ANY":y="any"}return{applicationCursorKeysMode:T.applicationCursorKeys,applicationKeypadMode:T.applicationKeypad,bracketedPasteMode:T.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:y,originMode:T.origin,reverseWraparoundMode:T.reverseWraparound,sendFocusMode:T.sendFocus,wraparoundMode:T.wraparound}}get options(){return this._publicOptions}set options(T){for(const y in T)this._publicOptions[y]=T[y]}blur(){this._core.blur()}focus(){this._core.focus()}resize(T,y){this._verifyIntegers(T,y),this._core.resize(T,y)}open(T){this._core.open(T)}attachCustomKeyEventHandler(T){this._core.attachCustomKeyEventHandler(T)}registerLinkProvider(T){return this._core.registerLinkProvider(T)}registerCharacterJoiner(T){return this._checkProposedApi(),this._core.registerCharacterJoiner(T)}deregisterCharacterJoiner(T){this._checkProposedApi(),this._core.deregisterCharacterJoiner(T)}registerMarker(T=0){return this._verifyIntegers(T),this._core.addMarker(T)}registerDecoration(T){var y,l,f;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(y=T.x)&&void 0!==y?y:0,null!==(l=T.width)&&void 0!==l?l:0,null!==(f=T.height)&&void 0!==f?f:0),this._core.registerDecoration(T)}hasSelection(){return this._core.hasSelection()}select(T,y,l){this._verifyIntegers(T,y,l),this._core.select(T,y,l)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(T,y){this._verifyIntegers(T,y),this._core.selectLines(T,y)}dispose(){this._addonManager.dispose(),this._core.dispose()}scrollLines(T){this._verifyIntegers(T),this._core.scrollLines(T)}scrollPages(T){this._verifyIntegers(T),this._core.scrollPages(T)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(T){this._verifyIntegers(T),this._core.scrollToLine(T)}clear(){this._core.clear()}write(T,y){this._core.write(T,y)}writeln(T,y){this._core.write(T),this._core.write("\r\n",y)}paste(T){this._core.paste(T)}refresh(T,y){this._verifyIntegers(T,y),this._core.refresh(T,y)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(T){return this._addonManager.loadAddon(this,T)}static get strings(){return b}_verifyIntegers(...T){for(const y of T)if(y===1/0||isNaN(y)||y%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...T){for(const y of T)if(y&&(y===1/0||isNaN(y)||y%1!=0||y<0))throw new Error("This API only accepts positive integers")}}})(),j})())()},617:(nt,Fe,$)=>{"use strict";$.d(Fe,{vd:()=>gn,Eo:()=>It,qZ:()=>pt});var _=$(5e3),j=$(4793),p=$(9162),h=$(7579),b=$(9808),E=$(6451),x=$(8306),D=$(4968),I=$(8505),P=$(3099),T=$(5577),y=$(5698),l=$(4004),f=$(4482),u=$(5403),C=$(9300),R=$(2722);const U="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function v(Re,$e,ie,Se){const Ce=$e.querySelectorAll(Re);if(Ce.length){const De=ie.querySelectorAll(Re);for(let Ge=0;Ge{Se[Ce]=(ie[Ce]||0)-($e[Ce]||0)}),Se}const Y="resize-active";let ee=(()=>{class Re{constructor(ie,Se,Ce,De){this.platformId=ie,this.renderer=Se,this.elm=Ce,this.zone=De,this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=we,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new _.vpe,this.resizing=new _.vpe,this.resizeEnd=new _.vpe,this.mouseup=new h.x,this.mousedown=new h.x,this.mousemove=new h.x,this.destroy$=new h.x,this.pointerEventListeners=he.getInstance(Se,De)}ngOnInit(){const ie=(0,E.T)(this.pointerEventListeners.pointerDown,this.mousedown),Se=(0,E.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,I.b)(({event:et})=>{if(De)try{et.preventDefault()}catch(rt){}}),(0,P.B)()),Ce=(0,E.T)(this.pointerEventListeners.pointerUp,this.mouseup);let De;const Ge=()=>{De&&De.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(De.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},Xe=()=>Object.assign(Object.assign({},we),this.resizeCursors);ie.pipe((0,T.z)(et=>{function rt(vt){return{clientX:vt.clientX-et.clientX,clientY:vt.clientY-et.clientY}}const Ft=()=>{const vt={x:1,y:1};return De&&(this.resizeSnapGrid.left&&De.edges.left?vt.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&De.edges.right&&(vt.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&De.edges.top?vt.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&De.edges.bottom&&(vt.y=+this.resizeSnapGrid.bottom)),vt};function Wt(vt,Zt){return{x:Math.ceil(vt.clientX/Zt.x),y:Math.ceil(vt.clientY/Zt.y)}}return(0,E.T)(Se.pipe((0,y.q)(1)).pipe((0,l.U)(vt=>[,vt])),Se.pipe(function d(){return(0,f.e)((Re,$e)=>{let ie,Se=!1;Re.subscribe((0,u.x)($e,Ce=>{const De=ie;ie=Ce,Se&&$e.next([De,Ce]),Se=!0}))})}())).pipe((0,l.U)(([vt,Zt])=>[vt&&rt(vt),rt(Zt)])).pipe((0,C.h)(([vt,Zt])=>{if(!vt)return!0;const bt=Ft(),Ze=Wt(vt,bt),ge=Wt(Zt,bt);return Ze.x!==ge.x||Ze.y!==ge.y})).pipe((0,l.U)(([,vt])=>{const Zt=Ft();return{clientX:Math.round(vt.clientX/Zt.x)*Zt.x,clientY:Math.round(vt.clientY/Zt.y)*Zt.y}})).pipe((0,R.R)((0,E.T)(Ce,ie)))})).pipe((0,C.h)(()=>!!De)).pipe((0,l.U)(({clientX:et,clientY:rt})=>Q(De.startingRect,De.edges,et,rt))).pipe((0,C.h)(et=>this.allowNegativeResizes||!!(et.height&&et.width&&et.height>0&&et.width>0))).pipe((0,C.h)(et=>!this.validateResize||this.validateResize({rectangle:et,edges:Ie({edges:De.edges,initialRectangle:De.startingRect,newRectangle:et})})),(0,R.R)(this.destroy$)).subscribe(et=>{De&&De.clonedNode&&(this.renderer.setStyle(De.clonedNode,"height",`${et.height}px`),this.renderer.setStyle(De.clonedNode,"width",`${et.width}px`),this.renderer.setStyle(De.clonedNode,"top",`${et.top}px`),this.renderer.setStyle(De.clonedNode,"left",`${et.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:Ie({edges:De.edges,initialRectangle:De.startingRect,newRectangle:et}),rectangle:et})}),De.currentRect=et}),ie.pipe((0,l.U)(({edges:et})=>et||{}),(0,C.h)(et=>Object.keys(et).length>0),(0,R.R)(this.destroy$)).subscribe(et=>{De&&Ge();const rt=function ne(Re,$e){let ie=0,Se=0;const Ce=Re.nativeElement.style,Ge=["transform","-ms-transform","-moz-transform","-o-transform"].map(Xe=>Ce[Xe]).find(Xe=>!!Xe);if(Ge&&Ge.includes("translate")&&(ie=Ge.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Se=Ge.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===$e)return{height:Re.nativeElement.offsetHeight,width:Re.nativeElement.offsetWidth,top:Re.nativeElement.offsetTop-Se,bottom:Re.nativeElement.offsetHeight+Re.nativeElement.offsetTop-Se,left:Re.nativeElement.offsetLeft-ie,right:Re.nativeElement.offsetWidth+Re.nativeElement.offsetLeft-ie};{const Xe=Re.nativeElement.getBoundingClientRect();return{height:Xe.height,width:Xe.width,top:Xe.top-Se,bottom:Xe.bottom-Se,left:Xe.left-ie,right:Xe.right-ie,scrollTop:Re.nativeElement.scrollTop,scrollLeft:Re.nativeElement.scrollLeft}}}(this.elm,this.ghostElementPositioning);De={edges:et,startingRect:rt,currentRect:rt};const Ft=Xe(),Wt=Be(De.edges,Ft);this.renderer.setStyle(document.body,"cursor",Wt),this.setElementClass(this.elm,Y,!0),this.enableGhostResize&&(De.clonedNode=function W(Re){const $e=Re.cloneNode(!0),ie=$e.querySelectorAll("[id]"),Se=Re.nodeName.toLowerCase();return $e.removeAttribute("id"),ie.forEach(Ce=>{Ce.removeAttribute("id")}),"canvas"===Se?Z(Re,$e):("input"===Se||"select"===Se||"textarea"===Se)&&F(Re,$e),v("canvas",Re,$e,Z),v("input, textarea, select",Re,$e,F),$e}(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(De.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(De.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(De.clonedNode,"left",`${De.startingRect.left}px`),this.renderer.setStyle(De.clonedNode,"top",`${De.startingRect.top}px`),this.renderer.setStyle(De.clonedNode,"height",`${De.startingRect.height}px`),this.renderer.setStyle(De.clonedNode,"width",`${De.startingRect.width}px`),this.renderer.setStyle(De.clonedNode,"cursor",Be(De.edges,Ft)),this.renderer.addClass(De.clonedNode,"resize-ghost-element"),De.clonedNode.scrollTop=De.startingRect.scrollTop,De.clonedNode.scrollLeft=De.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:Ie({edges:et,initialRectangle:rt,newRectangle:rt}),rectangle:Q(rt,{},0,0)})})}),Ce.pipe((0,R.R)(this.destroy$)).subscribe(()=>{De&&(this.renderer.removeClass(this.elm.nativeElement,Y),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:Ie({edges:De.edges,initialRectangle:De.startingRect,newRectangle:De.currentRect}),rectangle:De.currentRect})}),Ge(),De=null)})}ngOnDestroy(){(0,b.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(ie,Se,Ce){Ce?this.renderer.addClass(ie.nativeElement,Se):this.renderer.removeClass(ie.nativeElement,Se)}}return Re.\u0275fac=function(ie){return new(ie||Re)(_.Y36(_.Lbi),_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(_.R0b))},Re.\u0275dir=_.lG2({type:Re,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]}),Re})();class he{constructor($e,ie){this.pointerDown=new x.y(Se=>{let Ce,De;return ie.runOutsideAngular(()=>{Ce=$e.listen("document","mousedown",Ge=>{Se.next({clientX:Ge.clientX,clientY:Ge.clientY,event:Ge})}),U&&(De=$e.listen("document","touchstart",Ge=>{Se.next({clientX:Ge.touches[0].clientX,clientY:Ge.touches[0].clientY,event:Ge})}))}),()=>{Ce(),U&&De()}}).pipe((0,P.B)()),this.pointerMove=new x.y(Se=>{let Ce,De;return ie.runOutsideAngular(()=>{Ce=$e.listen("document","mousemove",Ge=>{Se.next({clientX:Ge.clientX,clientY:Ge.clientY,event:Ge})}),U&&(De=$e.listen("document","touchmove",Ge=>{Se.next({clientX:Ge.targetTouches[0].clientX,clientY:Ge.targetTouches[0].clientY,event:Ge})}))}),()=>{Ce(),U&&De()}}).pipe((0,P.B)()),this.pointerUp=new x.y(Se=>{let Ce,De,Ge;return ie.runOutsideAngular(()=>{Ce=$e.listen("document","mouseup",Xe=>{Se.next({clientX:Xe.clientX,clientY:Xe.clientY,event:Xe})}),U&&(De=$e.listen("document","touchend",Xe=>{Se.next({clientX:Xe.changedTouches[0].clientX,clientY:Xe.changedTouches[0].clientY,event:Xe})}),Ge=$e.listen("document","touchcancel",Xe=>{Se.next({clientX:Xe.changedTouches[0].clientX,clientY:Xe.changedTouches[0].clientY,event:Xe})}))}),()=>{Ce(),U&&(De(),Ge())}}).pipe((0,P.B)())}static getInstance($e,ie){return he.instance||(he.instance=new he($e,ie)),he.instance}}let Me=(()=>{class Re{constructor(ie,Se,Ce,De){this.renderer=ie,this.element=Se,this.zone=Ce,this.resizableDirective=De,this.resizeEdges={},this.eventListeners={},this.destroy$=new h.x}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(ie=>{this.onMousedown(ie,ie.clientX,ie.clientY)}),this.listenOnTheHost("mouseup").subscribe(ie=>{this.onMouseup(ie.clientX,ie.clientY)}),U&&(this.listenOnTheHost("touchstart").subscribe(ie=>{this.onMousedown(ie,ie.touches[0].clientX,ie.touches[0].clientY)}),(0,E.T)(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(ie=>{this.onMouseup(ie.changedTouches[0].clientX,ie.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(ie,Se,Ce){ie.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",De=>{this.onMousemove(De,De.targetTouches[0].clientX,De.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",De=>{this.onMousemove(De,De.clientX,De.clientY)})),this.resizable.mousedown.next({clientX:Se,clientY:Ce,edges:this.resizeEdges})}onMouseup(ie,Se){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:ie,clientY:Se,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(ie,Se,Ce){this.resizable.mousemove.next({clientX:Se,clientY:Ce,edges:this.resizeEdges,event:ie})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(ie=>{this.eventListeners[ie](),delete this.eventListeners[ie]})}listenOnTheHost(ie){return(0,D.R)(this.element.nativeElement,ie).pipe((0,R.R)(this.destroy$))}}return Re.\u0275fac=function(ie){return new(ie||Re)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(ee,8))},Re.\u0275dir=_.lG2({type:Re,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),Re})(),Oe=(()=>{class Re{}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=_.oAB({type:Re}),Re.\u0275inj=_.cJS({}),Re})();const ye=["terminal"],Ne=["resizeBox"],ue=function(Re){return{"handle-active":Re}},de=function(){return{top:!1}},be=function(){return{left:!1}},ke=function(){return{right:!0}},Ue=function(){return{right:!1}},ft=function(){return{bottom:!0}},Je=function(){return{bottom:!1}};let kt=(()=>{class Re{constructor(ie){this.hostRef=ie,this.handlerToCheckElementConnection=void 0,this.propertyChangeQueue=[],this.itemsToBeHandled=new h.x,this.handleImmediate=()=>{if(!this.handlerToCheckElementConnection){let Se=this.propertyChangeQueue.splice(0,1);1==Se.length&&this.itemsToBeHandled.next(Se[0])}}}get renderObservable(){return this.itemsToBeHandled}handleNextOne(ie=!1){!this.hostRef.nativeElement.isConnected||ie?this.pollAndHandle(this.hostRef.nativeElement.isConnected?"LAZY":"NOT_CONNECTED_ELEMENT"):this.handleImmediate()}pushAndHandle(ie,Se=!1){let Ce=Object.assign({},ie);this.propertyChangeQueue.push(Ce),this.handleNextOne(Se)}pollAndHandle(ie){(()=>{if(this.handlerToCheckElementConnection)return;const Ce=setInterval(()=>{this.hostRef.nativeElement.isConnected&&(clearInterval(Ce),this.handlerToCheckElementConnection=void 0,this.handleImmediate())},"NOT_CONNECTED_ELEMENT"===ie?500:30);this.handlerToCheckElementConnection=Ce})()}ngOnDestroy(){this.handlerToCheckElementConnection&&clearInterval(this.handlerToCheckElementConnection)}}return Re.\u0275fac=function(ie){return new(ie||Re)(_.LFG(_.SBq))},Re.\u0275prov=_.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),_t=(()=>{class Re{constructor(){}ngOnInit(){}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275cmp=_.Xpm({type:Re,selectors:[["global-style"]],decls:0,vars:0,template:function(ie,Se){},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n'],encapsulation:2}),Re})(),It=(()=>{class Re{constructor(ie,Se){this.renderer=ie,this.hostRef=Se,this.dataSubject=new h.x,this.keySubject=new h.x,this.keyInputSubjectSubscription=void 0,this.keyEventSubjectSubscription=void 0,this.allLogsSubjectSubscription=void 0,this.dataSourceSubscription=void 0,this.resizableObservers=[],this.dataSource=void 0,this.paddingSize=5,this.stylesForResizeBox={display:"block"},this.keyInputEmitter=new _.vpe,this.keyEventEmitter=new _.vpe,this.dataEmitter=this.keyInputEmitter,this.keyEmitter=this.keyEventEmitter,this._xtermOptions={},this.lastDraggedPosition=void 0,this._draggable=!1,this._stylesInput={},this.handleToCheckLazyContainer=void 0,this.linearRender=new kt(Se)}set _dataSource(ie){!ie||(null!=this.dataSourceSubscription&&this.dataSourceSubscription.unsubscribe(),this.dataSource=ie,this.dataSourceSubscription=this.dataSource.subscribe(Se=>this.write(Se)))}set draggable(ie){this._draggable=ie}get draggable(){return this._draggable}setMinWidth(ie){this._minWidthInput=ie}setMinHeight(ie){this._minHeightInput=ie}setDraggable(ie){this._draggable=ie,this.lastDraggedPosition=void 0}setXtermOptions(ie){this._xtermOptions=ie,this.linearRender.pushAndHandle({type:"none"})}setRows(ie){this._rowsInput!=ie&&(this._rowsInput=ie,this.linearRender.pushAndHandle({type:"rowChanged"}))}setCols(ie){this._colsInput!=ie&&(this._colsInput=ie,this.linearRender.pushAndHandle({type:"columnChanged"}))}setStyle(ie){var Se;JSON.stringify(null!==(Se=this._stylesInput)&&void 0!==Se?Se:{})!=JSON.stringify(null!=ie?ie:{})&&(this._stylesInput=ie,this.linearRender.pushAndHandle({type:"none"}))}setup(){this.xterm&&(this.xterm.onData(ie=>{this.dataSubject.next(ie)}),this.xterm.onKey(ie=>{this.keySubject.next(ie)})),this.keyInputSubjectSubscription=this.dataSubject.subscribe(ie=>{this.keyInputEmitter.emit(ie)}),this.keyEventSubjectSubscription=this.keySubject.subscribe(ie=>{this.keyEventEmitter.emit(ie)}),this.setupResizeObservers(),this.allLogsSubjectSubscription=this.linearRender.renderObservable.subscribe(ie=>{this.coordinateOuterAndTerminal(ie),this.linearRender.handleNextOne()}),this.linearRender.handleNextOne()}setOuterDimensions(ie,Se,Ce,De){this.linearRender.pushAndHandle({type:"dragged",dragged:{draggedWidth:`${Ce}px`,draggedHeight:`${De}px`}})}applyStylesToResizeBox(){Object.keys(this.stylesForResizeBox).map(ie=>({key:ie,value:this.stylesForResizeBox[ie]})).forEach(({key:ie,value:Se})=>{this.resizeBox&&(Se?this.renderer.setStyle(this.resizeBox.nativeElement,ie,Se):this.renderer.removeStyle(this.resizeBox.nativeElement,ie))}),this.stylesForResizeBox=this.stylesForResizeBox}ngOnInit(){}ngAfterViewInit(){this.fitAddon=new p.FitAddon,this.xterm=new j.Terminal({allowProposedApi:!0}),this.terminalOuter.nativeElement.isConnected?(this.xterm.open(this.terminalOuter.nativeElement),this.xterm.loadAddon(this.fitAddon),this.setup(),this.linearRender.pushAndHandle({type:"none"})):this.handleToCheckLazyContainer=setInterval(()=>{if(this.terminalOuter.nativeElement.isConnected)try{console.debug("The container's been connected."),this.xterm.open(this.terminalOuter.nativeElement),this.xterm.loadAddon(this.fitAddon),this.setup(),this.linearRender.pushAndHandle({type:"none"})}finally{this.handleToCheckLazyContainer&&clearInterval(this.handleToCheckLazyContainer)}},500)}ngOnChanges(ie){var Se,Ce,De,Ge;console.group("onChanges"),console.debug("prop: ",ie),console.groupEnd(),null!=ie&&ie._rowsInput&&(null===(Se=null==ie?void 0:ie._rowsInput)||void 0===Se?void 0:Se.previousValue)!=(null===(Ce=null==ie?void 0:ie._rowsInput)||void 0===Ce?void 0:Ce.currentValue)&&this.linearRender.pushAndHandle({type:"rowChanged"}),null!=ie&&ie._colsInput&&(null===(De=null==ie?void 0:ie._colsInput)||void 0===De?void 0:De.previousValue)!=(null===(Ge=null==ie?void 0:ie._colsInput)||void 0===Ge?void 0:Ge.currentValue)&&this.linearRender.pushAndHandle({type:"columnChanged"}),null!=ie&&ie.draggable&&this.linearRender.pushAndHandle({type:"none"})}coordinateOuterAndTerminal(ie){console.debug(`changeList: ${JSON.stringify(ie)}`),this.xterm&&(this.doUpdateXtermStyles(),this.doAdjustDimensionOfResizeBox(ie),this.doAdjustSizeOfXtermScreen(ie),this.doUpdateViewportAndResizeBoxWithPixcelUnit())}doUpdateXtermStyles(){var ie,Se;!this.xterm||(this.xterm.options=Object.assign({},this._xtermOptions),!(null===(ie=this._xtermOptions.theme)||void 0===ie)&&ie.background&&(this.resizeHandleStyleRule||(this.resizeHandleStyleRule=this.findCssStyleRule(".resize-handle[")),this.resizeHandleStyleRule&&(this.resizeHandleStyleRule.style.backgroundColor=this._xtermOptions.theme.background)),null!==(Se=this._xtermOptions.theme)&&void 0!==Se&&Se.border&&(this.resizeHandleActiveStyleRule||(this.resizeHandleActiveStyleRule=this.findCssStyleRule(".handle-active")),this.resizeHandleActiveStyleRule&&(this.resizeHandleActiveStyleRule.style.backgroundColor=this._xtermOptions.theme.border)))}doAdjustDimensionOfResizeBox(ie){var Se,Ce;if(this.stylesForResizeBox=Object.assign(Object.assign(Object.assign({},this.stylesForResizeBox),this._stylesInput),{width:this.stylesForResizeBox.width,height:this.stylesForResizeBox.height}),"dragged"===ie.type){const De=null!==(Se=this._minWidthInput)&&void 0!==Se?Se:24,Ge=null!==(Ce=this._minHeightInput)&&void 0!==Ce?Ce:24,Xe=parseInt(ie.dragged.draggedWidth)>De?ie.dragged.draggedWidth:`${De}px`,Lt=parseInt(ie.dragged.draggedHeight)>Ge?ie.dragged.draggedHeight:`${Ge}px`;this.stylesForResizeBox.width=Xe,this.stylesForResizeBox.height=Lt,this.lastDraggedPosition={width:Xe,height:Lt},this.applyStylesToResizeBox()}else!this._rowsInput&&!this._colsInput&&(!this.draggable||!this.lastDraggedPosition)&&(this.stylesForResizeBox.width="100%",this.stylesForResizeBox.height="100%",this.applyStylesToResizeBox())}doAdjustSizeOfXtermScreen(ie){var Se,Ce,De,Ge,Xe;!this.xterm||("rowChanged"==ie.type&&this._rowsInput||"columnChanged"==ie.type&&this._colsInput?this.xterm.resize(null!==(Se=this._colsInput)&&void 0!==Se?Se:this.xterm.cols,null!==(Ce=this._rowsInput)&&void 0!==Ce?Ce:this.xterm.rows):this.draggable||!this._colsInput&&!this._rowsInput?this.xterm.element&&(this.xterm.element.style.paddingLeft=`${this.scrollBarWidth}px`,this.printDimension("Before fitAddon.fit() of Xterm"),null===(Xe=this.fitAddon)||void 0===Xe||Xe.fit(),this.printDimension("After fitAddon.fit() of Xterm"),this.xterm.element.style.paddingLeft="0px"):this.xterm.resize(null!==(De=this._colsInput)&&void 0!==De?De:this.xterm.cols,null!==(Ge=this._rowsInput)&&void 0!==Ge?Ge:this.xterm.rows))}doUpdateViewportAndResizeBoxWithPixcelUnit(){var ie;if(null!==(ie=this.xterm)&&void 0!==ie&&ie.element){let Se=this.xterm.element.getElementsByClassName("xterm-screen")[0],Ce=this.xterm.element.getElementsByClassName("xterm-viewport")[0];const De=Se.clientWidth,Ge=Se.clientHeight,Lt=this.underlying._core.viewport.scrollBarWidth;this.renderer.setStyle(Ce,"width",`${De+Lt}px`);const et=De+Lt+2*this.paddingSize,Ft=parseInt(getComputedStyle(this.hostRef.nativeElement).width),Wt=et>Ft?Ft:et;this.stylesForResizeBox=Object.assign(Object.assign({},this.stylesForResizeBox),{width:`${Wt}px`,height:`${Ge+2*this.paddingSize}px`}),this.applyStylesToResizeBox(),this.printDimension("After update the dimensions for all boxes with pixel values")}}printDimension(ie){var Se;if((0,_.X6Q)()&&(null===(Se=this.xterm)||void 0===Se?void 0:Se.element)){let Ce=this.resizeBox.nativeElement,De=this.xterm.element.getElementsByClassName("xterm-screen")[0],Ge=this.xterm.element.getElementsByClassName("xterm-viewport")[0];const Xe=De.clientWidth,Lt=De.clientHeight;console.group(`${ie}`),console.debug(`width(resizeBox): ${getComputedStyle(Ce).width},\nwidth(viewport): ${getComputedStyle(Ge).width},\nwidth(screen): ${Xe}\nscrollBarWidth: ${this.scrollBarWidth}`),console.debug(`height(resizeBox): ${getComputedStyle(Ce).height},\nheight(viewport) ${getComputedStyle(Ge).height},\nheight(screen): ${Lt}`),console.groupEnd()}}setupResizeObservers(){this.resizableObservers=[];let ie=this.observeXtermViewportDimension(),Se=this.observeHostDimension();ie&&this.resizableObservers.push(ie),Se&&this.resizableObservers.push(Se)}observeXtermViewportDimension(){let ie=this.terminalOuter.nativeElement.querySelector(".xterm-viewport");if(ie){const Se=new ResizeObserver(Ce=>{var De,Ge;const Xe=null===(De=this.terminalOuter.nativeElement)||void 0===De?void 0:De.clientWidth,Lt=null===(Ge=this.terminalOuter.nativeElement)||void 0===Ge?void 0:Ge.clientHeight;for(let et of Ce)if(et.contentBoxSize.length>0){let rt=et.target.clientWidth,Ft=et.target.clientHeight;(Xe&&rt>Xe||Lt&&Ft>Lt)&&(console.debug("Changes on a xterm viewport element will be handled."),this.linearRender.pushAndHandle({type:"xtermViewportExceedingOuterDiv",xtermViewportExceedingOuterDiv:{width:`${rt}`,height:`${Ft}`,outerDivWidth:`${Xe}`,outerDivHeight:`${Lt}`}},!0))}});return Se.observe(ie),Se}console.error("Invalid state is detected. xterm element should exist below .terminal-outer.")}observeHostDimension(){let ie=this.hostRef.nativeElement;if(ie){const Se=new ResizeObserver(Ce=>{for(let De of Ce)if(De.contentBoxSize.length>0){let Ge=De.target.clientWidth,Xe=De.target.clientHeight;Ge>0&&Xe>0&&(console.debug("Changes on a host element will be handled."),this.linearRender.pushAndHandle({type:"hostResized",hostResized:{width:`${Ge}`,height:`${Xe}`}},!0))}});return Se.observe(ie),Se}console.error("Invalid state is detected. xterm element should exist below .terminal-outer.")}ngOnDestroy(){this.resizableObservers.forEach(ie=>ie.disconnect()),this.keyInputSubjectSubscription&&this.keyInputSubjectSubscription.unsubscribe(),this.dataSourceSubscription&&this.dataSourceSubscription.unsubscribe(),this.keyEventSubjectSubscription&&this.keyEventSubjectSubscription.unsubscribe(),this.allLogsSubjectSubscription&&this.allLogsSubjectSubscription.unsubscribe(),this.handleToCheckLazyContainer&&clearInterval(this.handleToCheckLazyContainer),this.xterm&&this.xterm.dispose(),console.debug("All resources has been cleaned up.")}write(ie){var Se;null===(Se=this.xterm)||void 0===Se||Se.write(ie)}get keyInput(){return this.dataSubject}onData(){return this.dataSubject}get keyEventInput(){return this.keySubject}onKey(){return this.keySubject}get underlying(){return this.xterm}get isDraggableOnEdgeActivated(){return this._draggable}get scrollBarWidth(){return this.underlying._core.viewport.scrollBarWidth}onResizeEnd(ie,Se,Ce,De){this.setOuterDimensions(ie,Se,Ce,De)}validatorFactory(){return Se=>!!this._draggable}findCssStyleRule(ie){for(let Se=0;Se .handle-active[_ngcontent-%COMP%]{z-index:100;background-color:#85858a!important}.resize-handle[_ngcontent-%COMP%]{background-color:#000}.resize-handle-top.handle-active[_ngcontent-%COMP%], .resize-handle-bottom.handle-active[_ngcontent-%COMP%]{cursor:row-resize}.resize-handle-left.handle-active[_ngcontent-%COMP%], .resize-handle-right.handle-active[_ngcontent-%COMP%]{cursor:col-resize}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0;top:0}.resize-handle-right[_ngcontent-%COMP%]{right:0;top:0}"],changeDetection:0}),Re})(),pt=(()=>{class Re{}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=_.oAB({type:Re}),Re.\u0275inj=_.cJS({imports:[Oe,b.ez]}),Re})();class gn{static insertBlank($e){return`\x9b${$e}@`}static cursorUp($e){return`\x9b${$e}A`}static cursorDown($e){return`\x9b${$e}B`}static cursorForward($e){return`\x9b${$e}C`}static cursorBackward($e){return`\x9b${$e}D`}static cursorNextLine($e){return`\x9b${$e}E`}static cursorPrecedingLine($e){return`\x9b${$e}F`}static cursorColumn($e){return`\x9b${$e}G`}static cursorPosition($e,ie){return`\x9b${$e};${ie}H`}static eraseInDisplay($e){return`\x9b${$e}J`}static eraseSelectiveThingsInDisplay($e){return`\x9b?${$e}J`}static eraseInLine($e){return`\x9b${$e}K`}static eraseSelectiveThingsInLine($e){return`\x9b?${$e}K`}static insertLines($e){return`\x9b${$e}L`}static deleteLines($e){return`\x9b${$e}M`}static deleteCharacter($e){return`\x9b${$e}P`}static scrollUpLines($e){return`\x9b${$e}S`}static scrollDownLines($e){return`\x9b${$e}T`}static eraseCharacters($e){return`\x9b${$e}X`}}},1777:(nt,Fe,$)=>{"use strict";$.d(Fe,{LC:()=>j,SB:()=>I,X$:()=>h,ZE:()=>U,ZN:()=>R,_j:()=>_,eR:()=>T,jt:()=>b,k1:()=>W,l3:()=>p,oB:()=>D,vP:()=>x});class _{}class j{}const p="*";function h(v,w){return{type:7,name:v,definitions:w,options:{}}}function b(v,w=null){return{type:4,styles:w,timings:v}}function x(v,w=null){return{type:2,steps:v,options:w}}function D(v){return{type:6,styles:v,offset:null}}function I(v,w,F){return{type:0,name:v,styles:w,options:F}}function T(v,w,F=null){return{type:1,expr:v,animation:w,options:F}}function C(v){Promise.resolve().then(v)}class R{constructor(w=0,F=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=w+F}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}onStart(w){this._originalOnStartFns.push(w),this._onStartFns.push(w)}onDone(w){this._originalOnDoneFns.push(w),this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){C(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(w=>w()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(w){this._position=this.totalTime?w*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(w){const F="start"==w?this._onStartFns:this._onDoneFns;F.forEach(Z=>Z()),F.length=0}}class U{constructor(w){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=w;let F=0,Z=0,Q=0;const ne=this.players.length;0==ne?C(()=>this._onFinish()):this.players.forEach(we=>{we.onDone(()=>{++F==ne&&this._onFinish()}),we.onDestroy(()=>{++Z==ne&&this._onDestroy()}),we.onStart(()=>{++Q==ne&&this._onStart()})}),this.totalTime=this.players.reduce((we,Be)=>Math.max(we,Be.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}init(){this.players.forEach(w=>w.init())}onStart(w){this._onStartFns.push(w)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(w=>w()),this._onStartFns=[])}onDone(w){this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(w=>w.play())}pause(){this.players.forEach(w=>w.pause())}restart(){this.players.forEach(w=>w.restart())}finish(){this._onFinish(),this.players.forEach(w=>w.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(w=>w.destroy()),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}reset(){this.players.forEach(w=>w.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(w){const F=w*this.totalTime;this.players.forEach(Z=>{const Q=Z.totalTime?Math.min(1,F/Z.totalTime):1;Z.setPosition(Q)})}getPosition(){const w=this.players.reduce((F,Z)=>null===F||Z.totalTime>F.totalTime?Z:F,null);return null!=w?w.getPosition():0}beforeDestroy(){this.players.forEach(w=>{w.beforeDestroy&&w.beforeDestroy()})}triggerCallback(w){const F="start"==w?this._onStartFns:this._onDoneFns;F.forEach(Z=>Z()),F.length=0}}const W="!"},2982:(nt,Fe,$)=>{"use strict";$.d(Fe,{rt:()=>yn,kH:()=>Hn,Em:()=>$e,tE:()=>Xn,qm:()=>Gt,X6:()=>Ui,yG:()=>ri});var _=$(9808),j=$(5e3),p=$(925),h=$(7579),b=$(727);class E extends h.x{constructor(le){super(),this._value=le}get value(){return this.getValue()}_subscribe(le){const se=super._subscribe(le);return!se.closed&&le.next(this._value),se}getValue(){const{hasError:le,thrownError:se,_value:Te}=this;if(le)throw se;return this._throwIfClosed(),Te}next(le){super.next(this._value=le)}}var x=$(9646),D=$(1159),I=$(8505),P=$(8372),T=$(9300),y=$(4004),l=$(5684),f=$(1884),u=$(2722),d=$(3191),C=$(7144),R=$(8306),U=$(4742),W=$(2076),v=$(4671),w=$(3268),F=$(3269),Z=$(1810),Q=$(5403),ne=$(9672);function Ie(pe,le,se){pe?(0,ne.f)(se,pe,le):le()}var Y=$(7272),re=$(5698),_e=$(8675);const he=new Set;let Me,Oe=(()=>{class pe{constructor(se){this._platform=se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ne}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function ye(pe){if(!he.has(pe))try{Me||(Me=document.createElement("style"),Me.setAttribute("type","text/css"),document.head.appendChild(Me)),Me.sheet&&(Me.sheet.insertRule(`@media ${pe} {body{ }}`,0),he.add(pe))}catch(le){console.error(le)}}(se),this._matchMedia(se)}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(p.t4))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function Ne(pe){return{matches:"all"===pe||""===pe,media:pe,addListener:()=>{},removeListener:()=>{}}}let ue=(()=>{class pe{constructor(se,Te){this._mediaMatcher=se,this._zone=Te,this._queries=new Map,this._destroySubject=new h.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return de((0,d.Eq)(se)).some(Ve=>this._registerQuery(Ve).mql.matches)}observe(se){let tt=function we(...pe){const le=(0,F.yG)(pe),se=(0,F.jO)(pe),{args:Te,keys:Ve}=(0,U.D)(pe);if(0===Te.length)return(0,W.D)([],le);const tt=new R.y(function Be(pe,le,se=v.y){return Te=>{Ie(le,()=>{const{length:Ve}=pe,tt=new Array(Ve);let gt=Ve,mt=Ve;for(let Qt=0;Qt{const hn=(0,W.D)(pe[Qt],le);let Et=!1;hn.subscribe((0,Q.x)(Te,Ri=>{tt[Qt]=Ri,Et||(Et=!0,mt--),mt||Te.next(se(tt.slice()))},()=>{--gt||Te.complete()}))},Te)},Te)}}(Te,le,Ve?gt=>(0,Z.n)(Ve,gt):v.y));return se?tt.pipe((0,w.Z)(se)):tt}(de((0,d.Eq)(se)).map(gt=>this._registerQuery(gt).observable));return tt=(0,Y.z)(tt.pipe((0,re.q)(1)),tt.pipe((0,l.T)(1),(0,P.b)(0))),tt.pipe((0,y.U)(gt=>{const mt={matches:!1,breakpoints:{}};return gt.forEach(({matches:Qt,query:hn})=>{mt.matches=mt.matches||Qt,mt.breakpoints[hn]=Qt}),mt}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const Te=this._mediaMatcher.matchMedia(se),tt={observable:new R.y(gt=>{const mt=Qt=>this._zone.run(()=>gt.next(Qt));return Te.addListener(mt),()=>{Te.removeListener(mt)}}).pipe((0,_e.O)(Te),(0,y.U)(({matches:gt})=>({query:se,matches:gt})),(0,u.R)(this._destroySubject)),mql:Te};return this._queries.set(se,tt),tt}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(Oe),j.LFG(j.R0b))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function de(pe){return pe.map(le=>le.split(",")).reduce((le,se)=>le.concat(se)).map(le=>le.trim())}class $e extends class Tn{constructor(le){this._items=le,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new h.x,this._typeaheadSubscription=b.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=se=>se.disabled,this._pressedLetters=[],this.tabOut=new h.x,this.change=new h.x,le instanceof j.n_E&&le.changes.subscribe(se=>{if(this._activeItem){const Ve=se.toArray().indexOf(this._activeItem);Ve>-1&&Ve!==this._activeItemIndex&&(this._activeItemIndex=Ve)}})}skipPredicate(le){return this._skipPredicateFn=le,this}withWrap(le=!0){return this._wrap=le,this}withVerticalOrientation(le=!0){return this._vertical=le,this}withHorizontalOrientation(le){return this._horizontal=le,this}withAllowedModifierKeys(le){return this._allowedModifierKeys=le,this}withTypeAhead(le=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,I.b)(se=>this._pressedLetters.push(se)),(0,P.b)(le),(0,T.h)(()=>this._pressedLetters.length>0),(0,y.U)(()=>this._pressedLetters.join(""))).subscribe(se=>{const Te=this._getItemsArray();for(let Ve=1;Ve!le[tt]||this._allowedModifierKeys.indexOf(tt)>-1);switch(se){case D.Mf:return void this.tabOut.next();case D.JH:if(this._vertical&&Ve){this.setNextItemActive();break}return;case D.LH:if(this._vertical&&Ve){this.setPreviousItemActive();break}return;case D.SV:if(this._horizontal&&Ve){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case D.oh:if(this._horizontal&&Ve){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case D.Sd:if(this._homeAndEnd&&Ve){this.setFirstItemActive();break}return;case D.uR:if(this._homeAndEnd&&Ve){this.setLastItemActive();break}return;default:return void((Ve||(0,D.Vb)(le,"shiftKey"))&&(le.key&&1===le.key.length?this._letterKeyStream.next(le.key.toLocaleUpperCase()):(se>=D.A&&se<=D.Z||se>=D.xE&&se<=D.aO)&&this._letterKeyStream.next(String.fromCharCode(se))))}this._pressedLetters=[],le.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(le){const se=this._getItemsArray(),Te="number"==typeof le?le:se.indexOf(le),Ve=se[Te];this._activeItem=null==Ve?null:Ve,this._activeItemIndex=Te}_setActiveItemByDelta(le){this._wrap?this._setActiveInWrapMode(le):this._setActiveInDefaultMode(le)}_setActiveInWrapMode(le){const se=this._getItemsArray();for(let Te=1;Te<=se.length;Te++){const Ve=(this._activeItemIndex+le*Te+se.length)%se.length;if(!this._skipPredicateFn(se[Ve]))return void this.setActiveItem(Ve)}}_setActiveInDefaultMode(le){this._setActiveItemByIndex(this._activeItemIndex+le,le)}_setActiveItemByIndex(le,se){const Te=this._getItemsArray();if(Te[le]){for(;this._skipPredicateFn(Te[le]);)if(!Te[le+=se])return;this.setActiveItem(le)}}_getItemsArray(){return this._items instanceof j.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(le){return this._origin=le,this}setActiveItem(le){super.setActiveItem(le),this.activeItem&&this.activeItem.focus(this._origin)}}function Ui(pe){return 0===pe.buttons||0===pe.offsetX&&0===pe.offsetY}function ri(pe){const le=pe.touches&&pe.touches[0]||pe.changedTouches&&pe.changedTouches[0];return!(!le||-1!==le.identifier||null!=le.radiusX&&1!==le.radiusX||null!=le.radiusY&&1!==le.radiusY)}const ln=new j.OlP("cdk-input-modality-detector-options"),An={ignoreKeys:[D.zL,D.jx,D.b2,D.MW,D.JU]},En=(0,p.i$)({passive:!0,capture:!0});let jn=(()=>{class pe{constructor(se,Te,Ve,tt){this._platform=se,this._mostRecentTarget=null,this._modality=new E(null),this._lastTouchMs=0,this._onKeydown=gt=>{var mt,Qt;null!==(Qt=null===(mt=this._options)||void 0===mt?void 0:mt.ignoreKeys)&&void 0!==Qt&&Qt.some(hn=>hn===gt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,p.sA)(gt))},this._onMousedown=gt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ui(gt)?"keyboard":"mouse"),this._mostRecentTarget=(0,p.sA)(gt))},this._onTouchstart=gt=>{ri(gt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,p.sA)(gt))},this._options=Object.assign(Object.assign({},An),tt),this.modalityDetected=this._modality.pipe((0,l.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,f.x)()),se.isBrowser&&Te.runOutsideAngular(()=>{Ve.addEventListener("keydown",this._onKeydown,En),Ve.addEventListener("mousedown",this._onMousedown,En),Ve.addEventListener("touchstart",this._onTouchstart,En)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,En),document.removeEventListener("mousedown",this._onMousedown,En),document.removeEventListener("touchstart",this._onTouchstart,En))}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(p.t4),j.LFG(j.R0b),j.LFG(_.K0),j.LFG(ln,8))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Dn=new j.OlP("cdk-focus-monitor-default-options"),Jn=(0,p.i$)({passive:!0,capture:!0});let Xn=(()=>{class pe{constructor(se,Te,Ve,tt,gt){this._ngZone=se,this._platform=Te,this._inputModalityDetector=Ve,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new h.x,this._rootNodeFocusAndBlurListener=mt=>{for(let hn=(0,p.sA)(mt);hn;hn=hn.parentElement)"focus"===mt.type?this._onFocus(mt,hn):this._onBlur(mt,hn)},this._document=tt,this._detectionMode=(null==gt?void 0:gt.detectionMode)||0}monitor(se,Te=!1){const Ve=(0,d.fI)(se);if(!this._platform.isBrowser||1!==Ve.nodeType)return(0,x.of)(null);const tt=(0,p.kV)(Ve)||this._getDocument(),gt=this._elementInfo.get(Ve);if(gt)return Te&&(gt.checkChildren=!0),gt.subject;const mt={checkChildren:Te,subject:new h.x,rootNode:tt};return this._elementInfo.set(Ve,mt),this._registerGlobalListeners(mt),mt.subject}stopMonitoring(se){const Te=(0,d.fI)(se),Ve=this._elementInfo.get(Te);Ve&&(Ve.subject.complete(),this._setClasses(Te),this._elementInfo.delete(Te),this._removeGlobalListeners(Ve))}focusVia(se,Te,Ve){const tt=(0,d.fI)(se);tt===this._getDocument().activeElement?this._getClosestElementsInfo(tt).forEach(([mt,Qt])=>this._originChanged(mt,Te,Qt)):(this._setOrigin(Te),"function"==typeof tt.focus&&tt.focus(Ve))}ngOnDestroy(){this._elementInfo.forEach((se,Te)=>this.stopMonitoring(Te))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(se){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(se)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:se&&this._isLastInteractionFromInputLabel(se)?"mouse":"program"}_shouldBeAttributedToTouch(se){return 1===this._detectionMode||!(null==se||!se.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(se,Te){se.classList.toggle("cdk-focused",!!Te),se.classList.toggle("cdk-touch-focused","touch"===Te),se.classList.toggle("cdk-keyboard-focused","keyboard"===Te),se.classList.toggle("cdk-mouse-focused","mouse"===Te),se.classList.toggle("cdk-program-focused","program"===Te)}_setOrigin(se,Te=!1){this._ngZone.runOutsideAngular(()=>{this._origin=se,this._originFromTouchInteraction="touch"===se&&Te,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(se,Te){const Ve=this._elementInfo.get(Te),tt=(0,p.sA)(se);!Ve||!Ve.checkChildren&&Te!==tt||this._originChanged(Te,this._getFocusOrigin(tt),Ve)}_onBlur(se,Te){const Ve=this._elementInfo.get(Te);!Ve||Ve.checkChildren&&se.relatedTarget instanceof Node&&Te.contains(se.relatedTarget)||(this._setClasses(Te),this._emitOrigin(Ve,null))}_emitOrigin(se,Te){se.subject.observers.length&&this._ngZone.run(()=>se.subject.next(Te))}_registerGlobalListeners(se){if(!this._platform.isBrowser)return;const Te=se.rootNode,Ve=this._rootNodeFocusListenerCount.get(Te)||0;Ve||this._ngZone.runOutsideAngular(()=>{Te.addEventListener("focus",this._rootNodeFocusAndBlurListener,Jn),Te.addEventListener("blur",this._rootNodeFocusAndBlurListener,Jn)}),this._rootNodeFocusListenerCount.set(Te,Ve+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,u.R)(this._stopInputModalityDetector)).subscribe(tt=>{this._setOrigin(tt,!0)}))}_removeGlobalListeners(se){const Te=se.rootNode;if(this._rootNodeFocusListenerCount.has(Te)){const Ve=this._rootNodeFocusListenerCount.get(Te);Ve>1?this._rootNodeFocusListenerCount.set(Te,Ve-1):(Te.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jn),Te.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jn),this._rootNodeFocusListenerCount.delete(Te))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(se,Te,Ve){this._setClasses(se,Te),this._emitOrigin(Ve,Te),this._lastFocusOrigin=Te}_getClosestElementsInfo(se){const Te=[];return this._elementInfo.forEach((Ve,tt)=>{(tt===se||Ve.checkChildren&&tt.contains(se))&&Te.push([tt,Ve])}),Te}_isLastInteractionFromInputLabel(se){const{_mostRecentTarget:Te,mostRecentModality:Ve}=this._inputModalityDetector;if("mouse"!==Ve||!Te||Te===se||"INPUT"!==se.nodeName&&"TEXTAREA"!==se.nodeName||se.disabled)return!1;const tt=se.labels;if(tt)for(let gt=0;gt{class pe{constructor(se,Te){this._elementRef=se,this._focusMonitor=Te,this._focusOrigin=null,this.cdkFocusChange=new j.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const se=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(se,1===se.nodeType&&se.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Te=>{this._focusOrigin=Te,this.cdkFocusChange.emit(Te)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return pe.\u0275fac=function(se){return new(se||pe)(j.Y36(j.SBq),j.Y36(Xn))},pe.\u0275dir=j.lG2({type:pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),pe})();const Oi="cdk-high-contrast-black-on-white",oi="cdk-high-contrast-white-on-black",on="cdk-high-contrast-active";let Gt=(()=>{class pe{constructor(se,Te){this._platform=se,this._document=Te,this._breakpointSubscription=(0,j.f3M)(ue).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const se=this._document.createElement("div");se.style.backgroundColor="rgb(1,2,3)",se.style.position="absolute",this._document.body.appendChild(se);const Te=this._document.defaultView||window,Ve=Te&&Te.getComputedStyle?Te.getComputedStyle(se):null,tt=(Ve&&Ve.backgroundColor||"").replace(/ /g,"");switch(se.remove(),tt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const se=this._document.body.classList;se.remove(on,Oi,oi),this._hasCheckedHighContrastMode=!0;const Te=this.getHighContrastMode();1===Te?se.add(on,Oi):2===Te&&se.add(on,oi)}}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(p.t4),j.LFG(_.K0))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),yn=(()=>{class pe{constructor(se){se._applyBodyHighContrastModeCssClasses()}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(Gt))},pe.\u0275mod=j.oAB({type:pe}),pe.\u0275inj=j.cJS({imports:[C.Q8]}),pe})()},226:(nt,Fe,$)=>{"use strict";$.d(Fe,{Is:()=>x,vT:()=>I});var _=$(5e3),j=$(9808);const p=new _.OlP("cdk-dir-doc",{providedIn:"root",factory:function h(){return(0,_.f3M)(j.K0)}}),b=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let x=(()=>{class P{constructor(y){if(this.value="ltr",this.change=new _.vpe,y){const f=y.documentElement?y.documentElement.dir:null;this.value=function E(P){const T=(null==P?void 0:P.toLowerCase())||"";return"auto"===T&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?b.test(navigator.language)?"rtl":"ltr":"rtl"===T?"rtl":"ltr"}((y.body?y.body.dir:null)||f||"ltr")}}ngOnDestroy(){this.change.complete()}}return P.\u0275fac=function(y){return new(y||P)(_.LFG(p,8))},P.\u0275prov=_.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),I=(()=>{class P{}return P.\u0275fac=function(y){return new(y||P)},P.\u0275mod=_.oAB({type:P}),P.\u0275inj=_.cJS({}),P})()},3191:(nt,Fe,$)=>{"use strict";$.d(Fe,{Eq:()=>b,Ig:()=>j,fI:()=>x,su:()=>p});var _=$(5e3);function j(I){return null!=I&&"false"!=`${I}`}function p(I,P=0){return function h(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}(I)?Number(I):P}function b(I){return Array.isArray(I)?I:[I]}function x(I){return I instanceof _.SBq?I.nativeElement:I}},1159:(nt,Fe,$)=>{"use strict";$.d(Fe,{A:()=>ue,JH:()=>W,JU:()=>E,K5:()=>b,LH:()=>R,L_:()=>y,MW:()=>Ft,Mf:()=>p,SV:()=>U,Sd:()=>d,Vb:()=>Jt,Z:()=>rt,aO:()=>he,b2:()=>$i,jx:()=>x,oh:()=>C,uR:()=>u,xE:()=>Q,zL:()=>D});const p=9,b=13,E=16,x=17,D=18,y=32,u=35,d=36,C=37,R=38,U=39,W=40,Q=48,he=57,ue=65,rt=90,Ft=91,$i=224;function Jt(Ci,...fi){return fi.length?fi.some(cn=>Ci[cn]):Ci.altKey||Ci.shiftKey||Ci.ctrlKey||Ci.metaKey}},7144:(nt,Fe,$)=>{"use strict";$.d(Fe,{Q8:()=>I,wD:()=>D});var _=$(3191),j=$(5e3),p=$(8306),h=$(7579),b=$(8372);let E=(()=>{class P{create(y){return"undefined"==typeof MutationObserver?null:new MutationObserver(y)}}return P.\u0275fac=function(y){return new(y||P)},P.\u0275prov=j.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),x=(()=>{class P{constructor(y){this._mutationObserverFactory=y,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((y,l)=>this._cleanupObserver(l))}observe(y){const l=(0,_.fI)(y);return new p.y(f=>{const d=this._observeElement(l).subscribe(f);return()=>{d.unsubscribe(),this._unobserveElement(l)}})}_observeElement(y){if(this._observedElements.has(y))this._observedElements.get(y).count++;else{const l=new h.x,f=this._mutationObserverFactory.create(u=>l.next(u));f&&f.observe(y,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(y,{observer:f,stream:l,count:1})}return this._observedElements.get(y).stream}_unobserveElement(y){this._observedElements.has(y)&&(this._observedElements.get(y).count--,this._observedElements.get(y).count||this._cleanupObserver(y))}_cleanupObserver(y){if(this._observedElements.has(y)){const{observer:l,stream:f}=this._observedElements.get(y);l&&l.disconnect(),f.complete(),this._observedElements.delete(y)}}}return P.\u0275fac=function(y){return new(y||P)(j.LFG(E))},P.\u0275prov=j.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),D=(()=>{class P{constructor(y,l,f){this._contentObserver=y,this._elementRef=l,this._ngZone=f,this.event=new j.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(y){this._disabled=(0,_.Ig)(y),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(y){this._debounce=(0,_.su)(y),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const y=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?y.pipe((0,b.b)(this.debounce)):y).subscribe(this.event)})}_unsubscribe(){var y;null===(y=this._currentSubscription)||void 0===y||y.unsubscribe()}}return P.\u0275fac=function(y){return new(y||P)(j.Y36(x),j.Y36(j.SBq),j.Y36(j.R0b))},P.\u0275dir=j.lG2({type:P,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),P})(),I=(()=>{class P{}return P.\u0275fac=function(y){return new(y||P)},P.\u0275mod=j.oAB({type:P}),P.\u0275inj=j.cJS({providers:[E]}),P})()},925:(nt,Fe,$)=>{"use strict";$.d(Fe,{Oy:()=>v,i$:()=>T,kV:()=>R,qK:()=>D,sA:()=>W,t4:()=>h});var _=$(5e3),j=$(9808);let p;try{p="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){p=!1}let E,h=(()=>{class w{constructor(Z){this._platformId=Z,this.isBrowser=this._platformId?(0,j.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!p)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return w.\u0275fac=function(Z){return new(Z||w)(_.LFG(_.Lbi))},w.\u0275prov=_.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const x=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function D(){if(E)return E;if("object"!=typeof document||!document)return E=new Set(x),E;let w=document.createElement("input");return E=new Set(x.filter(F=>(w.setAttribute("type",F),w.type===F))),E}let I,d;function T(w){return function P(){if(null==I&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>I=!0}))}finally{I=I||!1}return I}()?w:!!w.capture}function R(w){if(function C(){if(null==d){const w="undefined"!=typeof document?document.head:null;d=!(!w||!w.createShadowRoot&&!w.attachShadow)}return d}()){const F=w.getRootNode?w.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&F instanceof ShadowRoot)return F}return null}function W(w){return w.composedPath?w.composedPath()[0]:w.target}function v(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},9808:(nt,Fe,$)=>{"use strict";$.d(Fe,{HT:()=>b,JF:()=>Ir,K0:()=>x,Mx:()=>Qi,NF:()=>Tr,O5:()=>Ci,RF:()=>Ei,bD:()=>rn,ez:()=>Mt,mk:()=>ai,n9:()=>Di,q:()=>p,sg:()=>ui,w_:()=>E});var _=$(5e3);let j=null;function p(){return j}function b(A){j||(j=A)}class E{}const x=new _.OlP("DocumentToken");function Qi(A,z){z=encodeURIComponent(z);for(const L of A.split(";")){const J=L.indexOf("="),[me,He]=-1==J?[L,""]:[L.slice(0,J),L.slice(J+1)];if(me.trim()===z)return decodeURIComponent(He)}return null}let ai=(()=>{class A{constructor(L,J,me,He){this._iterableDiffers=L,this._keyValueDiffers=J,this._ngEl=me,this._renderer=He,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(L){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof L?L.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(L){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof L?L.split(/\s+/):L,this._rawClass&&((0,_.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const L=this._iterableDiffer.diff(this._rawClass);L&&this._applyIterableChanges(L)}else if(this._keyValueDiffer){const L=this._keyValueDiffer.diff(this._rawClass);L&&this._applyKeyValueChanges(L)}}_applyKeyValueChanges(L){L.forEachAddedItem(J=>this._toggleClass(J.key,J.currentValue)),L.forEachChangedItem(J=>this._toggleClass(J.key,J.currentValue)),L.forEachRemovedItem(J=>{J.previousValue&&this._toggleClass(J.key,!1)})}_applyIterableChanges(L){L.forEachAddedItem(J=>{if("string"!=typeof J.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,_.AaK)(J.item)}`);this._toggleClass(J.item,!0)}),L.forEachRemovedItem(J=>this._toggleClass(J.item,!1))}_applyClasses(L){L&&(Array.isArray(L)||L instanceof Set?L.forEach(J=>this._toggleClass(J,!0)):Object.keys(L).forEach(J=>this._toggleClass(J,!!L[J])))}_removeClasses(L){L&&(Array.isArray(L)||L instanceof Set?L.forEach(J=>this._toggleClass(J,!1)):Object.keys(L).forEach(J=>this._toggleClass(J,!1)))}_toggleClass(L,J){(L=L.trim())&&L.split(/\s+/g).forEach(me=>{J?this._renderer.addClass(this._ngEl.nativeElement,me):this._renderer.removeClass(this._ngEl.nativeElement,me)})}}return A.\u0275fac=function(L){return new(L||A)(_.Y36(_.ZZ4),_.Y36(_.aQg),_.Y36(_.SBq),_.Y36(_.Qsj))},A.\u0275dir=_.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),A})();class Vn{constructor(z,L,J,me){this.$implicit=z,this.ngForOf=L,this.index=J,this.count=me}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ui=(()=>{class A{constructor(L,J,me){this._viewContainer=L,this._template=J,this._differs=me,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(L){this._ngForOf=L,this._ngForOfDirty=!0}set ngForTrackBy(L){this._trackByFn=L}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(L){L&&(this._template=L)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const L=this._ngForOf;!this._differ&&L&&(this._differ=this._differs.find(L).create(this.ngForTrackBy))}if(this._differ){const L=this._differ.diff(this._ngForOf);L&&this._applyChanges(L)}}_applyChanges(L){const J=this._viewContainer;L.forEachOperation((me,He,Ye)=>{if(null==me.previousIndex)J.createEmbeddedView(this._template,new Vn(me.item,this._ngForOf,-1,-1),null===Ye?void 0:Ye);else if(null==Ye)J.remove(null===He?void 0:He);else if(null!==He){const ut=J.get(He);J.move(ut,Ye),$i(ut,me)}});for(let me=0,He=J.length;me{$i(J.get(me.currentIndex),me)})}static ngTemplateContextGuard(L,J){return!0}}return A.\u0275fac=function(L){return new(L||A)(_.Y36(_.s_b),_.Y36(_.Rgc),_.Y36(_.ZZ4))},A.\u0275dir=_.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),A})();function $i(A,z){A.context.$implicit=z.item}let Ci=(()=>{class A{constructor(L,J){this._viewContainer=L,this._context=new fi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=J}set ngIf(L){this._context.$implicit=this._context.ngIf=L,this._updateView()}set ngIfThen(L){cn("ngIfThen",L),this._thenTemplateRef=L,this._thenViewRef=null,this._updateView()}set ngIfElse(L){cn("ngIfElse",L),this._elseTemplateRef=L,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(L,J){return!0}}return A.\u0275fac=function(L){return new(L||A)(_.Y36(_.s_b),_.Y36(_.Rgc))},A.\u0275dir=_.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),A})();class fi{constructor(){this.$implicit=null,this.ngIf=null}}function cn(A,z){if(z&&!z.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,_.AaK)(z)}'.`)}class In{constructor(z,L){this._viewContainerRef=z,this._templateRef=L,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(z){z&&!this._created?this.create():!z&&this._created&&this.destroy()}}let Ei=(()=>{class A{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(L){this._ngSwitch=L,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(L){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(L)}_matchCase(L){const J=L==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||J,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),J}_updateDefaultCases(L){if(this._defaultViews&&L!==this._defaultUsed){this._defaultUsed=L;for(let J=0;J{class A{constructor(L,J,me){this.ngSwitch=me,me._addCase(),this._view=new In(L,J)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return A.\u0275fac=function(L){return new(L||A)(_.Y36(_.s_b),_.Y36(_.Rgc),_.Y36(Ei,9))},A.\u0275dir=_.lG2({type:A,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),A})(),Mt=(()=>{class A{}return A.\u0275fac=function(L){return new(L||A)},A.\u0275mod=_.oAB({type:A}),A.\u0275inj=_.cJS({}),A})();const rn="browser";function Tr(A){return A===rn}class Ir{}},5e3:(nt,Fe,$)=>{"use strict";$.d(Fe,{$8M:()=>Zo,$Z:()=>Ph,AFp:()=>Gm,AaK:()=>D,BQk:()=>_l,CHM:()=>ps,CRH:()=>Em,CZH:()=>Il,CqO:()=>Tf,D6c:()=>EE,DdM:()=>om,EJc:()=>HC,EpF:()=>wf,F$t:()=>kf,F4k:()=>Mf,FYo:()=>fh,G48:()=>rE,Gf:()=>bm,GfV:()=>ph,Gpc:()=>T,Hsn:()=>Pf,Ikx:()=>vu,JOm:()=>Vr,KtG:()=>cr,LFG:()=>m,Lbi:()=>LC,Lck:()=>I0,MAs:()=>Df,NdJ:()=>fu,OlP:()=>un,Oqu:()=>_u,Q6J:()=>cu,QGY:()=>hu,QbO:()=>NC,Qsj:()=>J_,R0b:()=>nr,RDi:()=>f_,Rgc:()=>Da,SBq:()=>ca,Suo:()=>Cm,TTD:()=>H,TgZ:()=>pl,VKq:()=>am,W1O:()=>Mm,WLB:()=>lm,X6Q:()=>iE,Xpm:()=>hi,Y36:()=>So,YNc:()=>Ef,Yjl:()=>Bn,Yz7:()=>be,ZZ4:()=>qu,_Bn:()=>Qp,_UZ:()=>du,_Vd:()=>la,_c5:()=>bE,_uU:()=>rp,aQg:()=>Zu,cJS:()=>Ue,cg1:()=>yu,dDg:()=>qC,dqk:()=>Ft,eFA:()=>rg,ekj:()=>mu,eoX:()=>tg,f3M:()=>G,g9A:()=>Ym,h0i:()=>Ho,hGG:()=>CE,hij:()=>yl,iGM:()=>ym,ifc:()=>rt,ip1:()=>Wm,kL8:()=>Dp,kYT:()=>Kn,lG2:()=>jn,lri:()=>Xm,n5z:()=>Yo,n_E:()=>Sl,oAB:()=>An,oxw:()=>Rf,qLn:()=>ua,qOj:()=>su,qZA:()=>ml,rWj:()=>eg,sBO:()=>sE,sIi:()=>fa,s_b:()=>Ml,soG:()=>xl,uIk:()=>lu,vHH:()=>u,vpe:()=>Wr,wAp:()=>Ot,xp6:()=>Ch,ynx:()=>gl,z2F:()=>Ol,zSh:()=>Mc,zs3:()=>Ys});var _=$(7579),j=$(727),p=$(8306),h=$(6451),b=$(3099);function E(e){for(let t in e)if(e[t]===E)return t;throw Error("Could not find renamed property on target object.")}function x(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function I(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const P=E({__forward_ref__:E});function T(e){return e.__forward_ref__=T,e.toString=function(){return D(this())},e}function y(e){return l(e)?e():e}function l(e){return"function"==typeof e&&e.hasOwnProperty(P)&&e.__forward_ref__===T}class u extends Error{constructor(t,n){super(function d(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function C(e){return"string"==typeof e?e:null==e?"":String(e)}function w(e,t){throw new u(-201,!1)}function Oe(e,t){null==e&&function ye(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function be(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return kt(e,Rt)||kt(e,Nn)}function kt(e,t){return e.hasOwnProperty(t)?e[t]:null}function pt(e){return e&&(e.hasOwnProperty(gn)||e.hasOwnProperty(Tn))?e[gn]:null}const Rt=E({\u0275prov:E}),gn=E({\u0275inj:E}),Nn=E({ngInjectableDef:E}),Tn=E({ngInjectorDef:E});var Re=(()=>((Re=Re||{})[Re.Default=0]="Default",Re[Re.Host=1]="Host",Re[Re.Self=2]="Self",Re[Re.SkipSelf=4]="SkipSelf",Re[Re.Optional=8]="Optional",Re))();let $e;function Se(e){const t=$e;return $e=e,t}function Ce(e,t,n){const i=ft(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Re.Optional?null:void 0!==t?t:void w(D(e))}function Ge(e){return{toString:e}.toString()}var Xe=(()=>((Xe=Xe||{})[Xe.OnPush=0]="OnPush",Xe[Xe.Default=1]="Default",Xe))(),rt=(()=>{return(e=rt||(rt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",rt;var e})();const Ft=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),Zt={},bt=[],Ze=E({\u0275cmp:E}),ge=E({\u0275dir:E}),Ae=E({\u0275pipe:E}),ze=E({\u0275mod:E}),Ct=E({\u0275fac:E}),en=E({__NG_ELEMENT_ID__:E});let Rn=0;function hi(e){return Ge(()=>{const n=!0===e.standalone,i={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Xe.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||bt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||rt.Emulated,id:"c"+Rn++,styles:e.styles||bt,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.dependencies,c=e.features;return r.inputs=En(e.inputs,i),r.outputs=En(e.outputs),c&&c.forEach(g=>g(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(ri).filter(ln):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(pn).filter(ln):null,r})}function ri(e){return Ht(e)||dn(e)}function ln(e){return null!==e}function An(e){return Ge(()=>({type:e.type,bootstrap:e.bootstrap||bt,declarations:e.declarations||bt,imports:e.imports||bt,exports:e.exports||bt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Kn(e,t){return Ge(()=>{const n=Dn(e,!0);n.declarations=t.declarations||bt,n.imports=t.imports||bt,n.exports=t.exports||bt})}function En(e,t){if(null==e)return Zt;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const jn=hi;function Bn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[Ze]||null}function dn(e){return e[ge]||null}function pn(e){return e[Ae]||null}function Dn(e,t){const n=e[ze]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function cn(e){return Array.isArray(e)&&"object"==typeof e[1]}function In(e){return Array.isArray(e)&&!0===e[1]}function Ei(e){return 0!=(8&e.flags)}function Di(e){return 2==(2&e.flags)}function ir(e){return 1==(1&e.flags)}function Yn(e){return null!==e.template}function Ji(e){return 0!=(256&e[2])}function Ee(e,t){return e.hasOwnProperty(Ct)?e[Ct]:null}class oe{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function H(){return X}function X(e){return e.type.prototype.ngOnChanges&&(e.setInput=Le),ce}function ce(){const e=Dt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Zt)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Le(e,t,n,i){const r=Dt(e)||function Mt(e,t){return e[at]=t}(e,{previous:Zt,current:null}),s=r.current||(r.current={}),c=r.previous,g=this.declaredInputs[n],M=c[g];s[g]=new oe(M&&M.currentValue,t,c===Zt),e[i]=t}H.ngInherit=!0;const at="__ngSimpleChanges__";function Dt(e){return e[at]||null}function _n(e){for(;Array.isArray(e);)e=e[0];return e}function Si(e,t){return _n(t[e])}function Un(e,t){return _n(t[e.index])}function Ir(e,t){return e.data[t]}function Pn(e,t){const n=t[e];return cn(n)?n:n[0]}function or(e){return 64==(64&e[2])}function bn(e,t){return null==t?null:e[t]}function Zn(e){e[18]=0}function Ki(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const St={lFrame:zo(null),bindingsEnabled:!0};function lr(){return St.bindingsEnabled}function qe(){return St.lFrame.lView}function xt(){return St.lFrame.tView}function ps(e){return St.lFrame.contextLView=e,e[8]}function cr(e){return St.lFrame.contextLView=null,e}function mn(){let e=ks();for(;null!==e&&64===e.type;)e=e.parent;return e}function ks(){return St.lFrame.currentTNode}function wi(e,t){const n=St.lFrame;n.currentTNode=e,n.isParent=t}function Ps(){return St.lFrame.isParent}function io(){St.lFrame.isParent=!1}function S(){const e=St.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function lt(){return St.lFrame.bindingIndex++}function ur(e,t){const n=St.lFrame;n.bindingIndex=n.bindingRootIndex=e,hr(t)}function hr(e){St.lFrame.currentDirectiveIndex=e}function gs(){return St.lFrame.currentQueryIndex}function fr(e){St.lFrame.currentQueryIndex=e}function kr(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ls(e,t,n){if(n&Re.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&Re.Host||(r=kr(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=St.lFrame=Lr();return i.currentTNode=t,i.lView=e,!0}function Pr(e){const t=Lr(),n=e[1];St.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lr(){const e=St.lFrame,t=null===e?null:e.child;return null===t?zo(e):t}function zo(e){const 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 null!==e&&(e.child=t),t}function $o(){const e=St.lFrame;return St.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ro=$o;function _s(){const e=$o();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 ni(){return St.lFrame.selectedIndex}function Li(e){St.lFrame.selectedIndex=e}function fn(){const e=St.lFrame;return Ir(e.tView,e.selectedIndex)}function oo(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[M]<0&&(e[18]+=65536),(g>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(g)}finally{}}}else try{s.call(g)}finally{}}class bs{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function J(e,t,n){let i=0;for(;it){c=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let qt=!0;function Xt(e){const t=qt;return qt=e,t}let pr=0;const xn={};function mr(e,t){const n=Ko(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,gr(i.data,e),gr(t,null),gr(i.blueprint,null));const r=Vs(e,t),s=e.injectorIndex;if(Yt(r)){const c=zt(r),g=Vt(r,t),M=g[1].data;for(let V=0;V<8;V++)t[s+V]=g[c+V]|M[c+V]}return t[s+8]=r,s}function gr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ko(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){if(i=Ba(r),null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function js(e,t,n){!function Es(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(en)&&(i=n[en]),null==i&&(i=n[en]=pr++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Fl:t}(n);if("function"==typeof s){if(!Ls(t,e,i))return i&Re.Host?Ti(r,0,i):ts(t,n,i,r);try{const c=s(i);if(null!=c||i&Re.Optional)return c;w()}finally{ro()}}else if("number"==typeof s){let c=null,g=Ko(e,t),M=-1,V=i&Re.Host?t[16][6]:null;for((-1===g||i&Re.SkipSelf)&&(M=-1===g?Vs(e,t):t[g+8],-1!==M&&Na(i,!1)?(c=t[1],g=zt(M),t=Vt(M,t)):g=-1);-1!==g;){const K=t[1];if(Fa(s,g,K.data)){const te=La(g,t,n,c,i,V);if(te!==xn)return te}M=t[g+8],-1!==M&&Na(i,t[1].data[g+8]===V)&&Fa(s,g,t)?(c=K,g=zt(M),t=Vt(M,t)):g=-1}}return r}function La(e,t,n,i,r,s){const c=t[1],g=c.data[e+8],K=lo(g,c,n,null==i?Di(g)&&qt:i!=c&&0!=(3&g.type),r&Re.Host&&s===g);return null!==K?Ds(t,c,K,g):xn}function lo(e,t,n,i,r){const s=e.providerIndexes,c=t.data,g=1048575&s,M=e.directiveStart,K=s>>20,ve=r?g+K:e.directiveEnd;for(let Pe=i?g:g+K;Pe=M&&We.type===n)return Pe}if(r){const Pe=c[M];if(Pe&&Yn(Pe)&&Pe.type===n)return M}return null}function Ds(e,t,n,i){let r=e[n];const s=t.data;if(function Ia(e){return e instanceof bs}(r)){const c=r;c.resolving&&function U(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new u(-200,`Circular dependency in DI detected for ${e}${n}`)}(function R(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():C(e)}(s[n]));const g=Xt(c.canSeeViewProviders);c.resolving=!0;const M=c.injectImpl?Se(c.injectImpl):null;Ls(e,i,Re.Default);try{r=e[n]=c.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ns(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const c=X(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,c),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,c)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==M&&Se(M),Xt(g),c.resolving=!1,ro()}}return r}function Fa(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ct]||qo(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[Ct]||qo(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function qo(e){return l(e)?()=>{const t=qo(y(e));return t&&t()}:Ee(e)}function Ba(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function Zo(e){return function Ra(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r{const i=function uo(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const c=new r(...s);return g.annotation=c,g;function g(M,V,K){const te=M.hasOwnProperty(_r)?M[_r]:Object.defineProperty(M,_r,{value:[]})[_r];for(;te.length<=K;)te.push(null);return(te[K]=te[K]||[]).push(c),M}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class un{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=be({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ni(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Br(n,t):t(n))}function Ul(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function po(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function hd(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ua(e,t){const n=Us(e,t);if(n>=0)return e[1|n]}function Us(e,t){return function za(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),c=e[s<t?r=s:i=s+1}return~(r<((Vr=Vr||{})[Vr.Important=1]="Important",Vr[Vr.DashCase=2]="DashCase",Vr))();const tc=new Map;let Lg=0;const ic="__ngContext__";function yi(e,t){cn(t)?(e[ic]=t[20],function Ng(e){tc.set(e[20],e)}(t)):e[ic]=t}function sc(e,t){return undefined(e,t)}function ia(e){const t=e[3];return In(t)?t[3]:t}function oc(e){return Td(e[13])}function ac(e){return Td(e[4])}function Td(e){for(;null!==e&&!In(e);)e=e[4];return e}function vo(e,t,n,i,r){if(null!=i){let s,c=!1;In(i)?s=i:cn(i)&&(c=!0,i=i[0]);const g=_n(i);0===e&&null!==n?null==r?kd(t,n,g):Ws(t,n,g,r||null,!0):1===e&&null!==n?Ws(t,n,g,r||null,!0):2===e?function pc(e,t,n){const i=Ya(e,t);i&&function s_(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,g,c):3===e&&t.destroyNode(g),null!=s&&function l_(e,t,n,i,r){const s=n[7];s!==_n(n)&&vo(t,e,i,s,r);for(let g=10;g0&&(e[n-1][4]=i[4]);const s=Qo(e,10+t);!function Qg(e,t){ra(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const c=s[19];null!==c&&c.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function xd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&ra(e,t,n,3,null,null),function e_(e){let t=e[13];if(!t)return dc(e[1],e);for(;t;){let n=null;if(cn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)cn(t)&&dc(t[1],t),t=t[3];null===t&&(t=e),cn(t)&&dc(t[1],t),n=t&&t[4]}t=n}}(t)}}function dc(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function r_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[r=V]():i[r=-V].unsubscribe(),s+=2}else{const c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(let s=r+1;s{const c=s;Sc(c,n,[],i)&&(r||(r=[]),r.push(c))}),void 0!==r&&oh(r,n),n}function oh(e,t){for(let n=0;n{t.push(s)})}}function Sc(e,t,n,i){if(!(e=y(e)))return!1;let r=null,s=pt(e);const c=!s&&Ht(e);if(s||c){if(c&&!c.standalone)return!1;r=e}else{const M=e.ngModule;if(s=pt(M),!s)return!1;r=M}const g=i.has(r);if(c){if(g)return!1;if(i.add(r),c.dependencies){const M="function"==typeof c.dependencies?c.dependencies():c.dependencies;for(const V of M)Sc(V,t,n,i)}}else{if(!s)return!1;{if(null!=s.imports&&!g){let V;i.add(r);try{Br(s.imports,K=>{Sc(K,t,n,i)&&(V||(V=[]),V.push(K))})}finally{}void 0!==V&&oh(V,t)}if(!g){const V=Ee(r)||(()=>new r);t.push({provide:r,useFactory:V,deps:bt},{provide:ih,useValue:r,multi:!0},{provide:th,useValue:()=>m(r),multi:!0})}const M=s.providers;null==M||g||Br(M,K=>{t.push(K)})}}return r!==e&&void 0!==e.providers}const B_=E({provide:String,useValue:E});function wc(e){return null!==e&&"object"==typeof e&&B_ in e}function Ks(e){return"function"==typeof e}const Mc=new un("Set Injector scope."),el={},V_={};let Tc;function tl(){return void 0===Tc&&(Tc=new rh),Tc}class yo{}class ch extends yo{constructor(t,n,i,r){super(),this.parent=n,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ic(t,c=>this.processProvider(c)),this.records.set(nh,bo(void 0,this)),r.has("environment")&&this.records.set(yo,bo(void 0,this));const s=this.records.get(Mc);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(ih.multi,bt,Re.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=o(this),i=Se(void 0);try{return t()}finally{o(n),Se(i)}}get(t,n=mo,i=Re.Default){this.assertNotDestroyed();const r=o(this),s=Se(void 0);try{if(!(i&Re.SkipSelf)){let g=this.records.get(t);if(void 0===g){const M=function W_(e){return"function"==typeof e||"object"==typeof e&&e instanceof un}(t)&&ft(t);g=M&&this.injectableDefInScope(M)?bo(Ac(t),el):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(i&Re.Self?tl():this.parent).get(t,n=i&Re.Optional&&n===mo?null:n)}catch(c){if("NullInjectorError"===c.name){if((c[Xo]=c[Xo]||[]).unshift(D(t)),r)throw c;return function Ke(e,t,n,i){const r=e[Xo];throw t[Xl]&&r.unshift(t[Xl]),e.message=function st(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=D(t);if(Array.isArray(t))r=t.map(D).join(" -> ");else if("object"==typeof t){let s=[];for(let c in t)if(t.hasOwnProperty(c)){let g=t[c];s.push(c+":"+("string"==typeof g?JSON.stringify(g):D(g)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Ql,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Xo]=null,e}(c,t,"R3InjectorError",this.source)}throw c}finally{Se(s),o(r)}}resolveInjectorInitializers(){const t=o(this),n=Se(void 0);try{const i=this.get(th.multi,bt,Re.Self);for(const r of i)r()}finally{o(t),Se(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(D(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new u(205,!1)}processProvider(t){let n=Ks(t=y(t))?t:y(t&&t.provide);const i=function U_(e){return wc(e)?bo(void 0,e.useValue):bo(uh(e),el)}(t);if(Ks(t)||!0!==t.multi)this.records.get(n);else{let r=this.records.get(n);r||(r=bo(void 0,el,!0),r.factory=()=>ae(r.multi),this.records.set(n,r)),n=t,r.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===el&&(n.value=V_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=y(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Ac(e){const t=ft(e),n=null!==t?t.factory:Ee(e);if(null!==n)return n;if(e instanceof un)throw new u(204,!1);if(e instanceof Function)return function j_(e){const t=e.length;if(t>0)throw po(t,"?"),new u(204,!1);const n=function _t(e){const t=e&&(e[Rt]||e[Nn]);if(t){const n=function It(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new u(204,!1)}function uh(e,t,n){let i;if(Ks(e)){const r=y(e);return Ee(r)||Ac(r)}if(wc(e))i=()=>y(e.useValue);else if(function lh(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...ae(e.deps||[]));else if(function ah(e){return!(!e||!e.useExisting)}(e))i=()=>m(y(e.useExisting));else{const r=y(e&&(e.useClass||e.provide));if(!function z_(e){return!!e.deps}(e))return Ee(r)||Ac(r);i=()=>new r(...ae(e.deps))}return i}function bo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function G_(e){return!!e.\u0275providers}function Ic(e,t){for(const n of e)Array.isArray(n)?Ic(n,t):G_(n)?Ic(n.\u0275providers,t):t(n)}class dh{}class q_{resolveComponentFactory(t){throw function Y_(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let la=(()=>{class e{}return e.NULL=new q_,e})();function Z_(){return Co(mn(),qe())}function Co(e,t){return new ca(Un(e,t))}let ca=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Z_,e})();function Q_(e){return e instanceof ca?e.nativeElement:e}class fh{}let J_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function X_(){const e=qe(),n=Pn(mn().index,e);return(cn(n)?n:e)[11]}(),e})(),ev=(()=>{class e{}return e.\u0275prov=be({token:e,providedIn:"root",factory:()=>null}),e})();class ph{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const tv=new ph("14.3.0"),xc={};function Rc(e){return e.ngOriginalError}class ua{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Rc(t);for(;n&&Rc(n);)n=Rc(n);return n||null}}function gh(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||e.charCodeAt(r+s)<=32)return r}n=r+1}}const _h="ng-template";function hv(e,t,n){let i=0;for(;is?"":r[te+1].toLowerCase();const Pe=8&i?ve:null;if(Pe&&-1!==gh(Pe,V,0)||2&i&&V!==ve){if(yr(i))return!1;c=!0}}}}else{if(!c&&!yr(i)&&!yr(M))return!1;if(c&&yr(M))continue;c=!1,i=M|1&i}}return yr(i)||c}function yr(e){return 0==(1&e)}function mv(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+g+'"':"")+"]"}else 8&i?r+="."+c:4&i&&(r+=" "+c);else""!==r&&!yr(c)&&(t+=bh(s,r),r=""),i=c,s=s||!yr(i);n++}return""!==r&&(t+=bh(s,r)),t}const jt={};function Ch(e){Eh(xt(),qe(),ni()+e,!1)}function Eh(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&vs(t,s,n)}else{const s=e.preOrderHooks;null!==s&&ys(t,s,0,n)}Li(n)}function Mh(e,t=null,n=null,i){const r=Th(e,t,n,i);return r.resolveInjectorInitializers(),r}function Th(e,t=null,n=null,i,r=new Set){const s=[n||bt,N_(e)];return i=i||("object"==typeof e?void 0:D(e)),new ch(s,t||tl(),i||null,r)}let Ys=(()=>{class e{static create(n,i){var r;if(Array.isArray(n))return Mh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return Mh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=mo,e.NULL=new rh,e.\u0275prov=be({token:e,providedIn:"any",factory:()=>m(nh)}),e.__NG_ELEMENT_ID__=-1,e})();function So(e,t=Re.Default){const n=qe();return null===n?m(e,t):ka(mn(),n,y(e),t)}function Ph(){throw new Error("invalid")}function il(e,t){return e<<17|t<<2}function br(e){return e>>17&32767}function Nc(e){return 2|e}function as(e){return(131068&e)>>2}function Bc(e,t){return-131069&e|t<<2}function Hc(e){return 1|e}function Wh(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i22&&Eh(e,t,22,!1),n(i,r)}finally{Li(s)}}function Kh(e,t,n){if(Ei(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=M&&g.push(M),g.push(i,r,c)}}function ef(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function tf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function dy(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&eu(n)}}function eu(e){for(let i=oc(e);null!==i;i=ac(i))for(let r=10;r0&&eu(s)}const n=e[1].components;if(null!==n)for(let i=0;i0&&eu(r)}}function vy(e,t){const n=Pn(t,e),i=n[1];(function yy(e,t){for(let n=t.length;n-1&&(uc(t,i),Qo(n,i))}this._attachedToViewContainer=!1}xd(this._lView[1],this._lView)}onDestroy(t){qh(this._lView[1],this._lView,null,t)}markForCheck(){tu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){cl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new u(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Xg(e,t){ra(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new u(902,!1);this._appRef=t}}class by extends da{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;cl(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class ru extends la{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ht(t);return new ha(n,this.ngModule)}}function df(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Ey{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){const r=this.injector.get(t,xc,i);return r!==xc||n===xc?r:this.parentInjector.get(t,n,i)}}class ha extends dh{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Cv(e){return e.map(bv).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return df(this.componentDef.inputs)}get outputs(){return df(this.componentDef.outputs)}create(t,n,i,r){let s=(r=r||this.ngModule)instanceof yo?r:null==r?void 0:r.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const c=s?new Ey(t,s):t,g=c.get(fh,null);if(null===g)throw new u(407,!1);const M=c.get(ev,null),V=g.createRenderer(null,this.componentDef),K=this.componentDef.selectors[0][0]||"div",te=i?function ty(e,t,n){return e.selectRootElement(t,n===rt.ShadowDom)}(V,i,this.componentDef.encapsulation):cc(V,K,function Cy(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(K)),ve=this.componentDef.onPush?288:272,Pe=Qc(0,null,null,1,0,null,null,null,null,null),We=ol(null,Pe,null,ve,null,null,g,V,M,c,null);let it,ot;Pr(We);try{const ht=function wy(e,t,n,i,r,s){const c=n[1];n[22]=e;const M=wo(c,22,2,"#host",null),V=M.mergedAttrs=t.hostAttrs;null!==V&&(ul(M,V,!0),null!==e&&(J(r,e,V),null!==M.classes&&gc(r,e,M.classes),null!==M.styles&&jd(r,e,M.styles)));const K=i.createRenderer(e,t),te=ol(n,Yh(t),null,t.onPush?32:16,n[22],M,i,K,s||null,null,null);return c.firstCreatePass&&(js(mr(M,n),c,t.type),tf(c,M),nf(M,n.length,1)),ll(n,te),n[22]=te}(te,this.componentDef,We,g,V);if(te)if(i)J(V,te,["ng-version",tv.full]);else{const{attrs:wt,classes:Qe}=function Ev(e){const t=[],n=[];let i=1,r=2;for(;i0&&gc(V,te,Qe.join(" "))}if(ot=Ir(Pe,22),void 0!==n){const wt=ot.projection=[];for(let Qe=0;Qe=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ye(r.hostAttrs,n=Ye(n,r.hostAttrs))}}(i)}function ou(e){return e===Zt?{}:e===bt?[]:e}function Iy(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function xy(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function Oy(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let hl=null;function qs(){if(!hl){const e=Ft.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;ng(_n(nn[i.index])):i.index;let Pt=null;if(!g&&M&&(Pt=function zy(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sM?g[M]:null}"string"==typeof c&&(s+=2)}return null}(e,t,r,i.index)),null!==Pt)(Pt.__ngLastListenerFn__||Pt).__ngNextListenerFn__=s,Pt.__ngLastListenerFn__=s,Pe=!1;else{s=Of(i,t,te,s,!1);const nn=n.listen(ht,r,s);ve.push(s,nn),K&&K.push(r,Qe,wt,wt+1)}}else s=Of(i,t,te,s,!1);const We=i.outputs;let it;if(Pe&&null!==We&&(it=We[r])){const ot=it.length;if(ot)for(let ht=0;ht0;)t=t[15],e--;return t}(e,St.lFrame.contextLView))[8]}(e)}function $y(e,t){let n=null;const i=function gv(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r=0}function mu(e,t){return function Cr(e,t,n,i){const r=qe(),s=xt(),c=function Kt(e){const t=St.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);s.firstUpdatePass&&function Xf(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[ni()],c=function Jf(e,t){return t>=e.expandoStartIndex}(e,n);(function ip(e,t){return 0!=(e.flags&(t?16:32))})(s,i)&&null===t&&!c&&(t=!1),t=function nb(e,t,n,i){const r=function es(e){const t=St.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=ma(n=gu(null,e,t,n,i),t.attrs,i),s=null);else{const c=t.directiveStylingLast;if(-1===c||e[c]!==r)if(n=gu(r,e,t,n,i),null===s){let M=function ib(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==as(i))return e[br(i)]}(e,t,i);void 0!==M&&Array.isArray(M)&&(M=gu(null,e,t,M[1],i),M=ma(M,t.attrs,i),function rb(e,t,n,i){e[br(n?t.classBindings:t.styleBindings)]=i}(e,t,i,M))}else s=function sb(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(V=!0)}else K=n;if(r)if(0!==M){const ve=br(e[g+1]);e[i+1]=il(ve,g),0!==ve&&(e[ve+1]=Bc(e[ve+1],i)),e[g+1]=function jv(e,t){return 131071&e|t<<17}(e[g+1],i)}else e[i+1]=il(g,0),0!==g&&(e[g+1]=Bc(e[g+1],i)),g=i;else e[i+1]=il(M,0),0===g?g=i:e[M+1]=Bc(e[M+1],i),M=i;V&&(e[i+1]=Nc(e[i+1])),$f(e,K,i,!0),$f(e,K,i,!1),function Gy(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Us(s,t)>=0&&(n[i+1]=Hc(n[i+1]))}(t,K,e,i,s),c=il(g,M),s?t.classBindings=c:t.styleBindings=c}(r,s,t,n,c,i)}}(s,e,c,i),t!==jt&&bi(r,c,t)&&function tp(e,t,n,i,r,s,c,g){if(!(3&t.type))return;const M=e.data,V=M[g+1];vl(function Nh(e){return 1==(1&e)}(V)?np(M,t,n,r,as(V),c):void 0)||(vl(s)||function Fh(e){return 2==(2&e)}(V)&&(s=np(M,null,n,r,g,c)),function c_(e,t,n,i,r){if(t)r?e.addClass(n,i):e.removeClass(n,i);else{let s=-1===i.indexOf("-")?void 0:Vr.DashCase;null==r?e.removeStyle(n,i,s):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=Vr.Important),e.setStyle(n,i,r,s))}}(i,c,Si(ni(),n),r,s))}(s,s.data[ni()],r,r[11],e,r[c+1]=function lb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(function Ms(e){return e instanceof class Gd{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),i,c)}(e,t,null,!0),mu}function gu(e,t,n,i,r){let s=null;const c=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g0;){const M=e[r],V=Array.isArray(M),K=V?M[1]:M,te=null===K;let ve=n[r+1];ve===jt&&(ve=te?bt:void 0);let Pe=te?Ua(ve,i):K===i?ve:void 0;if(V&&!vl(Pe)&&(Pe=Ua(M,i)),vl(Pe)&&(g=Pe,c))return g;const We=e[r+1];r=c?br(We):as(We)}if(null!==t){let M=s?t.residualClasses:t.residualStyles;null!=M&&(g=Ua(M,i))}return g}function vl(e){return void 0!==e}function rp(e,t=""){const n=qe(),i=xt(),r=e+22,s=i.firstCreatePass?wo(i,r,1,t,null):i.data[r],c=n[r]=function lc(e,t){return e.createText(t)}(n[11],t);qa(i,n,c,s),wi(s,!1)}function _u(e){return yl("",e,""),_u}function yl(e,t,n){const i=qe(),r=function Ao(e,t,n,i){return bi(e,lt(),n)?t+C(n)+i:jt}(i,e,t,n);return r!==jt&&function ls(e,t,n){const i=Si(t,e);!function Ad(e,t,n){e.setValue(t,n)}(e[11],i,n)}(i,ni(),r),yl}function vu(e,t,n){const i=qe();return bi(i,lt(),t)&&Zi(xt(),fn(),i,e,t,i[11],n,!0),vu}const Qs=void 0;var Ab=["en",[["a","p"],["AM","PM"],Qs],[["AM","PM"],Qs,Qs],[["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"]],Qs,[["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"]],Qs,[["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 a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qs,"{1} 'at' {0}",Qs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Tb(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let No={};function yu(e){const t=function Ib(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Sp(t);if(n)return n;const i=t.split("-")[0];if(n=Sp(i),n)return n;if("en"===i)return Ab;throw new u(701,!1)}function Dp(e){return yu(e)[Ot.PluralCase]}function Sp(e){return e in No||(No[e]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[e]),No[e]}var Ot=(()=>((Ot=Ot||{})[Ot.LocaleId=0]="LocaleId",Ot[Ot.DayPeriodsFormat=1]="DayPeriodsFormat",Ot[Ot.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ot[Ot.DaysFormat=3]="DaysFormat",Ot[Ot.DaysStandalone=4]="DaysStandalone",Ot[Ot.MonthsFormat=5]="MonthsFormat",Ot[Ot.MonthsStandalone=6]="MonthsStandalone",Ot[Ot.Eras=7]="Eras",Ot[Ot.FirstDayOfWeek=8]="FirstDayOfWeek",Ot[Ot.WeekendRange=9]="WeekendRange",Ot[Ot.DateFormat=10]="DateFormat",Ot[Ot.TimeFormat=11]="TimeFormat",Ot[Ot.DateTimeFormat=12]="DateTimeFormat",Ot[Ot.NumberSymbols=13]="NumberSymbols",Ot[Ot.NumberFormats=14]="NumberFormats",Ot[Ot.CurrencyCode=15]="CurrencyCode",Ot[Ot.CurrencySymbol=16]="CurrencySymbol",Ot[Ot.CurrencyName=17]="CurrencyName",Ot[Ot.Currencies=18]="Currencies",Ot[Ot.Directionality=19]="Directionality",Ot[Ot.PluralCase=20]="PluralCase",Ot[Ot.ExtraData=21]="ExtraData",Ot))();const Bo="en-US";let wp=Bo;function Eu(e,t,n,i,r){if(e=y(e),Array.isArray(e))for(let s=0;s>20;if(Ks(e)||!e.multi){const Pe=new bs(M,r,So),We=Su(g,t,r?K:K+ve,te);-1===We?(js(mr(V,c),s,g),Du(s,e,t.length),t.push(g),V.directiveStart++,V.directiveEnd++,r&&(V.providerIndexes+=1048576),n.push(Pe),c.push(Pe)):(n[We]=Pe,c[We]=Pe)}else{const Pe=Su(g,t,K+ve,te),We=Su(g,t,K,K+ve),it=Pe>=0&&n[Pe],ot=We>=0&&n[We];if(r&&!ot||!r&&!it){js(mr(V,c),s,g);const ht=function T0(e,t,n,i,r){const s=new bs(e,n,So);return s.multi=[],s.index=t,s.componentProviders=0,Zp(s,r,i&&!n),s}(r?M0:w0,n.length,r,i,M);!r&&ot&&(n[We].providerFactory=ht),Du(s,e,t.length,0),t.push(g),V.directiveStart++,V.directiveEnd++,r&&(V.providerIndexes+=1048576),n.push(ht),c.push(ht)}else Du(s,e,Pe>-1?Pe:We,Zp(n[r?We:Pe],M,!r&&i));!r&&i&&ot&&n[We].componentProviders++}}}function Du(e,t,n,i){const r=Ks(t),s=function H_(e){return!!e.useClass}(t);if(r||s){const M=(s?y(t.useClass):t).prototype.ngOnDestroy;if(M){const V=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const K=V.indexOf(n);-1===K?V.push(n,[i,M]):V[K+1].push(i,M)}else V.push(n,M)}}}function Zp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Su(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function S0(e,t,n){const i=xt();if(i.firstCreatePass){const r=Yn(e);Eu(n,i.data,i.blueprint,r,!0),Eu(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class Ho{}function I0(e,t){return new Jp(e,null!=t?t:null)}class Jp extends Ho{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ru(this);const i=Dn(t);this._bootstrapComponents=function os(e){return e instanceof Function?e():e}(i.bootstrap),this._r3Injector=Th(t,n,[{provide:Ho,useValue:this},{provide:la,useValue:this.componentFactoryResolver}],D(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Mu extends class A0{}{constructor(t){super(),this.moduleType=t}create(t){return new Jp(this.moduleType,t)}}function om(e,t,n){const i=S()+e,r=qe();return r[i]===jt?Ur(r,i,n?t.call(n):t()):function pa(e,t){return e[t]}(r,i)}function am(e,t,n,i){return function cm(e,t,n,i,r,s){const c=t+n;return bi(e,c,r)?Ur(e,c+1,s?i.call(s,r):i(r)):Ca(e,c+1)}(qe(),S(),e,t,n,i)}function lm(e,t,n,i,r){return function um(e,t,n,i,r,s,c){const g=t+n;return function Zs(e,t,n,i){const r=bi(e,t,n);return bi(e,t+1,i)||r}(e,g,r,s)?Ur(e,g+2,c?i.call(c,r,s):i(r,s)):Ca(e,g+2)}(qe(),S(),e,t,n,i,r)}function Ca(e,t){const n=e[t];return n===jt?void 0:n}function Au(e){return t=>{setTimeout(e,void 0,t)}}const Wr=class tC extends _.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,c;let g=t,M=n||(()=>null),V=i;if(t&&"object"==typeof t){const te=t;g=null===(r=te.next)||void 0===r?void 0:r.bind(te),M=null===(s=te.error)||void 0===s?void 0:s.bind(te),V=null===(c=te.complete)||void 0===c?void 0:c.bind(te)}this.__isAsync&&(M=Au(M),g&&(g=Au(g)),V&&(V=Au(V)));const K=super.subscribe({next:g,error:M,complete:V});return t instanceof j.w0&&t.add(K),K}};function nC(){return this._results[qs()]()}class Sl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=qs(),i=Sl.prototype;i[n]||(i[n]=nC)}get changes(){return this._changes||(this._changes=new Wr)}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){const i=this;i.dirty=!1;const r=Ni(t);(this._changesDetected=!function ud(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=sC,e})();const iC=Da,rC=class extends iC{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t,n){const i=this._declarationTContainer.tViews,r=ol(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,n||null);r[17]=this._declarationLView[this._declarationTContainer.index];const c=this._declarationLView[19];return null!==c&&(r[19]=c.createEmbeddedView(i)),Yc(i,r,t),new da(r)}};function sC(){return wl(mn(),qe())}function wl(e,t){return 4&e.type?new rC(t,e,Co(e,t)):null}let Ml=(()=>{class e{}return e.__NG_ELEMENT_ID__=oC,e})();function oC(){return gm(mn(),qe())}const aC=Ml,pm=class extends aC{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Co(this._hostTNode,this._hostLView)}get injector(){return new Nr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Vs(this._hostTNode,this._hostLView);if(Yt(t)){const n=Vt(t,this._hostLView),i=zt(t);return new Nr(n[1].data[i+8],n)}return new Nr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const c=t.createEmbeddedView(n||{},s);return this.insert(c,r),c}createComponent(t,n,i,r,s){const c=t&&!function fo(e){return"function"==typeof e}(t);let g;if(c)g=n;else{const te=n||{};g=te.index,i=te.injector,r=te.projectableNodes,s=te.environmentInjector||te.ngModuleRef}const M=c?t:new ha(Ht(t)),V=i||this.parentInjector;if(!s&&null==M.ngModule){const ve=(c?V:this.parentInjector).get(yo,null);ve&&(s=ve)}const K=M.create(V,r,void 0,s);return this.insert(K.hostView,g),K}insert(t,n){const i=t._lView,r=i[1];if(function hs(e){return In(e[3])}(i)){const K=this.indexOf(t);if(-1!==K)this.detach(K);else{const te=i[3],ve=new pm(te,te[6],te[3]);ve.detach(ve.indexOf(t))}}const s=this._adjustIndex(n),c=this._lContainer;!function t_(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i0)i.push(c[g/2]);else{const V=s[g+1],K=t[-M];for(let te=10;te{class e{constructor(n){this.appInits=n,this.resolve=Al,this.reject=Al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:g,error:M})});n.push(c)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(m(Wm,8))},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Gm=new un("AppId",{providedIn:"root",factory:function Km(){return`${Hu()}${Hu()}${Hu()}`}});function Hu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ym=new un("Platform Initializer"),LC=new un("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),FC=new un("appBootstrapListener"),NC=new un("AnimationModuleType"),xl=new un("LocaleId",{providedIn:"root",factory:()=>G(xl,Re.Optional|Re.SkipSelf)||function BC(){return"undefined"!=typeof $localize&&$localize.locale||Bo}()}),HC=new un("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),zC=(()=>Promise.resolve(0))();function Vu(e){"undefined"==typeof Zone?zC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class nr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Wr(!1),this.onMicrotaskEmpty=new Wr(!1),this.onStable=new Wr(!1),this.onError=new Wr(!1),"undefined"==typeof Zone)throw new u(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new s("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $C(){let e=Ft.requestAnimationFrame,t=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function KC(e){const t=()=>{!function GC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ft,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Uu(e),e.isCheckStableRunning=!0,ju(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Uu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,c,g)=>{try{return Qm(e),n.invokeTask(r,s,c,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Jm(e)}},onInvoke:(n,i,r,s,c,g,M)=>{try{return Qm(e),n.invoke(r,s,c,g,M)}finally{e.shouldCoalesceRunChangeDetection&&t(),Jm(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Uu(e),ju(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nr.isInAngularZone())throw new u(909,!1)}static assertNotInAngularZone(){if(nr.isInAngularZone())throw new u(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,c=s.scheduleEventTask("NgZoneEvent: "+r,t,WC,Al,Al);try{return s.runTask(c,n,i)}finally{s.cancelTask(c)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const WC={};function ju(e){if(0==e._nesting&&!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 Uu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Qm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jm(e){e._nesting--,ju(e)}class YC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Wr,this.onMicrotaskEmpty=new Wr,this.onStable=new Wr,this.onError=new Wr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}const Xm=new un(""),eg=new un("");let wa,qC=(()=>{class e{constructor(n,i,r){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,wa||(function ZC(e){wa=e}(r),r.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{nr.assertNotInAngularZone(),Vu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Vu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(m(nr),m(tg),m(eg))},e.\u0275prov=be({token:e,factory:e.\u0275fac}),e})(),tg=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){var r;return null!==(r=null==wa?void 0:wa.findTestabilityInTree(this,n,i))&&void 0!==r?r:null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Gr=null;const ng=new un("AllowMultipleToken"),zu=new un("PlatformDestroyListeners");function rg(e,t,n=[]){const i=`Platform: ${t}`,r=new un(i);return(s=[])=>{let c=$u();if(!c||c.injector.get(ng,!1)){const g=[...n,...s,{provide:r,useValue:!0}];e?e(g):function XC(e){if(Gr&&!Gr.get(ng,!1))throw new u(400,!1);Gr=e;const t=e.get(og);(function ig(e){const t=e.get(Ym,null);t&&t.forEach(n=>n())})(e)}(function sg(e=[],t){return Ys.create({name:t,providers:[{provide:Mc,useValue:"platform"},{provide:zu,useValue:new Set([()=>Gr=null])},...e]})}(g,i))}return function tE(e){const t=$u();if(!t)throw new u(401,!1);return t}()}}function $u(){var e;return null!==(e=null==Gr?void 0:Gr.get(og))&&void 0!==e?e:null}let og=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const r=function lg(e,t){let n;return n="noop"===e?new YC:("zone.js"===e?void 0:e)||new nr(t),n}(null==i?void 0:i.ngZone,function ag(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:nr,useValue:r}];return r.run(()=>{const c=Ys.create({providers:s,parent:this.injector,name:n.moduleType.name}),g=n.create(c),M=g.injector.get(ua,null);if(!M)throw new u(402,!1);return r.runOutsideAngular(()=>{const V=r.onError.subscribe({next:K=>{M.handleError(K)}});g.onDestroy(()=>{Rl(this._modules,g),V.unsubscribe()})}),function cg(e,t,n){try{const i=n();return hu(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(M,r,()=>{const V=g.injector.get(Il);return V.runInitializers(),V.donePromise.then(()=>(function Mp(e){Oe(e,"Expected localeId to be defined"),"string"==typeof e&&(wp=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(xl,Bo)||Bo),this._moduleDoBootstrap(g),g))})})}bootstrapModule(n,i=[]){const r=ug({},i);return function QC(e,t,n){const i=new Mu(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(Ol);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new u(403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new u(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(zu,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(m(Ys))},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ug(e,t){return Array.isArray(t)?t.reduce(ug,e):Object.assign(Object.assign({},e),t)}let Ol=(()=>{class e{constructor(n,i,r){this._zone=n,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new p.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),c=new p.y(g=>{let M;this._zone.runOutsideAngular(()=>{M=this._zone.onStable.subscribe(()=>{nr.assertNotInAngularZone(),Vu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const V=this._zone.onUnstable.subscribe(()=>{nr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{M.unsubscribe(),V.unsubscribe()}});this.isStable=(0,h.T)(s,c.pipe((0,b.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const r=n instanceof dh;if(!this._injector.get(Il).done)throw!r&&function si(e){const t=Ht(e)||dn(e)||pn(e);return null!==t&&t.standalone}(n),new u(405,false);let c;c=r?n:this._injector.get(la).resolveComponentFactory(n),this.componentTypes.push(c.componentType);const g=function JC(e){return e.isBoundToModule}(c)?void 0:this._injector.get(Ho),V=c.create(Ys.NULL,[],i||c.selector,g),K=V.location.nativeElement,te=V.injector.get(Xm,null);return null==te||te.registerApplication(K),V.onDestroy(()=>{this.detachView(V.hostView),Rl(this.components,V),null==te||te.unregisterApplication(K)}),this._loadComponent(V),V}tick(){if(this._runningTick)throw new u(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Rl(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(FC,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Rl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new u(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(m(nr),m(yo),m(ua))},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Rl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let hg=!0,fg=!1;function iE(){return fg=!0,hg}function rE(){if(fg)throw new Error("Cannot enable prod mode after platform setup.");hg=!1}let sE=(()=>{class e{}return e.__NG_ELEMENT_ID__=oE,e})();function oE(e){return function aE(e,t,n){if(Di(e)&&!n){const i=Pn(e.index,t);return new da(i,i)}return 47&e.type?new da(t[16],t):null}(mn(),qe(),16==(16&e))}class _g{constructor(){}supports(t){return fa(t)}create(t){return new fE(t)}}const hE=(e,t)=>t;class fE{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||hE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const c=!i||n&&n.currentIndex{c=this._trackByFn(r,g),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,g,c,r)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,c,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new pE(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new vg),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class pE{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class mE{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class vg{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new mE,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yg(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,c=r._next;return s&&(s._next=c),c&&(c._prev=s),r._next=null,r._prev=null,r}const i=new _E(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class _E{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Cg(){return new qu([new _g])}let qu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Cg()),deps:[[e,new Tt,new Bt]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new u(901,!1)}}return e.\u0275prov=be({token:e,providedIn:"root",factory:Cg}),e})();function Eg(){return new Zu([new bg])}let Zu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Eg()),deps:[[e,new Tt,new Bt]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new u(901,!1)}}return e.\u0275prov=be({token:e,providedIn:"root",factory:Eg}),e})();const bE=rg(null,"core",[]);let CE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(m(Ol))},e.\u0275mod=An({type:e}),e.\u0275inj=Ue({}),e})();function EE(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},2382:(nt,Fe,$)=>{"use strict";$.d(Fe,{Zs:()=>Zn,Fj:()=>v,NI:()=>Di,oH:()=>mi,sg:()=>oe,Cf:()=>Q,JU:()=>u,a5:()=>ie,JJ:()=>Xe,F:()=>cn,wV:()=>Xi,UX:()=>cr,kI:()=>Be});var _=$(5e3),j=$(9808),p=$(2076),h=$(8306),b=$(4742),E=$(8421),x=$(3269),D=$(5403),I=$(3268),P=$(1810),y=$(4004);let l=(()=>{class B{constructor(S,q){this._renderer=S,this._elementRef=q,this.onChange=je=>{},this.onTouched=()=>{}}setProperty(S,q){this._renderer.setProperty(this._elementRef.nativeElement,S,q)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(_.Qsj),_.Y36(_.SBq))},B.\u0275dir=_.lG2({type:B}),B})(),f=(()=>{class B extends l{}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,features:[_.qOj]}),B})();const u=new _.OlP("NgValueAccessor"),R={provide:u,useExisting:(0,_.Gpc)(()=>v),multi:!0},W=new _.OlP("CompositionEventMode");let v=(()=>{class B extends l{constructor(S,q,je){super(S,q),this._compositionMode=je,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function U(){const B=(0,j.q)()?(0,j.q)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(S){this.setProperty("value",null==S?"":S)}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(W,8))},B.\u0275dir=_.lG2({type:B,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(S,q){1&S&&_.NdJ("input",function(lt){return q._handleInput(lt.target.value)})("blur",function(){return q.onTouched()})("compositionstart",function(){return q._compositionStart()})("compositionend",function(lt){return q._compositionEnd(lt.target.value)})},features:[_._Bn([R]),_.qOj]}),B})();function F(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}function Z(B){return null!=B&&"number"==typeof B.length}const Q=new _.OlP("NgValidators"),ne=new _.OlP("NgAsyncValidators"),we=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Be{static min(k){return function Ie(B){return k=>{if(F(k.value)||F(B))return null;const S=parseFloat(k.value);return!isNaN(S)&&S{if(F(k.value)||F(B))return null;const S=parseFloat(k.value);return!isNaN(S)&&S>B?{max:{max:B,actual:k.value}}:null}}(k)}static required(k){return re(k)}static requiredTrue(k){return _e(k)}static email(k){return function ee(B){return F(B.value)||we.test(B.value)?null:{email:!0}}(k)}static minLength(k){return function he(B){return k=>F(k.value)||!Z(k.value)?null:k.value.lengthZ(k.value)&&k.value.length>B?{maxlength:{requiredLength:B,actualLength:k.value.length}}:null}(k)}static pattern(k){return function Oe(B){if(!B)return ye;let k,S;return"string"==typeof B?(S="","^"!==B.charAt(0)&&(S+="^"),S+=B,"$"!==B.charAt(B.length-1)&&(S+="$"),k=new RegExp(S)):(S=B.toString(),k=B),q=>{if(F(q.value))return null;const je=q.value;return k.test(je)?null:{pattern:{requiredPattern:S,actualValue:je}}}}(k)}static nullValidator(k){return null}static compose(k){return ft(k)}static composeAsync(k){return kt(k)}}function re(B){return F(B.value)?{required:!0}:null}function _e(B){return!0===B.value?null:{required:!0}}function ye(B){return null}function Ne(B){return null!=B}function ue(B){return(0,_.QGY)(B)?(0,p.D)(B):B}function de(B){let k={};return B.forEach(S=>{k=null!=S?Object.assign(Object.assign({},k),S):k}),0===Object.keys(k).length?null:k}function be(B,k){return k.map(S=>S(B))}function Ue(B){return B.map(k=>function ke(B){return!B.validate}(k)?k:S=>k.validate(S))}function ft(B){if(!B)return null;const k=B.filter(Ne);return 0==k.length?null:function(S){return de(be(S,k))}}function Je(B){return null!=B?ft(Ue(B)):null}function kt(B){if(!B)return null;const k=B.filter(Ne);return 0==k.length?null:function(S){return function T(...B){const k=(0,x.jO)(B),{args:S,keys:q}=(0,b.D)(B),je=new h.y(lt=>{const{length:Kt}=S;if(!Kt)return void lt.complete();const ti=new Array(Kt);let Pi=Kt,ur=Kt;for(let dr=0;dr{hr||(hr=!0,ur--),ti[dr]=es},()=>Pi--,void 0,()=>{(!Pi||!hr)&&(ur||lt.next(q?(0,P.n)(q,ti):ti),lt.complete())}))}});return k?je.pipe((0,I.Z)(k)):je}(be(S,k).map(ue)).pipe((0,y.U)(de))}}function _t(B){return null!=B?kt(Ue(B)):null}function It(B,k){return null===B?[k]:Array.isArray(B)?[...B,k]:[B,k]}function pt(B){return B._rawValidators}function Rt(B){return B._rawAsyncValidators}function gn(B){return B?Array.isArray(B)?B:[B]:[]}function Nn(B,k){return Array.isArray(B)?B.includes(k):B===k}function Tn(B,k){const S=gn(k);return gn(B).forEach(je=>{Nn(S,je)||S.push(je)}),S}function Re(B,k){return gn(k).filter(S=>!Nn(B,S))}class $e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(k){this._rawValidators=k||[],this._composedValidatorFn=Je(this._rawValidators)}_setAsyncValidators(k){this._rawAsyncValidators=k||[],this._composedAsyncValidatorFn=_t(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(k){this._onDestroyCallbacks.push(k)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(k=>k()),this._onDestroyCallbacks=[]}reset(k){this.control&&this.control.reset(k)}hasError(k,S){return!!this.control&&this.control.hasError(k,S)}getError(k,S){return this.control?this.control.getError(k,S):null}}class ie extends $e{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Se extends $e{get formDirective(){return null}get path(){return null}}let Xe=(()=>{class B extends class Ce{constructor(k){this._cd=k}get isTouched(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.touched)}get isUntouched(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.untouched)}get isPristine(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.pristine)}get isDirty(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.dirty)}get isValid(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.valid)}get isInvalid(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.invalid)}get isPending(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.pending)}get isSubmitted(){var k;return!(null===(k=this._cd)||void 0===k||!k.submitted)}}{constructor(S){super(S)}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(ie,2))},B.\u0275dir=_.lG2({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,q){2&S&&_.ekj("ng-untouched",q.isUntouched)("ng-touched",q.isTouched)("ng-pristine",q.isPristine)("ng-dirty",q.isDirty)("ng-valid",q.isValid)("ng-invalid",q.isInvalid)("ng-pending",q.isPending)},features:[_.qOj]}),B})();const An="VALID",Kn="INVALID",En="PENDING",jn="DISABLED";function Bn(B){return(si(B)?B.validators:B)||null}function Ht(B){return Array.isArray(B)?Je(B):B||null}function dn(B,k){return(si(k)?k.asyncValidators:B)||null}function pn(B){return Array.isArray(B)?_t(B):B||null}function si(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}class Xn{constructor(k,S){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=k,this._rawAsyncValidators=S,this._composedValidatorFn=Ht(this._rawValidators),this._composedAsyncValidatorFn=pn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(k){this._rawValidators=this._composedValidatorFn=k}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(k){this._rawAsyncValidators=this._composedAsyncValidatorFn=k}get parent(){return this._parent}get valid(){return this.status===An}get invalid(){return this.status===Kn}get pending(){return this.status==En}get disabled(){return this.status===jn}get enabled(){return this.status!==jn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(k){this._rawValidators=k,this._composedValidatorFn=Ht(k)}setAsyncValidators(k){this._rawAsyncValidators=k,this._composedAsyncValidatorFn=pn(k)}addValidators(k){this.setValidators(Tn(k,this._rawValidators))}addAsyncValidators(k){this.setAsyncValidators(Tn(k,this._rawAsyncValidators))}removeValidators(k){this.setValidators(Re(k,this._rawValidators))}removeAsyncValidators(k){this.setAsyncValidators(Re(k,this._rawAsyncValidators))}hasValidator(k){return Nn(this._rawValidators,k)}hasAsyncValidator(k){return Nn(this._rawAsyncValidators,k)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(k={}){this.touched=!0,this._parent&&!k.onlySelf&&this._parent.markAsTouched(k)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(k=>k.markAllAsTouched())}markAsUntouched(k={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(S=>{S.markAsUntouched({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}markAsDirty(k={}){this.pristine=!1,this._parent&&!k.onlySelf&&this._parent.markAsDirty(k)}markAsPristine(k={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(S=>{S.markAsPristine({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}markAsPending(k={}){this.status=En,!1!==k.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!k.onlySelf&&this._parent.markAsPending(k)}disable(k={}){const S=this._parentMarkedDirty(k.onlySelf);this.status=jn,this.errors=null,this._forEachChild(q=>{q.disable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this._updateValue(),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:S})),this._onDisabledChange.forEach(q=>q(!0))}enable(k={}){const S=this._parentMarkedDirty(k.onlySelf);this.status=An,this._forEachChild(q=>{q.enable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:S})),this._onDisabledChange.forEach(q=>q(!1))}_updateAncestors(k){this._parent&&!k.onlySelf&&(this._parent.updateValueAndValidity(k),k.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(k){this._parent=k}getRawValue(){return this.value}updateValueAndValidity(k={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===An||this.status===En)&&this._runAsyncValidator(k.emitEvent)),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!k.onlySelf&&this._parent.updateValueAndValidity(k)}_updateTreeValidity(k={emitEvent:!0}){this._forEachChild(S=>S._updateTreeValidity(k)),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jn:An}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(k){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const S=ue(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(q=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(q,{emitEvent:k})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(k,S={}){this.errors=k,this._updateControlsErrors(!1!==S.emitEvent)}get(k){let S=k;return null==S||(Array.isArray(S)||(S=S.split(".")),0===S.length)?null:S.reduce((q,je)=>q&&q._find(je),this)}getError(k,S){const q=S?this.get(S):this;return q&&q.errors?q.errors[k]:null}hasError(k,S){return!!this.getError(k,S)}get root(){let k=this;for(;k._parent;)k=k._parent;return k}_updateControlsErrors(k){this.status=this._calculateStatus(),k&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(k)}_initObservables(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}_calculateStatus(){return this._allControlsDisabled()?jn:this.errors?Kn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(Kn)?Kn:An}_anyControlsHaveStatus(k){return this._anyControls(S=>S.status===k)}_anyControlsDirty(){return this._anyControls(k=>k.dirty)}_anyControlsTouched(){return this._anyControls(k=>k.touched)}_updatePristine(k={}){this.pristine=!this._anyControlsDirty(),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}_updateTouched(k={}){this.touched=this._anyControlsTouched(),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}_registerOnCollectionChange(k){this._onCollectionChange=k}_setUpdateStrategy(k){si(k)&&null!=k.updateOn&&(this._updateOn=k.updateOn)}_parentMarkedDirty(k){return!k&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(k){return null}}class Hn extends Xn{constructor(k,S,q){super(Bn(S),dn(q,S)),this.controls=k,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(k,S){return this.controls[k]?this.controls[k]:(this.controls[k]=S,S.setParent(this),S._registerOnCollectionChange(this._onCollectionChange),S)}addControl(k,S,q={}){this.registerControl(k,S),this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}removeControl(k,S={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}setControl(k,S,q={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],S&&this.registerControl(k,S),this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}contains(k){return this.controls.hasOwnProperty(k)&&this.controls[k].enabled}setValue(k,S={}){(function Jn(B,k,S){B._forEachChild((q,je)=>{if(void 0===S[je])throw new _.vHH(1002,"")})})(this,0,k),Object.keys(k).forEach(q=>{(function Dn(B,k,S){const q=B.controls;if(!(k?Object.keys(q):q).length)throw new _.vHH(1e3,"");if(!q[S])throw new _.vHH(1001,"")})(this,!0,q),this.controls[q].setValue(k[q],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(k,S={}){null!=k&&(Object.keys(k).forEach(q=>{const je=this.controls[q];je&&je.patchValue(k[q],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(k={},S={}){this._forEachChild((q,je)=>{q.reset(k[je],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(k,S,q)=>(k[q]=S.getRawValue(),k))}_syncPendingControls(){let k=this._reduceChildren(!1,(S,q)=>!!q._syncPendingControls()||S);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_forEachChild(k){Object.keys(this.controls).forEach(S=>{const q=this.controls[S];q&&k(q,S)})}_setUpControls(){this._forEachChild(k=>{k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(k){for(const[S,q]of Object.entries(this.controls))if(this.contains(S)&&k(q))return!0;return!1}_reduceValue(){return this._reduceChildren({},(S,q,je)=>((q.enabled||this.disabled)&&(S[je]=q.value),S))}_reduceChildren(k,S){let q=k;return this._forEachChild((je,lt)=>{q=S(q,je,lt)}),q}_allControlsDisabled(){for(const k of Object.keys(this.controls))if(this.controls[k].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(k){return this.controls.hasOwnProperty(k)?this.controls[k]:null}}function pe(B,k){var S,q;Ve(B,k),k.valueAccessor.writeValue(B.value),B.disabled&&(null===(q=(S=k.valueAccessor).setDisabledState)||void 0===q||q.call(S,!0)),function gt(B,k){k.valueAccessor.registerOnChange(S=>{B._pendingValue=S,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&Qt(B,k)})}(B,k),function hn(B,k){const S=(q,je)=>{k.valueAccessor.writeValue(q),je&&k.viewToModelUpdate(q)};B.registerOnChange(S),k._registerOnDestroy(()=>{B._unregisterOnChange(S)})}(B,k),function mt(B,k){k.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&Qt(B,k),"submit"!==B.updateOn&&B.markAsTouched()})}(B,k),function Te(B,k){if(k.valueAccessor.setDisabledState){const S=q=>{k.valueAccessor.setDisabledState(q)};B.registerOnDisabledChange(S),k._registerOnDestroy(()=>{B._unregisterOnDisabledChange(S)})}}(B,k)}function le(B,k,S=!0){const q=()=>{};k.valueAccessor&&(k.valueAccessor.registerOnChange(q),k.valueAccessor.registerOnTouched(q)),tt(B,k),B&&(k._invokeOnDestroyCallbacks(),B._registerOnCollectionChange(()=>{}))}function se(B,k){B.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(k)})}function Ve(B,k){const S=pt(B);null!==k.validator?B.setValidators(It(S,k.validator)):"function"==typeof S&&B.setValidators([S]);const q=Rt(B);null!==k.asyncValidator?B.setAsyncValidators(It(q,k.asyncValidator)):"function"==typeof q&&B.setAsyncValidators([q]);const je=()=>B.updateValueAndValidity();se(k._rawValidators,je),se(k._rawAsyncValidators,je)}function tt(B,k){let S=!1;if(null!==B){if(null!==k.validator){const je=pt(B);if(Array.isArray(je)&&je.length>0){const lt=je.filter(Kt=>Kt!==k.validator);lt.length!==je.length&&(S=!0,B.setValidators(lt))}}if(null!==k.asyncValidator){const je=Rt(B);if(Array.isArray(je)&&je.length>0){const lt=je.filter(Kt=>Kt!==k.asyncValidator);lt.length!==je.length&&(S=!0,B.setAsyncValidators(lt))}}}const q=()=>{};return se(k._rawValidators,q),se(k._rawAsyncValidators,q),S}function Qt(B,k){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),k.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Et(B,k){Ve(B,k)}function Vn(B,k){B._syncPendingControls(),k.forEach(S=>{const q=S.control;"submit"===q.updateOn&&q._pendingChange&&(S.viewToModelUpdate(q._pendingValue),q._pendingChange=!1)})}const Ci={provide:Se,useExisting:(0,_.Gpc)(()=>cn)},fi=(()=>Promise.resolve())();let cn=(()=>{class B extends Se{constructor(S,q){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new _.vpe,this.form=new Hn({},Je(S),_t(q))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){fi.then(()=>{const q=this._findContainer(S.path);S.control=q.registerControl(S.name,S.control),pe(S.control,S),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){fi.then(()=>{const q=this._findContainer(S.path);q&&q.removeControl(S.name),this._directives.delete(S)})}addFormGroup(S){fi.then(()=>{const q=this._findContainer(S.path),je=new Hn({});Et(je,S),q.registerControl(S.name,je),je.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){fi.then(()=>{const q=this._findContainer(S.path);q&&q.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,q){fi.then(()=>{this.form.get(S.path).setValue(q)})}setValue(S){this.control.setValue(S)}onSubmit(S){var q;return this.submitted=!0,Vn(this.form,this._directives),this.ngSubmit.emit(S),"dialog"===(null===(q=null==S?void 0:S.target)||void 0===q?void 0:q.method)}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(Q,10),_.Y36(ne,10))},B.\u0275dir=_.lG2({type:B,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,q){1&S&&_.NdJ("submit",function(lt){return q.onSubmit(lt)})("reset",function(){return q.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Ci]),_.qOj]}),B})();function In(B,k){const S=B.indexOf(k);S>-1&&B.splice(S,1)}function Ei(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}const Di=class extends Xn{constructor(k=null,S,q){super(Bn(S),dn(q,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(k),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),si(S)&&(S.nonNullable||S.initialValueIsDefault)&&(this.defaultValue=Ei(k)?k.value:k)}setValue(k,S={}){this.value=this._pendingValue=k,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(q=>q(this.value,!1!==S.emitViewToModelChange)),this.updateValueAndValidity(S)}patchValue(k,S={}){this.setValue(k,S)}reset(k=this.defaultValue,S={}){this._applyFormState(k),this.markAsPristine(S),this.markAsUntouched(S),this.setValue(this.value,S),this._pendingChange=!1}_updateValue(){}_anyControls(k){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(k){this._onChange.push(k)}_unregisterOnChange(k){In(this._onChange,k)}registerOnDisabledChange(k){this._onDisabledChange.push(k)}_unregisterOnDisabledChange(k){In(this._onDisabledChange,k)}_forEachChild(k){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(k){Ei(k)?(this.value=this._pendingValue=k.value,k.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=k}},Sr={provide:u,useExisting:(0,_.Gpc)(()=>Xi),multi:!0};let Xi=(()=>{class B extends f{writeValue(S){this.setProperty("value",null==S?"":S)}registerOnChange(S){this.onChange=q=>{S(""==q?null:parseFloat(q))}}}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,q){1&S&&_.NdJ("input",function(lt){return q.onChange(lt.target.value)})("blur",function(){return q.onTouched()})},features:[_._Bn([Sr]),_.qOj]}),B})(),Qr=(()=>{class B{}return B.\u0275fac=function(S){return new(S||B)},B.\u0275mod=_.oAB({type:B}),B.\u0275inj=_.cJS({}),B})();const ds=new _.OlP("NgModelWithFormControlWarning"),xs={provide:ie,useExisting:(0,_.Gpc)(()=>mi)};let mi=(()=>{class B extends ie{constructor(S,q,je,lt){super(),this._ngModelWarningConfig=lt,this.update=new _.vpe,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(q),this.valueAccessor=function ui(B,k){if(!k)return null;let S,q,je;return Array.isArray(k),k.forEach(lt=>{lt.constructor===v?S=lt:function ci(B){return Object.getPrototypeOf(B.constructor)===f}(lt)?q=lt:je=lt}),je||q||S||null}(0,je)}set isDisabled(S){}ngOnChanges(S){if(this._isControlChanged(S)){const q=S.form.previousValue;q&&le(q,this,!1),pe(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}(function li(B,k){if(!B.hasOwnProperty("model"))return!1;const S=B.model;return!!S.isFirstChange()||!Object.is(k,S.currentValue)})(S,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&le(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return B._ngModelWarningSentOnce=!1,B.\u0275fac=function(S){return new(S||B)(_.Y36(Q,10),_.Y36(ne,10),_.Y36(u,10),_.Y36(ds,8))},B.\u0275dir=_.lG2({type:B,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_._Bn([xs]),_.qOj,_.TTD]}),B})();const Ee={provide:Se,useExisting:(0,_.Gpc)(()=>oe)};let oe=(()=>{class B extends Se{constructor(S,q){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _.vpe,this._setValidators(S),this._setAsyncValidators(q)}ngOnChanges(S){this._checkFormPresent(),S.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(tt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(S){const q=this.form.get(S.path);return pe(q,S),q.updateValueAndValidity({emitEvent:!1}),this.directives.push(S),q}getControl(S){return this.form.get(S.path)}removeControl(S){le(S.control||null,S,!1),function $i(B,k){const S=B.indexOf(k);S>-1&&B.splice(S,1)}(this.directives,S)}addFormGroup(S){this._setUpFormContainer(S)}removeFormGroup(S){this._cleanUpFormContainer(S)}getFormGroup(S){return this.form.get(S.path)}addFormArray(S){this._setUpFormContainer(S)}removeFormArray(S){this._cleanUpFormContainer(S)}getFormArray(S){return this.form.get(S.path)}updateModel(S,q){this.form.get(S.path).setValue(q)}onSubmit(S){var q;return this.submitted=!0,Vn(this.form,this.directives),this.ngSubmit.emit(S),"dialog"===(null===(q=null==S?void 0:S.target)||void 0===q?void 0:q.method)}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_updateDomValue(){this.directives.forEach(S=>{const q=S.control,je=this.form.get(S.path);q!==je&&(le(q||null,S),(B=>B instanceof Di)(je)&&(pe(je,S),S.control=je))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(S){const q=this.form.get(S.path);Et(q,S),q.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(S){if(this.form){const q=this.form.get(S.path);q&&function Ri(B,k){return tt(B,k)}(q,S)&&q.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&tt(this._oldForm,this)}_checkFormPresent(){}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(Q,10),_.Y36(ne,10))},B.\u0275dir=_.lG2({type:B,selectors:[["","formGroup",""]],hostBindings:function(S,q){1&S&&_.NdJ("submit",function(lt){return q.onSubmit(lt)})("reset",function(){return q.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Ee]),_.qOj,_.TTD]}),B})(),vi=(()=>{class B{constructor(){this._validator=ye}ngOnChanges(S){if(this.inputName in S){const q=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(q),this._validator=this._enabled?this.createValidator(q):ye,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return B.\u0275fac=function(S){return new(S||B)},B.\u0275dir=_.lG2({type:B,features:[_.TTD]}),B})();const or={provide:Q,useExisting:(0,_.Gpc)(()=>bn),multi:!0},hs={provide:Q,useExisting:(0,_.Gpc)(()=>Zn),multi:!0};let bn=(()=>{class B extends vi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=_.D6c,this.createValidator=S=>re}enabled(S){return S}}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(S,q){2&S&&_.uIk("required",q._enabled?"":null)},inputs:{required:"required"},features:[_._Bn([or]),_.qOj]}),B})(),Zn=(()=>{class B extends bn{constructor(){super(...arguments),this.createValidator=S=>_e}}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(S,q){2&S&&_.uIk("required",q._enabled?"":null)},features:[_._Bn([hs]),_.qOj]}),B})(),xt=(()=>{class B{}return B.\u0275fac=function(S){return new(S||B)},B.\u0275mod=_.oAB({type:B}),B.\u0275inj=_.cJS({imports:[Qr]}),B})(),cr=(()=>{class B{static withConfig(S){return{ngModule:B,providers:[{provide:ds,useValue:S.warnOnNgModelWithFormControl}]}}}return B.\u0275fac=function(S){return new(S||B)},B.\u0275mod=_.oAB({type:B}),B.\u0275inj=_.cJS({imports:[xt]}),B})()},7423:(nt,Fe,$)=>{"use strict";$.d(Fe,{lW:()=>P,ot:()=>y});var _=$(5e3),j=$(508),p=$(2982);const h=["mat-button",""],b=["*"],D=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],I=(0,j.pj)((0,j.Id)((0,j.Kr)(class{constructor(l){this._elementRef=l}})));let P=(()=>{class l extends I{constructor(u,d,C){super(u),this._focusMonitor=d,this._animationMode=C,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const R of D)this._hasHostAttributes(R)&&this._getHostElement().classList.add(R);u.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(u,d){u?this._focusMonitor.focusVia(this._getHostElement(),u,d):this._getHostElement().focus(d)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...u){return u.some(d=>this._getHostElement().hasAttribute(d))}}return l.\u0275fac=function(u){return new(u||l)(_.Y36(_.SBq),_.Y36(p.tE),_.Y36(_.QbO,8))},l.\u0275cmp=_.Xpm({type:l,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(u,d){if(1&u&&_.Gf(j.wG,5),2&u){let C;_.iGM(C=_.CRH())&&(d.ripple=C.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(u,d){2&u&&(_.uIk("disabled",d.disabled||null),_.ekj("_mat-animation-noopable","NoopAnimations"===d._animationMode)("mat-button-disabled",d.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_.qOj],attrs:h,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(u,d){1&u&&(_.F$t(),_.TgZ(0,"span",0),_.Hsn(1),_.qZA(),_._UZ(2,"span",1)(3,"span",2)),2&u&&(_.xp6(2),_.ekj("mat-button-ripple-round",d.isRoundButton||d.isIconButton),_.Q6J("matRippleDisabled",d._isRippleDisabled())("matRippleCentered",d.isIconButton)("matRippleTrigger",d._getHostElement()))},dependencies:[j.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),l})(),y=(()=>{class l{}return l.\u0275fac=function(u){return new(u||l)},l.\u0275mod=_.oAB({type:l}),l.\u0275inj=_.cJS({imports:[j.si,j.BQ,j.BQ]}),l})()},508:(nt,Fe,$)=>{"use strict";$.d(Fe,{rD:()=>ue,BQ:()=>R,wG:()=>Tn,si:()=>Re,pj:()=>F,Kr:()=>Z,Id:()=>w,FD:()=>ne,sb:()=>Q});var _=$(5e3),j=$(226),h=$(9808),b=$(925),E=$(2982),x=$(3191);const C=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function d(){return!0}});let R=(()=>{class Ze{constructor(Ae,ze,Ct){this._sanityChecks=ze,this._document=Ct,this._hasDoneGlobalChecks=!1,Ae._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ae){return!(0,b.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ae])}}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)(_.LFG(E.qm),_.LFG(C,8),_.LFG(h.K0))},Ze.\u0275mod=_.oAB({type:Ze}),Ze.\u0275inj=_.cJS({imports:[j.vT,j.vT]}),Ze})();function w(Ze){return class extends Ze{constructor(...ge){super(...ge),this._disabled=!1}get disabled(){return this._disabled}set disabled(ge){this._disabled=(0,x.Ig)(ge)}}}function F(Ze,ge){return class extends Ze{constructor(...Ae){super(...Ae),this.defaultColor=ge,this.color=ge}get color(){return this._color}set color(Ae){const ze=Ae||this.defaultColor;ze!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ze&&this._elementRef.nativeElement.classList.add(`mat-${ze}`),this._color=ze)}}}function Z(Ze){return class extends Ze{constructor(...ge){super(...ge),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ge){this._disableRipple=(0,x.Ig)(ge)}}}function Q(Ze,ge=0){return class extends Ze{constructor(...Ae){super(...Ae),this._tabIndex=ge,this.defaultTabIndex=ge}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ae){this._tabIndex=null!=Ae?(0,x.su)(Ae):this.defaultTabIndex}}}function ne(Ze){return class extends Ze{constructor(...ge){super(...ge),this.errorState=!1}updateErrorState(){const ge=this.errorState,en=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);en!==ge&&(this.errorState=en,this.stateChanges.next())}}}let ue=(()=>{class Ze{isErrorState(Ae,ze){return!!(Ae&&Ae.invalid&&(Ae.touched||ze&&ze.submitted))}}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)},Ze.\u0275prov=_.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();class ft{constructor(ge,Ae,ze,Ct=!1){this._renderer=ge,this.element=Ae,this.config=ze,this._animationForciblyDisabledThroughCss=Ct,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Je={enterDuration:225,exitDuration:150},_t=(0,b.i$)({passive:!0}),It=["mousedown","touchstart"],pt=["mouseup","mouseleave","touchend","touchcancel"];class Rt{constructor(ge,Ae,ze,Ct){this._target=ge,this._ngZone=Ae,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ct.isBrowser&&(this._containerElement=(0,x.fI)(ze))}fadeInRipple(ge,Ae,ze={}){const Ct=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),en=Object.assign(Object.assign({},Je),ze.animation);ze.centered&&(ge=Ct.left+Ct.width/2,Ae=Ct.top+Ct.height/2);const Rn=ze.radius||function gn(Ze,ge,Ae){const ze=Math.max(Math.abs(Ze-Ae.left),Math.abs(Ze-Ae.right)),Ct=Math.max(Math.abs(ge-Ae.top),Math.abs(ge-Ae.bottom));return Math.sqrt(ze*ze+Ct*Ct)}(ge,Ae,Ct),hi=ge-Ct.left,Ui=Ae-Ct.top,ri=en.enterDuration,ln=document.createElement("div");ln.classList.add("mat-ripple-element"),ln.style.left=hi-Rn+"px",ln.style.top=Ui-Rn+"px",ln.style.height=2*Rn+"px",ln.style.width=2*Rn+"px",null!=ze.color&&(ln.style.backgroundColor=ze.color),ln.style.transitionDuration=`${ri}ms`,this._containerElement.appendChild(ln);const An=window.getComputedStyle(ln),En=An.transitionDuration,jn="none"===An.transitionProperty||"0s"===En||"0s, 0s"===En,Bn=new ft(this,ln,ze,jn);ln.style.transform="scale3d(1, 1, 1)",Bn.state=0,ze.persistent||(this._mostRecentTransientRipple=Bn);let Ht=null;return!jn&&(ri||en.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const dn=()=>this._finishRippleTransition(Bn),pn=()=>this._destroyRipple(Bn);ln.addEventListener("transitionend",dn),ln.addEventListener("transitioncancel",pn),Ht={onTransitionEnd:dn,onTransitionCancel:pn}}),this._activeRipples.set(Bn,Ht),(jn||!ri)&&this._finishRippleTransition(Bn),Bn}fadeOutRipple(ge){if(2===ge.state||3===ge.state)return;const Ae=ge.element,ze=Object.assign(Object.assign({},Je),ge.config.animation);Ae.style.transitionDuration=`${ze.exitDuration}ms`,Ae.style.opacity="0",ge.state=2,(ge._animationForciblyDisabledThroughCss||!ze.exitDuration)&&this._finishRippleTransition(ge)}fadeOutAll(){this._getActiveRipples().forEach(ge=>ge.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ge=>{ge.config.persistent||ge.fadeOut()})}setupTriggerEvents(ge){const Ae=(0,x.fI)(ge);!Ae||Ae===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ae,this._registerEvents(It))}handleEvent(ge){"mousedown"===ge.type?this._onMousedown(ge):"touchstart"===ge.type?this._onTouchStart(ge):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(pt),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ge){0===ge.state?this._startFadeOutTransition(ge):2===ge.state&&this._destroyRipple(ge)}_startFadeOutTransition(ge){const Ae=ge===this._mostRecentTransientRipple,{persistent:ze}=ge.config;ge.state=1,!ze&&(!Ae||!this._isPointerDown)&&ge.fadeOut()}_destroyRipple(ge){var Ae;const ze=null!==(Ae=this._activeRipples.get(ge))&&void 0!==Ae?Ae:null;this._activeRipples.delete(ge),this._activeRipples.size||(this._containerRect=null),ge===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ge.state=3,null!==ze&&(ge.element.removeEventListener("transitionend",ze.onTransitionEnd),ge.element.removeEventListener("transitioncancel",ze.onTransitionCancel)),ge.element.remove()}_onMousedown(ge){const Ae=(0,E.X6)(ge),ze=this._lastTouchStartEvent&&Date.now(){!ge.config.persistent&&(1===ge.state||ge.config.terminateOnPointerUp&&0===ge.state)&&ge.fadeOut()}))}_registerEvents(ge){this._ngZone.runOutsideAngular(()=>{ge.forEach(Ae=>{this._triggerElement.addEventListener(Ae,this,_t)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(It.forEach(ge=>{this._triggerElement.removeEventListener(ge,this,_t)}),this._pointerUpEventsRegistered&&pt.forEach(ge=>{this._triggerElement.removeEventListener(ge,this,_t)}))}}const Nn=new _.OlP("mat-ripple-global-options");let Tn=(()=>{class Ze{constructor(Ae,ze,Ct,en,Rn){this._elementRef=Ae,this._animationMode=Rn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=en||{},this._rippleRenderer=new Rt(this,ze,Ae,Ct)}get disabled(){return this._disabled}set disabled(Ae){Ae&&this.fadeOutAllNonPersistent(),this._disabled=Ae,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ae){this._trigger=Ae,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ae,ze=0,Ct){return"number"==typeof Ae?this._rippleRenderer.fadeInRipple(Ae,ze,Object.assign(Object.assign({},this.rippleConfig),Ct)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ae))}}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(b.t4),_.Y36(Nn,8),_.Y36(_.QbO,8))},Ze.\u0275dir=_.lG2({type:Ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ae,ze){2&Ae&&_.ekj("mat-ripple-unbounded",ze.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ze})(),Re=(()=>{class Ze{}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)},Ze.\u0275mod=_.oAB({type:Ze}),Ze.\u0275inj=_.cJS({imports:[R,R]}),Ze})()},7322:(nt,Fe,$)=>{"use strict";$.d(Fe,{Eo:()=>Me,G_:()=>Tn,KE:()=>Re,lN:()=>$e});var _=$(7144),j=$(9808),p=$(5e3),h=$(508),b=$(3191),E=$(7579),x=$(6451),D=$(4968),I=$(8675),P=$(2722),T=$(5698),y=$(1777),l=$(226),f=$(925);const u=["connectionContainer"],d=["inputContainer"],C=["label"];function R(ie,Se){1&ie&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15)(3,"div",16)(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15)(7,"div",16)(8,"div",17),p.qZA(),p.BQk())}function U(ie,Se){if(1&ie){const Ce=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){p.CHM(Ce);const Ge=p.oxw();return p.KtG(Ge.updateOutlineGap())}),p.Hsn(1,1),p.qZA()}if(2&ie){const Ce=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)}}function W(ie,Se){if(1&ie&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&ie){const Ce=p.oxw(2);p.xp6(3),p.Oqu(Ce._control.placeholder)}}function v(ie,Se){1&ie&&p.Hsn(0,3,["*ngSwitchCase","true"])}function w(ie,Se){1&ie&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function F(ie,Se){if(1&ie){const Ce=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){p.CHM(Ce);const Ge=p.oxw();return p.KtG(Ge.updateOutlineGap())}),p.YNc(2,W,4,1,"ng-container",12),p.YNc(3,v,1,0,"ng-content",12),p.YNc(4,w,2,0,"span",22),p.qZA()}if(2&ie){const Ce=p.oxw();p.ekj("mat-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-form-field-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color),p.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)("id",Ce._labelId)("ngSwitch",Ce._hasLabel()),p.uIk("for",Ce._control.id)("aria-owns",Ce._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!Ce.hideRequiredMarker&&Ce._control.required&&!Ce._control.disabled)}}function Z(ie,Se){1&ie&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function Q(ie,Se){if(1&ie&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&ie){const Ce=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color)}}function ne(ie,Se){if(1&ie&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&ie){const Ce=p.oxw();p.Q6J("@transitionMessages",Ce._subscriptAnimationState)}}function we(ie,Se){if(1&ie&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&ie){const Ce=p.oxw(2);p.Q6J("id",Ce._hintLabelId),p.xp6(1),p.Oqu(Ce.hintLabel)}}function Be(ie,Se){if(1&ie&&(p.TgZ(0,"div",27),p.YNc(1,we,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&ie){const Ce=p.oxw();p.Q6J("@transitionMessages",Ce._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",Ce.hintLabel)}}const Ie=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Y=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],_e=new p.OlP("MatError"),he={transitionMessages:(0,y.X$)("transitionMessages",[(0,y.SB)("enter",(0,y.oB)({opacity:1,transform:"translateY(0%)"})),(0,y.eR)("void => enter",[(0,y.oB)({opacity:0,transform:"translateY(-5px)"}),(0,y.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Me=(()=>{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275dir=p.lG2({type:ie}),ie})();const de=new p.OlP("MatHint");let ke=(()=>{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275dir=p.lG2({type:ie,selectors:[["mat-label"]]}),ie})(),Ue=(()=>{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275dir=p.lG2({type:ie,selectors:[["mat-placeholder"]]}),ie})();const ft=new p.OlP("MatPrefix"),kt=new p.OlP("MatSuffix");let It=0;const gn=(0,h.pj)(class{constructor(ie){this._elementRef=ie}},"primary"),Nn=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Tn=new p.OlP("MatFormField");let Re=(()=>{class ie extends gn{constructor(Ce,De,Ge,Xe,Lt,et,rt){super(Ce),this._changeDetectorRef=De,this._dir=Ge,this._defaults=Xe,this._platform=Lt,this._ngZone=et,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+It++,this._labelId="mat-form-field-label-"+It++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==rt,this.appearance=(null==Xe?void 0:Xe.appearance)||"legacy",Xe&&(this._hideRequiredMarker=Boolean(Xe.hideRequiredMarker),Xe.color&&(this.color=this.defaultColor=Xe.color))}get appearance(){return this._appearance}set appearance(Ce){var De;const Ge=this._appearance;this._appearance=Ce||(null===(De=this._defaults)||void 0===De?void 0:De.appearance)||"legacy","outline"===this._appearance&&Ge!==Ce&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ce){this._hideRequiredMarker=(0,b.Ig)(Ce)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Ce){this._hintLabel=Ce,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Ce){Ce!==this._floatLabel&&(this._floatLabel=Ce||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Ce){this._explicitFormFieldControl=Ce}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Ce=this._control;Ce.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Ce.controlType}`),Ce.stateChanges.pipe((0,I.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Ce.ngControl&&Ce.ngControl.valueChanges&&Ce.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,x.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Ce){const De=this._control?this._control.ngControl:null;return De&&De[Ce]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,D.R)(this._label.nativeElement,"transitionend").pipe((0,T.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Ce=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ce.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const De=this._hintChildren?this._hintChildren.find(Xe=>"start"===Xe.align):null,Ge=this._hintChildren?this._hintChildren.find(Xe=>"end"===Xe.align):null;De?Ce.push(De.id):this._hintLabel&&Ce.push(this._hintLabelId),Ge&&Ce.push(Ge.id)}else this._errorChildren&&Ce.push(...this._errorChildren.map(De=>De.id));this._control.setDescribedByIds(Ce)}}_validateControlChild(){}updateOutlineGap(){const Ce=this._label?this._label.nativeElement:null,De=this._connectionContainerRef.nativeElement,Ge=".mat-form-field-outline-start",Xe=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!Ce||!Ce.children.length||!Ce.textContent.trim()){const Wt=De.querySelectorAll(`${Ge}, ${Xe}`);for(let vt=0;vt0?.75*Ze+10:0}for(let Wt=0;Wt{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275mod=p.oAB({type:ie}),ie.\u0275inj=p.cJS({imports:[j.ez,h.BQ,_.Q8,h.BQ]}),ie})()},7531:(nt,Fe,$)=>{"use strict";$.d(Fe,{Nt:()=>U,c:()=>W});var _=$(3191),j=$(925),p=$(5e3),h=$(2382),b=$(508),E=$(7322),x=$(7579),D=$(515);const I=(0,j.i$)({passive:!0});let P=(()=>{class v{constructor(F,Z){this._platform=F,this._ngZone=Z,this._monitoredElements=new Map}monitor(F){if(!this._platform.isBrowser)return D.E;const Z=(0,_.fI)(F),Q=this._monitoredElements.get(Z);if(Q)return Q.subject;const ne=new x.x,we="cdk-text-field-autofilled",Be=Ie=>{"cdk-text-field-autofill-start"!==Ie.animationName||Z.classList.contains(we)?"cdk-text-field-autofill-end"===Ie.animationName&&Z.classList.contains(we)&&(Z.classList.remove(we),this._ngZone.run(()=>ne.next({target:Ie.target,isAutofilled:!1}))):(Z.classList.add(we),this._ngZone.run(()=>ne.next({target:Ie.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Z.addEventListener("animationstart",Be,I),Z.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Z,{subject:ne,unlisten:()=>{Z.removeEventListener("animationstart",Be,I)}}),ne}stopMonitoring(F){const Z=(0,_.fI)(F),Q=this._monitoredElements.get(Z);Q&&(Q.unlisten(),Q.subject.complete(),Z.classList.remove("cdk-text-field-autofill-monitored"),Z.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Z))}ngOnDestroy(){this._monitoredElements.forEach((F,Z)=>this.stopMonitoring(Z))}}return v.\u0275fac=function(F){return new(F||v)(p.LFG(j.t4),p.LFG(p.R0b))},v.\u0275prov=p.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),l=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=p.oAB({type:v}),v.\u0275inj=p.cJS({}),v})();const u=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),d=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let C=0;const R=(0,b.FD)(class{constructor(v,w,F,Z){this._defaultErrorStateMatcher=v,this._parentForm=w,this._parentFormGroup=F,this.ngControl=Z,this.stateChanges=new x.x}});let U=(()=>{class v extends R{constructor(F,Z,Q,ne,we,Be,Ie,Y,re,_e){super(Be,ne,we,Q),this._elementRef=F,this._platform=Z,this._autofillMonitor=Y,this._formField=_e,this._uid="mat-input-"+C++,this.focused=!1,this.stateChanges=new x.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Me=>(0,j.qK)().has(Me)),this._iOSKeyupListener=Me=>{const Oe=Me.target;!Oe.value&&0===Oe.selectionStart&&0===Oe.selectionEnd&&(Oe.setSelectionRange(1,1),Oe.setSelectionRange(0,0))};const ee=this._elementRef.nativeElement,he=ee.nodeName.toLowerCase();this._inputValueAccessor=Ie||ee,this._previousNativeValue=this.value,this.id=this.id,Z.IOS&&re.runOutsideAngular(()=>{F.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===he,this._isTextarea="textarea"===he,this._isInFormField=!!_e,this._isNativeSelect&&(this.controlType=ee.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(F){this._disabled=(0,_.Ig)(F),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(F){this._id=F||this._uid}get required(){var F,Z,Q,ne;return null!==(ne=null!==(F=this._required)&&void 0!==F?F:null===(Q=null===(Z=this.ngControl)||void 0===Z?void 0:Z.control)||void 0===Q?void 0:Q.hasValidator(h.kI.required))&&void 0!==ne&&ne}set required(F){this._required=(0,_.Ig)(F)}get type(){return this._type}set type(F){this._type=F||"text",this._validateType(),!this._isTextarea&&(0,j.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(F){F!==this.value&&(this._inputValueAccessor.value=F,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(F){this._readonly=(0,_.Ig)(F)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(F=>{this.autofilled=F.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(F){this._elementRef.nativeElement.focus(F)}_focusChanged(F){F!==this.focused&&(this.focused=F,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var F;const Z=this._formField,Q=!Z||"legacy"!==Z.appearance||null!==(F=Z._hasLabel)&&void 0!==F&&F.call(Z)?this.placeholder:null;if(Q!==this._previousPlaceholder){const ne=this._elementRef.nativeElement;this._previousPlaceholder=Q,Q?ne.setAttribute("placeholder",Q):ne.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const F=this._elementRef.nativeElement.value;this._previousNativeValue!==F&&(this._previousNativeValue=F,this.stateChanges.next())}_validateType(){d.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let F=this._elementRef.nativeElement.validity;return F&&F.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const F=this._elementRef.nativeElement,Z=F.options[0];return this.focused||F.multiple||!this.empty||!!(F.selectedIndex>-1&&Z&&Z.label)}return this.focused||!this.empty}setDescribedByIds(F){F.length?this._elementRef.nativeElement.setAttribute("aria-describedby",F.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const F=this._elementRef.nativeElement;return this._isNativeSelect&&(F.multiple||F.size>1)}}return v.\u0275fac=function(F){return new(F||v)(p.Y36(p.SBq),p.Y36(j.t4),p.Y36(h.a5,10),p.Y36(h.F,8),p.Y36(h.sg,8),p.Y36(b.rD),p.Y36(u,10),p.Y36(P),p.Y36(p.R0b),p.Y36(E.G_,8))},v.\u0275dir=p.lG2({type:v,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(F,Z){1&F&&p.NdJ("focus",function(){return Z._focusChanged(!0)})("blur",function(){return Z._focusChanged(!1)})("input",function(){return Z._onInput()}),2&F&&(p.Ikx("disabled",Z.disabled)("required",Z.required),p.uIk("id",Z.id)("data-placeholder",Z.placeholder)("name",Z.name||null)("readonly",Z.readonly&&!Z._isNativeSelect||null)("aria-invalid",Z.empty&&Z.required?null:Z.errorState)("aria-required",Z.required),p.ekj("mat-input-server",Z._isServer)("mat-native-select-inline",Z._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[p._Bn([{provide:E.Eo,useExisting:v}]),p.qOj,p.TTD]}),v})(),W=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=p.oAB({type:v}),v.\u0275inj=p.cJS({providers:[b.rD],imports:[l,E.lN,b.BQ,l,E.lN]}),v})()},2368:(nt,Fe,$)=>{"use strict";$.d(Fe,{Rr:()=>d,rP:()=>W});var _=$(7144),j=$(5e3),p=$(508),h=$(3191),b=$(2382),E=$(2982);const x=["input"],D=function(v){return{enterDuration:v}},I=["*"],P=new j.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let T=0;const y={provide:b.JU,useExisting:(0,j.Gpc)(()=>d),multi:!0};class l{constructor(w,F){this.source=w,this.checked=F}}const f=(0,p.sb)((0,p.pj)((0,p.Kr)((0,p.Id)(class{constructor(v){this._elementRef=v}}))));let u=(()=>{class v extends f{constructor(F,Z,Q,ne,we,Be,Ie){super(F),this._focusMonitor=Z,this._changeDetectorRef=Q,this.defaults=we,this._onChange=Y=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new j.vpe,this.toggleChange=new j.vpe,this.tabIndex=parseInt(ne)||0,this.color=this.defaultColor=we.color||"accent",this._noopAnimations="NoopAnimations"===Be,this.id=this._uniqueId=`${Ie}${++T}`}get required(){return this._required}set required(F){this._required=(0,h.Ig)(F)}get checked(){return this._checked}set checked(F){this._checked=(0,h.Ig)(F),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(F=>{"keyboard"===F||"program"===F?this._focused=!0:F||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(F){this.checked=!!F}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return v.\u0275fac=function(F){j.$Z()},v.\u0275dir=j.lG2({type:v,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[j.qOj]}),v})(),d=(()=>{class v extends u{constructor(F,Z,Q,ne,we,Be){super(F,Z,Q,ne,we,Be,"mat-slide-toggle-")}_createChangeEvent(F){return new l(this,F)}_onChangeEvent(F){F.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(F){F.stopPropagation()}focus(F,Z){Z?this._focusMonitor.focusVia(this._inputElement,Z,F):this._inputElement.nativeElement.focus(F)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return v.\u0275fac=function(F){return new(F||v)(j.Y36(j.SBq),j.Y36(E.tE),j.Y36(j.sBO),j.$8M("tabindex"),j.Y36(P),j.Y36(j.QbO,8))},v.\u0275cmp=j.Xpm({type:v,selectors:[["mat-slide-toggle"]],viewQuery:function(F,Z){if(1&F&&j.Gf(x,5),2&F){let Q;j.iGM(Q=j.CRH())&&(Z._inputElement=Q.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(F,Z){2&F&&(j.Ikx("id",Z.id),j.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),j.ekj("mat-checked",Z.checked)("mat-disabled",Z.disabled)("mat-slide-toggle-label-before","before"==Z.labelPosition)("_mat-animation-noopable",Z._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[j._Bn([y]),j.qOj],ngContentSelectors:I,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(F,Z){if(1&F&&(j.F$t(),j.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),j.NdJ("change",function(ne){return Z._onChangeEvent(ne)})("click",function(ne){return Z._onInputClick(ne)}),j.qZA(),j.TgZ(5,"span",5),j._UZ(6,"span",6),j.TgZ(7,"span",7),j._UZ(8,"span",8),j.qZA()()(),j.TgZ(9,"span",9,10),j.NdJ("cdkObserveContent",function(){return Z._onLabelTextChange()}),j.TgZ(11,"span",11),j._uU(12,"\xa0"),j.qZA(),j.Hsn(13),j.qZA()()),2&F){const Q=j.MAs(1),ne=j.MAs(10);j.uIk("for",Z.inputId),j.xp6(2),j.ekj("mat-slide-toggle-bar-no-side-margin",!ne.textContent||!ne.textContent.trim()),j.xp6(1),j.Q6J("id",Z.inputId)("required",Z.required)("tabIndex",Z.tabIndex)("checked",Z.checked)("disabled",Z.disabled),j.uIk("name",Z.name)("aria-checked",Z.checked)("aria-label",Z.ariaLabel)("aria-labelledby",Z.ariaLabelledby)("aria-describedby",Z.ariaDescribedby),j.xp6(4),j.Q6J("matRippleTrigger",Q)("matRippleDisabled",Z.disableRipple||Z.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",j.VKq(18,D,Z._noopAnimations?0:150))}},dependencies:[p.wG,_.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),v})(),U=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=j.oAB({type:v}),v.\u0275inj=j.cJS({}),v})(),W=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=j.oAB({type:v}),v.\u0275inj=j.cJS({imports:[U,p.si,p.BQ,_.Q8,U,p.BQ]}),v})()},6041:(nt,Fe,$)=>{"use strict";$.d(Fe,{uX:()=>In,SP:()=>qn,Nh:()=>mi});var _=$(2982),j=$(7144),p=$(5e3),h=$(9808);class T{attach(oe){return this._attachedHost=oe,oe.attach(this)}detach(){let oe=this._attachedHost;null!=oe&&(this._attachedHost=null,oe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(oe){this._attachedHost=oe}}class y extends T{constructor(oe,H,X,ce){super(),this.component=oe,this.viewContainerRef=H,this.injector=X,this.componentFactoryResolver=ce}}class l extends T{constructor(oe,H,X,ce){super(),this.templateRef=oe,this.viewContainerRef=H,this.context=X,this.injector=ce}get origin(){return this.templateRef.elementRef}attach(oe,H=this.context){return this.context=H,super.attach(oe)}detach(){return this.context=void 0,super.detach()}}class f extends T{constructor(oe){super(),this.element=oe instanceof p.SBq?oe.nativeElement:oe}}let v=(()=>{class Ee extends class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(oe){return oe instanceof y?(this._attachedPortal=oe,this.attachComponentPortal(oe)):oe instanceof l?(this._attachedPortal=oe,this.attachTemplatePortal(oe)):this.attachDomPortal&&oe instanceof f?(this._attachedPortal=oe,this.attachDomPortal(oe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(oe){this._disposeFn=oe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(H,X,ce){super(),this._componentFactoryResolver=H,this._viewContainerRef=X,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=Le=>{const at=Le.element,Dt=this._document.createComment("dom-portal");Le.setAttachedHost(this),at.parentNode.insertBefore(Dt,at),this._getRootNode().appendChild(at),this._attachedPortal=Le,super.setDisposeFn(()=>{Dt.parentNode&&Dt.parentNode.replaceChild(at,Dt)})},this._document=ce}get portal(){return this._attachedPortal}set portal(H){this.hasAttached()&&!H&&!this._isInitialized||(this.hasAttached()&&super.detach(),H&&super.attach(H),this._attachedPortal=H||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(H){H.setAttachedHost(this);const X=null!=H.viewContainerRef?H.viewContainerRef:this._viewContainerRef,Le=(H.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(H.component),at=X.createComponent(Le,X.length,H.injector||X.injector);return X!==this._viewContainerRef&&this._getRootNode().appendChild(at.hostView.rootNodes[0]),super.setDisposeFn(()=>at.destroy()),this._attachedPortal=H,this._attachedRef=at,this.attached.emit(at),at}attachTemplatePortal(H){H.setAttachedHost(this);const X=this._viewContainerRef.createEmbeddedView(H.templateRef,H.context,{injector:H.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=H,this._attachedRef=X,this.attached.emit(X),X}_getRootNode(){const H=this._viewContainerRef.element.nativeElement;return H.nodeType===H.ELEMENT_NODE?H:H.parentNode}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(h.K0))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),Ee})(),F=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=p.oAB({type:Ee}),Ee.\u0275inj=p.cJS({}),Ee})();var Q=$(508),ne=$(5698),we=$(8675),Be=$(1884),Ie=$(2722),Y=$(8421),re=$(4482),_e=$(5403),he=$(5684),Me=$(9300),Oe=$(7579),ye=$(727),Ne=$(4968),ue=$(9646),de=$(6451),be=$(515),ke=$(8306),Ue=$(4986),ft=$(3532);function kt(Ee=0,oe,H=Ue.P){let X=-1;return null!=oe&&((0,ft.K)(oe)?H=oe:X=oe),new ke.y(ce=>{let Le=function Je(Ee){return Ee instanceof Date&&!isNaN(Ee)}(Ee)?+Ee-H.now():Ee;Le<0&&(Le=0);let at=0;return H.schedule(function(){ce.closed||(ce.next(at++),0<=X?this.schedule(void 0,X):ce.complete())},Le)})}var _t=$(1777),It=$(226),pt=$(3191),Rt=$(1159),gn=$(925),Nn=$(4408);const Tn={schedule(Ee){let oe=requestAnimationFrame,H=cancelAnimationFrame;const{delegate:X}=Tn;X&&(oe=X.requestAnimationFrame,H=X.cancelAnimationFrame);const ce=oe(Le=>{H=void 0,Ee(Le)});return new ye.w0(()=>null==H?void 0:H(ce))},requestAnimationFrame(...Ee){const{delegate:oe}=Tn;return((null==oe?void 0:oe.requestAnimationFrame)||requestAnimationFrame)(...Ee)},cancelAnimationFrame(...Ee){const{delegate:oe}=Tn;return((null==oe?void 0:oe.cancelAnimationFrame)||cancelAnimationFrame)(...Ee)},delegate:void 0};var $e=$(640);new class ie extends $e.v{flush(oe){this._active=!0;const H=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let ce;oe=oe||X.shift();do{if(ce=oe.execute(oe.state,oe.delay))break}while((oe=X[0])&&oe.id===H&&X.shift());if(this._active=!1,ce){for(;(oe=X[0])&&oe.id===H&&X.shift();)oe.unsubscribe();throw ce}}}(class Re extends Nn.o{constructor(oe,H){super(oe,H),this.scheduler=oe,this.work=H}requestAsyncId(oe,H,X=0){return null!==X&&X>0?super.requestAsyncId(oe,H,X):(oe.actions.push(this),oe._scheduled||(oe._scheduled=Tn.requestAnimationFrame(()=>oe.flush(void 0))))}recycleAsyncId(oe,H,X=0){var ce;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(oe,H,X);const{actions:Le}=oe;null!=H&&(null===(ce=Le[Le.length-1])||void 0===ce?void 0:ce.id)!==H&&(Tn.cancelAnimationFrame(H),oe._scheduled=void 0)}});let Ge,De=1;const Xe={};function Lt(Ee){return Ee in Xe&&(delete Xe[Ee],!0)}const et={setImmediate(Ee){const oe=De++;return Xe[oe]=!0,Ge||(Ge=Promise.resolve()),Ge.then(()=>Lt(oe)&&Ee()),oe},clearImmediate(Ee){Lt(Ee)}},{setImmediate:Ft,clearImmediate:Wt}=et,vt={setImmediate(...Ee){const{delegate:oe}=vt;return((null==oe?void 0:oe.setImmediate)||Ft)(...Ee)},clearImmediate(Ee){const{delegate:oe}=vt;return((null==oe?void 0:oe.clearImmediate)||Wt)(Ee)},delegate:void 0};new class bt extends $e.v{flush(oe){this._active=!0;const H=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let ce;oe=oe||X.shift();do{if(ce=oe.execute(oe.state,oe.delay))break}while((oe=X[0])&&oe.id===H&&X.shift());if(this._active=!1,ce){for(;(oe=X[0])&&oe.id===H&&X.shift();)oe.unsubscribe();throw ce}}}(class Zt extends Nn.o{constructor(oe,H){super(oe,H),this.scheduler=oe,this.work=H}requestAsyncId(oe,H,X=0){return null!==X&&X>0?super.requestAsyncId(oe,H,X):(oe.actions.push(this),oe._scheduled||(oe._scheduled=vt.setImmediate(oe.flush.bind(oe,void 0))))}recycleAsyncId(oe,H,X=0){var ce;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(oe,H,X);const{actions:Le}=oe;null!=H&&(null===(ce=Le[Le.length-1])||void 0===ce?void 0:ce.id)!==H&&(vt.clearImmediate(H),oe._scheduled=void 0)}});let Ht=(()=>{class Ee{constructor(H,X,ce){this._platform=H,this._change=new Oe.x,this._changeListener=Le=>{this._change.next(Le)},this._document=ce,X.runOutsideAngular(()=>{if(H.isBrowser){const Le=this._getWindow();Le.addEventListener("resize",this._changeListener),Le.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const H=this._getWindow();H.removeEventListener("resize",this._changeListener),H.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const H={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),H}getViewportRect(){const H=this.getViewportScrollPosition(),{width:X,height:ce}=this.getViewportSize();return{top:H.top,left:H.left,bottom:H.top+ce,right:H.left+X,height:ce,width:X}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const H=this._document,X=this._getWindow(),ce=H.documentElement,Le=ce.getBoundingClientRect();return{top:-Le.top||H.body.scrollTop||X.scrollY||ce.scrollTop||0,left:-Le.left||H.body.scrollLeft||X.scrollX||ce.scrollLeft||0}}change(H=20){return H>0?this._change.pipe(function ze(Ee,oe=Ue.z){return function Ae(Ee){return(0,re.e)((oe,H)=>{let X=!1,ce=null,Le=null,at=!1;const Dt=()=>{if(null==Le||Le.unsubscribe(),Le=null,X){X=!1;const rn=ce;ce=null,H.next(rn)}at&&H.complete()},Mt=()=>{Le=null,at&&H.complete()};oe.subscribe((0,_e.x)(H,rn=>{X=!0,ce=rn,Le||(0,Y.Xf)(Ee(rn)).subscribe(Le=(0,_e.x)(H,Dt,Mt))},()=>{at=!0,(!X||!Le||Le.closed)&&H.complete()}))})}(()=>kt(Ee,oe))}(H)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const H=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:H.innerWidth,height:H.innerHeight}:{width:0,height:0}}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.LFG(gn.t4),p.LFG(p.R0b),p.LFG(h.K0,8))},Ee.\u0275prov=p.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function on(Ee,oe){1&Ee&&p.Hsn(0)}const Gt=["*"];function yn(Ee,oe){}const pe=function(Ee){return{animationDuration:Ee}},le=function(Ee,oe){return{value:Ee,params:oe}},se=["tabListContainer"],Te=["tabList"],Ve=["tabListInner"],tt=["nextPaginator"],gt=["previousPaginator"],mt=["tabBodyWrapper"],Qt=["tabHeader"];function hn(Ee,oe){}function Et(Ee,oe){if(1&Ee&&p.YNc(0,hn,0,0,"ng-template",10),2&Ee){const H=p.oxw().$implicit;p.Q6J("cdkPortalOutlet",H.templateLabel)}}function Ri(Ee,oe){if(1&Ee&&p._uU(0),2&Ee){const H=p.oxw().$implicit;p.Oqu(H.textLabel)}}function zi(Ee,oe){if(1&Ee){const H=p.EpF();p.TgZ(0,"div",6),p.NdJ("click",function(){const ce=p.CHM(H),Le=ce.$implicit,at=ce.index,Dt=p.oxw(),Mt=p.MAs(1);return p.KtG(Dt._handleClick(Le,Mt,at))})("cdkFocusChange",function(ce){const at=p.CHM(H).index,Dt=p.oxw();return p.KtG(Dt._tabFocusChanged(ce,at))}),p.TgZ(1,"div",7),p.YNc(2,Et,1,1,"ng-template",8),p.YNc(3,Ri,1,1,"ng-template",null,9,p.W1O),p.qZA()()}if(2&Ee){const H=oe.$implicit,X=oe.index,ce=p.MAs(4),Le=p.oxw();p.ekj("mat-tab-label-active",Le.selectedIndex===X),p.Q6J("id",Le._getTabLabelId(X))("ngClass",H.labelClass)("disabled",H.disabled)("matRippleDisabled",H.disabled||Le.disableRipple),p.uIk("tabIndex",Le._getTabIndex(H,X))("aria-posinset",X+1)("aria-setsize",Le._tabs.length)("aria-controls",Le._getTabContentId(X))("aria-selected",Le.selectedIndex===X)("aria-label",H.ariaLabel||null)("aria-labelledby",!H.ariaLabel&&H.ariaLabelledby?H.ariaLabelledby:null),p.xp6(2),p.Q6J("ngIf",H.templateLabel)("ngIfElse",ce)}}function Qi(Ee,oe){if(1&Ee){const H=p.EpF();p.TgZ(0,"mat-tab-body",11),p.NdJ("_onCentered",function(){p.CHM(H);const ce=p.oxw();return p.KtG(ce._removeTabBodyWrapperHeight())})("_onCentering",function(ce){p.CHM(H);const Le=p.oxw();return p.KtG(Le._setTabBodyWrapperHeight(ce))}),p.qZA()}if(2&Ee){const H=oe.$implicit,X=oe.index,ce=p.oxw();p.ekj("mat-tab-body-active",ce.selectedIndex===X),p.Q6J("id",ce._getTabContentId(X))("ngClass",H.bodyClass)("content",H.content)("position",H.position)("origin",H.origin)("animationDuration",ce.animationDuration)("preserveContent",ce.preserveContent),p.uIk("tabindex",null!=ce.contentTabIndex&&ce.selectedIndex===X?ce.contentTabIndex:null)("aria-labelledby",ce._getTabLabelId(X))}}const Sn=new p.OlP("MatInkBarPositioner",{providedIn:"root",factory:function li(){return oe=>({left:oe?(oe.offsetLeft||0)+"px":"0",width:oe?(oe.offsetWidth||0)+"px":"0"})}});let ci=(()=>{class Ee{constructor(H,X,ce,Le){this._elementRef=H,this._ngZone=X,this._inkBarPositioner=ce,this._animationMode=Le}alignToElement(H){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>{const X=this._inkBarPositioner(H),ce=this._elementRef.nativeElement;ce.style.left=X.left,ce.style.width=X.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(Sn),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(H,X){2&H&&p.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode)}}),Ee})();const Vn=new p.OlP("MatTabContent"),$i=new p.OlP("MatTabLabel"),Jt=new p.OlP("MAT_TAB"),fi=(0,Q.Id)(class{}),cn=new p.OlP("MAT_TAB_GROUP");let In=(()=>{class Ee extends fi{constructor(H,X){super(),this._viewContainerRef=H,this._closestTabGroup=X,this.textLabel="",this._contentPortal=null,this._stateChanges=new Oe.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(H){this._setTemplateLabelInput(H)}get content(){return this._contentPortal}ngOnChanges(H){(H.hasOwnProperty("textLabel")||H.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new l(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(H){H&&H._closestTab===this&&(this._templateLabel=H)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.s_b),p.Y36(cn,8))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab"]],contentQueries:function(H,X,ce){if(1&H&&(p.Suo(ce,$i,5),p.Suo(ce,Vn,7,p.Rgc)),2&H){let Le;p.iGM(Le=p.CRH())&&(X.templateLabel=Le.first),p.iGM(Le=p.CRH())&&(X._explicitContent=Le.first)}},viewQuery:function(H,X){if(1&H&&p.Gf(p.Rgc,7),2&H){let ce;p.iGM(ce=p.CRH())&&(X._implicitContent=ce.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[p._Bn([{provide:Jt,useExisting:Ee}]),p.qOj,p.TTD],ngContentSelectors:Gt,decls:1,vars:0,template:function(H,X){1&H&&(p.F$t(),p.YNc(0,on,1,0,"ng-template"))},encapsulation:2}),Ee})();const Ei={translateTab:(0,_t.X$)("translateTab",[(0,_t.SB)("center, void, left-origin-center, right-origin-center",(0,_t.oB)({transform:"none"})),(0,_t.SB)("left",(0,_t.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,_t.SB)("right",(0,_t.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,_t.eR)("* => left, * => right, left => center, right => center",(0,_t.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,_t.eR)("void => left-origin-center",[(0,_t.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,_t.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,_t.eR)("void => right-origin-center",[(0,_t.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,_t.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Di=(()=>{class Ee extends v{constructor(H,X,ce,Le){super(H,X,Le),this._host=ce,this._centeringSub=ye.w0.EMPTY,this._leavingSub=ye.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,we.O)(this._host._isCenterPosition(this._host._position))).subscribe(H=>{H&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36((0,p.Gpc)(()=>Yn)),p.Y36(h.K0))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["","matTabBodyHost",""]],features:[p.qOj]}),Ee})(),ir=(()=>{class Ee{constructor(H,X,ce){this._elementRef=H,this._dir=X,this._dirChangeSubscription=ye.w0.EMPTY,this._translateTabComplete=new Oe.x,this._onCentering=new p.vpe,this._beforeCentering=new p.vpe,this._afterLeavingCenter=new p.vpe,this._onCentered=new p.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,X&&(this._dirChangeSubscription=X.change.subscribe(Le=>{this._computePositionAnimationState(Le),ce.markForCheck()})),this._translateTabComplete.pipe((0,Be.x)((Le,at)=>Le.fromState===at.fromState&&Le.toState===at.toState)).subscribe(Le=>{this._isCenterPosition(Le.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Le.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(H){this._positionIndex=H,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(H){const X=this._isCenterPosition(H.toState);this._beforeCentering.emit(X),X&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(H){return"center"==H||"left-origin-center"==H||"right-origin-center"==H}_computePositionAnimationState(H=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==H?"left":"right":this._positionIndex>0?"ltr"==H?"right":"left":"center"}_computePositionFromOrigin(H){const X=this._getLayoutDirection();return"ltr"==X&&H<=0||"rtl"==X&&H>0?"left-origin-center":"right-origin-center"}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(It.Is,8),p.Y36(p.sBO))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ee})(),Yn=(()=>{class Ee extends ir{constructor(H,X,ce){super(H,X,ce)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(It.Is,8),p.Y36(p.sBO))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab-body"]],viewQuery:function(H,X){if(1&H&&p.Gf(v,5),2&H){let ce;p.iGM(ce=p.CRH())&&(X._portalHost=ce.first)}},hostAttrs:[1,"mat-tab-body"],features:[p.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(H,X){1&H&&(p.TgZ(0,"div",0,1),p.NdJ("@translateTab.start",function(Le){return X._onTranslateTabStarted(Le)})("@translateTab.done",function(Le){return X._translateTabComplete.next(Le)}),p.YNc(2,yn,0,0,"ng-template",2),p.qZA()),2&H&&p.Q6J("@translateTab",p.WLB(3,le,X._position,p.VKq(1,pe,X.animationDuration)))},dependencies:[Di],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Ei.translateTab]}}),Ee})();const Ji=new p.OlP("MAT_TABS_CONFIG"),Is=(0,Q.Id)(class{});let Kr=(()=>{class Ee extends Is{constructor(H){super(),this.elementRef=H}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(H,X){2&H&&(p.uIk("aria-disabled",!!X.disabled),p.ekj("mat-tab-disabled",X.disabled))},inputs:{disabled:"disabled"},features:[p.qOj]}),Ee})();const Yr=(0,gn.i$)({passive:!0});let us=(()=>{class Ee{constructor(H,X,ce,Le,at,Dt,Mt){this._elementRef=H,this._changeDetectorRef=X,this._viewportRuler=ce,this._dir=Le,this._ngZone=at,this._platform=Dt,this._animationMode=Mt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Oe.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Oe.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new p.vpe,this.indexFocused=new p.vpe,at.runOutsideAngular(()=>{(0,Ne.R)(H.nativeElement,"mouseleave").pipe((0,Ie.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(H){this._disablePagination=(0,pt.Ig)(H)}get selectedIndex(){return this._selectedIndex}set selectedIndex(H){H=(0,pt.su)(H),this._selectedIndex!=H&&(this._selectedIndexChanged=!0,this._selectedIndex=H,this._keyManager&&this._keyManager.updateActiveItem(H))}ngAfterViewInit(){(0,Ne.R)(this._previousPaginator.nativeElement,"touchstart",Yr).pipe((0,Ie.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,Ne.R)(this._nextPaginator.nativeElement,"touchstart",Yr).pipe((0,Ie.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const H=this._dir?this._dir.change:(0,ue.of)("ltr"),X=this._viewportRuler.change(150),ce=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new _.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(ce),(0,de.T)(H,X,this._items.changes,this._itemsResized()).pipe((0,Ie.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),ce()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,Ie.R)(this._destroyed)).subscribe(Le=>{this.indexFocused.emit(Le),this._setTabFocus(Le)})}_itemsResized(){return"function"!=typeof ResizeObserver?be.E:this._items.changes.pipe((0,we.O)(this._items),function ee(Ee,oe){return(0,re.e)((H,X)=>{let ce=null,Le=0,at=!1;const Dt=()=>at&&!ce&&X.complete();H.subscribe((0,_e.x)(X,Mt=>{null==ce||ce.unsubscribe();let rn=0;const gi=Le++;(0,Y.Xf)(Ee(Mt,gi)).subscribe(ce=(0,_e.x)(X,kn=>X.next(oe?oe(Mt,kn,gi,rn++):kn),()=>{ce=null,Dt()}))},()=>{at=!0,Dt()}))})}(H=>new ke.y(X=>this._ngZone.runOutsideAngular(()=>{const ce=new ResizeObserver(Le=>X.next(Le));return H.forEach(Le=>ce.observe(Le.elementRef.nativeElement)),()=>{ce.disconnect()}}))),(0,he.T)(1),(0,Me.h)(H=>H.some(X=>X.contentRect.width>0&&X.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(H){if(!(0,Rt.Vb)(H))switch(H.keyCode){case Rt.K5:case Rt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(H));break;default:this._keyManager.onKeydown(H)}}_onContentChanges(){const H=this._elementRef.nativeElement.textContent;H!==this._currentTextContent&&(this._currentTextContent=H||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(H){!this._isValidIndex(H)||this.focusIndex===H||!this._keyManager||this._keyManager.setActiveItem(H)}_isValidIndex(H){if(!this._items)return!0;const X=this._items?this._items.toArray()[H]:null;return!!X&&!X.disabled}_setTabFocus(H){if(this._showPaginationControls&&this._scrollToLabel(H),this._items&&this._items.length){this._items.toArray()[H].focus();const X=this._tabListContainer.nativeElement;X.scrollLeft="ltr"==this._getLayoutDirection()?0:X.scrollWidth-X.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const H=this.scrollDistance,X="ltr"===this._getLayoutDirection()?-H:H;this._tabList.nativeElement.style.transform=`translateX(${Math.round(X)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(H){this._scrollTo(H)}_scrollHeader(H){return this._scrollTo(this._scrollDistance+("before"==H?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(H){this._stopInterval(),this._scrollHeader(H)}_scrollToLabel(H){if(this.disablePagination)return;const X=this._items?this._items.toArray()[H]:null;if(!X)return;const ce=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Le,offsetWidth:at}=X.elementRef.nativeElement;let Dt,Mt;"ltr"==this._getLayoutDirection()?(Dt=Le,Mt=Dt+at):(Mt=this._tabListInner.nativeElement.offsetWidth-Le,Dt=Mt-at);const rn=this.scrollDistance,gi=this.scrollDistance+ce;Dtgi&&(this.scrollDistance+=Mt-gi+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const H=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;H||(this.scrollDistance=0),H!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=H}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const H=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,X=H?H.elementRef.nativeElement:null;X?this._inkBar.alignToElement(X):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(H,X){X&&null!=X.button&&0!==X.button||(this._stopInterval(),kt(650,100).pipe((0,Ie.R)((0,de.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ce,distance:Le}=this._scrollHeader(H);(0===Le||Le>=ce)&&this._stopInterval()}))}_scrollTo(H){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const X=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(X,H)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:X,distance:this._scrollDistance}}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ht),p.Y36(It.Is,8),p.Y36(p.R0b),p.Y36(gn.t4),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{disablePagination:"disablePagination"}}),Ee})(),rr=(()=>{class Ee extends us{constructor(H,X,ce,Le,at,Dt,Mt){super(H,X,ce,Le,at,Dt,Mt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(H){this._disableRipple=(0,pt.Ig)(H)}_itemSelected(H){H.preventDefault()}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ht),p.Y36(It.Is,8),p.Y36(p.R0b),p.Y36(gn.t4),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{disableRipple:"disableRipple"},features:[p.qOj]}),Ee})(),pi=(()=>{class Ee extends rr{constructor(H,X,ce,Le,at,Dt,Mt){super(H,X,ce,Le,at,Dt,Mt)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ht),p.Y36(It.Is,8),p.Y36(p.R0b),p.Y36(gn.t4),p.Y36(p.QbO,8))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab-header"]],contentQueries:function(H,X,ce){if(1&H&&p.Suo(ce,Kr,4),2&H){let Le;p.iGM(Le=p.CRH())&&(X._items=Le)}},viewQuery:function(H,X){if(1&H&&(p.Gf(ci,7),p.Gf(se,7),p.Gf(Te,7),p.Gf(Ve,7),p.Gf(tt,5),p.Gf(gt,5)),2&H){let ce;p.iGM(ce=p.CRH())&&(X._inkBar=ce.first),p.iGM(ce=p.CRH())&&(X._tabListContainer=ce.first),p.iGM(ce=p.CRH())&&(X._tabList=ce.first),p.iGM(ce=p.CRH())&&(X._tabListInner=ce.first),p.iGM(ce=p.CRH())&&(X._nextPaginator=ce.first),p.iGM(ce=p.CRH())&&(X._previousPaginator=ce.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(H,X){2&H&&p.ekj("mat-tab-header-pagination-controls-enabled",X._showPaginationControls)("mat-tab-header-rtl","rtl"==X._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[p.qOj],ngContentSelectors:Gt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(H,X){1&H&&(p.F$t(),p.TgZ(0,"button",0,1),p.NdJ("click",function(){return X._handlePaginatorClick("before")})("mousedown",function(Le){return X._handlePaginatorPress("before",Le)})("touchend",function(){return X._stopInterval()}),p._UZ(2,"div",2),p.qZA(),p.TgZ(3,"div",3,4),p.NdJ("keydown",function(Le){return X._handleKeydown(Le)}),p.TgZ(5,"div",5,6),p.NdJ("cdkObserveContent",function(){return X._onContentChanges()}),p.TgZ(7,"div",7,8),p.Hsn(9),p.qZA(),p._UZ(10,"mat-ink-bar"),p.qZA()(),p.TgZ(11,"button",9,10),p.NdJ("mousedown",function(Le){return X._handlePaginatorPress("after",Le)})("click",function(){return X._handlePaginatorClick("after")})("touchend",function(){return X._stopInterval()}),p._UZ(13,"div",2),p.qZA()),2&H&&(p.ekj("mat-tab-header-pagination-disabled",X._disableScrollBefore),p.Q6J("matRippleDisabled",X._disableScrollBefore||X.disableRipple)("disabled",X._disableScrollBefore||null),p.xp6(5),p.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode),p.xp6(6),p.ekj("mat-tab-header-pagination-disabled",X._disableScrollAfter),p.Q6J("matRippleDisabled",X._disableScrollAfter||X.disableRipple)("disabled",X._disableScrollAfter||null))},dependencies:[Q.wG,j.wD,ci],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ee})(),Zr=0;class Sr{}const Xi=(0,Q.pj)((0,Q.Kr)(class{constructor(Ee){this._elementRef=Ee}}),"primary");let wr=(()=>{class Ee extends Xi{constructor(H,X,ce,Le){var at;super(H),this._changeDetectorRef=X,this._animationMode=Le,this._tabs=new p.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ye.w0.EMPTY,this._tabLabelSubscription=ye.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new p.vpe,this.focusChange=new p.vpe,this.animationDone=new p.vpe,this.selectedTabChange=new p.vpe(!0),this._groupId=Zr++,this.animationDuration=ce&&ce.animationDuration?ce.animationDuration:"500ms",this.disablePagination=!(!ce||null==ce.disablePagination)&&ce.disablePagination,this.dynamicHeight=!(!ce||null==ce.dynamicHeight)&&ce.dynamicHeight,this.contentTabIndex=null!==(at=null==ce?void 0:ce.contentTabIndex)&&void 0!==at?at:null,this.preserveContent=!(null==ce||!ce.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(H){this._dynamicHeight=(0,pt.Ig)(H)}get selectedIndex(){return this._selectedIndex}set selectedIndex(H){this._indexToSelect=(0,pt.su)(H,null)}get animationDuration(){return this._animationDuration}set animationDuration(H){this._animationDuration=/^\d+$/.test(H+"")?H+"ms":H}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(H){this._contentTabIndex=(0,pt.su)(H,null)}get disablePagination(){return this._disablePagination}set disablePagination(H){this._disablePagination=(0,pt.Ig)(H)}get preserveContent(){return this._preserveContent}set preserveContent(H){this._preserveContent=(0,pt.Ig)(H)}get backgroundColor(){return this._backgroundColor}set backgroundColor(H){const X=this._elementRef.nativeElement;X.classList.remove(`mat-background-${this.backgroundColor}`),H&&X.classList.add(`mat-background-${H}`),this._backgroundColor=H}ngAfterContentChecked(){const H=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=H){const X=null==this._selectedIndex;if(!X){this.selectedTabChange.emit(this._createChangeEvent(H));const ce=this._tabBodyWrapper.nativeElement;ce.style.minHeight=ce.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ce,Le)=>ce.isActive=Le===H),X||(this.selectedIndexChange.emit(H),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((X,ce)=>{X.position=ce-H,null!=this._selectedIndex&&0==X.position&&!X.origin&&(X.origin=H-this._selectedIndex)}),this._selectedIndex!==H&&(this._selectedIndex=H,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const H=this._clampTabIndex(this._indexToSelect);if(H===this._selectedIndex){const X=this._tabs.toArray();let ce;for(let Le=0;Le{X[H].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(H))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,we.O)(this._allTabs)).subscribe(H=>{this._tabs.reset(H.filter(X=>X._closestTabGroup===this||!X._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(H){const X=this._tabHeader;X&&(X.focusIndex=H)}_focusChanged(H){this._lastFocusedTabIndex=H,this.focusChange.emit(this._createChangeEvent(H))}_createChangeEvent(H){const X=new Sr;return X.index=H,this._tabs&&this._tabs.length&&(X.tab=this._tabs.toArray()[H]),X}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,de.T)(...this._tabs.map(H=>H._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(H){return Math.min(this._tabs.length-1,Math.max(H||0,0))}_getTabLabelId(H){return`mat-tab-label-${this._groupId}-${H}`}_getTabContentId(H){return`mat-tab-content-${this._groupId}-${H}`}_setTabBodyWrapperHeight(H){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const X=this._tabBodyWrapper.nativeElement;X.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(X.style.height=H+"px")}_removeTabBodyWrapperHeight(){const H=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=H.clientHeight,H.style.height="",this.animationDone.emit()}_handleClick(H,X,ce){H.disabled||(this.selectedIndex=X.focusIndex=ce)}_getTabIndex(H,X){var ce;return H.disabled?null:X===(null!==(ce=this._lastFocusedTabIndex)&&void 0!==ce?ce:this.selectedIndex)?0:-1}_tabFocusChanged(H,X){H&&"mouse"!==H&&"touch"!==H&&(this._tabHeader.focusIndex=X)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ji,8),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[p.qOj]}),Ee})(),qn=(()=>{class Ee extends wr{constructor(H,X,ce,Le){super(H,X,ce,Le)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ji,8),p.Y36(p.QbO,8))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab-group"]],contentQueries:function(H,X,ce){if(1&H&&p.Suo(ce,In,5),2&H){let Le;p.iGM(Le=p.CRH())&&(X._allTabs=Le)}},viewQuery:function(H,X){if(1&H&&(p.Gf(mt,5),p.Gf(Qt,5)),2&H){let ce;p.iGM(ce=p.CRH())&&(X._tabBodyWrapper=ce.first),p.iGM(ce=p.CRH())&&(X._tabHeader=ce.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(H,X){2&H&&p.ekj("mat-tab-group-dynamic-height",X.dynamicHeight)("mat-tab-group-inverted-header","below"===X.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[p._Bn([{provide:cn,useExisting:Ee}]),p.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(H,X){1&H&&(p.TgZ(0,"mat-tab-header",0,1),p.NdJ("indexFocused",function(Le){return X._focusChanged(Le)})("selectFocusedIndex",function(Le){return X.selectedIndex=Le}),p.YNc(2,zi,5,15,"div",2),p.qZA(),p.TgZ(3,"div",3,4),p.YNc(5,Qi,1,11,"mat-tab-body",5),p.qZA()),2&H&&(p.Q6J("selectedIndex",X.selectedIndex||0)("disableRipple",X.disableRipple)("disablePagination",X.disablePagination),p.xp6(2),p.Q6J("ngForOf",X._tabs),p.xp6(1),p.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode),p.xp6(2),p.Q6J("ngForOf",X._tabs))},dependencies:[h.mk,h.sg,h.O5,v,Q.wG,_.kH,Kr,Yn,pi],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Ee})(),mi=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=p.oAB({type:Ee}),Ee.\u0275inj=p.cJS({imports:[h.ez,Q.BQ,F,Q.si,j.Q8,_.rt,Q.BQ]}),Ee})()},7582:(nt,Fe,$)=>{"use strict";function y(ee,he,Me,Oe){return new(Me||(Me=Promise))(function(Ne,ue){function de(Ue){try{ke(Oe.next(Ue))}catch(ft){ue(ft)}}function be(Ue){try{ke(Oe.throw(Ue))}catch(ft){ue(ft)}}function ke(Ue){Ue.done?Ne(Ue.value):function ye(Ne){return Ne instanceof Me?Ne:new Me(function(ue){ue(Ne)})}(Ue.value).then(de,be)}ke((Oe=Oe.apply(ee,he||[])).next())})}function v(ee){return this instanceof v?(this.v=ee,this):new v(ee)}function w(ee,he,Me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ye,Oe=Me.apply(ee,he||[]),Ne=[];return ye={},ue("next"),ue("throw"),ue("return"),ye[Symbol.asyncIterator]=function(){return this},ye;function ue(Je){Oe[Je]&&(ye[Je]=function(kt){return new Promise(function(_t,It){Ne.push([Je,kt,_t,It])>1||de(Je,kt)})})}function de(Je,kt){try{!function be(Je){Je.value instanceof v?Promise.resolve(Je.value.v).then(ke,Ue):ft(Ne[0][2],Je)}(Oe[Je](kt))}catch(_t){ft(Ne[0][3],_t)}}function ke(Je){de("next",Je)}function Ue(Je){de("throw",Je)}function ft(Je,kt){Je(kt),Ne.shift(),Ne.length&&de(Ne[0][0],Ne[0][1])}}function Z(ee){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Me,he=ee[Symbol.asyncIterator];return he?he.call(ee):(ee=function d(ee){var he="function"==typeof Symbol&&Symbol.iterator,Me=he&&ee[he],Oe=0;if(Me)return Me.call(ee);if(ee&&"number"==typeof ee.length)return{next:function(){return ee&&Oe>=ee.length&&(ee=void 0),{value:ee&&ee[Oe++],done:!ee}}};throw new TypeError(he?"Object is not iterable.":"Symbol.iterator is not defined.")}(ee),Me={},Oe("next"),Oe("throw"),Oe("return"),Me[Symbol.asyncIterator]=function(){return this},Me);function Oe(Ne){Me[Ne]=ee[Ne]&&function(ue){return new Promise(function(de,be){!function ye(Ne,ue,de,be){Promise.resolve(be).then(function(ke){Ne({value:ke,done:de})},ue)}(de,be,(ue=ee[Ne](ue)).done,ue.value)})}}}$.d(Fe,{FC:()=>w,KL:()=>Z,mG:()=>y,qq:()=>v})}},nt=>{nt(nt.s=1950)}]); \ No newline at end of file diff --git a/main.d77eb2c80167a6f3.js b/main.d77eb2c80167a6f3.js new file mode 100644 index 0000000..0d6db81 --- /dev/null +++ b/main.d77eb2c80167a6f3.js @@ -0,0 +1 @@ +(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[179],{9199:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>ExampleComponent});var rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7579),_angular_forms__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2382),ng_terminal__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(617),xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3883),xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0__),_angular_core__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5e3),_angular_material_button__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(7423),_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2368),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7322),_angular_material_input__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7531),ngx_json_viewer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6224),_angular_material_tabs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6041);const _c0=["term"];let ExampleComponent=(()=>{class ExampleComponent{constructor(){this.title="NgTerminal Live Example",this.color="accent",this.prompt="\n"+ng_terminal__WEBPACK_IMPORTED_MODULE_2__.vd.cursorColumn(1)+"$ ",this._rows=void 0,this._cols=void 0,this._draggable=!1,this.draggableMode=!1,this.apiMode=!1,this.disabled=!1,this.rowsControl=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI,this.colsControl=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI,this.inputControl=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI,this.writeSubject=new rxjs__WEBPACK_IMPORTED_MODULE_4__.x,this.keyInput="",this.baseTheme={foreground:"#F8F8F8",background:"#2D2E2C",selectionBackground:"#5DA5D533",black:"#1E1E1D",brightBlack:"#262625",red:"#CE5C5C",brightRed:"#FF7272",green:"#5BCC5B",brightGreen:"#72FF72",yellow:"#CCCC5B",brightYellow:"#FFFF72",blue:"#5D5DD3",brightBlue:"#7279FF",magenta:"#BC5ED1",brightMagenta:"#E572FF",cyan:"#5DA5D5",brightCyan:"#72F0FF",white:"#F8F8F8",brightWhite:"#FFFFFF",border:"#85858a"}}ngAfterViewInit(){!this.child||(this.underlying=this.child.underlying,this.underlying.options.fontSize=20,this.underlying.loadAddon(new xterm_addon_web_links__WEBPACK_IMPORTED_MODULE_0__.WebLinksAddon),this.child.setXtermOptions({fontFamily:'"Cascadia Code", Menlo, monospace',theme:this.baseTheme,cursorBlink:!0}),this.child.write("$ NgTerminal Live Example"),this.child.write(this.prompt),this.child.onData().subscribe(nt=>{!this.child||("\r"===nt?this.child.write(this.prompt):"\x7f"===nt?this.child.underlying.buffer.active.cursorX>2&&this.child.write("\b \b"):"\x03"===nt?(this.child.write("^C"),this.child.write(this.prompt)):this.child.write(nt))}),this.child.onKey().subscribe(nt=>{}),this.rowsControl.valueChanges.subscribe(()=>{this.updateRows()}),this.colsControl.valueChanges.subscribe(()=>{this.updateCols()}))}resizableChange(nt){this.draggableMode=nt.checked,this.updateDraggable()}apiModeChange(nt){this.apiMode=nt.checked,this.updateDraggable()}updateDraggable(){this.apiMode?this.child.setDraggable(this.draggableMode):this._draggable=this.draggableMode}updateRows(){this.apiMode?this.child.setRows(this.rowsControl.value):this._rows=this.rowsControl.value}updateCols(){this.apiMode?this.child.setCols(this.colsControl.value):this._cols=this.colsControl.value}write(){this.writeSubject.next(eval(`'${this.inputControl.value}'`))}onKeyInput(nt){this.keyInput=nt}get displayOptionForLiveUpdate(){return{rows:this.rowsControl.value,cols:this.colsControl.value,draggable:this.draggableMode}}}return ExampleComponent.\u0275fac=function nt(Fe){return new(Fe||ExampleComponent)},ExampleComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_5__.Xpm({type:ExampleComponent,selectors:[["app-root"]],viewQuery:function nt(Fe,$){if(1&Fe&&_angular_core__WEBPACK_IMPORTED_MODULE_5__.Gf(_c0,5),2&Fe){let _;_angular_core__WEBPACK_IMPORTED_MODULE_5__.iGM(_=_angular_core__WEBPACK_IMPORTED_MODULE_5__.CRH())&&($.child=_.first)}},decls:42,vars:19,consts:[["tabGroup",""],["label","Terminal1"],[2,"display","flex"],[2,"flex","1"],[1,"ng-terminal",3,"dataSource","rows","cols","minWidth","minHeight","draggable","data"],["term",""],[2,"padding-left","1em","padding-top","0.3em","margin-top","0.7em","padding-bottom","1em"],[2,"display","inline-block","vertical-align","top","margin-bottom","0.8em"],[3,"checked","color","disabled","change"],[2,"margin-left","10px",3,"checked","color","disabled","change"],["matInput","","placeholder","rows","type","number",3,"formControl"],["matInput","","placeholder","cols","type","number",3,"formControl"],[2,"display","inline-block","vertical-align","top"],[3,"json"],[2,"font-size","0.8em","font-weight","bold"],["matInput","","placeholder","Type here","value","",3,"formControl"],["mat-raised-button","","color","primary",3,"click"],["label","Terminal2"]],template:function nt(Fe,$){1&Fe&&(_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(0,"mat-tab-group",null,0)(2,"mat-tab",1)(3,"div",2)(4,"div",3)(5,"ng-terminal",4,5),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("data",function(j){return $.onKeyInput(j)}),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(7,"div",6)(8,"div")(9,"div",7)(10,"h3"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(11,"Display Opiton"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(12,"div")(13,"mat-slide-toggle",8),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("change",function(j){return $.resizableChange(j)}),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(14," Draggable "),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(15,"mat-slide-toggle",9),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("change",function(j){return $.apiModeChange(j)}),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(16," by using API "),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(17,"div")(18,"mat-form-field"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(19,"input",10),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(20,"mat-form-field"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(21,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(22,"div",12)(23,"h4"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(24,"JSON"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(25,"ngx-json-viewer",13),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(26,"h3"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(27,"Examples of data binding"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(28,"div")(29,"span",14),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(30,"[dataSource]"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(31,"div")(32,"mat-form-field"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(33,"input",15),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(34,"button",16),_angular_core__WEBPACK_IMPORTED_MODULE_5__.NdJ("click",function(){return $.write()}),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(35," Write "),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(36,"div")(37,"span",14),_angular_core__WEBPACK_IMPORTED_MODULE_5__._uU(38),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_5__.TgZ(39,"mat-tab",17)(40,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_5__._UZ(41,"ng-terminal"),_angular_core__WEBPACK_IMPORTED_MODULE_5__.qZA()()()),2&Fe&&(_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("dataSource",$.writeSubject)("rows",$._rows)("cols",$._cols)("minWidth",200)("minHeight",200)("draggable",$._draggable),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_5__.ekj("mat-elevation-z1",!0),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("checked",$.draggableMode)("color",$.color)("disabled",$.disabled),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("checked",$.apiMode)("color",$.color)("disabled",$.disabled),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("formControl",$.rowsControl),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("formControl",$.colsControl),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("json",$.displayOptionForLiveUpdate),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(8),_angular_core__WEBPACK_IMPORTED_MODULE_5__.Q6J("formControl",$.inputControl),_angular_core__WEBPACK_IMPORTED_MODULE_5__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_5__.hij("(data): ",$.keyInput,""))},dependencies:[ng_terminal__WEBPACK_IMPORTED_MODULE_2__.Eo,_angular_material_button__WEBPACK_IMPORTED_MODULE_6__.lW,_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_7__.Rr,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__.KE,_angular_material_input__WEBPACK_IMPORTED_MODULE_9__.Nt,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Fj,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.wV,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.oH,ngx_json_viewer__WEBPACK_IMPORTED_MODULE_1__.Y,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_10__.SP,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_10__.uX],styles:[".outer-box[_ngcontent-%COMP%]{height:30vh;padding:5px 0}"]}),ExampleComponent})()},1950:(nt,Fe,$)=>{"use strict";var _=$(9808),j=$(5e3);class p extends _.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class h extends p{static makeCurrent(){(0,_.HT)(new h)}onAndCancel(o,a,m){return o.addEventListener(a,m,!1),()=>{o.removeEventListener(a,m,!1)}}dispatchEvent(o,a){o.dispatchEvent(a)}remove(o){o.parentNode&&o.parentNode.removeChild(o)}createElement(o,a){return(a=a||this.getDefaultDocument()).createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,a){return"window"===a?window:"document"===a?o:"body"===a?o.body:null}getBaseHref(o){const a=function E(){return b=b||document.querySelector("base"),b?b.getAttribute("href"):null}();return null==a?null:function D(O){I=I||document.createElement("a"),I.setAttribute("href",O);const o=I.pathname;return"/"===o.charAt(0)?o:`/${o}`}(a)}resetBaseElement(){b=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return(0,_.Mx)(document.cookie,o)}}let I,b=null;const A=new j.OlP("TRANSITION_ID"),T=[{provide:j.ip1,useFactory:function P(O,o,a){return()=>{a.get(j.CZH).donePromise.then(()=>{const m=(0,_.q)(),N=o.querySelectorAll(`style[ng-transition="${O}"]`);for(let G=0;G{class O{build(){return new XMLHttpRequest}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();const f=new j.OlP("EventManagerPlugins");let u=(()=>{class O{constructor(a,m){this._zone=m,this._eventNameToPlugin=new Map,a.forEach(N=>N.manager=this),this._plugins=a.slice().reverse()}addEventListener(a,m,N){return this._findPluginFor(m).addEventListener(a,m,N)}addGlobalEventListener(a,m,N){return this._findPluginFor(m).addGlobalEventListener(a,m,N)}getZone(){return this._zone}_findPluginFor(a){const m=this._eventNameToPlugin.get(a);if(m)return m;const N=this._plugins;for(let G=0;G{class O{constructor(){this._stylesSet=new Set}addStyles(a){const m=new Set;a.forEach(N=>{this._stylesSet.has(N)||(this._stylesSet.add(N),m.add(N))}),this.onStylesAdded(m)}onStylesAdded(a){}getAllStyles(){return Array.from(this._stylesSet)}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})(),R=(()=>{class O extends C{constructor(a){super(),this._doc=a,this._hostNodes=new Map,this._hostNodes.set(a.head,[])}_addStylesToHost(a,m,N){a.forEach(G=>{const ae=this._doc.createElement("style");ae.textContent=G,N.push(m.appendChild(ae))})}addHost(a){const m=[];this._addStylesToHost(this._stylesSet,a,m),this._hostNodes.set(a,m)}removeHost(a){const m=this._hostNodes.get(a);m&&m.forEach(U),this._hostNodes.delete(a)}onStylesAdded(a){this._hostNodes.forEach((m,N)=>{this._addStylesToHost(a,N,m)})}ngOnDestroy(){this._hostNodes.forEach(a=>a.forEach(U))}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();function U(O){(0,_.q)().remove(O)}const W={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},v=/%COMP%/g,F="%COMP%",Z=`_nghost-${F}`,Q=`_ngcontent-${F}`;function Be(O,o,a){for(let m=0;m{if("__ngUnwrap__"===o)return O;!1===O(o)&&(o.preventDefault(),o.returnValue=!1)}}let re=(()=>{class O{constructor(a,m,N){this.eventManager=a,this.sharedStylesHost=m,this.appId=N,this.rendererByCompId=new Map,this.defaultRenderer=new _e(a)}createRenderer(a,m){if(!a||!m)return this.defaultRenderer;switch(m.encapsulation){case j.ifc.Emulated:{let N=this.rendererByCompId.get(m.id);return N||(N=new Oe(this.eventManager,this.sharedStylesHost,m,this.appId),this.rendererByCompId.set(m.id,N)),N.applyToHost(a),N}case 1:case j.ifc.ShadowDom:return new ye(this.eventManager,this.sharedStylesHost,a,m);default:if(!this.rendererByCompId.has(m.id)){const N=Be(m.id,m.styles,[]);this.sharedStylesHost.addStyles(N),this.rendererByCompId.set(m.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(u),j.LFG(R),j.LFG(j.AFp))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();class _e{constructor(o){this.eventManager=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(o,a){return a?document.createElementNS(W[a]||a,o):document.createElement(o)}createComment(o){return document.createComment(o)}createText(o){return document.createTextNode(o)}appendChild(o,a){(Me(o)?o.content:o).appendChild(a)}insertBefore(o,a,m){o&&(Me(o)?o.content:o).insertBefore(a,m)}removeChild(o,a){o&&o.removeChild(a)}selectRootElement(o,a){let m="string"==typeof o?document.querySelector(o):o;if(!m)throw new Error(`The selector "${o}" did not match any elements`);return a||(m.textContent=""),m}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,a,m,N){if(N){a=N+":"+a;const G=W[N];G?o.setAttributeNS(G,a,m):o.setAttribute(a,m)}else o.setAttribute(a,m)}removeAttribute(o,a,m){if(m){const N=W[m];N?o.removeAttributeNS(N,a):o.removeAttribute(`${m}:${a}`)}else o.removeAttribute(a)}addClass(o,a){o.classList.add(a)}removeClass(o,a){o.classList.remove(a)}setStyle(o,a,m,N){N&(j.JOm.DashCase|j.JOm.Important)?o.style.setProperty(a,m,N&j.JOm.Important?"important":""):o.style[a]=m}removeStyle(o,a,m){m&j.JOm.DashCase?o.style.removeProperty(a):o.style[a]=""}setProperty(o,a,m){o[a]=m}setValue(o,a){o.nodeValue=a}listen(o,a,m){return"string"==typeof o?this.eventManager.addGlobalEventListener(o,a,xe(m)):this.eventManager.addEventListener(o,a,xe(m))}}function Me(O){return"TEMPLATE"===O.tagName&&void 0!==O.content}class Oe extends _e{constructor(o,a,m,N){super(o),this.component=m;const G=Be(N+"-"+m.id,m.styles,[]);a.addStyles(G),this.contentAttr=function ne(O){return Q.replace(v,O)}(N+"-"+m.id),this.hostAttr=function we(O){return Z.replace(v,O)}(N+"-"+m.id)}applyToHost(o){super.setAttribute(o,this.hostAttr,"")}createElement(o,a){const m=super.createElement(o,a);return super.setAttribute(m,this.contentAttr,""),m}}class ye extends _e{constructor(o,a,m,N){super(o),this.sharedStylesHost=a,this.hostEl=m,this.shadowRoot=m.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const G=Be(N.id,N.styles,[]);for(let ae=0;ae{class O extends d{constructor(a){super(a)}supports(a){return!0}addEventListener(a,m,N){return a.addEventListener(m,N,!1),()=>this.removeEventListener(a,m,N)}removeEventListener(a,m,N){return a.removeEventListener(m,N)}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();const ue=["alt","control","meta","shift"],de={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},be={alt:O=>O.altKey,control:O=>O.ctrlKey,meta:O=>O.metaKey,shift:O=>O.shiftKey};let ke=(()=>{class O extends d{constructor(a){super(a)}supports(a){return null!=O.parseEventName(a)}addEventListener(a,m,N){const G=O.parseEventName(m),ae=O.eventCallback(G.fullKey,N,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,_.q)().onAndCancel(a,G.domEventName,ae))}static parseEventName(a){const m=a.toLowerCase().split("."),N=m.shift();if(0===m.length||"keydown"!==N&&"keyup"!==N)return null;const G=O._normalizeKey(m.pop());let ae="",fe=m.indexOf("code");if(fe>-1&&(m.splice(fe,1),ae="code."),ue.forEach(Ke=>{const st=m.indexOf(Ke);st>-1&&(m.splice(st,1),ae+=Ke+".")}),ae+=G,0!=m.length||0===G.length)return null;const Ie={};return Ie.domEventName=N,Ie.fullKey=ae,Ie}static matchEventFullKeyCode(a,m){let N=de[a.key]||a.key,G="";return m.indexOf("code.")>-1&&(N=a.code,G="code."),!(null==N||!N)&&(N=N.toLowerCase()," "===N?N="space":"."===N&&(N="dot"),ue.forEach(ae=>{ae!==N&&(0,be[ae])(a)&&(G+=ae+".")}),G+=N,G===m)}static eventCallback(a,m,N){return G=>{O.matchEventFullKeyCode(G,a)&&N.runGuarded(()=>m(G))}}static _normalizeKey(a){return"esc"===a?"escape":a}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();const Nn=(0,j.eFA)(j._c5,"browser",[{provide:j.Lbi,useValue:_.bD},{provide:j.g9A,useValue:function xt(){h.makeCurrent()},multi:!0},{provide:_.K0,useFactory:function kt(){return(0,j.RDi)(document),document},deps:[]}]),Tn=new j.OlP(""),Re=[{provide:j.rWj,useClass:class y{addToWindow(o){j.dqk.getAngularTestability=(m,N=!0)=>{const G=o.findTestabilityInTree(m,N);if(null==G)throw new Error("Could not find testability for element.");return G},j.dqk.getAllAngularTestabilities=()=>o.getAllTestabilities(),j.dqk.getAllAngularRootElements=()=>o.getAllRootElements(),j.dqk.frameworkStabilizers||(j.dqk.frameworkStabilizers=[]),j.dqk.frameworkStabilizers.push(m=>{const N=j.dqk.getAllAngularTestabilities();let G=N.length,ae=!1;const fe=function(Ie){ae=ae||Ie,G--,0==G&&m(ae)};N.forEach(function(Ie){Ie.whenStable(fe)})})}findTestabilityInTree(o,a,m){if(null==a)return null;const N=o.getTestability(a);return null!=N?N:m?(0,_.q)().isShadowRoot(a)?this.findTestabilityInTree(o,a.host,!0):this.findTestabilityInTree(o,a.parentElement,!0):null}},deps:[]},{provide:j.lri,useClass:j.dDg,deps:[j.R0b,j.eoX,j.rWj]},{provide:j.dDg,useClass:j.dDg,deps:[j.R0b,j.eoX,j.rWj]}],$e=[{provide:j.zSh,useValue:"root"},{provide:j.qLn,useFactory:function pt(){return new j.qLn},deps:[]},{provide:f,useClass:Ne,multi:!0,deps:[_.K0,j.R0b,j.Lbi]},{provide:f,useClass:ke,multi:!0,deps:[_.K0]},{provide:re,useClass:re,deps:[u,R,j.AFp]},{provide:j.FYo,useExisting:re},{provide:C,useExisting:R},{provide:R,useClass:R,deps:[_.K0]},{provide:u,useClass:u,deps:[f,j.R0b]},{provide:_.JF,useClass:l,deps:[]},[]];let ie=(()=>{class O{constructor(a){}static withServerTransition(a){return{ngModule:O,providers:[{provide:j.AFp,useValue:a.appId},{provide:A,useExisting:j.AFp},T]}}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(Tn,12))},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({providers:[...$e,...Re],imports:[_.ez,j.hGG]}),O})();"undefined"!=typeof window&&window;var Xn=$(2368),Hn=$(7423),Oi=$(7531),oi=$(617),on=$(2382),Gt=$(1777);function pe(O){return new j.vHH(3e3,!1)}function us(){return"undefined"!=typeof window&&void 0!==window.document}function rr(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function pi(O){switch(O.length){case 0:return new Gt.ZN;case 1:return O[0];default:return new Gt.ZE(O)}}function Zr(O,o,a,m,N=new Map,G=new Map){const ae=[],fe=[];let Ie=-1,Ke=null;if(m.forEach(st=>{const ct=st.get("offset"),Bt=ct==Ie,Ut=Bt&&Ke||new Map;st.forEach((Tt,Nt)=>{let an=Nt,sn=Tt;if("offset"!==Nt)switch(an=o.normalizePropertyName(an,ae),sn){case Gt.k1:sn=N.get(Nt);break;case Gt.l3:sn=G.get(Nt);break;default:sn=o.normalizeStyleValue(Nt,an,sn,ae)}Ut.set(an,sn)}),Bt||fe.push(Ut),Ke=Ut,Ie=ct}),ae.length)throw function cn(O){return new j.vHH(3502,!1)}();return fe}function Sr(O,o,a,m){switch(o){case"start":O.onStart(()=>m(a&&Xi(a,"start",O)));break;case"done":O.onDone(()=>m(a&&Xi(a,"done",O)));break;case"destroy":O.onDestroy(()=>m(a&&Xi(a,"destroy",O)))}}function Xi(O,o,a){const m=a.totalTime,G=wr(O.element,O.triggerName,O.fromState,O.toState,o||O.phaseName,null==m?O.totalTime:m,!!a.disabled),ae=O._data;return null!=ae&&(G._data=ae),G}function wr(O,o,a,m,N="",G=0,ae){return{element:O,triggerName:o,fromState:a,toState:m,phaseName:N,totalTime:G,disabled:!!ae}}function qn(O,o,a){let m=O.get(o);return m||O.set(o,m=a),m}function Qr(O){const o=O.indexOf(":");return[O.substring(1,o),O.slice(o+1)]}let Jr=(O,o)=>!1,Xr=(O,o,a)=>[],Mr=null;function Wi(O){const o=O.parentNode||O.host;return o===Mr?null:o}(rr()||"undefined"!=typeof Element)&&(us()?(Mr=(()=>document.documentElement)(),Jr=(O,o)=>{for(;o;){if(o===O)return!0;o=Wi(o)}return!1}):Jr=(O,o)=>O.contains(o),Xr=(O,o,a)=>{if(a)return Array.from(O.querySelectorAll(o));const m=O.querySelector(o);return m?[m]:[]});let mi=null,Ee=!1;const ce=Jr,Le=Xr;let Dt=(()=>{class O{validateStyleProperty(a){return function oe(O){mi||(mi=function X(){return"undefined"!=typeof document?document.body:null}()||{},Ee=!!mi.style&&"WebkitAppearance"in mi.style);let o=!0;return mi.style&&!function Is(O){return"ebkit"==O.substring(1,6)}(O)&&(o=O in mi.style,!o&&Ee&&(o="Webkit"+O.charAt(0).toUpperCase()+O.slice(1)in mi.style)),o}(a)}matchesElement(a,m){return!1}containsElement(a,m){return ce(a,m)}getParentElement(a){return Wi(a)}query(a,m,N){return Le(a,m,N)}computeStyle(a,m,N){return N||""}animate(a,m,N,G,ae,fe=[],Ie){return new Gt.ZN(N,G)}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})(),Mt=(()=>{class O{}return O.NOOP=new Dt,O})();const Gi="ng-enter",Tr="ng-leave",sr="ng-trigger",Ar=".ng-trigger",to="ng-animating",_n=".ng-animating";function _i(O){if("number"==typeof O)return O;const o=O.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:Os(parseFloat(o[1]),o[2])}function Os(O,o){return"s"===o?1e3*O:O}function Si(O,o,a){return O.hasOwnProperty("duration")?O:function Un(O,o,a){let N,G=0,ae="";if("string"==typeof O){const fe=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===fe)return o.push(pe()),{duration:0,delay:0,easing:""};N=Os(parseFloat(fe[1]),fe[2]);const Ie=fe[3];null!=Ie&&(G=Os(parseFloat(Ie),fe[4]));const Ke=fe[5];Ke&&(ae=Ke)}else N=O;if(!a){let fe=!1,Ie=o.length;N<0&&(o.push(function le(){return new j.vHH(3100,!1)}()),fe=!0),G<0&&(o.push(function se(){return new j.vHH(3101,!1)}()),fe=!0),fe&&o.splice(Ie,0,pe())}return{duration:N,delay:G,easing:ae}}(O,o,a)}function vi(O,o={}){return Object.keys(O).forEach(a=>{o[a]=O[a]}),o}function xr(O){const o=new Map;return Object.keys(O).forEach(a=>{o.set(a,O[a])}),o}function ki(O,o=new Map,a){if(a)for(let[m,N]of a)o.set(m,N);for(let[m,N]of O)o.set(m,N);return o}function or(O,o,a){return a?o+":"+a+";":""}function hs(O){let o="";for(let a=0;a{const G=lr(N);a&&!a.has(N)&&a.set(N,O.style[G]),O.style[G]=m}),rr()&&hs(O))}function Zn(O,o){O.style&&(o.forEach((a,m)=>{const N=lr(m);O.style[N]=""}),rr()&&hs(O))}function Ki(O){return Array.isArray(O)?1==O.length?O[0]:(0,Gt.vP)(O):O}const Ir=new RegExp("{{\\s*(.+?)\\s*}}","g");function fs(O){let o=[];if("string"==typeof O){let a;for(;a=Ir.exec(O);)o.push(a[1]);Ir.lastIndex=0}return o}function Or(O,o,a){const m=O.toString(),N=m.replace(Ir,(G,ae)=>{let fe=o[ae];return null==fe&&(a.push(function Ve(O){return new j.vHH(3003,!1)}()),fe=""),fe.toString()});return N==m?O:N}function ar(O){const o=[];let a=O.next();for(;!a.done;)o.push(a.value),a=O.next();return o}const Rs=/-+([a-z0-9])/g;function lr(O){return O.replace(Rs,(...o)=>o[1].toUpperCase())}function no(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ot(O,o,a){switch(o.type){case 7:return O.visitTrigger(o,a);case 0:return O.visitState(o,a);case 1:return O.visitTransition(o,a);case 2:return O.visitSequence(o,a);case 3:return O.visitGroup(o,a);case 4:return O.visitAnimate(o,a);case 5:return O.visitKeyframes(o,a);case 6:return O.visitStyle(o,a);case 8:return O.visitReference(o,a);case 9:return O.visitAnimateChild(o,a);case 10:return O.visitAnimateRef(o,a);case 11:return O.visitQuery(o,a);case 12:return O.visitStagger(o,a);default:throw function tt(O){return new j.vHH(3004,!1)}()}}function ps(O,o){return window.getComputedStyle(O)[o]}function vn(O,o){const a=[];return"string"==typeof O?O.split(/\s*,\s*/).forEach(m=>function B(O,o,a){if(":"==O[0]){const Ie=function k(O,o){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,m)=>parseFloat(m)>parseFloat(a);case":decrement":return(a,m)=>parseFloat(m) *"}}(O,a);if("function"==typeof Ie)return void o.push(Ie);O=Ie}const m=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return a.push(function ui(O){return new j.vHH(3015,!1)}()),o;const N=m[1],G=m[2],ae=m[3];o.push(je(N,ae));"<"==G[0]&&!("*"==N&&"*"==ae)&&o.push(je(ae,N))}(m,a,o)):a.push(O),a}const S=new Set(["true","1"]),q=new Set(["false","0"]);function je(O,o){const a=S.has(O)||q.has(O),m=S.has(o)||q.has(o);return(N,G)=>{let ae="*"==O||O==N,fe="*"==o||o==G;return!ae&&a&&"boolean"==typeof N&&(ae=N?S.has(O):q.has(O)),!fe&&m&&"boolean"==typeof G&&(fe=G?S.has(o):q.has(o)),ae&&fe}}const Kt=new RegExp("s*:selfs*,?","g");function ti(O,o,a,m){return new ur(O).build(o,a,m)}class ur{constructor(o){this._driver=o}build(o,a,m){const N=new es(a);return this._resetContextStyleTimingState(N),Ot(this,Ki(o),N)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,a){let m=a.queryCount=0,N=a.depCount=0;const G=[],ae=[];return"@"==o.name.charAt(0)&&a.errors.push(function mt(){return new j.vHH(3006,!1)}()),o.definitions.forEach(fe=>{if(this._resetContextStyleTimingState(a),0==fe.type){const Ie=fe,Ke=Ie.name;Ke.toString().split(/\s*,\s*/).forEach(st=>{Ie.name=st,G.push(this.visitState(Ie,a))}),Ie.name=Ke}else if(1==fe.type){const Ie=this.visitTransition(fe,a);m+=Ie.queryCount,N+=Ie.depCount,ae.push(Ie)}else a.errors.push(function Qt(){return new j.vHH(3007,!1)}())}),{type:7,name:o.name,states:G,transitions:ae,queryCount:m,depCount:N,options:null}}visitState(o,a){const m=this.visitStyle(o.styles,a),N=o.options&&o.options.params||null;if(m.containsDynamicStyles){const G=new Set,ae=N||{};m.styles.forEach(fe=>{fe instanceof Map&&fe.forEach(Ie=>{fs(Ie).forEach(Ke=>{ae.hasOwnProperty(Ke)||G.add(Ke)})})}),G.size&&(ar(G.values()),a.errors.push(function hn(O,o){return new j.vHH(3008,!1)}()))}return{type:0,name:o.name,style:m,options:N?{params:N}:null}}visitTransition(o,a){a.queryCount=0,a.depCount=0;const m=Ot(this,Ki(o.animation),a);return{type:1,matchers:vn(o.expr,a.errors),animation:m,queryCount:a.queryCount,depCount:a.depCount,options:kr(o.options)}}visitSequence(o,a){return{type:2,steps:o.steps.map(m=>Ot(this,m,a)),options:kr(o.options)}}visitGroup(o,a){const m=a.currentTime;let N=0;const G=o.steps.map(ae=>{a.currentTime=m;const fe=Ot(this,ae,a);return N=Math.max(N,a.currentTime),fe});return a.currentTime=N,{type:3,steps:G,options:kr(o.options)}}visitAnimate(o,a){const m=function fr(O,o){if(O.hasOwnProperty("duration"))return O;if("number"==typeof O)return Ls(Si(O,o).duration,0,"");const a=O;if(a.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Ls(0,0,"");return G.dynamic=!0,G.strValue=a,G}const N=Si(a,o);return Ls(N.duration,N.delay,N.easing)}(o.timings,a.errors);a.currentAnimateTimings=m;let N,G=o.styles?o.styles:(0,Gt.oB)({});if(5==G.type)N=this.visitKeyframes(G,a);else{let ae=o.styles,fe=!1;if(!ae){fe=!0;const Ke={};m.easing&&(Ke.easing=m.easing),ae=(0,Gt.oB)(Ke)}a.currentTime+=m.duration+m.delay;const Ie=this.visitStyle(ae,a);Ie.isEmptyStep=fe,N=Ie}return a.currentAnimateTimings=null,{type:4,timings:m,style:N,options:null}}visitStyle(o,a){const m=this._makeStyleAst(o,a);return this._validateStyleAst(m,a),m}_makeStyleAst(o,a){const m=[],N=Array.isArray(o.styles)?o.styles:[o.styles];for(let fe of N)"string"==typeof fe?fe===Gt.l3?m.push(fe):a.errors.push(new j.vHH(3002,!1)):m.push(xr(fe));let G=!1,ae=null;return m.forEach(fe=>{if(fe instanceof Map&&(fe.has("easing")&&(ae=fe.get("easing"),fe.delete("easing")),!G))for(let Ie of fe.values())if(Ie.toString().indexOf("{{")>=0){G=!0;break}}),{type:6,styles:m,easing:ae,offset:o.offset,containsDynamicStyles:G,options:null}}_validateStyleAst(o,a){const m=a.currentAnimateTimings;let N=a.currentTime,G=a.currentTime;m&&G>0&&(G-=m.duration+m.delay),o.styles.forEach(ae=>{"string"!=typeof ae&&ae.forEach((fe,Ie)=>{const Ke=a.collectedStyles.get(a.currentQuerySelector),st=Ke.get(Ie);let ct=!0;st&&(G!=N&&G>=st.startTime&&N<=st.endTime&&(a.errors.push(function zi(O,o,a,m,N){return new j.vHH(3010,!1)}()),ct=!1),G=st.startTime),ct&&Ke.set(Ie,{startTime:G,endTime:N}),a.options&&function St(O,o,a){const m=o.params||{},N=fs(O);N.length&&N.forEach(G=>{m.hasOwnProperty(G)||a.push(function Te(O){return new j.vHH(3001,!1)}())})}(fe,a.options,a.errors)})})}visitKeyframes(o,a){const m={type:5,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(function Qi(){return new j.vHH(3011,!1)}()),m;let G=0;const ae=[];let fe=!1,Ie=!1,Ke=0;const st=o.steps.map(sn=>{const Ln=this._makeStyleAst(sn,a);let ii=null!=Ln.offset?Ln.offset:function gs(O){if("string"==typeof O)return null;let o=null;if(Array.isArray(O))O.forEach(a=>{if(a instanceof Map&&a.has("offset")){const m=a;o=parseFloat(m.get("offset")),m.delete("offset")}});else if(O instanceof Map&&O.has("offset")){const a=O;o=parseFloat(a.get("offset")),a.delete("offset")}return o}(Ln.styles),$n=0;return null!=ii&&(G++,$n=Ln.offset=ii),Ie=Ie||$n<0||$n>1,fe=fe||$n0&&G{const ii=Bt>0?Ln==Ut?1:Bt*Ln:ae[Ln],$n=ii*an;a.currentTime=Tt+Nt.delay+$n,Nt.duration=$n,this._validateStyleAst(sn,a),sn.offset=ii,m.styles.push(sn)}),m}visitReference(o,a){return{type:8,animation:Ot(this,Ki(o.animation),a),options:kr(o.options)}}visitAnimateChild(o,a){return a.depCount++,{type:9,options:kr(o.options)}}visitAnimateRef(o,a){return{type:10,animation:this.visitReference(o.animation,a),options:kr(o.options)}}visitQuery(o,a){const m=a.currentQuerySelector,N=o.options||{};a.queryCount++,a.currentQuery=o;const[G,ae]=function dr(O){const o=!!O.split(/\s*,\s*/).find(a=>":self"==a);return o&&(O=O.replace(Kt,"")),O=O.replace(/@\*/g,Ar).replace(/@\w+/g,a=>Ar+"-"+a.slice(1)).replace(/:animating/g,_n),[O,o]}(o.selector);a.currentQuerySelector=m.length?m+" "+G:G,qn(a.collectedStyles,a.currentQuerySelector,new Map);const fe=Ot(this,Ki(o.animation),a);return a.currentQuery=null,a.currentQuerySelector=m,{type:11,selector:G,limit:N.limit||0,optional:!!N.optional,includeSelf:ae,animation:fe,originalSelector:o.selector,options:kr(o.options)}}visitStagger(o,a){a.currentQuery||a.errors.push(function ci(){return new j.vHH(3013,!1)}());const m="full"===o.timings?{duration:0,delay:0,easing:"full"}:Si(o.timings,a.errors,!0);return{type:12,animation:Ot(this,Ki(o.animation),a),timings:m,options:null}}}class es{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function kr(O){return O?(O=vi(O)).params&&(O.params=function hr(O){return O?vi(O):null}(O.params)):O={},O}function Ls(O,o,a){return{duration:O,delay:o,easing:a}}function Pr(O,o,a,m,N,G,ae=null,fe=!1){return{type:1,element:O,keyframes:o,preStyleProps:a,postStyleProps:m,duration:N,delay:G,totalTime:N+G,easing:ae,subTimeline:fe}}class Lr{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,a){let m=this._map.get(o);m||this._map.set(o,m=[]),m.push(...a)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const ro=new RegExp(":enter","g"),Ma=new RegExp(":leave","g");function so(O,o,a,m,N,G=new Map,ae=new Map,fe,Ie,Ke=[]){return(new ni).buildKeyframes(O,o,a,m,N,G,ae,fe,Ie,Ke)}class ni{buildKeyframes(o,a,m,N,G,ae,fe,Ie,Ke,st=[]){Ke=Ke||new Lr;const ct=new fn(o,a,Ke,N,G,st,[]);ct.options=Ie;const Bt=Ie.delay?_i(Ie.delay):0;ct.currentTimeline.delayNextStep(Bt),ct.currentTimeline.setStyles([ae],null,ct.errors,Ie),Ot(this,m,ct);const Ut=ct.timelines.filter(Tt=>Tt.containsAnimation());if(Ut.length&&fe.size){let Tt;for(let Nt=Ut.length-1;Nt>=0;Nt--){const an=Ut[Nt];if(an.element===a){Tt=an;break}}Tt&&!Tt.allowOnlyTimelineStyles()&&Tt.setStyles([fe],null,ct.errors,Ie)}return Ut.length?Ut.map(Tt=>Tt.buildKeyframes()):[Pr(a,[],[],[],0,Bt,"",!1)]}visitTrigger(o,a){}visitState(o,a){}visitTransition(o,a){}visitAnimateChild(o,a){const m=a.subInstructions.get(a.element);if(m){const N=a.createSubContext(o.options),G=a.currentTimeline.currentTime,ae=this._visitSubInstructions(m,N,N.options);G!=ae&&a.transformIntoNewTimeline(ae)}a.previousNode=o}visitAnimateRef(o,a){const m=a.createSubContext(o.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],a,m),this.visitReference(o.animation,m),a.transformIntoNewTimeline(m.currentTimeline.currentTime),a.previousNode=o}_applyAnimationRefDelays(o,a,m){var N;for(const G of o){const ae=null==G?void 0:G.delay;if(ae){const fe="number"==typeof ae?ae:_i(Or(ae,null!==(N=null==G?void 0:G.params)&&void 0!==N?N:{},a.errors));m.delayNextStep(fe)}}}_visitSubInstructions(o,a,m){let G=a.currentTimeline.currentTime;const ae=null!=m.duration?_i(m.duration):null,fe=null!=m.delay?_i(m.delay):null;return 0!==ae&&o.forEach(Ie=>{const Ke=a.appendInstructionToTimeline(Ie,ae,fe);G=Math.max(G,Ke.duration+Ke.delay)}),G}visitReference(o,a){a.updateOptions(o.options,!0),Ot(this,o.animation,a),a.previousNode=o}visitSequence(o,a){const m=a.subContextCount;let N=a;const G=o.options;if(G&&(G.params||G.delay)&&(N=a.createSubContext(G),N.transformIntoNewTimeline(),null!=G.delay)){6==N.previousNode.type&&(N.currentTimeline.snapshotCurrentStyles(),N.previousNode=Li);const ae=_i(G.delay);N.delayNextStep(ae)}o.steps.length&&(o.steps.forEach(ae=>Ot(this,ae,N)),N.currentTimeline.applyStylesToKeyframe(),N.subContextCount>m&&N.transformIntoNewTimeline()),a.previousNode=o}visitGroup(o,a){const m=[];let N=a.currentTimeline.currentTime;const G=o.options&&o.options.delay?_i(o.options.delay):0;o.steps.forEach(ae=>{const fe=a.createSubContext(o.options);G&&fe.delayNextStep(G),Ot(this,ae,fe),N=Math.max(N,fe.currentTimeline.currentTime),m.push(fe.currentTimeline)}),m.forEach(ae=>a.currentTimeline.mergeTimelineCollectedStyles(ae)),a.transformIntoNewTimeline(N),a.previousNode=o}_visitTiming(o,a){if(o.dynamic){const m=o.strValue;return Si(a.params?Or(m,a.params,a.errors):m,a.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,a){const m=a.currentAnimateTimings=this._visitTiming(o.timings,a),N=a.currentTimeline;m.delay&&(a.incrementTime(m.delay),N.snapshotCurrentStyles());const G=o.style;5==G.type?this.visitKeyframes(G,a):(a.incrementTime(m.duration),this.visitStyle(G,a),N.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=o}visitStyle(o,a){const m=a.currentTimeline,N=a.currentAnimateTimings;!N&&m.hasCurrentStyleProperties()&&m.forwardFrame();const G=N&&N.easing||o.easing;o.isEmptyStep?m.applyEmptyStep(G):m.setStyles(o.styles,G,a.errors,a.options),a.previousNode=o}visitKeyframes(o,a){const m=a.currentAnimateTimings,N=a.currentTimeline.duration,G=m.duration,fe=a.createSubContext().currentTimeline;fe.easing=m.easing,o.styles.forEach(Ie=>{fe.forwardTime((Ie.offset||0)*G),fe.setStyles(Ie.styles,Ie.easing,a.errors,a.options),fe.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(fe),a.transformIntoNewTimeline(N+G),a.previousNode=o}visitQuery(o,a){const m=a.currentTimeline.currentTime,N=o.options||{},G=N.delay?_i(N.delay):0;G&&(6===a.previousNode.type||0==m&&a.currentTimeline.hasCurrentStyleProperties())&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Li);let ae=m;const fe=a.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!N.optional,a.errors);a.currentQueryTotal=fe.length;let Ie=null;fe.forEach((Ke,st)=>{a.currentQueryIndex=st;const ct=a.createSubContext(o.options,Ke);G&&ct.delayNextStep(G),Ke===a.element&&(Ie=ct.currentTimeline),Ot(this,o.animation,ct),ct.currentTimeline.applyStylesToKeyframe(),ae=Math.max(ae,ct.currentTimeline.currentTime)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(ae),Ie&&(a.currentTimeline.mergeTimelineCollectedStyles(Ie),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=o}visitStagger(o,a){const m=a.parentContext,N=a.currentTimeline,G=o.timings,ae=Math.abs(G.duration),fe=ae*(a.currentQueryTotal-1);let Ie=ae*a.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":Ie=fe-Ie;break;case"full":Ie=m.currentStaggerTime}const st=a.currentTimeline;Ie&&st.delayNextStep(Ie);const ct=st.currentTime;Ot(this,o.animation,a),a.previousNode=o,m.currentStaggerTime=N.currentTime-ct+(N.startTime-m.currentTimeline.startTime)}}const Li={};class fn{constructor(o,a,m,N,G,ae,fe,Ie){this._driver=o,this.element=a,this.subInstructions=m,this._enterClassName=N,this._leaveClassName=G,this.errors=ae,this.timelines=fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ie||new Fs(this._driver,a,0),fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,a){if(!o)return;const m=o;let N=this.options;null!=m.duration&&(N.duration=_i(m.duration)),null!=m.delay&&(N.delay=_i(m.delay));const G=m.params;if(G){let ae=N.params;ae||(ae=this.options.params={}),Object.keys(G).forEach(fe=>{(!a||!ae.hasOwnProperty(fe))&&(ae[fe]=Or(G[fe],ae,this.errors))})}}_copyOptions(){const o={};if(this.options){const a=this.options.params;if(a){const m=o.params={};Object.keys(a).forEach(N=>{m[N]=a[N]})}}return o}createSubContext(o=null,a,m){const N=a||this.element,G=new fn(this._driver,N,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(N,m||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(o),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(o){return this.previousNode=Li,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,a,m){const N={duration:null!=a?a:o.duration,delay:this.currentTimeline.currentTime+(null!=m?m:0)+o.delay,easing:""},G=new Ta(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,N,o.stretchStartingKeyframe);return this.timelines.push(G),N}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,a,m,N,G,ae){let fe=[];if(N&&fe.push(this.element),o.length>0){o=(o=o.replace(ro,"."+this._enterClassName)).replace(Ma,"."+this._leaveClassName);let Ke=this._driver.query(this.element,o,1!=m);0!==m&&(Ke=m<0?Ke.slice(Ke.length+m,Ke.length):Ke.slice(0,m)),fe.push(...Ke)}return!G&&0==fe.length&&ae.push(function Vn(O){return new j.vHH(3014,!1)}()),fe}}class Fs{constructor(o,a,m,N){this._driver=o,this.element=a,this.startTime=m,this._elementTimelineStylesLookup=N,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const a=1===this._keyframes.size&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+o),a&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,a){return this.applyStylesToKeyframe(),new Fs(this._driver,o,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,a){this._localTimelineStyles.set(o,a),this._globalTimelineStyles.set(o,a),this._styleSummary.set(o,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[a,m]of this._globalTimelineStyles)this._backFill.set(a,m||Gt.l3),this._currentKeyframe.set(a,Gt.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,a,m,N){var G;a&&this._previousKeyframe.set("easing",a);const ae=N&&N.params||{},fe=function Aa(O,o){const a=new Map;let m;return O.forEach(N=>{if("*"===N){m=m||o.keys();for(let G of m)a.set(G,Gt.l3)}else ki(N,a)}),a}(o,this._globalTimelineStyles);for(let[Ie,Ke]of fe){const st=Or(Ke,ae,m);this._pendingStyles.set(Ie,st),this._localTimelineStyles.has(Ie)||this._backFill.set(Ie,null!==(G=this._globalTimelineStyles.get(Ie))&&void 0!==G?G:Gt.l3),this._updateStyle(Ie,st)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,a)=>{this._currentKeyframe.set(a,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,o)}))}snapshotCurrentStyles(){for(let[o,a]of this._localTimelineStyles)this._pendingStyles.set(o,a),this._updateStyle(o,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let a in this._currentKeyframe)o.push(a);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((a,m)=>{const N=this._styleSummary.get(m);(!N||a.time>N.time)&&this._updateStyle(m,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,a=new Set,m=1===this._keyframes.size&&0===this.duration;let N=[];this._keyframes.forEach((fe,Ie)=>{const Ke=ki(fe,new Map,this._backFill);Ke.forEach((st,ct)=>{st===Gt.k1?o.add(ct):st===Gt.l3&&a.add(ct)}),m||Ke.set("offset",Ie/this.duration),N.push(Ke)});const G=o.size?ar(o.values()):[],ae=a.size?ar(a.values()):[];if(m){const fe=N[0],Ie=new Map(fe);fe.set("offset",0),Ie.set("offset",1),N=[fe,Ie]}return Pr(this.element,N,G,ae,this.duration,this.startTime,this.easing,!1)}}class Ta extends Fs{constructor(o,a,m,N,G,ae,fe=!1){super(o,a,ae.delay),this.keyframes=m,this.preStyleProps=N,this.postStyleProps=G,this._stretchStartingKeyframe=fe,this.timings={duration:ae.duration,delay:ae.delay,easing:ae.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:a,duration:m,easing:N}=this.timings;if(this._stretchStartingKeyframe&&a){const G=[],ae=m+a,fe=a/ae,Ie=ki(o[0]);Ie.set("offset",0),G.push(Ie);const Ke=ki(o[0]);Ke.set("offset",Wo(fe)),G.push(Ke);const st=o.length-1;for(let ct=1;ct<=st;ct++){let Bt=ki(o[ct]);const Ut=Bt.get("offset");Bt.set("offset",Wo((a+Ut*m)/ae)),G.push(Bt)}m=ae,a=0,N="",o=G}return Pr(this.element,o,this.preStyleProps,this.postStyleProps,m,a,N,!0)}}function Wo(O,o=3){const a=Math.pow(10,o-1);return Math.round(O*a)/a}class Ns{}const vs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ys extends Ns{normalizePropertyName(o,a){return lr(o)}normalizeStyleValue(o,a,m,N){let G="";const ae=m.toString().trim();if(vs.has(a)&&0!==m&&"0"!==m)if("number"==typeof m)G="px";else{const fe=m.match(/^[+-]?[\d\.]+([a-z]*)$/);fe&&0==fe[1].length&&N.push(function gt(O,o){return new j.vHH(3005,!1)}())}return ae+G}}function Bs(O,o,a,m,N,G,ae,fe,Ie,Ke,st,ct,Bt){return{type:0,element:O,triggerName:o,isRemovalTransition:N,fromState:a,fromStyles:G,toState:m,toStyles:ae,timelines:fe,queriedElements:Ie,preStyleProps:Ke,postStyleProps:st,totalTime:ct,errors:Bt}}const Hs={};class Go{constructor(o,a,m){this._triggerName=o,this.ast=a,this._stateStyles=m}match(o,a,m,N){return function bs(O,o,a,m,N){return O.some(G=>G(o,a,m,N))}(this.ast.matchers,o,a,m,N)}buildStyles(o,a,m){let N=this._stateStyles.get("*");return void 0!==o&&(N=this._stateStyles.get(null==o?void 0:o.toString())||N),N?N.buildStyles(a,m):new Map}build(o,a,m,N,G,ae,fe,Ie,Ke,st){var ct;const Bt=[],Ut=this.ast.options&&this.ast.options.params||Hs,Nt=this.buildStyles(m,fe&&fe.params||Hs,Bt),an=Ie&&Ie.params||Hs,sn=this.buildStyles(N,an,Bt),Ln=new Set,ii=new Map,$n=new Map,rs="void"===N,Ai={params:xa(an,Ut),delay:null===(ct=this.ast.options)||void 0===ct?void 0:ct.delay},Wn=st?[]:so(o,a,this.ast.animation,G,ae,Nt,sn,Ai,Ke,Bt);let Hi=0;if(Wn.forEach(Vi=>{Hi=Math.max(Vi.duration+Vi.delay,Hi)}),Bt.length)return Bs(a,this._triggerName,m,N,rs,Nt,sn,[],[],ii,$n,Hi,Bt);Wn.forEach(Vi=>{const zs=Vi.element,go=qn(ii,zs,new Set);Vi.preStyleProps.forEach(ws=>go.add(ws));const $s=qn($n,zs,new Set);Vi.postStyleProps.forEach(ws=>$s.add(ws)),zs!==a&&Ln.add(zs)});const ea=ar(Ln.values());return Bs(a,this._triggerName,m,N,rs,Nt,sn,Wn,ea,ii,$n,Hi)}}function xa(O,o){const a=vi(o);for(const m in O)O.hasOwnProperty(m)&&null!=O[m]&&(a[m]=O[m]);return a}class Ia{constructor(o,a,m){this.styles=o,this.defaultParams=a,this.normalizer=m}buildStyles(o,a){const m=new Map,N=vi(this.defaultParams);return Object.keys(o).forEach(G=>{const ae=o[G];null!==ae&&(N[G]=ae)}),this.styles.styles.forEach(G=>{"string"!=typeof G&&G.forEach((ae,fe)=>{ae&&(ae=Or(ae,N,a));const Ie=this.normalizer.normalizePropertyName(fe,a);ae=this.normalizer.normalizeStyleValue(fe,Ie,ae,a),m.set(Ie,ae)})}),m}}class ao{constructor(o,a,m){this.name=o,this.ast=a,this._normalizer=m,this.transitionFactories=[],this.states=new Map,a.states.forEach(N=>{this.states.set(N.name,new Ia(N.style,N.options&&N.options.params||{},m))}),x(this.states,"true","1"),x(this.states,"false","0"),a.transitions.forEach(N=>{this.transitionFactories.push(new Go(o,N,this.states))}),this.fallbackTransition=function Oa(O,o,a){return new Go(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ae,fe)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,a,m,N){return this.transitionFactories.find(ae=>ae.match(o,a,m,N))||null}matchStyles(o,a,m){return this.fallbackTransition.buildStyles(o,a,m)}}function x(O,o,a){O.has(o)?O.has(a)||O.set(a,O.get(o)):O.has(a)&&O.set(o,O.get(a))}const z=new Lr;class L{constructor(o,a,m){this.bodyNode=o,this._driver=a,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,a){const m=[],G=ti(this._driver,a,m,[]);if(m.length)throw function xn(O){return new j.vHH(3503,!1)}();this._animations.set(o,G)}_buildPlayer(o,a,m){const N=o.element,G=Zr(0,this._normalizer,0,o.keyframes,a,m);return this._driver.animate(N,G,o.duration,o.delay,o.easing,[],!0)}create(o,a,m={}){const N=[],G=this._animations.get(o);let ae;const fe=new Map;if(G?(ae=so(this._driver,a,G,Gi,Tr,new Map,new Map,m,z,N),ae.forEach(st=>{const ct=qn(fe,st.element,new Map);st.postStyleProps.forEach(Bt=>ct.set(Bt,null))})):(N.push(function Ei(){return new j.vHH(3300,!1)}()),ae=[]),N.length)throw function Di(O){return new j.vHH(3504,!1)}();fe.forEach((st,ct)=>{st.forEach((Bt,Ut)=>{st.set(Ut,this._driver.computeStyle(ct,Ut,Gt.l3))})});const Ke=pi(ae.map(st=>{const ct=fe.get(st.element);return this._buildPlayer(st,new Map,ct)}));return this._playersById.set(o,Ke),Ke.onDestroy(()=>this.destroy(o)),this.players.push(Ke),Ke}destroy(o){const a=this._getPlayer(o);a.destroy(),this._playersById.delete(o);const m=this.players.indexOf(a);m>=0&&this.players.splice(m,1)}_getPlayer(o){const a=this._playersById.get(o);if(!a)throw function ir(O){return new j.vHH(3301,!1)}();return a}listen(o,a,m,N){const G=wr(a,"","","");return Sr(this._getPlayer(o),m,G,N),()=>{}}command(o,a,m,N){if("register"==m)return void this.register(o,N[0]);if("create"==m)return void this.create(o,a,N[0]||{});const G=this._getPlayer(o);switch(m){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(N[0]));break;case"destroy":this.destroy(o)}}}const J="ng-animate-queued",He="ng-animate-disabled",zt=[],tn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qt="__ng_removed";class Xt{constructor(o,a=""){this.namespaceId=a;const m=o&&o.hasOwnProperty("value");if(this.value=function mr(O){return null!=O?O:null}(m?o.value:o),m){const G=vi(o);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const a=o.params;if(a){const m=this.options.params;Object.keys(a).forEach(N=>{null==m[N]&&(m[N]=a[N])})}}}const wn="void",Fi=new Xt(wn);class Mi{constructor(o,a,m){this.id=o,this.hostElement=a,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,Ti(a,this._hostClassName)}listen(o,a,m,N){if(!this._triggers.has(a))throw function Yn(O,o){return new j.vHH(3302,!1)}();if(null==m||0==m.length)throw function Ji(O){return new j.vHH(3303,!1)}();if(!function Ko(O){return"start"==O||"done"==O}(m))throw function xs(O,o){return new j.vHH(3400,!1)}();const G=qn(this._elementListeners,o,[]),ae={name:a,phase:m,callback:N};G.push(ae);const fe=qn(this._engine.statesByElement,o,new Map);return fe.has(a)||(Ti(o,sr),Ti(o,sr+"-"+a),fe.set(a,Fi)),()=>{this._engine.afterFlush(()=>{const Ie=G.indexOf(ae);Ie>=0&&G.splice(Ie,1),this._triggers.has(a)||fe.delete(a)})}}register(o,a){return!this._triggers.has(o)&&(this._triggers.set(o,a),!0)}_getTrigger(o){const a=this._triggers.get(o);if(!a)throw function Kr(O){return new j.vHH(3401,!1)}();return a}trigger(o,a,m,N=!0){const G=this._getTrigger(a),ae=new In(this.id,a,o);let fe=this._engine.statesByElement.get(o);fe||(Ti(o,sr),Ti(o,sr+"-"+a),this._engine.statesByElement.set(o,fe=new Map));let Ie=fe.get(a);const Ke=new Xt(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&Ie&&Ke.absorbOptions(Ie.options),fe.set(a,Ke),Ie||(Ie=Fi),Ke.value!==wn&&Ie.value===Ke.value){if(!function lo(O,o){const a=Object.keys(O),m=Object.keys(o);if(a.length!=m.length)return!1;for(let N=0;N{Zn(o,an),bn(o,sn)})}return}const Bt=qn(this._engine.playersByElement,o,[]);Bt.forEach(Nt=>{Nt.namespaceId==this.id&&Nt.triggerName==a&&Nt.queued&&Nt.destroy()});let Ut=G.matchTransition(Ie.value,Ke.value,o,Ke.params),Tt=!1;if(!Ut){if(!N)return;Ut=G.fallbackTransition,Tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:a,transition:Ut,fromState:Ie,toState:Ke,player:ae,isFallbackTransition:Tt}),Tt||(Ti(o,J),ae.onStart(()=>{ts(o,J)})),ae.onDone(()=>{let Nt=this.players.indexOf(ae);Nt>=0&&this.players.splice(Nt,1);const an=this._engine.playersByElement.get(o);if(an){let sn=an.indexOf(ae);sn>=0&&an.splice(sn,1)}}),this.players.push(ae),Bt.push(ae),ae}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(a=>a.delete(o)),this._elementListeners.forEach((a,m)=>{this._elementListeners.set(m,a.filter(N=>N.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const a=this._engine.playersByElement.get(o);a&&(a.forEach(m=>m.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,a){const m=this._engine.driver.query(o,Ar,!0);m.forEach(N=>{if(N[qt])return;const G=this._engine.fetchNamespacesByElement(N);G.size?G.forEach(ae=>ae.triggerLeaveAnimation(N,a,!1,!0)):this.clearElementCache(N)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(N=>this.clearElementCache(N)))}triggerLeaveAnimation(o,a,m,N){const G=this._engine.statesByElement.get(o),ae=new Map;if(G){const fe=[];if(G.forEach((Ie,Ke)=>{if(ae.set(Ke,Ie.value),this._triggers.has(Ke)){const st=this.trigger(o,Ke,wn,N);st&&fe.push(st)}}),fe.length)return this._engine.markElementAsRemoved(this.id,o,!0,a,ae),m&&pi(fe).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const a=this._elementListeners.get(o),m=this._engine.statesByElement.get(o);if(a&&m){const N=new Set;a.forEach(G=>{const ae=G.name;if(N.has(ae))return;N.add(ae);const Ie=this._triggers.get(ae).fallbackTransition,Ke=m.get(ae)||Fi,st=new Xt(wn),ct=new In(this.id,ae,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:ae,transition:Ie,fromState:Ke,toState:st,player:ct,isFallbackTransition:!0})})}}removeNode(o,a){const m=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,a),this.triggerLeaveAnimation(o,a,!0))return;let N=!1;if(m.totalAnimations){const G=m.players.length?m.playersByQueriedElement.get(o):[];if(G&&G.length)N=!0;else{let ae=o;for(;ae=ae.parentNode;)if(m.statesByElement.get(ae)){N=!0;break}}}if(this.prepareLeaveAnimationListeners(o),N)m.markElementAsRemoved(this.id,o,!1,a);else{const G=o[qt];(!G||G===tn)&&(m.afterFlush(()=>this.clearElementCache(o)),m.destroyInnerAnimations(o),m._onRemovalComplete(o,a))}}insertNode(o,a){Ti(o,this._hostClassName)}drainQueuedTransitions(o){const a=[];return this._queue.forEach(m=>{const N=m.player;if(N.destroyed)return;const G=m.element,ae=this._elementListeners.get(G);ae&&ae.forEach(fe=>{if(fe.name==m.triggerName){const Ie=wr(G,m.triggerName,m.fromState.value,m.toState.value);Ie._data=o,Sr(m.player,fe.phase,Ie,fe.callback)}}),N.markedForDestroy?this._engine.afterFlush(()=>{N.destroy()}):a.push(m)}),this._queue=[],a.sort((m,N)=>{const G=m.transition.ast.depCount,ae=N.transition.ast.depCount;return 0==G||0==ae?G-ae:this._engine.driver.containsElement(m.element,N.element)?1:-1})}destroy(o){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let a=!1;return this._elementListeners.has(o)&&(a=!0),a=!!this._queue.find(m=>m.element===o)||a,a}}class pr{constructor(o,a,m){this.bodyNode=o,this.driver=a,this._normalizer=m,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(N,G)=>{}}_onRemovalComplete(o,a){this.onRemovalComplete(o,a)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(a=>{a.players.forEach(m=>{m.queued&&o.push(m)})}),o}createNamespace(o,a){const m=new Mi(o,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(m,a):(this.newHostElements.set(a,m),this.collectEnterElement(a)),this._namespaceLookup[o]=m}_balanceNamespaceList(o,a){const m=this._namespaceList,N=this.namespacesByHostElement;if(m.length-1>=0){let ae=!1,fe=this.driver.getParentElement(a);for(;fe;){const Ie=N.get(fe);if(Ie){const Ke=m.indexOf(Ie);m.splice(Ke+1,0,o),ae=!0;break}fe=this.driver.getParentElement(fe)}ae||m.unshift(o)}else m.push(o);return N.set(a,o),o}register(o,a){let m=this._namespaceLookup[o];return m||(m=this.createNamespace(o,a)),m}registerTrigger(o,a,m){let N=this._namespaceLookup[o];N&&N.register(a,m)&&this.totalAnimations++}destroy(o,a){if(!o)return;const m=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(m.hostElement),delete this._namespaceLookup[o];const N=this._namespaceList.indexOf(m);N>=0&&this._namespaceList.splice(N,1)}),this.afterFlushAnimationsDone(()=>m.destroy(a))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const a=new Set,m=this.statesByElement.get(o);if(m)for(let N of m.values())if(N.namespaceId){const G=this._fetchNamespace(N.namespaceId);G&&a.add(G)}return a}trigger(o,a,m,N){if(gr(a)){const G=this._fetchNamespace(o);if(G)return G.trigger(a,m,N),!0}return!1}insertNode(o,a,m,N){if(!gr(a))return;const G=a[qt];if(G&&G.setForRemoval){G.setForRemoval=!1,G.setForMove=!0;const ae=this.collectedLeaveElements.indexOf(a);ae>=0&&this.collectedLeaveElements.splice(ae,1)}if(o){const ae=this._fetchNamespace(o);ae&&ae.insertNode(a,m)}N&&this.collectEnterElement(a)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,a){a?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Ti(o,He)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),ts(o,He))}removeNode(o,a,m,N){if(gr(a)){const G=o?this._fetchNamespace(o):null;if(G?G.removeNode(a,N):this.markElementAsRemoved(o,a,!1,N),m){const ae=this.namespacesByHostElement.get(a);ae&&ae.id!==o&&ae.removeNode(a,N)}}else this._onRemovalComplete(a,N)}markElementAsRemoved(o,a,m,N,G){this.collectedLeaveElements.push(a),a[qt]={namespaceId:o,setForRemoval:N,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:G}}listen(o,a,m,N,G){return gr(a)?this._fetchNamespace(o).listen(a,m,N,G):()=>{}}_buildInstruction(o,a,m,N,G){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,m,N,o.fromState.options,o.toState.options,a,G)}destroyInnerAnimations(o){let a=this.driver.query(o,Ar,!0);a.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(a=this.driver.query(o,_n,!0),a.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(o){const a=this.playersByElement.get(o);a&&a.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(o){const a=this.playersByQueriedElement.get(o);a&&a.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return pi(this.players).onDone(()=>o());o()})}processLeaveNode(o){var a;const m=o[qt];if(m&&m.setForRemoval){if(o[qt]=tn,m.namespaceId){this.destroyInnerAnimations(o);const N=this._fetchNamespace(m.namespaceId);N&&N.clearElementCache(o)}this._onRemovalComplete(o,m.setForRemoval)}!(null===(a=o.classList)||void 0===a)&&a.contains(He)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(N=>{this.markElementAsDisabled(N,!1)})}flush(o=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,N)=>this._balanceNamespaceList(m,N)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;mm()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],a.length?pi(a).onDone(()=>{m.forEach(N=>N())}):m.forEach(N=>N())}}reportError(o){throw function Yr(O){return new j.vHH(3402,!1)}()}_flushAnimations(o,a){const m=new Lr,N=[],G=new Map,ae=[],fe=new Map,Ie=new Map,Ke=new Map,st=new Set;this.disabledNodes.forEach(dt=>{st.add(dt);const yt=this.driver.query(dt,".ng-animate-queued",!0);for(let At=0;At{const At=Gi+Nt++;Tt.set(yt,At),dt.forEach($t=>Ti($t,At))});const an=[],sn=new Set,Ln=new Set;for(let dt=0;dtsn.add($t)):Ln.add(yt))}const ii=new Map,$n=Ra(Bt,Array.from(sn));$n.forEach((dt,yt)=>{const At=Tr+Nt++;ii.set(yt,At),dt.forEach($t=>Ti($t,At))}),o.push(()=>{Ut.forEach((dt,yt)=>{const At=Tt.get(yt);dt.forEach($t=>ts($t,At))}),$n.forEach((dt,yt)=>{const At=ii.get(yt);dt.forEach($t=>ts($t,At))}),an.forEach(dt=>{this.processLeaveNode(dt)})});const rs=[],Ai=[];for(let dt=this._namespaceList.length-1;dt>=0;dt--)this._namespaceList[dt].drainQueuedTransitions(a).forEach(At=>{const $t=At.player,On=At.element;if(rs.push($t),this.collectedEnterElements.length){const di=On[qt];if(di&&di.setForMove){if(di.previousTriggersValues&&di.previousTriggersValues.has(At.triggerName)){const vr=di.previousTriggersValues.get(At.triggerName),qi=this.statesByElement.get(At.element);if(qi&&qi.has(At.triggerName)){const ta=qi.get(At.triggerName);ta.value=vr,qi.set(At.triggerName,ta)}}return void $t.destroy()}}const Yi=!ct||!this.driver.containsElement(ct,On),ji=ii.get(On),Hr=Tt.get(On),Cn=this._buildInstruction(At,m,Hr,ji,Yi);if(Cn.errors&&Cn.errors.length)return void Ai.push(Cn);if(Yi)return $t.onStart(()=>Zn(On,Cn.fromStyles)),$t.onDestroy(()=>bn(On,Cn.toStyles)),void N.push($t);if(At.isFallbackTransition)return $t.onStart(()=>Zn(On,Cn.fromStyles)),$t.onDestroy(()=>bn(On,Cn.toStyles)),void N.push($t);const _o=[];Cn.timelines.forEach(di=>{di.stretchStartingKeyframe=!0,this.disabledNodes.has(di.element)||_o.push(di)}),Cn.timelines=_o,m.append(On,Cn.timelines),ae.push({instruction:Cn,player:$t,element:On}),Cn.queriedElements.forEach(di=>qn(fe,di,[]).push($t)),Cn.preStyleProps.forEach((di,vr)=>{if(di.size){let qi=Ie.get(vr);qi||Ie.set(vr,qi=new Set),di.forEach((ta,Ka)=>qi.add(Ka))}}),Cn.postStyleProps.forEach((di,vr)=>{let qi=Ke.get(vr);qi||Ke.set(vr,qi=new Set),di.forEach((ta,Ka)=>qi.add(Ka))})});if(Ai.length){const dt=[];Ai.forEach(yt=>{dt.push(function ei(O,o){return new j.vHH(3505,!1)}())}),rs.forEach(yt=>yt.destroy()),this.reportError(dt)}const Wn=new Map,Hi=new Map;ae.forEach(dt=>{const yt=dt.element;m.has(yt)&&(Hi.set(yt,yt),this._beforeAnimationBuild(dt.player.namespaceId,dt.instruction,Wn))}),N.forEach(dt=>{const yt=dt.element;this._getPreviousPlayers(yt,!1,dt.namespaceId,dt.triggerName,null).forEach($t=>{qn(Wn,yt,[]).push($t),$t.destroy()})});const ea=an.filter(dt=>Ds(dt,Ie,Ke)),Vi=new Map;js(Vi,this.driver,Ln,Ke,Gt.l3).forEach(dt=>{Ds(dt,Ie,Ke)&&ea.push(dt)});const go=new Map;Ut.forEach((dt,yt)=>{js(go,this.driver,new Set(dt),Ie,Gt.k1)}),ea.forEach(dt=>{var yt,At;const $t=Vi.get(dt),On=go.get(dt);Vi.set(dt,new Map([...Array.from(null!==(yt=null==$t?void 0:$t.entries())&&void 0!==yt?yt:[]),...Array.from(null!==(At=null==On?void 0:On.entries())&&void 0!==At?At:[])]))});const $s=[],ws=[],Ga={};ae.forEach(dt=>{const{element:yt,player:At,instruction:$t}=dt;if(m.has(yt)){if(st.has(yt))return At.onDestroy(()=>bn(yt,$t.toStyles)),At.disabled=!0,At.overrideTotalTime($t.totalTime),void N.push(At);let On=Ga;if(Hi.size>1){let ji=yt;const Hr=[];for(;ji=ji.parentNode;){const Cn=Hi.get(ji);if(Cn){On=Cn;break}Hr.push(ji)}Hr.forEach(Cn=>Hi.set(Cn,On))}const Yi=this._buildAnimation(At.namespaceId,$t,Wn,G,go,Vi);if(At.setRealPlayer(Yi),On===Ga)$s.push(At);else{const ji=this.playersByElement.get(On);ji&&ji.length&&(At.parentPlayer=pi(ji)),N.push(At)}}else Zn(yt,$t.fromStyles),At.onDestroy(()=>bn(yt,$t.toStyles)),ws.push(At),st.has(yt)&&N.push(At)}),ws.forEach(dt=>{const yt=G.get(dt.element);if(yt&&yt.length){const At=pi(yt);dt.setRealPlayer(At)}}),N.forEach(dt=>{dt.parentPlayer?dt.syncPlayerEvents(dt.parentPlayer):dt.destroy()});for(let dt=0;dt!Yi.destroyed);On.length?ka(this,yt,On):this.processLeaveNode(yt)}return an.length=0,$s.forEach(dt=>{this.players.push(dt),dt.onDone(()=>{dt.destroy();const yt=this.players.indexOf(dt);this.players.splice(yt,1)}),dt.play()}),$s}elementContainsData(o,a){let m=!1;const N=a[qt];return N&&N.setForRemoval&&(m=!0),this.playersByElement.has(a)&&(m=!0),this.playersByQueriedElement.has(a)&&(m=!0),this.statesByElement.has(a)&&(m=!0),this._fetchNamespace(o).elementContainsData(a)||m}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,a,m,N,G){let ae=[];if(a){const fe=this.playersByQueriedElement.get(o);fe&&(ae=fe)}else{const fe=this.playersByElement.get(o);if(fe){const Ie=!G||G==wn;fe.forEach(Ke=>{Ke.queued||!Ie&&Ke.triggerName!=N||ae.push(Ke)})}}return(m||N)&&(ae=ae.filter(fe=>!(m&&m!=fe.namespaceId||N&&N!=fe.triggerName))),ae}_beforeAnimationBuild(o,a,m){const G=a.element,ae=a.isRemovalTransition?void 0:o,fe=a.isRemovalTransition?void 0:a.triggerName;for(const Ie of a.timelines){const Ke=Ie.element,st=Ke!==G,ct=qn(m,Ke,[]);this._getPreviousPlayers(Ke,st,ae,fe,a.toState).forEach(Ut=>{const Tt=Ut.getRealPlayer();Tt.beforeDestroy&&Tt.beforeDestroy(),Ut.destroy(),ct.push(Ut)})}Zn(G,a.fromStyles)}_buildAnimation(o,a,m,N,G,ae){const fe=a.triggerName,Ie=a.element,Ke=[],st=new Set,ct=new Set,Bt=a.timelines.map(Tt=>{const Nt=Tt.element;st.add(Nt);const an=Nt[qt];if(an&&an.removedBeforeQueried)return new Gt.ZN(Tt.duration,Tt.delay);const sn=Nt!==Ie,Ln=function Pa(O){const o=[];return La(O,o),o}((m.get(Nt)||zt).map(Wn=>Wn.getRealPlayer())).filter(Wn=>!!Wn.element&&Wn.element===Nt),ii=G.get(Nt),$n=ae.get(Nt),rs=Zr(0,this._normalizer,0,Tt.keyframes,ii,$n),Ai=this._buildPlayer(Tt,rs,Ln);if(Tt.subTimeline&&N&&ct.add(Nt),sn){const Wn=new In(o,fe,Nt);Wn.setRealPlayer(Ai),Ke.push(Wn)}return Ai});Ke.forEach(Tt=>{qn(this.playersByQueriedElement,Tt.element,[]).push(Tt),Tt.onDone(()=>function Es(O,o,a){let m=O.get(o);if(m){if(m.length){const N=m.indexOf(a);m.splice(N,1)}0==m.length&&O.delete(o)}return m}(this.playersByQueriedElement,Tt.element,Tt))}),st.forEach(Tt=>Ti(Tt,to));const Ut=pi(Bt);return Ut.onDestroy(()=>{st.forEach(Tt=>ts(Tt,to)),bn(Ie,a.toStyles)}),ct.forEach(Tt=>{qn(N,Tt,[]).push(Ut)}),Ut}_buildPlayer(o,a,m){return a.length>0?this.driver.animate(o.element,a,o.duration,o.delay,o.easing,m):new Gt.ZN(o.duration,o.delay)}}class In{constructor(o,a,m){this.namespaceId=o,this.triggerName=a,this.element=m,this._player=new Gt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((a,m)=>{a.forEach(N=>Sr(o,m,void 0,N))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const a=this._player;a.triggerCallback&&o.onStart(()=>a.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,a){qn(this._queuedCallbacks,o,[]).push(a)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const a=this._player;a.triggerCallback&&a.triggerCallback(o)}}function gr(O){return O&&1===O.nodeType}function Vs(O,o){const a=O.style.display;return O.style.display=null!=o?o:"none",a}function js(O,o,a,m,N){const G=[];a.forEach(Ie=>G.push(Vs(Ie)));const ae=[];m.forEach((Ie,Ke)=>{const st=new Map;Ie.forEach(ct=>{const Bt=o.computeStyle(Ke,ct,N);st.set(ct,Bt),(!Bt||0==Bt.length)&&(Ke[qt]=Vt,ae.push(Ke))}),O.set(Ke,st)});let fe=0;return a.forEach(Ie=>Vs(Ie,G[fe++])),ae}function Ra(O,o){const a=new Map;if(O.forEach(fe=>a.set(fe,[])),0==o.length)return a;const N=new Set(o),G=new Map;function ae(fe){if(!fe)return 1;let Ie=G.get(fe);if(Ie)return Ie;const Ke=fe.parentNode;return Ie=a.has(Ke)?Ke:N.has(Ke)?1:ae(Ke),G.set(fe,Ie),Ie}return o.forEach(fe=>{const Ie=ae(fe);1!==Ie&&a.get(Ie).push(fe)}),a}function Ti(O,o){var a;null===(a=O.classList)||void 0===a||a.add(o)}function ts(O,o){var a;null===(a=O.classList)||void 0===a||a.remove(o)}function ka(O,o,a){pi(a).onDone(()=>O.processLeaveNode(o))}function La(O,o){for(let a=0;aN.add(G)):o.set(O,m),a.delete(O),!0}class co{constructor(o,a,m){this.bodyNode=o,this._driver=a,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(N,G)=>{},this._transitionEngine=new pr(o,a,m),this._timelineEngine=new L(o,a,m),this._transitionEngine.onRemovalComplete=(N,G)=>this.onRemovalComplete(N,G)}registerTrigger(o,a,m,N,G){const ae=o+"-"+N;let fe=this._triggerCache[ae];if(!fe){const Ie=[],st=ti(this._driver,G,Ie,[]);if(Ie.length)throw function fi(O,o){return new j.vHH(3404,!1)}();fe=function Cs(O,o,a){return new ao(O,o,a)}(N,st,this._normalizer),this._triggerCache[ae]=fe}this._transitionEngine.registerTrigger(a,N,fe)}register(o,a){this._transitionEngine.register(o,a)}destroy(o,a){this._transitionEngine.destroy(o,a)}onInsert(o,a,m,N){this._transitionEngine.insertNode(o,a,m,N)}onRemove(o,a,m,N){this._transitionEngine.removeNode(o,a,N||!1,m)}disableAnimations(o,a){this._transitionEngine.markElementAsDisabled(o,a)}process(o,a,m,N){if("@"==m.charAt(0)){const[G,ae]=Qr(m);this._timelineEngine.command(G,a,ae,N)}else this._transitionEngine.trigger(o,a,m,N)}listen(o,a,m,N,G){if("@"==m.charAt(0)){const[ae,fe]=Qr(m);return this._timelineEngine.listen(ae,a,fe,G)}return this._transitionEngine.listen(o,a,m,N,G)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Na=(()=>{class O{constructor(a,m,N){this._element=a,this._startStyles=m,this._endStyles=N,this._state=0;let G=O.initialStylesByElement.get(a);G||O.initialStylesByElement.set(a,G=new Map),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&bn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bn(this._element,this._initialStyles),this._endStyles&&(bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Zn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zn(this._element,this._endStyles),this._endStyles=null),bn(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Nr(O){let o=null;return O.forEach((a,m)=>{(function Fl(O){return"display"===O||"position"===O})(m)&&(o=o||new Map,o.set(m,a))}),o}class Yo{constructor(o,a,m,N){this.element=o,this.keyframes=a,this.options=m,this._specialStyles=N,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const a=[];return o.forEach(m=>{a.push(Object.fromEntries(m))}),a}_triggerWebAnimation(o,a,m){return o.animate(this._convertKeyframesToObject(a),m)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,N)=>{"offset"!==N&&o.set(N,this._finished?m:ps(this.element,N))}),this.currentSnapshot=o}triggerCallback(o){const a="start"===o?this._onStartFns:this._onDoneFns;a.forEach(m=>m()),a.length=0}}class qo{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,a){return!1}containsElement(o,a){return ce(o,a)}getParentElement(o){return Wi(o)}query(o,a,m){return Le(o,a,m)}computeStyle(o,a,m){return window.getComputedStyle(o)[a]}animate(o,a,m,N,G,ae=[]){const Ie={duration:m,delay:N,fill:0==N?"both":"forwards"};G&&(Ie.easing=G);const Ke=new Map,st=ae.filter(Ut=>Ut instanceof Yo);(function Uo(O,o){return 0===O||0===o})(m,N)&&st.forEach(Ut=>{Ut.currentSnapshot.forEach((Tt,Nt)=>Ke.set(Nt,Tt))});let ct=function er(O){return O.length?O[0]instanceof Map?O:O.map(o=>xr(o)):[]}(a).map(Ut=>ki(Ut));ct=function qe(O,o,a){if(a.size&&o.length){let m=o[0],N=[];if(a.forEach((G,ae)=>{m.has(ae)||N.push(ae),m.set(ae,G)}),N.length)for(let G=1;Gae.set(fe,ps(O,fe)))}}return o}(o,ct,Ke);const Bt=function Fa(O,o){let a=null,m=null;return Array.isArray(o)&&o.length?(a=Nr(o[0]),o.length>1&&(m=Nr(o[o.length-1]))):o instanceof Map&&(a=Nr(o)),a||m?new Na(O,a,m):null}(o,ct);return new Yo(o,ct,Ie,Bt)}}let Nl=(()=>{class O extends Gt._j{constructor(a,m){super(),this._nextAnimationId=0,this._renderer=a.createRenderer(m.body,{id:"0",encapsulation:j.ifc.None,styles:[],data:{animation:[]}})}build(a){const m=this._nextAnimationId.toString();this._nextAnimationId++;const N=Array.isArray(a)?(0,Gt.vP)(a):a;return ns(this._renderer,null,m,"register",[N]),new Ba(m,this._renderer)}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(j.FYo),j.LFG(_.K0))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();class Ba extends Gt.LC{constructor(o,a){super(),this._id=o,this._renderer=a}create(o,a){return new Zo(this._id,o,a||{},this._renderer)}}class Zo{constructor(o,a,m,N){this.id=o,this.element=a,this._renderer=N,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(o,a){return this._renderer.listen(this.element,`@@${this.id}:${o}`,a)}_command(o,...a){return ns(this._renderer,this.element,this.id,o,a)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(o){this._command("setPosition",o)}getPosition(){var o,a;return null!==(a=null===(o=this._renderer.engine.players[+this.id])||void 0===o?void 0:o.getPosition())&&void 0!==a?a:0}}function ns(O,o,a,m,N){return O.setProperty(o,`@@${a}:${m}`,N)}const is="@.disabled";let Ha=(()=>{class O{constructor(a,m,N){this.delegate=a,this.engine=m,this._zone=N,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),m.onRemovalComplete=(G,ae)=>{const fe=null==ae?void 0:ae.parentNode(G);fe&&ae.removeChild(fe,G)}}createRenderer(a,m){const G=this.delegate.createRenderer(a,m);if(!(a&&m&&m.data&&m.data.animation)){let st=this._rendererCache.get(G);return st||(st=new uo("",G,this.engine,()=>this._rendererCache.delete(G)),this._rendererCache.set(G,st)),st}const ae=m.id,fe=m.id+"-"+this._currentId;this._currentId++,this.engine.register(fe,a);const Ie=st=>{Array.isArray(st)?st.forEach(Ie):this.engine.registerTrigger(ae,fe,a,st.name,st)};return m.data.animation.forEach(Ie),new Ss(this,fe,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(a,m,N){a>=0&&am(N)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ae,fe]=G;ae(fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([m,N]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(j.FYo),j.LFG(co),j.LFG(j.R0b))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})();class uo{constructor(o,a,m,N){this.namespaceId=o,this.delegate=a,this.engine=m,this._onDestroy=N,this.destroyNode=this.delegate.destroyNode?G=>a.destroyNode(G):null}get data(){return this.delegate.data}destroy(){var o;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(o=this._onDestroy)||void 0===o||o.call(this)}createElement(o,a){return this.delegate.createElement(o,a)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,a){this.delegate.appendChild(o,a),this.engine.onInsert(this.namespaceId,a,o,!1)}insertBefore(o,a,m,N=!0){this.delegate.insertBefore(o,a,m),this.engine.onInsert(this.namespaceId,a,o,N)}removeChild(o,a,m){this.engine.onRemove(this.namespaceId,a,this.delegate,m)}selectRootElement(o,a){return this.delegate.selectRootElement(o,a)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,a,m,N){this.delegate.setAttribute(o,a,m,N)}removeAttribute(o,a,m){this.delegate.removeAttribute(o,a,m)}addClass(o,a){this.delegate.addClass(o,a)}removeClass(o,a){this.delegate.removeClass(o,a)}setStyle(o,a,m,N){this.delegate.setStyle(o,a,m,N)}removeStyle(o,a,m){this.delegate.removeStyle(o,a,m)}setProperty(o,a,m){"@"==a.charAt(0)&&a==is?this.disableAnimations(o,!!m):this.delegate.setProperty(o,a,m)}setValue(o,a){this.delegate.setValue(o,a)}listen(o,a,m){return this.delegate.listen(o,a,m)}disableAnimations(o,a){this.engine.disableAnimations(o,a)}}class Ss extends uo{constructor(o,a,m,N,G){super(a,m,N,G),this.factory=o,this.namespaceId=a}setProperty(o,a,m){"@"==a.charAt(0)?"."==a.charAt(1)&&a==is?this.disableAnimations(o,m=void 0===m||!!m):this.engine.process(this.namespaceId,o,a.slice(1),m):this.delegate.setProperty(o,a,m)}listen(o,a,m){if("@"==a.charAt(0)){const N=function od(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(o);let G=a.slice(1),ae="";return"@"!=G.charAt(0)&&([G,ae]=function Bl(O){const o=O.indexOf(".");return[O.substring(0,o),O.slice(o+1)]}(G)),this.engine.listen(this.namespaceId,N,G,ae,fe=>{this.factory.scheduleListenerCallback(fe._data||-1,m,fe)})}return this.delegate.listen(o,a,m)}}const Hl=[{provide:Gt._j,useClass:Nl},{provide:Ns,useFactory:function ad(){return new ys}},{provide:co,useClass:(()=>{class O extends co{constructor(a,m,N,G){super(a.body,m,N)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(a){return new(a||O)(j.LFG(_.K0),j.LFG(Mt),j.LFG(Ns),j.LFG(j.z2F))},O.\u0275prov=j.Yz7({token:O,factory:O.\u0275fac}),O})()},{provide:j.FYo,useFactory:function ld(O,o,a){return new Ha(O,o,a)},deps:[re,co,j.R0b]}],Va=[{provide:Mt,useFactory:()=>new qo},{provide:j.QbO,useValue:"BrowserAnimations"},...Hl],Vl=[{provide:Mt,useClass:Dt},{provide:j.QbO,useValue:"NoopAnimations"},...Hl];let cd=(()=>{class O{static withConfig(a){return{ngModule:O,providers:a.disableAnimations?Vl:Va}}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({providers:Va,imports:[ie]}),O})();var jl=$(508);let za=(()=>{class O{}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({imports:[jl.BQ,jl.BQ]}),O})();var Wl=$(6224),Gl=$(9199),Kl=$(7322),Yl=$(6041);let Ql=(()=>{class O{static forRoot(){return{ngModule:O,providers:[]}}}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O}),O.\u0275inj=j.cJS({imports:[_.ez]}),O})(),Jl=(()=>{class O{}return O.\u0275fac=function(a){return new(a||O)},O.\u0275mod=j.oAB({type:O,bootstrap:[Gl.A]}),O.\u0275inj=j.cJS({imports:[ie,oi.qZ,Hn.ot,Xn.rP,Oi.c,on.UX,cd,za,Wl.s,Kl.lN,Yl.Nh,Ql.forRoot()]}),O})();(0,j.G48)(),Nn().bootstrapModule(Jl).catch(O=>console.error(O))},6224:(nt,Fe,$)=>{"use strict";$.d(Fe,{Y:()=>A,s:()=>P});var _=$(9808),j=$(5e3);function p(T,y){1&T&&j._UZ(0,"div",9)}function h(T,y){if(1&T&&(j.TgZ(0,"span",10),j._uU(1),j.qZA()),2&T){const l=j.oxw().$implicit;j.xp6(1),j.Oqu(l.description)}}function b(T,y){if(1&T&&(j.TgZ(0,"section",11),j._UZ(1,"ngx-json-viewer",12),j.qZA()),2&T){const l=j.oxw().$implicit,f=j.oxw();j.xp6(1),j.Q6J("json",l.value)("expanded",f.expanded)}}const E=function(T){return["segment",T]},I=function(T,y){return{"segment-main":!0,expandable:T,expanded:y}};function D(T,y){if(1&T){const l=j.EpF();j.TgZ(0,"section",2)(1,"section",3),j.NdJ("click",function(){const d=j.CHM(l).$implicit,C=j.oxw();return j.KtG(C.toggle(d))}),j.YNc(2,p,1,0,"div",4),j.TgZ(3,"span",5),j._uU(4),j.qZA(),j.TgZ(5,"span",6),j._uU(6,": "),j.qZA(),j.YNc(7,h,2,1,"span",7),j.qZA(),j.YNc(8,b,2,2,"section",8),j.qZA()}if(2&T){const l=y.$implicit,f=j.oxw();j.Q6J("ngClass",j.VKq(6,E,"segment-type-"+l.type)),j.xp6(1),j.Q6J("ngClass",j.WLB(8,I,f.isExpandable(l),l.expanded)),j.xp6(1),j.Q6J("ngIf",f.isExpandable(l)),j.xp6(2),j.Oqu(l.key),j.xp6(3),j.Q6J("ngIf",!l.expanded||!f.isExpandable(l)),j.xp6(1),j.Q6J("ngIf",l.expanded&&f.isExpandable(l))}}let A=(()=>{class T{constructor(){this.expanded=!0,this.cleanOnChange=!0,this.segments=[]}ngOnChanges(){this.cleanOnChange&&(this.segments=[]),"object"==typeof this.json?Object.keys(this.json).forEach(l=>{this.segments.push(this.parseKeyValue(l,this.json[l]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(l){return"object"===l.type||"array"===l.type}toggle(l){this.isExpandable(l)&&(l.expanded=!l.expanded)}parseKeyValue(l,f){const u={key:l,value:f,type:void 0,description:""+f,expanded:this.expanded};switch(typeof u.value){case"number":u.type="number";break;case"boolean":u.type="boolean";break;case"function":u.type="function";break;case"string":u.type="string",u.description='"'+u.value+'"';break;case"undefined":u.type="undefined",u.description="undefined";break;case"object":null===u.value?(u.type="null",u.description="null"):Array.isArray(u.value)?(u.type="array",u.description="Array["+u.value.length+"] "+JSON.stringify(u.value)):u.value instanceof Date?u.type="date":(u.type="object",u.description="Object "+JSON.stringify(u.value))}return u}}return T.\u0275fac=function(l){return new(l||T)},T.\u0275cmp=j.Xpm({type:T,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",cleanOnChange:"cleanOnChange",json:"json"},features:[j.TTD],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded"]],template:function(l,f){1&l&&(j.TgZ(0,"section",0),j.YNc(1,D,9,11,"section",1),j.qZA()),2&l&&(j.xp6(1),j.Q6J("ngForOf",f.segments))},dependencies:[_.mk,_.sg,_.O5,T],styles:['@charset "UTF-8";\n .ngx-json-viewer[_ngcontent-%COMP%] {\n font-family: monospace;\n font-size: 1em;\n width: 100%;\n height: 100%;\n overflow: hidden;\n position: relative; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] {\n padding: 2px;\n margin: 1px 1px 1px 12px; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] {\n word-wrap: break-word; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%] {\n position: absolute;\n margin-left: -14px;\n margin-top: 3px;\n font-size: .8em;\n line-height: 1.2em;\n vertical-align: middle;\n color: #787878; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]::after {\n display: inline-block;\n content: "\u25ba";\n -webkit-transition: -webkit-transform 0.1s ease-in;\n transition: -webkit-transform 0.1s ease-in;\n transition: transform 0.1s ease-in;\n transition: transform 0.1s ease-in, -webkit-transform 0.1s ease-in; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%] {\n color: #4E187C; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%] {\n color: #000; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%] {\n margin-left: 12px; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #FF6B6B; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #009688; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #b938a4; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #05668D; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #fff; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n color: #fff; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n background-color: red; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%] {\n color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%] {\n background-color: #999; }\n .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] {\n white-space: nowrap; }\n .ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]::after {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%] {\n cursor: pointer; }']}),T})(),P=(()=>{class T{}return T.\u0275fac=function(l){return new(l||T)},T.\u0275mod=j.oAB({type:T}),T.\u0275inj=j.cJS({imports:[_.ez]}),T})()},8306:(nt,Fe,$)=>{"use strict";$.d(Fe,{y:()=>P});var _=$(930),j=$(727),p=$(8822),h=$(4671);var I=$(2416),D=$(576),A=$(2806);let P=(()=>{class f{constructor(d){d&&(this._subscribe=d)}lift(d){const C=new f;return C.source=this,C.operator=d,C}subscribe(d,C,R){const U=function l(f){return f&&f instanceof _.Lv||function y(f){return f&&(0,D.m)(f.next)&&(0,D.m)(f.error)&&(0,D.m)(f.complete)}(f)&&(0,j.Nn)(f)}(d)?d:new _.Hp(d,C,R);return(0,A.x)(()=>{const{operator:W,source:v}=this;U.add(W?W.call(U,v):v?this._subscribe(U):this._trySubscribe(U))}),U}_trySubscribe(d){try{return this._subscribe(d)}catch(C){d.error(C)}}forEach(d,C){return new(C=T(C))((R,U)=>{const W=new _.Hp({next:v=>{try{d(v)}catch(w){U(w),W.unsubscribe()}},error:U,complete:R});this.subscribe(W)})}_subscribe(d){var C;return null===(C=this.source)||void 0===C?void 0:C.subscribe(d)}[p.L](){return this}pipe(...d){return function E(f){return 0===f.length?h.y:1===f.length?f[0]:function(d){return f.reduce((C,R)=>R(C),d)}}(d)(this)}toPromise(d){return new(d=T(d))((C,R)=>{let U;this.subscribe(W=>U=W,W=>R(W),()=>C(U))})}}return f.create=u=>new f(u),f})();function T(f){var u;return null!==(u=null!=f?f:I.v.Promise)&&void 0!==u?u:Promise}},7579:(nt,Fe,$)=>{"use strict";$.d(Fe,{x:()=>I});var _=$(8306),j=$(727);const h=(0,$(3888).d)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var b=$(8737),E=$(2806);let I=(()=>{class A extends _.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(T){const y=new D(this,this);return y.operator=T,y}_throwIfClosed(){if(this.closed)throw new h}next(T){(0,E.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const y of this.currentObservers)y.next(T)}})}error(T){(0,E.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=T;const{observers:y}=this;for(;y.length;)y.shift().error(T)}})}complete(){(0,E.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(T=this.observers)||void 0===T?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){const{hasError:y,isStopped:l,observers:f}=this;return y||l?j.Lc:(this.currentObservers=null,f.push(T),new j.w0(()=>{this.currentObservers=null,(0,b.P)(f,T)}))}_checkFinalizedStatuses(T){const{hasError:y,thrownError:l,isStopped:f}=this;y?T.error(l):f&&T.complete()}asObservable(){const T=new _.y;return T.source=this,T}}return A.create=(P,T)=>new D(P,T),A})();class D extends I{constructor(P,T){super(),this.destination=P,this.source=T}next(P){var T,y;null===(y=null===(T=this.destination)||void 0===T?void 0:T.next)||void 0===y||y.call(T,P)}error(P){var T,y;null===(y=null===(T=this.destination)||void 0===T?void 0:T.error)||void 0===y||y.call(T,P)}complete(){var P,T;null===(T=null===(P=this.destination)||void 0===P?void 0:P.complete)||void 0===T||T.call(P)}_subscribe(P){var T,y;return null!==(y=null===(T=this.source)||void 0===T?void 0:T.subscribe(P))&&void 0!==y?y:j.Lc}}},930:(nt,Fe,$)=>{"use strict";$.d(Fe,{Hp:()=>d,Lv:()=>y});var _=$(576),j=$(727),p=$(2416),h=$(7849),b=$(5032);const E=A("C",void 0,void 0);function A(v,w,F){return{kind:v,value:w,error:F}}var P=$(3410),T=$(2806);class y extends j.w0{constructor(w){super(),this.isStopped=!1,w?(this.destination=w,(0,j.Nn)(w)&&w.add(this)):this.destination=W}static create(w,F,Z){return new d(w,F,Z)}next(w){this.isStopped?U(function D(v){return A("N",v,void 0)}(w),this):this._next(w)}error(w){this.isStopped?U(function I(v){return A("E",void 0,v)}(w),this):(this.isStopped=!0,this._error(w))}complete(){this.isStopped?U(E,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(w){this.destination.next(w)}_error(w){try{this.destination.error(w)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const l=Function.prototype.bind;function f(v,w){return l.call(v,w)}class u{constructor(w){this.partialObserver=w}next(w){const{partialObserver:F}=this;if(F.next)try{F.next(w)}catch(Z){C(Z)}}error(w){const{partialObserver:F}=this;if(F.error)try{F.error(w)}catch(Z){C(Z)}else C(w)}complete(){const{partialObserver:w}=this;if(w.complete)try{w.complete()}catch(F){C(F)}}}class d extends y{constructor(w,F,Z){let Q;if(super(),(0,_.m)(w)||!w)Q={next:null!=w?w:void 0,error:null!=F?F:void 0,complete:null!=Z?Z:void 0};else{let ne;this&&p.v.useDeprecatedNextContext?(ne=Object.create(w),ne.unsubscribe=()=>this.unsubscribe(),Q={next:w.next&&f(w.next,ne),error:w.error&&f(w.error,ne),complete:w.complete&&f(w.complete,ne)}):Q=w}this.destination=new u(Q)}}function C(v){p.v.useDeprecatedSynchronousErrorHandling?(0,T.O)(v):(0,h.h)(v)}function U(v,w){const{onStoppedNotification:F}=p.v;F&&P.z.setTimeout(()=>F(v,w))}const W={closed:!0,next:b.Z,error:function R(v){throw v},complete:b.Z}},727:(nt,Fe,$)=>{"use strict";$.d(Fe,{Lc:()=>E,w0:()=>b,Nn:()=>I});var _=$(576);const p=(0,$(3888).d)(A=>function(T){A(this),this.message=T?`${T.length} errors occurred during unsubscription:\n${T.map((y,l)=>`${l+1}) ${y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=T});var h=$(8737);class b{constructor(P){this.initialTeardown=P,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let P;if(!this.closed){this.closed=!0;const{_parentage:T}=this;if(T)if(this._parentage=null,Array.isArray(T))for(const f of T)f.remove(this);else T.remove(this);const{initialTeardown:y}=this;if((0,_.m)(y))try{y()}catch(f){P=f instanceof p?f.errors:[f]}const{_finalizers:l}=this;if(l){this._finalizers=null;for(const f of l)try{D(f)}catch(u){P=null!=P?P:[],u instanceof p?P=[...P,...u.errors]:P.push(u)}}if(P)throw new p(P)}}add(P){var T;if(P&&P!==this)if(this.closed)D(P);else{if(P instanceof b){if(P.closed||P._hasParent(this))return;P._addParent(this)}(this._finalizers=null!==(T=this._finalizers)&&void 0!==T?T:[]).push(P)}}_hasParent(P){const{_parentage:T}=this;return T===P||Array.isArray(T)&&T.includes(P)}_addParent(P){const{_parentage:T}=this;this._parentage=Array.isArray(T)?(T.push(P),T):T?[T,P]:P}_removeParent(P){const{_parentage:T}=this;T===P?this._parentage=null:Array.isArray(T)&&(0,h.P)(T,P)}remove(P){const{_finalizers:T}=this;T&&(0,h.P)(T,P),P instanceof b&&P._removeParent(this)}}b.EMPTY=(()=>{const A=new b;return A.closed=!0,A})();const E=b.EMPTY;function I(A){return A instanceof b||A&&"closed"in A&&(0,_.m)(A.remove)&&(0,_.m)(A.add)&&(0,_.m)(A.unsubscribe)}function D(A){(0,_.m)(A)?A():A.unsubscribe()}},2416:(nt,Fe,$)=>{"use strict";$.d(Fe,{v:()=>_});const _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},7272:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>b});var _=$(8189),p=$(3269),h=$(2076);function b(...E){return function j(){return(0,_.J)(1)}()((0,h.D)(E,(0,p.yG)(E)))}},515:(nt,Fe,$)=>{"use strict";$.d(Fe,{E:()=>j});const j=new($(8306).y)(b=>b.complete())},2076:(nt,Fe,$)=>{"use strict";$.d(Fe,{D:()=>Z});var _=$(8421),j=$(9672),p=$(4482),h=$(5403);function b(Q,ne=0){return(0,p.e)((we,Be)=>{we.subscribe((0,h.x)(Be,xe=>(0,j.f)(Be,Q,()=>Be.next(xe),ne),()=>(0,j.f)(Be,Q,()=>Be.complete(),ne),xe=>(0,j.f)(Be,Q,()=>Be.error(xe),ne)))})}function E(Q,ne=0){return(0,p.e)((we,Be)=>{Be.add(Q.schedule(()=>we.subscribe(Be),ne))})}var A=$(8306),T=$(2202),y=$(576);function f(Q,ne){if(!Q)throw new Error("Iterable cannot be null");return new A.y(we=>{(0,j.f)(we,ne,()=>{const Be=Q[Symbol.asyncIterator]();(0,j.f)(we,ne,()=>{Be.next().then(xe=>{xe.done?we.complete():we.next(xe.value)})},0,!0)})})}var u=$(3670),d=$(8239),C=$(1144),R=$(6495),U=$(2206),W=$(4532),v=$(3260);function Z(Q,ne){return ne?function F(Q,ne){if(null!=Q){if((0,u.c)(Q))return function I(Q,ne){return(0,_.Xf)(Q).pipe(E(ne),b(ne))}(Q,ne);if((0,C.z)(Q))return function P(Q,ne){return new A.y(we=>{let Be=0;return ne.schedule(function(){Be===Q.length?we.complete():(we.next(Q[Be++]),we.closed||this.schedule())})})}(Q,ne);if((0,d.t)(Q))return function D(Q,ne){return(0,_.Xf)(Q).pipe(E(ne),b(ne))}(Q,ne);if((0,U.D)(Q))return f(Q,ne);if((0,R.T)(Q))return function l(Q,ne){return new A.y(we=>{let Be;return(0,j.f)(we,ne,()=>{Be=Q[T.h](),(0,j.f)(we,ne,()=>{let xe,Y;try{({value:xe,done:Y}=Be.next())}catch(re){return void we.error(re)}Y?we.complete():we.next(xe)},0,!0)}),()=>(0,y.m)(null==Be?void 0:Be.return)&&Be.return()})}(Q,ne);if((0,v.L)(Q))return function w(Q,ne){return f((0,v.Q)(Q),ne)}(Q,ne)}throw(0,W.z)(Q)}(Q,ne):(0,_.Xf)(Q)}},4968:(nt,Fe,$)=>{"use strict";$.d(Fe,{R:()=>P});var _=$(8421),j=$(8306),p=$(5577),h=$(1144),b=$(576),E=$(3268);const I=["addListener","removeListener"],D=["addEventListener","removeEventListener"],A=["on","off"];function P(u,d,C,R){if((0,b.m)(C)&&(R=C,C=void 0),R)return P(u,d,C).pipe((0,E.Z)(R));const[U,W]=function f(u){return(0,b.m)(u.addEventListener)&&(0,b.m)(u.removeEventListener)}(u)?D.map(v=>w=>u[v](d,w,C)):function y(u){return(0,b.m)(u.addListener)&&(0,b.m)(u.removeListener)}(u)?I.map(T(u,d)):function l(u){return(0,b.m)(u.on)&&(0,b.m)(u.off)}(u)?A.map(T(u,d)):[];if(!U&&(0,h.z)(u))return(0,p.z)(v=>P(v,d,C))((0,_.Xf)(u));if(!U)throw new TypeError("Invalid event target");return new j.y(v=>{const w=(...F)=>v.next(1W(w)})}function T(u,d){return C=>R=>u[C](d,R)}},8421:(nt,Fe,$)=>{"use strict";$.d(Fe,{Xf:()=>l});var _=$(7582),j=$(1144),p=$(8239),h=$(8306),b=$(3670),E=$(2206),I=$(4532),D=$(6495),A=$(3260),P=$(576),T=$(7849),y=$(8822);function l(v){if(v instanceof h.y)return v;if(null!=v){if((0,b.c)(v))return function f(v){return new h.y(w=>{const F=v[y.L]();if((0,P.m)(F.subscribe))return F.subscribe(w);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(v);if((0,j.z)(v))return function u(v){return new h.y(w=>{for(let F=0;F{v.then(F=>{w.closed||(w.next(F),w.complete())},F=>w.error(F)).then(null,T.h)})}(v);if((0,E.D)(v))return R(v);if((0,D.T)(v))return function C(v){return new h.y(w=>{for(const F of v)if(w.next(F),w.closed)return;w.complete()})}(v);if((0,A.L)(v))return function U(v){return R((0,A.Q)(v))}(v)}throw(0,I.z)(v)}function R(v){return new h.y(w=>{(function W(v,w){var F,Z,Q,ne;return(0,_.mG)(this,void 0,void 0,function*(){try{for(F=(0,_.KL)(v);!(Z=yield F.next()).done;)if(w.next(Z.value),w.closed)return}catch(we){Q={error:we}}finally{try{Z&&!Z.done&&(ne=F.return)&&(yield ne.call(F))}finally{if(Q)throw Q.error}}w.complete()})})(v,w).catch(F=>w.error(F))})}},6451:(nt,Fe,$)=>{"use strict";$.d(Fe,{T:()=>E});var _=$(8189),j=$(8421),p=$(515),h=$(3269),b=$(2076);function E(...I){const D=(0,h.yG)(I),A=(0,h._6)(I,1/0),P=I;return P.length?1===P.length?(0,j.Xf)(P[0]):(0,_.J)(A)((0,b.D)(P,D)):p.E}},9646:(nt,Fe,$)=>{"use strict";$.d(Fe,{of:()=>p});var _=$(3269),j=$(2076);function p(...h){const b=(0,_.yG)(h);return(0,j.D)(h,b)}},5403:(nt,Fe,$)=>{"use strict";$.d(Fe,{x:()=>j});var _=$(930);function j(h,b,E,I,D){return new p(h,b,E,I,D)}class p extends _.Lv{constructor(b,E,I,D,A,P){super(b),this.onFinalize=A,this.shouldUnsubscribe=P,this._next=E?function(T){try{E(T)}catch(y){b.error(y)}}:super._next,this._error=D?function(T){try{D(T)}catch(y){b.error(y)}finally{this.unsubscribe()}}:super._error,this._complete=I?function(){try{I()}catch(T){b.error(T)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var b;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:E}=this;super.unsubscribe(),!E&&(null===(b=this.onFinalize)||void 0===b||b.call(this))}}}},8372:(nt,Fe,$)=>{"use strict";$.d(Fe,{b:()=>h});var _=$(4986),j=$(4482),p=$(5403);function h(b,E=_.z){return(0,j.e)((I,D)=>{let A=null,P=null,T=null;const y=()=>{if(A){A.unsubscribe(),A=null;const f=P;P=null,D.next(f)}};function l(){const f=T+b,u=E.now();if(u{P=f,T=E.now(),A||(A=E.schedule(l,b),D.add(A))},()=>{y(),D.complete()},void 0,()=>{P=A=null}))})}},1884:(nt,Fe,$)=>{"use strict";$.d(Fe,{x:()=>h});var _=$(4671),j=$(4482),p=$(5403);function h(E,I=_.y){return E=null!=E?E:b,(0,j.e)((D,A)=>{let P,T=!0;D.subscribe((0,p.x)(A,y=>{const l=I(y);(T||!E(P,l))&&(T=!1,P=l,A.next(y))}))})}function b(E,I){return E===I}},9300:(nt,Fe,$)=>{"use strict";$.d(Fe,{h:()=>p});var _=$(4482),j=$(5403);function p(h,b){return(0,_.e)((E,I)=>{let D=0;E.subscribe((0,j.x)(I,A=>h.call(b,A,D++)&&I.next(A)))})}},4004:(nt,Fe,$)=>{"use strict";$.d(Fe,{U:()=>p});var _=$(4482),j=$(5403);function p(h,b){return(0,_.e)((E,I)=>{let D=0;E.subscribe((0,j.x)(I,A=>{I.next(h.call(b,A,D++))}))})}},8189:(nt,Fe,$)=>{"use strict";$.d(Fe,{J:()=>p});var _=$(5577),j=$(4671);function p(h=1/0){return(0,_.z)(j.y,h)}},5577:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>D});var _=$(4004),j=$(8421),p=$(4482),h=$(9672),b=$(5403),I=$(576);function D(A,P,T=1/0){return(0,I.m)(P)?D((y,l)=>(0,_.U)((f,u)=>P(y,f,l,u))((0,j.Xf)(A(y,l))),T):("number"==typeof P&&(T=P),(0,p.e)((y,l)=>function E(A,P,T,y,l,f,u,d){const C=[];let R=0,U=0,W=!1;const v=()=>{W&&!C.length&&!R&&P.complete()},w=Z=>R{f&&P.next(Z),R++;let Q=!1;(0,j.Xf)(T(Z,U++)).subscribe((0,b.x)(P,ne=>{null==l||l(ne),f?w(ne):P.next(ne)},()=>{Q=!0},void 0,()=>{if(Q)try{for(R--;C.length&&RF(ne)):F(ne)}v()}catch(ne){P.error(ne)}}))};return A.subscribe((0,b.x)(P,w,()=>{W=!0,v()})),()=>{null==d||d()}}(y,l,A,T)))}},3099:(nt,Fe,$)=>{"use strict";$.d(Fe,{B:()=>b});var _=$(8421),j=$(7579),p=$(930),h=$(4482);function b(I={}){const{connector:D=(()=>new j.x),resetOnError:A=!0,resetOnComplete:P=!0,resetOnRefCountZero:T=!0}=I;return y=>{let l,f,u,d=0,C=!1,R=!1;const U=()=>{null==f||f.unsubscribe(),f=void 0},W=()=>{U(),l=u=void 0,C=R=!1},v=()=>{const w=l;W(),null==w||w.unsubscribe()};return(0,h.e)((w,F)=>{d++,!R&&!C&&U();const Z=u=null!=u?u:D();F.add(()=>{d--,0===d&&!R&&!C&&(f=E(v,T))}),Z.subscribe(F),!l&&d>0&&(l=new p.Hp({next:Q=>Z.next(Q),error:Q=>{R=!0,U(),f=E(W,A,Q),Z.error(Q)},complete:()=>{C=!0,U(),f=E(W,P),Z.complete()}}),(0,_.Xf)(w).subscribe(l))})(y)}}function E(I,D,...A){if(!0===D)return void I();if(!1===D)return;const P=new p.Hp({next:()=>{P.unsubscribe(),I()}});return D(...A).subscribe(P)}},5684:(nt,Fe,$)=>{"use strict";$.d(Fe,{T:()=>j});var _=$(9300);function j(p){return(0,_.h)((h,b)=>p<=b)}},8675:(nt,Fe,$)=>{"use strict";$.d(Fe,{O:()=>h});var _=$(7272),j=$(3269),p=$(4482);function h(...b){const E=(0,j.yG)(b);return(0,p.e)((I,D)=>{(E?(0,_.z)(b,I,E):(0,_.z)(b,I)).subscribe(D)})}},5698:(nt,Fe,$)=>{"use strict";$.d(Fe,{q:()=>h});var _=$(515),j=$(4482),p=$(5403);function h(b){return b<=0?()=>_.E:(0,j.e)((E,I)=>{let D=0;E.subscribe((0,p.x)(I,A=>{++D<=b&&(I.next(A),b<=D&&I.complete())}))})}},2722:(nt,Fe,$)=>{"use strict";$.d(Fe,{R:()=>b});var _=$(4482),j=$(5403),p=$(8421),h=$(5032);function b(E){return(0,_.e)((I,D)=>{(0,p.Xf)(E).subscribe((0,j.x)(D,()=>D.complete(),h.Z)),!D.closed&&I.subscribe(D)})}},8505:(nt,Fe,$)=>{"use strict";$.d(Fe,{b:()=>b});var _=$(576),j=$(4482),p=$(5403),h=$(4671);function b(E,I,D){const A=(0,_.m)(E)||I||D?{next:E,error:I,complete:D}:E;return A?(0,j.e)((P,T)=>{var y;null===(y=A.subscribe)||void 0===y||y.call(A);let l=!0;P.subscribe((0,p.x)(T,f=>{var u;null===(u=A.next)||void 0===u||u.call(A,f),T.next(f)},()=>{var f;l=!1,null===(f=A.complete)||void 0===f||f.call(A),T.complete()},f=>{var u;l=!1,null===(u=A.error)||void 0===u||u.call(A,f),T.error(f)},()=>{var f,u;l&&(null===(f=A.unsubscribe)||void 0===f||f.call(A)),null===(u=A.finalize)||void 0===u||u.call(A)}))}):h.y}},4408:(nt,Fe,$)=>{"use strict";$.d(Fe,{o:()=>b});var _=$(727);class j extends _.w0{constructor(I,D){super()}schedule(I,D=0){return this}}const p={setInterval(E,I,...D){const{delegate:A}=p;return null!=A&&A.setInterval?A.setInterval(E,I,...D):setInterval(E,I,...D)},clearInterval(E){const{delegate:I}=p;return((null==I?void 0:I.clearInterval)||clearInterval)(E)},delegate:void 0};var h=$(8737);class b extends j{constructor(I,D){super(I,D),this.scheduler=I,this.work=D,this.pending=!1}schedule(I,D=0){var A;if(this.closed)return this;this.state=I;const P=this.id,T=this.scheduler;return null!=P&&(this.id=this.recycleAsyncId(T,P,D)),this.pending=!0,this.delay=D,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(T,this.id,D),this}requestAsyncId(I,D,A=0){return p.setInterval(I.flush.bind(I,this),A)}recycleAsyncId(I,D,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return D;null!=D&&p.clearInterval(D)}execute(I,D){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(I,D);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(I,D){let P,A=!1;try{this.work(I)}catch(T){A=!0,P=T||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),P}unsubscribe(){if(!this.closed){const{id:I,scheduler:D}=this,{actions:A}=D;this.work=this.state=this.scheduler=null,this.pending=!1,(0,h.P)(A,this),null!=I&&(this.id=this.recycleAsyncId(D,I,null)),this.delay=null,super.unsubscribe()}}}},640:(nt,Fe,$)=>{"use strict";$.d(Fe,{v:()=>p});const _={now:()=>(_.delegate||Date).now(),delegate:void 0};class j{constructor(b,E=j.now){this.schedulerActionCtor=b,this.now=E}schedule(b,E=0,I){return new this.schedulerActionCtor(this,b).schedule(I,E)}}j.now=_.now;class p extends j{constructor(b,E=j.now){super(b,E),this.actions=[],this._active=!1}flush(b){const{actions:E}=this;if(this._active)return void E.push(b);let I;this._active=!0;do{if(I=b.execute(b.state,b.delay))break}while(b=E.shift());if(this._active=!1,I){for(;b=E.shift();)b.unsubscribe();throw I}}}},4986:(nt,Fe,$)=>{"use strict";$.d(Fe,{P:()=>h,z:()=>p});var _=$(4408);const p=new($(640).v)(_.o),h=p},3410:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>_});const _={setTimeout(j,p,...h){const{delegate:b}=_;return null!=b&&b.setTimeout?b.setTimeout(j,p,...h):setTimeout(j,p,...h)},clearTimeout(j){const{delegate:p}=_;return((null==p?void 0:p.clearTimeout)||clearTimeout)(j)},delegate:void 0}},2202:(nt,Fe,$)=>{"use strict";$.d(Fe,{h:()=>j});const j=function _(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(nt,Fe,$)=>{"use strict";$.d(Fe,{L:()=>_});const _="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(nt,Fe,$)=>{"use strict";$.d(Fe,{_6:()=>E,jO:()=>h,yG:()=>b});var _=$(576),j=$(3532);function p(I){return I[I.length-1]}function h(I){return(0,_.m)(p(I))?I.pop():void 0}function b(I){return(0,j.K)(p(I))?I.pop():void 0}function E(I,D){return"number"==typeof p(I)?I.pop():D}},4742:(nt,Fe,$)=>{"use strict";$.d(Fe,{D:()=>b});const{isArray:_}=Array,{getPrototypeOf:j,prototype:p,keys:h}=Object;function b(I){if(1===I.length){const D=I[0];if(_(D))return{args:D,keys:null};if(function E(I){return I&&"object"==typeof I&&j(I)===p}(D)){const A=h(D);return{args:A.map(P=>D[P]),keys:A}}}return{args:I,keys:null}}},8737:(nt,Fe,$)=>{"use strict";function _(j,p){if(j){const h=j.indexOf(p);0<=h&&j.splice(h,1)}}$.d(Fe,{P:()=>_})},3888:(nt,Fe,$)=>{"use strict";function _(j){const h=j(b=>{Error.call(b),b.stack=(new Error).stack});return h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h}$.d(Fe,{d:()=>_})},1810:(nt,Fe,$)=>{"use strict";function _(j,p){return j.reduce((h,b,E)=>(h[b]=p[E],h),{})}$.d(Fe,{n:()=>_})},2806:(nt,Fe,$)=>{"use strict";$.d(Fe,{O:()=>h,x:()=>p});var _=$(2416);let j=null;function p(b){if(_.v.useDeprecatedSynchronousErrorHandling){const E=!j;if(E&&(j={errorThrown:!1,error:null}),b(),E){const{errorThrown:I,error:D}=j;if(j=null,I)throw D}}else b()}function h(b){_.v.useDeprecatedSynchronousErrorHandling&&j&&(j.errorThrown=!0,j.error=b)}},9672:(nt,Fe,$)=>{"use strict";function _(j,p,h,b=0,E=!1){const I=p.schedule(function(){h(),E?j.add(this.schedule(null,b)):this.unsubscribe()},b);if(j.add(I),!E)return I}$.d(Fe,{f:()=>_})},4671:(nt,Fe,$)=>{"use strict";function _(j){return j}$.d(Fe,{y:()=>_})},1144:(nt,Fe,$)=>{"use strict";$.d(Fe,{z:()=>_});const _=j=>j&&"number"==typeof j.length&&"function"!=typeof j},2206:(nt,Fe,$)=>{"use strict";$.d(Fe,{D:()=>j});var _=$(576);function j(p){return Symbol.asyncIterator&&(0,_.m)(null==p?void 0:p[Symbol.asyncIterator])}},576:(nt,Fe,$)=>{"use strict";function _(j){return"function"==typeof j}$.d(Fe,{m:()=>_})},3670:(nt,Fe,$)=>{"use strict";$.d(Fe,{c:()=>p});var _=$(8822),j=$(576);function p(h){return(0,j.m)(h[_.L])}},6495:(nt,Fe,$)=>{"use strict";$.d(Fe,{T:()=>p});var _=$(2202),j=$(576);function p(h){return(0,j.m)(null==h?void 0:h[_.h])}},8239:(nt,Fe,$)=>{"use strict";$.d(Fe,{t:()=>j});var _=$(576);function j(p){return(0,_.m)(null==p?void 0:p.then)}},3260:(nt,Fe,$)=>{"use strict";$.d(Fe,{L:()=>h,Q:()=>p});var _=$(7582),j=$(576);function p(b){return(0,_.FC)(this,arguments,function*(){const I=b.getReader();try{for(;;){const{value:D,done:A}=yield(0,_.qq)(I.read());if(A)return yield(0,_.qq)(void 0);yield yield(0,_.qq)(D)}}finally{I.releaseLock()}})}function h(b){return(0,j.m)(null==b?void 0:b.getReader)}},3532:(nt,Fe,$)=>{"use strict";$.d(Fe,{K:()=>j});var _=$(576);function j(p){return p&&(0,_.m)(p.schedule)}},4482:(nt,Fe,$)=>{"use strict";$.d(Fe,{e:()=>p});var _=$(576);function p(h){return b=>{if(function j(h){return(0,_.m)(null==h?void 0:h.lift)}(b))return b.lift(function(E){try{return h(E,this)}catch(I){this.error(I)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(nt,Fe,$)=>{"use strict";$.d(Fe,{Z:()=>h});var _=$(4004);const{isArray:j}=Array;function h(b){return(0,_.U)(E=>function p(b,E){return j(E)?b(...E):b(E)}(b,E))}},5032:(nt,Fe,$)=>{"use strict";function _(){}$.d(Fe,{Z:()=>_})},7849:(nt,Fe,$)=>{"use strict";$.d(Fe,{h:()=>p});var _=$(2416),j=$(3410);function p(h){j.z.setTimeout(()=>{const{onUnhandledError:b}=_.v;if(!b)throw h;b(h)})}},4532:(nt,Fe,$)=>{"use strict";function _(j){return new TypeError(`You provided ${null!==j&&"object"==typeof j?"an invalid object":`'${j}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}$.d(Fe,{z:()=>_})},9162:nt=>{self,nt.exports=(()=>(()=>{"use strict";var $,Fe={};return $=Fe,Object.defineProperty($,"__esModule",{value:!0}),$.FitAddon=void 0,$.FitAddon=class{activate(_){this._terminal=_}dispose(){}fit(){const _=this.proposeDimensions();_&&this._terminal&&!isNaN(_.cols)&&!isNaN(_.rows)&&(this._terminal.rows===_.rows&&this._terminal.cols===_.cols||(this._terminal._core._renderService.clear(),this._terminal.resize(_.cols,_.rows)))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const _=this._terminal._core,j=_._renderService.dimensions;if(0===j.css.cell.width||0===j.css.cell.height)return;const p=0===this._terminal.options.scrollback?0:_.viewport.scrollBarWidth,h=window.getComputedStyle(this._terminal.element.parentElement),b=parseInt(h.getPropertyValue("height")),E=Math.max(0,parseInt(h.getPropertyValue("width"))),I=window.getComputedStyle(this._terminal.element),D=b-(parseInt(I.getPropertyValue("padding-top"))+parseInt(I.getPropertyValue("padding-bottom"))),A=E-(parseInt(I.getPropertyValue("padding-right"))+parseInt(I.getPropertyValue("padding-left")))-p;return{cols:Math.max(2,Math.floor(A/j.css.cell.width)),rows:Math.max(1,Math.floor(D/j.css.cell.height))}}},Fe})())()},3883:nt=>{self,nt.exports=(()=>(()=>{"use strict";var Fe={6:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.LinkComputer=h.WebLinkProvider=void 0,h.WebLinkProvider=class{constructor(E,I,D,A={}){this._terminal=E,this._regex=I,this._handler=D,this._options=A}provideLinks(E,I){const D=b.computeLink(E,this._regex,this._terminal,this._handler);I(this._addCallbacks(D))}_addCallbacks(E){return E.map(I=>(I.leave=this._options.leave,I.hover=(D,A)=>{if(this._options.hover){const{range:P}=I;this._options.hover(D,A,P)}},I))}};class b{static computeLink(I,D,A,P){const T=new RegExp(D.source,(D.flags||"")+"g"),[y,l]=b._getWindowedLineStrings(I-1,A),f=y.join("");let u;const d=[];for(;u=T.exec(f);){const C=u[0];try{const F=new URL(C),Z=decodeURI(F.toString());if(C!==Z&&C+"/"!==Z)continue}catch(F){continue}const[R,U]=b._mapStrIdx(A,l,0,u.index),[W,v]=b._mapStrIdx(A,R,U,C.length);-1!==R&&-1!==U&&-1!==W&&-1!==v&&d.push({range:{start:{x:U+1,y:R+1},end:{x:v,y:W+1}},text:C,activate:P})}return d}static _getWindowedLineStrings(I,D){let A,P=I,T=I,y=0,l="";const f=[];if(A=D.buffer.active.getLine(I)){const u=A.translateToString(!0);if(A.isWrapped&&" "!==u[0]){for(y=0;(A=D.buffer.active.getLine(--P))&&y<2048&&(l=A.translateToString(!0),y+=l.length,f.push(l),A.isWrapped&&-1===l.indexOf(" ")););f.reverse()}for(f.push(u),y=0;(A=D.buffer.active.getLine(++T))&&A.isWrapped&&y<2048&&(l=A.translateToString(!0),y+=l.length,f.push(l),-1===l.indexOf(" ")););}return[f,P]}static _mapStrIdx(I,D,A,P){const T=I.buffer.active,y=T.getNullCell();let l=A;for(;P;){const f=T.getLine(D);if(!f)return[-1,-1];for(let u=l;u{var p=j;Object.defineProperty(p,"__esModule",{value:!0}),p.WebLinksAddon=void 0;const h=_(6),b=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function E(I,D){const A=window.open();if(A){try{A.opener=null}catch(P){}A.location.href=D}else console.warn("Opening link blocked as opener could not be cleared")}p.WebLinksAddon=class{constructor(I=E,D={}){this._handler=I,this._options=D}activate(I){this._terminal=I;const D=this._options;this._linkProvider=this._terminal.registerLinkProvider(new h.WebLinkProvider(this._terminal,D.urlRegex||b,this._handler,D))}dispose(){var I;null===(I=this._linkProvider)||void 0===I||I.dispose()}}})(),j})())()},4793:nt=>{self,nt.exports=(()=>(()=>{"use strict";var Fe={4567:function(p,h,b){var E=this&&this.__decorate||function(d,C,R,U){var W,v=arguments.length,w=v<3?C:null===U?U=Object.getOwnPropertyDescriptor(C,R):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(d,C,R,U);else for(var F=d.length-1;F>=0;F--)(W=d[F])&&(w=(v<3?W(w):v>3?W(C,R,w):W(C,R))||w);return v>3&&w&&Object.defineProperty(C,R,w),w},I=this&&this.__param||function(d,C){return function(R,U){C(R,U,d)}};Object.defineProperty(h,"__esModule",{value:!0}),h.AccessibilityManager=void 0;const D=b(9042),A=b(6114),P=b(9924),T=b(844),y=b(5596),l=b(4725),f=b(3656);let u=class extends T.Disposable{constructor(d,C){super(),this._terminal=d,this._renderService=C,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let R=0;Rthis._handleBoundaryFocus(R,0),this._bottomBoundaryFocusListener=R=>this._handleBoundaryFocus(R,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new P.TimeBasedDebouncer(this._announceCharacters.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._liveRegionDebouncer),this.register(this._terminal.onResize(R=>this._handleResize(R.rows))),this.register(this._terminal.onRender(R=>this._refreshRows(R.start,R.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(R=>this._handleChar(R))),this.register(this._terminal.onLineFeed(()=>this._handleChar("\n"))),this.register(this._terminal.onA11yTab(R=>this._handleTab(R))),this.register(this._terminal.onKey(R=>this._handleKey(R.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new y.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,f.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,T.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(d){for(let C=0;C0?this._charsToConsume.shift()!==d&&(this._charsToAnnounce+=d):this._charsToAnnounce+=d,"\n"===d&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=D.tooMuchOutput)),A.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,A.isMac&&this._liveRegion.remove()}_handleKey(d){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(d)||this._charsToConsume.push(d)}_refreshRows(d,C){this._liveRegionDebouncer.refresh(d,C,this._terminal.rows)}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(d,C){const R=d.target,U=this._rowElements[0===C?1:this._rowElements.length-2];if(R.getAttribute("aria-posinset")===(0===C?"1":`${this._terminal.buffer.lines.length}`)||d.relatedTarget!==U)return;let W,v;if(0===C?(W=R,v=this._rowElements.pop(),this._rowContainer.removeChild(v)):(W=this._rowElements.shift(),v=R,this._rowContainer.removeChild(W)),W.removeEventListener("focus",this._topBoundaryFocusListener),v.removeEventListener("focus",this._bottomBoundaryFocusListener),0===C){const w=this._createAccessibilityTreeNode();this._rowElements.unshift(w),this._rowContainer.insertAdjacentElement("afterbegin",w)}else{const w=this._createAccessibilityTreeNode();this._rowElements.push(w),this._rowContainer.appendChild(w)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===C?-1:1),this._rowElements[0===C?1:this._rowElements.length-2].focus(),d.preventDefault(),d.stopImmediatePropagation()}_handleResize(d){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let C=this._rowContainer.children.length;Cd;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const d=document.createElement("div");return d.setAttribute("role","listitem"),d.tabIndex=-1,this._refreshRowDimensions(d),d}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let d=0;d{function b(A){return A.replace(/\r?\n/g,"\r")}function E(A,P){return P?"\x1b[200~"+A+"\x1b[201~":A}function I(A,P,T){A=E(A=b(A),T.decPrivateModes.bracketedPasteMode),T.triggerDataEvent(A,!0),P.value=""}function D(A,P,T){const y=T.getBoundingClientRect(),l=A.clientX-y.left-10,f=A.clientY-y.top-10;P.style.width="20px",P.style.height="20px",P.style.left=`${l}px`,P.style.top=`${f}px`,P.style.zIndex="1000",P.focus()}Object.defineProperty(h,"__esModule",{value:!0}),h.rightClickHandler=h.moveTextAreaUnderMouseCursor=h.paste=h.handlePasteEvent=h.copyHandler=h.bracketTextForPaste=h.prepareTextForTerminal=void 0,h.prepareTextForTerminal=b,h.bracketTextForPaste=E,h.copyHandler=function(A,P){A.clipboardData&&A.clipboardData.setData("text/plain",P.selectionText),A.preventDefault()},h.handlePasteEvent=function(A,P,T){A.stopPropagation(),A.clipboardData&&I(A.clipboardData.getData("text/plain"),P,T)},h.paste=I,h.moveTextAreaUnderMouseCursor=D,h.rightClickHandler=function(A,P,T,y,l){D(A,P,T),l&&y.rightClickSelect(A),P.value=y.selectionText,P.select()}},7239:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ColorContrastCache=void 0;const E=b(1505);h.ColorContrastCache=class{constructor(){this._color=new E.TwoKeyMap,this._css=new E.TwoKeyMap}setCss(I,D,A){this._css.set(I,D,A)}getCss(I,D){return this._css.get(I,D)}setColor(I,D,A){this._color.set(I,D,A)}getColor(I,D){return this._color.get(I,D)}clear(){this._color.clear(),this._css.clear()}}},3656:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.addDisposableDomListener=void 0,h.addDisposableDomListener=function(b,E,I,D){b.addEventListener(E,I,D);let A=!1;return{dispose:()=>{A||(A=!0,b.removeEventListener(E,I,D))}}}},6465:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},I=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.Linkifier2=void 0;const D=b(2585),A=b(8460),P=b(844),T=b(3656);let y=class extends P.Disposable{constructor(l){super(),this._bufferService=l,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new A.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new A.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,P.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,P.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}get currentLink(){return this._currentLink}registerLinkProvider(l){return this._linkProviders.push(l),{dispose:()=>{const f=this._linkProviders.indexOf(l);-1!==f&&this._linkProviders.splice(f,1)}}}attachToDom(l,f,u){this._element=l,this._mouseService=f,this._renderService=u,this.register((0,T.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,T.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,T.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,T.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(l){if(this._lastMouseEvent=l,!this._element||!this._mouseService)return;const f=this._positionFromMouseEvent(l,this._element,this._mouseService);if(!f)return;this._isMouseOut=!1;const u=l.composedPath();for(let d=0;d{null==R||R.forEach(U=>{U.link.dispose&&U.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=l.y);let C=!1;for(const[R,U]of this._linkProviders.entries())f?null!==(d=this._activeProviderReplies)&&void 0!==d&&d.get(R)&&(C=this._checkLinkProviderResult(R,l,C)):U.provideLinks(l.y,W=>{var v,w;if(this._isMouseOut)return;const F=null==W?void 0:W.map(Z=>({link:Z}));null===(v=this._activeProviderReplies)||void 0===v||v.set(R,F),C=this._checkLinkProviderResult(R,l,C),(null===(w=this._activeProviderReplies)||void 0===w?void 0:w.size)===this._linkProviders.length&&this._removeIntersectingLinks(l.y,this._activeProviderReplies)})}_removeIntersectingLinks(l,f){const u=new Set;for(let d=0;dl?this._bufferService.cols:U.link.range.end.x;for(let w=U.link.range.start.ythis._linkAtPosition(W.link,f));U&&(u=!0,this._handleNewLink(U))}if(this._activeProviderReplies.size===this._linkProviders.length&&!u)for(let U=0;Uthis._linkAtPosition(v.link,f));if(W){u=!0,this._handleNewLink(W);break}}return u}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(l){if(!this._element||!this._mouseService||!this._currentLink)return;const f=this._positionFromMouseEvent(l,this._element,this._mouseService);f&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,f)&&this._currentLink.link.activate(l,this._currentLink.link.text)}_clearCurrentLink(l,f){this._element&&this._currentLink&&this._lastMouseEvent&&(!l||!f||this._currentLink.link.range.start.y>=l&&this._currentLink.link.range.end.y<=f)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,P.disposeArray)(this._linkCacheDisposables))}_handleNewLink(l){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const f=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);f&&this._linkAtPosition(l.link,f)&&(this._currentLink=l,this._currentLink.state={decorations:{underline:void 0===l.link.decorations||l.link.decorations.underline,pointerCursor:void 0===l.link.decorations||l.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,l.link,this._lastMouseEvent),l.link.decorations={},Object.defineProperties(l.link.decorations,{pointerCursor:{get:()=>{var u,d;return null===(d=null===(u=this._currentLink)||void 0===u?void 0:u.state)||void 0===d?void 0:d.decorations.pointerCursor},set:u=>{var d,C;(null===(d=this._currentLink)||void 0===d?void 0:d.state)&&this._currentLink.state.decorations.pointerCursor!==u&&(this._currentLink.state.decorations.pointerCursor=u,this._currentLink.state.isHovered&&(null===(C=this._element)||void 0===C||C.classList.toggle("xterm-cursor-pointer",u)))}},underline:{get:()=>{var u,d;return null===(d=null===(u=this._currentLink)||void 0===u?void 0:u.state)||void 0===d?void 0:d.decorations.underline},set:u=>{var d,C,R;(null===(d=this._currentLink)||void 0===d?void 0:d.state)&&(null===(R=null===(C=this._currentLink)||void 0===C?void 0:C.state)||void 0===R?void 0:R.decorations.underline)!==u&&(this._currentLink.state.decorations.underline=u,this._currentLink.state.isHovered&&this._fireUnderlineEvent(l.link,u))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(u=>{if(!this._currentLink)return;const d=0===u.start?0:u.start+1+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.ydisp+1+u.end;if(this._currentLink.link.range.start.y>=d&&this._currentLink.link.range.end.y<=C&&(this._clearCurrentLink(d,C),this._lastMouseEvent&&this._element)){const R=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);R&&this._askForLink(R,!1)}})))}_linkHover(l,f,u){var d;!(null===(d=this._currentLink)||void 0===d)&&d.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(f,!0),this._currentLink.state.decorations.pointerCursor&&l.classList.add("xterm-cursor-pointer")),f.hover&&f.hover(u,f.text)}_fireUnderlineEvent(l,f){const u=l.range,d=this._bufferService.buffer.ydisp,C=this._createLinkUnderlineEvent(u.start.x-1,u.start.y-d-1,u.end.x,u.end.y-d-1,void 0);(f?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(C)}_linkLeave(l,f,u){var d;!(null===(d=this._currentLink)||void 0===d)&&d.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(f,!1),this._currentLink.state.decorations.pointerCursor&&l.classList.remove("xterm-cursor-pointer")),f.leave&&f.leave(u,f.text)}_linkAtPosition(l,f){const C=f.y*this._bufferService.cols+f.x;return l.range.start.y*this._bufferService.cols+l.range.start.x<=C&&C<=l.range.end.y*this._bufferService.cols+l.range.end.x}_positionFromMouseEvent(l,f,u){const d=u.getCoords(l,f,this._bufferService.cols,this._bufferService.rows);if(d)return{x:d[0],y:d[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(l,f,u,d,C){return{x1:l,y1:f,x2:u,y2:d,cols:this._bufferService.cols,fg:C}}};y=E([I(0,D.IBufferService)],y),h.Linkifier2=y},9042:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.tooMuchOutput=h.promptLabel=void 0,h.promptLabel="Terminal input",h.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(p,h,b){var E=this&&this.__decorate||function(y,l,f,u){var d,C=arguments.length,R=C<3?l:null===u?u=Object.getOwnPropertyDescriptor(l,f):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(y,l,f,u);else for(var U=y.length-1;U>=0;U--)(d=y[U])&&(R=(C<3?d(R):C>3?d(l,f,R):d(l,f))||R);return C>3&&R&&Object.defineProperty(l,f,R),R},I=this&&this.__param||function(y,l){return function(f,u){l(f,u,y)}};Object.defineProperty(h,"__esModule",{value:!0}),h.OscLinkProvider=void 0;const D=b(511),A=b(2585);let P=class{constructor(y,l,f){this._bufferService=y,this._optionsService=l,this._oscLinkService=f}provideLinks(y,l){var f;const u=this._bufferService.buffer.lines.get(y-1);if(!u)return void l(void 0);const d=[],C=this._optionsService.rawOptions.linkHandler,R=new D.CellData,U=u.getTrimmedLength();let W=-1,v=-1,w=!1;for(let F=0;FC?C.activate(we,Be,Q):T(0,Be),hover:(we,Be)=>{var xe;return null===(xe=null==C?void 0:C.hover)||void 0===xe?void 0:xe.call(C,we,Be,Q)},leave:(we,Be)=>{var xe;return null===(xe=null==C?void 0:C.leave)||void 0===xe?void 0:xe.call(C,we,Be,Q)}})}w=!1,R.hasExtendedAttrs()&&R.extended.urlId?(v=F,W=R.extended.urlId):(v=-1,W=-1)}}l(d)}};function T(y,l){if(confirm(`Do you want to navigate to ${l}?\n\nWARNING: This link could potentially be dangerous`)){const f=window.open();if(f){try{f.opener=null}catch(u){}f.location.href=l}else console.warn("Opening link blocked as opener could not be cleared")}}P=E([I(0,A.IBufferService),I(1,A.IOptionsService),I(2,A.IOscLinkService)],P),h.OscLinkProvider=P},6193:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.RenderDebouncer=void 0,h.RenderDebouncer=class{constructor(b,E){this._parentWindow=b,this._renderCallback=E,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(b){return this._refreshCallbacks.push(b),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(b,E,I){this._rowCount=I,b=void 0!==b?b:0,E=void 0!==E?E:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,b):b,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,E):E,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();const b=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(b,E),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const b of this._refreshCallbacks)b(0);this._refreshCallbacks=[]}}},5596:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ScreenDprMonitor=void 0;const E=b(844);h.ScreenDprMonitor=class I extends E.Disposable{constructor(A){super(),this._parentWindow=A,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,E.toDisposable)(()=>{this.clearListener()}))}setListener(A){this._listener&&this.clearListener(),this._listener=A,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var A;this._outerListener&&(null===(A=this._resolutionMediaMatchList)||void 0===A||A.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._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}},3236:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Terminal=void 0;const E=b(2950),I=b(1680),D=b(3614),A=b(2584),P=b(5435),T=b(9312),y=b(6114),l=b(3656),f=b(9042),u=b(4567),d=b(1296),C=b(7399),R=b(8460),U=b(8437),W=b(3230),v=b(4725),w=b(428),F=b(8934),Z=b(6465),Q=b(5114),ne=b(8969),we=b(8055),Be=b(4269),xe=b(5941),Y=b(3107),re=b(5744),_e=b(9074),ee=b(2585),he=b(3730),Me=b(844),Oe=b(6731),ye="undefined"!=typeof window?window.document:null;h.Terminal=class Ne extends ne.CoreTerminal{constructor(de={}){super(de),this.browser=y,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._onCursorMove=this.register(new R.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new R.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new R.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new R.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new R.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new R.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new R.EventEmitter),this._onBlur=this.register(new R.EventEmitter),this._onA11yCharEmitter=this.register(new R.EventEmitter),this._onA11yTabEmitter=this.register(new R.EventEmitter),this._onWillOpen=this.register(new R.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(Z.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(he.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(_e.DecorationService),this._instantiationService.setService(ee.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((be,ke)=>this.refresh(be,ke))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(be=>this._reportWindowsOptions(be))),this.register(this._inputHandler.onColor(be=>this._handleColorEvent(be))),this.register((0,R.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,R.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,R.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,R.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(be=>this._afterResize(be.cols,be.rows))),this.register((0,Me.toDisposable)(()=>{var be,ke;this._customKeyEventHandler=void 0,null===(ke=null===(be=this.element)||void 0===be?void 0:be.parentNode)||void 0===ke||ke.removeChild(this.element)}))}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(de){if(this._themeService)for(const be of de){let ke,Ue="";switch(be.index){case 256:ke="foreground",Ue="10";break;case 257:ke="background",Ue="11";break;case 258:ke="cursor",Ue="12";break;default:ke="ansi",Ue="4;"+be.index}switch(be.type){case 0:const ft=we.color.toColorRGB("ansi"===ke?this._themeService.colors.ansi[be.index]:this._themeService.colors[ke]);this.coreService.triggerDataEvent(`${A.C0.ESC}]${Ue};${(0,xe.toRgbString)(ft)}${A.C1_ESCAPED.ST}`);break;case 1:if("ansi"===ke)this._themeService.modifyColors(Xe=>Xe.ansi[be.index]=we.rgba.toColor(...be.color));else{const Xe=ke;this._themeService.modifyColors(Pt=>Pt[Xe]=we.rgba.toColor(...be.color))}break;case 2:this._themeService.restoreColor(be.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(de){var be;de?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=this._instantiationService.createInstance(u.AccessibilityManager,this)):(null===(be=this._accessibilityManager)||void 0===be||be.dispose(),this._accessibilityManager=void 0)}_handleTextAreaFocus(de){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(A.C0.ESC+"[I"),this.updateCursorStyle(de),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var de;return null===(de=this.textarea)||void 0===de?void 0:de.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(A.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const be=this.buffer.lines.get(this.buffer.ybase+this.buffer.y);if(!be)return;const ke=Math.min(this.buffer.x,this.cols-1),Ue=this._renderService.dimensions.css.cell.height,ft=be.getWidth(ke),Xe=this._renderService.dimensions.css.cell.width*ft,Pt=this.buffer.y*this._renderService.dimensions.css.cell.height;this.textarea.style.left=ke*this._renderService.dimensions.css.cell.width+"px",this.textarea.style.top=Pt+"px",this.textarea.style.width=Xe+"px",this.textarea.style.height=Ue+"px",this.textarea.style.lineHeight=Ue+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,l.addDisposableDomListener)(this.element,"copy",be=>{this.hasSelection()&&(0,D.copyHandler)(be,this._selectionService)}));const de=be=>(0,D.handlePasteEvent)(be,this.textarea,this.coreService);this.register((0,l.addDisposableDomListener)(this.textarea,"paste",de)),this.register((0,l.addDisposableDomListener)(this.element,"paste",de)),this.register(y.isFirefox?(0,l.addDisposableDomListener)(this.element,"mousedown",be=>{2===be.button&&(0,D.rightClickHandler)(be,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}):(0,l.addDisposableDomListener)(this.element,"contextmenu",be=>{(0,D.rightClickHandler)(be,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),y.isLinux&&this.register((0,l.addDisposableDomListener)(this.element,"auxclick",be=>{1===be.button&&(0,D.moveTextAreaUnderMouseCursor)(be,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,l.addDisposableDomListener)(this.textarea,"keyup",de=>this._keyUp(de),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"keydown",de=>this._keyDown(de),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"keypress",de=>this._keyPress(de),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionupdate",de=>this._compositionHelper.compositionupdate(de))),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,l.addDisposableDomListener)(this.textarea,"input",de=>this._inputEvent(de),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(de){var be;if(!de)throw new Error("Terminal requires a parent element.");de.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=de.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),de.appendChild(this.element);const ke=ye.createDocumentFragment();this._viewportElement=ye.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ke.appendChild(this._viewportElement),this._viewportScrollArea=ye.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ye.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ye.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ke.appendChild(this.screenElement),this.textarea=ye.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",f.promptLabel),y.isChromeOS||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._coreBrowserService=this._instantiationService.createInstance(Q.CoreBrowserService,this.textarea,null!==(be=this._document.defaultView)&&void 0!==be?be:window),this._instantiationService.setService(v.ICoreBrowserService,this._coreBrowserService),this.register((0,l.addDisposableDomListener)(this.textarea,"focus",Ue=>this._handleTextAreaFocus(Ue))),this.register((0,l.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(v.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(Oe.ThemeService),this._instantiationService.setService(v.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(Be.CharacterJoinerService),this._instantiationService.setService(v.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(W.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(v.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(Ue=>this._onRender.fire(Ue))),this.onResize(Ue=>this._renderService.resize(Ue.cols,Ue.rows)),this._compositionView=ye.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(E.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ke);try{this._onWillOpen.fire(this.element)}catch(Ue){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(F.MouseService),this._instantiationService.setService(v.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(I.Viewport,Ue=>this.scrollLines(Ue,!0,1),this._viewportElement,this._viewportScrollArea),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),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.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(T.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(v.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(Ue=>this.scrollLines(Ue.amount,Ue.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(Ue=>this._renderService.handleSelectionChanged(Ue.start,Ue.end,Ue.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(Ue=>{this.textarea.value=Ue,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(Ue=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,l.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(Y.BufferDecorationRenderer,this.screenElement)),this.register((0,l.addDisposableDomListener)(this.element,"mousedown",Ue=>this._selectionService.handleMouseDown(Ue))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=this._instantiationService.createInstance(u.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",Ue=>this._handleScreenReaderModeOptionChange(Ue))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(re.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",Ue=>{!this._overviewRulerRenderer&&Ue&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(re.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(d.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const de=this,be=this.element;function ke(Xe){const Pt=de._mouseService.getMouseReportCoords(Xe,de.screenElement);if(!Pt)return!1;let _t,xt;switch(Xe.overrideType||Xe.type){case"mousemove":xt=32,void 0===Xe.buttons?(_t=3,void 0!==Xe.button&&(_t=Xe.button<3?Xe.button:3)):_t=1&Xe.buttons?0:4&Xe.buttons?1:2&Xe.buttons?2:3;break;case"mouseup":xt=0,_t=Xe.button<3?Xe.button:3;break;case"mousedown":xt=1,_t=Xe.button<3?Xe.button:3;break;case"wheel":if(0===de.viewport.getLinesScrolled(Xe))return!1;xt=Xe.deltaY<0?0:1,_t=4;break;default:return!1}return!(void 0===xt||void 0===_t||_t>4)&&de.coreMouseService.triggerMouseEvent({col:Pt.col,row:Pt.row,x:Pt.x,y:Pt.y,button:_t,action:xt,ctrl:Xe.ctrlKey,alt:Xe.altKey,shift:Xe.shiftKey})}const Ue={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ft={mouseup:Xe=>(ke(Xe),Xe.buttons||(this._document.removeEventListener("mouseup",Ue.mouseup),Ue.mousedrag&&this._document.removeEventListener("mousemove",Ue.mousedrag)),this.cancel(Xe)),wheel:Xe=>(ke(Xe),this.cancel(Xe,!0)),mousedrag:Xe=>{Xe.buttons&&ke(Xe)},mousemove:Xe=>{Xe.buttons||ke(Xe)}};this.register(this.coreMouseService.onProtocolChange(Xe=>{Xe?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(Xe)),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()),8&Xe?Ue.mousemove||(be.addEventListener("mousemove",ft.mousemove),Ue.mousemove=ft.mousemove):(be.removeEventListener("mousemove",Ue.mousemove),Ue.mousemove=null),16&Xe?Ue.wheel||(be.addEventListener("wheel",ft.wheel,{passive:!1}),Ue.wheel=ft.wheel):(be.removeEventListener("wheel",Ue.wheel),Ue.wheel=null),2&Xe?Ue.mouseup||(Ue.mouseup=ft.mouseup):(this._document.removeEventListener("mouseup",Ue.mouseup),Ue.mouseup=null),4&Xe?Ue.mousedrag||(Ue.mousedrag=ft.mousedrag):(this._document.removeEventListener("mousemove",Ue.mousedrag),Ue.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,l.addDisposableDomListener)(be,"mousedown",Xe=>{if(Xe.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(Xe))return ke(Xe),Ue.mouseup&&this._document.addEventListener("mouseup",Ue.mouseup),Ue.mousedrag&&this._document.addEventListener("mousemove",Ue.mousedrag),this.cancel(Xe)})),this.register((0,l.addDisposableDomListener)(be,"wheel",Xe=>{if(!Ue.wheel){if(!this.buffer.hasScrollback){const Pt=this.viewport.getLinesScrolled(Xe);if(0===Pt)return;const _t=A.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Xe.deltaY<0?"A":"B");let xt="";for(let pt=0;pt{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(Xe),this.cancel(Xe)},{passive:!0})),this.register((0,l.addDisposableDomListener)(be,"touchmove",Xe=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(Xe)?void 0:this.cancel(Xe)},{passive:!1}))}refresh(de,be){var ke;null===(ke=this._renderService)||void 0===ke||ke.refreshRows(de,be)}updateCursorStyle(de){var be;null!==(be=this._selectionService)&&void 0!==be&&be.shouldColumnSelect(de)?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(de,be,ke=0){super.scrollLines(de,be,ke),this.refresh(0,this.rows-1)}paste(de){(0,D.paste)(de,this.textarea,this.coreService)}attachCustomKeyEventHandler(de){this._customKeyEventHandler=de}registerLinkProvider(de){return this.linkifier2.registerLinkProvider(de)}registerCharacterJoiner(de){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const be=this._characterJoinerService.register(de);return this.refresh(0,this.rows-1),be}deregisterCharacterJoiner(de){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(de)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}addMarker(de){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+de)}registerDecoration(de){return this._decorationService.registerDecoration(de)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(de,be,ke){this._selectionService.setSelection(de,be,ke)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var de;null===(de=this._selectionService)||void 0===de||de.clearSelection()}selectAll(){var de;null===(de=this._selectionService)||void 0===de||de.selectAll()}selectLines(de,be){var ke;null===(ke=this._selectionService)||void 0===ke||ke.selectLines(de,be)}_keyDown(de){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(de))return!1;const be=this.browser.isMac&&this.options.macOptionIsMeta&&de.altKey;if(!be&&!this._compositionHelper.keydown(de))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;be||"Dead"!==de.key&&"AltGraph"!==de.key||(this._unprocessedDeadKey=!0);const ke=(0,C.evaluateKeyboardEvent)(de,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(de),3===ke.type||2===ke.type){const Ue=this.rows-1;return this.scrollLines(2===ke.type?-Ue:Ue),this.cancel(de,!0)}return 1===ke.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,de)||(ke.cancel&&this.cancel(de,!0),!ke.key||!!(de.key&&!de.ctrlKey&&!de.altKey&&!de.metaKey&&1===de.key.length&&de.key.charCodeAt(0)>=65&&de.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(ke.key!==A.C0.ETX&&ke.key!==A.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ke.key,domEvent:de}),this._showCursor(),this.coreService.triggerDataEvent(ke.key,!0),!this.optionsService.rawOptions.screenReaderMode||de.altKey||de.ctrlKey?this.cancel(de,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(de,be){const ke=de.isMac&&!this.options.macOptionIsMeta&&be.altKey&&!be.ctrlKey&&!be.metaKey||de.isWindows&&be.altKey&&be.ctrlKey&&!be.metaKey||de.isWindows&&be.getModifierState("AltGraph");return"keypress"===be.type?ke:ke&&(!be.keyCode||be.keyCode>47)}_keyUp(de){var be;this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(de)||(16===(be=de).keyCode||17===be.keyCode||18===be.keyCode||this.focus(),this.updateCursorStyle(de),this._keyPressHandled=!1)}_keyPress(de){let be;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(de))return!1;if(this.cancel(de),de.charCode)be=de.charCode;else if(null==de.which)be=de.keyCode;else{if(0===de.which||0===de.charCode)return!1;be=de.which}return!(!be||(de.altKey||de.ctrlKey||de.metaKey)&&!this._isThirdLevelShift(this.browser,de)||(be=String.fromCharCode(be),this._onKey.fire({key:be,domEvent:de}),this._showCursor(),this.coreService.triggerDataEvent(be,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(de){return!(!de.data||"insertText"!==de.inputType||de.composed&&this._keyDownSeen||this.optionsService.rawOptions.screenReaderMode||this._keyPressHandled||(this._unprocessedDeadKey=!1,this.coreService.triggerDataEvent(de.data,!0),this.cancel(de),0))}resize(de,be){de!==this.cols||be!==this.rows?super.resize(de,be):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(de,be){var ke,Ue;null===(ke=this._charSizeService)||void 0===ke||ke.measure(),null===(Ue=this.viewport)||void 0===Ue||Ue.syncScrollArea(!0)}clear(){if(0!==this.buffer.ybase||0!==this.buffer.y){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 de=1;de{Object.defineProperty(h,"__esModule",{value:!0}),h.TimeBasedDebouncer=void 0,h.TimeBasedDebouncer=class{constructor(b,E=1e3){this._renderCallback=b,this._debounceThresholdMS=E,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(b,E,I){this._rowCount=I,b=void 0!==b?b:0,E=void 0!==E?E:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,b):b,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,E):E;const D=Date.now();if(D-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=D,this._innerRefresh();else if(!this._additionalRefreshRequested){const P=this._debounceThresholdMS-(D-this._lastRefreshMs);this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},P)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;const b=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(b,E)}}},1680:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},I=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.Viewport=void 0;const D=b(844),A=b(3656),P=b(4725),T=b(2585);let y=class extends D.Disposable{constructor(l,f,u,d,C,R,U,W,v){super(),this._scrollLines=l,this._viewportElement=f,this._scrollArea=u,this._bufferService=d,this._optionsService=C,this._charSizeService=R,this._renderService=U,this._coreBrowserService=W,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,A.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(w=>this._activeBuffer=w.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(w=>this._renderDimensions=w)),this._handleThemeChange(v.colors),this.register(v.onChangeColors(w=>this._handleThemeChange(w))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea(),0)}_handleThemeChange(l){this._viewportElement.style.backgroundColor=l.background.css}_refresh(l){if(l)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const f=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==f&&(this._lastRecordedBufferHeight=f,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const l=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==l&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=l),this._refreshAnimationFrame=null}syncScrollArea(l=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(l);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(l)}_handleScroll(l){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);const f=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(f)}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;const l=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(l*(this._smoothScrollState.target-this._smoothScrollState.origin)),l<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(l,f){return!(f<0&&0!==this._viewportElement.scrollTop||f>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight0&&(d=Z),C=""}}return{bufferElements:R,cursorElement:d}}getLinesScrolled(l){if(0===l.deltaY||l.shiftKey)return 0;let f=this._applyScrollModifier(l.deltaY,l);return l.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(f/=this._currentRowHeight+0,this._wheelPartialScroll+=f,f=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=this._bufferService.rows),f}_applyScrollModifier(l,f){const u=this._optionsService.rawOptions.fastScrollModifier;return"alt"===u&&f.altKey||"ctrl"===u&&f.ctrlKey||"shift"===u&&f.shiftKey?l*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:l*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(l){this._lastTouchY=l.touches[0].pageY}handleTouchMove(l){const f=this._lastTouchY-l.touches[0].pageY;return this._lastTouchY=l.touches[0].pageY,0!==f&&(this._viewportElement.scrollTop+=f,this._bubbleScroll(l,f))}};y=E([I(3,T.IBufferService),I(4,T.IOptionsService),I(5,P.ICharSizeService),I(6,P.IRenderService),I(7,P.ICoreBrowserService),I(8,P.IThemeService)],y),h.Viewport=y},3107:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},I=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.BufferDecorationRenderer=void 0;const D=b(3656),A=b(4725),P=b(844),T=b(2585);let y=class extends P.Disposable{constructor(l,f,u,d){super(),this._screenElement=l,this._bufferService=f,this._decorationService=u,this._renderService=d,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((0,D.addDisposableDomListener)(window,"resize",()=>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(C=>this._removeDecoration(C))),this.register((0,P.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(const l of this._decorationService.decorations)this._renderDecoration(l);this._dimensionsChanged=!1}_renderDecoration(l){this._refreshStyle(l),this._dimensionsChanged&&this._refreshXPosition(l)}_createElement(l){var f,u;const d=document.createElement("div");d.classList.add("xterm-decoration"),d.classList.toggle("xterm-decoration-top-layer","top"===(null===(f=null==l?void 0:l.options)||void 0===f?void 0:f.layer)),d.style.width=`${Math.round((l.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,d.style.height=(l.options.height||1)*this._renderService.dimensions.css.cell.height+"px",d.style.top=(l.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",d.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const C=null!==(u=l.options.x)&&void 0!==u?u:0;return C&&C>this._bufferService.cols&&(d.style.display="none"),this._refreshXPosition(l,d),d}_refreshStyle(l){const f=l.marker.line-this._bufferService.buffers.active.ydisp;if(f<0||f>=this._bufferService.rows)l.element&&(l.element.style.display="none",l.onRenderEmitter.fire(l.element));else{let u=this._decorationElements.get(l);u||(u=this._createElement(l),l.element=u,this._decorationElements.set(l,u),this._container.appendChild(u)),u.style.top=f*this._renderService.dimensions.css.cell.height+"px",u.style.display=this._altBufferIsActive?"none":"block",l.onRenderEmitter.fire(u)}}_refreshXPosition(l,f=l.element){var u;if(!f)return;const d=null!==(u=l.options.x)&&void 0!==u?u:0;"right"===(l.options.anchor||"left")?f.style.right=d?d*this._renderService.dimensions.css.cell.width+"px":"":f.style.left=d?d*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(l){var f;null===(f=this._decorationElements.get(l))||void 0===f||f.remove(),this._decorationElements.delete(l),l.dispose()}};y=E([I(1,T.IBufferService),I(2,T.IDecorationService),I(3,A.IRenderService)],y),h.BufferDecorationRenderer=y},5871:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ColorZoneStore=void 0,h.ColorZoneStore=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(b){if(b.options.overviewRulerOptions){for(const E of this._zones)if(E.color===b.options.overviewRulerOptions.color&&E.position===b.options.overviewRulerOptions.position){if(this._lineIntersectsZone(E,b.marker.line))return;if(this._lineAdjacentToZone(E,b.marker.line,b.options.overviewRulerOptions.position))return void this._addLineToZone(E,b.marker.line)}if(this._zonePoolIndex=b.startBufferLine&&E<=b.endBufferLine}_lineAdjacentToZone(b,E,I){return E>=b.startBufferLine-this._linePadding[I||"full"]&&E<=b.endBufferLine+this._linePadding[I||"full"]}_addLineToZone(b,E){b.startBufferLine=Math.min(b.startBufferLine,E),b.endBufferLine=Math.max(b.endBufferLine,E)}}},5744:function(p,h,b){var E=this&&this.__decorate||function(C,R,U,W){var v,w=arguments.length,F=w<3?R:null===W?W=Object.getOwnPropertyDescriptor(R,U):W;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(C,R,U,W);else for(var Z=C.length-1;Z>=0;Z--)(v=C[Z])&&(F=(w<3?v(F):w>3?v(R,U,F):v(R,U))||F);return w>3&&F&&Object.defineProperty(R,U,F),F},I=this&&this.__param||function(C,R){return function(U,W){R(U,W,C)}};Object.defineProperty(h,"__esModule",{value:!0}),h.OverviewRulerRenderer=void 0;const D=b(5871),A=b(3656),P=b(4725),T=b(844),y=b(2585),l={full:0,left:0,center:0,right:0},f={full:0,left:0,center:0,right:0},u={full:0,left:0,center:0,right:0};let d=class extends T.Disposable{constructor(C,R,U,W,v,w,F){var Z;super(),this._viewportElement=C,this._screenElement=R,this._bufferService=U,this._decorationService=W,this._renderService=v,this._optionsService=w,this._coreBrowseService=F,this._colorZoneStore=new D.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null===(Z=this._viewportElement.parentElement)||void 0===Z||Z.insertBefore(this._canvas,this._viewportElement);const Q=this._canvas.getContext("2d");if(!Q)throw new Error("Ctx cannot be null");this._ctx=Q,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,T.toDisposable)(()=>{var ne;null===(ne=this._canvas)||void 0===ne||ne.remove()}))}get _width(){return this._optionsService.options.overviewRulerWidth||0}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){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())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,A.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){const C=Math.floor(this._canvas.width/3),R=Math.ceil(this._canvas.width/3);f.full=this._canvas.width,f.left=C,f.center=R,f.right=C,this._refreshDrawHeightConstants(),u.full=0,u.left=0,u.center=f.left,u.right=f.left+f.center}_refreshDrawHeightConstants(){l.full=Math.round(2*this._coreBrowseService.dpr);const R=Math.round(Math.max(Math.min(this._canvas.height/this._bufferService.buffer.lines.length,12),6)*this._coreBrowseService.dpr);l.left=R,l.center=R,l.right=R}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.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._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.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(const R of this._decorationService.decorations)this._colorZoneStore.addDecoration(R);this._ctx.lineWidth=1;const C=this._colorZoneStore.zones;for(const R of C)"full"!==R.position&&this._renderColorZone(R);for(const R of C)"full"===R.position&&this._renderColorZone(R);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(C){this._ctx.fillStyle=C.color,this._ctx.fillRect(u[C.position||"full"],Math.round(C.startBufferLine/this._bufferService.buffers.active.lines.length*(this._canvas.height-1)-l[C.position||"full"]/2),f[C.position||"full"],Math.round((C.endBufferLine-C.startBufferLine)/this._bufferService.buffers.active.lines.length*(this._canvas.height-1)+l[C.position||"full"]))}_queueRefresh(C,R){this._shouldUpdateDimensions=C||this._shouldUpdateDimensions,this._shouldUpdateAnchor=R||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};d=E([I(2,y.IBufferService),I(3,y.IDecorationService),I(4,P.IRenderService),I(5,y.IOptionsService),I(6,P.ICoreBrowserService)],d),h.OverviewRulerRenderer=d},2950:function(p,h,b){var E=this&&this.__decorate||function(y,l,f,u){var d,C=arguments.length,R=C<3?l:null===u?u=Object.getOwnPropertyDescriptor(l,f):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(y,l,f,u);else for(var U=y.length-1;U>=0;U--)(d=y[U])&&(R=(C<3?d(R):C>3?d(l,f,R):d(l,f))||R);return C>3&&R&&Object.defineProperty(l,f,R),R},I=this&&this.__param||function(y,l){return function(f,u){l(f,u,y)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CompositionHelper=void 0;const D=b(4725),A=b(2585),P=b(2584);let T=class{constructor(y,l,f,u,d,C){this._textarea=y,this._compositionView=l,this._bufferService=f,this._optionsService=u,this._coreService=d,this._renderService=C,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(y){this._compositionView.textContent=y.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(y){if(this._isComposing||this._isSendingComposition){if(229===y.keyCode||16===y.keyCode||17===y.keyCode||18===y.keyCode)return!1;this._finalizeComposition(!1)}return 229!==y.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(y){if(this._compositionView.classList.remove("active"),this._isComposing=!1,y){const l={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let f;this._isSendingComposition=!1,l.start+=this._dataAlreadySent.length,f=this._isComposing?this._textarea.value.substring(l.start,l.end):this._textarea.value.substring(l.start),f.length>0&&this._coreService.triggerDataEvent(f,!0)}},0)}else{this._isSendingComposition=!1;const l=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(l,!0)}}_handleAnyTextareaChanges(){const y=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const l=this._textarea.value,f=l.replace(y,"");this._dataAlreadySent=f,l.length>y.length?this._coreService.triggerDataEvent(f,!0):l.lengththis.updateCompositionElements(!0),0)}}};T=E([I(2,A.IBufferService),I(3,A.IOptionsService),I(4,A.ICoreService),I(5,D.IRenderService)],T),h.CompositionHelper=T},9806:(p,h)=>{function b(E,I,D){const A=D.getBoundingClientRect(),P=E.getComputedStyle(D),T=parseInt(P.getPropertyValue("padding-left")),y=parseInt(P.getPropertyValue("padding-top"));return[I.clientX-A.left-T,I.clientY-A.top-y]}Object.defineProperty(h,"__esModule",{value:!0}),h.getCoords=h.getCoordsRelativeToElement=void 0,h.getCoordsRelativeToElement=b,h.getCoords=function(E,I,D,A,P,T,y,l,f){if(!T)return;const u=b(E,I,D);return u?(u[0]=Math.ceil((u[0]+(f?y/2:0))/y),u[1]=Math.ceil(u[1]/l),u[0]=Math.min(Math.max(u[0],1),A+(f?1:0)),u[1]=Math.min(Math.max(u[1],1),P),u):void 0}},9504:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.moveToCellSequence=void 0;const E=b(2584);function I(l,f,u,d){const C=l-D(l,u),R=f-D(f,u);return y(Math.abs(C-R)-function(W,v,w){let F=0;const Z=W-D(W,w),Q=v-D(v,w);for(let ne=0;ne=0&&lf?"A":"B"}function P(l,f,u,d,C,R){let U=l,W=f,v="";for(;U!==u||W!==d;)U+=C?1:-1,C&&U>R.cols-1?(v+=R.buffer.translateBufferLineToString(W,!1,l,U),U=0,l=0,W++):!C&&U<0&&(v+=R.buffer.translateBufferLineToString(W,!1,0,l+1),U=R.cols-1,l=U,W--);return v+R.buffer.translateBufferLineToString(W,!1,l,U)}function T(l,f){return E.C0.ESC+(f?"O":"[")+l}function y(l,f){l=Math.floor(l);let u="";for(let d=0;d0?Z-D(Z,Q):w;const Be=Z,xe=function(Y,re,_e,ee,he,Me){let Oe;return Oe=I(_e,ee,he,Me).length>0?ee-D(ee,he):re,Y<_e&&Oe<=ee||Y>=_e&&Oel?"D":"C",y(Math.abs(C-l),T(U,d));U=R>f?"D":"C";const W=Math.abs(R-f);return y(function(v,w){return w.cols-v}(R>f?l:C,u)+(W-1)*u.cols+1+((R>f?C:l)-1),T(U,d))}},1296:function(p,h,b){var E=this&&this.__decorate||function(W,v,w,F){var Z,Q=arguments.length,ne=Q<3?v:null===F?F=Object.getOwnPropertyDescriptor(v,w):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(W,v,w,F);else for(var we=W.length-1;we>=0;we--)(Z=W[we])&&(ne=(Q<3?Z(ne):Q>3?Z(v,w,ne):Z(v,w))||ne);return Q>3&&ne&&Object.defineProperty(v,w,ne),ne},I=this&&this.__param||function(W,v){return function(w,F){v(w,F,W)}};Object.defineProperty(h,"__esModule",{value:!0}),h.DomRenderer=void 0;const D=b(3787),A=b(2223),P=b(6171),T=b(4725),y=b(8055),l=b(8460),f=b(844),u=b(2585),d="xterm-dom-renderer-owner-",C="xterm-focus";let R=1,U=class extends f.Disposable{constructor(W,v,w,F,Z,Q,ne,we,Be,xe){super(),this._element=W,this._screenElement=v,this._viewportElement=w,this._linkifier2=F,this._charSizeService=Q,this._optionsService=ne,this._bufferService=we,this._coreBrowserService=Be,this._themeService=xe,this._terminalClass=R++,this._rowElements=[],this._cellToRowElements=[],this.onRequestRedraw=this.register(new l.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add("xterm-rows"),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add("xterm-selection"),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,P.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(Y=>this._injectCss(Y))),this._injectCss(this._themeService.colors),this._rowFactory=Z.createInstance(D.DomRendererRowFactory,document),this._element.classList.add(d+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(Y=>this._handleLinkHover(Y))),this.register(this._linkifier2.onHideLinkUnderline(Y=>this._handleLinkLeave(Y))),this.register((0,f.toDisposable)(()=>{this._element.classList.remove(d+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))}_updateDimensions(){const W=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*W,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*W),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/W),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/W),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(const w of this._rowElements)w.style.width=`${this.dimensions.css.canvas.width}px`,w.style.height=`${this.dimensions.css.cell.height}px`,w.style.lineHeight=`${this.dimensions.css.cell.height}px`,w.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement)),this._dimensionsStyleElement.textContent=`${this._terminalSelector} .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ${this.dimensions.css.cell.width}px}`,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(W){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let v=`${this._terminalSelector} .xterm-rows { color: ${W.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px;}`;v+=`${this._terminalSelector} .xterm-rows .xterm-dim { color: ${y.color.multiplyOpacity(W.foreground,.5).css};}`,v+=`${this._terminalSelector} span:not(.${D.BOLD_CLASS}) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.${D.BOLD_CLASS} { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.${D.ITALIC_CLASS} { font-style: italic;}`,v+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",v+="@keyframes blink_block_"+this._terminalClass+` { 0% { background-color: ${W.cursor.css}; color: ${W.cursorAccent.css}; } 50% { background-color: ${W.cursorAccent.css}; color: ${W.cursor.css}; }}`,v+=`${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BLOCK_CLASS} ,${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BAR_CLASS} ,${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_UNDERLINE_CLASS} { outline: 1px solid ${W.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .xterm-rows.xterm-focus .${D.CURSOR_CLASS}.${D.CURSOR_BLINK_CLASS}:not(.${D.CURSOR_STYLE_BLOCK_CLASS}) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .xterm-rows.xterm-focus .${D.CURSOR_CLASS}.${D.CURSOR_BLINK_CLASS}.${D.CURSOR_STYLE_BLOCK_CLASS} { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .xterm-rows.xterm-focus .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BLOCK_CLASS} { background-color: ${W.cursor.css}; color: ${W.cursorAccent.css};}${this._terminalSelector} .xterm-rows .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_BAR_CLASS} { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${W.cursor.css} inset;}${this._terminalSelector} .xterm-rows .${D.CURSOR_CLASS}.${D.CURSOR_STYLE_UNDERLINE_CLASS} { box-shadow: 0 -1px 0 ${W.cursor.css} inset;}`,v+=`${this._terminalSelector} .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .xterm-selection div { position: absolute; background-color: ${W.selectionBackgroundOpaque.css};}${this._terminalSelector} .xterm-selection div { position: absolute; background-color: ${W.selectionInactiveBackgroundOpaque.css};}`;for(const[w,F]of W.ansi.entries())v+=`${this._terminalSelector} .xterm-fg-${w} { color: ${F.css}; }${this._terminalSelector} .xterm-fg-${w}.${D.DIM_CLASS} { color: ${y.color.multiplyOpacity(F,.5).css}; }${this._terminalSelector} .xterm-bg-${w} { background-color: ${F.css}; }`;v+=`${this._terminalSelector} .xterm-fg-${A.INVERTED_DEFAULT_COLOR} { color: ${y.color.opaque(W.background).css}; }${this._terminalSelector} .xterm-fg-${A.INVERTED_DEFAULT_COLOR}.${D.DIM_CLASS} { color: ${y.color.multiplyOpacity(y.color.opaque(W.background),.5).css}; }${this._terminalSelector} .xterm-bg-${A.INVERTED_DEFAULT_COLOR} { background-color: ${W.foreground.css}; }`,this._themeStyleElement.textContent=v}handleDevicePixelRatioChange(){this._updateDimensions()}_refreshRowElements(W,v){for(let w=this._rowElements.length;w<=v;w++){const F=document.createElement("div");this._rowContainer.appendChild(F),this._rowElements.push(F)}for(;this._rowElements.length>v;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(W,v){this._refreshRowElements(W,v),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions()}handleBlur(){this._rowContainer.classList.remove(C)}handleFocus(){this._rowContainer.classList.add(C)}handleSelectionChanged(W,v,w){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.handleSelectionChanged(W,v,w),this.renderRows(0,this._bufferService.rows-1),!W||!v)return;const F=W[1]-this._bufferService.buffer.ydisp,Z=v[1]-this._bufferService.buffer.ydisp,Q=Math.max(F,0),ne=Math.min(Z,this._bufferService.rows-1);if(Q>=this._bufferService.rows||ne<0)return;const we=document.createDocumentFragment();if(w){const Be=W[0]>v[0];we.appendChild(this._createSelectionElement(Q,Be?v[0]:W[0],Be?W[0]:v[0],ne-Q+1))}else we.appendChild(this._createSelectionElement(Q,F===Q?W[0]:0,Q===Z?v[0]:this._bufferService.cols)),we.appendChild(this._createSelectionElement(Q+1,0,this._bufferService.cols,ne-Q-1)),Q!==ne&&we.appendChild(this._createSelectionElement(ne,0,Z===ne?v[0]:this._bufferService.cols));this._selectionContainer.appendChild(we)}_createSelectionElement(W,v,w,F=1){const Z=document.createElement("div");return Z.style.height=F*this.dimensions.css.cell.height+"px",Z.style.top=W*this.dimensions.css.cell.height+"px",Z.style.left=v*this.dimensions.css.cell.width+"px",Z.style.width=this.dimensions.css.cell.width*(w-v)+"px",Z}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors)}clear(){for(const W of this._rowElements)W.replaceChildren()}renderRows(W,v){const w=this._bufferService.buffer.ybase+this._bufferService.buffer.y,F=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),Z=this._optionsService.rawOptions.cursorBlink;for(let Q=W;Q<=v;Q++){const ne=this._rowElements[Q],we=Q+this._bufferService.buffer.ydisp,Be=this._bufferService.buffer.lines.get(we),xe=this._optionsService.rawOptions.cursorStyle;this._cellToRowElements[Q]&&this._cellToRowElements[Q].length===this._bufferService.cols||(this._cellToRowElements[Q]=new Int16Array(this._bufferService.cols)),ne.replaceChildren(this._rowFactory.createRow(Be,we,we===w,xe,F,Z,this.dimensions.css.cell.width,this._bufferService.cols,this._cellToRowElements[Q]))}}get _terminalSelector(){return`.${d}${this._terminalClass}`}_handleLinkHover(W){this._setCellUnderline(W.x1,W.x2,W.y1,W.y2,W.cols,!0)}_handleLinkLeave(W){this._setCellUnderline(W.x1,W.x2,W.y1,W.y2,W.cols,!1)}_setCellUnderline(W,v,w,F,Z,Q){w<0&&(W=0),F<0&&(v=0);const ne=this._cellToRowElements.length-1;w=Math.max(Math.min(w,ne),0),F=Math.max(Math.min(F,ne),0);const we=this._cellToRowElements[w],Be=this._cellToRowElements[F];if(!(W>=we.length||v>=Be.length)&&(v=Be[v],-1!==(W=we[W])&&-1!==v))for(;W!==v||w!==F;){const xe=this._rowElements[w];if(!xe)return;const Y=xe.children[W];Y&&(Y.style.textDecoration=Q?"underline":"none"),++W>=Z&&(W=0,w++)}}};U=E([I(4,u.IInstantiationService),I(5,T.ICharSizeService),I(6,u.IOptionsService),I(7,u.IBufferService),I(8,T.ICoreBrowserService),I(9,T.IThemeService)],U),h.DomRenderer=U},3787:function(p,h,b){var E=this&&this.__decorate||function(U,W,v,w){var F,Z=arguments.length,Q=Z<3?W:null===w?w=Object.getOwnPropertyDescriptor(W,v):w;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(U,W,v,w);else for(var ne=U.length-1;ne>=0;ne--)(F=U[ne])&&(Q=(Z<3?F(Q):Z>3?F(W,v,Q):F(W,v))||Q);return Z>3&&Q&&Object.defineProperty(W,v,Q),Q},I=this&&this.__param||function(U,W){return function(v,w){W(v,w,U)}};Object.defineProperty(h,"__esModule",{value:!0}),h.DomRendererRowFactory=h.CURSOR_STYLE_UNDERLINE_CLASS=h.CURSOR_STYLE_BAR_CLASS=h.CURSOR_STYLE_BLOCK_CLASS=h.CURSOR_BLINK_CLASS=h.CURSOR_CLASS=h.STRIKETHROUGH_CLASS=h.OVERLINE_CLASS=h.UNDERLINE_CLASS=h.ITALIC_CLASS=h.DIM_CLASS=h.BOLD_CLASS=void 0;const D=b(2223),A=b(643),P=b(511),T=b(2585),y=b(8055),l=b(4725),f=b(4269),u=b(6171),d=b(3734);h.BOLD_CLASS="xterm-bold",h.DIM_CLASS="xterm-dim",h.ITALIC_CLASS="xterm-italic",h.UNDERLINE_CLASS="xterm-underline",h.OVERLINE_CLASS="xterm-overline",h.STRIKETHROUGH_CLASS="xterm-strikethrough",h.CURSOR_CLASS="xterm-cursor",h.CURSOR_BLINK_CLASS="xterm-cursor-blink",h.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",h.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",h.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";let C=class{constructor(U,W,v,w,F,Z,Q){this._document=U,this._characterJoinerService=W,this._optionsService=v,this._coreBrowserService=w,this._coreService=F,this._decorationService=Z,this._themeService=Q,this._workCell=new P.CellData,this._columnSelectMode=!1}handleSelectionChanged(U,W,v){this._selectionStart=U,this._selectionEnd=W,this._columnSelectMode=v}createRow(U,W,v,w,F,Z,Q,ne,we){const Be=this._document.createDocumentFragment(),xe=this._characterJoinerService.getJoinedCharacters(W);let Y=0;for(let he=Math.min(U.length,ne)-1;he>=0;he--)if(U.loadCell(he,this._workCell).getCode()!==A.NULL_CELL_CODE||v&&he===F){Y=he+1;break}const re=this._themeService.colors;let _e=-1,ee=0;for(;ee0&&ee===xe[0][0]){Me=!0;const pt=xe.shift();ye=new f.JoinedCellData(this._workCell,U.translateToString(!0,pt[0],pt[1]),pt[1]-pt[0]),Oe=pt[1]-1,he=ye.getWidth()}const Ne=this._document.createElement("span");if(he>1&&(Ne.style.width=Q*he+"px"),Me&&(Ne.style.display="inline",F>=ee&&F<=Oe&&(F=ee)),!this._coreService.isCursorHidden&&v&&ee===F)switch(Ne.classList.add(h.CURSOR_CLASS),Z&&Ne.classList.add(h.CURSOR_BLINK_CLASS),w){case"bar":Ne.classList.add(h.CURSOR_STYLE_BAR_CLASS);break;case"underline":Ne.classList.add(h.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Ne.classList.add(h.CURSOR_STYLE_BLOCK_CLASS)}if(ye.isBold()&&Ne.classList.add(h.BOLD_CLASS),ye.isItalic()&&Ne.classList.add(h.ITALIC_CLASS),ye.isDim()&&Ne.classList.add(h.DIM_CLASS),Ne.textContent=ye.isInvisible()?A.WHITESPACE_CELL_CHAR:ye.getChars()||A.WHITESPACE_CELL_CHAR,ye.isUnderline()&&(Ne.classList.add(`${h.UNDERLINE_CLASS}-${ye.extended.underlineStyle}`)," "===Ne.textContent&&(Ne.textContent="\xa0"),!ye.isUnderlineColorDefault()))if(ye.isUnderlineColorRGB())Ne.style.textDecorationColor=`rgb(${d.AttributeData.toColorRGB(ye.getUnderlineColor()).join(",")})`;else{let pt=ye.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&ye.isBold()&&pt<8&&(pt+=8),Ne.style.textDecorationColor=re.ansi[pt].css}ye.isOverline()&&(Ne.classList.add(h.OVERLINE_CLASS)," "===Ne.textContent&&(Ne.textContent="\xa0")),ye.isStrikethrough()&&Ne.classList.add(h.STRIKETHROUGH_CLASS);let ue=ye.getFgColor(),de=ye.getFgColorMode(),be=ye.getBgColor(),ke=ye.getBgColorMode();const Ue=!!ye.isInverse();if(Ue){const pt=ue;ue=be,be=pt;const kt=de;de=ke,ke=kt}let ft,Xe,Pt=!1;this._decorationService.forEachDecorationAtCell(ee,W,void 0,pt=>{"top"!==pt.options.layer&&Pt||(pt.backgroundColorRGB&&(ke=50331648,be=pt.backgroundColorRGB.rgba>>8&16777215,ft=pt.backgroundColorRGB),pt.foregroundColorRGB&&(de=50331648,ue=pt.foregroundColorRGB.rgba>>8&16777215,Xe=pt.foregroundColorRGB),Pt="top"===pt.options.layer)});const _t=this._isCellInSelection(ee,W);let xt;switch(Pt||re.selectionForeground&&_t&&(de=50331648,ue=re.selectionForeground.rgba>>8&16777215,Xe=re.selectionForeground),_t&&(ft=this._coreBrowserService.isFocused?re.selectionBackgroundOpaque:re.selectionInactiveBackgroundOpaque,Pt=!0),Pt&&Ne.classList.add("xterm-decoration-top"),ke){case 16777216:case 33554432:xt=re.ansi[be],Ne.classList.add(`xterm-bg-${be}`);break;case 50331648:xt=y.rgba.toColor(be>>16,be>>8&255,255&be),this._addStyle(Ne,`background-color:#${R((be>>>0).toString(16),"0",6)}`);break;default:Ue?(xt=re.foreground,Ne.classList.add(`xterm-bg-${D.INVERTED_DEFAULT_COLOR}`)):xt=re.background}switch(ft||ye.isDim()&&(ft=y.color.multiplyOpacity(xt,.5)),de){case 16777216:case 33554432:ye.isBold()&&ue<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(ue+=8),this._applyMinimumContrast(Ne,xt,re.ansi[ue],ye,ft,void 0)||Ne.classList.add(`xterm-fg-${ue}`);break;case 50331648:const pt=y.rgba.toColor(ue>>16&255,ue>>8&255,255&ue);this._applyMinimumContrast(Ne,xt,pt,ye,ft,Xe)||this._addStyle(Ne,`color:#${R(ue.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(Ne,xt,re.foreground,ye,ft,void 0)||Ue&&Ne.classList.add(`xterm-fg-${D.INVERTED_DEFAULT_COLOR}`)}Be.appendChild(Ne),we[ee]=++_e,ee=Oe}return ee=v[0]&&W>=v[1]&&U=v[1]&&U>=w[0]&&W<=w[1]:W>v[1]&&W=v[0]&&U=v[0])}};function R(U,W,v){for(;U.length{Object.defineProperty(h,"__esModule",{value:!0}),h.TEXT_BASELINE=h.DIM_OPACITY=h.INVERTED_DEFAULT_COLOR=void 0;const E=b(6114);h.INVERTED_DEFAULT_COLOR=257,h.DIM_OPACITY=.5,h.TEXT_BASELINE=E.isFirefox||E.isLegacyEdge?"bottom":"ideographic"},6171:(p,h)=>{function b(E){return 57508<=E&&E<=57558}Object.defineProperty(h,"__esModule",{value:!0}),h.createRenderDimensions=h.excludeFromContrastRatioDemands=h.isRestrictedPowerlineGlyph=h.isPowerlineGlyph=h.throwIfFalsy=void 0,h.throwIfFalsy=function(E){if(!E)throw new Error("value must not be falsy");return E},h.isPowerlineGlyph=b,h.isRestrictedPowerlineGlyph=function(E){return 57520<=E&&E<=57527},h.excludeFromContrastRatioDemands=function(E){return b(E)||9472<=(I=E)&&I<=9631;var I},h.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.SelectionModel=void 0,h.SelectionModel=class{constructor(b){this._bufferService=b,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.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()){const b=this.selectionStart[0]+this.selectionStartLength;return b>this._bufferService.cols?b%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)-1]:[b%this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)]:[b,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const b=this.selectionStart[0]+this.selectionStartLength;return b>this._bufferService.cols?[b%this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)]:[Math.max(b,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const b=this.selectionStart,E=this.selectionEnd;return!(!b||!E)&&(b[1]>E[1]||b[1]===E[1]&&b[0]>E[0])}handleTrim(b){return this.selectionStart&&(this.selectionStart[1]-=b),this.selectionEnd&&(this.selectionEnd[1]-=b),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},I=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CharSizeService=void 0;const D=b(2585),A=b(8460),P=b(844);let T=class extends P.Disposable{constructor(l,f,u){super(),this._optionsService=u,this.width=0,this.height=0,this._onCharSizeChange=this.register(new A.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new y(l,f,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){const l=this._measureStrategy.measure();l.width===this.width&&l.height===this.height||(this.width=l.width,this.height=l.height,this._onCharSizeChange.fire())}};T=E([I(2,D.IOptionsService)],T),h.CharSizeService=T;class y{constructor(f,u,d){this._document=f,this._parentElement=u,this._optionsService=d,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const f=this._measureElement.getBoundingClientRect();return 0!==f.width&&0!==f.height&&(this._result.width=f.width,this._result.height=Math.ceil(f.height)),this._result}}},4269:function(p,h,b){var E=this&&this.__decorate||function(f,u,d,C){var R,U=arguments.length,W=U<3?u:null===C?C=Object.getOwnPropertyDescriptor(u,d):C;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(f,u,d,C);else for(var v=f.length-1;v>=0;v--)(R=f[v])&&(W=(U<3?R(W):U>3?R(u,d,W):R(u,d))||W);return U>3&&W&&Object.defineProperty(u,d,W),W},I=this&&this.__param||function(f,u){return function(d,C){u(d,C,f)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CharacterJoinerService=h.JoinedCellData=void 0;const D=b(3734),A=b(643),P=b(511),T=b(2585);h.JoinedCellData=class y extends D.AttributeData{constructor(u,d,C){super(),this.content=0,this.combinedData="",this.fg=u.fg,this.bg=u.bg,this.combinedData=d,this._width=C}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(u){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}};let l=class Dg{constructor(u){this._bufferService=u,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new P.CellData}register(u){const d={id:this._nextCharacterJoinerId++,handler:u};return this._characterJoiners.push(d),d.id}deregister(u){for(let d=0;d1){const Q=this._getJoinedRanges(R,v,W,d,U);for(let ne=0;ne1){const Z=this._getJoinedRanges(R,v,W,d,U);for(let Q=0;Q{Object.defineProperty(h,"__esModule",{value:!0}),h.CoreBrowserService=void 0,h.CoreBrowserService=class{constructor(b,E){this._textarea=b,this.window=E,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(p,h,b){var E=this&&this.__decorate||function(T,y,l,f){var u,d=arguments.length,C=d<3?y:null===f?f=Object.getOwnPropertyDescriptor(y,l):f;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)C=Reflect.decorate(T,y,l,f);else for(var R=T.length-1;R>=0;R--)(u=T[R])&&(C=(d<3?u(C):d>3?u(y,l,C):u(y,l))||C);return d>3&&C&&Object.defineProperty(y,l,C),C},I=this&&this.__param||function(T,y){return function(l,f){y(l,f,T)}};Object.defineProperty(h,"__esModule",{value:!0}),h.MouseService=void 0;const D=b(4725),A=b(9806);let P=class{constructor(T,y){this._renderService=T,this._charSizeService=y}getCoords(T,y,l,f,u){return(0,A.getCoords)(window,T,y,l,f,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,u)}getMouseReportCoords(T,y){const l=(0,A.getCoordsRelativeToElement)(window,T,y);if(!(!this._charSizeService.hasValidSize||l[0]<0||l[1]<0||l[0]>=this._renderService.dimensions.css.canvas.width||l[1]>=this._renderService.dimensions.css.canvas.height))return{col:Math.floor(l[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(l[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(l[0]),y:Math.floor(l[1])}}};P=E([I(0,D.IRenderService),I(1,D.ICharSizeService)],P),h.MouseService=P},3230:function(p,h,b){var E=this&&this.__decorate||function(C,R,U,W){var v,w=arguments.length,F=w<3?R:null===W?W=Object.getOwnPropertyDescriptor(R,U):W;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(C,R,U,W);else for(var Z=C.length-1;Z>=0;Z--)(v=C[Z])&&(F=(w<3?v(F):w>3?v(R,U,F):v(R,U))||F);return w>3&&F&&Object.defineProperty(R,U,F),F},I=this&&this.__param||function(C,R){return function(U,W){R(U,W,C)}};Object.defineProperty(h,"__esModule",{value:!0}),h.RenderService=void 0;const D=b(6193),A=b(8460),P=b(844),T=b(5596),y=b(3656),l=b(2585),f=b(4725),u=b(7226);let d=class extends P.Disposable{constructor(C,R,U,W,v,w,F,Z){if(super(),this._rowCount=C,this._charSizeService=W,this._pausedResizeTask=new u.DebouncedIdleTask,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 A.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new A.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new A.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new A.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this.register({dispose:()=>{var Q;return null===(Q=this._renderer)||void 0===Q?void 0:Q.dispose()}}),this._renderDebouncer=new D.RenderDebouncer(F.window,(Q,ne)=>this._renderRows(Q,ne)),this.register(this._renderDebouncer),this._screenDprMonitor=new T.ScreenDprMonitor(F.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(w.onResize(()=>this._fullRefresh())),this.register(w.buffers.onBufferActivate(()=>{var Q;return null===(Q=this._renderer)||void 0===Q?void 0:Q.clear()})),this.register(U.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(v.onDecorationRegistered(()=>this._fullRefresh())),this.register(v.onDecorationRemoved(()=>this._fullRefresh())),this.register(U.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(w.cols,w.rows),this._fullRefresh()})),this.register(U.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(w.buffer.y,w.buffer.y,!0))),this.register((0,y.addDisposableDomListener)(F.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(Z.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in F.window){const Q=new F.window.IntersectionObserver(ne=>this._handleIntersectionChange(ne[ne.length-1]),{threshold:0});Q.observe(R),this.register({dispose:()=>Q.disconnect()})}}get dimensions(){return this._renderer.dimensions}_handleIntersectionChange(C){this._isPaused=void 0===C.isIntersecting?0===C.intersectionRatio:!C.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(C,R,U=!1){this._isPaused?this._needsFullRefresh=!0:(U||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(C,R,this._rowCount))}_renderRows(C,R){this._renderer&&(C=Math.min(C,this._rowCount-1),R=Math.min(R,this._rowCount-1),this._renderer.renderRows(C,R),this._needsSelectionRefresh&&(this._renderer.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:C,end:R}),this._onRender.fire({start:C,end:R}),this._isNextRenderRedrawOnly=!0)}resize(C,R){this._rowCount=R,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer&&(this._renderer.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions))}hasRenderer(){return!!this._renderer}setRenderer(C){var R;null===(R=this._renderer)||void 0===R||R.dispose(),this._renderer=C,this._renderer.onRequestRedraw(U=>this.refreshRows(U.start,U.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(C){return this._renderDebouncer.addRefreshCallback(C)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var C,R;this._renderer&&(null===(R=(C=this._renderer).clearTextureAtlas)||void 0===R||R.call(C),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer&&(this._renderer.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(C,R){this._renderer&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.handleResize(C,R)):this._renderer.handleResize(C,R),this._fullRefresh())}handleCharSizeChanged(){var C;null===(C=this._renderer)||void 0===C||C.handleCharSizeChanged()}handleBlur(){var C;null===(C=this._renderer)||void 0===C||C.handleBlur()}handleFocus(){var C;null===(C=this._renderer)||void 0===C||C.handleFocus()}handleSelectionChanged(C,R,U){var W;this._selectionState.start=C,this._selectionState.end=R,this._selectionState.columnSelectMode=U,null===(W=this._renderer)||void 0===W||W.handleSelectionChanged(C,R,U)}handleCursorMove(){var C;null===(C=this._renderer)||void 0===C||C.handleCursorMove()}clear(){var C;null===(C=this._renderer)||void 0===C||C.clear()}};d=E([I(2,l.IOptionsService),I(3,f.ICharSizeService),I(4,l.IDecorationService),I(5,l.IBufferService),I(6,f.ICoreBrowserService),I(7,f.IThemeService)],d),h.RenderService=d},9312:function(p,h,b){var E=this&&this.__decorate||function(v,w,F,Z){var Q,ne=arguments.length,we=ne<3?w:null===Z?Z=Object.getOwnPropertyDescriptor(w,F):Z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)we=Reflect.decorate(v,w,F,Z);else for(var Be=v.length-1;Be>=0;Be--)(Q=v[Be])&&(we=(ne<3?Q(we):ne>3?Q(w,F,we):Q(w,F))||we);return ne>3&&we&&Object.defineProperty(w,F,we),we},I=this&&this.__param||function(v,w){return function(F,Z){w(F,Z,v)}};Object.defineProperty(h,"__esModule",{value:!0}),h.SelectionService=void 0;const D=b(6114),A=b(456),P=b(511),T=b(8460),y=b(4725),l=b(2585),f=b(9806),u=b(9504),d=b(844),C=b(4841),R=String.fromCharCode(160),U=new RegExp(R,"g");let W=class extends d.Disposable{constructor(v,w,F,Z,Q,ne,we,Be,xe){super(),this._element=v,this._screenElement=w,this._linkifier=F,this._bufferService=Z,this._coreService=Q,this._mouseService=ne,this._optionsService=we,this._renderService=Be,this._coreBrowserService=xe,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new P.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new T.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new T.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new T.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new T.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=Y=>this._handleMouseMove(Y),this._mouseUpListener=Y=>this._handleMouseUp(Y),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(Y=>this._handleTrim(Y)),this.register(this._bufferService.buffers.onBufferActivate(Y=>this._handleBufferActivate(Y))),this.enable(),this._model=new A.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,d.toDisposable)(()=>{this._removeMouseDownListeners()}))}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(){const v=this._model.finalSelectionStart,w=this._model.finalSelectionEnd;return!(!v||!w||v[0]===w[0]&&v[1]===w[1])}get selectionText(){const v=this._model.finalSelectionStart,w=this._model.finalSelectionEnd;if(!v||!w)return"";const F=this._bufferService.buffer,Z=[];if(3===this._activeSelectionMode){if(v[0]===w[0])return"";const Q=v[0]Q.replace(U," ")).join(D.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(v){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),D.isLinux&&v&&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:3===this._activeSelectionMode})}_isClickInSelection(v){const w=this._getMouseBufferCoords(v),F=this._model.finalSelectionStart,Z=this._model.finalSelectionEnd;return!!(F&&Z&&w)&&this._areCoordsInSelection(w,F,Z)}isCellInSelection(v,w){const F=this._model.finalSelectionStart,Z=this._model.finalSelectionEnd;return!(!F||!Z)&&this._areCoordsInSelection([v,w],F,Z)}_areCoordsInSelection(v,w,F){return v[1]>w[1]&&v[1]=w[0]&&v[0]=w[0]}_selectWordAtCursor(v,w){var F,Z;const Q=null===(Z=null===(F=this._linkifier.currentLink)||void 0===F?void 0:F.link)||void 0===Z?void 0:Z.range;if(Q)return this._model.selectionStart=[Q.start.x-1,Q.start.y-1],this._model.selectionStartLength=(0,C.getRangeLength)(Q,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const ne=this._getMouseBufferCoords(v);return!!ne&&(this._selectWordAt(ne,w),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(v,w){this._model.clearSelection(),v=Math.max(v,0),w=Math.min(w,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,v],this._model.selectionEnd=[this._bufferService.cols,w],this.refresh(),this._onSelectionChange.fire()}_handleTrim(v){this._model.handleTrim(v)&&this.refresh()}_getMouseBufferCoords(v){const w=this._mouseService.getCoords(v,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(w)return w[0]--,w[1]--,w[1]+=this._bufferService.buffer.ydisp,w}_getMouseEventScrollAmount(v){let w=(0,f.getCoordsRelativeToElement)(this._coreBrowserService.window,v,this._screenElement)[1];const F=this._renderService.dimensions.css.canvas.height;return w>=0&&w<=F?0:(w>F&&(w-=F),w=Math.min(Math.max(w,-50),50),w/=50,w/Math.abs(w)+Math.round(14*w))}shouldForceSelection(v){return D.isMac?v.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:v.shiftKey}handleMouseDown(v){if(this._mouseDownTimeStamp=v.timeStamp,(2!==v.button||!this.hasSelection)&&0===v.button){if(!this._enabled){if(!this.shouldForceSelection(v))return;v.stopPropagation()}v.preventDefault(),this._dragScrollAmount=0,this._enabled&&v.shiftKey?this._handleIncrementalClick(v):1===v.detail?this._handleSingleClick(v):2===v.detail?this._handleDoubleClick(v):3===v.detail&&this._handleTripleClick(v),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(),50)}_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(v){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(v))}_handleSingleClick(v){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(v)?3:0,this._model.selectionStart=this._getMouseBufferCoords(v),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const w=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);w&&w.length!==this._model.selectionStart[0]&&0===w.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(v){this._selectWordAtCursor(v,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(v){const w=this._getMouseBufferCoords(v);w&&(this._activeSelectionMode=2,this._selectLineAt(w[1]))}shouldColumnSelect(v){return v.altKey&&!(D.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(v){if(v.stopImmediatePropagation(),!this._model.selectionStart)return;const w=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(v),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const F=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(v.ydisp+this._bufferService.rows,v.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=v.ydisp),this.refresh()}}_handleMouseUp(v){const w=v.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&w<500&&v.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const F=this._mouseService.getCoords(v,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(F&&void 0!==F[0]&&void 0!==F[1]){const Z=(0,u.moveToCellSequence)(F[0]-1,F[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(Z,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const v=this._model.finalSelectionStart,w=this._model.finalSelectionEnd,F=!(!v||!w||v[0]===w[0]&&v[1]===w[1]);F?v&&w&&(this._oldSelectionStart&&this._oldSelectionEnd&&v[0]===this._oldSelectionStart[0]&&v[1]===this._oldSelectionStart[1]&&w[0]===this._oldSelectionEnd[0]&&w[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(v,w,F)):this._oldHasSelection&&this._fireOnSelectionChange(v,w,F)}_fireOnSelectionChange(v,w,F){this._oldSelectionStart=v,this._oldSelectionEnd=w,this._oldHasSelection=F,this._onSelectionChange.fire()}_handleBufferActivate(v){this.clearSelection(),this._trimListener.dispose(),this._trimListener=v.activeBuffer.lines.onTrim(w=>this._handleTrim(w))}_convertViewportColToCharacterIndex(v,w){let F=w;for(let Z=0;w>=Z;Z++){const Q=v.loadCell(Z,this._workCell).getChars().length;0===this._workCell.getWidth()?F--:Q>1&&w!==Z&&(F+=Q-1)}return F}setSelection(v,w,F){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[v,w],this._model.selectionStartLength=F,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(v){this._isClickInSelection(v)||(this._selectWordAtCursor(v,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(v,w,F=!0,Z=!0){if(v[0]>=this._bufferService.cols)return;const Q=this._bufferService.buffer,ne=Q.lines.get(v[1]);if(!ne)return;const we=Q.translateBufferLineToString(v[1],!1);let Be=this._convertViewportColToCharacterIndex(ne,v[0]),xe=Be;const Y=v[0]-Be;let re=0,_e=0,ee=0,he=0;if(" "===we.charAt(Be)){for(;Be>0&&" "===we.charAt(Be-1);)Be--;for(;xe1&&(he+=ue-1,xe+=ue-1);ye>0&&Be>0&&!this._isCharWordSeparator(ne.loadCell(ye-1,this._workCell));){ne.loadCell(ye-1,this._workCell);const de=this._workCell.getChars().length;0===this._workCell.getWidth()?(re++,ye--):de>1&&(ee+=de-1,Be-=de-1),Be--,ye--}for(;Ne1&&(he+=de-1,xe+=de-1),xe++,Ne++}}xe++;let Me=Be+Y-re+ee,Oe=Math.min(this._bufferService.cols,xe-Be+re+_e-ee-he);if(w||""!==we.slice(Be,xe).trim()){if(F&&0===Me&&32!==ne.getCodePoint(0)){const ye=Q.lines.get(v[1]-1);if(ye&&ne.isWrapped&&32!==ye.getCodePoint(this._bufferService.cols-1)){const Ne=this._getWordAt([this._bufferService.cols-1,v[1]-1],!1,!0,!1);if(Ne){const ue=this._bufferService.cols-Ne.start;Me-=ue,Oe+=ue}}}if(Z&&Me+Oe===this._bufferService.cols&&32!==ne.getCodePoint(this._bufferService.cols-1)){const ye=Q.lines.get(v[1]+1);if((null==ye?void 0:ye.isWrapped)&&32!==ye.getCodePoint(0)){const Ne=this._getWordAt([0,v[1]+1],!1,!1,!0);Ne&&(Oe+=Ne.length)}}return{start:Me,length:Oe}}}_selectWordAt(v,w){const F=this._getWordAt(v,w);if(F){for(;F.start<0;)F.start+=this._bufferService.cols,v[1]--;this._model.selectionStart=[F.start,v[1]],this._model.selectionStartLength=F.length}}_selectToWordAt(v){const w=this._getWordAt(v,!0);if(w){let F=v[1];for(;w.start<0;)w.start+=this._bufferService.cols,F--;if(!this._model.areSelectionValuesReversed())for(;w.start+w.length>this._bufferService.cols;)w.length-=this._bufferService.cols,F++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?w.start:w.start+w.length,F]}}_isCharWordSeparator(v){return 0!==v.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(v.getChars())>=0}_selectLineAt(v){const w=this._bufferService.buffer.getWrappedRangeForLine(v),F={start:{x:0,y:w.first},end:{x:this._bufferService.cols-1,y:w.last}};this._model.selectionStart=[0,w.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,C.getRangeLength)(F,this._bufferService.cols)}};W=E([I(3,l.IBufferService),I(4,l.ICoreService),I(5,y.IMouseService),I(6,l.IOptionsService),I(7,y.IRenderService),I(8,y.ICoreBrowserService)],W),h.SelectionService=W},4725:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.IThemeService=h.ICharacterJoinerService=h.ISelectionService=h.IRenderService=h.IMouseService=h.ICoreBrowserService=h.ICharSizeService=void 0;const E=b(8343);h.ICharSizeService=(0,E.createDecorator)("CharSizeService"),h.ICoreBrowserService=(0,E.createDecorator)("CoreBrowserService"),h.IMouseService=(0,E.createDecorator)("MouseService"),h.IRenderService=(0,E.createDecorator)("RenderService"),h.ISelectionService=(0,E.createDecorator)("SelectionService"),h.ICharacterJoinerService=(0,E.createDecorator)("CharacterJoinerService"),h.IThemeService=(0,E.createDecorator)("ThemeService")},6731:function(p,h,b){var E=this&&this.__decorate||function(W,v,w,F){var Z,Q=arguments.length,ne=Q<3?v:null===F?F=Object.getOwnPropertyDescriptor(v,w):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(W,v,w,F);else for(var we=W.length-1;we>=0;we--)(Z=W[we])&&(ne=(Q<3?Z(ne):Q>3?Z(v,w,ne):Z(v,w))||ne);return Q>3&&ne&&Object.defineProperty(v,w,ne),ne},I=this&&this.__param||function(W,v){return function(w,F){v(w,F,W)}};Object.defineProperty(h,"__esModule",{value:!0}),h.ThemeService=h.DEFAULT_ANSI_COLORS=void 0;const D=b(7239),A=b(8055),P=b(8460),T=b(844),y=b(2585),l=A.css.toColor("#ffffff"),f=A.css.toColor("#000000"),u=A.css.toColor("#ffffff"),d=A.css.toColor("#000000"),C={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};h.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const W=[A.css.toColor("#2e3436"),A.css.toColor("#cc0000"),A.css.toColor("#4e9a06"),A.css.toColor("#c4a000"),A.css.toColor("#3465a4"),A.css.toColor("#75507b"),A.css.toColor("#06989a"),A.css.toColor("#d3d7cf"),A.css.toColor("#555753"),A.css.toColor("#ef2929"),A.css.toColor("#8ae234"),A.css.toColor("#fce94f"),A.css.toColor("#729fcf"),A.css.toColor("#ad7fa8"),A.css.toColor("#34e2e2"),A.css.toColor("#eeeeec")],v=[0,95,135,175,215,255];for(let w=0;w<216;w++){const F=v[w/36%6|0],Z=v[w/6%6|0],Q=v[w%6];W.push({css:A.channels.toCss(F,Z,Q),rgba:A.channels.toRgba(F,Z,Q)})}for(let w=0;w<24;w++){const F=8+10*w;W.push({css:A.channels.toCss(F,F,F),rgba:A.channels.toRgba(F,F,F)})}return W})());let R=class extends T.Disposable{constructor(W){super(),this._optionsService=W,this._onChangeColors=this.register(new P.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._contrastCache=new D.ColorContrastCache,this._colors={foreground:l,background:f,cursor:u,cursorAccent:d,selectionForeground:void 0,selectionBackgroundTransparent:C,selectionBackgroundOpaque:A.color.blend(f,C),selectionInactiveBackgroundTransparent:C,selectionInactiveBackgroundOpaque:A.color.blend(f,C),ansi:h.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},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(W={}){const v=this._colors;if(v.foreground=U(W.foreground,l),v.background=U(W.background,f),v.cursor=U(W.cursor,u),v.cursorAccent=U(W.cursorAccent,d),v.selectionBackgroundTransparent=U(W.selectionBackground,C),v.selectionBackgroundOpaque=A.color.blend(v.background,v.selectionBackgroundTransparent),v.selectionInactiveBackgroundTransparent=U(W.selectionInactiveBackground,v.selectionBackgroundTransparent),v.selectionInactiveBackgroundOpaque=A.color.blend(v.background,v.selectionInactiveBackgroundTransparent),v.selectionForeground=W.selectionForeground?U(W.selectionForeground,A.NULL_COLOR):void 0,v.selectionForeground===A.NULL_COLOR&&(v.selectionForeground=void 0),A.color.isOpaque(v.selectionBackgroundTransparent)&&(v.selectionBackgroundTransparent=A.color.opacity(v.selectionBackgroundTransparent,.3)),A.color.isOpaque(v.selectionInactiveBackgroundTransparent)&&(v.selectionInactiveBackgroundTransparent=A.color.opacity(v.selectionInactiveBackgroundTransparent,.3)),v.ansi=h.DEFAULT_ANSI_COLORS.slice(),v.ansi[0]=U(W.black,h.DEFAULT_ANSI_COLORS[0]),v.ansi[1]=U(W.red,h.DEFAULT_ANSI_COLORS[1]),v.ansi[2]=U(W.green,h.DEFAULT_ANSI_COLORS[2]),v.ansi[3]=U(W.yellow,h.DEFAULT_ANSI_COLORS[3]),v.ansi[4]=U(W.blue,h.DEFAULT_ANSI_COLORS[4]),v.ansi[5]=U(W.magenta,h.DEFAULT_ANSI_COLORS[5]),v.ansi[6]=U(W.cyan,h.DEFAULT_ANSI_COLORS[6]),v.ansi[7]=U(W.white,h.DEFAULT_ANSI_COLORS[7]),v.ansi[8]=U(W.brightBlack,h.DEFAULT_ANSI_COLORS[8]),v.ansi[9]=U(W.brightRed,h.DEFAULT_ANSI_COLORS[9]),v.ansi[10]=U(W.brightGreen,h.DEFAULT_ANSI_COLORS[10]),v.ansi[11]=U(W.brightYellow,h.DEFAULT_ANSI_COLORS[11]),v.ansi[12]=U(W.brightBlue,h.DEFAULT_ANSI_COLORS[12]),v.ansi[13]=U(W.brightMagenta,h.DEFAULT_ANSI_COLORS[13]),v.ansi[14]=U(W.brightCyan,h.DEFAULT_ANSI_COLORS[14]),v.ansi[15]=U(W.brightWhite,h.DEFAULT_ANSI_COLORS[15]),W.extendedAnsi){const w=Math.min(v.ansi.length-16,W.extendedAnsi.length);for(let F=0;F{Object.defineProperty(h,"__esModule",{value:!0}),h.CircularList=void 0;const E=b(8460),I=b(844);h.CircularList=class D extends I.Disposable{constructor(P){super(),this._maxLength=P,this.onDeleteEmitter=this.register(new E.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new E.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new E.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(P){if(this._maxLength===P)return;const T=new Array(P);for(let y=0;ythis._length)for(let T=this._length;T=P;l--)this._array[this._getCyclicIndex(l+y.length)]=this._array[this._getCyclicIndex(l)];for(let l=0;lthis._maxLength){const l=this._length+y.length-this._maxLength;this._startIndex+=l,this._length=this._maxLength,this.onTrimEmitter.fire(l)}else this._length+=y.length}trimStart(P){P>this._length&&(P=this._length),this._startIndex+=P,this._length-=P,this.onTrimEmitter.fire(P)}shiftElements(P,T,y){if(!(T<=0)){if(P<0||P>=this._length)throw new Error("start argument out of range");if(P+y<0)throw new Error("Cannot shift elements in list beyond index 0");if(y>0){for(let f=T-1;f>=0;f--)this.set(P+f+y,this.get(P+f));const l=P+T+y-this._length;if(l>0)for(this._length+=l;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let l=0;l{Object.defineProperty(h,"__esModule",{value:!0}),h.clone=void 0,h.clone=function b(E,I=5){if("object"!=typeof E)return E;const D=Array.isArray(E)?[]:{};for(const A in E)D[A]=I<=1?E[A]:E[A]&&b(E[A],I-1);return D}},8055:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.contrastRatio=h.toPaddedHex=h.rgba=h.rgb=h.css=h.color=h.channels=h.NULL_COLOR=void 0;const E=b(6114);let I=0,D=0,A=0,P=0;var T,y,l,d;function f(d){const C=d.toString(16);return C.length<2?"0"+C:C}function u(d,C){return d>>0},function(d){function C(R,U){return P=Math.round(255*U),[I,D,A]=l.toChannels(R.rgba),{css:T.toCss(I,D,A,P),rgba:T.toRgba(I,D,A,P)}}d.blend=function(R,U){if(P=(255&U.rgba)/255,1===P)return{css:U.css,rgba:U.rgba};const v=U.rgba>>16&255,w=U.rgba>>8&255,F=R.rgba>>24&255,Z=R.rgba>>16&255,Q=R.rgba>>8&255;return I=F+Math.round(((U.rgba>>24&255)-F)*P),D=Z+Math.round((v-Z)*P),A=Q+Math.round((w-Q)*P),{css:T.toCss(I,D,A),rgba:T.toRgba(I,D,A)}},d.isOpaque=function(R){return 255==(255&R.rgba)},d.ensureContrastRatio=function(R,U,W){const v=l.ensureContrastRatio(R.rgba,U.rgba,W);if(v)return l.toColor(v>>24&255,v>>16&255,v>>8&255)},d.opaque=function(R){const U=(255|R.rgba)>>>0;return[I,D,A]=l.toChannels(U),{css:T.toCss(I,D,A),rgba:U}},d.opacity=C,d.multiplyOpacity=function(R,U){return P=255&R.rgba,C(R,P*U/255)},d.toColorRGB=function(R){return[R.rgba>>24&255,R.rgba>>16&255,R.rgba>>8&255]}}(h.color||(h.color={})),function(d){let C,R;if(!E.isNode){const U=document.createElement("canvas");U.width=1,U.height=1;const W=U.getContext("2d",{willReadFrequently:!0});W&&(C=W,C.globalCompositeOperation="copy",R=C.createLinearGradient(0,0,1,1))}d.toColor=function(U){if(U.match(/#[\da-f]{3,8}/i))switch(U.length){case 4:return I=parseInt(U.slice(1,2).repeat(2),16),D=parseInt(U.slice(2,3).repeat(2),16),A=parseInt(U.slice(3,4).repeat(2),16),l.toColor(I,D,A);case 5:return I=parseInt(U.slice(1,2).repeat(2),16),D=parseInt(U.slice(2,3).repeat(2),16),A=parseInt(U.slice(3,4).repeat(2),16),P=parseInt(U.slice(4,5).repeat(2),16),l.toColor(I,D,A,P);case 7:return{css:U,rgba:(parseInt(U.slice(1),16)<<8|255)>>>0};case 9:return{css:U,rgba:parseInt(U.slice(1),16)>>>0}}const W=U.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(W)return I=parseInt(W[1]),D=parseInt(W[2]),A=parseInt(W[3]),P=Math.round(255*(void 0===W[5]?1:parseFloat(W[5]))),l.toColor(I,D,A,P);if(!C||!R)throw new Error("css.toColor: Unsupported css format");if(C.fillStyle=R,C.fillStyle=U,"string"!=typeof C.fillStyle)throw new Error("css.toColor: Unsupported css format");if(C.fillRect(0,0,1,1),[I,D,A,P]=C.getImageData(0,0,1,1).data,255!==P)throw new Error("css.toColor: Unsupported css format");return{rgba:T.toRgba(I,D,A,P),css:U}}}(h.css||(h.css={})),function(d){function C(R,U,W){const v=R/255,w=U/255,F=W/255;return.2126*(v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4))+.7152*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.0722*(F<=.03928?F/12.92:Math.pow((F+.055)/1.055,2.4))}d.relativeLuminance=function(R){return C(R>>16&255,R>>8&255,255&R)},d.relativeLuminance2=C}(y=h.rgb||(h.rgb={})),function(d){function C(U,W,v){const w=U>>24&255,F=U>>16&255,Z=U>>8&255;let Q=W>>24&255,ne=W>>16&255,we=W>>8&255,Be=u(y.relativeLuminance2(Q,ne,we),y.relativeLuminance2(w,F,Z));for(;Be0||ne>0||we>0);)Q-=Math.max(0,Math.ceil(.1*Q)),ne-=Math.max(0,Math.ceil(.1*ne)),we-=Math.max(0,Math.ceil(.1*we)),Be=u(y.relativeLuminance2(Q,ne,we),y.relativeLuminance2(w,F,Z));return(Q<<24|ne<<16|we<<8|255)>>>0}function R(U,W,v){const w=U>>24&255,F=U>>16&255,Z=U>>8&255;let Q=W>>24&255,ne=W>>16&255,we=W>>8&255,Be=u(y.relativeLuminance2(Q,ne,we),y.relativeLuminance2(w,F,Z));for(;Be>>0}d.ensureContrastRatio=function(U,W,v){const w=y.relativeLuminance(U>>8),F=y.relativeLuminance(W>>8);if(u(w,F)>8));if(weu(w,y.relativeLuminance(Be>>8))?ne:Be}return ne}const Z=R(U,W,v),Q=u(w,y.relativeLuminance(Z>>8));if(Qu(w,y.relativeLuminance(ne>>8))?Z:ne}return Z}},d.reduceLuminance=C,d.increaseLuminance=R,d.toChannels=function(U){return[U>>24&255,U>>16&255,U>>8&255,255&U]},d.toColor=function(U,W,v,w){return{css:T.toCss(U,W,v,w),rgba:T.toRgba(U,W,v,w)}}}(l=h.rgba||(h.rgba={})),h.toPaddedHex=f,h.contrastRatio=u},8969:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.CoreTerminal=void 0;const E=b(844),I=b(2585),D=b(4348),A=b(7866),P=b(744),T=b(7302),y=b(6975),l=b(8460),f=b(1753),u=b(1480),d=b(7994),C=b(9282),R=b(5435),U=b(5981),W=b(2660);let v=!1;h.CoreTerminal=class w extends E.Disposable{constructor(Z){super(),this._onBinary=this.register(new l.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new l.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new l.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new l.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new l.EventEmitter),this._instantiationService=new D.InstantiationService,this.optionsService=this.register(new T.OptionsService(Z)),this._instantiationService.setService(I.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(P.BufferService)),this._instantiationService.setService(I.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(A.LogService)),this._instantiationService.setService(I.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(y.CoreService)),this._instantiationService.setService(I.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(f.CoreMouseService)),this._instantiationService.setService(I.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(u.UnicodeService)),this._instantiationService.setService(I.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(d.CharsetService),this._instantiationService.setService(I.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(W.OscLinkService),this._instantiationService.setService(I.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new R.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,l.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,l.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,l.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,l.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(Q=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(Q=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new U.WriteBuffer((Q,ne)=>this._inputHandler.parse(Q,ne))),this.register((0,l.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed)),this.register((0,E.toDisposable)(()=>{var Q;null===(Q=this._windowsWrappingHeuristics)||void 0===Q||Q.dispose(),this._windowsWrappingHeuristics=void 0}))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new l.EventEmitter),this._onScroll.event(Z=>{var Q;null===(Q=this._onScrollApi)||void 0===Q||Q.fire(Z.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(Z){for(const Q in Z)this.optionsService.options[Q]=Z[Q]}write(Z,Q){this._writeBuffer.write(Z,Q)}writeSync(Z,Q){this._logService.logLevel<=I.LogLevelEnum.WARN&&!v&&(this._logService.warn("writeSync is unreliable and will be removed soon."),v=!0),this._writeBuffer.writeSync(Z,Q)}resize(Z,Q){isNaN(Z)||isNaN(Q)||(Z=Math.max(Z,P.MINIMUM_COLS),Q=Math.max(Q,P.MINIMUM_ROWS),this._bufferService.resize(Z,Q))}scroll(Z,Q=!1){this._bufferService.scroll(Z,Q)}scrollLines(Z,Q,ne){this._bufferService.scrollLines(Z,Q,ne)}scrollPages(Z){this._bufferService.scrollPages(Z)}scrollToTop(){this._bufferService.scrollToTop()}scrollToBottom(){this._bufferService.scrollToBottom()}scrollToLine(Z){this._bufferService.scrollToLine(Z)}registerEscHandler(Z,Q){return this._inputHandler.registerEscHandler(Z,Q)}registerDcsHandler(Z,Q){return this._inputHandler.registerDcsHandler(Z,Q)}registerCsiHandler(Z,Q){return this._inputHandler.registerCsiHandler(Z,Q)}registerOscHandler(Z,Q){return this._inputHandler.registerOscHandler(Z,Q)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){var Z;let Q=!1;const ne=this.optionsService.rawOptions.windowsPty;ne&&void 0!==ne.buildNumber&&void 0!==ne.buildNumber?Q="conpty"===ne.backend&&ne.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(Q=!0),Q?this._enableWindowsWrappingHeuristics():(null===(Z=this._windowsWrappingHeuristics)||void 0===Z||Z.dispose(),this._windowsWrappingHeuristics=void 0)}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics){const Z=[];Z.push(this.onLineFeed(C.updateWindowsModeWrappedState.bind(null,this._bufferService))),Z.push(this.registerCsiHandler({final:"H"},()=>((0,C.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics=(0,E.toDisposable)(()=>{for(const Q of Z)Q.dispose()})}}}},8460:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.forwardEvent=h.EventEmitter=void 0,h.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=b=>(this._listeners.push(b),{dispose:()=>{if(!this._disposed)for(let E=0;EE.fire(I))}},5435:function(p,h,b){var E=this&&this.__decorate||function(xe,Y,re,_e){var ee,he=arguments.length,Me=he<3?Y:null===_e?_e=Object.getOwnPropertyDescriptor(Y,re):_e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Me=Reflect.decorate(xe,Y,re,_e);else for(var Oe=xe.length-1;Oe>=0;Oe--)(ee=xe[Oe])&&(Me=(he<3?ee(Me):he>3?ee(Y,re,Me):ee(Y,re))||Me);return he>3&&Me&&Object.defineProperty(Y,re,Me),Me},I=this&&this.__param||function(xe,Y){return function(re,_e){Y(re,_e,xe)}};Object.defineProperty(h,"__esModule",{value:!0}),h.InputHandler=h.WindowsOptionsReportType=void 0;const D=b(2584),A=b(7116),P=b(2015),T=b(844),y=b(482),l=b(8437),f=b(8460),u=b(643),d=b(511),C=b(3734),R=b(2585),U=b(6242),W=b(6351),v=b(5941),w={"(":0,")":1,"*":2,"+":3,"-":1,".":2},F=131072;function Z(xe,Y){if(xe>24)return Y.setWinLines||!1;switch(xe){case 1:return!!Y.restoreWin;case 2:return!!Y.minimizeWin;case 3:return!!Y.setWinPosition;case 4:return!!Y.setWinSizePixels;case 5:return!!Y.raiseWin;case 6:return!!Y.lowerWin;case 7:return!!Y.refreshWin;case 8:return!!Y.setWinSizeChars;case 9:return!!Y.maximizeWin;case 10:return!!Y.fullscreenWin;case 11:return!!Y.getWinState;case 13:return!!Y.getWinPosition;case 14:return!!Y.getWinSizePixels;case 15:return!!Y.getScreenSizePixels;case 16:return!!Y.getCellSizePixels;case 18:return!!Y.getWinSizeChars;case 19:return!!Y.getScreenSizeChars;case 20:return!!Y.getIconTitle;case 21:return!!Y.getWinTitle;case 22:return!!Y.pushTitle;case 23:return!!Y.popTitle;case 24:return!!Y.setWinLines}return!1}var Q,xe;(xe=Q=h.WindowsOptionsReportType||(h.WindowsOptionsReportType={}))[xe.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",xe[xe.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";let ne=0;h.InputHandler=class we extends T.Disposable{constructor(Y,re,_e,ee,he,Me,Oe,ye,Ne=new P.EscapeSequenceParser){super(),this._bufferService=Y,this._charsetService=re,this._coreService=_e,this._logService=ee,this._optionsService=he,this._oscLinkService=Me,this._coreMouseService=Oe,this._unicodeService=ye,this._parser=Ne,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new y.StringToUtf32,this._utf8Decoder=new y.Utf8ToUtf32,this._workCell=new d.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new f.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new f.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new f.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new f.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new f.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new f.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new f.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new f.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new f.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new f.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new f.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new f.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new f.EventEmitter),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 Be(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(ue=>this._activeBuffer=ue.activeBuffer)),this._parser.setCsiHandlerFallback((ue,de)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(ue),params:de.toArray()})}),this._parser.setEscHandlerFallback(ue=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(ue)})}),this._parser.setExecuteHandlerFallback(ue=>{this._logService.debug("Unknown EXECUTE code: ",{code:ue})}),this._parser.setOscHandlerFallback((ue,de,be)=>{this._logService.debug("Unknown OSC code: ",{identifier:ue,action:de,data:be})}),this._parser.setDcsHandlerFallback((ue,de,be)=>{"HOOK"===de&&(be=be.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(ue),action:de,payload:be})}),this._parser.setPrintHandler((ue,de,be)=>this.print(ue,de,be)),this._parser.registerCsiHandler({final:"@"},ue=>this.insertChars(ue)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},ue=>this.scrollLeft(ue)),this._parser.registerCsiHandler({final:"A"},ue=>this.cursorUp(ue)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},ue=>this.scrollRight(ue)),this._parser.registerCsiHandler({final:"B"},ue=>this.cursorDown(ue)),this._parser.registerCsiHandler({final:"C"},ue=>this.cursorForward(ue)),this._parser.registerCsiHandler({final:"D"},ue=>this.cursorBackward(ue)),this._parser.registerCsiHandler({final:"E"},ue=>this.cursorNextLine(ue)),this._parser.registerCsiHandler({final:"F"},ue=>this.cursorPrecedingLine(ue)),this._parser.registerCsiHandler({final:"G"},ue=>this.cursorCharAbsolute(ue)),this._parser.registerCsiHandler({final:"H"},ue=>this.cursorPosition(ue)),this._parser.registerCsiHandler({final:"I"},ue=>this.cursorForwardTab(ue)),this._parser.registerCsiHandler({final:"J"},ue=>this.eraseInDisplay(ue,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},ue=>this.eraseInDisplay(ue,!0)),this._parser.registerCsiHandler({final:"K"},ue=>this.eraseInLine(ue,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},ue=>this.eraseInLine(ue,!0)),this._parser.registerCsiHandler({final:"L"},ue=>this.insertLines(ue)),this._parser.registerCsiHandler({final:"M"},ue=>this.deleteLines(ue)),this._parser.registerCsiHandler({final:"P"},ue=>this.deleteChars(ue)),this._parser.registerCsiHandler({final:"S"},ue=>this.scrollUp(ue)),this._parser.registerCsiHandler({final:"T"},ue=>this.scrollDown(ue)),this._parser.registerCsiHandler({final:"X"},ue=>this.eraseChars(ue)),this._parser.registerCsiHandler({final:"Z"},ue=>this.cursorBackwardTab(ue)),this._parser.registerCsiHandler({final:"`"},ue=>this.charPosAbsolute(ue)),this._parser.registerCsiHandler({final:"a"},ue=>this.hPositionRelative(ue)),this._parser.registerCsiHandler({final:"b"},ue=>this.repeatPrecedingCharacter(ue)),this._parser.registerCsiHandler({final:"c"},ue=>this.sendDeviceAttributesPrimary(ue)),this._parser.registerCsiHandler({prefix:">",final:"c"},ue=>this.sendDeviceAttributesSecondary(ue)),this._parser.registerCsiHandler({final:"d"},ue=>this.linePosAbsolute(ue)),this._parser.registerCsiHandler({final:"e"},ue=>this.vPositionRelative(ue)),this._parser.registerCsiHandler({final:"f"},ue=>this.hVPosition(ue)),this._parser.registerCsiHandler({final:"g"},ue=>this.tabClear(ue)),this._parser.registerCsiHandler({final:"h"},ue=>this.setMode(ue)),this._parser.registerCsiHandler({prefix:"?",final:"h"},ue=>this.setModePrivate(ue)),this._parser.registerCsiHandler({final:"l"},ue=>this.resetMode(ue)),this._parser.registerCsiHandler({prefix:"?",final:"l"},ue=>this.resetModePrivate(ue)),this._parser.registerCsiHandler({final:"m"},ue=>this.charAttributes(ue)),this._parser.registerCsiHandler({final:"n"},ue=>this.deviceStatus(ue)),this._parser.registerCsiHandler({prefix:"?",final:"n"},ue=>this.deviceStatusPrivate(ue)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},ue=>this.softReset(ue)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},ue=>this.setCursorStyle(ue)),this._parser.registerCsiHandler({final:"r"},ue=>this.setScrollRegion(ue)),this._parser.registerCsiHandler({final:"s"},ue=>this.saveCursor(ue)),this._parser.registerCsiHandler({final:"t"},ue=>this.windowOptions(ue)),this._parser.registerCsiHandler({final:"u"},ue=>this.restoreCursor(ue)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},ue=>this.insertColumns(ue)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},ue=>this.deleteColumns(ue)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},ue=>this.selectProtected(ue)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},ue=>this.requestMode(ue,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},ue=>this.requestMode(ue,!1)),this._parser.setExecuteHandler(D.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(D.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(D.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(D.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(D.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(D.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(D.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(D.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(D.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(D.C1.IND,()=>this.index()),this._parser.setExecuteHandler(D.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(D.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new U.OscHandler(ue=>(this.setTitle(ue),this.setIconName(ue),!0))),this._parser.registerOscHandler(1,new U.OscHandler(ue=>this.setIconName(ue))),this._parser.registerOscHandler(2,new U.OscHandler(ue=>this.setTitle(ue))),this._parser.registerOscHandler(4,new U.OscHandler(ue=>this.setOrReportIndexedColor(ue))),this._parser.registerOscHandler(8,new U.OscHandler(ue=>this.setHyperlink(ue))),this._parser.registerOscHandler(10,new U.OscHandler(ue=>this.setOrReportFgColor(ue))),this._parser.registerOscHandler(11,new U.OscHandler(ue=>this.setOrReportBgColor(ue))),this._parser.registerOscHandler(12,new U.OscHandler(ue=>this.setOrReportCursorColor(ue))),this._parser.registerOscHandler(104,new U.OscHandler(ue=>this.restoreIndexedColor(ue))),this._parser.registerOscHandler(110,new U.OscHandler(ue=>this.restoreFgColor(ue))),this._parser.registerOscHandler(111,new U.OscHandler(ue=>this.restoreBgColor(ue))),this._parser.registerOscHandler(112,new U.OscHandler(ue=>this.restoreCursorColor(ue))),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(const ue in A.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:ue},()=>this.selectCharset("("+ue)),this._parser.registerEscHandler({intermediates:")",final:ue},()=>this.selectCharset(")"+ue)),this._parser.registerEscHandler({intermediates:"*",final:ue},()=>this.selectCharset("*"+ue)),this._parser.registerEscHandler({intermediates:"+",final:ue},()=>this.selectCharset("+"+ue)),this._parser.registerEscHandler({intermediates:"-",final:ue},()=>this.selectCharset("-"+ue)),this._parser.registerEscHandler({intermediates:".",final:ue},()=>this.selectCharset("."+ue)),this._parser.registerEscHandler({intermediates:"/",final:ue},()=>this.selectCharset("/"+ue));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(ue=>(this._logService.error("Parsing error: ",ue),ue)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new W.DcsHandler((ue,de)=>this.requestStatusString(ue,de)))}getAttrData(){return this._curAttrData}_preserveStack(Y,re,_e,ee){this._parseStack.paused=!0,this._parseStack.cursorStartX=Y,this._parseStack.cursorStartY=re,this._parseStack.decodedLength=_e,this._parseStack.position=ee}_logSlowResolvingAsync(Y){this._logService.logLevel<=R.LogLevelEnum.WARN&&Promise.race([Y,new Promise((re,_e)=>setTimeout(()=>_e("#SLOW_TIMEOUT"),5e3))]).catch(re=>{if("#SLOW_TIMEOUT"!==re)throw re;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(Y,re){let _e,ee=this._activeBuffer.x,he=this._activeBuffer.y,Me=0;const Oe=this._parseStack.paused;if(Oe){if(_e=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,re))return this._logSlowResolvingAsync(_e),_e;ee=this._parseStack.cursorStartX,he=this._parseStack.cursorStartY,this._parseStack.paused=!1,Y.length>F&&(Me=this._parseStack.position+F)}if(this._logService.logLevel<=R.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof Y?` "${Y}"`:` "${Array.prototype.map.call(Y,ye=>String.fromCharCode(ye)).join("")}"`),"string"==typeof Y?Y.split("").map(ye=>ye.charCodeAt(0)):Y),this._parseBuffer.lengthF)for(let ye=Me;ye0&&2===be.getWidth(this._activeBuffer.x-1)&&be.setCellFromCodePoint(this._activeBuffer.x-1,0,1,de.fg,de.bg,de.extended);for(let ke=re;ke<_e;++ke){if(ee=Y[ke],he=this._unicodeService.wcwidth(ee),ee<127&&Me){const Ue=Me[String.fromCharCode(ee)];Ue&&(ee=Ue.charCodeAt(0))}if(Oe&&this._onA11yChar.fire((0,y.stringFromCodePoint)(ee)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),he||!this._activeBuffer.x){if(this._activeBuffer.x+he-1>=ye)if(Ne){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),be=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=ye-1,2===he)continue;if(ue&&(be.insertCells(this._activeBuffer.x,he,this._activeBuffer.getNullCell(de),de),2===be.getWidth(ye-1)&&be.setCellFromCodePoint(ye-1,u.NULL_CELL_CODE,u.NULL_CELL_WIDTH,de.fg,de.bg,de.extended)),be.setCellFromCodePoint(this._activeBuffer.x++,ee,he,de.fg,de.bg,de.extended),he>0)for(;--he;)be.setCellFromCodePoint(this._activeBuffer.x++,0,0,de.fg,de.bg,de.extended)}else be.getWidth(this._activeBuffer.x-1)?be.addCodepointToCell(this._activeBuffer.x-1,ee):be.addCodepointToCell(this._activeBuffer.x-2,ee)}_e-re>0&&(be.loadCell(this._activeBuffer.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),this._activeBuffer.x0&&0===be.getWidth(this._activeBuffer.x)&&!be.hasContent(this._activeBuffer.x)&&be.setCellFromCodePoint(this._activeBuffer.x,0,1,de.fg,de.bg,de.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(Y,re){return this._parser.registerCsiHandler(Y,"t"!==Y.final||Y.prefix||Y.intermediates?re:_e=>!Z(_e.params[0],this._optionsService.rawOptions.windowOptions)||re(_e))}registerDcsHandler(Y,re){return this._parser.registerDcsHandler(Y,new W.DcsHandler(re))}registerEscHandler(Y,re){return this._parser.registerEscHandler(Y,re)}registerOscHandler(Y,re){return this._parser.registerOscHandler(Y,new U.OscHandler(re))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var Y;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(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(Y=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===Y?void 0:Y.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const re=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);re.hasWidth(this._activeBuffer.x)&&!re.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const Y=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-Y),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(Y=this._bufferService.cols-1){this._activeBuffer.x=Math.min(Y,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(Y,re){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=Y,this._activeBuffer.y=this._activeBuffer.scrollTop+re):(this._activeBuffer.x=Y,this._activeBuffer.y=re),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(Y,re){this._restrictCursor(),this._setCursor(this._activeBuffer.x+Y,this._activeBuffer.y+re)}cursorUp(Y){const re=this._activeBuffer.y-this._activeBuffer.scrollTop;return this._moveCursor(0,re>=0?-Math.min(re,Y.params[0]||1):-(Y.params[0]||1)),!0}cursorDown(Y){const re=this._activeBuffer.scrollBottom-this._activeBuffer.y;return this._moveCursor(0,re>=0?Math.min(re,Y.params[0]||1):Y.params[0]||1),!0}cursorForward(Y){return this._moveCursor(Y.params[0]||1,0),!0}cursorBackward(Y){return this._moveCursor(-(Y.params[0]||1),0),!0}cursorNextLine(Y){return this.cursorDown(Y),this._activeBuffer.x=0,!0}cursorPrecedingLine(Y){return this.cursorUp(Y),this._activeBuffer.x=0,!0}cursorCharAbsolute(Y){return this._setCursor((Y.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(Y){return this._setCursor(Y.length>=2?(Y.params[1]||1)-1:0,(Y.params[0]||1)-1),!0}charPosAbsolute(Y){return this._setCursor((Y.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(Y){return this._moveCursor(Y.params[0]||1,0),!0}linePosAbsolute(Y){return this._setCursor(this._activeBuffer.x,(Y.params[0]||1)-1),!0}vPositionRelative(Y){return this._moveCursor(0,Y.params[0]||1),!0}hVPosition(Y){return this.cursorPosition(Y),!0}tabClear(Y){const re=Y.params[0];return 0===re?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===re&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(Y){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let re=Y.params[0]||1;for(;re--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(Y){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let re=Y.params[0]||1;for(;re--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(Y){const re=Y.params[0];return 1===re&&(this._curAttrData.bg|=536870912),2!==re&&0!==re||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(Y,re,_e,ee=!1,he=!1){const Me=this._activeBuffer.lines.get(this._activeBuffer.ybase+Y);Me.replaceCells(re,_e,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),he),ee&&(Me.isWrapped=!1)}_resetBufferLine(Y,re=!1){const _e=this._activeBuffer.lines.get(this._activeBuffer.ybase+Y);_e.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),re),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+Y),_e.isWrapped=!1}eraseInDisplay(Y,re=!1){let _e;switch(this._restrictCursor(this._bufferService.cols),Y.params[0]){case 0:for(_e=this._activeBuffer.y,this._dirtyRowTracker.markDirty(_e),this._eraseInBufferLine(_e++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,re);_e=this._bufferService.cols&&(this._activeBuffer.lines.get(_e+1).isWrapped=!1);_e--;)this._resetBufferLine(_e,re);this._dirtyRowTracker.markDirty(0);break;case 2:for(_e=this._bufferService.rows,this._dirtyRowTracker.markDirty(_e-1);_e--;)this._resetBufferLine(_e,re);this._dirtyRowTracker.markDirty(0);break;case 3:const ee=this._activeBuffer.lines.length-this._bufferService.rows;ee>0&&(this._activeBuffer.lines.trimStart(ee),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-ee,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-ee,0),this._onScroll.fire(0))}return!0}eraseInLine(Y,re=!1){switch(this._restrictCursor(this._bufferService.cols),Y.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,re);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,re);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,re)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(Y){this._restrictCursor();let re=Y.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(Y){return Y.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(Y.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0}_is(Y){return 0===(this._optionsService.rawOptions.termName+"").indexOf(Y)}setMode(Y){for(let re=0;reXe?1:2,ke=Y.params[0];return Ue=ke,ft=re?2===ke?4:4===ke?be(Me.modes.insertMode):12===ke?3:20===ke?be(de.convertEol):0:1===ke?be(_e.applicationCursorKeys):3===ke?de.windowOptions.setWinLines?80===ye?2:132===ye?1:0:0:6===ke?be(_e.origin):7===ke?be(_e.wraparound):8===ke?3:9===ke?be("X10"===ee):12===ke?be(de.cursorBlink):25===ke?be(!Me.isCursorHidden):45===ke?be(_e.reverseWraparound):66===ke?be(_e.applicationKeypad):67===ke?4:1e3===ke?be("VT200"===ee):1002===ke?be("DRAG"===ee):1003===ke?be("ANY"===ee):1004===ke?be(_e.sendFocus):1005===ke?4:1006===ke?be("SGR"===he):1015===ke?4:1016===ke?be("SGR_PIXELS"===he):1048===ke?1:47===ke||1047===ke||1049===ke?be(Ne===ue):2004===ke?be(_e.bracketedPasteMode):0,Me.triggerDataEvent(`${D.C0.ESC}[${re?"":"?"}${Ue};${ft}$y`),!0;var Ue,ft}_updateAttrColor(Y,re,_e,ee,he){return 2===re?(Y|=50331648,Y&=-16777216,Y|=C.AttributeData.fromColorRGB([_e,ee,he])):5===re&&(Y&=-50331904,Y|=33554432|255&_e),Y}_extractColor(Y,re,_e){const ee=[0,0,-1,0,0,0];let he=0,Me=0;do{if(ee[Me+he]=Y.params[re+Me],Y.hasSubParams(re+Me)){const Oe=Y.getSubParams(re+Me);let ye=0;do{5===ee[1]&&(he=1),ee[Me+ye+1+he]=Oe[ye]}while(++ye=2||2===ee[1]&&Me+he>=5)break;ee[1]&&(he=1)}while(++Me+re5)&&(Y=1),re.extended.underlineStyle=Y,re.fg|=268435456,0===Y&&(re.fg&=-268435457),re.updateExtended()}_processSGR0(Y){Y.fg=l.DEFAULT_ATTR_DATA.fg,Y.bg=l.DEFAULT_ATTR_DATA.bg,Y.extended=Y.extended.clone(),Y.extended.underlineStyle=0,Y.extended.underlineColor&=-67108864,Y.updateExtended()}charAttributes(Y){if(1===Y.length&&0===Y.params[0])return this._processSGR0(this._curAttrData),!0;const re=Y.length;let _e;const ee=this._curAttrData;for(let he=0;he=30&&_e<=37?(ee.fg&=-50331904,ee.fg|=16777216|_e-30):_e>=40&&_e<=47?(ee.bg&=-50331904,ee.bg|=16777216|_e-40):_e>=90&&_e<=97?(ee.fg&=-50331904,ee.fg|=16777224|_e-90):_e>=100&&_e<=107?(ee.bg&=-50331904,ee.bg|=16777224|_e-100):0===_e?this._processSGR0(ee):1===_e?ee.fg|=134217728:3===_e?ee.bg|=67108864:4===_e?(ee.fg|=268435456,this._processUnderline(Y.hasSubParams(he)?Y.getSubParams(he)[0]:1,ee)):5===_e?ee.fg|=536870912:7===_e?ee.fg|=67108864:8===_e?ee.fg|=1073741824:9===_e?ee.fg|=2147483648:2===_e?ee.bg|=134217728:21===_e?this._processUnderline(2,ee):22===_e?(ee.fg&=-134217729,ee.bg&=-134217729):23===_e?ee.bg&=-67108865:24===_e?(ee.fg&=-268435457,this._processUnderline(0,ee)):25===_e?ee.fg&=-536870913:27===_e?ee.fg&=-67108865:28===_e?ee.fg&=-1073741825:29===_e?ee.fg&=2147483647:39===_e?(ee.fg&=-67108864,ee.fg|=16777215&l.DEFAULT_ATTR_DATA.fg):49===_e?(ee.bg&=-67108864,ee.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):38===_e||48===_e||58===_e?he+=this._extractColor(Y,he,ee):53===_e?ee.bg|=1073741824:55===_e?ee.bg&=-1073741825:59===_e?(ee.extended=ee.extended.clone(),ee.extended.underlineColor=-1,ee.updateExtended()):100===_e?(ee.fg&=-67108864,ee.fg|=16777215&l.DEFAULT_ATTR_DATA.fg,ee.bg&=-67108864,ee.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",_e);return!0}deviceStatus(Y){switch(Y.params[0]){case 5:this._coreService.triggerDataEvent(`${D.C0.ESC}[0n`);break;case 6:this._coreService.triggerDataEvent(`${D.C0.ESC}[${this._activeBuffer.y+1};${this._activeBuffer.x+1}R`)}return!0}deviceStatusPrivate(Y){return 6===Y.params[0]&&this._coreService.triggerDataEvent(`${D.C0.ESC}[?${this._activeBuffer.y+1};${this._activeBuffer.x+1}R`),!0}softReset(Y){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=l.DEFAULT_ATTR_DATA.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(Y){const re=Y.params[0]||1;switch(re){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=re%2==1,!0}setScrollRegion(Y){const re=Y.params[0]||1;let _e;return(Y.length<2||(_e=Y.params[1])>this._bufferService.rows||0===_e)&&(_e=this._bufferService.rows),_e>re&&(this._activeBuffer.scrollTop=re-1,this._activeBuffer.scrollBottom=_e-1,this._setCursor(0,0)),!0}windowOptions(Y){if(!Z(Y.params[0],this._optionsService.rawOptions.windowOptions))return!0;const re=Y.length>1?Y.params[1]:0;switch(Y.params[0]){case 14:2!==re&&this._onRequestWindowsOptionsReport.fire(Q.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(Q.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${D.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==re&&2!==re||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==re&&1!==re||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==re&&2!==re||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==re&&1!==re||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(Y){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(Y){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(Y){return this._windowTitle=Y,this._onTitleChange.fire(Y),!0}setIconName(Y){return this._iconName=Y,!0}setOrReportIndexedColor(Y){const re=[],_e=Y.split(";");for(;_e.length>1;){const ee=_e.shift(),he=_e.shift();if(/^\d+$/.exec(ee)){const Me=parseInt(ee);if(0<=Me&&Me<256)if("?"===he)re.push({type:0,index:Me});else{const Oe=(0,v.parseColor)(he);Oe&&re.push({type:1,index:Me,color:Oe})}}}return re.length&&this._onColor.fire(re),!0}setHyperlink(Y){const re=Y.split(";");return!(re.length<2)&&(re[1]?this._createHyperlink(re[0],re[1]):!re[0]&&this._finishHyperlink())}_createHyperlink(Y,re){this._getCurrentLinkId()&&this._finishHyperlink();const _e=Y.split(":");let ee;const he=_e.findIndex(Me=>Me.startsWith("id="));return-1!==he&&(ee=_e[he].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:ee,uri:re}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(Y,re){const _e=Y.split(";");for(let ee=0;ee<_e.length&&!(re>=this._specialColors.length);++ee,++re)if("?"===_e[ee])this._onColor.fire([{type:0,index:this._specialColors[re]}]);else{const he=(0,v.parseColor)(_e[ee]);he&&this._onColor.fire([{type:1,index:this._specialColors[re],color:he}])}return!0}setOrReportFgColor(Y){return this._setOrReportSpecialColor(Y,0)}setOrReportBgColor(Y){return this._setOrReportSpecialColor(Y,1)}setOrReportCursorColor(Y){return this._setOrReportSpecialColor(Y,2)}restoreIndexedColor(Y){if(!Y)return this._onColor.fire([{type:2}]),!0;const re=[],_e=Y.split(";");for(let ee=0;ee<_e.length;++ee)if(/^\d+$/.exec(_e[ee])){const he=parseInt(_e[ee]);0<=he&&he<256&&re.push({type:2,index:he})}return re.length&&this._onColor.fire(re),!0}restoreFgColor(Y){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(Y){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(Y){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,A.DEFAULT_CHARSET),!0}selectCharset(Y){return 2!==Y.length?(this.selectDefaultCharset(),!0):("/"===Y[0]||this._charsetService.setgCharset(w[Y[0]],A.CHARSETS[Y[1]]||A.DEFAULT_CHARSET),!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(){return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,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)):(this._activeBuffer.y--,this._restrictCursor()),!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(Y){return this._charsetService.setgLevel(Y),!0}screenAlignmentPattern(){const Y=new d.CellData;Y.content=4194304|"E".charCodeAt(0),Y.fg=this._curAttrData.fg,Y.bg=this._curAttrData.bg,this._setCursor(0,0);for(let re=0;re(this._coreService.triggerDataEvent(`${D.C0.ESC}${he}${D.C0.ESC}\\`),!0))('"q'===Y?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===Y?'P1$r61;1"p':"r"===Y?`P1$r${_e.scrollTop+1};${_e.scrollBottom+1}r`:"m"===Y?"P1$r0m":" q"===Y?`P1$r${{block:2,underline:4,bar:6}[ee.cursorStyle]-(ee.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(Y,re){this._dirtyRowTracker.markRangeDirty(Y,re)}};let Be=class{constructor(xe){this._bufferService=xe,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(xe){xethis.end&&(this.end=xe)}markRangeDirty(xe,Y){xe>Y&&(ne=xe,xe=Y,Y=ne),xethis.end&&(this.end=Y)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};Be=E([I(0,R.IBufferService)],Be)},844:(p,h)=>{function b(E){for(const I of E)I.dispose();E.length=0}Object.defineProperty(h,"__esModule",{value:!0}),h.getDisposeArrayDisposable=h.disposeArray=h.toDisposable=h.Disposable=void 0,h.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const E of this._disposables)E.dispose();this._disposables.length=0}register(E){return this._disposables.push(E),E}unregister(E){const I=this._disposables.indexOf(E);-1!==I&&this._disposables.splice(I,1)}},h.toDisposable=function(E){return{dispose:E}},h.disposeArray=b,h.getDisposeArrayDisposable=function(E){return{dispose:()=>b(E)}}},1505:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.FourKeyMap=h.TwoKeyMap=void 0;class b{constructor(){this._data={}}set(I,D,A){this._data[I]||(this._data[I]={}),this._data[I][D]=A}get(I,D){return this._data[I]?this._data[I][D]:void 0}clear(){this._data={}}}h.TwoKeyMap=b,h.FourKeyMap=class{constructor(){this._data=new b}set(E,I,D,A,P){this._data.get(E,I)||this._data.set(E,I,new b),this._data.get(E,I).set(D,A,P)}get(E,I,D,A){var P;return null===(P=this._data.get(E,I))||void 0===P?void 0:P.get(D,A)}clear(){this._data.clear()}}},6114:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.isChromeOS=h.isLinux=h.isWindows=h.isIphone=h.isIpad=h.isMac=h.getSafariVersion=h.isSafari=h.isLegacyEdge=h.isFirefox=h.isNode=void 0,h.isNode="undefined"==typeof navigator;const b=h.isNode?"node":navigator.userAgent,E=h.isNode?"node":navigator.platform;h.isFirefox=b.includes("Firefox"),h.isLegacyEdge=b.includes("Edge"),h.isSafari=/^((?!chrome|android).)*safari/i.test(b),h.getSafariVersion=function(){if(!h.isSafari)return 0;const I=b.match(/Version\/(\d+)/);return null===I||I.length<2?0:parseInt(I[1])},h.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(E),h.isIpad="iPad"===E,h.isIphone="iPhone"===E,h.isWindows=["Windows","Win16","Win32","WinCE"].includes(E),h.isLinux=E.indexOf("Linux")>=0,h.isChromeOS=/\bCrOS\b/.test(b)},6106:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.SortedList=void 0;let b=0;h.SortedList=class{constructor(E){this._getKey=E,this._array=[]}clear(){this._array.length=0}insert(E){0!==this._array.length?(b=this._search(this._getKey(E),0,this._array.length-1),this._array.splice(b,0,E)):this._array.push(E)}delete(E){if(0===this._array.length)return!1;const I=this._getKey(E);if(void 0===I||(b=this._search(I,0,this._array.length-1),-1===b)||this._getKey(this._array[b])!==I)return!1;do{if(this._array[b]===E)return this._array.splice(b,1),!0}while(++b=this._array.length)&&this._getKey(this._array[b])===E))do{yield this._array[b]}while(++b=this._array.length)&&this._getKey(this._array[b])===E))do{I(this._array[b])}while(++bE)return this._search(E,I,A-1);if(P0&&this._getKey(this._array[A-1])===E;)A--;return A}}},7226:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DebouncedIdleTask=h.IdleTaskQueue=h.PriorityTaskQueue=void 0;const E=b(6114);class I{constructor(){this._tasks=[],this._i=0}enqueue(P){this._tasks.push(P),this._start()}flush(){for(;this._if)return l-T<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(l-T))}ms`),void this._start();l=f}this.clear()}}class D extends I{_requestCallback(P){return setTimeout(()=>P(this._createDeadline(16)))}_cancelCallback(P){clearTimeout(P)}_createDeadline(P){const T=Date.now()+P;return{timeRemaining:()=>Math.max(0,T-Date.now())}}}h.PriorityTaskQueue=D,h.IdleTaskQueue=!E.isNode&&"requestIdleCallback"in window?class extends I{_requestCallback(A){return requestIdleCallback(A)}_cancelCallback(A){cancelIdleCallback(A)}}:D,h.DebouncedIdleTask=class{constructor(){this._queue=new h.IdleTaskQueue}set(A){this._queue.clear(),this._queue.enqueue(A)}flush(){this._queue.flush()}}},9282:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.updateWindowsModeWrappedState=void 0;const E=b(643);h.updateWindowsModeWrappedState=function(I){const D=I.buffer.lines.get(I.buffer.ybase+I.buffer.y-1),A=null==D?void 0:D.get(I.cols-1),P=I.buffer.lines.get(I.buffer.ybase+I.buffer.y);P&&A&&(P.isWrapped=A[E.CHAR_DATA_CODE_INDEX]!==E.NULL_CELL_CODE&&A[E.CHAR_DATA_CODE_INDEX]!==E.WHITESPACE_CELL_CODE)}},3734:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ExtendedAttrs=h.AttributeData=void 0;class b{constructor(){this.fg=0,this.bg=0,this.extended=new E}static toColorRGB(D){return[D>>>16&255,D>>>8&255,255&D]}static fromColorRGB(D){return(255&D[0])<<16|(255&D[1])<<8|255&D[2]}clone(){const D=new b;return D.fg=this.fg,D.bg=this.bg,D.extended=this.extended.clone(),D}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}h.AttributeData=b;class E{constructor(D=0,A=0){this._ext=0,this._urlId=0,this._ext=D,this._urlId=A}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(D){this._ext=D}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(D){this._ext&=-469762049,this._ext|=D<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(D){this._ext&=-67108864,this._ext|=67108863&D}get urlId(){return this._urlId}set urlId(D){this._urlId=D}clone(){return new E(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}h.ExtendedAttrs=E},9092:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Buffer=h.MAX_BUFFER_SIZE=void 0;const E=b(6349),I=b(8437),D=b(511),A=b(643),P=b(4634),T=b(4863),y=b(7116),l=b(3734),f=b(7226);h.MAX_BUFFER_SIZE=4294967295,h.Buffer=class{constructor(u,d,C){this._hasScrollback=u,this._optionsService=d,this._bufferService=C,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=I.DEFAULT_ATTR_DATA.clone(),this.savedCharset=y.DEFAULT_CHARSET,this.markers=[],this._nullCell=D.CellData.fromCharData([0,A.NULL_CELL_CHAR,A.NULL_CELL_WIDTH,A.NULL_CELL_CODE]),this._whitespaceCell=D.CellData.fromCharData([0,A.WHITESPACE_CELL_CHAR,A.WHITESPACE_CELL_WIDTH,A.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new f.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(u){return u?(this._nullCell.fg=u.fg,this._nullCell.bg=u.bg,this._nullCell.extended=u.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new l.ExtendedAttrs),this._nullCell}getWhitespaceCell(u){return u?(this._whitespaceCell.fg=u.fg,this._whitespaceCell.bg=u.bg,this._whitespaceCell.extended=u.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new l.ExtendedAttrs),this._whitespaceCell}getBlankLine(u,d){return new I.BufferLine(this._bufferService.cols,this.getNullCell(u),d)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const u=this.ybase+this.y-this.ydisp;return u>=0&&uh.MAX_BUFFER_SIZE?h.MAX_BUFFER_SIZE:d}fillViewportRows(u){if(0===this.lines.length){void 0===u&&(u=I.DEFAULT_ATTR_DATA);let d=this._rows;for(;d--;)this.lines.push(this.getBlankLine(u))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(u,d){const C=this.getNullCell(I.DEFAULT_ATTR_DATA);let R=0;const U=this._getCorrectBufferLength(d);if(U>this.lines.maxLength&&(this.lines.maxLength=U),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+W+1?(this.ybase--,W++,this.ydisp>0&&this.ydisp--):this.lines.push(new I.BufferLine(u,C)));else for(let v=this._rows;v>d;v--)this.lines.length>d+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(U0&&(this.lines.trimStart(v),this.ybase=Math.max(this.ybase-v,0),this.ydisp=Math.max(this.ydisp-v,0),this.savedY=Math.max(this.savedY-v,0)),this.lines.maxLength=U}this.x=Math.min(this.x,u-1),this.y=Math.min(this.y,d-1),W&&(this.y+=W),this.savedX=Math.min(this.savedX,u-1),this.scrollTop=0}if(this.scrollBottom=d-1,this._isReflowEnabled&&(this._reflow(u,d),this._cols>u))for(let W=0;W.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let u=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,u=!1);let d=0;for(;this._memoryCleanupPosition100)return!0;return u}get _isReflowEnabled(){const u=this._optionsService.rawOptions.windowsPty;return u&&u.buildNumber?this._hasScrollback&&"conpty"===u.backend&&u.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(u,d){this._cols!==u&&(u>this._cols?this._reflowLarger(u,d):this._reflowSmaller(u,d))}_reflowLarger(u,d){const C=(0,P.reflowLargerGetLinesToRemove)(this.lines,this._cols,u,this.ybase+this.y,this.getNullCell(I.DEFAULT_ATTR_DATA));if(C.length>0){const R=(0,P.reflowLargerCreateNewLayout)(this.lines,C);(0,P.reflowLargerApplyNewLayout)(this.lines,R.layout),this._reflowLargerAdjustViewport(u,d,R.countRemoved)}}_reflowLargerAdjustViewport(u,d,C){const R=this.getNullCell(I.DEFAULT_ATTR_DATA);let U=C;for(;U-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;W--){let v=this.lines.get(W);if(!v||!v.isWrapped&&v.getTrimmedLength()<=u)continue;const w=[v];for(;v.isWrapped&&W>0;)v=this.lines.get(--W),w.unshift(v);const F=this.ybase+this.y;if(F>=W&&F0&&(R.push({start:W+w.length+U,newLines:Be}),U+=Be.length),w.push(...Be);let xe=Q.length-1,Y=Q[xe];0===Y&&(xe--,Y=Q[xe]);let re=w.length-ne-1,_e=Z;for(;re>=0;){const he=Math.min(_e,Y);if(void 0===w[xe])break;if(w[xe].copyCellsFrom(w[re],_e-he,Y-he,he,!0),Y-=he,0===Y&&(xe--,Y=Q[xe]),_e-=he,0===_e){re--;const Me=Math.max(re,0);_e=(0,P.getWrappedLineTrimmedLength)(w,Me,this._cols)}}for(let he=0;he0;)0===this.ybase?this.y0){const W=[],v=[];for(let xe=0;xe=0;xe--)if(Q&&Q.start>F+ne){for(let Y=Q.newLines.length-1;Y>=0;Y--)this.lines.set(xe--,Q.newLines[Y]);xe++,W.push({index:F+1,amount:Q.newLines.length}),ne+=Q.newLines.length,Q=R[++Z]}else this.lines.set(xe,v[F--]);let we=0;for(let xe=W.length-1;xe>=0;xe--)W[xe].index+=we,this.lines.onInsertEmitter.fire(W[xe]),we+=W[xe].amount;const Be=Math.max(0,w+U-this.lines.maxLength);Be>0&&this.lines.onTrimEmitter.fire(Be)}}translateBufferLineToString(u,d,C=0,R){const U=this.lines.get(u);return U?U.translateToString(d,C,R):""}getWrappedRangeForLine(u){let d=u,C=u;for(;d>0&&this.lines.get(d).isWrapped;)d--;for(;C+10;);return u>=this._cols?this._cols-1:u<0?0:u}nextStop(u){for(null==u&&(u=this.x);!this.tabs[++u]&&u=this._cols?this._cols-1:u<0?0:u}clearMarkers(u){this._isClearing=!0;for(let d=0;d{d.line-=C,d.line<0&&d.dispose()})),d.register(this.lines.onInsert(C=>{d.line>=C.index&&(d.line+=C.amount)})),d.register(this.lines.onDelete(C=>{d.line>=C.index&&d.lineC.index&&(d.line-=C.amount)})),d.register(d.onDispose(()=>this._removeMarker(d))),d}_removeMarker(u){this._isClearing||this.markers.splice(this.markers.indexOf(u),1)}}},8437:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferLine=h.DEFAULT_ATTR_DATA=void 0;const E=b(482),I=b(643),D=b(511),A=b(3734);h.DEFAULT_ATTR_DATA=Object.freeze(new A.AttributeData);let P=0;class T{constructor(l,f,u=!1){this.isWrapped=u,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*l);const d=f||D.CellData.fromCharData([0,I.NULL_CELL_CHAR,I.NULL_CELL_WIDTH,I.NULL_CELL_CODE]);for(let C=0;C>22,2097152&f?this._combined[l].charCodeAt(this._combined[l].length-1):u]}set(l,f){this._data[3*l+1]=f[I.CHAR_DATA_ATTR_INDEX],f[I.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[l]=f[1],this._data[3*l+0]=2097152|l|f[I.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*l+0]=f[I.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|f[I.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(l){return this._data[3*l+0]>>22}hasWidth(l){return 12582912&this._data[3*l+0]}getFg(l){return this._data[3*l+1]}getBg(l){return this._data[3*l+2]}hasContent(l){return 4194303&this._data[3*l+0]}getCodePoint(l){const f=this._data[3*l+0];return 2097152&f?this._combined[l].charCodeAt(this._combined[l].length-1):2097151&f}isCombined(l){return 2097152&this._data[3*l+0]}getString(l){const f=this._data[3*l+0];return 2097152&f?this._combined[l]:2097151&f?(0,E.stringFromCodePoint)(2097151&f):""}isProtected(l){return 536870912&this._data[3*l+2]}loadCell(l,f){return P=3*l,f.content=this._data[P+0],f.fg=this._data[P+1],f.bg=this._data[P+2],2097152&f.content&&(f.combinedData=this._combined[l]),268435456&f.bg&&(f.extended=this._extendedAttrs[l]),f}setCell(l,f){2097152&f.content&&(this._combined[l]=f.combinedData),268435456&f.bg&&(this._extendedAttrs[l]=f.extended),this._data[3*l+0]=f.content,this._data[3*l+1]=f.fg,this._data[3*l+2]=f.bg}setCellFromCodePoint(l,f,u,d,C,R){268435456&C&&(this._extendedAttrs[l]=R),this._data[3*l+0]=f|u<<22,this._data[3*l+1]=d,this._data[3*l+2]=C}addCodepointToCell(l,f){let u=this._data[3*l+0];2097152&u?this._combined[l]+=(0,E.stringFromCodePoint)(f):(2097151&u?(this._combined[l]=(0,E.stringFromCodePoint)(2097151&u)+(0,E.stringFromCodePoint)(f),u&=-2097152,u|=2097152):u=4194304|f,this._data[3*l+0]=u)}insertCells(l,f,u,d){if((l%=this.length)&&2===this.getWidth(l-1)&&this.setCellFromCodePoint(l-1,0,1,(null==d?void 0:d.fg)||0,(null==d?void 0:d.bg)||0,(null==d?void 0:d.extended)||new A.ExtendedAttrs),f=0;--R)this.setCell(l+f+R,this.loadCell(l+R,C));for(let R=0;Rthis.length){if(this._data.buffer.byteLength>=4*u)this._data=new Uint32Array(this._data.buffer,0,u);else{const d=new Uint32Array(u);d.set(this._data),this._data=d}for(let d=this.length;d=l&&delete this._combined[U]}const C=Object.keys(this._extendedAttrs);for(let R=0;R=l&&delete this._extendedAttrs[U]}}return this.length=l,4*u*2=0;--l)if(4194303&this._data[3*l+0])return l+(this._data[3*l+0]>>22);return 0}copyCellsFrom(l,f,u,d,C){const R=l._data;if(C)for(let W=d-1;W>=0;W--){for(let v=0;v<3;v++)this._data[3*(u+W)+v]=R[3*(f+W)+v];268435456&R[3*(f+W)+2]&&(this._extendedAttrs[u+W]=l._extendedAttrs[f+W])}else for(let W=0;W=f&&(this._combined[v-f+u]=l._combined[v])}}translateToString(l=!1,f=0,u=this.length){l&&(u=Math.min(u,this.getTrimmedLength()));let d="";for(;f>22||1}return d}}h.BufferLine=T},4841:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.getRangeLength=void 0,h.getRangeLength=function(b,E){if(b.start.y>b.end.y)throw new Error(`Buffer range end (${b.end.x}, ${b.end.y}) cannot be before start (${b.start.x}, ${b.start.y})`);return E*(b.end.y-b.start.y)+(b.end.x-b.start.x+1)}},4634:(p,h)=>{function b(E,I,D){if(I===E.length-1)return E[I].getTrimmedLength();const A=!E[I].hasContent(D-1)&&1===E[I].getWidth(D-1),P=2===E[I+1].getWidth(0);return A&&P?D-1:D}Object.defineProperty(h,"__esModule",{value:!0}),h.getWrappedLineTrimmedLength=h.reflowSmallerGetNewLineLengths=h.reflowLargerApplyNewLayout=h.reflowLargerCreateNewLayout=h.reflowLargerGetLinesToRemove=void 0,h.reflowLargerGetLinesToRemove=function(E,I,D,A,P){const T=[];for(let y=0;y=y&&A0&&(v>d||0===u[v].getTrimmedLength());v--)W++;W>0&&(T.push(y+u.length-W),T.push(W)),y+=u.length-1}return T},h.reflowLargerCreateNewLayout=function(E,I){const D=[];let A=0,P=I[A],T=0;for(let y=0;yb(E,u,I)).reduce((f,u)=>f+u);let T=0,y=0,l=0;for(;lf&&(T-=f,y++);const u=2===E[y].getWidth(T-1);u&&T--;const d=u?D-1:D;A.push(d),l+=d}return A},h.getWrappedLineTrimmedLength=b},5295:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferSet=void 0;const E=b(9092),I=b(8460),D=b(844);h.BufferSet=class A extends D.Disposable{constructor(T,y){super(),this._optionsService=T,this._bufferService=y,this._onBufferActivate=this.register(new I.EventEmitter),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 E.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new E.Buffer(!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(T){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(T),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(T,y){this._normal.resize(T,y),this._alt.resize(T,y),this.setupTabStops(T)}setupTabStops(T){this._normal.setupTabStops(T),this._alt.setupTabStops(T)}}},511:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.CellData=void 0;const E=b(482),I=b(643),D=b(3734);class A extends D.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new D.ExtendedAttrs,this.combinedData=""}static fromCharData(T){const y=new A;return y.setFromCharData(T),y}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,E.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(T){this.fg=T[I.CHAR_DATA_ATTR_INDEX],this.bg=0;let y=!1;if(T[I.CHAR_DATA_CHAR_INDEX].length>2)y=!0;else if(2===T[I.CHAR_DATA_CHAR_INDEX].length){const l=T[I.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){const f=T[I.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=f&&f<=57343?this.content=1024*(l-55296)+f-56320+65536|T[I.CHAR_DATA_WIDTH_INDEX]<<22:y=!0}else y=!0}else this.content=T[I.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|T[I.CHAR_DATA_WIDTH_INDEX]<<22;y&&(this.combinedData=T[I.CHAR_DATA_CHAR_INDEX],this.content=2097152|T[I.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}h.CellData=A},643:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.WHITESPACE_CELL_CODE=h.WHITESPACE_CELL_WIDTH=h.WHITESPACE_CELL_CHAR=h.NULL_CELL_CODE=h.NULL_CELL_WIDTH=h.NULL_CELL_CHAR=h.CHAR_DATA_CODE_INDEX=h.CHAR_DATA_WIDTH_INDEX=h.CHAR_DATA_CHAR_INDEX=h.CHAR_DATA_ATTR_INDEX=h.DEFAULT_EXT=h.DEFAULT_ATTR=h.DEFAULT_COLOR=void 0,h.DEFAULT_COLOR=0,h.DEFAULT_ATTR=256|h.DEFAULT_COLOR<<9,h.DEFAULT_EXT=0,h.CHAR_DATA_ATTR_INDEX=0,h.CHAR_DATA_CHAR_INDEX=1,h.CHAR_DATA_WIDTH_INDEX=2,h.CHAR_DATA_CODE_INDEX=3,h.NULL_CELL_CHAR="",h.NULL_CELL_WIDTH=1,h.NULL_CELL_CODE=0,h.WHITESPACE_CELL_CHAR=" ",h.WHITESPACE_CELL_WIDTH=1,h.WHITESPACE_CELL_CODE=32},4863:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Marker=void 0;const E=b(8460),I=b(844);class D{constructor(P){this.line=P,this.isDisposed=!1,this._disposables=[],this._id=D._nextId++,this._onDispose=this.register(new E.EventEmitter),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,I.disposeArray)(this._disposables),this._disposables.length=0)}register(P){return this._disposables.push(P),P}}h.Marker=D,D._nextId=1},7116:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_CHARSET=h.CHARSETS=void 0,h.CHARSETS={},h.DEFAULT_CHARSET=h.CHARSETS.B,h.CHARSETS[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"},h.CHARSETS.A={"#":"\xa3"},h.CHARSETS.B=void 0,h.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},h.CHARSETS.C=h.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},h.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},h.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},h.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},h.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},h.CHARSETS.E=h.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},h.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},h.CHARSETS.H=h.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},h.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:(p,h)=>{var b,E,I;Object.defineProperty(h,"__esModule",{value:!0}),h.C1_ESCAPED=h.C1=h.C0=void 0,(I=b=h.C0||(h.C0={})).NUL="\0",I.SOH="\x01",I.STX="\x02",I.ETX="\x03",I.EOT="\x04",I.ENQ="\x05",I.ACK="\x06",I.BEL="\x07",I.BS="\b",I.HT="\t",I.LF="\n",I.VT="\v",I.FF="\f",I.CR="\r",I.SO="\x0e",I.SI="\x0f",I.DLE="\x10",I.DC1="\x11",I.DC2="\x12",I.DC3="\x13",I.DC4="\x14",I.NAK="\x15",I.SYN="\x16",I.ETB="\x17",I.CAN="\x18",I.EM="\x19",I.SUB="\x1a",I.ESC="\x1b",I.FS="\x1c",I.GS="\x1d",I.RS="\x1e",I.US="\x1f",I.SP=" ",I.DEL="\x7f",(E=h.C1||(h.C1={})).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",(h.C1_ESCAPED||(h.C1_ESCAPED={})).ST=`${b.ESC}\\`},7399:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.evaluateKeyboardEvent=void 0;const E=b(2584),I={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:["'",'"']};h.evaluateKeyboardEvent=function(D,A,P,T){const y={type:0,cancel:!1,key:void 0},l=(D.shiftKey?1:0)|(D.altKey?2:0)|(D.ctrlKey?4:0)|(D.metaKey?8:0);switch(D.keyCode){case 0:"UIKeyInputUpArrow"===D.key?y.key=A?E.C0.ESC+"OA":E.C0.ESC+"[A":"UIKeyInputLeftArrow"===D.key?y.key=A?E.C0.ESC+"OD":E.C0.ESC+"[D":"UIKeyInputRightArrow"===D.key?y.key=A?E.C0.ESC+"OC":E.C0.ESC+"[C":"UIKeyInputDownArrow"===D.key&&(y.key=A?E.C0.ESC+"OB":E.C0.ESC+"[B");break;case 8:if(D.altKey){y.key=E.C0.ESC+E.C0.DEL;break}y.key=E.C0.DEL;break;case 9:if(D.shiftKey){y.key=E.C0.ESC+"[Z";break}y.key=E.C0.HT,y.cancel=!0;break;case 13:y.key=D.altKey?E.C0.ESC+E.C0.CR:E.C0.CR,y.cancel=!0;break;case 27:y.key=E.C0.ESC,D.altKey&&(y.key=E.C0.ESC+E.C0.ESC),y.cancel=!0;break;case 37:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"D",y.key===E.C0.ESC+"[1;3D"&&(y.key=E.C0.ESC+(P?"b":"[1;5D"))):y.key=A?E.C0.ESC+"OD":E.C0.ESC+"[D";break;case 39:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"C",y.key===E.C0.ESC+"[1;3C"&&(y.key=E.C0.ESC+(P?"f":"[1;5C"))):y.key=A?E.C0.ESC+"OC":E.C0.ESC+"[C";break;case 38:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"A",P||y.key!==E.C0.ESC+"[1;3A"||(y.key=E.C0.ESC+"[1;5A")):y.key=A?E.C0.ESC+"OA":E.C0.ESC+"[A";break;case 40:if(D.metaKey)break;l?(y.key=E.C0.ESC+"[1;"+(l+1)+"B",P||y.key!==E.C0.ESC+"[1;3B"||(y.key=E.C0.ESC+"[1;5B")):y.key=A?E.C0.ESC+"OB":E.C0.ESC+"[B";break;case 45:D.shiftKey||D.ctrlKey||(y.key=E.C0.ESC+"[2~");break;case 46:y.key=l?E.C0.ESC+"[3;"+(l+1)+"~":E.C0.ESC+"[3~";break;case 36:y.key=l?E.C0.ESC+"[1;"+(l+1)+"H":A?E.C0.ESC+"OH":E.C0.ESC+"[H";break;case 35:y.key=l?E.C0.ESC+"[1;"+(l+1)+"F":A?E.C0.ESC+"OF":E.C0.ESC+"[F";break;case 33:D.shiftKey?y.type=2:y.key=D.ctrlKey?E.C0.ESC+"[5;"+(l+1)+"~":E.C0.ESC+"[5~";break;case 34:D.shiftKey?y.type=3:y.key=D.ctrlKey?E.C0.ESC+"[6;"+(l+1)+"~":E.C0.ESC+"[6~";break;case 112:y.key=l?E.C0.ESC+"[1;"+(l+1)+"P":E.C0.ESC+"OP";break;case 113:y.key=l?E.C0.ESC+"[1;"+(l+1)+"Q":E.C0.ESC+"OQ";break;case 114:y.key=l?E.C0.ESC+"[1;"+(l+1)+"R":E.C0.ESC+"OR";break;case 115:y.key=l?E.C0.ESC+"[1;"+(l+1)+"S":E.C0.ESC+"OS";break;case 116:y.key=l?E.C0.ESC+"[15;"+(l+1)+"~":E.C0.ESC+"[15~";break;case 117:y.key=l?E.C0.ESC+"[17;"+(l+1)+"~":E.C0.ESC+"[17~";break;case 118:y.key=l?E.C0.ESC+"[18;"+(l+1)+"~":E.C0.ESC+"[18~";break;case 119:y.key=l?E.C0.ESC+"[19;"+(l+1)+"~":E.C0.ESC+"[19~";break;case 120:y.key=l?E.C0.ESC+"[20;"+(l+1)+"~":E.C0.ESC+"[20~";break;case 121:y.key=l?E.C0.ESC+"[21;"+(l+1)+"~":E.C0.ESC+"[21~";break;case 122:y.key=l?E.C0.ESC+"[23;"+(l+1)+"~":E.C0.ESC+"[23~";break;case 123:y.key=l?E.C0.ESC+"[24;"+(l+1)+"~":E.C0.ESC+"[24~";break;default:if(!D.ctrlKey||D.shiftKey||D.altKey||D.metaKey)if(P&&!T||!D.altKey||D.metaKey)!P||D.altKey||D.ctrlKey||D.shiftKey||!D.metaKey?D.key&&!D.ctrlKey&&!D.altKey&&!D.metaKey&&D.keyCode>=48&&1===D.key.length?y.key=D.key:D.key&&D.ctrlKey&&("_"===D.key&&(y.key=E.C0.US),"@"===D.key&&(y.key=E.C0.NUL)):65===D.keyCode&&(y.type=1);else{const f=I[D.keyCode],u=null==f?void 0:f[D.shiftKey?1:0];if(u)y.key=E.C0.ESC+u;else if(D.keyCode>=65&&D.keyCode<=90){let C=String.fromCharCode(D.ctrlKey?D.keyCode-64:D.keyCode+32);D.shiftKey&&(C=C.toUpperCase()),y.key=E.C0.ESC+C}else if(32===D.keyCode)y.key=E.C0.ESC+(D.ctrlKey?E.C0.NUL:" ");else if("Dead"===D.key&&D.code.startsWith("Key")){let d=D.code.slice(3,4);D.shiftKey||(d=d.toLowerCase()),y.key=E.C0.ESC+d,y.cancel=!0}}else D.keyCode>=65&&D.keyCode<=90?y.key=String.fromCharCode(D.keyCode-64):32===D.keyCode?y.key=E.C0.NUL:D.keyCode>=51&&D.keyCode<=55?y.key=String.fromCharCode(D.keyCode-51+27):56===D.keyCode?y.key=E.C0.DEL:219===D.keyCode?y.key=E.C0.ESC:220===D.keyCode?y.key=E.C0.FS:221===D.keyCode&&(y.key=E.C0.GS)}return y}},482:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Utf8ToUtf32=h.StringToUtf32=h.utf32ToString=h.stringFromCodePoint=void 0,h.stringFromCodePoint=function(b){return b>65535?(b-=65536,String.fromCharCode(55296+(b>>10))+String.fromCharCode(b%1024+56320)):String.fromCharCode(b)},h.utf32ToString=function(b,E=0,I=b.length){let D="";for(let A=E;A65535?(P-=65536,D+=String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):D+=String.fromCharCode(P)}return D},h.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(b,E){const I=b.length;if(!I)return 0;let D=0,A=0;if(this._interim){const P=b.charCodeAt(A++);56320<=P&&P<=57343?E[D++]=1024*(this._interim-55296)+P-56320+65536:(E[D++]=this._interim,E[D++]=P),this._interim=0}for(let P=A;P=I)return this._interim=T,D;const y=b.charCodeAt(P);56320<=y&&y<=57343?E[D++]=1024*(T-55296)+y-56320+65536:(E[D++]=T,E[D++]=y)}else 65279!==T&&(E[D++]=T)}return D}},h.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(b,E){const I=b.length;if(!I)return 0;let D,A,P,T,y=0,l=0,f=0;if(this.interim[0]){let C=!1,R=this.interim[0];R&=192==(224&R)?31:224==(240&R)?15:7;let U,W=0;for(;(U=63&this.interim[++W])&&W<4;)R<<=6,R|=U;const v=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,w=v-W;for(;f=I)return 0;if(U=b[f++],128!=(192&U)){f--,C=!0;break}this.interim[W++]=U,R<<=6,R|=63&U}C||(2===v?R<128?f--:E[y++]=R:3===v?R<2048||R>=55296&&R<=57343||65279===R||(E[y++]=R):R<65536||R>1114111||(E[y++]=R)),this.interim.fill(0)}const u=I-4;let d=f;for(;d=I)return this.interim[0]=D,y;if(A=b[d++],128!=(192&A)){d--;continue}if(l=(31&D)<<6|63&A,l<128){d--;continue}E[y++]=l}else if(224==(240&D)){if(d>=I)return this.interim[0]=D,y;if(A=b[d++],128!=(192&A)){d--;continue}if(d>=I)return this.interim[0]=D,this.interim[1]=A,y;if(P=b[d++],128!=(192&P)){d--;continue}if(l=(15&D)<<12|(63&A)<<6|63&P,l<2048||l>=55296&&l<=57343||65279===l)continue;E[y++]=l}else if(240==(248&D)){if(d>=I)return this.interim[0]=D,y;if(A=b[d++],128!=(192&A)){d--;continue}if(d>=I)return this.interim[0]=D,this.interim[1]=A,y;if(P=b[d++],128!=(192&P)){d--;continue}if(d>=I)return this.interim[0]=D,this.interim[1]=A,this.interim[2]=P,y;if(T=b[d++],128!=(192&T)){d--;continue}if(l=(7&D)<<18|(63&A)<<12|(63&P)<<6|63&T,l<65536||l>1114111)continue;E[y++]=l}}return y}}},225:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeV6=void 0;const b=[[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]],E=[[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]];let I;h.UnicodeV6=class{constructor(){if(this.version="6",!I){I=new Uint8Array(65536),I.fill(1),I[0]=0,I.fill(0,1,32),I.fill(0,127,160),I.fill(2,4352,4448),I[9001]=2,I[9002]=2,I.fill(2,11904,42192),I[12351]=1,I.fill(2,44032,55204),I.fill(2,63744,64256),I.fill(2,65040,65050),I.fill(2,65072,65136),I.fill(2,65280,65377),I.fill(2,65504,65511);for(let D=0;DP[l][1])return!1;for(;l>=y;)if(T=y+l>>1,A>P[T][1])y=T+1;else{if(!(A=131072&&D<=196605||D>=196608&&D<=262141?2:1}}},5981:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.WriteBuffer=void 0;const E=b(8460),I=b(844);h.WriteBuffer=class D extends I.Disposable{constructor(P){super(),this._action=P,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new E.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(P,T){if(void 0!==T&&this._syncCalls>T)return void(this._syncCalls=0);if(this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let y;for(this._isSyncWriting=!0;y=this._writeBuffer.shift();){this._action(y);const l=this._callbacks.shift();l&&l()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(P,T){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(T),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=P.length,this._writeBuffer.push(P),this._callbacks.push(T)}_innerWrite(P=0,T=!0){const y=P||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const l=this._writeBuffer[this._bufferOffset],f=this._action(l,T);if(f){const d=C=>Date.now()-y>=12?setTimeout(()=>this._innerWrite(0,C)):this._innerWrite(y,C);return void f.catch(C=>(queueMicrotask(()=>{throw C}),Promise.resolve(!1))).then(d)}const u=this._callbacks[this._bufferOffset];if(u&&u(),this._bufferOffset++,this._pendingData-=l.length,Date.now()-y>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(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()}}},5941:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.toRgbString=h.parseColor=void 0;const b=/^([\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})$/,E=/^[\da-f]+$/;function I(D,A){const P=D.toString(16),T=P.length<2?"0"+P:P;switch(A){case 4:return P[0];case 8:return T;case 12:return(T+T).slice(0,3);default:return T+T}}h.parseColor=function(D){if(!D)return;let A=D.toLowerCase();if(0===A.indexOf("rgb:")){A=A.slice(4);const P=b.exec(A);if(P){const T=P[1]?15:P[4]?255:P[7]?4095:65535;return[Math.round(parseInt(P[1]||P[4]||P[7]||P[10],16)/T*255),Math.round(parseInt(P[2]||P[5]||P[8]||P[11],16)/T*255),Math.round(parseInt(P[3]||P[6]||P[9]||P[12],16)/T*255)]}}else if(0===A.indexOf("#")&&(A=A.slice(1),E.exec(A)&&[3,6,9,12].includes(A.length))){const P=A.length/3,T=[0,0,0];for(let y=0;y<3;++y){const l=parseInt(A.slice(P*y,P*y+P),16);T[y]=1===P?l<<4:2===P?l:3===P?l>>4:l>>8}return T}},h.toRgbString=function(D,A=16){const[P,T,y]=D;return`rgb:${I(P,A)}/${I(T,A)}/${I(y,A)}`}},5770:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PAYLOAD_LIMIT=void 0,h.PAYLOAD_LIMIT=1e7},6351:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DcsHandler=h.DcsParser=void 0;const E=b(482),I=b(8742),D=b(5770),A=[];h.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=A,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=A}registerHandler(T,y){void 0===this._handlers[T]&&(this._handlers[T]=[]);const l=this._handlers[T];return l.push(y),{dispose:()=>{const f=l.indexOf(y);-1!==f&&l.splice(f,1)}}}clearHandler(T){this._handlers[T]&&delete this._handlers[T]}setHandlerFallback(T){this._handlerFb=T}reset(){if(this._active.length)for(let T=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;T>=0;--T)this._active[T].unhook(!1);this._stack.paused=!1,this._active=A,this._ident=0}hook(T,y){if(this.reset(),this._ident=T,this._active=this._handlers[T]||A,this._active.length)for(let l=this._active.length-1;l>=0;l--)this._active[l].hook(y);else this._handlerFb(this._ident,"HOOK",y)}put(T,y,l){if(this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].put(T,y,l);else this._handlerFb(this._ident,"PUT",(0,E.utf32ToString)(T,y,l))}unhook(T,y=!0){if(this._active.length){let l=!1,f=this._active.length-1,u=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,l=y,u=this._stack.fallThrough,this._stack.paused=!1),!u&&!1===l){for(;f>=0&&(l=this._active[f].unhook(T),!0!==l);f--)if(l instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,l;f--}for(;f>=0;f--)if(l=this._active[f].unhook(!1),l instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,l}else this._handlerFb(this._ident,"UNHOOK",T);this._active=A,this._ident=0}};const P=new I.Params;P.addParam(0),h.DcsHandler=class{constructor(T){this._handler=T,this._data="",this._params=P,this._hitLimit=!1}hook(T){this._params=T.length>1||T.params[0]?T.clone():P,this._data="",this._hitLimit=!1}put(T,y,l){this._hitLimit||(this._data+=(0,E.utf32ToString)(T,y,l),this._data.length>D.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(T){let y=!1;if(this._hitLimit)y=!1;else if(T&&(y=this._handler(this._data,this._params),y instanceof Promise))return y.then(l=>(this._params=P,this._data="",this._hitLimit=!1,l));return this._params=P,this._data="",this._hitLimit=!1,y}}},2015:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.EscapeSequenceParser=h.VT500_TRANSITION_TABLE=h.TransitionTable=void 0;const E=b(844),I=b(8742),D=b(6242),A=b(6351);class P{constructor(f){this.table=new Uint8Array(f)}setDefault(f,u){this.table.fill(f<<4|u)}add(f,u,d,C){this.table[u<<8|f]=d<<4|C}addMany(f,u,d,C){for(let R=0;Rv),u=(W,v)=>f.slice(W,v),d=u(32,127),C=u(0,24);C.push(25),C.push.apply(C,u(28,32));const R=u(0,14);let U;for(U in l.setDefault(1,0),l.addMany(d,0,2,0),R)l.addMany([24,26,153,154],U,3,0),l.addMany(u(128,144),U,3,0),l.addMany(u(144,152),U,3,0),l.add(156,U,0,0),l.add(27,U,11,1),l.add(157,U,4,8),l.addMany([152,158,159],U,0,7),l.add(155,U,11,3),l.add(144,U,11,9);return l.addMany(C,0,3,0),l.addMany(C,1,3,1),l.add(127,1,0,1),l.addMany(C,8,0,8),l.addMany(C,3,3,3),l.add(127,3,0,3),l.addMany(C,4,3,4),l.add(127,4,0,4),l.addMany(C,6,3,6),l.addMany(C,5,3,5),l.add(127,5,0,5),l.addMany(C,2,3,2),l.add(127,2,0,2),l.add(93,1,4,8),l.addMany(d,8,5,8),l.add(127,8,5,8),l.addMany([156,27,24,26,7],8,6,0),l.addMany(u(28,32),8,0,8),l.addMany([88,94,95],1,0,7),l.addMany(d,7,0,7),l.addMany(C,7,0,7),l.add(156,7,0,0),l.add(127,7,0,7),l.add(91,1,11,3),l.addMany(u(64,127),3,7,0),l.addMany(u(48,60),3,8,4),l.addMany([60,61,62,63],3,9,4),l.addMany(u(48,60),4,8,4),l.addMany(u(64,127),4,7,0),l.addMany([60,61,62,63],4,0,6),l.addMany(u(32,64),6,0,6),l.add(127,6,0,6),l.addMany(u(64,127),6,0,0),l.addMany(u(32,48),3,9,5),l.addMany(u(32,48),5,9,5),l.addMany(u(48,64),5,0,6),l.addMany(u(64,127),5,7,0),l.addMany(u(32,48),4,9,5),l.addMany(u(32,48),1,9,2),l.addMany(u(32,48),2,9,2),l.addMany(u(48,127),2,10,0),l.addMany(u(48,80),1,10,0),l.addMany(u(81,88),1,10,0),l.addMany([89,90,92],1,10,0),l.addMany(u(96,127),1,10,0),l.add(80,1,11,9),l.addMany(C,9,0,9),l.add(127,9,0,9),l.addMany(u(28,32),9,0,9),l.addMany(u(32,48),9,9,12),l.addMany(u(48,60),9,8,10),l.addMany([60,61,62,63],9,9,10),l.addMany(C,11,0,11),l.addMany(u(32,128),11,0,11),l.addMany(u(28,32),11,0,11),l.addMany(C,10,0,10),l.add(127,10,0,10),l.addMany(u(28,32),10,0,10),l.addMany(u(48,60),10,8,10),l.addMany([60,61,62,63],10,0,11),l.addMany(u(32,48),10,9,12),l.addMany(C,12,0,12),l.add(127,12,0,12),l.addMany(u(28,32),12,0,12),l.addMany(u(32,48),12,9,12),l.addMany(u(48,64),12,0,11),l.addMany(u(64,127),12,12,13),l.addMany(u(64,127),10,12,13),l.addMany(u(64,127),9,12,13),l.addMany(C,13,13,13),l.addMany(d,13,13,13),l.add(127,13,0,13),l.addMany([27,156,24,26],13,14,0),l.add(T,0,2,0),l.add(T,8,5,8),l.add(T,6,0,6),l.add(T,11,0,11),l.add(T,13,13,13),l}(),h.EscapeSequenceParser=class y extends E.Disposable{constructor(f=h.VT500_TRANSITION_TABLE){super(),this._transitions=f,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new I.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(u,d,C)=>{},this._executeHandlerFb=u=>{},this._csiHandlerFb=(u,d)=>{},this._escHandlerFb=u=>{},this._errorHandlerFb=u=>u,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,E.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new D.OscParser),this._dcsParser=this.register(new A.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(f,u=[64,126]){let d=0;if(f.prefix){if(f.prefix.length>1)throw new Error("only one byte as prefix supported");if(d=f.prefix.charCodeAt(0),d&&60>d||d>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(f.intermediates){if(f.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let R=0;RU||U>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");d<<=8,d|=U}}if(1!==f.final.length)throw new Error("final must be a single byte");const C=f.final.charCodeAt(0);if(u[0]>C||C>u[1])throw new Error(`final must be in range ${u[0]} .. ${u[1]}`);return d<<=8,d|=C,d}identToString(f){const u=[];for(;f;)u.push(String.fromCharCode(255&f)),f>>=8;return u.reverse().join("")}setPrintHandler(f){this._printHandler=f}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(f,u){const d=this._identifier(f,[48,126]);void 0===this._escHandlers[d]&&(this._escHandlers[d]=[]);const C=this._escHandlers[d];return C.push(u),{dispose:()=>{const R=C.indexOf(u);-1!==R&&C.splice(R,1)}}}clearEscHandler(f){this._escHandlers[this._identifier(f,[48,126])]&&delete this._escHandlers[this._identifier(f,[48,126])]}setEscHandlerFallback(f){this._escHandlerFb=f}setExecuteHandler(f,u){this._executeHandlers[f.charCodeAt(0)]=u}clearExecuteHandler(f){this._executeHandlers[f.charCodeAt(0)]&&delete this._executeHandlers[f.charCodeAt(0)]}setExecuteHandlerFallback(f){this._executeHandlerFb=f}registerCsiHandler(f,u){const d=this._identifier(f);void 0===this._csiHandlers[d]&&(this._csiHandlers[d]=[]);const C=this._csiHandlers[d];return C.push(u),{dispose:()=>{const R=C.indexOf(u);-1!==R&&C.splice(R,1)}}}clearCsiHandler(f){this._csiHandlers[this._identifier(f)]&&delete this._csiHandlers[this._identifier(f)]}setCsiHandlerFallback(f){this._csiHandlerFb=f}registerDcsHandler(f,u){return this._dcsParser.registerHandler(this._identifier(f),u)}clearDcsHandler(f){this._dcsParser.clearHandler(this._identifier(f))}setDcsHandlerFallback(f){this._dcsParser.setHandlerFallback(f)}registerOscHandler(f,u){return this._oscParser.registerHandler(f,u)}clearOscHandler(f){this._oscParser.clearHandler(f)}setOscHandlerFallback(f){this._oscParser.setHandlerFallback(f)}setErrorHandler(f){this._errorHandler=f}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.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(f,u,d,C,R){this._parseStack.state=f,this._parseStack.handlers=u,this._parseStack.handlerPos=d,this._parseStack.transition=C,this._parseStack.chunkPos=R}parse(f,u,d){let C,R=0,U=0,W=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,W=this._parseStack.chunkPos+1;else{if(void 0===d||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const v=this._parseStack.handlers;let w=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===d&&w>-1)for(;w>=0&&(C=v[w](this._params),!0!==C);w--)if(C instanceof Promise)return this._parseStack.handlerPos=w,C;this._parseStack.handlers=[];break;case 4:if(!1===d&&w>-1)for(;w>=0&&(C=v[w](),!0!==C);w--)if(C instanceof Promise)return this._parseStack.handlerPos=w,C;this._parseStack.handlers=[];break;case 6:if(R=f[this._parseStack.chunkPos],C=this._dcsParser.unhook(24!==R&&26!==R,d),C)return C;27===R&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(R=f[this._parseStack.chunkPos],C=this._oscParser.end(24!==R&&26!==R,d),C)return C;27===R&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,W=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let v=W;v>4){case 2:for(let ne=v+1;;++ne){if(ne>=u||(R=f[ne])<32||R>126&&R=u||(R=f[ne])<32||R>126&&R=u||(R=f[ne])<32||R>126&&R=u||(R=f[ne])<32||R>126&&R=0&&(C=w[F](this._params),!0!==C);F--)if(C instanceof Promise)return this._preserveStack(3,w,F,U,v),C;F<0&&this._csiHandlerFb(this._collect<<8|R,this._params),this.precedingCodepoint=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(++v47&&R<60);v--;break;case 9:this._collect<<=8,this._collect|=R;break;case 10:const Z=this._escHandlers[this._collect<<8|R];let Q=Z?Z.length-1:-1;for(;Q>=0&&(C=Z[Q](),!0!==C);Q--)if(C instanceof Promise)return this._preserveStack(4,Z,Q,U,v),C;Q<0&&this._escHandlerFb(this._collect<<8|R),this.precedingCodepoint=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 ne=v+1;;++ne)if(ne>=u||24===(R=f[ne])||26===R||27===R||R>127&&R=u||(R=f[ne])<32||R>127&&R{Object.defineProperty(h,"__esModule",{value:!0}),h.OscHandler=h.OscParser=void 0;const E=b(5770),I=b(482),D=[];h.OscParser=class{constructor(){this._state=0,this._active=D,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(A,P){void 0===this._handlers[A]&&(this._handlers[A]=[]);const T=this._handlers[A];return T.push(P),{dispose:()=>{const y=T.indexOf(P);-1!==y&&T.splice(y,1)}}}clearHandler(A){this._handlers[A]&&delete this._handlers[A]}setHandlerFallback(A){this._handlerFb=A}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=D}reset(){if(2===this._state)for(let A=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;A>=0;--A)this._active[A].end(!1);this._stack.paused=!1,this._active=D,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||D,this._active.length)for(let A=this._active.length-1;A>=0;A--)this._active[A].start();else this._handlerFb(this._id,"START")}_put(A,P,T){if(this._active.length)for(let y=this._active.length-1;y>=0;y--)this._active[y].put(A,P,T);else this._handlerFb(this._id,"PUT",(0,I.utf32ToString)(A,P,T))}start(){this.reset(),this._state=1}put(A,P,T){if(3!==this._state){if(1===this._state)for(;P0&&this._put(A,P,T)}}end(A,P=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let T=!1,y=this._active.length-1,l=!1;if(this._stack.paused&&(y=this._stack.loopPosition-1,T=P,l=this._stack.fallThrough,this._stack.paused=!1),!l&&!1===T){for(;y>=0&&(T=this._active[y].end(A),!0!==T);y--)if(T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!1,T;y--}for(;y>=0;y--)if(T=this._active[y].end(!1),T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!0,T}else this._handlerFb(this._id,"END",A);this._active=D,this._id=-1,this._state=0}}},h.OscHandler=class{constructor(A){this._handler=A,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(A,P,T){this._hitLimit||(this._data+=(0,I.utf32ToString)(A,P,T),this._data.length>E.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(A){let P=!1;if(this._hitLimit)P=!1;else if(A&&(P=this._handler(this._data),P instanceof Promise))return P.then(T=>(this._data="",this._hitLimit=!1,T));return this._data="",this._hitLimit=!1,P}}},8742:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.Params=void 0;const b=2147483647;class E{constructor(D=32,A=32){if(this.maxLength=D,this.maxSubParamsLength=A,A>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(D),this.length=0,this._subParams=new Int32Array(A),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(D),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(D){const A=new E;if(!D.length)return A;for(let P=Array.isArray(D[0])?1:0;P>8,T=255&this._subParamsIdx[A];T-P>0&&D.push(Array.prototype.slice.call(this._subParams,P,T))}return D}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(D){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=D>b?b:D}}addSubParam(D){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=D>b?b:D,this._subParamsIdx[this.length-1]++}}hasSubParams(D){return(255&this._subParamsIdx[D])-(this._subParamsIdx[D]>>8)>0}getSubParams(D){const A=this._subParamsIdx[D]>>8,P=255&this._subParamsIdx[D];return P-A>0?this._subParams.subarray(A,P):null}getSubParamsAll(){const D={};for(let A=0;A>8,T=255&this._subParamsIdx[A];T-P>0&&(D[A]=this._subParams.slice(P,T))}return D}addDigit(D){let A;if(this._rejectDigits||!(A=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const P=this._digitIsSub?this._subParams:this.params,T=P[A-1];P[A-1]=~T?Math.min(10*T+D,b):D}}h.Params=E},5741:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.AddonManager=void 0,h.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let b=this._addons.length-1;b>=0;b--)this._addons[b].instance.dispose()}loadAddon(b,E){const I={instance:E,dispose:E.dispose,isDisposed:!1};this._addons.push(I),E.dispose=()=>this._wrappedAddonDispose(I),E.activate(b)}_wrappedAddonDispose(b){if(b.isDisposed)return;let E=-1;for(let I=0;I{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferApiView=void 0;const E=b(3785),I=b(511);h.BufferApiView=class{constructor(D,A){this._buffer=D,this.type=A}init(D){return this._buffer=D,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(D){const A=this._buffer.lines.get(D);if(A)return new E.BufferLineApiView(A)}getNullCell(){return new I.CellData}}},3785:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferLineApiView=void 0;const E=b(511);h.BufferLineApiView=class{constructor(I){this._line=I}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(I,D){if(!(I<0||I>=this._line.length))return D?(this._line.loadCell(I,D),D):this._line.loadCell(I,new E.CellData)}translateToString(I,D,A){return this._line.translateToString(I,D,A)}}},8285:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.BufferNamespaceApi=void 0;const E=b(8771),I=b(8460);h.BufferNamespaceApi=class{constructor(D){this._core=D,this._onBufferChange=new I.EventEmitter,this.onBufferChange=this._onBufferChange.event,this._normal=new E.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new E.BufferApiView(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)}}},7975:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.ParserApi=void 0,h.ParserApi=class{constructor(b){this._core=b}registerCsiHandler(b,E){return this._core.registerCsiHandler(b,I=>E(I.toArray()))}addCsiHandler(b,E){return this.registerCsiHandler(b,E)}registerDcsHandler(b,E){return this._core.registerDcsHandler(b,(I,D)=>E(I,D.toArray()))}addDcsHandler(b,E){return this.registerDcsHandler(b,E)}registerEscHandler(b,E){return this._core.registerEscHandler(b,E)}addEscHandler(b,E){return this.registerEscHandler(b,E)}registerOscHandler(b,E){return this._core.registerOscHandler(b,E)}addOscHandler(b,E){return this.registerOscHandler(b,E)}}},7090:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeApi=void 0,h.UnicodeApi=class{constructor(b){this._core=b}register(b){this._core.unicodeService.register(b)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(b){this._core.unicodeService.activeVersion=b}}},744:function(p,h,b){var E=this&&this.__decorate||function(l,f,u,d){var C,R=arguments.length,U=R<3?f:null===d?d=Object.getOwnPropertyDescriptor(f,u):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(l,f,u,d);else for(var W=l.length-1;W>=0;W--)(C=l[W])&&(U=(R<3?C(U):R>3?C(f,u,U):C(f,u))||U);return R>3&&U&&Object.defineProperty(f,u,U),U},I=this&&this.__param||function(l,f){return function(u,d){f(u,d,l)}};Object.defineProperty(h,"__esModule",{value:!0}),h.BufferService=h.MINIMUM_ROWS=h.MINIMUM_COLS=void 0;const D=b(2585),A=b(5295),P=b(8460),T=b(844);h.MINIMUM_COLS=2,h.MINIMUM_ROWS=1;let y=class extends T.Disposable{constructor(l){super(),this.isUserScrolling=!1,this._onResize=this.register(new P.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new P.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(l.rawOptions.cols||0,h.MINIMUM_COLS),this.rows=Math.max(l.rawOptions.rows||0,h.MINIMUM_ROWS),this.buffers=this.register(new A.BufferSet(l,this))}get buffer(){return this.buffers.active}resize(l,f){this.cols=l,this.rows=f,this.buffers.resize(l,f),this._onResize.fire({cols:l,rows:f})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(l,f=!1){const u=this.buffer;let d;d=this._cachedBlankLine,d&&d.length===this.cols&&d.getFg(0)===l.fg&&d.getBg(0)===l.bg||(d=u.getBlankLine(l,f),this._cachedBlankLine=d),d.isWrapped=f;const C=u.ybase+u.scrollTop,R=u.ybase+u.scrollBottom;if(0===u.scrollTop){const U=u.lines.isFull;R===u.lines.length-1?U?u.lines.recycle().copyFrom(d):u.lines.push(d.clone()):u.lines.splice(R+1,0,d.clone()),U?this.isUserScrolling&&(u.ydisp=Math.max(u.ydisp-1,0)):(u.ybase++,this.isUserScrolling||u.ydisp++)}else u.lines.shiftElements(C+1,R-C+1-1,-1),u.lines.set(R,d.clone());this.isUserScrolling||(u.ydisp=u.ybase),this._onScroll.fire(u.ydisp)}scrollLines(l,f,u){const d=this.buffer;if(l<0){if(0===d.ydisp)return;this.isUserScrolling=!0}else l+d.ydisp>=d.ybase&&(this.isUserScrolling=!1);const C=d.ydisp;d.ydisp=Math.max(Math.min(d.ydisp+l,d.ybase),0),C!==d.ydisp&&(f||this._onScroll.fire(d.ydisp))}scrollPages(l){this.scrollLines(l*(this.rows-1))}scrollToTop(){this.scrollLines(-this.buffer.ydisp)}scrollToBottom(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}scrollToLine(l){const f=l-this.buffer.ydisp;0!==f&&this.scrollLines(f)}};y=E([I(0,D.IOptionsService)],y),h.BufferService=y},7994:(p,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.CharsetService=void 0,h.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(b){this.glevel=b,this.charset=this._charsets[b]}setgCharset(b,E){this._charsets[b]=E,this.glevel===b&&(this.charset=E)}}},1753:function(p,h,b){var E=this&&this.__decorate||function(d,C,R,U){var W,v=arguments.length,w=v<3?C:null===U?U=Object.getOwnPropertyDescriptor(C,R):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(d,C,R,U);else for(var F=d.length-1;F>=0;F--)(W=d[F])&&(w=(v<3?W(w):v>3?W(C,R,w):W(C,R))||w);return v>3&&w&&Object.defineProperty(C,R,w),w},I=this&&this.__param||function(d,C){return function(R,U){C(R,U,d)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CoreMouseService=void 0;const D=b(2585),A=b(8460),P=b(844),T={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:d=>4!==d.button&&1===d.action&&(d.ctrl=!1,d.alt=!1,d.shift=!1,!0)},VT200:{events:19,restrict:d=>32!==d.action},DRAG:{events:23,restrict:d=>32!==d.action||3!==d.button},ANY:{events:31,restrict:d=>!0}};function y(d,C){let R=(d.ctrl?16:0)|(d.shift?4:0)|(d.alt?8:0);return 4===d.button?(R|=64,R|=d.action):(R|=3&d.button,4&d.button&&(R|=64),8&d.button&&(R|=128),32===d.action?R|=32:0!==d.action||C||(R|=3)),R}const l=String.fromCharCode,f={DEFAULT:d=>{const C=[y(d,!1)+32,d.col+32,d.row+32];return C[0]>255||C[1]>255||C[2]>255?"":`\x1b[M${l(C[0])}${l(C[1])}${l(C[2])}`},SGR:d=>{const C=0===d.action&&4!==d.button?"m":"M";return`\x1b[<${y(d,!0)};${d.col};${d.row}${C}`},SGR_PIXELS:d=>{const C=0===d.action&&4!==d.button?"m":"M";return`\x1b[<${y(d,!0)};${d.x};${d.y}${C}`}};let u=class extends P.Disposable{constructor(d,C){super(),this._bufferService=d,this._coreService=C,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new A.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const R of Object.keys(T))this.addProtocol(R,T[R]);for(const R of Object.keys(f))this.addEncoding(R,f[R]);this.reset()}addProtocol(d,C){this._protocols[d]=C}addEncoding(d,C){this._encodings[d]=C}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(d){if(!this._protocols[d])throw new Error(`unknown protocol "${d}"`);this._activeProtocol=d,this._onProtocolChange.fire(this._protocols[d].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(d){if(!this._encodings[d])throw new Error(`unknown encoding "${d}"`);this._activeEncoding=d}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(d){if(d.col<0||d.col>=this._bufferService.cols||d.row<0||d.row>=this._bufferService.rows||4===d.button&&32===d.action||3===d.button&&32!==d.action||4!==d.button&&(2===d.action||3===d.action)||(d.col++,d.row++,32===d.action&&this._lastEvent&&this._equalEvents(this._lastEvent,d,"SGR_PIXELS"===this._activeEncoding))||!this._protocols[this._activeProtocol].restrict(d))return!1;const C=this._encodings[this._activeEncoding](d);return C&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(C):this._coreService.triggerDataEvent(C,!0)),this._lastEvent=d,!0}explainEvents(d){return{down:!!(1&d),up:!!(2&d),drag:!!(4&d),move:!!(8&d),wheel:!!(16&d)}}_equalEvents(d,C,R){if(R){if(d.x!==C.x||d.y!==C.y)return!1}else if(d.col!==C.col||d.row!==C.row)return!1;return d.button===C.button&&d.action===C.action&&d.ctrl===C.ctrl&&d.alt===C.alt&&d.shift===C.shift}};u=E([I(0,D.IBufferService),I(1,D.ICoreService)],u),h.CoreMouseService=u},6975:function(p,h,b){var E=this&&this.__decorate||function(u,d,C,R){var U,W=arguments.length,v=W<3?d:null===R?R=Object.getOwnPropertyDescriptor(d,C):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)v=Reflect.decorate(u,d,C,R);else for(var w=u.length-1;w>=0;w--)(U=u[w])&&(v=(W<3?U(v):W>3?U(d,C,v):U(d,C))||v);return W>3&&v&&Object.defineProperty(d,C,v),v},I=this&&this.__param||function(u,d){return function(C,R){d(C,R,u)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CoreService=void 0;const D=b(2585),A=b(8460),P=b(1439),T=b(844),y=Object.freeze({insertMode:!1}),l=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let f=class extends T.Disposable{constructor(u,d,C){super(),this._bufferService=u,this._logService=d,this._optionsService=C,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new A.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new A.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new A.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new A.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,P.clone)(y),this.decPrivateModes=(0,P.clone)(l)}reset(){this.modes=(0,P.clone)(y),this.decPrivateModes=(0,P.clone)(l)}triggerDataEvent(u,d=!1){if(this._optionsService.rawOptions.disableStdin)return;const C=this._bufferService.buffer;d&&this._optionsService.rawOptions.scrollOnUserInput&&C.ybase!==C.ydisp&&this._onRequestScrollToBottom.fire(),d&&this._onUserInput.fire(),this._logService.debug(`sending data "${u}"`,()=>u.split("").map(R=>R.charCodeAt(0))),this._onData.fire(u)}triggerBinaryEvent(u){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${u}"`,()=>u.split("").map(d=>d.charCodeAt(0))),this._onBinary.fire(u))}};f=E([I(0,D.IBufferService),I(1,D.ILogService),I(2,D.IOptionsService)],f),h.CoreService=f},9074:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DecorationService=void 0;const E=b(8055),I=b(8460),D=b(844),A=b(6106);let P=0,T=0;h.DecorationService=class y extends D.Disposable{constructor(){super(),this._decorations=new A.SortedList(u=>null==u?void 0:u.marker.line),this._onDecorationRegistered=this.register(new I.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new I.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,D.toDisposable)(()=>{for(const u of this._decorations.values())this._onDecorationRemoved.fire(u);this.reset()}))}get decorations(){return this._decorations.values()}registerDecoration(u){if(u.marker.isDisposed)return;const d=new l(u);if(d){const C=d.marker.onDispose(()=>d.dispose());d.onDispose(()=>{d&&(this._decorations.delete(d)&&this._onDecorationRemoved.fire(d),C.dispose())}),this._decorations.insert(d),this._onDecorationRegistered.fire(d)}return d}reset(){for(const u of this._decorations.values())u.dispose();this._decorations.clear()}*getDecorationsAtCell(u,d,C){var R,U,W;let v=0,w=0;for(const F of this._decorations.getKeyIterator(d))v=null!==(R=F.options.x)&&void 0!==R?R:0,w=v+(null!==(U=F.options.width)&&void 0!==U?U:1),u>=v&&u{var W,v,w;P=null!==(W=U.options.x)&&void 0!==W?W:0,T=P+(null!==(v=U.options.width)&&void 0!==v?v:1),u>=P&&u{Object.defineProperty(h,"__esModule",{value:!0}),h.InstantiationService=h.ServiceCollection=void 0;const E=b(2585),I=b(8343);class D{constructor(...P){this._entries=new Map;for(const[T,y]of P)this.set(T,y)}set(P,T){const y=this._entries.get(P);return this._entries.set(P,T),y}forEach(P){for(const[T,y]of this._entries.entries())P(T,y)}has(P){return this._entries.has(P)}get(P){return this._entries.get(P)}}h.ServiceCollection=D,h.InstantiationService=class{constructor(){this._services=new D,this._services.set(E.IInstantiationService,this)}setService(A,P){this._services.set(A,P)}getService(A){return this._services.get(A)}createInstance(A,...P){const T=(0,I.getServiceDependencies)(A).sort((f,u)=>f.index-u.index),y=[];for(const f of T){const u=this._services.get(f.id);if(!u)throw new Error(`[createInstance] ${A.name} depends on UNKNOWN service ${f.id}.`);y.push(u)}const l=T.length>0?T[0].index:P.length;if(P.length!==l)throw new Error(`[createInstance] First service dependency of ${A.name} at position ${l+1} conflicts with ${P.length} static arguments`);return new A(...P,...y)}}},7866:function(p,h,b){var E=this&&this.__decorate||function(y,l,f,u){var d,C=arguments.length,R=C<3?l:null===u?u=Object.getOwnPropertyDescriptor(l,f):u;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)R=Reflect.decorate(y,l,f,u);else for(var U=y.length-1;U>=0;U--)(d=y[U])&&(R=(C<3?d(R):C>3?d(l,f,R):d(l,f))||R);return C>3&&R&&Object.defineProperty(l,f,R),R},I=this&&this.__param||function(y,l){return function(f,u){l(f,u,y)}};Object.defineProperty(h,"__esModule",{value:!0}),h.LogService=void 0;const D=b(844),A=b(2585),P={debug:A.LogLevelEnum.DEBUG,info:A.LogLevelEnum.INFO,warn:A.LogLevelEnum.WARN,error:A.LogLevelEnum.ERROR,off:A.LogLevelEnum.OFF};let T=class extends D.Disposable{constructor(y){super(),this._optionsService=y,this.logLevel=A.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel()))}_updateLogLevel(){this.logLevel=P[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(y){for(let l=0;l{Object.defineProperty(h,"__esModule",{value:!0}),h.OptionsService=h.DEFAULT_OPTIONS=void 0;const E=b(8460),I=b(6114),D=b(844);h.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:I.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const A=["normal","bold","100","200","300","400","500","600","700","800","900"];h.OptionsService=class P extends D.Disposable{constructor(y){super(),this._onOptionChange=this.register(new E.EventEmitter),this.onOptionChange=this._onOptionChange.event;const l=Object.assign({},h.DEFAULT_OPTIONS);for(const f in y)if(f in l)try{l[f]=this._sanitizeAndValidateOption(f,y[f])}catch(u){console.error(u)}this.rawOptions=l,this.options=Object.assign({},l),this._setupOptions()}onSpecificOptionChange(y,l){return this.onOptionChange(f=>{f===y&&l(this.rawOptions[y])})}onMultipleOptionChange(y,l){return this.onOptionChange(f=>{-1!==y.indexOf(f)&&l()})}_setupOptions(){const y=f=>{if(!(f in h.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);return this.rawOptions[f]},l=(f,u)=>{if(!(f in h.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);u=this._sanitizeAndValidateOption(f,u),this.rawOptions[f]!==u&&(this.rawOptions[f]=u,this._onOptionChange.fire(f))};for(const f in this.rawOptions){const u={get:y.bind(this,f),set:l.bind(this,f)};Object.defineProperty(this.options,f,u)}}_sanitizeAndValidateOption(y,l){switch(y){case"cursorStyle":if(l||(l=h.DEFAULT_OPTIONS[y]),"block"!==(f=l)&&"underline"!==f&&"bar"!==f)throw new Error(`"${l}" is not a valid value for ${y}`);break;case"wordSeparator":l||(l=h.DEFAULT_OPTIONS[y]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof l&&1<=l&&l<=1e3)break;l=A.includes(l)?l:h.DEFAULT_OPTIONS[y];break;case"cursorWidth":l=Math.floor(l);case"lineHeight":case"tabStopWidth":if(l<1)throw new Error(`${y} cannot be less than 1, value: ${l}`);break;case"minimumContrastRatio":l=Math.max(1,Math.min(21,Math.round(10*l)/10));break;case"scrollback":if((l=Math.min(l,4294967295))<0)throw new Error(`${y} cannot be less than 0, value: ${l}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(l<=0)throw new Error(`${y} cannot be less than or equal to 0, value: ${l}`);case"rows":case"cols":if(!l&&0!==l)throw new Error(`${y} must be numeric, value: ${l}`)}var f;return l}}},2660:function(p,h,b){var E=this&&this.__decorate||function(P,T,y,l){var f,u=arguments.length,d=u<3?T:null===l?l=Object.getOwnPropertyDescriptor(T,y):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(P,T,y,l);else for(var C=P.length-1;C>=0;C--)(f=P[C])&&(d=(u<3?f(d):u>3?f(T,y,d):f(T,y))||d);return u>3&&d&&Object.defineProperty(T,y,d),d},I=this&&this.__param||function(P,T){return function(y,l){T(y,l,P)}};Object.defineProperty(h,"__esModule",{value:!0}),h.OscLinkService=void 0;const D=b(2585);let A=class{constructor(P){this._bufferService=P,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(P){const T=this._bufferService.buffer;if(void 0===P.id){const C=T.addMarker(T.ybase+T.y),R={data:P,id:this._nextId++,lines:[C]};return C.onDispose(()=>this._removeMarkerFromLink(R,C)),this._dataByLinkId.set(R.id,R),R.id}const y=P,l=this._getEntryIdKey(y),f=this._entriesWithId.get(l);if(f)return this.addLineToLink(f.id,T.ybase+T.y),f.id;const u=T.addMarker(T.ybase+T.y),d={id:this._nextId++,key:this._getEntryIdKey(y),data:y,lines:[u]};return u.onDispose(()=>this._removeMarkerFromLink(d,u)),this._entriesWithId.set(d.key,d),this._dataByLinkId.set(d.id,d),d.id}addLineToLink(P,T){const y=this._dataByLinkId.get(P);if(y&&y.lines.every(l=>l.line!==T)){const l=this._bufferService.buffer.addMarker(T);y.lines.push(l),l.onDispose(()=>this._removeMarkerFromLink(y,l))}}getLinkData(P){var T;return null===(T=this._dataByLinkId.get(P))||void 0===T?void 0:T.data}_getEntryIdKey(P){return`${P.id};;${P.uri}`}_removeMarkerFromLink(P,T){const y=P.lines.indexOf(T);-1!==y&&(P.lines.splice(y,1),0===P.lines.length&&(void 0!==P.data.id&&this._entriesWithId.delete(P.key),this._dataByLinkId.delete(P.id)))}};A=E([I(0,D.IBufferService)],A),h.OscLinkService=A},8343:(p,h)=>{function b(E,I,D){I.di$target===I?I.di$dependencies.push({id:E,index:D}):(I.di$dependencies=[{id:E,index:D}],I.di$target=I)}Object.defineProperty(h,"__esModule",{value:!0}),h.createDecorator=h.getServiceDependencies=h.serviceRegistry=void 0,h.serviceRegistry=new Map,h.getServiceDependencies=function(E){return E.di$dependencies||[]},h.createDecorator=function(E){if(h.serviceRegistry.has(E))return h.serviceRegistry.get(E);const I=function(D,A,P){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");b(I,D,P)};return I.toString=()=>E,h.serviceRegistry.set(E,I),I}},2585:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.IDecorationService=h.IUnicodeService=h.IOscLinkService=h.IOptionsService=h.ILogService=h.LogLevelEnum=h.IInstantiationService=h.ICharsetService=h.ICoreService=h.ICoreMouseService=h.IBufferService=void 0;const E=b(8343);var I;h.IBufferService=(0,E.createDecorator)("BufferService"),h.ICoreMouseService=(0,E.createDecorator)("CoreMouseService"),h.ICoreService=(0,E.createDecorator)("CoreService"),h.ICharsetService=(0,E.createDecorator)("CharsetService"),h.IInstantiationService=(0,E.createDecorator)("InstantiationService"),(I=h.LogLevelEnum||(h.LogLevelEnum={}))[I.DEBUG=0]="DEBUG",I[I.INFO=1]="INFO",I[I.WARN=2]="WARN",I[I.ERROR=3]="ERROR",I[I.OFF=4]="OFF",h.ILogService=(0,E.createDecorator)("LogService"),h.IOptionsService=(0,E.createDecorator)("OptionsService"),h.IOscLinkService=(0,E.createDecorator)("OscLinkService"),h.IUnicodeService=(0,E.createDecorator)("UnicodeService"),h.IDecorationService=(0,E.createDecorator)("DecorationService")},1480:(p,h,b)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeService=void 0;const E=b(8460),I=b(225);h.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new E.EventEmitter,this.onChange=this._onChange.event;const D=new I.UnicodeV6;this.register(D),this._active=D.version,this._activeProvider=D}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(D){if(!this._providers[D])throw new Error(`unknown Unicode version "${D}"`);this._active=D,this._activeProvider=this._providers[D],this._onChange.fire(D)}register(D){this._providers[D.version]=D}wcwidth(D){return this._activeProvider.wcwidth(D)}getStringCellWidth(D){let A=0;const P=D.length;for(let T=0;T=P)return A+this.wcwidth(y);const l=D.charCodeAt(T);56320<=l&&l<=57343?y=1024*(y-55296)+l-56320+65536:A+=this.wcwidth(l)}A+=this.wcwidth(y)}return A}}}},$={};function _(p){var h=$[p];if(void 0!==h)return h.exports;var b=$[p]={exports:{}};return Fe[p].call(b.exports,b,b.exports,_),b.exports}var j={};return(()=>{var p=j;Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;const h=_(3236),b=_(9042),E=_(7975),I=_(7090),D=_(5741),A=_(8285),P=["cols","rows"];p.Terminal=class{constructor(T){this._core=new h.Terminal(T),this._addonManager=new D.AddonManager,this._publicOptions=Object.assign({},this._core.options);const y=f=>this._core.options[f],l=(f,u)=>{this._checkReadonlyOptions(f),this._core.options[f]=u};for(const f in this._core.options){const u={get:y.bind(this,f),set:l.bind(this,f)};Object.defineProperty(this._publicOptions,f,u)}}_checkReadonlyOptions(T){if(P.includes(T))throw new Error(`Option "${T}" 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 E.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new I.UnicodeApi(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=new A.BufferNamespaceApi(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const T=this._core.coreService.decPrivateModes;let y="none";switch(this._core.coreMouseService.activeProtocol){case"X10":y="x10";break;case"VT200":y="vt200";break;case"DRAG":y="drag";break;case"ANY":y="any"}return{applicationCursorKeysMode:T.applicationCursorKeys,applicationKeypadMode:T.applicationKeypad,bracketedPasteMode:T.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:y,originMode:T.origin,reverseWraparoundMode:T.reverseWraparound,sendFocusMode:T.sendFocus,wraparoundMode:T.wraparound}}get options(){return this._publicOptions}set options(T){for(const y in T)this._publicOptions[y]=T[y]}blur(){this._core.blur()}focus(){this._core.focus()}resize(T,y){this._verifyIntegers(T,y),this._core.resize(T,y)}open(T){this._core.open(T)}attachCustomKeyEventHandler(T){this._core.attachCustomKeyEventHandler(T)}registerLinkProvider(T){return this._core.registerLinkProvider(T)}registerCharacterJoiner(T){return this._checkProposedApi(),this._core.registerCharacterJoiner(T)}deregisterCharacterJoiner(T){this._checkProposedApi(),this._core.deregisterCharacterJoiner(T)}registerMarker(T=0){return this._verifyIntegers(T),this._core.addMarker(T)}registerDecoration(T){var y,l,f;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(y=T.x)&&void 0!==y?y:0,null!==(l=T.width)&&void 0!==l?l:0,null!==(f=T.height)&&void 0!==f?f:0),this._core.registerDecoration(T)}hasSelection(){return this._core.hasSelection()}select(T,y,l){this._verifyIntegers(T,y,l),this._core.select(T,y,l)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(T,y){this._verifyIntegers(T,y),this._core.selectLines(T,y)}dispose(){this._addonManager.dispose(),this._core.dispose()}scrollLines(T){this._verifyIntegers(T),this._core.scrollLines(T)}scrollPages(T){this._verifyIntegers(T),this._core.scrollPages(T)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(T){this._verifyIntegers(T),this._core.scrollToLine(T)}clear(){this._core.clear()}write(T,y){this._core.write(T,y)}writeln(T,y){this._core.write(T),this._core.write("\r\n",y)}paste(T){this._core.paste(T)}refresh(T,y){this._verifyIntegers(T,y),this._core.refresh(T,y)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(T){return this._addonManager.loadAddon(this,T)}static get strings(){return b}_verifyIntegers(...T){for(const y of T)if(y===1/0||isNaN(y)||y%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...T){for(const y of T)if(y&&(y===1/0||isNaN(y)||y%1!=0||y<0))throw new Error("This API only accepts positive integers")}}})(),j})())()},617:(nt,Fe,$)=>{"use strict";$.d(Fe,{vd:()=>gn,Eo:()=>xt,qZ:()=>pt});var _=$(5e3),j=$(4793),p=$(9162),h=$(7579),b=$(9808),E=$(6451),I=$(8306),D=$(4968),A=$(8505),P=$(3099),T=$(5577),y=$(5698),l=$(4004),f=$(4482),u=$(5403),C=$(9300),R=$(2722);const U="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function v(Re,$e,ie,De){const Ce=$e.querySelectorAll(Re);if(Ce.length){const Se=ie.querySelectorAll(Re);for(let We=0;We{De[Ce]=(ie[Ce]||0)-($e[Ce]||0)}),De}const Y="resize-active";let ee=(()=>{class Re{constructor(ie,De,Ce,Se){this.platformId=ie,this.renderer=De,this.elm=Ce,this.zone=Se,this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=we,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new _.vpe,this.resizing=new _.vpe,this.resizeEnd=new _.vpe,this.mouseup=new h.x,this.mousedown=new h.x,this.mousemove=new h.x,this.destroy$=new h.x,this.pointerEventListeners=he.getInstance(De,Se)}ngOnInit(){const ie=(0,E.T)(this.pointerEventListeners.pointerDown,this.mousedown),De=(0,E.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,A.b)(({event:et})=>{if(Se)try{et.preventDefault()}catch(rt){}}),(0,P.B)()),Ce=(0,E.T)(this.pointerEventListeners.pointerUp,this.mouseup);let Se;const We=()=>{Se&&Se.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(Se.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},Qe=()=>Object.assign(Object.assign({},we),this.resizeCursors);ie.pipe((0,T.z)(et=>{function rt(vt){return{clientX:vt.clientX-et.clientX,clientY:vt.clientY-et.clientY}}const Ft=()=>{const vt={x:1,y:1};return Se&&(this.resizeSnapGrid.left&&Se.edges.left?vt.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&Se.edges.right&&(vt.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&Se.edges.top?vt.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&Se.edges.bottom&&(vt.y=+this.resizeSnapGrid.bottom)),vt};function Wt(vt,Zt){return{x:Math.ceil(vt.clientX/Zt.x),y:Math.ceil(vt.clientY/Zt.y)}}return(0,E.T)(De.pipe((0,y.q)(1)).pipe((0,l.U)(vt=>[,vt])),De.pipe(function d(){return(0,f.e)((Re,$e)=>{let ie,De=!1;Re.subscribe((0,u.x)($e,Ce=>{const Se=ie;ie=Ce,De&&$e.next([Se,Ce]),De=!0}))})}())).pipe((0,l.U)(([vt,Zt])=>[vt&&rt(vt),rt(Zt)])).pipe((0,C.h)(([vt,Zt])=>{if(!vt)return!0;const bt=Ft(),Ze=Wt(vt,bt),ge=Wt(Zt,bt);return Ze.x!==ge.x||Ze.y!==ge.y})).pipe((0,l.U)(([,vt])=>{const Zt=Ft();return{clientX:Math.round(vt.clientX/Zt.x)*Zt.x,clientY:Math.round(vt.clientY/Zt.y)*Zt.y}})).pipe((0,R.R)((0,E.T)(Ce,ie)))})).pipe((0,C.h)(()=>!!Se)).pipe((0,l.U)(({clientX:et,clientY:rt})=>Q(Se.startingRect,Se.edges,et,rt))).pipe((0,C.h)(et=>this.allowNegativeResizes||!!(et.height&&et.width&&et.height>0&&et.width>0))).pipe((0,C.h)(et=>!this.validateResize||this.validateResize({rectangle:et,edges:xe({edges:Se.edges,initialRectangle:Se.startingRect,newRectangle:et})})),(0,R.R)(this.destroy$)).subscribe(et=>{Se&&Se.clonedNode&&(this.renderer.setStyle(Se.clonedNode,"height",`${et.height}px`),this.renderer.setStyle(Se.clonedNode,"width",`${et.width}px`),this.renderer.setStyle(Se.clonedNode,"top",`${et.top}px`),this.renderer.setStyle(Se.clonedNode,"left",`${et.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:xe({edges:Se.edges,initialRectangle:Se.startingRect,newRectangle:et}),rectangle:et})}),Se.currentRect=et}),ie.pipe((0,l.U)(({edges:et})=>et||{}),(0,C.h)(et=>Object.keys(et).length>0),(0,R.R)(this.destroy$)).subscribe(et=>{Se&&We();const rt=function ne(Re,$e){let ie=0,De=0;const Ce=Re.nativeElement.style,We=["transform","-ms-transform","-moz-transform","-o-transform"].map(Qe=>Ce[Qe]).find(Qe=>!!Qe);if(We&&We.includes("translate")&&(ie=We.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),De=We.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===$e)return{height:Re.nativeElement.offsetHeight,width:Re.nativeElement.offsetWidth,top:Re.nativeElement.offsetTop-De,bottom:Re.nativeElement.offsetHeight+Re.nativeElement.offsetTop-De,left:Re.nativeElement.offsetLeft-ie,right:Re.nativeElement.offsetWidth+Re.nativeElement.offsetLeft-ie};{const Qe=Re.nativeElement.getBoundingClientRect();return{height:Qe.height,width:Qe.width,top:Qe.top-De,bottom:Qe.bottom-De,left:Qe.left-ie,right:Qe.right-ie,scrollTop:Re.nativeElement.scrollTop,scrollLeft:Re.nativeElement.scrollLeft}}}(this.elm,this.ghostElementPositioning);Se={edges:et,startingRect:rt,currentRect:rt};const Ft=Qe(),Wt=Be(Se.edges,Ft);this.renderer.setStyle(document.body,"cursor",Wt),this.setElementClass(this.elm,Y,!0),this.enableGhostResize&&(Se.clonedNode=function W(Re){const $e=Re.cloneNode(!0),ie=$e.querySelectorAll("[id]"),De=Re.nodeName.toLowerCase();return $e.removeAttribute("id"),ie.forEach(Ce=>{Ce.removeAttribute("id")}),"canvas"===De?Z(Re,$e):("input"===De||"select"===De||"textarea"===De)&&F(Re,$e),v("canvas",Re,$e,Z),v("input, textarea, select",Re,$e,F),$e}(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(Se.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(Se.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(Se.clonedNode,"left",`${Se.startingRect.left}px`),this.renderer.setStyle(Se.clonedNode,"top",`${Se.startingRect.top}px`),this.renderer.setStyle(Se.clonedNode,"height",`${Se.startingRect.height}px`),this.renderer.setStyle(Se.clonedNode,"width",`${Se.startingRect.width}px`),this.renderer.setStyle(Se.clonedNode,"cursor",Be(Se.edges,Ft)),this.renderer.addClass(Se.clonedNode,"resize-ghost-element"),Se.clonedNode.scrollTop=Se.startingRect.scrollTop,Se.clonedNode.scrollLeft=Se.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:xe({edges:et,initialRectangle:rt,newRectangle:rt}),rectangle:Q(rt,{},0,0)})})}),Ce.pipe((0,R.R)(this.destroy$)).subscribe(()=>{Se&&(this.renderer.removeClass(this.elm.nativeElement,Y),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:xe({edges:Se.edges,initialRectangle:Se.startingRect,newRectangle:Se.currentRect}),rectangle:Se.currentRect})}),We(),Se=null)})}ngOnDestroy(){(0,b.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(ie,De,Ce){Ce?this.renderer.addClass(ie.nativeElement,De):this.renderer.removeClass(ie.nativeElement,De)}}return Re.\u0275fac=function(ie){return new(ie||Re)(_.Y36(_.Lbi),_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(_.R0b))},Re.\u0275dir=_.lG2({type:Re,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]}),Re})();class he{constructor($e,ie){this.pointerDown=new I.y(De=>{let Ce,Se;return ie.runOutsideAngular(()=>{Ce=$e.listen("document","mousedown",We=>{De.next({clientX:We.clientX,clientY:We.clientY,event:We})}),U&&(Se=$e.listen("document","touchstart",We=>{De.next({clientX:We.touches[0].clientX,clientY:We.touches[0].clientY,event:We})}))}),()=>{Ce(),U&&Se()}}).pipe((0,P.B)()),this.pointerMove=new I.y(De=>{let Ce,Se;return ie.runOutsideAngular(()=>{Ce=$e.listen("document","mousemove",We=>{De.next({clientX:We.clientX,clientY:We.clientY,event:We})}),U&&(Se=$e.listen("document","touchmove",We=>{De.next({clientX:We.targetTouches[0].clientX,clientY:We.targetTouches[0].clientY,event:We})}))}),()=>{Ce(),U&&Se()}}).pipe((0,P.B)()),this.pointerUp=new I.y(De=>{let Ce,Se,We;return ie.runOutsideAngular(()=>{Ce=$e.listen("document","mouseup",Qe=>{De.next({clientX:Qe.clientX,clientY:Qe.clientY,event:Qe})}),U&&(Se=$e.listen("document","touchend",Qe=>{De.next({clientX:Qe.changedTouches[0].clientX,clientY:Qe.changedTouches[0].clientY,event:Qe})}),We=$e.listen("document","touchcancel",Qe=>{De.next({clientX:Qe.changedTouches[0].clientX,clientY:Qe.changedTouches[0].clientY,event:Qe})}))}),()=>{Ce(),U&&(Se(),We())}}).pipe((0,P.B)())}static getInstance($e,ie){return he.instance||(he.instance=new he($e,ie)),he.instance}}let Me=(()=>{class Re{constructor(ie,De,Ce,Se){this.renderer=ie,this.element=De,this.zone=Ce,this.resizableDirective=Se,this.resizeEdges={},this.eventListeners={},this.destroy$=new h.x}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(ie=>{this.onMousedown(ie,ie.clientX,ie.clientY)}),this.listenOnTheHost("mouseup").subscribe(ie=>{this.onMouseup(ie.clientX,ie.clientY)}),U&&(this.listenOnTheHost("touchstart").subscribe(ie=>{this.onMousedown(ie,ie.touches[0].clientX,ie.touches[0].clientY)}),(0,E.T)(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(ie=>{this.onMouseup(ie.changedTouches[0].clientX,ie.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(ie,De,Ce){ie.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",Se=>{this.onMousemove(Se,Se.targetTouches[0].clientX,Se.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",Se=>{this.onMousemove(Se,Se.clientX,Se.clientY)})),this.resizable.mousedown.next({clientX:De,clientY:Ce,edges:this.resizeEdges})}onMouseup(ie,De){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:ie,clientY:De,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(ie,De,Ce){this.resizable.mousemove.next({clientX:De,clientY:Ce,edges:this.resizeEdges,event:ie})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(ie=>{this.eventListeners[ie](),delete this.eventListeners[ie]})}listenOnTheHost(ie){return(0,D.R)(this.element.nativeElement,ie).pipe((0,R.R)(this.destroy$))}}return Re.\u0275fac=function(ie){return new(ie||Re)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(ee,8))},Re.\u0275dir=_.lG2({type:Re,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),Re})(),Oe=(()=>{class Re{}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=_.oAB({type:Re}),Re.\u0275inj=_.cJS({}),Re})();const ye=["terminal"],Ne=["resizeBox"],ue=function(Re){return{"handle-active":Re}},de=function(){return{top:!1}},be=function(){return{left:!1}},ke=function(){return{right:!0}},Ue=function(){return{right:!1}},ft=function(){return{bottom:!0}},Xe=function(){return{bottom:!1}};let Pt=(()=>{class Re{constructor(ie){this.hostRef=ie,this.handlerToCheckElementConnection=void 0,this.propertyChangeQueue=[],this.itemsToBeHandled=new h.x,this.handleImmediate=()=>{if(!this.handlerToCheckElementConnection){let De=this.propertyChangeQueue.splice(0,1);1==De.length&&this.itemsToBeHandled.next(De[0])}}}get renderObservable(){return this.itemsToBeHandled}handleNextOne(ie=!1){!this.hostRef.nativeElement.isConnected||ie?this.pollAndHandle(this.hostRef.nativeElement.isConnected?"LAZY":"NOT_CONNECTED_ELEMENT"):this.handleImmediate()}pushAndHandle(ie,De=!1){let Ce=Object.assign({},ie);this.propertyChangeQueue.push(Ce),this.handleNextOne(De)}pollAndHandle(ie){(()=>{if(this.handlerToCheckElementConnection)return;const Ce=setInterval(()=>{this.hostRef.nativeElement.isConnected&&(clearInterval(Ce),this.handlerToCheckElementConnection=void 0,this.handleImmediate())},"NOT_CONNECTED_ELEMENT"===ie?500:30);this.handlerToCheckElementConnection=Ce})()}ngOnDestroy(){this.handlerToCheckElementConnection&&clearInterval(this.handlerToCheckElementConnection)}}return Re.\u0275fac=function(ie){return new(ie||Re)(_.LFG(_.SBq))},Re.\u0275prov=_.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),_t=(()=>{class Re{constructor(){}ngOnInit(){}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275cmp=_.Xpm({type:Re,selectors:[["global-style"]],decls:0,vars:0,template:function(ie,De){},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n'],encapsulation:2}),Re})(),xt=(()=>{class Re{constructor(ie,De){this.renderer=ie,this.hostRef=De,this.dataSubject=new h.x,this.keySubject=new h.x,this.keyInputSubjectSubscription=void 0,this.keyEventSubjectSubscription=void 0,this.allLogsSubjectSubscription=void 0,this.dataSourceSubscription=void 0,this.resizableObservers=[],this.dataSource=void 0,this.paddingSize=5,this.stylesForResizeBox={display:"block"},this.keyInputEmitter=new _.vpe,this.keyEventEmitter=new _.vpe,this.dataEmitter=this.keyInputEmitter,this.keyEmitter=this.keyEventEmitter,this._xtermOptions={},this.lastDraggedPosition=void 0,this._draggable=!1,this._stylesInput={},this.handleToCheckLazyContainer=void 0,this.linearRender=new Pt(De)}set _dataSource(ie){!ie||(null!=this.dataSourceSubscription&&this.dataSourceSubscription.unsubscribe(),this.dataSource=ie,this.dataSourceSubscription=this.dataSource.subscribe(De=>this.write(De)))}set draggable(ie){this._draggable=ie}get draggable(){return this._draggable}setMinWidth(ie){this._minWidthInput=ie}setMinHeight(ie){this._minHeightInput=ie}setDraggable(ie){this._draggable=ie,this.lastDraggedPosition=void 0}setXtermOptions(ie){this._xtermOptions=ie,this.linearRender.pushAndHandle({time:new Date,type:"none"})}setRows(ie){this._rowsInput!=ie&&(this._rowsInput=ie,this.linearRender.pushAndHandle({time:new Date,type:"rowChanged"}))}setCols(ie){this._colsInput!=ie&&(this._colsInput=ie,this.linearRender.pushAndHandle({time:new Date,type:"columnChanged"}))}setStyle(ie){var De;JSON.stringify(null!==(De=this._stylesInput)&&void 0!==De?De:{})!=JSON.stringify(null!=ie?ie:{})&&(this._stylesInput=ie,this.linearRender.pushAndHandle({time:new Date,type:"none"}))}setup(){this.xterm&&(this.xterm.onData(ie=>{this.dataSubject.next(ie)}),this.xterm.onKey(ie=>{this.keySubject.next(ie)})),this.keyInputSubjectSubscription=this.dataSubject.subscribe(ie=>{this.keyInputEmitter.emit(ie)}),this.keyEventSubjectSubscription=this.keySubject.subscribe(ie=>{this.keyEventEmitter.emit(ie)}),this.setupResizeObservers(),this.allLogsSubjectSubscription=this.linearRender.renderObservable.subscribe(ie=>{this.coordinateOuterAndTerminal(ie),this.linearRender.handleNextOne()}),this.linearRender.handleNextOne()}setOuterDimensions(ie,De,Ce,Se){this.linearRender.pushAndHandle({time:new Date,type:"dragged",dragged:{draggedWidth:`${Ce}px`,draggedHeight:`${Se}px`}})}applyStylesToResizeBox(){Object.keys(this.stylesForResizeBox).map(ie=>({key:ie,value:this.stylesForResizeBox[ie]})).forEach(({key:ie,value:De})=>{this.resizeBox&&(De?this.renderer.setStyle(this.resizeBox.nativeElement,ie,De):this.renderer.removeStyle(this.resizeBox.nativeElement,ie))}),this.stylesForResizeBox=this.stylesForResizeBox}ngOnInit(){}ngAfterViewInit(){this.fitAddon=new p.FitAddon,this.xterm=new j.Terminal({allowProposedApi:!0}),this.terminalOuter.nativeElement.isConnected?(this.xterm.open(this.terminalOuter.nativeElement),this.xterm.loadAddon(this.fitAddon),this.setup(),this.linearRender.pushAndHandle({time:new Date,type:"none"})):this.handleToCheckLazyContainer=setInterval(()=>{if(this.terminalOuter.nativeElement.isConnected)try{console.debug("The container's been connected."),this.xterm.open(this.terminalOuter.nativeElement),this.xterm.loadAddon(this.fitAddon),this.setup(),this.linearRender.pushAndHandle({time:new Date,type:"none"})}finally{this.handleToCheckLazyContainer&&clearInterval(this.handleToCheckLazyContainer)}},500)}ngOnChanges(ie){var De,Ce,Se,We;console.group("onChanges"),console.debug("prop: ",ie),console.groupEnd(),null!=ie&&ie._rowsInput&&(null===(De=null==ie?void 0:ie._rowsInput)||void 0===De?void 0:De.previousValue)!=(null===(Ce=null==ie?void 0:ie._rowsInput)||void 0===Ce?void 0:Ce.currentValue)&&this.linearRender.pushAndHandle({time:new Date,type:"rowChanged"}),null!=ie&&ie._colsInput&&(null===(Se=null==ie?void 0:ie._colsInput)||void 0===Se?void 0:Se.previousValue)!=(null===(We=null==ie?void 0:ie._colsInput)||void 0===We?void 0:We.currentValue)&&this.linearRender.pushAndHandle({time:new Date,type:"columnChanged"}),null!=ie&&ie.draggable&&this.linearRender.pushAndHandle({time:new Date,type:"none"})}coordinateOuterAndTerminal(ie){var De;console.debug(`changeList: ${JSON.stringify(ie)}`),this.xterm&&(null!==(null===(De=this.hostRef.nativeElement)||void 0===De?void 0:De.offsetParent)?(this.doUpdateXtermStyles(),this.doAdjustDimensionOfResizeBox(ie),this.doAdjustSizeOfXtermScreen(ie),this.doUpdateViewportAndResizeBoxWithPixcelUnit()):console.debug("`display` of host element was set to `none`"))}doUpdateXtermStyles(){var ie,De;!this.xterm||(this.xterm.options=Object.assign({},this._xtermOptions),!(null===(ie=this._xtermOptions.theme)||void 0===ie)&&ie.background&&(this.resizeHandleStyleRule||(this.resizeHandleStyleRule=this.findCssStyleRule(".resize-handle[")),this.resizeHandleStyleRule&&(this.resizeHandleStyleRule.style.backgroundColor=this._xtermOptions.theme.background)),null!==(De=this._xtermOptions.theme)&&void 0!==De&&De.border&&(this.resizeHandleActiveStyleRule||(this.resizeHandleActiveStyleRule=this.findCssStyleRule(".handle-active")),this.resizeHandleActiveStyleRule&&(this.resizeHandleActiveStyleRule.style.backgroundColor=this._xtermOptions.theme.border)))}doAdjustDimensionOfResizeBox(ie){var De,Ce;if(this.stylesForResizeBox=Object.assign(Object.assign(Object.assign({},this.stylesForResizeBox),this._stylesInput),{width:this.stylesForResizeBox.width,height:this.stylesForResizeBox.height}),"dragged"===ie.type){const Se=null!==(De=this._minWidthInput)&&void 0!==De?De:24,We=null!==(Ce=this._minHeightInput)&&void 0!==Ce?Ce:24,Qe=parseInt(ie.dragged.draggedWidth)>Se?ie.dragged.draggedWidth:`${Se}px`,It=parseInt(ie.dragged.draggedHeight)>We?ie.dragged.draggedHeight:`${We}px`;this.stylesForResizeBox.width=Qe,this.stylesForResizeBox.height=It,this.lastDraggedPosition={width:Qe,height:It},this.applyStylesToResizeBox()}else if(!(this._rowsInput||this._colsInput||this.draggable&&this.lastDraggedPosition)){const Se=getComputedStyle(this.hostRef.nativeElement).width,We=this.stylesForResizeBox.width;this.stylesForResizeBox.width="10px",this.applyStylesToResizeBox();const Qe=getComputedStyle(this.hostRef.nativeElement).width;this.stylesForResizeBox.width=We,this.applyStylesToResizeBox();let It=!1;parseFloat(Qe)Ft?Ft:et;this.stylesForResizeBox=Object.assign(Object.assign({},this.stylesForResizeBox),{width:`${Wt}px`,height:`${We+2*this.paddingSize}px`}),this.applyStylesToResizeBox(),this.printDimension("After update the dimensions for all boxes with pixel values")}}printDimension(ie){var De;if((0,_.X6Q)()&&(null===(De=this.xterm)||void 0===De?void 0:De.element)){let Ce=this.resizeBox.nativeElement,Se=this.xterm.element.getElementsByClassName("xterm-screen")[0],We=this.xterm.element.getElementsByClassName("xterm-viewport")[0];const Qe=Se.clientWidth,It=Se.clientHeight;console.group(`${ie}`),console.debug(`width(resizeBox): ${getComputedStyle(Ce).width},\nwidth(viewport): ${getComputedStyle(We).width},\nwidth(screen): ${Qe}\nscrollBarWidth: ${this.scrollBarWidth}`),console.debug(`height(resizeBox): ${getComputedStyle(Ce).height},\nheight(viewport) ${getComputedStyle(We).height},\nheight(screen): ${It}`),console.groupEnd()}}setupResizeObservers(){this.resizableObservers=[];let ie=this.observeXtermViewportDimension(),De=this.observeHostDimension();ie&&this.resizableObservers.push(ie),De&&this.resizableObservers.push(De)}observeXtermViewportDimension(){let ie=this.terminalOuter.nativeElement.querySelector(".xterm-viewport");if(ie){const De=new ResizeObserver(Ce=>{var Se,We;const Qe=null===(Se=this.terminalOuter.nativeElement)||void 0===Se?void 0:Se.clientWidth,It=null===(We=this.terminalOuter.nativeElement)||void 0===We?void 0:We.clientHeight;for(let et of Ce)if(et.contentBoxSize.length>0){let rt=et.target.clientWidth,Ft=et.target.clientHeight;(Qe&&rt>Qe||It&&Ft>It)&&(console.debug("Changes on a xterm viewport element will be handled."),this.linearRender.pushAndHandle({time:new Date,type:"xtermViewportExceedingOuterDiv",xtermViewportExceedingOuterDiv:{width:`${rt}`,height:`${Ft}`,outerDivWidth:`${Qe}`,outerDivHeight:`${It}`}},!0))}});return De.observe(ie),De}console.error("Invalid state is detected. xterm element should exist below .terminal-outer.")}observeHostDimension(){let ie=this.hostRef.nativeElement;if(ie){const De=new ResizeObserver(Ce=>{for(let Se of Ce)if(Se.contentBoxSize.length>0){let We=getComputedStyle(Se.target).width,Qe=getComputedStyle(Se.target).height;parseInt(We)>=0&&parseInt(Qe)>=0&&(console.debug("Changes on a host element will be handled."),this.linearRender.pushAndHandle({time:new Date,type:"hostResized",hostResized:{width:`${We}`,height:`${Qe}`}},!0))}});return De.observe(ie),De}console.error("Invalid state is detected. xterm element should exist below .terminal-outer.")}ngOnDestroy(){this.resizableObservers.forEach(ie=>ie.disconnect()),this.keyInputSubjectSubscription&&this.keyInputSubjectSubscription.unsubscribe(),this.dataSourceSubscription&&this.dataSourceSubscription.unsubscribe(),this.keyEventSubjectSubscription&&this.keyEventSubjectSubscription.unsubscribe(),this.allLogsSubjectSubscription&&this.allLogsSubjectSubscription.unsubscribe(),this.handleToCheckLazyContainer&&clearInterval(this.handleToCheckLazyContainer),this.xterm&&this.xterm.dispose(),console.debug("All resources has been cleaned up.")}write(ie){var De;null===(De=this.xterm)||void 0===De||De.write(ie)}get keyInput(){return this.dataSubject}onData(){return this.dataSubject}get keyEventInput(){return this.keySubject}onKey(){return this.keySubject}get underlying(){return this.xterm}get isDraggableOnEdgeActivated(){return this._draggable}get scrollBarWidth(){return this.underlying._core.viewport.scrollBarWidth}onResizeEnd(ie,De,Ce,Se){this.setOuterDimensions(ie,De,Ce,Se)}validatorFactory(){return De=>!!this._draggable}findCssStyleRule(ie){for(let De=0;De .handle-active[_ngcontent-%COMP%]{z-index:100;background-color:#85858a!important}.resize-handle[_ngcontent-%COMP%]{background-color:#000}.resize-handle-top.handle-active[_ngcontent-%COMP%], .resize-handle-bottom.handle-active[_ngcontent-%COMP%]{cursor:row-resize}.resize-handle-left.handle-active[_ngcontent-%COMP%], .resize-handle-right.handle-active[_ngcontent-%COMP%]{cursor:col-resize}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0;top:0}.resize-handle-right[_ngcontent-%COMP%]{right:0;top:0}"],changeDetection:0}),Re})(),pt=(()=>{class Re{}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=_.oAB({type:Re}),Re.\u0275inj=_.cJS({imports:[Oe,b.ez]}),Re})();class gn{static insertBlank($e){return`\x9b${$e}@`}static cursorUp($e){return`\x9b${$e}A`}static cursorDown($e){return`\x9b${$e}B`}static cursorForward($e){return`\x9b${$e}C`}static cursorBackward($e){return`\x9b${$e}D`}static cursorNextLine($e){return`\x9b${$e}E`}static cursorPrecedingLine($e){return`\x9b${$e}F`}static cursorColumn($e){return`\x9b${$e}G`}static cursorPosition($e,ie){return`\x9b${$e};${ie}H`}static eraseInDisplay($e){return`\x9b${$e}J`}static eraseSelectiveThingsInDisplay($e){return`\x9b?${$e}J`}static eraseInLine($e){return`\x9b${$e}K`}static eraseSelectiveThingsInLine($e){return`\x9b?${$e}K`}static insertLines($e){return`\x9b${$e}L`}static deleteLines($e){return`\x9b${$e}M`}static deleteCharacter($e){return`\x9b${$e}P`}static scrollUpLines($e){return`\x9b${$e}S`}static scrollDownLines($e){return`\x9b${$e}T`}static eraseCharacters($e){return`\x9b${$e}X`}}},1777:(nt,Fe,$)=>{"use strict";$.d(Fe,{LC:()=>j,SB:()=>A,X$:()=>h,ZE:()=>U,ZN:()=>R,_j:()=>_,eR:()=>T,jt:()=>b,k1:()=>W,l3:()=>p,oB:()=>D,vP:()=>I});class _{}class j{}const p="*";function h(v,w){return{type:7,name:v,definitions:w,options:{}}}function b(v,w=null){return{type:4,styles:w,timings:v}}function I(v,w=null){return{type:2,steps:v,options:w}}function D(v){return{type:6,styles:v,offset:null}}function A(v,w,F){return{type:0,name:v,styles:w,options:F}}function T(v,w,F=null){return{type:1,expr:v,animation:w,options:F}}function C(v){Promise.resolve().then(v)}class R{constructor(w=0,F=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=w+F}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}onStart(w){this._originalOnStartFns.push(w),this._onStartFns.push(w)}onDone(w){this._originalOnDoneFns.push(w),this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){C(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(w=>w()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(w){this._position=this.totalTime?w*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(w){const F="start"==w?this._onStartFns:this._onDoneFns;F.forEach(Z=>Z()),F.length=0}}class U{constructor(w){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=w;let F=0,Z=0,Q=0;const ne=this.players.length;0==ne?C(()=>this._onFinish()):this.players.forEach(we=>{we.onDone(()=>{++F==ne&&this._onFinish()}),we.onDestroy(()=>{++Z==ne&&this._onDestroy()}),we.onStart(()=>{++Q==ne&&this._onStart()})}),this.totalTime=this.players.reduce((we,Be)=>Math.max(we,Be.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}init(){this.players.forEach(w=>w.init())}onStart(w){this._onStartFns.push(w)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(w=>w()),this._onStartFns=[])}onDone(w){this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(w=>w.play())}pause(){this.players.forEach(w=>w.pause())}restart(){this.players.forEach(w=>w.restart())}finish(){this._onFinish(),this.players.forEach(w=>w.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(w=>w.destroy()),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}reset(){this.players.forEach(w=>w.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(w){const F=w*this.totalTime;this.players.forEach(Z=>{const Q=Z.totalTime?Math.min(1,F/Z.totalTime):1;Z.setPosition(Q)})}getPosition(){const w=this.players.reduce((F,Z)=>null===F||Z.totalTime>F.totalTime?Z:F,null);return null!=w?w.getPosition():0}beforeDestroy(){this.players.forEach(w=>{w.beforeDestroy&&w.beforeDestroy()})}triggerCallback(w){const F="start"==w?this._onStartFns:this._onDoneFns;F.forEach(Z=>Z()),F.length=0}}const W="!"},2982:(nt,Fe,$)=>{"use strict";$.d(Fe,{rt:()=>yn,kH:()=>Hn,Em:()=>$e,tE:()=>Xn,qm:()=>Gt,X6:()=>Ui,yG:()=>ri});var _=$(9808),j=$(5e3),p=$(925),h=$(7579),b=$(727);class E extends h.x{constructor(le){super(),this._value=le}get value(){return this.getValue()}_subscribe(le){const se=super._subscribe(le);return!se.closed&&le.next(this._value),se}getValue(){const{hasError:le,thrownError:se,_value:Te}=this;if(le)throw se;return this._throwIfClosed(),Te}next(le){super.next(this._value=le)}}var I=$(9646),D=$(1159),A=$(8505),P=$(8372),T=$(9300),y=$(4004),l=$(5684),f=$(1884),u=$(2722),d=$(3191),C=$(7144),R=$(8306),U=$(4742),W=$(2076),v=$(4671),w=$(3268),F=$(3269),Z=$(1810),Q=$(5403),ne=$(9672);function xe(pe,le,se){pe?(0,ne.f)(se,pe,le):le()}var Y=$(7272),re=$(5698),_e=$(8675);const he=new Set;let Me,Oe=(()=>{class pe{constructor(se){this._platform=se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ne}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function ye(pe){if(!he.has(pe))try{Me||(Me=document.createElement("style"),Me.setAttribute("type","text/css"),document.head.appendChild(Me)),Me.sheet&&(Me.sheet.insertRule(`@media ${pe} {body{ }}`,0),he.add(pe))}catch(le){console.error(le)}}(se),this._matchMedia(se)}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(p.t4))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function Ne(pe){return{matches:"all"===pe||""===pe,media:pe,addListener:()=>{},removeListener:()=>{}}}let ue=(()=>{class pe{constructor(se,Te){this._mediaMatcher=se,this._zone=Te,this._queries=new Map,this._destroySubject=new h.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return de((0,d.Eq)(se)).some(Ve=>this._registerQuery(Ve).mql.matches)}observe(se){let tt=function we(...pe){const le=(0,F.yG)(pe),se=(0,F.jO)(pe),{args:Te,keys:Ve}=(0,U.D)(pe);if(0===Te.length)return(0,W.D)([],le);const tt=new R.y(function Be(pe,le,se=v.y){return Te=>{xe(le,()=>{const{length:Ve}=pe,tt=new Array(Ve);let gt=Ve,mt=Ve;for(let Qt=0;Qt{const hn=(0,W.D)(pe[Qt],le);let Et=!1;hn.subscribe((0,Q.x)(Te,Ri=>{tt[Qt]=Ri,Et||(Et=!0,mt--),mt||Te.next(se(tt.slice()))},()=>{--gt||Te.complete()}))},Te)},Te)}}(Te,le,Ve?gt=>(0,Z.n)(Ve,gt):v.y));return se?tt.pipe((0,w.Z)(se)):tt}(de((0,d.Eq)(se)).map(gt=>this._registerQuery(gt).observable));return tt=(0,Y.z)(tt.pipe((0,re.q)(1)),tt.pipe((0,l.T)(1),(0,P.b)(0))),tt.pipe((0,y.U)(gt=>{const mt={matches:!1,breakpoints:{}};return gt.forEach(({matches:Qt,query:hn})=>{mt.matches=mt.matches||Qt,mt.breakpoints[hn]=Qt}),mt}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const Te=this._mediaMatcher.matchMedia(se),tt={observable:new R.y(gt=>{const mt=Qt=>this._zone.run(()=>gt.next(Qt));return Te.addListener(mt),()=>{Te.removeListener(mt)}}).pipe((0,_e.O)(Te),(0,y.U)(({matches:gt})=>({query:se,matches:gt})),(0,u.R)(this._destroySubject)),mql:Te};return this._queries.set(se,tt),tt}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(Oe),j.LFG(j.R0b))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();function de(pe){return pe.map(le=>le.split(",")).reduce((le,se)=>le.concat(se)).map(le=>le.trim())}class $e extends class Tn{constructor(le){this._items=le,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new h.x,this._typeaheadSubscription=b.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=se=>se.disabled,this._pressedLetters=[],this.tabOut=new h.x,this.change=new h.x,le instanceof j.n_E&&le.changes.subscribe(se=>{if(this._activeItem){const Ve=se.toArray().indexOf(this._activeItem);Ve>-1&&Ve!==this._activeItemIndex&&(this._activeItemIndex=Ve)}})}skipPredicate(le){return this._skipPredicateFn=le,this}withWrap(le=!0){return this._wrap=le,this}withVerticalOrientation(le=!0){return this._vertical=le,this}withHorizontalOrientation(le){return this._horizontal=le,this}withAllowedModifierKeys(le){return this._allowedModifierKeys=le,this}withTypeAhead(le=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,A.b)(se=>this._pressedLetters.push(se)),(0,P.b)(le),(0,T.h)(()=>this._pressedLetters.length>0),(0,y.U)(()=>this._pressedLetters.join(""))).subscribe(se=>{const Te=this._getItemsArray();for(let Ve=1;Ve!le[tt]||this._allowedModifierKeys.indexOf(tt)>-1);switch(se){case D.Mf:return void this.tabOut.next();case D.JH:if(this._vertical&&Ve){this.setNextItemActive();break}return;case D.LH:if(this._vertical&&Ve){this.setPreviousItemActive();break}return;case D.SV:if(this._horizontal&&Ve){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case D.oh:if(this._horizontal&&Ve){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case D.Sd:if(this._homeAndEnd&&Ve){this.setFirstItemActive();break}return;case D.uR:if(this._homeAndEnd&&Ve){this.setLastItemActive();break}return;default:return void((Ve||(0,D.Vb)(le,"shiftKey"))&&(le.key&&1===le.key.length?this._letterKeyStream.next(le.key.toLocaleUpperCase()):(se>=D.A&&se<=D.Z||se>=D.xE&&se<=D.aO)&&this._letterKeyStream.next(String.fromCharCode(se))))}this._pressedLetters=[],le.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(le){const se=this._getItemsArray(),Te="number"==typeof le?le:se.indexOf(le),Ve=se[Te];this._activeItem=null==Ve?null:Ve,this._activeItemIndex=Te}_setActiveItemByDelta(le){this._wrap?this._setActiveInWrapMode(le):this._setActiveInDefaultMode(le)}_setActiveInWrapMode(le){const se=this._getItemsArray();for(let Te=1;Te<=se.length;Te++){const Ve=(this._activeItemIndex+le*Te+se.length)%se.length;if(!this._skipPredicateFn(se[Ve]))return void this.setActiveItem(Ve)}}_setActiveInDefaultMode(le){this._setActiveItemByIndex(this._activeItemIndex+le,le)}_setActiveItemByIndex(le,se){const Te=this._getItemsArray();if(Te[le]){for(;this._skipPredicateFn(Te[le]);)if(!Te[le+=se])return;this.setActiveItem(le)}}_getItemsArray(){return this._items instanceof j.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(le){return this._origin=le,this}setActiveItem(le){super.setActiveItem(le),this.activeItem&&this.activeItem.focus(this._origin)}}function Ui(pe){return 0===pe.buttons||0===pe.offsetX&&0===pe.offsetY}function ri(pe){const le=pe.touches&&pe.touches[0]||pe.changedTouches&&pe.changedTouches[0];return!(!le||-1!==le.identifier||null!=le.radiusX&&1!==le.radiusX||null!=le.radiusY&&1!==le.radiusY)}const ln=new j.OlP("cdk-input-modality-detector-options"),An={ignoreKeys:[D.zL,D.jx,D.b2,D.MW,D.JU]},En=(0,p.i$)({passive:!0,capture:!0});let jn=(()=>{class pe{constructor(se,Te,Ve,tt){this._platform=se,this._mostRecentTarget=null,this._modality=new E(null),this._lastTouchMs=0,this._onKeydown=gt=>{var mt,Qt;null!==(Qt=null===(mt=this._options)||void 0===mt?void 0:mt.ignoreKeys)&&void 0!==Qt&&Qt.some(hn=>hn===gt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,p.sA)(gt))},this._onMousedown=gt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ui(gt)?"keyboard":"mouse"),this._mostRecentTarget=(0,p.sA)(gt))},this._onTouchstart=gt=>{ri(gt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,p.sA)(gt))},this._options=Object.assign(Object.assign({},An),tt),this.modalityDetected=this._modality.pipe((0,l.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,f.x)()),se.isBrowser&&Te.runOutsideAngular(()=>{Ve.addEventListener("keydown",this._onKeydown,En),Ve.addEventListener("mousedown",this._onMousedown,En),Ve.addEventListener("touchstart",this._onTouchstart,En)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,En),document.removeEventListener("mousedown",this._onMousedown,En),document.removeEventListener("touchstart",this._onTouchstart,En))}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(p.t4),j.LFG(j.R0b),j.LFG(_.K0),j.LFG(ln,8))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const Dn=new j.OlP("cdk-focus-monitor-default-options"),Jn=(0,p.i$)({passive:!0,capture:!0});let Xn=(()=>{class pe{constructor(se,Te,Ve,tt,gt){this._ngZone=se,this._platform=Te,this._inputModalityDetector=Ve,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new h.x,this._rootNodeFocusAndBlurListener=mt=>{for(let hn=(0,p.sA)(mt);hn;hn=hn.parentElement)"focus"===mt.type?this._onFocus(mt,hn):this._onBlur(mt,hn)},this._document=tt,this._detectionMode=(null==gt?void 0:gt.detectionMode)||0}monitor(se,Te=!1){const Ve=(0,d.fI)(se);if(!this._platform.isBrowser||1!==Ve.nodeType)return(0,I.of)(null);const tt=(0,p.kV)(Ve)||this._getDocument(),gt=this._elementInfo.get(Ve);if(gt)return Te&&(gt.checkChildren=!0),gt.subject;const mt={checkChildren:Te,subject:new h.x,rootNode:tt};return this._elementInfo.set(Ve,mt),this._registerGlobalListeners(mt),mt.subject}stopMonitoring(se){const Te=(0,d.fI)(se),Ve=this._elementInfo.get(Te);Ve&&(Ve.subject.complete(),this._setClasses(Te),this._elementInfo.delete(Te),this._removeGlobalListeners(Ve))}focusVia(se,Te,Ve){const tt=(0,d.fI)(se);tt===this._getDocument().activeElement?this._getClosestElementsInfo(tt).forEach(([mt,Qt])=>this._originChanged(mt,Te,Qt)):(this._setOrigin(Te),"function"==typeof tt.focus&&tt.focus(Ve))}ngOnDestroy(){this._elementInfo.forEach((se,Te)=>this.stopMonitoring(Te))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(se){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(se)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:se&&this._isLastInteractionFromInputLabel(se)?"mouse":"program"}_shouldBeAttributedToTouch(se){return 1===this._detectionMode||!(null==se||!se.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(se,Te){se.classList.toggle("cdk-focused",!!Te),se.classList.toggle("cdk-touch-focused","touch"===Te),se.classList.toggle("cdk-keyboard-focused","keyboard"===Te),se.classList.toggle("cdk-mouse-focused","mouse"===Te),se.classList.toggle("cdk-program-focused","program"===Te)}_setOrigin(se,Te=!1){this._ngZone.runOutsideAngular(()=>{this._origin=se,this._originFromTouchInteraction="touch"===se&&Te,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(se,Te){const Ve=this._elementInfo.get(Te),tt=(0,p.sA)(se);!Ve||!Ve.checkChildren&&Te!==tt||this._originChanged(Te,this._getFocusOrigin(tt),Ve)}_onBlur(se,Te){const Ve=this._elementInfo.get(Te);!Ve||Ve.checkChildren&&se.relatedTarget instanceof Node&&Te.contains(se.relatedTarget)||(this._setClasses(Te),this._emitOrigin(Ve,null))}_emitOrigin(se,Te){se.subject.observers.length&&this._ngZone.run(()=>se.subject.next(Te))}_registerGlobalListeners(se){if(!this._platform.isBrowser)return;const Te=se.rootNode,Ve=this._rootNodeFocusListenerCount.get(Te)||0;Ve||this._ngZone.runOutsideAngular(()=>{Te.addEventListener("focus",this._rootNodeFocusAndBlurListener,Jn),Te.addEventListener("blur",this._rootNodeFocusAndBlurListener,Jn)}),this._rootNodeFocusListenerCount.set(Te,Ve+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,u.R)(this._stopInputModalityDetector)).subscribe(tt=>{this._setOrigin(tt,!0)}))}_removeGlobalListeners(se){const Te=se.rootNode;if(this._rootNodeFocusListenerCount.has(Te)){const Ve=this._rootNodeFocusListenerCount.get(Te);Ve>1?this._rootNodeFocusListenerCount.set(Te,Ve-1):(Te.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jn),Te.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jn),this._rootNodeFocusListenerCount.delete(Te))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(se,Te,Ve){this._setClasses(se,Te),this._emitOrigin(Ve,Te),this._lastFocusOrigin=Te}_getClosestElementsInfo(se){const Te=[];return this._elementInfo.forEach((Ve,tt)=>{(tt===se||Ve.checkChildren&&tt.contains(se))&&Te.push([tt,Ve])}),Te}_isLastInteractionFromInputLabel(se){const{_mostRecentTarget:Te,mostRecentModality:Ve}=this._inputModalityDetector;if("mouse"!==Ve||!Te||Te===se||"INPUT"!==se.nodeName&&"TEXTAREA"!==se.nodeName||se.disabled)return!1;const tt=se.labels;if(tt)for(let gt=0;gt{class pe{constructor(se,Te){this._elementRef=se,this._focusMonitor=Te,this._focusOrigin=null,this.cdkFocusChange=new j.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const se=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(se,1===se.nodeType&&se.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Te=>{this._focusOrigin=Te,this.cdkFocusChange.emit(Te)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return pe.\u0275fac=function(se){return new(se||pe)(j.Y36(j.SBq),j.Y36(Xn))},pe.\u0275dir=j.lG2({type:pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),pe})();const Oi="cdk-high-contrast-black-on-white",oi="cdk-high-contrast-white-on-black",on="cdk-high-contrast-active";let Gt=(()=>{class pe{constructor(se,Te){this._platform=se,this._document=Te,this._breakpointSubscription=(0,j.f3M)(ue).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const se=this._document.createElement("div");se.style.backgroundColor="rgb(1,2,3)",se.style.position="absolute",this._document.body.appendChild(se);const Te=this._document.defaultView||window,Ve=Te&&Te.getComputedStyle?Te.getComputedStyle(se):null,tt=(Ve&&Ve.backgroundColor||"").replace(/ /g,"");switch(se.remove(),tt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const se=this._document.body.classList;se.remove(on,Oi,oi),this._hasCheckedHighContrastMode=!0;const Te=this.getHighContrastMode();1===Te?se.add(on,Oi):2===Te&&se.add(on,oi)}}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(p.t4),j.LFG(_.K0))},pe.\u0275prov=j.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),yn=(()=>{class pe{constructor(se){se._applyBodyHighContrastModeCssClasses()}}return pe.\u0275fac=function(se){return new(se||pe)(j.LFG(Gt))},pe.\u0275mod=j.oAB({type:pe}),pe.\u0275inj=j.cJS({imports:[C.Q8]}),pe})()},226:(nt,Fe,$)=>{"use strict";$.d(Fe,{Is:()=>I,vT:()=>A});var _=$(5e3),j=$(9808);const p=new _.OlP("cdk-dir-doc",{providedIn:"root",factory:function h(){return(0,_.f3M)(j.K0)}}),b=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let I=(()=>{class P{constructor(y){if(this.value="ltr",this.change=new _.vpe,y){const f=y.documentElement?y.documentElement.dir:null;this.value=function E(P){const T=(null==P?void 0:P.toLowerCase())||"";return"auto"===T&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?b.test(navigator.language)?"rtl":"ltr":"rtl"===T?"rtl":"ltr"}((y.body?y.body.dir:null)||f||"ltr")}}ngOnDestroy(){this.change.complete()}}return P.\u0275fac=function(y){return new(y||P)(_.LFG(p,8))},P.\u0275prov=_.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),A=(()=>{class P{}return P.\u0275fac=function(y){return new(y||P)},P.\u0275mod=_.oAB({type:P}),P.\u0275inj=_.cJS({}),P})()},3191:(nt,Fe,$)=>{"use strict";$.d(Fe,{Eq:()=>b,Ig:()=>j,fI:()=>I,su:()=>p});var _=$(5e3);function j(A){return null!=A&&"false"!=`${A}`}function p(A,P=0){return function h(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):P}function b(A){return Array.isArray(A)?A:[A]}function I(A){return A instanceof _.SBq?A.nativeElement:A}},1159:(nt,Fe,$)=>{"use strict";$.d(Fe,{A:()=>ue,JH:()=>W,JU:()=>E,K5:()=>b,LH:()=>R,L_:()=>y,MW:()=>Ft,Mf:()=>p,SV:()=>U,Sd:()=>d,Vb:()=>Jt,Z:()=>rt,aO:()=>he,b2:()=>$i,jx:()=>I,oh:()=>C,uR:()=>u,xE:()=>Q,zL:()=>D});const p=9,b=13,E=16,I=17,D=18,y=32,u=35,d=36,C=37,R=38,U=39,W=40,Q=48,he=57,ue=65,rt=90,Ft=91,$i=224;function Jt(Ci,...fi){return fi.length?fi.some(cn=>Ci[cn]):Ci.altKey||Ci.shiftKey||Ci.ctrlKey||Ci.metaKey}},7144:(nt,Fe,$)=>{"use strict";$.d(Fe,{Q8:()=>A,wD:()=>D});var _=$(3191),j=$(5e3),p=$(8306),h=$(7579),b=$(8372);let E=(()=>{class P{create(y){return"undefined"==typeof MutationObserver?null:new MutationObserver(y)}}return P.\u0275fac=function(y){return new(y||P)},P.\u0275prov=j.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),I=(()=>{class P{constructor(y){this._mutationObserverFactory=y,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((y,l)=>this._cleanupObserver(l))}observe(y){const l=(0,_.fI)(y);return new p.y(f=>{const d=this._observeElement(l).subscribe(f);return()=>{d.unsubscribe(),this._unobserveElement(l)}})}_observeElement(y){if(this._observedElements.has(y))this._observedElements.get(y).count++;else{const l=new h.x,f=this._mutationObserverFactory.create(u=>l.next(u));f&&f.observe(y,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(y,{observer:f,stream:l,count:1})}return this._observedElements.get(y).stream}_unobserveElement(y){this._observedElements.has(y)&&(this._observedElements.get(y).count--,this._observedElements.get(y).count||this._cleanupObserver(y))}_cleanupObserver(y){if(this._observedElements.has(y)){const{observer:l,stream:f}=this._observedElements.get(y);l&&l.disconnect(),f.complete(),this._observedElements.delete(y)}}}return P.\u0275fac=function(y){return new(y||P)(j.LFG(E))},P.\u0275prov=j.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),D=(()=>{class P{constructor(y,l,f){this._contentObserver=y,this._elementRef=l,this._ngZone=f,this.event=new j.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(y){this._disabled=(0,_.Ig)(y),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(y){this._debounce=(0,_.su)(y),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const y=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?y.pipe((0,b.b)(this.debounce)):y).subscribe(this.event)})}_unsubscribe(){var y;null===(y=this._currentSubscription)||void 0===y||y.unsubscribe()}}return P.\u0275fac=function(y){return new(y||P)(j.Y36(I),j.Y36(j.SBq),j.Y36(j.R0b))},P.\u0275dir=j.lG2({type:P,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),P})(),A=(()=>{class P{}return P.\u0275fac=function(y){return new(y||P)},P.\u0275mod=j.oAB({type:P}),P.\u0275inj=j.cJS({providers:[E]}),P})()},925:(nt,Fe,$)=>{"use strict";$.d(Fe,{Oy:()=>v,i$:()=>T,kV:()=>R,qK:()=>D,sA:()=>W,t4:()=>h});var _=$(5e3),j=$(9808);let p;try{p="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){p=!1}let E,h=(()=>{class w{constructor(Z){this._platformId=Z,this.isBrowser=this._platformId?(0,j.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!p)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return w.\u0275fac=function(Z){return new(Z||w)(_.LFG(_.Lbi))},w.\u0275prov=_.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const I=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function D(){if(E)return E;if("object"!=typeof document||!document)return E=new Set(I),E;let w=document.createElement("input");return E=new Set(I.filter(F=>(w.setAttribute("type",F),w.type===F))),E}let A,d;function T(w){return function P(){if(null==A&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?w:!!w.capture}function R(w){if(function C(){if(null==d){const w="undefined"!=typeof document?document.head:null;d=!(!w||!w.createShadowRoot&&!w.attachShadow)}return d}()){const F=w.getRootNode?w.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&F instanceof ShadowRoot)return F}return null}function W(w){return w.composedPath?w.composedPath()[0]:w.target}function v(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},9808:(nt,Fe,$)=>{"use strict";$.d(Fe,{HT:()=>b,JF:()=>xr,K0:()=>I,Mx:()=>Qi,NF:()=>Tr,O5:()=>Ci,RF:()=>Ei,bD:()=>rn,ez:()=>Mt,mk:()=>ai,n9:()=>Di,q:()=>p,sg:()=>ui,w_:()=>E});var _=$(5e3);let j=null;function p(){return j}function b(x){j||(j=x)}class E{}const I=new _.OlP("DocumentToken");function Qi(x,z){z=encodeURIComponent(z);for(const L of x.split(";")){const J=L.indexOf("="),[me,He]=-1==J?[L,""]:[L.slice(0,J),L.slice(J+1)];if(me.trim()===z)return decodeURIComponent(He)}return null}let ai=(()=>{class x{constructor(L,J,me,He){this._iterableDiffers=L,this._keyValueDiffers=J,this._ngEl=me,this._renderer=He,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(L){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof L?L.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(L){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof L?L.split(/\s+/):L,this._rawClass&&((0,_.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const L=this._iterableDiffer.diff(this._rawClass);L&&this._applyIterableChanges(L)}else if(this._keyValueDiffer){const L=this._keyValueDiffer.diff(this._rawClass);L&&this._applyKeyValueChanges(L)}}_applyKeyValueChanges(L){L.forEachAddedItem(J=>this._toggleClass(J.key,J.currentValue)),L.forEachChangedItem(J=>this._toggleClass(J.key,J.currentValue)),L.forEachRemovedItem(J=>{J.previousValue&&this._toggleClass(J.key,!1)})}_applyIterableChanges(L){L.forEachAddedItem(J=>{if("string"!=typeof J.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,_.AaK)(J.item)}`);this._toggleClass(J.item,!0)}),L.forEachRemovedItem(J=>this._toggleClass(J.item,!1))}_applyClasses(L){L&&(Array.isArray(L)||L instanceof Set?L.forEach(J=>this._toggleClass(J,!0)):Object.keys(L).forEach(J=>this._toggleClass(J,!!L[J])))}_removeClasses(L){L&&(Array.isArray(L)||L instanceof Set?L.forEach(J=>this._toggleClass(J,!1)):Object.keys(L).forEach(J=>this._toggleClass(J,!1)))}_toggleClass(L,J){(L=L.trim())&&L.split(/\s+/g).forEach(me=>{J?this._renderer.addClass(this._ngEl.nativeElement,me):this._renderer.removeClass(this._ngEl.nativeElement,me)})}}return x.\u0275fac=function(L){return new(L||x)(_.Y36(_.ZZ4),_.Y36(_.aQg),_.Y36(_.SBq),_.Y36(_.Qsj))},x.\u0275dir=_.lG2({type:x,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),x})();class Vn{constructor(z,L,J,me){this.$implicit=z,this.ngForOf=L,this.index=J,this.count=me}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ui=(()=>{class x{constructor(L,J,me){this._viewContainer=L,this._template=J,this._differs=me,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(L){this._ngForOf=L,this._ngForOfDirty=!0}set ngForTrackBy(L){this._trackByFn=L}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(L){L&&(this._template=L)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const L=this._ngForOf;!this._differ&&L&&(this._differ=this._differs.find(L).create(this.ngForTrackBy))}if(this._differ){const L=this._differ.diff(this._ngForOf);L&&this._applyChanges(L)}}_applyChanges(L){const J=this._viewContainer;L.forEachOperation((me,He,Ye)=>{if(null==me.previousIndex)J.createEmbeddedView(this._template,new Vn(me.item,this._ngForOf,-1,-1),null===Ye?void 0:Ye);else if(null==Ye)J.remove(null===He?void 0:He);else if(null!==He){const ut=J.get(He);J.move(ut,Ye),$i(ut,me)}});for(let me=0,He=J.length;me{$i(J.get(me.currentIndex),me)})}static ngTemplateContextGuard(L,J){return!0}}return x.\u0275fac=function(L){return new(L||x)(_.Y36(_.s_b),_.Y36(_.Rgc),_.Y36(_.ZZ4))},x.\u0275dir=_.lG2({type:x,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),x})();function $i(x,z){x.context.$implicit=z.item}let Ci=(()=>{class x{constructor(L,J){this._viewContainer=L,this._context=new fi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=J}set ngIf(L){this._context.$implicit=this._context.ngIf=L,this._updateView()}set ngIfThen(L){cn("ngIfThen",L),this._thenTemplateRef=L,this._thenViewRef=null,this._updateView()}set ngIfElse(L){cn("ngIfElse",L),this._elseTemplateRef=L,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(L,J){return!0}}return x.\u0275fac=function(L){return new(L||x)(_.Y36(_.s_b),_.Y36(_.Rgc))},x.\u0275dir=_.lG2({type:x,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),x})();class fi{constructor(){this.$implicit=null,this.ngIf=null}}function cn(x,z){if(z&&!z.createEmbeddedView)throw new Error(`${x} must be a TemplateRef, but received '${(0,_.AaK)(z)}'.`)}class xn{constructor(z,L){this._viewContainerRef=z,this._templateRef=L,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(z){z&&!this._created?this.create():!z&&this._created&&this.destroy()}}let Ei=(()=>{class x{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(L){this._ngSwitch=L,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(L){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(L)}_matchCase(L){const J=L==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||J,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),J}_updateDefaultCases(L){if(this._defaultViews&&L!==this._defaultUsed){this._defaultUsed=L;for(let J=0;J{class x{constructor(L,J,me){this.ngSwitch=me,me._addCase(),this._view=new xn(L,J)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return x.\u0275fac=function(L){return new(L||x)(_.Y36(_.s_b),_.Y36(_.Rgc),_.Y36(Ei,9))},x.\u0275dir=_.lG2({type:x,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),x})(),Mt=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=_.oAB({type:x}),x.\u0275inj=_.cJS({}),x})();const rn="browser";function Tr(x){return x===rn}class xr{}},5e3:(nt,Fe,$)=>{"use strict";$.d(Fe,{$8M:()=>Zo,$Z:()=>Ph,AFp:()=>Gm,AaK:()=>D,BQk:()=>_l,CHM:()=>ps,CRH:()=>Em,CZH:()=>xl,CqO:()=>Tf,D6c:()=>EE,DdM:()=>om,EJc:()=>HC,EpF:()=>wf,F$t:()=>kf,F4k:()=>Mf,FYo:()=>fh,G48:()=>rE,Gf:()=>bm,GfV:()=>ph,Gpc:()=>T,Hsn:()=>Pf,Ikx:()=>vu,JOm:()=>Vr,KtG:()=>cr,LFG:()=>m,Lbi:()=>LC,Lck:()=>x0,MAs:()=>Df,NdJ:()=>fu,OlP:()=>un,Oqu:()=>_u,Q6J:()=>cu,QGY:()=>hu,QbO:()=>NC,Qsj:()=>J_,R0b:()=>nr,RDi:()=>f_,Rgc:()=>Da,SBq:()=>ca,Suo:()=>Cm,TTD:()=>H,TgZ:()=>pl,VKq:()=>am,W1O:()=>Mm,WLB:()=>lm,X6Q:()=>iE,Xpm:()=>hi,Y36:()=>So,YNc:()=>Ef,Yjl:()=>Bn,Yz7:()=>be,ZZ4:()=>qu,_Bn:()=>Qp,_UZ:()=>du,_Vd:()=>la,_c5:()=>bE,_uU:()=>rp,aQg:()=>Zu,cJS:()=>Ue,cg1:()=>yu,dDg:()=>qC,dqk:()=>Ft,eFA:()=>rg,ekj:()=>mu,eoX:()=>tg,f3M:()=>G,g9A:()=>Ym,h0i:()=>Ho,hGG:()=>CE,hij:()=>yl,iGM:()=>ym,ifc:()=>rt,ip1:()=>Wm,kL8:()=>Dp,kYT:()=>Kn,lG2:()=>jn,lri:()=>Xm,n5z:()=>Yo,n_E:()=>Sl,oAB:()=>An,oxw:()=>Rf,qLn:()=>ua,qOj:()=>su,qZA:()=>ml,rWj:()=>eg,sBO:()=>sE,sIi:()=>fa,s_b:()=>Ml,soG:()=>Il,uIk:()=>lu,vHH:()=>u,vpe:()=>Wr,wAp:()=>Rt,xp6:()=>Ch,ynx:()=>gl,z2F:()=>Ol,zSh:()=>Mc,zs3:()=>Ys});var _=$(7579),j=$(727),p=$(8306),h=$(6451),b=$(3099);function E(e){for(let t in e)if(e[t]===E)return t;throw Error("Could not find renamed property on target object.")}function I(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function A(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const P=E({__forward_ref__:E});function T(e){return e.__forward_ref__=T,e.toString=function(){return D(this())},e}function y(e){return l(e)?e():e}function l(e){return"function"==typeof e&&e.hasOwnProperty(P)&&e.__forward_ref__===T}class u extends Error{constructor(t,n){super(function d(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function C(e){return"string"==typeof e?e:null==e?"":String(e)}function w(e,t){throw new u(-201,!1)}function Oe(e,t){null==e&&function ye(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function be(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return Pt(e,kt)||Pt(e,Nn)}function Pt(e,t){return e.hasOwnProperty(t)?e[t]:null}function pt(e){return e&&(e.hasOwnProperty(gn)||e.hasOwnProperty(Tn))?e[gn]:null}const kt=E({\u0275prov:E}),gn=E({\u0275inj:E}),Nn=E({ngInjectableDef:E}),Tn=E({ngInjectorDef:E});var Re=(()=>((Re=Re||{})[Re.Default=0]="Default",Re[Re.Host=1]="Host",Re[Re.Self=2]="Self",Re[Re.SkipSelf=4]="SkipSelf",Re[Re.Optional=8]="Optional",Re))();let $e;function De(e){const t=$e;return $e=e,t}function Ce(e,t,n){const i=ft(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Re.Optional?null:void 0!==t?t:void w(D(e))}function We(e){return{toString:e}.toString()}var Qe=(()=>((Qe=Qe||{})[Qe.OnPush=0]="OnPush",Qe[Qe.Default=1]="Default",Qe))(),rt=(()=>{return(e=rt||(rt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",rt;var e})();const Ft=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),Zt={},bt=[],Ze=E({\u0275cmp:E}),ge=E({\u0275dir:E}),Ae=E({\u0275pipe:E}),ze=E({\u0275mod:E}),Ct=E({\u0275fac:E}),en=E({__NG_ELEMENT_ID__:E});let Rn=0;function hi(e){return We(()=>{const n=!0===e.standalone,i={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||bt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||rt.Emulated,id:"c"+Rn++,styles:e.styles||bt,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.dependencies,c=e.features;return r.inputs=En(e.inputs,i),r.outputs=En(e.outputs),c&&c.forEach(g=>g(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(ri).filter(ln):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(pn).filter(ln):null,r})}function ri(e){return Ht(e)||dn(e)}function ln(e){return null!==e}function An(e){return We(()=>({type:e.type,bootstrap:e.bootstrap||bt,declarations:e.declarations||bt,imports:e.imports||bt,exports:e.exports||bt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Kn(e,t){return We(()=>{const n=Dn(e,!0);n.declarations=t.declarations||bt,n.imports=t.imports||bt,n.exports=t.exports||bt})}function En(e,t){if(null==e)return Zt;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const jn=hi;function Bn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[Ze]||null}function dn(e){return e[ge]||null}function pn(e){return e[Ae]||null}function Dn(e,t){const n=e[ze]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function cn(e){return Array.isArray(e)&&"object"==typeof e[1]}function xn(e){return Array.isArray(e)&&!0===e[1]}function Ei(e){return 0!=(8&e.flags)}function Di(e){return 2==(2&e.flags)}function ir(e){return 1==(1&e.flags)}function Yn(e){return null!==e.template}function Ji(e){return 0!=(256&e[2])}function Ee(e,t){return e.hasOwnProperty(Ct)?e[Ct]:null}class oe{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function H(){return X}function X(e){return e.type.prototype.ngOnChanges&&(e.setInput=Le),ce}function ce(){const e=Dt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Zt)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Le(e,t,n,i){const r=Dt(e)||function Mt(e,t){return e[at]=t}(e,{previous:Zt,current:null}),s=r.current||(r.current={}),c=r.previous,g=this.declaredInputs[n],M=c[g];s[g]=new oe(M&&M.currentValue,t,c===Zt),e[i]=t}H.ngInherit=!0;const at="__ngSimpleChanges__";function Dt(e){return e[at]||null}function _n(e){for(;Array.isArray(e);)e=e[0];return e}function Si(e,t){return _n(t[e])}function Un(e,t){return _n(t[e.index])}function xr(e,t){return e.data[t]}function Pn(e,t){const n=t[e];return cn(n)?n:n[0]}function or(e){return 64==(64&e[2])}function bn(e,t){return null==t?null:e[t]}function Zn(e){e[18]=0}function Ki(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const St={lFrame:zo(null),bindingsEnabled:!0};function lr(){return St.bindingsEnabled}function qe(){return St.lFrame.lView}function Ot(){return St.lFrame.tView}function ps(e){return St.lFrame.contextLView=e,e[8]}function cr(e){return St.lFrame.contextLView=null,e}function mn(){let e=ks();for(;null!==e&&64===e.type;)e=e.parent;return e}function ks(){return St.lFrame.currentTNode}function wi(e,t){const n=St.lFrame;n.currentTNode=e,n.isParent=t}function Ps(){return St.lFrame.isParent}function io(){St.lFrame.isParent=!1}function S(){const e=St.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function lt(){return St.lFrame.bindingIndex++}function ur(e,t){const n=St.lFrame;n.bindingIndex=n.bindingRootIndex=e,hr(t)}function hr(e){St.lFrame.currentDirectiveIndex=e}function gs(){return St.lFrame.currentQueryIndex}function fr(e){St.lFrame.currentQueryIndex=e}function kr(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ls(e,t,n){if(n&Re.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&Re.Host||(r=kr(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=St.lFrame=Lr();return i.currentTNode=t,i.lView=e,!0}function Pr(e){const t=Lr(),n=e[1];St.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lr(){const e=St.lFrame,t=null===e?null:e.child;return null===t?zo(e):t}function zo(e){const 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 null!==e&&(e.child=t),t}function $o(){const e=St.lFrame;return St.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ro=$o;function _s(){const e=$o();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 ni(){return St.lFrame.selectedIndex}function Li(e){St.lFrame.selectedIndex=e}function fn(){const e=St.lFrame;return xr(e.tView,e.selectedIndex)}function oo(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[M]<0&&(e[18]+=65536),(g>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(g)}finally{}}}else try{s.call(g)}finally{}}class bs{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function J(e,t,n){let i=0;for(;it){c=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let qt=!0;function Xt(e){const t=qt;return qt=e,t}let pr=0;const In={};function mr(e,t){const n=Ko(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,gr(i.data,e),gr(t,null),gr(i.blueprint,null));const r=Vs(e,t),s=e.injectorIndex;if(Yt(r)){const c=zt(r),g=Vt(r,t),M=g[1].data;for(let V=0;V<8;V++)t[s+V]=g[c+V]|M[c+V]}return t[s+8]=r,s}function gr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ko(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){if(i=Ba(r),null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function js(e,t,n){!function Es(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(en)&&(i=n[en]),null==i&&(i=n[en]=pr++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Fl:t}(n);if("function"==typeof s){if(!Ls(t,e,i))return i&Re.Host?Ti(r,0,i):ts(t,n,i,r);try{const c=s(i);if(null!=c||i&Re.Optional)return c;w()}finally{ro()}}else if("number"==typeof s){let c=null,g=Ko(e,t),M=-1,V=i&Re.Host?t[16][6]:null;for((-1===g||i&Re.SkipSelf)&&(M=-1===g?Vs(e,t):t[g+8],-1!==M&&Na(i,!1)?(c=t[1],g=zt(M),t=Vt(M,t)):g=-1);-1!==g;){const K=t[1];if(Fa(s,g,K.data)){const te=La(g,t,n,c,i,V);if(te!==In)return te}M=t[g+8],-1!==M&&Na(i,t[1].data[g+8]===V)&&Fa(s,g,t)?(c=K,g=zt(M),t=Vt(M,t)):g=-1}}return r}function La(e,t,n,i,r,s){const c=t[1],g=c.data[e+8],K=lo(g,c,n,null==i?Di(g)&&qt:i!=c&&0!=(3&g.type),r&Re.Host&&s===g);return null!==K?Ds(t,c,K,g):In}function lo(e,t,n,i,r){const s=e.providerIndexes,c=t.data,g=1048575&s,M=e.directiveStart,K=s>>20,ve=r?g+K:e.directiveEnd;for(let Pe=i?g:g+K;Pe=M&&Ge.type===n)return Pe}if(r){const Pe=c[M];if(Pe&&Yn(Pe)&&Pe.type===n)return M}return null}function Ds(e,t,n,i){let r=e[n];const s=t.data;if(function xa(e){return e instanceof bs}(r)){const c=r;c.resolving&&function U(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new u(-200,`Circular dependency in DI detected for ${e}${n}`)}(function R(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():C(e)}(s[n]));const g=Xt(c.canSeeViewProviders);c.resolving=!0;const M=c.injectImpl?De(c.injectImpl):null;Ls(e,i,Re.Default);try{r=e[n]=c.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ns(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const c=X(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,c),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,c)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==M&&De(M),Xt(g),c.resolving=!1,ro()}}return r}function Fa(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ct]||qo(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[Ct]||qo(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function qo(e){return l(e)?()=>{const t=qo(y(e));return t&&t()}:Ee(e)}function Ba(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function Zo(e){return function Ra(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r{const i=function uo(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const c=new r(...s);return g.annotation=c,g;function g(M,V,K){const te=M.hasOwnProperty(_r)?M[_r]:Object.defineProperty(M,_r,{value:[]})[_r];for(;te.length<=K;)te.push(null);return(te[K]=te[K]||[]).push(c),M}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class un{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=be({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ni(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Br(n,t):t(n))}function Ul(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function po(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function hd(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ua(e,t){const n=Us(e,t);if(n>=0)return e[1|n]}function Us(e,t){return function za(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),c=e[s<t?r=s:i=s+1}return~(r<((Vr=Vr||{})[Vr.Important=1]="Important",Vr[Vr.DashCase=2]="DashCase",Vr))();const tc=new Map;let Lg=0;const ic="__ngContext__";function yi(e,t){cn(t)?(e[ic]=t[20],function Ng(e){tc.set(e[20],e)}(t)):e[ic]=t}function sc(e,t){return undefined(e,t)}function ia(e){const t=e[3];return xn(t)?t[3]:t}function oc(e){return Td(e[13])}function ac(e){return Td(e[4])}function Td(e){for(;null!==e&&!xn(e);)e=e[4];return e}function vo(e,t,n,i,r){if(null!=i){let s,c=!1;xn(i)?s=i:cn(i)&&(c=!0,i=i[0]);const g=_n(i);0===e&&null!==n?null==r?kd(t,n,g):Ws(t,n,g,r||null,!0):1===e&&null!==n?Ws(t,n,g,r||null,!0):2===e?function pc(e,t,n){const i=Ya(e,t);i&&function s_(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,g,c):3===e&&t.destroyNode(g),null!=s&&function l_(e,t,n,i,r){const s=n[7];s!==_n(n)&&vo(t,e,i,s,r);for(let g=10;g0&&(e[n-1][4]=i[4]);const s=Qo(e,10+t);!function Qg(e,t){ra(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const c=s[19];null!==c&&c.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Id(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&ra(e,t,n,3,null,null),function e_(e){let t=e[13];if(!t)return dc(e[1],e);for(;t;){let n=null;if(cn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)cn(t)&&dc(t[1],t),t=t[3];null===t&&(t=e),cn(t)&&dc(t[1],t),n=t&&t[4]}t=n}}(t)}}function dc(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function r_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[r=V]():i[r=-V].unsubscribe(),s+=2}else{const c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(let s=r+1;s{const c=s;Sc(c,n,[],i)&&(r||(r=[]),r.push(c))}),void 0!==r&&oh(r,n),n}function oh(e,t){for(let n=0;n{t.push(s)})}}function Sc(e,t,n,i){if(!(e=y(e)))return!1;let r=null,s=pt(e);const c=!s&&Ht(e);if(s||c){if(c&&!c.standalone)return!1;r=e}else{const M=e.ngModule;if(s=pt(M),!s)return!1;r=M}const g=i.has(r);if(c){if(g)return!1;if(i.add(r),c.dependencies){const M="function"==typeof c.dependencies?c.dependencies():c.dependencies;for(const V of M)Sc(V,t,n,i)}}else{if(!s)return!1;{if(null!=s.imports&&!g){let V;i.add(r);try{Br(s.imports,K=>{Sc(K,t,n,i)&&(V||(V=[]),V.push(K))})}finally{}void 0!==V&&oh(V,t)}if(!g){const V=Ee(r)||(()=>new r);t.push({provide:r,useFactory:V,deps:bt},{provide:ih,useValue:r,multi:!0},{provide:th,useValue:()=>m(r),multi:!0})}const M=s.providers;null==M||g||Br(M,K=>{t.push(K)})}}return r!==e&&void 0!==e.providers}const B_=E({provide:String,useValue:E});function wc(e){return null!==e&&"object"==typeof e&&B_ in e}function Ks(e){return"function"==typeof e}const Mc=new un("Set Injector scope."),el={},V_={};let Tc;function tl(){return void 0===Tc&&(Tc=new rh),Tc}class yo{}class ch extends yo{constructor(t,n,i,r){super(),this.parent=n,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,xc(t,c=>this.processProvider(c)),this.records.set(nh,bo(void 0,this)),r.has("environment")&&this.records.set(yo,bo(void 0,this));const s=this.records.get(Mc);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(ih.multi,bt,Re.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=o(this),i=De(void 0);try{return t()}finally{o(n),De(i)}}get(t,n=mo,i=Re.Default){this.assertNotDestroyed();const r=o(this),s=De(void 0);try{if(!(i&Re.SkipSelf)){let g=this.records.get(t);if(void 0===g){const M=function W_(e){return"function"==typeof e||"object"==typeof e&&e instanceof un}(t)&&ft(t);g=M&&this.injectableDefInScope(M)?bo(Ac(t),el):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(i&Re.Self?tl():this.parent).get(t,n=i&Re.Optional&&n===mo?null:n)}catch(c){if("NullInjectorError"===c.name){if((c[Xo]=c[Xo]||[]).unshift(D(t)),r)throw c;return function Ke(e,t,n,i){const r=e[Xo];throw t[Xl]&&r.unshift(t[Xl]),e.message=function st(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=D(t);if(Array.isArray(t))r=t.map(D).join(" -> ");else if("object"==typeof t){let s=[];for(let c in t)if(t.hasOwnProperty(c)){let g=t[c];s.push(c+":"+("string"==typeof g?JSON.stringify(g):D(g)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Ql,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Xo]=null,e}(c,t,"R3InjectorError",this.source)}throw c}finally{De(s),o(r)}}resolveInjectorInitializers(){const t=o(this),n=De(void 0);try{const i=this.get(th.multi,bt,Re.Self);for(const r of i)r()}finally{o(t),De(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(D(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new u(205,!1)}processProvider(t){let n=Ks(t=y(t))?t:y(t&&t.provide);const i=function U_(e){return wc(e)?bo(void 0,e.useValue):bo(uh(e),el)}(t);if(Ks(t)||!0!==t.multi)this.records.get(n);else{let r=this.records.get(n);r||(r=bo(void 0,el,!0),r.factory=()=>ae(r.multi),this.records.set(n,r)),n=t,r.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===el&&(n.value=V_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=y(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Ac(e){const t=ft(e),n=null!==t?t.factory:Ee(e);if(null!==n)return n;if(e instanceof un)throw new u(204,!1);if(e instanceof Function)return function j_(e){const t=e.length;if(t>0)throw po(t,"?"),new u(204,!1);const n=function _t(e){const t=e&&(e[kt]||e[Nn]);if(t){const n=function xt(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new u(204,!1)}function uh(e,t,n){let i;if(Ks(e)){const r=y(e);return Ee(r)||Ac(r)}if(wc(e))i=()=>y(e.useValue);else if(function lh(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...ae(e.deps||[]));else if(function ah(e){return!(!e||!e.useExisting)}(e))i=()=>m(y(e.useExisting));else{const r=y(e&&(e.useClass||e.provide));if(!function z_(e){return!!e.deps}(e))return Ee(r)||Ac(r);i=()=>new r(...ae(e.deps))}return i}function bo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function G_(e){return!!e.\u0275providers}function xc(e,t){for(const n of e)Array.isArray(n)?xc(n,t):G_(n)?xc(n.\u0275providers,t):t(n)}class dh{}class q_{resolveComponentFactory(t){throw function Y_(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let la=(()=>{class e{}return e.NULL=new q_,e})();function Z_(){return Co(mn(),qe())}function Co(e,t){return new ca(Un(e,t))}let ca=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Z_,e})();function Q_(e){return e instanceof ca?e.nativeElement:e}class fh{}let J_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function X_(){const e=qe(),n=Pn(mn().index,e);return(cn(n)?n:e)[11]}(),e})(),ev=(()=>{class e{}return e.\u0275prov=be({token:e,providedIn:"root",factory:()=>null}),e})();class ph{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const tv=new ph("14.3.0"),Ic={};function Rc(e){return e.ngOriginalError}class ua{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Rc(t);for(;n&&Rc(n);)n=Rc(n);return n||null}}function gh(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||e.charCodeAt(r+s)<=32)return r}n=r+1}}const _h="ng-template";function hv(e,t,n){let i=0;for(;is?"":r[te+1].toLowerCase();const Pe=8&i?ve:null;if(Pe&&-1!==gh(Pe,V,0)||2&i&&V!==ve){if(yr(i))return!1;c=!0}}}}else{if(!c&&!yr(i)&&!yr(M))return!1;if(c&&yr(M))continue;c=!1,i=M|1&i}}return yr(i)||c}function yr(e){return 0==(1&e)}function mv(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+g+'"':"")+"]"}else 8&i?r+="."+c:4&i&&(r+=" "+c);else""!==r&&!yr(c)&&(t+=bh(s,r),r=""),i=c,s=s||!yr(i);n++}return""!==r&&(t+=bh(s,r)),t}const jt={};function Ch(e){Eh(Ot(),qe(),ni()+e,!1)}function Eh(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&vs(t,s,n)}else{const s=e.preOrderHooks;null!==s&&ys(t,s,0,n)}Li(n)}function Mh(e,t=null,n=null,i){const r=Th(e,t,n,i);return r.resolveInjectorInitializers(),r}function Th(e,t=null,n=null,i,r=new Set){const s=[n||bt,N_(e)];return i=i||("object"==typeof e?void 0:D(e)),new ch(s,t||tl(),i||null,r)}let Ys=(()=>{class e{static create(n,i){var r;if(Array.isArray(n))return Mh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return Mh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=mo,e.NULL=new rh,e.\u0275prov=be({token:e,providedIn:"any",factory:()=>m(nh)}),e.__NG_ELEMENT_ID__=-1,e})();function So(e,t=Re.Default){const n=qe();return null===n?m(e,t):ka(mn(),n,y(e),t)}function Ph(){throw new Error("invalid")}function il(e,t){return e<<17|t<<2}function br(e){return e>>17&32767}function Nc(e){return 2|e}function as(e){return(131068&e)>>2}function Bc(e,t){return-131069&e|t<<2}function Hc(e){return 1|e}function Wh(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i22&&Eh(e,t,22,!1),n(i,r)}finally{Li(s)}}function Kh(e,t,n){if(Ei(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=M&&g.push(M),g.push(i,r,c)}}function ef(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function tf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function dy(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&eu(n)}}function eu(e){for(let i=oc(e);null!==i;i=ac(i))for(let r=10;r0&&eu(s)}const n=e[1].components;if(null!==n)for(let i=0;i0&&eu(r)}}function vy(e,t){const n=Pn(t,e),i=n[1];(function yy(e,t){for(let n=t.length;n-1&&(uc(t,i),Qo(n,i))}this._attachedToViewContainer=!1}Id(this._lView[1],this._lView)}onDestroy(t){qh(this._lView[1],this._lView,null,t)}markForCheck(){tu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){cl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new u(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Xg(e,t){ra(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new u(902,!1);this._appRef=t}}class by extends da{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;cl(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class ru extends la{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ht(t);return new ha(n,this.ngModule)}}function df(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Ey{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){const r=this.injector.get(t,Ic,i);return r!==Ic||n===Ic?r:this.parentInjector.get(t,n,i)}}class ha extends dh{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Cv(e){return e.map(bv).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return df(this.componentDef.inputs)}get outputs(){return df(this.componentDef.outputs)}create(t,n,i,r){let s=(r=r||this.ngModule)instanceof yo?r:null==r?void 0:r.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const c=s?new Ey(t,s):t,g=c.get(fh,null);if(null===g)throw new u(407,!1);const M=c.get(ev,null),V=g.createRenderer(null,this.componentDef),K=this.componentDef.selectors[0][0]||"div",te=i?function ty(e,t,n){return e.selectRootElement(t,n===rt.ShadowDom)}(V,i,this.componentDef.encapsulation):cc(V,K,function Cy(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(K)),ve=this.componentDef.onPush?288:272,Pe=Qc(0,null,null,1,0,null,null,null,null,null),Ge=ol(null,Pe,null,ve,null,null,g,V,M,c,null);let it,ot;Pr(Ge);try{const ht=function wy(e,t,n,i,r,s){const c=n[1];n[22]=e;const M=wo(c,22,2,"#host",null),V=M.mergedAttrs=t.hostAttrs;null!==V&&(ul(M,V,!0),null!==e&&(J(r,e,V),null!==M.classes&&gc(r,e,M.classes),null!==M.styles&&jd(r,e,M.styles)));const K=i.createRenderer(e,t),te=ol(n,Yh(t),null,t.onPush?32:16,n[22],M,i,K,s||null,null,null);return c.firstCreatePass&&(js(mr(M,n),c,t.type),tf(c,M),nf(M,n.length,1)),ll(n,te),n[22]=te}(te,this.componentDef,Ge,g,V);if(te)if(i)J(V,te,["ng-version",tv.full]);else{const{attrs:wt,classes:Je}=function Ev(e){const t=[],n=[];let i=1,r=2;for(;i0&&gc(V,te,Je.join(" "))}if(ot=xr(Pe,22),void 0!==n){const wt=ot.projection=[];for(let Je=0;Je=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ye(r.hostAttrs,n=Ye(n,r.hostAttrs))}}(i)}function ou(e){return e===Zt?{}:e===bt?[]:e}function xy(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function Iy(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function Oy(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let hl=null;function qs(){if(!hl){const e=Ft.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;ng(_n(nn[i.index])):i.index;let Lt=null;if(!g&&M&&(Lt=function zy(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sM?g[M]:null}"string"==typeof c&&(s+=2)}return null}(e,t,r,i.index)),null!==Lt)(Lt.__ngLastListenerFn__||Lt).__ngNextListenerFn__=s,Lt.__ngLastListenerFn__=s,Pe=!1;else{s=Of(i,t,te,s,!1);const nn=n.listen(ht,r,s);ve.push(s,nn),K&&K.push(r,Je,wt,wt+1)}}else s=Of(i,t,te,s,!1);const Ge=i.outputs;let it;if(Pe&&null!==Ge&&(it=Ge[r])){const ot=it.length;if(ot)for(let ht=0;ht0;)t=t[15],e--;return t}(e,St.lFrame.contextLView))[8]}(e)}function $y(e,t){let n=null;const i=function gv(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r=0}function mu(e,t){return function Cr(e,t,n,i){const r=qe(),s=Ot(),c=function Kt(e){const t=St.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);s.firstUpdatePass&&function Xf(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[ni()],c=function Jf(e,t){return t>=e.expandoStartIndex}(e,n);(function ip(e,t){return 0!=(e.flags&(t?16:32))})(s,i)&&null===t&&!c&&(t=!1),t=function nb(e,t,n,i){const r=function es(e){const t=St.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=ma(n=gu(null,e,t,n,i),t.attrs,i),s=null);else{const c=t.directiveStylingLast;if(-1===c||e[c]!==r)if(n=gu(r,e,t,n,i),null===s){let M=function ib(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==as(i))return e[br(i)]}(e,t,i);void 0!==M&&Array.isArray(M)&&(M=gu(null,e,t,M[1],i),M=ma(M,t.attrs,i),function rb(e,t,n,i){e[br(n?t.classBindings:t.styleBindings)]=i}(e,t,i,M))}else s=function sb(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(V=!0)}else K=n;if(r)if(0!==M){const ve=br(e[g+1]);e[i+1]=il(ve,g),0!==ve&&(e[ve+1]=Bc(e[ve+1],i)),e[g+1]=function jv(e,t){return 131071&e|t<<17}(e[g+1],i)}else e[i+1]=il(g,0),0!==g&&(e[g+1]=Bc(e[g+1],i)),g=i;else e[i+1]=il(M,0),0===g?g=i:e[M+1]=Bc(e[M+1],i),M=i;V&&(e[i+1]=Nc(e[i+1])),$f(e,K,i,!0),$f(e,K,i,!1),function Gy(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Us(s,t)>=0&&(n[i+1]=Hc(n[i+1]))}(t,K,e,i,s),c=il(g,M),s?t.classBindings=c:t.styleBindings=c}(r,s,t,n,c,i)}}(s,e,c,i),t!==jt&&bi(r,c,t)&&function tp(e,t,n,i,r,s,c,g){if(!(3&t.type))return;const M=e.data,V=M[g+1];vl(function Nh(e){return 1==(1&e)}(V)?np(M,t,n,r,as(V),c):void 0)||(vl(s)||function Fh(e){return 2==(2&e)}(V)&&(s=np(M,null,n,r,g,c)),function c_(e,t,n,i,r){if(t)r?e.addClass(n,i):e.removeClass(n,i);else{let s=-1===i.indexOf("-")?void 0:Vr.DashCase;null==r?e.removeStyle(n,i,s):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=Vr.Important),e.setStyle(n,i,r,s))}}(i,c,Si(ni(),n),r,s))}(s,s.data[ni()],r,r[11],e,r[c+1]=function lb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(function Ms(e){return e instanceof class Gd{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),i,c)}(e,t,null,!0),mu}function gu(e,t,n,i,r){let s=null;const c=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g0;){const M=e[r],V=Array.isArray(M),K=V?M[1]:M,te=null===K;let ve=n[r+1];ve===jt&&(ve=te?bt:void 0);let Pe=te?Ua(ve,i):K===i?ve:void 0;if(V&&!vl(Pe)&&(Pe=Ua(M,i)),vl(Pe)&&(g=Pe,c))return g;const Ge=e[r+1];r=c?br(Ge):as(Ge)}if(null!==t){let M=s?t.residualClasses:t.residualStyles;null!=M&&(g=Ua(M,i))}return g}function vl(e){return void 0!==e}function rp(e,t=""){const n=qe(),i=Ot(),r=e+22,s=i.firstCreatePass?wo(i,r,1,t,null):i.data[r],c=n[r]=function lc(e,t){return e.createText(t)}(n[11],t);qa(i,n,c,s),wi(s,!1)}function _u(e){return yl("",e,""),_u}function yl(e,t,n){const i=qe(),r=function Ao(e,t,n,i){return bi(e,lt(),n)?t+C(n)+i:jt}(i,e,t,n);return r!==jt&&function ls(e,t,n){const i=Si(t,e);!function Ad(e,t,n){e.setValue(t,n)}(e[11],i,n)}(i,ni(),r),yl}function vu(e,t,n){const i=qe();return bi(i,lt(),t)&&Zi(Ot(),fn(),i,e,t,i[11],n,!0),vu}const Qs=void 0;var Ab=["en",[["a","p"],["AM","PM"],Qs],[["AM","PM"],Qs,Qs],[["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"]],Qs,[["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"]],Qs,[["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 a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qs,"{1} 'at' {0}",Qs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Tb(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let No={};function yu(e){const t=function xb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Sp(t);if(n)return n;const i=t.split("-")[0];if(n=Sp(i),n)return n;if("en"===i)return Ab;throw new u(701,!1)}function Dp(e){return yu(e)[Rt.PluralCase]}function Sp(e){return e in No||(No[e]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[e]),No[e]}var Rt=(()=>((Rt=Rt||{})[Rt.LocaleId=0]="LocaleId",Rt[Rt.DayPeriodsFormat=1]="DayPeriodsFormat",Rt[Rt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Rt[Rt.DaysFormat=3]="DaysFormat",Rt[Rt.DaysStandalone=4]="DaysStandalone",Rt[Rt.MonthsFormat=5]="MonthsFormat",Rt[Rt.MonthsStandalone=6]="MonthsStandalone",Rt[Rt.Eras=7]="Eras",Rt[Rt.FirstDayOfWeek=8]="FirstDayOfWeek",Rt[Rt.WeekendRange=9]="WeekendRange",Rt[Rt.DateFormat=10]="DateFormat",Rt[Rt.TimeFormat=11]="TimeFormat",Rt[Rt.DateTimeFormat=12]="DateTimeFormat",Rt[Rt.NumberSymbols=13]="NumberSymbols",Rt[Rt.NumberFormats=14]="NumberFormats",Rt[Rt.CurrencyCode=15]="CurrencyCode",Rt[Rt.CurrencySymbol=16]="CurrencySymbol",Rt[Rt.CurrencyName=17]="CurrencyName",Rt[Rt.Currencies=18]="Currencies",Rt[Rt.Directionality=19]="Directionality",Rt[Rt.PluralCase=20]="PluralCase",Rt[Rt.ExtraData=21]="ExtraData",Rt))();const Bo="en-US";let wp=Bo;function Eu(e,t,n,i,r){if(e=y(e),Array.isArray(e))for(let s=0;s>20;if(Ks(e)||!e.multi){const Pe=new bs(M,r,So),Ge=Su(g,t,r?K:K+ve,te);-1===Ge?(js(mr(V,c),s,g),Du(s,e,t.length),t.push(g),V.directiveStart++,V.directiveEnd++,r&&(V.providerIndexes+=1048576),n.push(Pe),c.push(Pe)):(n[Ge]=Pe,c[Ge]=Pe)}else{const Pe=Su(g,t,K+ve,te),Ge=Su(g,t,K,K+ve),it=Pe>=0&&n[Pe],ot=Ge>=0&&n[Ge];if(r&&!ot||!r&&!it){js(mr(V,c),s,g);const ht=function T0(e,t,n,i,r){const s=new bs(e,n,So);return s.multi=[],s.index=t,s.componentProviders=0,Zp(s,r,i&&!n),s}(r?M0:w0,n.length,r,i,M);!r&&ot&&(n[Ge].providerFactory=ht),Du(s,e,t.length,0),t.push(g),V.directiveStart++,V.directiveEnd++,r&&(V.providerIndexes+=1048576),n.push(ht),c.push(ht)}else Du(s,e,Pe>-1?Pe:Ge,Zp(n[r?Ge:Pe],M,!r&&i));!r&&i&&ot&&n[Ge].componentProviders++}}}function Du(e,t,n,i){const r=Ks(t),s=function H_(e){return!!e.useClass}(t);if(r||s){const M=(s?y(t.useClass):t).prototype.ngOnDestroy;if(M){const V=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const K=V.indexOf(n);-1===K?V.push(n,[i,M]):V[K+1].push(i,M)}else V.push(n,M)}}}function Zp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Su(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function S0(e,t,n){const i=Ot();if(i.firstCreatePass){const r=Yn(e);Eu(n,i.data,i.blueprint,r,!0),Eu(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class Ho{}function x0(e,t){return new Jp(e,null!=t?t:null)}class Jp extends Ho{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ru(this);const i=Dn(t);this._bootstrapComponents=function os(e){return e instanceof Function?e():e}(i.bootstrap),this._r3Injector=Th(t,n,[{provide:Ho,useValue:this},{provide:la,useValue:this.componentFactoryResolver}],D(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Mu extends class A0{}{constructor(t){super(),this.moduleType=t}create(t){return new Jp(this.moduleType,t)}}function om(e,t,n){const i=S()+e,r=qe();return r[i]===jt?Ur(r,i,n?t.call(n):t()):function pa(e,t){return e[t]}(r,i)}function am(e,t,n,i){return function cm(e,t,n,i,r,s){const c=t+n;return bi(e,c,r)?Ur(e,c+1,s?i.call(s,r):i(r)):Ca(e,c+1)}(qe(),S(),e,t,n,i)}function lm(e,t,n,i,r){return function um(e,t,n,i,r,s,c){const g=t+n;return function Zs(e,t,n,i){const r=bi(e,t,n);return bi(e,t+1,i)||r}(e,g,r,s)?Ur(e,g+2,c?i.call(c,r,s):i(r,s)):Ca(e,g+2)}(qe(),S(),e,t,n,i,r)}function Ca(e,t){const n=e[t];return n===jt?void 0:n}function Au(e){return t=>{setTimeout(e,void 0,t)}}const Wr=class tC extends _.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,c;let g=t,M=n||(()=>null),V=i;if(t&&"object"==typeof t){const te=t;g=null===(r=te.next)||void 0===r?void 0:r.bind(te),M=null===(s=te.error)||void 0===s?void 0:s.bind(te),V=null===(c=te.complete)||void 0===c?void 0:c.bind(te)}this.__isAsync&&(M=Au(M),g&&(g=Au(g)),V&&(V=Au(V)));const K=super.subscribe({next:g,error:M,complete:V});return t instanceof j.w0&&t.add(K),K}};function nC(){return this._results[qs()]()}class Sl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=qs(),i=Sl.prototype;i[n]||(i[n]=nC)}get changes(){return this._changes||(this._changes=new Wr)}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){const i=this;i.dirty=!1;const r=Ni(t);(this._changesDetected=!function ud(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=sC,e})();const iC=Da,rC=class extends iC{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t,n){const i=this._declarationTContainer.tViews,r=ol(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,n||null);r[17]=this._declarationLView[this._declarationTContainer.index];const c=this._declarationLView[19];return null!==c&&(r[19]=c.createEmbeddedView(i)),Yc(i,r,t),new da(r)}};function sC(){return wl(mn(),qe())}function wl(e,t){return 4&e.type?new rC(t,e,Co(e,t)):null}let Ml=(()=>{class e{}return e.__NG_ELEMENT_ID__=oC,e})();function oC(){return gm(mn(),qe())}const aC=Ml,pm=class extends aC{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Co(this._hostTNode,this._hostLView)}get injector(){return new Nr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Vs(this._hostTNode,this._hostLView);if(Yt(t)){const n=Vt(t,this._hostLView),i=zt(t);return new Nr(n[1].data[i+8],n)}return new Nr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const c=t.createEmbeddedView(n||{},s);return this.insert(c,r),c}createComponent(t,n,i,r,s){const c=t&&!function fo(e){return"function"==typeof e}(t);let g;if(c)g=n;else{const te=n||{};g=te.index,i=te.injector,r=te.projectableNodes,s=te.environmentInjector||te.ngModuleRef}const M=c?t:new ha(Ht(t)),V=i||this.parentInjector;if(!s&&null==M.ngModule){const ve=(c?V:this.parentInjector).get(yo,null);ve&&(s=ve)}const K=M.create(V,r,void 0,s);return this.insert(K.hostView,g),K}insert(t,n){const i=t._lView,r=i[1];if(function hs(e){return xn(e[3])}(i)){const K=this.indexOf(t);if(-1!==K)this.detach(K);else{const te=i[3],ve=new pm(te,te[6],te[3]);ve.detach(ve.indexOf(t))}}const s=this._adjustIndex(n),c=this._lContainer;!function t_(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i0)i.push(c[g/2]);else{const V=s[g+1],K=t[-M];for(let te=10;te{class e{constructor(n){this.appInits=n,this.resolve=Al,this.reject=Al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:g,error:M})});n.push(c)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(m(Wm,8))},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Gm=new un("AppId",{providedIn:"root",factory:function Km(){return`${Hu()}${Hu()}${Hu()}`}});function Hu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ym=new un("Platform Initializer"),LC=new un("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),FC=new un("appBootstrapListener"),NC=new un("AnimationModuleType"),Il=new un("LocaleId",{providedIn:"root",factory:()=>G(Il,Re.Optional|Re.SkipSelf)||function BC(){return"undefined"!=typeof $localize&&$localize.locale||Bo}()}),HC=new un("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),zC=(()=>Promise.resolve(0))();function Vu(e){"undefined"==typeof Zone?zC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class nr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Wr(!1),this.onMicrotaskEmpty=new Wr(!1),this.onStable=new Wr(!1),this.onError=new Wr(!1),"undefined"==typeof Zone)throw new u(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new s("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $C(){let e=Ft.requestAnimationFrame,t=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function KC(e){const t=()=>{!function GC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ft,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Uu(e),e.isCheckStableRunning=!0,ju(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Uu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,c,g)=>{try{return Qm(e),n.invokeTask(r,s,c,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Jm(e)}},onInvoke:(n,i,r,s,c,g,M)=>{try{return Qm(e),n.invoke(r,s,c,g,M)}finally{e.shouldCoalesceRunChangeDetection&&t(),Jm(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Uu(e),ju(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nr.isInAngularZone())throw new u(909,!1)}static assertNotInAngularZone(){if(nr.isInAngularZone())throw new u(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,c=s.scheduleEventTask("NgZoneEvent: "+r,t,WC,Al,Al);try{return s.runTask(c,n,i)}finally{s.cancelTask(c)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const WC={};function ju(e){if(0==e._nesting&&!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 Uu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Qm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jm(e){e._nesting--,ju(e)}class YC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Wr,this.onMicrotaskEmpty=new Wr,this.onStable=new Wr,this.onError=new Wr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}const Xm=new un(""),eg=new un("");let wa,qC=(()=>{class e{constructor(n,i,r){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,wa||(function ZC(e){wa=e}(r),r.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{nr.assertNotInAngularZone(),Vu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Vu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(m(nr),m(tg),m(eg))},e.\u0275prov=be({token:e,factory:e.\u0275fac}),e})(),tg=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){var r;return null!==(r=null==wa?void 0:wa.findTestabilityInTree(this,n,i))&&void 0!==r?r:null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Gr=null;const ng=new un("AllowMultipleToken"),zu=new un("PlatformDestroyListeners");function rg(e,t,n=[]){const i=`Platform: ${t}`,r=new un(i);return(s=[])=>{let c=$u();if(!c||c.injector.get(ng,!1)){const g=[...n,...s,{provide:r,useValue:!0}];e?e(g):function XC(e){if(Gr&&!Gr.get(ng,!1))throw new u(400,!1);Gr=e;const t=e.get(og);(function ig(e){const t=e.get(Ym,null);t&&t.forEach(n=>n())})(e)}(function sg(e=[],t){return Ys.create({name:t,providers:[{provide:Mc,useValue:"platform"},{provide:zu,useValue:new Set([()=>Gr=null])},...e]})}(g,i))}return function tE(e){const t=$u();if(!t)throw new u(401,!1);return t}()}}function $u(){var e;return null!==(e=null==Gr?void 0:Gr.get(og))&&void 0!==e?e:null}let og=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const r=function lg(e,t){let n;return n="noop"===e?new YC:("zone.js"===e?void 0:e)||new nr(t),n}(null==i?void 0:i.ngZone,function ag(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:nr,useValue:r}];return r.run(()=>{const c=Ys.create({providers:s,parent:this.injector,name:n.moduleType.name}),g=n.create(c),M=g.injector.get(ua,null);if(!M)throw new u(402,!1);return r.runOutsideAngular(()=>{const V=r.onError.subscribe({next:K=>{M.handleError(K)}});g.onDestroy(()=>{Rl(this._modules,g),V.unsubscribe()})}),function cg(e,t,n){try{const i=n();return hu(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(M,r,()=>{const V=g.injector.get(xl);return V.runInitializers(),V.donePromise.then(()=>(function Mp(e){Oe(e,"Expected localeId to be defined"),"string"==typeof e&&(wp=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(Il,Bo)||Bo),this._moduleDoBootstrap(g),g))})})}bootstrapModule(n,i=[]){const r=ug({},i);return function QC(e,t,n){const i=new Mu(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(Ol);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new u(403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new u(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(zu,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(m(Ys))},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ug(e,t){return Array.isArray(t)?t.reduce(ug,e):Object.assign(Object.assign({},e),t)}let Ol=(()=>{class e{constructor(n,i,r){this._zone=n,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new p.y(g=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{g.next(this._stable),g.complete()})}),c=new p.y(g=>{let M;this._zone.runOutsideAngular(()=>{M=this._zone.onStable.subscribe(()=>{nr.assertNotInAngularZone(),Vu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,g.next(!0))})})});const V=this._zone.onUnstable.subscribe(()=>{nr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{g.next(!1)}))});return()=>{M.unsubscribe(),V.unsubscribe()}});this.isStable=(0,h.T)(s,c.pipe((0,b.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const r=n instanceof dh;if(!this._injector.get(xl).done)throw!r&&function si(e){const t=Ht(e)||dn(e)||pn(e);return null!==t&&t.standalone}(n),new u(405,false);let c;c=r?n:this._injector.get(la).resolveComponentFactory(n),this.componentTypes.push(c.componentType);const g=function JC(e){return e.isBoundToModule}(c)?void 0:this._injector.get(Ho),V=c.create(Ys.NULL,[],i||c.selector,g),K=V.location.nativeElement,te=V.injector.get(Xm,null);return null==te||te.registerApplication(K),V.onDestroy(()=>{this.detachView(V.hostView),Rl(this.components,V),null==te||te.unregisterApplication(K)}),this._loadComponent(V),V}tick(){if(this._runningTick)throw new u(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Rl(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(FC,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Rl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new u(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(m(nr),m(yo),m(ua))},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Rl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let hg=!0,fg=!1;function iE(){return fg=!0,hg}function rE(){if(fg)throw new Error("Cannot enable prod mode after platform setup.");hg=!1}let sE=(()=>{class e{}return e.__NG_ELEMENT_ID__=oE,e})();function oE(e){return function aE(e,t,n){if(Di(e)&&!n){const i=Pn(e.index,t);return new da(i,i)}return 47&e.type?new da(t[16],t):null}(mn(),qe(),16==(16&e))}class _g{constructor(){}supports(t){return fa(t)}create(t){return new fE(t)}}const hE=(e,t)=>t;class fE{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||hE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const c=!i||n&&n.currentIndex{c=this._trackByFn(r,g),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,g,c,r)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,c,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new pE(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new vg),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class pE{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class mE{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class vg{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new mE,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yg(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,c=r._next;return s&&(s._next=c),c&&(c._prev=s),r._next=null,r._prev=null,r}const i=new _E(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class _E{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Cg(){return new qu([new _g])}let qu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Cg()),deps:[[e,new Tt,new Bt]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new u(901,!1)}}return e.\u0275prov=be({token:e,providedIn:"root",factory:Cg}),e})();function Eg(){return new Zu([new bg])}let Zu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Eg()),deps:[[e,new Tt,new Bt]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new u(901,!1)}}return e.\u0275prov=be({token:e,providedIn:"root",factory:Eg}),e})();const bE=rg(null,"core",[]);let CE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(m(Ol))},e.\u0275mod=An({type:e}),e.\u0275inj=Ue({}),e})();function EE(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},2382:(nt,Fe,$)=>{"use strict";$.d(Fe,{Zs:()=>Zn,Fj:()=>v,NI:()=>Di,oH:()=>mi,sg:()=>oe,Cf:()=>Q,JU:()=>u,a5:()=>ie,JJ:()=>Qe,F:()=>cn,wV:()=>Xi,UX:()=>cr,kI:()=>Be});var _=$(5e3),j=$(9808),p=$(2076),h=$(8306),b=$(4742),E=$(8421),I=$(3269),D=$(5403),A=$(3268),P=$(1810),y=$(4004);let l=(()=>{class B{constructor(S,q){this._renderer=S,this._elementRef=q,this.onChange=je=>{},this.onTouched=()=>{}}setProperty(S,q){this._renderer.setProperty(this._elementRef.nativeElement,S,q)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(_.Qsj),_.Y36(_.SBq))},B.\u0275dir=_.lG2({type:B}),B})(),f=(()=>{class B extends l{}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,features:[_.qOj]}),B})();const u=new _.OlP("NgValueAccessor"),R={provide:u,useExisting:(0,_.Gpc)(()=>v),multi:!0},W=new _.OlP("CompositionEventMode");let v=(()=>{class B extends l{constructor(S,q,je){super(S,q),this._compositionMode=je,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function U(){const B=(0,j.q)()?(0,j.q)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(S){this.setProperty("value",null==S?"":S)}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(W,8))},B.\u0275dir=_.lG2({type:B,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(S,q){1&S&&_.NdJ("input",function(lt){return q._handleInput(lt.target.value)})("blur",function(){return q.onTouched()})("compositionstart",function(){return q._compositionStart()})("compositionend",function(lt){return q._compositionEnd(lt.target.value)})},features:[_._Bn([R]),_.qOj]}),B})();function F(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}function Z(B){return null!=B&&"number"==typeof B.length}const Q=new _.OlP("NgValidators"),ne=new _.OlP("NgAsyncValidators"),we=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Be{static min(k){return function xe(B){return k=>{if(F(k.value)||F(B))return null;const S=parseFloat(k.value);return!isNaN(S)&&S{if(F(k.value)||F(B))return null;const S=parseFloat(k.value);return!isNaN(S)&&S>B?{max:{max:B,actual:k.value}}:null}}(k)}static required(k){return re(k)}static requiredTrue(k){return _e(k)}static email(k){return function ee(B){return F(B.value)||we.test(B.value)?null:{email:!0}}(k)}static minLength(k){return function he(B){return k=>F(k.value)||!Z(k.value)?null:k.value.lengthZ(k.value)&&k.value.length>B?{maxlength:{requiredLength:B,actualLength:k.value.length}}:null}(k)}static pattern(k){return function Oe(B){if(!B)return ye;let k,S;return"string"==typeof B?(S="","^"!==B.charAt(0)&&(S+="^"),S+=B,"$"!==B.charAt(B.length-1)&&(S+="$"),k=new RegExp(S)):(S=B.toString(),k=B),q=>{if(F(q.value))return null;const je=q.value;return k.test(je)?null:{pattern:{requiredPattern:S,actualValue:je}}}}(k)}static nullValidator(k){return null}static compose(k){return ft(k)}static composeAsync(k){return Pt(k)}}function re(B){return F(B.value)?{required:!0}:null}function _e(B){return!0===B.value?null:{required:!0}}function ye(B){return null}function Ne(B){return null!=B}function ue(B){return(0,_.QGY)(B)?(0,p.D)(B):B}function de(B){let k={};return B.forEach(S=>{k=null!=S?Object.assign(Object.assign({},k),S):k}),0===Object.keys(k).length?null:k}function be(B,k){return k.map(S=>S(B))}function Ue(B){return B.map(k=>function ke(B){return!B.validate}(k)?k:S=>k.validate(S))}function ft(B){if(!B)return null;const k=B.filter(Ne);return 0==k.length?null:function(S){return de(be(S,k))}}function Xe(B){return null!=B?ft(Ue(B)):null}function Pt(B){if(!B)return null;const k=B.filter(Ne);return 0==k.length?null:function(S){return function T(...B){const k=(0,I.jO)(B),{args:S,keys:q}=(0,b.D)(B),je=new h.y(lt=>{const{length:Kt}=S;if(!Kt)return void lt.complete();const ti=new Array(Kt);let Pi=Kt,ur=Kt;for(let dr=0;dr{hr||(hr=!0,ur--),ti[dr]=es},()=>Pi--,void 0,()=>{(!Pi||!hr)&&(ur||lt.next(q?(0,P.n)(q,ti):ti),lt.complete())}))}});return k?je.pipe((0,A.Z)(k)):je}(be(S,k).map(ue)).pipe((0,y.U)(de))}}function _t(B){return null!=B?Pt(Ue(B)):null}function xt(B,k){return null===B?[k]:Array.isArray(B)?[...B,k]:[B,k]}function pt(B){return B._rawValidators}function kt(B){return B._rawAsyncValidators}function gn(B){return B?Array.isArray(B)?B:[B]:[]}function Nn(B,k){return Array.isArray(B)?B.includes(k):B===k}function Tn(B,k){const S=gn(k);return gn(B).forEach(je=>{Nn(S,je)||S.push(je)}),S}function Re(B,k){return gn(k).filter(S=>!Nn(B,S))}class $e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(k){this._rawValidators=k||[],this._composedValidatorFn=Xe(this._rawValidators)}_setAsyncValidators(k){this._rawAsyncValidators=k||[],this._composedAsyncValidatorFn=_t(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(k){this._onDestroyCallbacks.push(k)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(k=>k()),this._onDestroyCallbacks=[]}reset(k){this.control&&this.control.reset(k)}hasError(k,S){return!!this.control&&this.control.hasError(k,S)}getError(k,S){return this.control?this.control.getError(k,S):null}}class ie extends $e{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class De extends $e{get formDirective(){return null}get path(){return null}}let Qe=(()=>{class B extends class Ce{constructor(k){this._cd=k}get isTouched(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.touched)}get isUntouched(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.untouched)}get isPristine(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.pristine)}get isDirty(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.dirty)}get isValid(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.valid)}get isInvalid(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.invalid)}get isPending(){var k,S;return!(null===(S=null===(k=this._cd)||void 0===k?void 0:k.control)||void 0===S||!S.pending)}get isSubmitted(){var k;return!(null===(k=this._cd)||void 0===k||!k.submitted)}}{constructor(S){super(S)}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(ie,2))},B.\u0275dir=_.lG2({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,q){2&S&&_.ekj("ng-untouched",q.isUntouched)("ng-touched",q.isTouched)("ng-pristine",q.isPristine)("ng-dirty",q.isDirty)("ng-valid",q.isValid)("ng-invalid",q.isInvalid)("ng-pending",q.isPending)},features:[_.qOj]}),B})();const An="VALID",Kn="INVALID",En="PENDING",jn="DISABLED";function Bn(B){return(si(B)?B.validators:B)||null}function Ht(B){return Array.isArray(B)?Xe(B):B||null}function dn(B,k){return(si(k)?k.asyncValidators:B)||null}function pn(B){return Array.isArray(B)?_t(B):B||null}function si(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}class Xn{constructor(k,S){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=k,this._rawAsyncValidators=S,this._composedValidatorFn=Ht(this._rawValidators),this._composedAsyncValidatorFn=pn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(k){this._rawValidators=this._composedValidatorFn=k}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(k){this._rawAsyncValidators=this._composedAsyncValidatorFn=k}get parent(){return this._parent}get valid(){return this.status===An}get invalid(){return this.status===Kn}get pending(){return this.status==En}get disabled(){return this.status===jn}get enabled(){return this.status!==jn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(k){this._rawValidators=k,this._composedValidatorFn=Ht(k)}setAsyncValidators(k){this._rawAsyncValidators=k,this._composedAsyncValidatorFn=pn(k)}addValidators(k){this.setValidators(Tn(k,this._rawValidators))}addAsyncValidators(k){this.setAsyncValidators(Tn(k,this._rawAsyncValidators))}removeValidators(k){this.setValidators(Re(k,this._rawValidators))}removeAsyncValidators(k){this.setAsyncValidators(Re(k,this._rawAsyncValidators))}hasValidator(k){return Nn(this._rawValidators,k)}hasAsyncValidator(k){return Nn(this._rawAsyncValidators,k)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(k={}){this.touched=!0,this._parent&&!k.onlySelf&&this._parent.markAsTouched(k)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(k=>k.markAllAsTouched())}markAsUntouched(k={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(S=>{S.markAsUntouched({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}markAsDirty(k={}){this.pristine=!1,this._parent&&!k.onlySelf&&this._parent.markAsDirty(k)}markAsPristine(k={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(S=>{S.markAsPristine({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}markAsPending(k={}){this.status=En,!1!==k.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!k.onlySelf&&this._parent.markAsPending(k)}disable(k={}){const S=this._parentMarkedDirty(k.onlySelf);this.status=jn,this.errors=null,this._forEachChild(q=>{q.disable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this._updateValue(),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:S})),this._onDisabledChange.forEach(q=>q(!0))}enable(k={}){const S=this._parentMarkedDirty(k.onlySelf);this.status=An,this._forEachChild(q=>{q.enable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:S})),this._onDisabledChange.forEach(q=>q(!1))}_updateAncestors(k){this._parent&&!k.onlySelf&&(this._parent.updateValueAndValidity(k),k.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(k){this._parent=k}getRawValue(){return this.value}updateValueAndValidity(k={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===An||this.status===En)&&this._runAsyncValidator(k.emitEvent)),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!k.onlySelf&&this._parent.updateValueAndValidity(k)}_updateTreeValidity(k={emitEvent:!0}){this._forEachChild(S=>S._updateTreeValidity(k)),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jn:An}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(k){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const S=ue(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(q=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(q,{emitEvent:k})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(k,S={}){this.errors=k,this._updateControlsErrors(!1!==S.emitEvent)}get(k){let S=k;return null==S||(Array.isArray(S)||(S=S.split(".")),0===S.length)?null:S.reduce((q,je)=>q&&q._find(je),this)}getError(k,S){const q=S?this.get(S):this;return q&&q.errors?q.errors[k]:null}hasError(k,S){return!!this.getError(k,S)}get root(){let k=this;for(;k._parent;)k=k._parent;return k}_updateControlsErrors(k){this.status=this._calculateStatus(),k&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(k)}_initObservables(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}_calculateStatus(){return this._allControlsDisabled()?jn:this.errors?Kn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(Kn)?Kn:An}_anyControlsHaveStatus(k){return this._anyControls(S=>S.status===k)}_anyControlsDirty(){return this._anyControls(k=>k.dirty)}_anyControlsTouched(){return this._anyControls(k=>k.touched)}_updatePristine(k={}){this.pristine=!this._anyControlsDirty(),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}_updateTouched(k={}){this.touched=this._anyControlsTouched(),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}_registerOnCollectionChange(k){this._onCollectionChange=k}_setUpdateStrategy(k){si(k)&&null!=k.updateOn&&(this._updateOn=k.updateOn)}_parentMarkedDirty(k){return!k&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(k){return null}}class Hn extends Xn{constructor(k,S,q){super(Bn(S),dn(q,S)),this.controls=k,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(k,S){return this.controls[k]?this.controls[k]:(this.controls[k]=S,S.setParent(this),S._registerOnCollectionChange(this._onCollectionChange),S)}addControl(k,S,q={}){this.registerControl(k,S),this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}removeControl(k,S={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}setControl(k,S,q={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],S&&this.registerControl(k,S),this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}contains(k){return this.controls.hasOwnProperty(k)&&this.controls[k].enabled}setValue(k,S={}){(function Jn(B,k,S){B._forEachChild((q,je)=>{if(void 0===S[je])throw new _.vHH(1002,"")})})(this,0,k),Object.keys(k).forEach(q=>{(function Dn(B,k,S){const q=B.controls;if(!(k?Object.keys(q):q).length)throw new _.vHH(1e3,"");if(!q[S])throw new _.vHH(1001,"")})(this,!0,q),this.controls[q].setValue(k[q],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(k,S={}){null!=k&&(Object.keys(k).forEach(q=>{const je=this.controls[q];je&&je.patchValue(k[q],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(k={},S={}){this._forEachChild((q,je)=>{q.reset(k[je],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(k,S,q)=>(k[q]=S.getRawValue(),k))}_syncPendingControls(){let k=this._reduceChildren(!1,(S,q)=>!!q._syncPendingControls()||S);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_forEachChild(k){Object.keys(this.controls).forEach(S=>{const q=this.controls[S];q&&k(q,S)})}_setUpControls(){this._forEachChild(k=>{k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(k){for(const[S,q]of Object.entries(this.controls))if(this.contains(S)&&k(q))return!0;return!1}_reduceValue(){return this._reduceChildren({},(S,q,je)=>((q.enabled||this.disabled)&&(S[je]=q.value),S))}_reduceChildren(k,S){let q=k;return this._forEachChild((je,lt)=>{q=S(q,je,lt)}),q}_allControlsDisabled(){for(const k of Object.keys(this.controls))if(this.controls[k].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(k){return this.controls.hasOwnProperty(k)?this.controls[k]:null}}function pe(B,k){var S,q;Ve(B,k),k.valueAccessor.writeValue(B.value),B.disabled&&(null===(q=(S=k.valueAccessor).setDisabledState)||void 0===q||q.call(S,!0)),function gt(B,k){k.valueAccessor.registerOnChange(S=>{B._pendingValue=S,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&Qt(B,k)})}(B,k),function hn(B,k){const S=(q,je)=>{k.valueAccessor.writeValue(q),je&&k.viewToModelUpdate(q)};B.registerOnChange(S),k._registerOnDestroy(()=>{B._unregisterOnChange(S)})}(B,k),function mt(B,k){k.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&Qt(B,k),"submit"!==B.updateOn&&B.markAsTouched()})}(B,k),function Te(B,k){if(k.valueAccessor.setDisabledState){const S=q=>{k.valueAccessor.setDisabledState(q)};B.registerOnDisabledChange(S),k._registerOnDestroy(()=>{B._unregisterOnDisabledChange(S)})}}(B,k)}function le(B,k,S=!0){const q=()=>{};k.valueAccessor&&(k.valueAccessor.registerOnChange(q),k.valueAccessor.registerOnTouched(q)),tt(B,k),B&&(k._invokeOnDestroyCallbacks(),B._registerOnCollectionChange(()=>{}))}function se(B,k){B.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(k)})}function Ve(B,k){const S=pt(B);null!==k.validator?B.setValidators(xt(S,k.validator)):"function"==typeof S&&B.setValidators([S]);const q=kt(B);null!==k.asyncValidator?B.setAsyncValidators(xt(q,k.asyncValidator)):"function"==typeof q&&B.setAsyncValidators([q]);const je=()=>B.updateValueAndValidity();se(k._rawValidators,je),se(k._rawAsyncValidators,je)}function tt(B,k){let S=!1;if(null!==B){if(null!==k.validator){const je=pt(B);if(Array.isArray(je)&&je.length>0){const lt=je.filter(Kt=>Kt!==k.validator);lt.length!==je.length&&(S=!0,B.setValidators(lt))}}if(null!==k.asyncValidator){const je=kt(B);if(Array.isArray(je)&&je.length>0){const lt=je.filter(Kt=>Kt!==k.asyncValidator);lt.length!==je.length&&(S=!0,B.setAsyncValidators(lt))}}}const q=()=>{};return se(k._rawValidators,q),se(k._rawAsyncValidators,q),S}function Qt(B,k){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),k.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Et(B,k){Ve(B,k)}function Vn(B,k){B._syncPendingControls(),k.forEach(S=>{const q=S.control;"submit"===q.updateOn&&q._pendingChange&&(S.viewToModelUpdate(q._pendingValue),q._pendingChange=!1)})}const Ci={provide:De,useExisting:(0,_.Gpc)(()=>cn)},fi=(()=>Promise.resolve())();let cn=(()=>{class B extends De{constructor(S,q){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new _.vpe,this.form=new Hn({},Xe(S),_t(q))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){fi.then(()=>{const q=this._findContainer(S.path);S.control=q.registerControl(S.name,S.control),pe(S.control,S),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){fi.then(()=>{const q=this._findContainer(S.path);q&&q.removeControl(S.name),this._directives.delete(S)})}addFormGroup(S){fi.then(()=>{const q=this._findContainer(S.path),je=new Hn({});Et(je,S),q.registerControl(S.name,je),je.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){fi.then(()=>{const q=this._findContainer(S.path);q&&q.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,q){fi.then(()=>{this.form.get(S.path).setValue(q)})}setValue(S){this.control.setValue(S)}onSubmit(S){var q;return this.submitted=!0,Vn(this.form,this._directives),this.ngSubmit.emit(S),"dialog"===(null===(q=null==S?void 0:S.target)||void 0===q?void 0:q.method)}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(Q,10),_.Y36(ne,10))},B.\u0275dir=_.lG2({type:B,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,q){1&S&&_.NdJ("submit",function(lt){return q.onSubmit(lt)})("reset",function(){return q.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Ci]),_.qOj]}),B})();function xn(B,k){const S=B.indexOf(k);S>-1&&B.splice(S,1)}function Ei(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}const Di=class extends Xn{constructor(k=null,S,q){super(Bn(S),dn(q,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(k),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),si(S)&&(S.nonNullable||S.initialValueIsDefault)&&(this.defaultValue=Ei(k)?k.value:k)}setValue(k,S={}){this.value=this._pendingValue=k,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(q=>q(this.value,!1!==S.emitViewToModelChange)),this.updateValueAndValidity(S)}patchValue(k,S={}){this.setValue(k,S)}reset(k=this.defaultValue,S={}){this._applyFormState(k),this.markAsPristine(S),this.markAsUntouched(S),this.setValue(this.value,S),this._pendingChange=!1}_updateValue(){}_anyControls(k){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(k){this._onChange.push(k)}_unregisterOnChange(k){xn(this._onChange,k)}registerOnDisabledChange(k){this._onDisabledChange.push(k)}_unregisterOnDisabledChange(k){xn(this._onDisabledChange,k)}_forEachChild(k){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(k){Ei(k)?(this.value=this._pendingValue=k.value,k.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=k}},Sr={provide:u,useExisting:(0,_.Gpc)(()=>Xi),multi:!0};let Xi=(()=>{class B extends f{writeValue(S){this.setProperty("value",null==S?"":S)}registerOnChange(S){this.onChange=q=>{S(""==q?null:parseFloat(q))}}}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,q){1&S&&_.NdJ("input",function(lt){return q.onChange(lt.target.value)})("blur",function(){return q.onTouched()})},features:[_._Bn([Sr]),_.qOj]}),B})(),Qr=(()=>{class B{}return B.\u0275fac=function(S){return new(S||B)},B.\u0275mod=_.oAB({type:B}),B.\u0275inj=_.cJS({}),B})();const ds=new _.OlP("NgModelWithFormControlWarning"),Is={provide:ie,useExisting:(0,_.Gpc)(()=>mi)};let mi=(()=>{class B extends ie{constructor(S,q,je,lt){super(),this._ngModelWarningConfig=lt,this.update=new _.vpe,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(q),this.valueAccessor=function ui(B,k){if(!k)return null;let S,q,je;return Array.isArray(k),k.forEach(lt=>{lt.constructor===v?S=lt:function ci(B){return Object.getPrototypeOf(B.constructor)===f}(lt)?q=lt:je=lt}),je||q||S||null}(0,je)}set isDisabled(S){}ngOnChanges(S){if(this._isControlChanged(S)){const q=S.form.previousValue;q&&le(q,this,!1),pe(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}(function li(B,k){if(!B.hasOwnProperty("model"))return!1;const S=B.model;return!!S.isFirstChange()||!Object.is(k,S.currentValue)})(S,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&le(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return B._ngModelWarningSentOnce=!1,B.\u0275fac=function(S){return new(S||B)(_.Y36(Q,10),_.Y36(ne,10),_.Y36(u,10),_.Y36(ds,8))},B.\u0275dir=_.lG2({type:B,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_._Bn([Is]),_.qOj,_.TTD]}),B})();const Ee={provide:De,useExisting:(0,_.Gpc)(()=>oe)};let oe=(()=>{class B extends De{constructor(S,q){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _.vpe,this._setValidators(S),this._setAsyncValidators(q)}ngOnChanges(S){this._checkFormPresent(),S.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(tt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(S){const q=this.form.get(S.path);return pe(q,S),q.updateValueAndValidity({emitEvent:!1}),this.directives.push(S),q}getControl(S){return this.form.get(S.path)}removeControl(S){le(S.control||null,S,!1),function $i(B,k){const S=B.indexOf(k);S>-1&&B.splice(S,1)}(this.directives,S)}addFormGroup(S){this._setUpFormContainer(S)}removeFormGroup(S){this._cleanUpFormContainer(S)}getFormGroup(S){return this.form.get(S.path)}addFormArray(S){this._setUpFormContainer(S)}removeFormArray(S){this._cleanUpFormContainer(S)}getFormArray(S){return this.form.get(S.path)}updateModel(S,q){this.form.get(S.path).setValue(q)}onSubmit(S){var q;return this.submitted=!0,Vn(this.form,this.directives),this.ngSubmit.emit(S),"dialog"===(null===(q=null==S?void 0:S.target)||void 0===q?void 0:q.method)}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_updateDomValue(){this.directives.forEach(S=>{const q=S.control,je=this.form.get(S.path);q!==je&&(le(q||null,S),(B=>B instanceof Di)(je)&&(pe(je,S),S.control=je))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(S){const q=this.form.get(S.path);Et(q,S),q.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(S){if(this.form){const q=this.form.get(S.path);q&&function Ri(B,k){return tt(B,k)}(q,S)&&q.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&tt(this._oldForm,this)}_checkFormPresent(){}}return B.\u0275fac=function(S){return new(S||B)(_.Y36(Q,10),_.Y36(ne,10))},B.\u0275dir=_.lG2({type:B,selectors:[["","formGroup",""]],hostBindings:function(S,q){1&S&&_.NdJ("submit",function(lt){return q.onSubmit(lt)})("reset",function(){return q.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Ee]),_.qOj,_.TTD]}),B})(),vi=(()=>{class B{constructor(){this._validator=ye}ngOnChanges(S){if(this.inputName in S){const q=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(q),this._validator=this._enabled?this.createValidator(q):ye,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return B.\u0275fac=function(S){return new(S||B)},B.\u0275dir=_.lG2({type:B,features:[_.TTD]}),B})();const or={provide:Q,useExisting:(0,_.Gpc)(()=>bn),multi:!0},hs={provide:Q,useExisting:(0,_.Gpc)(()=>Zn),multi:!0};let bn=(()=>{class B extends vi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=_.D6c,this.createValidator=S=>re}enabled(S){return S}}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(S,q){2&S&&_.uIk("required",q._enabled?"":null)},inputs:{required:"required"},features:[_._Bn([or]),_.qOj]}),B})(),Zn=(()=>{class B extends bn{constructor(){super(...arguments),this.createValidator=S=>_e}}return B.\u0275fac=function(){let k;return function(q){return(k||(k=_.n5z(B)))(q||B)}}(),B.\u0275dir=_.lG2({type:B,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(S,q){2&S&&_.uIk("required",q._enabled?"":null)},features:[_._Bn([hs]),_.qOj]}),B})(),Ot=(()=>{class B{}return B.\u0275fac=function(S){return new(S||B)},B.\u0275mod=_.oAB({type:B}),B.\u0275inj=_.cJS({imports:[Qr]}),B})(),cr=(()=>{class B{static withConfig(S){return{ngModule:B,providers:[{provide:ds,useValue:S.warnOnNgModelWithFormControl}]}}}return B.\u0275fac=function(S){return new(S||B)},B.\u0275mod=_.oAB({type:B}),B.\u0275inj=_.cJS({imports:[Ot]}),B})()},7423:(nt,Fe,$)=>{"use strict";$.d(Fe,{lW:()=>P,ot:()=>y});var _=$(5e3),j=$(508),p=$(2982);const h=["mat-button",""],b=["*"],D=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],A=(0,j.pj)((0,j.Id)((0,j.Kr)(class{constructor(l){this._elementRef=l}})));let P=(()=>{class l extends A{constructor(u,d,C){super(u),this._focusMonitor=d,this._animationMode=C,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const R of D)this._hasHostAttributes(R)&&this._getHostElement().classList.add(R);u.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(u,d){u?this._focusMonitor.focusVia(this._getHostElement(),u,d):this._getHostElement().focus(d)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...u){return u.some(d=>this._getHostElement().hasAttribute(d))}}return l.\u0275fac=function(u){return new(u||l)(_.Y36(_.SBq),_.Y36(p.tE),_.Y36(_.QbO,8))},l.\u0275cmp=_.Xpm({type:l,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(u,d){if(1&u&&_.Gf(j.wG,5),2&u){let C;_.iGM(C=_.CRH())&&(d.ripple=C.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(u,d){2&u&&(_.uIk("disabled",d.disabled||null),_.ekj("_mat-animation-noopable","NoopAnimations"===d._animationMode)("mat-button-disabled",d.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_.qOj],attrs:h,ngContentSelectors:b,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(u,d){1&u&&(_.F$t(),_.TgZ(0,"span",0),_.Hsn(1),_.qZA(),_._UZ(2,"span",1)(3,"span",2)),2&u&&(_.xp6(2),_.ekj("mat-button-ripple-round",d.isRoundButton||d.isIconButton),_.Q6J("matRippleDisabled",d._isRippleDisabled())("matRippleCentered",d.isIconButton)("matRippleTrigger",d._getHostElement()))},dependencies:[j.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),l})(),y=(()=>{class l{}return l.\u0275fac=function(u){return new(u||l)},l.\u0275mod=_.oAB({type:l}),l.\u0275inj=_.cJS({imports:[j.si,j.BQ,j.BQ]}),l})()},508:(nt,Fe,$)=>{"use strict";$.d(Fe,{rD:()=>ue,BQ:()=>R,wG:()=>Tn,si:()=>Re,pj:()=>F,Kr:()=>Z,Id:()=>w,FD:()=>ne,sb:()=>Q});var _=$(5e3),j=$(226),h=$(9808),b=$(925),E=$(2982),I=$(3191);const C=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function d(){return!0}});let R=(()=>{class Ze{constructor(Ae,ze,Ct){this._sanityChecks=ze,this._document=Ct,this._hasDoneGlobalChecks=!1,Ae._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ae){return!(0,b.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ae])}}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)(_.LFG(E.qm),_.LFG(C,8),_.LFG(h.K0))},Ze.\u0275mod=_.oAB({type:Ze}),Ze.\u0275inj=_.cJS({imports:[j.vT,j.vT]}),Ze})();function w(Ze){return class extends Ze{constructor(...ge){super(...ge),this._disabled=!1}get disabled(){return this._disabled}set disabled(ge){this._disabled=(0,I.Ig)(ge)}}}function F(Ze,ge){return class extends Ze{constructor(...Ae){super(...Ae),this.defaultColor=ge,this.color=ge}get color(){return this._color}set color(Ae){const ze=Ae||this.defaultColor;ze!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ze&&this._elementRef.nativeElement.classList.add(`mat-${ze}`),this._color=ze)}}}function Z(Ze){return class extends Ze{constructor(...ge){super(...ge),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ge){this._disableRipple=(0,I.Ig)(ge)}}}function Q(Ze,ge=0){return class extends Ze{constructor(...Ae){super(...Ae),this._tabIndex=ge,this.defaultTabIndex=ge}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ae){this._tabIndex=null!=Ae?(0,I.su)(Ae):this.defaultTabIndex}}}function ne(Ze){return class extends Ze{constructor(...ge){super(...ge),this.errorState=!1}updateErrorState(){const ge=this.errorState,en=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);en!==ge&&(this.errorState=en,this.stateChanges.next())}}}let ue=(()=>{class Ze{isErrorState(Ae,ze){return!!(Ae&&Ae.invalid&&(Ae.touched||ze&&ze.submitted))}}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)},Ze.\u0275prov=_.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();class ft{constructor(ge,Ae,ze,Ct=!1){this._renderer=ge,this.element=Ae,this.config=ze,this._animationForciblyDisabledThroughCss=Ct,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Xe={enterDuration:225,exitDuration:150},_t=(0,b.i$)({passive:!0}),xt=["mousedown","touchstart"],pt=["mouseup","mouseleave","touchend","touchcancel"];class kt{constructor(ge,Ae,ze,Ct){this._target=ge,this._ngZone=Ae,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ct.isBrowser&&(this._containerElement=(0,I.fI)(ze))}fadeInRipple(ge,Ae,ze={}){const Ct=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),en=Object.assign(Object.assign({},Xe),ze.animation);ze.centered&&(ge=Ct.left+Ct.width/2,Ae=Ct.top+Ct.height/2);const Rn=ze.radius||function gn(Ze,ge,Ae){const ze=Math.max(Math.abs(Ze-Ae.left),Math.abs(Ze-Ae.right)),Ct=Math.max(Math.abs(ge-Ae.top),Math.abs(ge-Ae.bottom));return Math.sqrt(ze*ze+Ct*Ct)}(ge,Ae,Ct),hi=ge-Ct.left,Ui=Ae-Ct.top,ri=en.enterDuration,ln=document.createElement("div");ln.classList.add("mat-ripple-element"),ln.style.left=hi-Rn+"px",ln.style.top=Ui-Rn+"px",ln.style.height=2*Rn+"px",ln.style.width=2*Rn+"px",null!=ze.color&&(ln.style.backgroundColor=ze.color),ln.style.transitionDuration=`${ri}ms`,this._containerElement.appendChild(ln);const An=window.getComputedStyle(ln),En=An.transitionDuration,jn="none"===An.transitionProperty||"0s"===En||"0s, 0s"===En,Bn=new ft(this,ln,ze,jn);ln.style.transform="scale3d(1, 1, 1)",Bn.state=0,ze.persistent||(this._mostRecentTransientRipple=Bn);let Ht=null;return!jn&&(ri||en.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const dn=()=>this._finishRippleTransition(Bn),pn=()=>this._destroyRipple(Bn);ln.addEventListener("transitionend",dn),ln.addEventListener("transitioncancel",pn),Ht={onTransitionEnd:dn,onTransitionCancel:pn}}),this._activeRipples.set(Bn,Ht),(jn||!ri)&&this._finishRippleTransition(Bn),Bn}fadeOutRipple(ge){if(2===ge.state||3===ge.state)return;const Ae=ge.element,ze=Object.assign(Object.assign({},Xe),ge.config.animation);Ae.style.transitionDuration=`${ze.exitDuration}ms`,Ae.style.opacity="0",ge.state=2,(ge._animationForciblyDisabledThroughCss||!ze.exitDuration)&&this._finishRippleTransition(ge)}fadeOutAll(){this._getActiveRipples().forEach(ge=>ge.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ge=>{ge.config.persistent||ge.fadeOut()})}setupTriggerEvents(ge){const Ae=(0,I.fI)(ge);!Ae||Ae===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ae,this._registerEvents(xt))}handleEvent(ge){"mousedown"===ge.type?this._onMousedown(ge):"touchstart"===ge.type?this._onTouchStart(ge):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(pt),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ge){0===ge.state?this._startFadeOutTransition(ge):2===ge.state&&this._destroyRipple(ge)}_startFadeOutTransition(ge){const Ae=ge===this._mostRecentTransientRipple,{persistent:ze}=ge.config;ge.state=1,!ze&&(!Ae||!this._isPointerDown)&&ge.fadeOut()}_destroyRipple(ge){var Ae;const ze=null!==(Ae=this._activeRipples.get(ge))&&void 0!==Ae?Ae:null;this._activeRipples.delete(ge),this._activeRipples.size||(this._containerRect=null),ge===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ge.state=3,null!==ze&&(ge.element.removeEventListener("transitionend",ze.onTransitionEnd),ge.element.removeEventListener("transitioncancel",ze.onTransitionCancel)),ge.element.remove()}_onMousedown(ge){const Ae=(0,E.X6)(ge),ze=this._lastTouchStartEvent&&Date.now(){!ge.config.persistent&&(1===ge.state||ge.config.terminateOnPointerUp&&0===ge.state)&&ge.fadeOut()}))}_registerEvents(ge){this._ngZone.runOutsideAngular(()=>{ge.forEach(Ae=>{this._triggerElement.addEventListener(Ae,this,_t)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(xt.forEach(ge=>{this._triggerElement.removeEventListener(ge,this,_t)}),this._pointerUpEventsRegistered&&pt.forEach(ge=>{this._triggerElement.removeEventListener(ge,this,_t)}))}}const Nn=new _.OlP("mat-ripple-global-options");let Tn=(()=>{class Ze{constructor(Ae,ze,Ct,en,Rn){this._elementRef=Ae,this._animationMode=Rn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=en||{},this._rippleRenderer=new kt(this,ze,Ae,Ct)}get disabled(){return this._disabled}set disabled(Ae){Ae&&this.fadeOutAllNonPersistent(),this._disabled=Ae,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ae){this._trigger=Ae,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ae,ze=0,Ct){return"number"==typeof Ae?this._rippleRenderer.fadeInRipple(Ae,ze,Object.assign(Object.assign({},this.rippleConfig),Ct)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ae))}}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(b.t4),_.Y36(Nn,8),_.Y36(_.QbO,8))},Ze.\u0275dir=_.lG2({type:Ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ae,ze){2&Ae&&_.ekj("mat-ripple-unbounded",ze.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ze})(),Re=(()=>{class Ze{}return Ze.\u0275fac=function(Ae){return new(Ae||Ze)},Ze.\u0275mod=_.oAB({type:Ze}),Ze.\u0275inj=_.cJS({imports:[R,R]}),Ze})()},7322:(nt,Fe,$)=>{"use strict";$.d(Fe,{Eo:()=>Me,G_:()=>Tn,KE:()=>Re,lN:()=>$e});var _=$(7144),j=$(9808),p=$(5e3),h=$(508),b=$(3191),E=$(7579),I=$(6451),D=$(4968),A=$(8675),P=$(2722),T=$(5698),y=$(1777),l=$(226),f=$(925);const u=["connectionContainer"],d=["inputContainer"],C=["label"];function R(ie,De){1&ie&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15)(3,"div",16)(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15)(7,"div",16)(8,"div",17),p.qZA(),p.BQk())}function U(ie,De){if(1&ie){const Ce=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){p.CHM(Ce);const We=p.oxw();return p.KtG(We.updateOutlineGap())}),p.Hsn(1,1),p.qZA()}if(2&ie){const Ce=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)}}function W(ie,De){if(1&ie&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&ie){const Ce=p.oxw(2);p.xp6(3),p.Oqu(Ce._control.placeholder)}}function v(ie,De){1&ie&&p.Hsn(0,3,["*ngSwitchCase","true"])}function w(ie,De){1&ie&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function F(ie,De){if(1&ie){const Ce=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){p.CHM(Ce);const We=p.oxw();return p.KtG(We.updateOutlineGap())}),p.YNc(2,W,4,1,"ng-container",12),p.YNc(3,v,1,0,"ng-content",12),p.YNc(4,w,2,0,"span",22),p.qZA()}if(2&ie){const Ce=p.oxw();p.ekj("mat-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-form-field-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color),p.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)("id",Ce._labelId)("ngSwitch",Ce._hasLabel()),p.uIk("for",Ce._control.id)("aria-owns",Ce._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!Ce.hideRequiredMarker&&Ce._control.required&&!Ce._control.disabled)}}function Z(ie,De){1&ie&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function Q(ie,De){if(1&ie&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&ie){const Ce=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color)}}function ne(ie,De){if(1&ie&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&ie){const Ce=p.oxw();p.Q6J("@transitionMessages",Ce._subscriptAnimationState)}}function we(ie,De){if(1&ie&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&ie){const Ce=p.oxw(2);p.Q6J("id",Ce._hintLabelId),p.xp6(1),p.Oqu(Ce.hintLabel)}}function Be(ie,De){if(1&ie&&(p.TgZ(0,"div",27),p.YNc(1,we,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&ie){const Ce=p.oxw();p.Q6J("@transitionMessages",Ce._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",Ce.hintLabel)}}const xe=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Y=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],_e=new p.OlP("MatError"),he={transitionMessages:(0,y.X$)("transitionMessages",[(0,y.SB)("enter",(0,y.oB)({opacity:1,transform:"translateY(0%)"})),(0,y.eR)("void => enter",[(0,y.oB)({opacity:0,transform:"translateY(-5px)"}),(0,y.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Me=(()=>{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275dir=p.lG2({type:ie}),ie})();const de=new p.OlP("MatHint");let ke=(()=>{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275dir=p.lG2({type:ie,selectors:[["mat-label"]]}),ie})(),Ue=(()=>{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275dir=p.lG2({type:ie,selectors:[["mat-placeholder"]]}),ie})();const ft=new p.OlP("MatPrefix"),Pt=new p.OlP("MatSuffix");let xt=0;const gn=(0,h.pj)(class{constructor(ie){this._elementRef=ie}},"primary"),Nn=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Tn=new p.OlP("MatFormField");let Re=(()=>{class ie extends gn{constructor(Ce,Se,We,Qe,It,et,rt){super(Ce),this._changeDetectorRef=Se,this._dir=We,this._defaults=Qe,this._platform=It,this._ngZone=et,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+xt++,this._labelId="mat-form-field-label-"+xt++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==rt,this.appearance=(null==Qe?void 0:Qe.appearance)||"legacy",Qe&&(this._hideRequiredMarker=Boolean(Qe.hideRequiredMarker),Qe.color&&(this.color=this.defaultColor=Qe.color))}get appearance(){return this._appearance}set appearance(Ce){var Se;const We=this._appearance;this._appearance=Ce||(null===(Se=this._defaults)||void 0===Se?void 0:Se.appearance)||"legacy","outline"===this._appearance&&We!==Ce&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ce){this._hideRequiredMarker=(0,b.Ig)(Ce)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Ce){this._hintLabel=Ce,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Ce){Ce!==this._floatLabel&&(this._floatLabel=Ce||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Ce){this._explicitFormFieldControl=Ce}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Ce=this._control;Ce.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Ce.controlType}`),Ce.stateChanges.pipe((0,A.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Ce.ngControl&&Ce.ngControl.valueChanges&&Ce.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,I.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,A.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,A.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Ce){const Se=this._control?this._control.ngControl:null;return Se&&Se[Ce]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,D.R)(this._label.nativeElement,"transitionend").pipe((0,T.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Ce=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ce.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Se=this._hintChildren?this._hintChildren.find(Qe=>"start"===Qe.align):null,We=this._hintChildren?this._hintChildren.find(Qe=>"end"===Qe.align):null;Se?Ce.push(Se.id):this._hintLabel&&Ce.push(this._hintLabelId),We&&Ce.push(We.id)}else this._errorChildren&&Ce.push(...this._errorChildren.map(Se=>Se.id));this._control.setDescribedByIds(Ce)}}_validateControlChild(){}updateOutlineGap(){const Ce=this._label?this._label.nativeElement:null,Se=this._connectionContainerRef.nativeElement,We=".mat-form-field-outline-start",Qe=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!Ce||!Ce.children.length||!Ce.textContent.trim()){const Wt=Se.querySelectorAll(`${We}, ${Qe}`);for(let vt=0;vt0?.75*Ze+10:0}for(let Wt=0;Wt{class ie{}return ie.\u0275fac=function(Ce){return new(Ce||ie)},ie.\u0275mod=p.oAB({type:ie}),ie.\u0275inj=p.cJS({imports:[j.ez,h.BQ,_.Q8,h.BQ]}),ie})()},7531:(nt,Fe,$)=>{"use strict";$.d(Fe,{Nt:()=>U,c:()=>W});var _=$(3191),j=$(925),p=$(5e3),h=$(2382),b=$(508),E=$(7322),I=$(7579),D=$(515);const A=(0,j.i$)({passive:!0});let P=(()=>{class v{constructor(F,Z){this._platform=F,this._ngZone=Z,this._monitoredElements=new Map}monitor(F){if(!this._platform.isBrowser)return D.E;const Z=(0,_.fI)(F),Q=this._monitoredElements.get(Z);if(Q)return Q.subject;const ne=new I.x,we="cdk-text-field-autofilled",Be=xe=>{"cdk-text-field-autofill-start"!==xe.animationName||Z.classList.contains(we)?"cdk-text-field-autofill-end"===xe.animationName&&Z.classList.contains(we)&&(Z.classList.remove(we),this._ngZone.run(()=>ne.next({target:xe.target,isAutofilled:!1}))):(Z.classList.add(we),this._ngZone.run(()=>ne.next({target:xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Z.addEventListener("animationstart",Be,A),Z.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Z,{subject:ne,unlisten:()=>{Z.removeEventListener("animationstart",Be,A)}}),ne}stopMonitoring(F){const Z=(0,_.fI)(F),Q=this._monitoredElements.get(Z);Q&&(Q.unlisten(),Q.subject.complete(),Z.classList.remove("cdk-text-field-autofill-monitored"),Z.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Z))}ngOnDestroy(){this._monitoredElements.forEach((F,Z)=>this.stopMonitoring(Z))}}return v.\u0275fac=function(F){return new(F||v)(p.LFG(j.t4),p.LFG(p.R0b))},v.\u0275prov=p.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),l=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=p.oAB({type:v}),v.\u0275inj=p.cJS({}),v})();const u=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),d=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let C=0;const R=(0,b.FD)(class{constructor(v,w,F,Z){this._defaultErrorStateMatcher=v,this._parentForm=w,this._parentFormGroup=F,this.ngControl=Z,this.stateChanges=new I.x}});let U=(()=>{class v extends R{constructor(F,Z,Q,ne,we,Be,xe,Y,re,_e){super(Be,ne,we,Q),this._elementRef=F,this._platform=Z,this._autofillMonitor=Y,this._formField=_e,this._uid="mat-input-"+C++,this.focused=!1,this.stateChanges=new I.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Me=>(0,j.qK)().has(Me)),this._iOSKeyupListener=Me=>{const Oe=Me.target;!Oe.value&&0===Oe.selectionStart&&0===Oe.selectionEnd&&(Oe.setSelectionRange(1,1),Oe.setSelectionRange(0,0))};const ee=this._elementRef.nativeElement,he=ee.nodeName.toLowerCase();this._inputValueAccessor=xe||ee,this._previousNativeValue=this.value,this.id=this.id,Z.IOS&&re.runOutsideAngular(()=>{F.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===he,this._isTextarea="textarea"===he,this._isInFormField=!!_e,this._isNativeSelect&&(this.controlType=ee.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(F){this._disabled=(0,_.Ig)(F),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(F){this._id=F||this._uid}get required(){var F,Z,Q,ne;return null!==(ne=null!==(F=this._required)&&void 0!==F?F:null===(Q=null===(Z=this.ngControl)||void 0===Z?void 0:Z.control)||void 0===Q?void 0:Q.hasValidator(h.kI.required))&&void 0!==ne&&ne}set required(F){this._required=(0,_.Ig)(F)}get type(){return this._type}set type(F){this._type=F||"text",this._validateType(),!this._isTextarea&&(0,j.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(F){F!==this.value&&(this._inputValueAccessor.value=F,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(F){this._readonly=(0,_.Ig)(F)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(F=>{this.autofilled=F.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(F){this._elementRef.nativeElement.focus(F)}_focusChanged(F){F!==this.focused&&(this.focused=F,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var F;const Z=this._formField,Q=!Z||"legacy"!==Z.appearance||null!==(F=Z._hasLabel)&&void 0!==F&&F.call(Z)?this.placeholder:null;if(Q!==this._previousPlaceholder){const ne=this._elementRef.nativeElement;this._previousPlaceholder=Q,Q?ne.setAttribute("placeholder",Q):ne.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const F=this._elementRef.nativeElement.value;this._previousNativeValue!==F&&(this._previousNativeValue=F,this.stateChanges.next())}_validateType(){d.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let F=this._elementRef.nativeElement.validity;return F&&F.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const F=this._elementRef.nativeElement,Z=F.options[0];return this.focused||F.multiple||!this.empty||!!(F.selectedIndex>-1&&Z&&Z.label)}return this.focused||!this.empty}setDescribedByIds(F){F.length?this._elementRef.nativeElement.setAttribute("aria-describedby",F.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const F=this._elementRef.nativeElement;return this._isNativeSelect&&(F.multiple||F.size>1)}}return v.\u0275fac=function(F){return new(F||v)(p.Y36(p.SBq),p.Y36(j.t4),p.Y36(h.a5,10),p.Y36(h.F,8),p.Y36(h.sg,8),p.Y36(b.rD),p.Y36(u,10),p.Y36(P),p.Y36(p.R0b),p.Y36(E.G_,8))},v.\u0275dir=p.lG2({type:v,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(F,Z){1&F&&p.NdJ("focus",function(){return Z._focusChanged(!0)})("blur",function(){return Z._focusChanged(!1)})("input",function(){return Z._onInput()}),2&F&&(p.Ikx("disabled",Z.disabled)("required",Z.required),p.uIk("id",Z.id)("data-placeholder",Z.placeholder)("name",Z.name||null)("readonly",Z.readonly&&!Z._isNativeSelect||null)("aria-invalid",Z.empty&&Z.required?null:Z.errorState)("aria-required",Z.required),p.ekj("mat-input-server",Z._isServer)("mat-native-select-inline",Z._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[p._Bn([{provide:E.Eo,useExisting:v}]),p.qOj,p.TTD]}),v})(),W=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=p.oAB({type:v}),v.\u0275inj=p.cJS({providers:[b.rD],imports:[l,E.lN,b.BQ,l,E.lN]}),v})()},2368:(nt,Fe,$)=>{"use strict";$.d(Fe,{Rr:()=>d,rP:()=>W});var _=$(7144),j=$(5e3),p=$(508),h=$(3191),b=$(2382),E=$(2982);const I=["input"],D=function(v){return{enterDuration:v}},A=["*"],P=new j.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let T=0;const y={provide:b.JU,useExisting:(0,j.Gpc)(()=>d),multi:!0};class l{constructor(w,F){this.source=w,this.checked=F}}const f=(0,p.sb)((0,p.pj)((0,p.Kr)((0,p.Id)(class{constructor(v){this._elementRef=v}}))));let u=(()=>{class v extends f{constructor(F,Z,Q,ne,we,Be,xe){super(F),this._focusMonitor=Z,this._changeDetectorRef=Q,this.defaults=we,this._onChange=Y=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new j.vpe,this.toggleChange=new j.vpe,this.tabIndex=parseInt(ne)||0,this.color=this.defaultColor=we.color||"accent",this._noopAnimations="NoopAnimations"===Be,this.id=this._uniqueId=`${xe}${++T}`}get required(){return this._required}set required(F){this._required=(0,h.Ig)(F)}get checked(){return this._checked}set checked(F){this._checked=(0,h.Ig)(F),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(F=>{"keyboard"===F||"program"===F?this._focused=!0:F||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(F){this.checked=!!F}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return v.\u0275fac=function(F){j.$Z()},v.\u0275dir=j.lG2({type:v,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[j.qOj]}),v})(),d=(()=>{class v extends u{constructor(F,Z,Q,ne,we,Be){super(F,Z,Q,ne,we,Be,"mat-slide-toggle-")}_createChangeEvent(F){return new l(this,F)}_onChangeEvent(F){F.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(F){F.stopPropagation()}focus(F,Z){Z?this._focusMonitor.focusVia(this._inputElement,Z,F):this._inputElement.nativeElement.focus(F)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return v.\u0275fac=function(F){return new(F||v)(j.Y36(j.SBq),j.Y36(E.tE),j.Y36(j.sBO),j.$8M("tabindex"),j.Y36(P),j.Y36(j.QbO,8))},v.\u0275cmp=j.Xpm({type:v,selectors:[["mat-slide-toggle"]],viewQuery:function(F,Z){if(1&F&&j.Gf(I,5),2&F){let Q;j.iGM(Q=j.CRH())&&(Z._inputElement=Q.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(F,Z){2&F&&(j.Ikx("id",Z.id),j.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),j.ekj("mat-checked",Z.checked)("mat-disabled",Z.disabled)("mat-slide-toggle-label-before","before"==Z.labelPosition)("_mat-animation-noopable",Z._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[j._Bn([y]),j.qOj],ngContentSelectors:A,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(F,Z){if(1&F&&(j.F$t(),j.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),j.NdJ("change",function(ne){return Z._onChangeEvent(ne)})("click",function(ne){return Z._onInputClick(ne)}),j.qZA(),j.TgZ(5,"span",5),j._UZ(6,"span",6),j.TgZ(7,"span",7),j._UZ(8,"span",8),j.qZA()()(),j.TgZ(9,"span",9,10),j.NdJ("cdkObserveContent",function(){return Z._onLabelTextChange()}),j.TgZ(11,"span",11),j._uU(12,"\xa0"),j.qZA(),j.Hsn(13),j.qZA()()),2&F){const Q=j.MAs(1),ne=j.MAs(10);j.uIk("for",Z.inputId),j.xp6(2),j.ekj("mat-slide-toggle-bar-no-side-margin",!ne.textContent||!ne.textContent.trim()),j.xp6(1),j.Q6J("id",Z.inputId)("required",Z.required)("tabIndex",Z.tabIndex)("checked",Z.checked)("disabled",Z.disabled),j.uIk("name",Z.name)("aria-checked",Z.checked)("aria-label",Z.ariaLabel)("aria-labelledby",Z.ariaLabelledby)("aria-describedby",Z.ariaDescribedby),j.xp6(4),j.Q6J("matRippleTrigger",Q)("matRippleDisabled",Z.disableRipple||Z.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",j.VKq(18,D,Z._noopAnimations?0:150))}},dependencies:[p.wG,_.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),v})(),U=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=j.oAB({type:v}),v.\u0275inj=j.cJS({}),v})(),W=(()=>{class v{}return v.\u0275fac=function(F){return new(F||v)},v.\u0275mod=j.oAB({type:v}),v.\u0275inj=j.cJS({imports:[U,p.si,p.BQ,_.Q8,U,p.BQ]}),v})()},6041:(nt,Fe,$)=>{"use strict";$.d(Fe,{uX:()=>xn,SP:()=>qn,Nh:()=>mi});var _=$(2982),j=$(7144),p=$(5e3),h=$(9808);class T{attach(oe){return this._attachedHost=oe,oe.attach(this)}detach(){let oe=this._attachedHost;null!=oe&&(this._attachedHost=null,oe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(oe){this._attachedHost=oe}}class y extends T{constructor(oe,H,X,ce){super(),this.component=oe,this.viewContainerRef=H,this.injector=X,this.componentFactoryResolver=ce}}class l extends T{constructor(oe,H,X,ce){super(),this.templateRef=oe,this.viewContainerRef=H,this.context=X,this.injector=ce}get origin(){return this.templateRef.elementRef}attach(oe,H=this.context){return this.context=H,super.attach(oe)}detach(){return this.context=void 0,super.detach()}}class f extends T{constructor(oe){super(),this.element=oe instanceof p.SBq?oe.nativeElement:oe}}let v=(()=>{class Ee extends class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(oe){return oe instanceof y?(this._attachedPortal=oe,this.attachComponentPortal(oe)):oe instanceof l?(this._attachedPortal=oe,this.attachTemplatePortal(oe)):this.attachDomPortal&&oe instanceof f?(this._attachedPortal=oe,this.attachDomPortal(oe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(oe){this._disposeFn=oe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(H,X,ce){super(),this._componentFactoryResolver=H,this._viewContainerRef=X,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=Le=>{const at=Le.element,Dt=this._document.createComment("dom-portal");Le.setAttachedHost(this),at.parentNode.insertBefore(Dt,at),this._getRootNode().appendChild(at),this._attachedPortal=Le,super.setDisposeFn(()=>{Dt.parentNode&&Dt.parentNode.replaceChild(at,Dt)})},this._document=ce}get portal(){return this._attachedPortal}set portal(H){this.hasAttached()&&!H&&!this._isInitialized||(this.hasAttached()&&super.detach(),H&&super.attach(H),this._attachedPortal=H||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(H){H.setAttachedHost(this);const X=null!=H.viewContainerRef?H.viewContainerRef:this._viewContainerRef,Le=(H.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(H.component),at=X.createComponent(Le,X.length,H.injector||X.injector);return X!==this._viewContainerRef&&this._getRootNode().appendChild(at.hostView.rootNodes[0]),super.setDisposeFn(()=>at.destroy()),this._attachedPortal=H,this._attachedRef=at,this.attached.emit(at),at}attachTemplatePortal(H){H.setAttachedHost(this);const X=this._viewContainerRef.createEmbeddedView(H.templateRef,H.context,{injector:H.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=H,this._attachedRef=X,this.attached.emit(X),X}_getRootNode(){const H=this._viewContainerRef.element.nativeElement;return H.nodeType===H.ELEMENT_NODE?H:H.parentNode}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(h.K0))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),Ee})(),F=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=p.oAB({type:Ee}),Ee.\u0275inj=p.cJS({}),Ee})();var Q=$(508),ne=$(5698),we=$(8675),Be=$(1884),xe=$(2722),Y=$(8421),re=$(4482),_e=$(5403),he=$(5684),Me=$(9300),Oe=$(7579),ye=$(727),Ne=$(4968),ue=$(9646),de=$(6451),be=$(515),ke=$(8306),Ue=$(4986),ft=$(3532);function Pt(Ee=0,oe,H=Ue.P){let X=-1;return null!=oe&&((0,ft.K)(oe)?H=oe:X=oe),new ke.y(ce=>{let Le=function Xe(Ee){return Ee instanceof Date&&!isNaN(Ee)}(Ee)?+Ee-H.now():Ee;Le<0&&(Le=0);let at=0;return H.schedule(function(){ce.closed||(ce.next(at++),0<=X?this.schedule(void 0,X):ce.complete())},Le)})}var _t=$(1777),xt=$(226),pt=$(3191),kt=$(1159),gn=$(925),Nn=$(4408);const Tn={schedule(Ee){let oe=requestAnimationFrame,H=cancelAnimationFrame;const{delegate:X}=Tn;X&&(oe=X.requestAnimationFrame,H=X.cancelAnimationFrame);const ce=oe(Le=>{H=void 0,Ee(Le)});return new ye.w0(()=>null==H?void 0:H(ce))},requestAnimationFrame(...Ee){const{delegate:oe}=Tn;return((null==oe?void 0:oe.requestAnimationFrame)||requestAnimationFrame)(...Ee)},cancelAnimationFrame(...Ee){const{delegate:oe}=Tn;return((null==oe?void 0:oe.cancelAnimationFrame)||cancelAnimationFrame)(...Ee)},delegate:void 0};var $e=$(640);new class ie extends $e.v{flush(oe){this._active=!0;const H=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let ce;oe=oe||X.shift();do{if(ce=oe.execute(oe.state,oe.delay))break}while((oe=X[0])&&oe.id===H&&X.shift());if(this._active=!1,ce){for(;(oe=X[0])&&oe.id===H&&X.shift();)oe.unsubscribe();throw ce}}}(class Re extends Nn.o{constructor(oe,H){super(oe,H),this.scheduler=oe,this.work=H}requestAsyncId(oe,H,X=0){return null!==X&&X>0?super.requestAsyncId(oe,H,X):(oe.actions.push(this),oe._scheduled||(oe._scheduled=Tn.requestAnimationFrame(()=>oe.flush(void 0))))}recycleAsyncId(oe,H,X=0){var ce;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(oe,H,X);const{actions:Le}=oe;null!=H&&(null===(ce=Le[Le.length-1])||void 0===ce?void 0:ce.id)!==H&&(Tn.cancelAnimationFrame(H),oe._scheduled=void 0)}});let We,Se=1;const Qe={};function It(Ee){return Ee in Qe&&(delete Qe[Ee],!0)}const et={setImmediate(Ee){const oe=Se++;return Qe[oe]=!0,We||(We=Promise.resolve()),We.then(()=>It(oe)&&Ee()),oe},clearImmediate(Ee){It(Ee)}},{setImmediate:Ft,clearImmediate:Wt}=et,vt={setImmediate(...Ee){const{delegate:oe}=vt;return((null==oe?void 0:oe.setImmediate)||Ft)(...Ee)},clearImmediate(Ee){const{delegate:oe}=vt;return((null==oe?void 0:oe.clearImmediate)||Wt)(Ee)},delegate:void 0};new class bt extends $e.v{flush(oe){this._active=!0;const H=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let ce;oe=oe||X.shift();do{if(ce=oe.execute(oe.state,oe.delay))break}while((oe=X[0])&&oe.id===H&&X.shift());if(this._active=!1,ce){for(;(oe=X[0])&&oe.id===H&&X.shift();)oe.unsubscribe();throw ce}}}(class Zt extends Nn.o{constructor(oe,H){super(oe,H),this.scheduler=oe,this.work=H}requestAsyncId(oe,H,X=0){return null!==X&&X>0?super.requestAsyncId(oe,H,X):(oe.actions.push(this),oe._scheduled||(oe._scheduled=vt.setImmediate(oe.flush.bind(oe,void 0))))}recycleAsyncId(oe,H,X=0){var ce;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(oe,H,X);const{actions:Le}=oe;null!=H&&(null===(ce=Le[Le.length-1])||void 0===ce?void 0:ce.id)!==H&&(vt.clearImmediate(H),oe._scheduled=void 0)}});let Ht=(()=>{class Ee{constructor(H,X,ce){this._platform=H,this._change=new Oe.x,this._changeListener=Le=>{this._change.next(Le)},this._document=ce,X.runOutsideAngular(()=>{if(H.isBrowser){const Le=this._getWindow();Le.addEventListener("resize",this._changeListener),Le.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const H=this._getWindow();H.removeEventListener("resize",this._changeListener),H.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const H={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),H}getViewportRect(){const H=this.getViewportScrollPosition(),{width:X,height:ce}=this.getViewportSize();return{top:H.top,left:H.left,bottom:H.top+ce,right:H.left+X,height:ce,width:X}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const H=this._document,X=this._getWindow(),ce=H.documentElement,Le=ce.getBoundingClientRect();return{top:-Le.top||H.body.scrollTop||X.scrollY||ce.scrollTop||0,left:-Le.left||H.body.scrollLeft||X.scrollX||ce.scrollLeft||0}}change(H=20){return H>0?this._change.pipe(function ze(Ee,oe=Ue.z){return function Ae(Ee){return(0,re.e)((oe,H)=>{let X=!1,ce=null,Le=null,at=!1;const Dt=()=>{if(null==Le||Le.unsubscribe(),Le=null,X){X=!1;const rn=ce;ce=null,H.next(rn)}at&&H.complete()},Mt=()=>{Le=null,at&&H.complete()};oe.subscribe((0,_e.x)(H,rn=>{X=!0,ce=rn,Le||(0,Y.Xf)(Ee(rn)).subscribe(Le=(0,_e.x)(H,Dt,Mt))},()=>{at=!0,(!X||!Le||Le.closed)&&H.complete()}))})}(()=>Pt(Ee,oe))}(H)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const H=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:H.innerWidth,height:H.innerHeight}:{width:0,height:0}}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.LFG(gn.t4),p.LFG(p.R0b),p.LFG(h.K0,8))},Ee.\u0275prov=p.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function on(Ee,oe){1&Ee&&p.Hsn(0)}const Gt=["*"];function yn(Ee,oe){}const pe=function(Ee){return{animationDuration:Ee}},le=function(Ee,oe){return{value:Ee,params:oe}},se=["tabListContainer"],Te=["tabList"],Ve=["tabListInner"],tt=["nextPaginator"],gt=["previousPaginator"],mt=["tabBodyWrapper"],Qt=["tabHeader"];function hn(Ee,oe){}function Et(Ee,oe){if(1&Ee&&p.YNc(0,hn,0,0,"ng-template",10),2&Ee){const H=p.oxw().$implicit;p.Q6J("cdkPortalOutlet",H.templateLabel)}}function Ri(Ee,oe){if(1&Ee&&p._uU(0),2&Ee){const H=p.oxw().$implicit;p.Oqu(H.textLabel)}}function zi(Ee,oe){if(1&Ee){const H=p.EpF();p.TgZ(0,"div",6),p.NdJ("click",function(){const ce=p.CHM(H),Le=ce.$implicit,at=ce.index,Dt=p.oxw(),Mt=p.MAs(1);return p.KtG(Dt._handleClick(Le,Mt,at))})("cdkFocusChange",function(ce){const at=p.CHM(H).index,Dt=p.oxw();return p.KtG(Dt._tabFocusChanged(ce,at))}),p.TgZ(1,"div",7),p.YNc(2,Et,1,1,"ng-template",8),p.YNc(3,Ri,1,1,"ng-template",null,9,p.W1O),p.qZA()()}if(2&Ee){const H=oe.$implicit,X=oe.index,ce=p.MAs(4),Le=p.oxw();p.ekj("mat-tab-label-active",Le.selectedIndex===X),p.Q6J("id",Le._getTabLabelId(X))("ngClass",H.labelClass)("disabled",H.disabled)("matRippleDisabled",H.disabled||Le.disableRipple),p.uIk("tabIndex",Le._getTabIndex(H,X))("aria-posinset",X+1)("aria-setsize",Le._tabs.length)("aria-controls",Le._getTabContentId(X))("aria-selected",Le.selectedIndex===X)("aria-label",H.ariaLabel||null)("aria-labelledby",!H.ariaLabel&&H.ariaLabelledby?H.ariaLabelledby:null),p.xp6(2),p.Q6J("ngIf",H.templateLabel)("ngIfElse",ce)}}function Qi(Ee,oe){if(1&Ee){const H=p.EpF();p.TgZ(0,"mat-tab-body",11),p.NdJ("_onCentered",function(){p.CHM(H);const ce=p.oxw();return p.KtG(ce._removeTabBodyWrapperHeight())})("_onCentering",function(ce){p.CHM(H);const Le=p.oxw();return p.KtG(Le._setTabBodyWrapperHeight(ce))}),p.qZA()}if(2&Ee){const H=oe.$implicit,X=oe.index,ce=p.oxw();p.ekj("mat-tab-body-active",ce.selectedIndex===X),p.Q6J("id",ce._getTabContentId(X))("ngClass",H.bodyClass)("content",H.content)("position",H.position)("origin",H.origin)("animationDuration",ce.animationDuration)("preserveContent",ce.preserveContent),p.uIk("tabindex",null!=ce.contentTabIndex&&ce.selectedIndex===X?ce.contentTabIndex:null)("aria-labelledby",ce._getTabLabelId(X))}}const Sn=new p.OlP("MatInkBarPositioner",{providedIn:"root",factory:function li(){return oe=>({left:oe?(oe.offsetLeft||0)+"px":"0",width:oe?(oe.offsetWidth||0)+"px":"0"})}});let ci=(()=>{class Ee{constructor(H,X,ce,Le){this._elementRef=H,this._ngZone=X,this._inkBarPositioner=ce,this._animationMode=Le}alignToElement(H){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>{const X=this._inkBarPositioner(H),ce=this._elementRef.nativeElement;ce.style.left=X.left,ce.style.width=X.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(Sn),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(H,X){2&H&&p.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode)}}),Ee})();const Vn=new p.OlP("MatTabContent"),$i=new p.OlP("MatTabLabel"),Jt=new p.OlP("MAT_TAB"),fi=(0,Q.Id)(class{}),cn=new p.OlP("MAT_TAB_GROUP");let xn=(()=>{class Ee extends fi{constructor(H,X){super(),this._viewContainerRef=H,this._closestTabGroup=X,this.textLabel="",this._contentPortal=null,this._stateChanges=new Oe.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(H){this._setTemplateLabelInput(H)}get content(){return this._contentPortal}ngOnChanges(H){(H.hasOwnProperty("textLabel")||H.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new l(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(H){H&&H._closestTab===this&&(this._templateLabel=H)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.s_b),p.Y36(cn,8))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab"]],contentQueries:function(H,X,ce){if(1&H&&(p.Suo(ce,$i,5),p.Suo(ce,Vn,7,p.Rgc)),2&H){let Le;p.iGM(Le=p.CRH())&&(X.templateLabel=Le.first),p.iGM(Le=p.CRH())&&(X._explicitContent=Le.first)}},viewQuery:function(H,X){if(1&H&&p.Gf(p.Rgc,7),2&H){let ce;p.iGM(ce=p.CRH())&&(X._implicitContent=ce.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[p._Bn([{provide:Jt,useExisting:Ee}]),p.qOj,p.TTD],ngContentSelectors:Gt,decls:1,vars:0,template:function(H,X){1&H&&(p.F$t(),p.YNc(0,on,1,0,"ng-template"))},encapsulation:2}),Ee})();const Ei={translateTab:(0,_t.X$)("translateTab",[(0,_t.SB)("center, void, left-origin-center, right-origin-center",(0,_t.oB)({transform:"none"})),(0,_t.SB)("left",(0,_t.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,_t.SB)("right",(0,_t.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,_t.eR)("* => left, * => right, left => center, right => center",(0,_t.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,_t.eR)("void => left-origin-center",[(0,_t.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,_t.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,_t.eR)("void => right-origin-center",[(0,_t.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,_t.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Di=(()=>{class Ee extends v{constructor(H,X,ce,Le){super(H,X,Le),this._host=ce,this._centeringSub=ye.w0.EMPTY,this._leavingSub=ye.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,we.O)(this._host._isCenterPosition(this._host._position))).subscribe(H=>{H&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36((0,p.Gpc)(()=>Yn)),p.Y36(h.K0))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["","matTabBodyHost",""]],features:[p.qOj]}),Ee})(),ir=(()=>{class Ee{constructor(H,X,ce){this._elementRef=H,this._dir=X,this._dirChangeSubscription=ye.w0.EMPTY,this._translateTabComplete=new Oe.x,this._onCentering=new p.vpe,this._beforeCentering=new p.vpe,this._afterLeavingCenter=new p.vpe,this._onCentered=new p.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,X&&(this._dirChangeSubscription=X.change.subscribe(Le=>{this._computePositionAnimationState(Le),ce.markForCheck()})),this._translateTabComplete.pipe((0,Be.x)((Le,at)=>Le.fromState===at.fromState&&Le.toState===at.toState)).subscribe(Le=>{this._isCenterPosition(Le.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Le.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(H){this._positionIndex=H,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(H){const X=this._isCenterPosition(H.toState);this._beforeCentering.emit(X),X&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(H){return"center"==H||"left-origin-center"==H||"right-origin-center"==H}_computePositionAnimationState(H=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==H?"left":"right":this._positionIndex>0?"ltr"==H?"right":"left":"center"}_computePositionFromOrigin(H){const X=this._getLayoutDirection();return"ltr"==X&&H<=0||"rtl"==X&&H>0?"left-origin-center":"right-origin-center"}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(xt.Is,8),p.Y36(p.sBO))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ee})(),Yn=(()=>{class Ee extends ir{constructor(H,X,ce){super(H,X,ce)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(xt.Is,8),p.Y36(p.sBO))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab-body"]],viewQuery:function(H,X){if(1&H&&p.Gf(v,5),2&H){let ce;p.iGM(ce=p.CRH())&&(X._portalHost=ce.first)}},hostAttrs:[1,"mat-tab-body"],features:[p.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(H,X){1&H&&(p.TgZ(0,"div",0,1),p.NdJ("@translateTab.start",function(Le){return X._onTranslateTabStarted(Le)})("@translateTab.done",function(Le){return X._translateTabComplete.next(Le)}),p.YNc(2,yn,0,0,"ng-template",2),p.qZA()),2&H&&p.Q6J("@translateTab",p.WLB(3,le,X._position,p.VKq(1,pe,X.animationDuration)))},dependencies:[Di],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Ei.translateTab]}}),Ee})();const Ji=new p.OlP("MAT_TABS_CONFIG"),xs=(0,Q.Id)(class{});let Kr=(()=>{class Ee extends xs{constructor(H){super(),this.elementRef=H}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq))},Ee.\u0275dir=p.lG2({type:Ee,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(H,X){2&H&&(p.uIk("aria-disabled",!!X.disabled),p.ekj("mat-tab-disabled",X.disabled))},inputs:{disabled:"disabled"},features:[p.qOj]}),Ee})();const Yr=(0,gn.i$)({passive:!0});let us=(()=>{class Ee{constructor(H,X,ce,Le,at,Dt,Mt){this._elementRef=H,this._changeDetectorRef=X,this._viewportRuler=ce,this._dir=Le,this._ngZone=at,this._platform=Dt,this._animationMode=Mt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Oe.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Oe.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new p.vpe,this.indexFocused=new p.vpe,at.runOutsideAngular(()=>{(0,Ne.R)(H.nativeElement,"mouseleave").pipe((0,xe.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(H){this._disablePagination=(0,pt.Ig)(H)}get selectedIndex(){return this._selectedIndex}set selectedIndex(H){H=(0,pt.su)(H),this._selectedIndex!=H&&(this._selectedIndexChanged=!0,this._selectedIndex=H,this._keyManager&&this._keyManager.updateActiveItem(H))}ngAfterViewInit(){(0,Ne.R)(this._previousPaginator.nativeElement,"touchstart",Yr).pipe((0,xe.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,Ne.R)(this._nextPaginator.nativeElement,"touchstart",Yr).pipe((0,xe.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const H=this._dir?this._dir.change:(0,ue.of)("ltr"),X=this._viewportRuler.change(150),ce=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new _.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(ce),(0,de.T)(H,X,this._items.changes,this._itemsResized()).pipe((0,xe.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),ce()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,xe.R)(this._destroyed)).subscribe(Le=>{this.indexFocused.emit(Le),this._setTabFocus(Le)})}_itemsResized(){return"function"!=typeof ResizeObserver?be.E:this._items.changes.pipe((0,we.O)(this._items),function ee(Ee,oe){return(0,re.e)((H,X)=>{let ce=null,Le=0,at=!1;const Dt=()=>at&&!ce&&X.complete();H.subscribe((0,_e.x)(X,Mt=>{null==ce||ce.unsubscribe();let rn=0;const gi=Le++;(0,Y.Xf)(Ee(Mt,gi)).subscribe(ce=(0,_e.x)(X,kn=>X.next(oe?oe(Mt,kn,gi,rn++):kn),()=>{ce=null,Dt()}))},()=>{at=!0,Dt()}))})}(H=>new ke.y(X=>this._ngZone.runOutsideAngular(()=>{const ce=new ResizeObserver(Le=>X.next(Le));return H.forEach(Le=>ce.observe(Le.elementRef.nativeElement)),()=>{ce.disconnect()}}))),(0,he.T)(1),(0,Me.h)(H=>H.some(X=>X.contentRect.width>0&&X.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(H){if(!(0,kt.Vb)(H))switch(H.keyCode){case kt.K5:case kt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(H));break;default:this._keyManager.onKeydown(H)}}_onContentChanges(){const H=this._elementRef.nativeElement.textContent;H!==this._currentTextContent&&(this._currentTextContent=H||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(H){!this._isValidIndex(H)||this.focusIndex===H||!this._keyManager||this._keyManager.setActiveItem(H)}_isValidIndex(H){if(!this._items)return!0;const X=this._items?this._items.toArray()[H]:null;return!!X&&!X.disabled}_setTabFocus(H){if(this._showPaginationControls&&this._scrollToLabel(H),this._items&&this._items.length){this._items.toArray()[H].focus();const X=this._tabListContainer.nativeElement;X.scrollLeft="ltr"==this._getLayoutDirection()?0:X.scrollWidth-X.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const H=this.scrollDistance,X="ltr"===this._getLayoutDirection()?-H:H;this._tabList.nativeElement.style.transform=`translateX(${Math.round(X)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(H){this._scrollTo(H)}_scrollHeader(H){return this._scrollTo(this._scrollDistance+("before"==H?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(H){this._stopInterval(),this._scrollHeader(H)}_scrollToLabel(H){if(this.disablePagination)return;const X=this._items?this._items.toArray()[H]:null;if(!X)return;const ce=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Le,offsetWidth:at}=X.elementRef.nativeElement;let Dt,Mt;"ltr"==this._getLayoutDirection()?(Dt=Le,Mt=Dt+at):(Mt=this._tabListInner.nativeElement.offsetWidth-Le,Dt=Mt-at);const rn=this.scrollDistance,gi=this.scrollDistance+ce;Dtgi&&(this.scrollDistance+=Mt-gi+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const H=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;H||(this.scrollDistance=0),H!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=H}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const H=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,X=H?H.elementRef.nativeElement:null;X?this._inkBar.alignToElement(X):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(H,X){X&&null!=X.button&&0!==X.button||(this._stopInterval(),Pt(650,100).pipe((0,xe.R)((0,de.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ce,distance:Le}=this._scrollHeader(H);(0===Le||Le>=ce)&&this._stopInterval()}))}_scrollTo(H){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const X=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(X,H)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:X,distance:this._scrollDistance}}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ht),p.Y36(xt.Is,8),p.Y36(p.R0b),p.Y36(gn.t4),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{disablePagination:"disablePagination"}}),Ee})(),rr=(()=>{class Ee extends us{constructor(H,X,ce,Le,at,Dt,Mt){super(H,X,ce,Le,at,Dt,Mt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(H){this._disableRipple=(0,pt.Ig)(H)}_itemSelected(H){H.preventDefault()}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ht),p.Y36(xt.Is,8),p.Y36(p.R0b),p.Y36(gn.t4),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{disableRipple:"disableRipple"},features:[p.qOj]}),Ee})(),pi=(()=>{class Ee extends rr{constructor(H,X,ce,Le,at,Dt,Mt){super(H,X,ce,Le,at,Dt,Mt)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ht),p.Y36(xt.Is,8),p.Y36(p.R0b),p.Y36(gn.t4),p.Y36(p.QbO,8))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab-header"]],contentQueries:function(H,X,ce){if(1&H&&p.Suo(ce,Kr,4),2&H){let Le;p.iGM(Le=p.CRH())&&(X._items=Le)}},viewQuery:function(H,X){if(1&H&&(p.Gf(ci,7),p.Gf(se,7),p.Gf(Te,7),p.Gf(Ve,7),p.Gf(tt,5),p.Gf(gt,5)),2&H){let ce;p.iGM(ce=p.CRH())&&(X._inkBar=ce.first),p.iGM(ce=p.CRH())&&(X._tabListContainer=ce.first),p.iGM(ce=p.CRH())&&(X._tabList=ce.first),p.iGM(ce=p.CRH())&&(X._tabListInner=ce.first),p.iGM(ce=p.CRH())&&(X._nextPaginator=ce.first),p.iGM(ce=p.CRH())&&(X._previousPaginator=ce.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(H,X){2&H&&p.ekj("mat-tab-header-pagination-controls-enabled",X._showPaginationControls)("mat-tab-header-rtl","rtl"==X._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[p.qOj],ngContentSelectors:Gt,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(H,X){1&H&&(p.F$t(),p.TgZ(0,"button",0,1),p.NdJ("click",function(){return X._handlePaginatorClick("before")})("mousedown",function(Le){return X._handlePaginatorPress("before",Le)})("touchend",function(){return X._stopInterval()}),p._UZ(2,"div",2),p.qZA(),p.TgZ(3,"div",3,4),p.NdJ("keydown",function(Le){return X._handleKeydown(Le)}),p.TgZ(5,"div",5,6),p.NdJ("cdkObserveContent",function(){return X._onContentChanges()}),p.TgZ(7,"div",7,8),p.Hsn(9),p.qZA(),p._UZ(10,"mat-ink-bar"),p.qZA()(),p.TgZ(11,"button",9,10),p.NdJ("mousedown",function(Le){return X._handlePaginatorPress("after",Le)})("click",function(){return X._handlePaginatorClick("after")})("touchend",function(){return X._stopInterval()}),p._UZ(13,"div",2),p.qZA()),2&H&&(p.ekj("mat-tab-header-pagination-disabled",X._disableScrollBefore),p.Q6J("matRippleDisabled",X._disableScrollBefore||X.disableRipple)("disabled",X._disableScrollBefore||null),p.xp6(5),p.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode),p.xp6(6),p.ekj("mat-tab-header-pagination-disabled",X._disableScrollAfter),p.Q6J("matRippleDisabled",X._disableScrollAfter||X.disableRipple)("disabled",X._disableScrollAfter||null))},dependencies:[Q.wG,j.wD,ci],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ee})(),Zr=0;class Sr{}const Xi=(0,Q.pj)((0,Q.Kr)(class{constructor(Ee){this._elementRef=Ee}}),"primary");let wr=(()=>{class Ee extends Xi{constructor(H,X,ce,Le){var at;super(H),this._changeDetectorRef=X,this._animationMode=Le,this._tabs=new p.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ye.w0.EMPTY,this._tabLabelSubscription=ye.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new p.vpe,this.focusChange=new p.vpe,this.animationDone=new p.vpe,this.selectedTabChange=new p.vpe(!0),this._groupId=Zr++,this.animationDuration=ce&&ce.animationDuration?ce.animationDuration:"500ms",this.disablePagination=!(!ce||null==ce.disablePagination)&&ce.disablePagination,this.dynamicHeight=!(!ce||null==ce.dynamicHeight)&&ce.dynamicHeight,this.contentTabIndex=null!==(at=null==ce?void 0:ce.contentTabIndex)&&void 0!==at?at:null,this.preserveContent=!(null==ce||!ce.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(H){this._dynamicHeight=(0,pt.Ig)(H)}get selectedIndex(){return this._selectedIndex}set selectedIndex(H){this._indexToSelect=(0,pt.su)(H,null)}get animationDuration(){return this._animationDuration}set animationDuration(H){this._animationDuration=/^\d+$/.test(H+"")?H+"ms":H}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(H){this._contentTabIndex=(0,pt.su)(H,null)}get disablePagination(){return this._disablePagination}set disablePagination(H){this._disablePagination=(0,pt.Ig)(H)}get preserveContent(){return this._preserveContent}set preserveContent(H){this._preserveContent=(0,pt.Ig)(H)}get backgroundColor(){return this._backgroundColor}set backgroundColor(H){const X=this._elementRef.nativeElement;X.classList.remove(`mat-background-${this.backgroundColor}`),H&&X.classList.add(`mat-background-${H}`),this._backgroundColor=H}ngAfterContentChecked(){const H=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=H){const X=null==this._selectedIndex;if(!X){this.selectedTabChange.emit(this._createChangeEvent(H));const ce=this._tabBodyWrapper.nativeElement;ce.style.minHeight=ce.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ce,Le)=>ce.isActive=Le===H),X||(this.selectedIndexChange.emit(H),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((X,ce)=>{X.position=ce-H,null!=this._selectedIndex&&0==X.position&&!X.origin&&(X.origin=H-this._selectedIndex)}),this._selectedIndex!==H&&(this._selectedIndex=H,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const H=this._clampTabIndex(this._indexToSelect);if(H===this._selectedIndex){const X=this._tabs.toArray();let ce;for(let Le=0;Le{X[H].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(H))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,we.O)(this._allTabs)).subscribe(H=>{this._tabs.reset(H.filter(X=>X._closestTabGroup===this||!X._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(H){const X=this._tabHeader;X&&(X.focusIndex=H)}_focusChanged(H){this._lastFocusedTabIndex=H,this.focusChange.emit(this._createChangeEvent(H))}_createChangeEvent(H){const X=new Sr;return X.index=H,this._tabs&&this._tabs.length&&(X.tab=this._tabs.toArray()[H]),X}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,de.T)(...this._tabs.map(H=>H._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(H){return Math.min(this._tabs.length-1,Math.max(H||0,0))}_getTabLabelId(H){return`mat-tab-label-${this._groupId}-${H}`}_getTabContentId(H){return`mat-tab-content-${this._groupId}-${H}`}_setTabBodyWrapperHeight(H){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const X=this._tabBodyWrapper.nativeElement;X.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(X.style.height=H+"px")}_removeTabBodyWrapperHeight(){const H=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=H.clientHeight,H.style.height="",this.animationDone.emit()}_handleClick(H,X,ce){H.disabled||(this.selectedIndex=X.focusIndex=ce)}_getTabIndex(H,X){var ce;return H.disabled?null:X===(null!==(ce=this._lastFocusedTabIndex)&&void 0!==ce?ce:this.selectedIndex)?0:-1}_tabFocusChanged(H,X){H&&"mouse"!==H&&"touch"!==H&&(this._tabHeader.focusIndex=X)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ji,8),p.Y36(p.QbO,8))},Ee.\u0275dir=p.lG2({type:Ee,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[p.qOj]}),Ee})(),qn=(()=>{class Ee extends wr{constructor(H,X,ce,Le){super(H,X,ce,Le)}}return Ee.\u0275fac=function(H){return new(H||Ee)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ji,8),p.Y36(p.QbO,8))},Ee.\u0275cmp=p.Xpm({type:Ee,selectors:[["mat-tab-group"]],contentQueries:function(H,X,ce){if(1&H&&p.Suo(ce,xn,5),2&H){let Le;p.iGM(Le=p.CRH())&&(X._allTabs=Le)}},viewQuery:function(H,X){if(1&H&&(p.Gf(mt,5),p.Gf(Qt,5)),2&H){let ce;p.iGM(ce=p.CRH())&&(X._tabBodyWrapper=ce.first),p.iGM(ce=p.CRH())&&(X._tabHeader=ce.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(H,X){2&H&&p.ekj("mat-tab-group-dynamic-height",X.dynamicHeight)("mat-tab-group-inverted-header","below"===X.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[p._Bn([{provide:cn,useExisting:Ee}]),p.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(H,X){1&H&&(p.TgZ(0,"mat-tab-header",0,1),p.NdJ("indexFocused",function(Le){return X._focusChanged(Le)})("selectFocusedIndex",function(Le){return X.selectedIndex=Le}),p.YNc(2,zi,5,15,"div",2),p.qZA(),p.TgZ(3,"div",3,4),p.YNc(5,Qi,1,11,"mat-tab-body",5),p.qZA()),2&H&&(p.Q6J("selectedIndex",X.selectedIndex||0)("disableRipple",X.disableRipple)("disablePagination",X.disablePagination),p.xp6(2),p.Q6J("ngForOf",X._tabs),p.xp6(1),p.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode),p.xp6(2),p.Q6J("ngForOf",X._tabs))},dependencies:[h.mk,h.sg,h.O5,v,Q.wG,_.kH,Kr,Yn,pi],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Ee})(),mi=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=p.oAB({type:Ee}),Ee.\u0275inj=p.cJS({imports:[h.ez,Q.BQ,F,Q.si,j.Q8,_.rt,Q.BQ]}),Ee})()},7582:(nt,Fe,$)=>{"use strict";function y(ee,he,Me,Oe){return new(Me||(Me=Promise))(function(Ne,ue){function de(Ue){try{ke(Oe.next(Ue))}catch(ft){ue(ft)}}function be(Ue){try{ke(Oe.throw(Ue))}catch(ft){ue(ft)}}function ke(Ue){Ue.done?Ne(Ue.value):function ye(Ne){return Ne instanceof Me?Ne:new Me(function(ue){ue(Ne)})}(Ue.value).then(de,be)}ke((Oe=Oe.apply(ee,he||[])).next())})}function v(ee){return this instanceof v?(this.v=ee,this):new v(ee)}function w(ee,he,Me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ye,Oe=Me.apply(ee,he||[]),Ne=[];return ye={},ue("next"),ue("throw"),ue("return"),ye[Symbol.asyncIterator]=function(){return this},ye;function ue(Xe){Oe[Xe]&&(ye[Xe]=function(Pt){return new Promise(function(_t,xt){Ne.push([Xe,Pt,_t,xt])>1||de(Xe,Pt)})})}function de(Xe,Pt){try{!function be(Xe){Xe.value instanceof v?Promise.resolve(Xe.value.v).then(ke,Ue):ft(Ne[0][2],Xe)}(Oe[Xe](Pt))}catch(_t){ft(Ne[0][3],_t)}}function ke(Xe){de("next",Xe)}function Ue(Xe){de("throw",Xe)}function ft(Xe,Pt){Xe(Pt),Ne.shift(),Ne.length&&de(Ne[0][0],Ne[0][1])}}function Z(ee){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Me,he=ee[Symbol.asyncIterator];return he?he.call(ee):(ee=function d(ee){var he="function"==typeof Symbol&&Symbol.iterator,Me=he&&ee[he],Oe=0;if(Me)return Me.call(ee);if(ee&&"number"==typeof ee.length)return{next:function(){return ee&&Oe>=ee.length&&(ee=void 0),{value:ee&&ee[Oe++],done:!ee}}};throw new TypeError(he?"Object is not iterable.":"Symbol.iterator is not defined.")}(ee),Me={},Oe("next"),Oe("throw"),Oe("return"),Me[Symbol.asyncIterator]=function(){return this},Me);function Oe(Ne){Me[Ne]=ee[Ne]&&function(ue){return new Promise(function(de,be){!function ye(Ne,ue,de,be){Promise.resolve(be).then(function(ke){Ne({value:ke,done:de})},ue)}(de,be,(ue=ee[Ne](ue)).done,ue.value)})}}}$.d(Fe,{FC:()=>w,KL:()=>Z,mG:()=>y,qq:()=>v})}},nt=>{nt(nt.s=1950)}]); \ No newline at end of file