@finos/legend-application-pure-ide-deployment
Version:
Legend Pure IDE web application deployment
1 lines • 628 kB
JavaScript
(()=>{var e,t,n,i,s,o={21263:(e,t,n)=>{"use strict";const i=JSON.parse('{"rE":"11.0.25","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var s,o=n(20938);class r{name;version;signature;uuid}class a{name;version;uuid=(0,o.A)();constructor(e,t){this.name=e,this.version=t}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getInfo(){const e=new r;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class c{plugins=[];presets=[];usePlugins(e){return this.plugins=e,this}usePresets(e){return this.presets=e,this}configure(e){Object.keys(e).forEach(t=>{const n=e[t];this.presets.forEach(e=>{e.getName()===t&&e.configure(n)}),this.plugins.forEach(e=>{e.getName()===t&&e.configure(n)})})}install(){this.plugins.forEach(e=>e.install(this)),this.presets.forEach(e=>e.install(this))}getInfo(){return{plugins:this.plugins.filter(e=>!this.getHiddenPluginNames().includes(e.getName())).map(e=>e.getInfo()).sort((e,t)=>e.name.localeCompare(t.name)),presets:this.presets.filter(e=>!this.getHiddenPresetNames().includes(e.getName())).map(e=>e.getInfo()).sort((e,t)=>e.name.localeCompare(t.name))}}getHiddenPluginNames(){return[]}getHiddenPresetNames(){return[]}}!function(e){e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(s||(s={}));class l{channel;name;timestamp=Date.now();static create(e){const t=new l;return t.name=e,t}}class d extends a{level=s.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=s.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=s.INFO&&this._info(e,...t)}warn(e,...t){this.level<=s.WARN&&this._warn(e,...t)}error(e,...t){this.level<=s.ERROR&&this._error(e,...t)}}class u{loggers=[];registerPlugins(e){this.loggers=e}debug(e,...t){this.loggers.forEach(n=>n.debug(e,...t))}info(e,...t){this.loggers.forEach(n=>n.info(e,...t))}warn(e,...t){this.loggers.forEach(n=>n.warn(e,...t))}error(e,...t){this.loggers.forEach(n=>n.error(e,...t))}}const{debug:p,info:h,warn:g,error:m}=console;class f extends d{constructor(){super(i.XO.Z,i.rE)}_debug(e,...t){p(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){h(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var _=n(31085),E=n(25873),b=n(859),T=n(84365);const S=e=>e.constructor,y=()=>()=>{},v=(e,t,n)=>F(e.at(t),n),C=e=>new Promise((t,n)=>setTimeout(()=>{try{t(e())}catch(e){n(e)}},0)),N=(e,t,n=(e,t)=>e===t)=>!e.find(e=>n(e,t))&&(e.push(t),!0),A=(e,t,n=(e,t)=>e===t)=>{const i=e.findIndex(e=>n(e,t));return-1!==i&&(e.splice(i,1),!0)};class I extends Error{uuid=(0,o.A)();constructor(e){super(),this.message=void 0===e||""===e?"(no error message)":e}get detail(){return this.message}}class x extends Error{constructor(e,t,n){if(super(n||(t instanceof Error?t.message:t)),this.name=e,t instanceof Error){const e=(this.message.match(/\n/g)??[]).length+1;this.stack=`${(this.stack??"").split("\n").slice(0,e+1).join("\n")}\nCaused by: ${t.stack}`}else"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}}class w extends x{constructor(e){super("Illegal State Error [PLEASE NOTIFY DEVELOPER]",e)}}class k extends x{constructor(e,t){super("Unsupported Operation Error",e||t?`${e}${t?`\n${((e,t)=>{const n=(i={printFunctionName:!1,maxDepth:t?.deep?void 0:1},(0,b.A)(i,e=>void 0!==e));var i;return(0,T.GP)(e,n).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,e=>["[Array]","[Function]"].includes(e)?e:"[Object]")})(t)}`:""}`:void 0)}}function O(e){if(!(e instanceof Error))throw new w("Expected error to be thrown")}const R=e=>{try{return e()}catch{return}};class P extends x{constructor(e,t){super("Assertion Error",e,t)}}const L=e=>null!=e;function M(e,t=""){if(null==e)throw new P(t||"Value is nullable")}const F=(e,t="")=>(M(e,t),e),D=(e,t)=>e instanceof t,B=e=>t=>D(t,e);function j(e,t,n=""){if(!(e instanceof t))throw new P(n||`Value is expected to be of type '${t.name}'`)}const U=(e,t,n="")=>(j(e,t,n),e);function G(e,t=""){if(""===F(e,t))throw new P(t||"Expected string value to be non-empty")}function V(e,t=""){return G(e,t),e}function H(e,t=""){if(!e)throw new P(t||"Expected predicate to be truthy")}const $=e=>"string"==typeof e,Y=e=>"number"==typeof e&&!isNaN(e),z=e=>"boolean"==typeof e,W=e=>"object"==typeof e&&null!==e;var K=n(66651),X=n(56046),J=n(6451),q=n(8041),Z=n(83794);const Q=K.v,ee="charset=utf-8";var te,ne,ie;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(te||(te={})),function(e){e.APPLICATION_JSON="application/json",e.APPLICATION_XML="application/xml",e.APPLICATION_ZLIB="application/zlib",e.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.TEXT_PLAIN="text/plain",e.TEXT_HTML="text/html",e.TEXT_CSV="text/csv",e.ALL="*/*",e.MESSAGE_RFC822="message/rfc822"}(ne||(ne={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(ie||(ie={}));const se={mode:"cors",credentials:"include",redirect:"follow"},oe=(e,t)=>{const n={};return e&&Object.entries(e).forEach(([e,t])=>{n[e]=t}),t&&Object.entries(t).forEach(([e,t])=>{n[e]=t}),n};class re extends Error{response;payload;constructor(e,t){super(),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.name="Network Client Error",this.response=e;const{status:n,statusText:i,url:s}=e,o=`Received response with status ${n} (${i}) for ${s}`;this.message=(t?(e=>{if(W(e))return $(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&$(t.message)?t.message:e})(t).substring(0,5e3):"")||o,this.payload=t}}const ae=async(e,t,n)=>{if(n?.preprocess?.(e),!e.ok){let t;try{t=await e.text(),t=JSON.parse(t)}catch{}return Promise.reject(new re(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===Q.NO_CONTENT)return Promise.resolve(void 0);const i=t.headers.Accept;switch(i){case ne.APPLICATION_JSON:return e.json();case ne.TEXT_PLAIN:return e.text();default:return Promise.reject(new re(e,`Can't process response for request with Content-Type '${i}'`))}},ce=(e,t)=>{const n={};return n.Accept=ne.APPLICATION_JSON,e!==ie.GET&&(n[te.CONTENT_TYPE]=`${ne.APPLICATION_JSON};${ee}`),oe(n,t)};class le{options={};baseUrl;constructor(e){(0,Z.Gn)(this,{baseUrl:Z.sH,setBaseUrl:Z.XI}),this.baseUrl=e?.baseUrl,this.options={...se,...e?.options??{}}}setBaseUrl(e){this.baseUrl=e}async get(e,t={},n,i,s,o){return this.request(ie.GET,e,void 0,t,n,i,s,o)}async put(e,t={},n={},i,s,o,r){return this.request(ie.PUT,e,t,n,i,s,o,r)}async post(e,t={},n={},i,s,o,r){return this.request(ie.POST,e,t,n,i,s,o,r)}async delete(e,t={},n={},i,s,o,r){return this.request(ie.DELETE,e,t,n,i,s,o,r)}async request(e,t,n,i,s,o,r,a){const c=((e,t,n)=>{if(!e&&!R(()=>new URL(t)))throw new Error(`Can't build URL string: base URL is not specified and the provided URL '${t}' is not absolute`);const i=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach(([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(L).forEach(t=>i.searchParams.append(e,t.toString())):i.searchParams.append(e,t.toString()))}),i.toString()})(this.baseUrl,t,o??{});let l;if(($(n)||W(n))&&r?.enableCompression&&(H(e!==ie.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,X.Kc)(W(e)?JSON.stringify(e):e)]))(n),s=oe(s,{[te.CONTENT_TYPE]:`${ne.APPLICATION_ZLIB};${ee}`})),void 0!==n)if($(n)||n instanceof Blob)l=n;else{if(!W(n))throw new P("Request body can only be either a 'string' or an 'object'");l=JSON.stringify(n)}const d={...this.options,...i,method:e,body:l,headers:ce(e,s)};return fetch(c,d).then(e=>0===e.status||e.status===Q.UNAUTHORIZED?a?.autoReAuthenticateUrl?(e=>new Promise(t=>{const n="AUTO_AUTHENTICATION_IFRAME",i=document.getElementById(n);i?.remove();const s=document.createElement("iframe");s.id=n,s.src=e,s.style.display="none",s.addEventListener("load",()=>{s.remove(),t()}),document.body.appendChild(s)}))(a.autoReAuthenticateUrl).then(()=>fetch(c,d)).then(e=>ae(e,d,a)):fetch(c,d).then(e=>ae(e,d,a)):ae(e,d,a)).catch(e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(c,d).then(e=>ae(e,d,a)):Promise.reject(e))}}const de=(e,t,n)=>{const i=new Blob([t],{type:n}),s=URL.createObjectURL(i),o=document.createElement("a");"string"==typeof o.download?(document.body.appendChild(o),o.download=e,o.href=s,o.click(),document.body.removeChild(o)):location.replace(s)};var ue;!function(e){e.GENERIC_FAILURE="application.failure.generic",e.APPLICATION_SETUP__FAILURE="application.setup.failure",e.APPLICATION_LOAD__SUCCESS="application.load.success",e.APPLICATION_LOAD__FAILURE="application.load.failure",e.ILLEGAL_APPLICATION_STATE_OCCURRED="application.error.illegal-state",e.APPLICATION_CONFIGURATION__FAILURE="application.configuration.failure",e.IDENTITY_AUTO_FETCH__FAILURE="application.identity.auto-fetch.failure",e.DOCUMENTATION_FETCH__FAILURE="application.documentation.fetch.failure",e.DOCUMENTATION_LOAD__SKIP="application.documentation.load.skip",e.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE="application.documentation.requirement-check.failure",e.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP="application.virtual-assistant.contextual-documentation-load.skip",e.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS="application.virtual-assistant.documentation-entry.access",e.VIRTUAL_ASSISTANT_PANEL__OPEN="application.virtual-assistant.panel.open",e.VIRTUAL_ASSISTANT_PANEL__CLOSE="application.virtual-assistant.panel.close",e.VIRTUAL_ASSISTANT_TAB__ACCESS="application.virtual-assistant.tab.access",e.VIRTUAL_ASSISTANT_DOCUMENTATION_SEARCH__INITIATED="application.virtual-assistant.documentation-search.initiated",e.VIRTUAL_ASSISTANT_SEARCH_RESULT__ACCESS="application.virtual-assistant.search-result.access",e.VIRTUAL_ASSISTANT_CONTEXTUAL_INFO__PRESENT="application.virtual-assistant.contextual-info.present",e.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE="application.load.terminal-command.configuration-check.failure",e.COLOR_THEME_CONFIGURATION_CHECK__FAILURE="application.layout.color-theme.configuration-check.failure",e.SETTING_CONFIGURATION_CHECK__FAILURE="application.setting.configuration-check.failure",e.SETTING_RETRIVE_FAILURE="application.setting.retrieve.failure",e.USER_DATA_RETRIEVE_FAILURE="application.user-data.retrieve.failure",e.COMMAND_CENTER_REGISTRATION__FAILURE="application.command.registration.failure",e.APPLICATION_CONTEXT__ACCESS="application.context.access",e.APPLICATION_USAGE__INTERRUPT="application.usage.interrupt",e.NAVIGATION_BLOCKED="application.usage.navigation-blocked",e.APPLICATION_TELEMETRY_EVENT__FAILURE="application.telemetry-event.failure",e.TOKEN_EXPIRED="application.token.expired",e.DEBUG="development.debug"}(ue||(ue={}));var pe=n(97542);class he{schema;deserializeNullAsUndefined;constructor(e,t){this.schema=e,this.deserializeNullAsUndefined=Boolean(t?.deserializeNullAsUndefined)}toJson(e){return(0,pe.lK)(this.schema,e)}fromJson(e){return(0,pe.iu)(this.schema,this.deserializeNullAsUndefined?(t=e,(0,b.A)(t,e=>null!==e)):e);var t}}class ge{key;markdownText;title;text;url;related;static serialization=new he((0,pe.PL)(ge,{markdownText:(0,pe.Ie)(e=>e,e=>e.value?e:void 0),related:(0,pe.lq)((0,pe.p_)((0,pe.MY)())),title:(0,pe.lq)((0,pe.MY)()),text:(0,pe.lq)((0,pe.MY)()),url:(0,pe.lq)((0,pe.MY)())}));static create(e,t){const n=ge.serialization.fromJson(e);return n.key=t,n}}var me=n(66696);const fe=e=>Object.entries(e).map(e=>({key:e[0],content:ge.create(e[1],e[0])}));class _e{url;links;docRegistry=new Map;contextualDocIndex=new Map;constructor(e){this.url=e.config.documentationUrl,this.links=e.config.documentationLinkEntries,e.pluginManager.getApplicationPlugins().flatMap(e=>e.getExtraKeyedDocumentationEntries?.()??[]).forEach(t=>{this.hasDocEntry(t.key)?e.logService.warn(l.create(ue.DOCUMENTATION_LOAD__SKIP),t.key):this.docRegistry.set(t.key,t.content)}),e.config.keyedDocumentationEntries.forEach(e=>this.docRegistry.set(e.key,e.content));const t=e.pluginManager.getApplicationPlugins().flatMap(e=>e.getExtraContextualDocumentationEntries?.()??[]),n=[];(0,me.A)(e.pluginManager.getApplicationPlugins().flatMap(e=>e.getExtraRequiredDocumentationKeys?.()??[]).concat(t.map(e=>e.documentationKey))).forEach(e=>{this.docRegistry.has(e)||n.push(e)}),n.length&&e.logService.warn(l.create(ue.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE),`Can't find corresponding documentation entry for keys:\n${n.map(e=>`- ${e}`).join("\n")}`),t.forEach(t=>{if(this.hasContextualDocEntry(t.context))e.logService.warn(l.create(ue.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP),t.context);else{const e=this.getDocEntry(t.documentationKey);e&&this.contextualDocIndex.set(t.context,e)}}),e.config.contextualDocEntries.forEach(e=>{const t=this.getDocEntry(e.documentationKey);t&&this.contextualDocIndex.set(e.context,t)})}getDocEntry(e){return this.docRegistry.get(e)}hasDocEntry(e){return this.docRegistry.has(e)}getContextualDocEntry(e){return this.contextualDocIndex.get(e)}hasContextualDocEntry(e){return this.contextualDocIndex.has(e)}getAllDocEntries(){return Array.from(this.docRegistry.values())}publishDocRegistry(){const e={};return this.docRegistry.forEach((t,n)=>{e[n]=ge.serialization.toJson(t)}),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach((t,n)=>{e[n]=t.key}),e}}var Ee,be;!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Ee||(Ee={}));class Te{state;_message;_messageFormatter;constructor(){this.state=Ee.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Ee.INITIAL,this}inProgress(){return this.state=Ee.IN_PROGRESS,this}fail(){return this.state=Ee.FAILED,this}pass(){return this.state=Ee.SUCCEEDED,this}complete(e=!0){return e?this.pass():this.fail(),this}sync(e){const t=e.exportData();this.state=t.state,this._message=t.message}exportData(){return{state:this.state,message:this._message}}get isInInitialState(){return this.state===Ee.INITIAL}get isInProgress(){return this.state===Ee.IN_PROGRESS}get hasFailed(){return this.state===Ee.FAILED}get hasSucceeded(){return this.state===Ee.SUCCEEDED}get message(){return this._message?this._messageFormatter?this._messageFormatter(this._message):this._message:void 0}get hasCompleted(){return this.hasFailed||this.hasSucceeded}static create(){return(0,Z.Gn)(new Te,{state:Z.sH,_message:Z.sH,reset:Z.XI,inProgress:Z.XI,pass:Z.XI,fail:Z.XI,complete:Z.XI,setMessage:Z.XI,sync:Z.XI,isInInitialState:Z.EW,isInProgress:Z.EW,hasFailed:Z.EW,hasSucceeded:Z.EW,hasCompleted:Z.EW,message:Z.EW})}}!function(e){e.USER="user",e.ENV="env",e.RESULT="result",e.ERROR="error",e.HTTP_STATUS="status",e.HTTP_REQUEST_METHOD="method",e.HTTP_REQUEST_URL="url"}(be||(be={}));class Se{traceEntries=[];setup(e){this.traceEntries=e}bootstrap(e){this.traceEntries.forEach(t=>{t.plugin.bootstrap(t.clientSpan,e)})}reportSuccess(){this.traceEntries.forEach(e=>{e.plugin.concludeClientSpan(e.clientSpan,void 0)})}reportError(e){this.traceEntries.forEach(t=>{t.plugin.concludeClientSpan(t.clientSpan,e)})}}class ye{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,i){const s=new Se;return e&&s.setup(this.plugins.map(s=>({clientSpan:s.createClientSpan(e,t,n,i),plugin:s}))),s}}const ve=n(37102).A;var Ce,Ne;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Ce||(Ce={}));class Ae{currentMode=Ce.STANDARD;onSearchModeChange;constructor(e){(0,Z.Gn)(this,{currentMode:Z.sH,isAdvancedSearchActive:Z.EW,setCurrentMode:Z.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Ce.STANDARD}generateSearchText(e){switch(this.currentMode){case Ce.INCLUDE:return`'"${e}"`;case Ce.EXACT:return`="${e}"`;case Ce.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Ne||(Ne={}));class Ie{uuid=(0,o.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,Z.Gn)(this,{isOpen:Z.sH,setIsOpen:Z.XI}),this.documentationKey=e.key,this.title=V(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class xe{uuid=(0,o.A)();context;title;content;url;related;constructor(e,t,n){this.context=e,this.title=t.title,this.content=t.markdownText??t.text,this.url=t.url,this.related=n}}const we=e=>Boolean(e.title&&(e.url??e.text??e.markdownText));class ke{applicationStore;telemetryCallbacks;panelRenderingKey=(0,o.A)();isDisabled=!1;isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=Ne.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=Te.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,Z.Gn)(this,{isDisabled:Z.sH,isHidden:Z.sH,isOpen:Z.sH,isPanelMaximized:Z.sH,panelRenderingKey:Z.sH,isOverSearchLimit:Z.sH,selectedTab:Z.sH,searchText:Z.sH,searchResults:Z.sH,currentDocumentationEntry:Z.sH,showSearchConfigurationMenu:Z.sH,currentContextualDocumentationEntry:Z.EW,setIsDisabled:Z.XI,setIsHidden:Z.XI,setIsOpen:Z.XI,setIsPanelMaximized:Z.XI,setSelectedTab:Z.XI,setSearchText:Z.XI,resetSearch:Z.XI,search:Z.XI,openDocumentationEntry:Z.XI,refreshPanelRendering:Z.XI,setShowSearchConfigurationMenu:Z.XI}),this.applicationStore=e,this.searchEngine=new ve(this.applicationStore.documentationService.getAllDocEntries().filter(we),{includeScore:!0,shouldSort:!0,ignoreLocation:!0,threshold:.2,keys:[{name:"title",weight:4},{name:"text",weight:1},{name:"markdownText.value",weight:1}],useExtendedSearch:!0}),this.searchConfigurationState=new Ae(()=>{this.search()})}get currentContextualDocumentationEntry(){if(!this.applicationStore.navigationContextService.currentContext)return;const e=this.applicationStore.navigationContextService.currentContext.key,t=this.applicationStore.documentationService.getContextualDocEntry(e);return t?new xe(e,t,(t.related??[]).map(e=>this.applicationStore.documentationService.getDocEntry(e)).filter(L).filter(we).map(e=>new Ie(e))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Ie(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&((e=>we(e)&&Boolean(e.text??e.markdownText))(t)?this.openDocumentationEntry(t.key):t.url&&this.applicationStore.navigationService.navigator.visitAddress(t.url))}setIsDisabled(e){this.isDisabled=e}setIsHidden(e){this.isHidden=e}setIsPanelMaximized(e){this.isPanelMaximized=e}hideAssistant(){this.setIsHidden(!0),this.setIsOpen(!1)}toggleAssistant(){this.isHidden?this.setIsHidden(!1):this.hideAssistant()}setIsOpen(e){this.isOpen=e}setSelectedTab(e){this.selectedTab=e}refreshPanelRendering(){this.panelRenderingKey=(0,o.A)()}setSearchText(e){this.searchText=e}resetSearch(){this.searchText="",this.searchResults=[],this.searchState.complete()}search(){this.searchText?(this.currentDocumentationEntry=void 0,this.searchState.inProgress(),this.searchResults=Array.from(this.searchEngine.search(this.searchConfigurationState.generateSearchText(this.searchText),{limit:101}).values()).map(e=>new Ie(e.item)),this.searchResults.length>100?(this.isOverSearchLimit=!0,this.searchResults=this.searchResults.slice(0,100)):this.isOverSearchLimit=!1,this.searchState.complete()):this.searchResults=[]}setShowSearchConfigurationMenu(e){this.showSearchConfigurationMenu=e}}class Oe{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach(n=>n.notify(e,t))}}class Re{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(ue.APPLICATION_LOAD__SUCCESS,{application:{name:t.config.appName,version:t.config.appVersion,env:t.config.env},browser:{userAgent:navigator.userAgent},screen:{height:window.screen.height,width:window.screen.width},userSettings:{theme:t.layoutService.TEMPORARY__isLightColorThemeEnabled?"light":"dark"}})}static logEvent_ApplicationContextAccessed(e,t){e.logEvent(ue.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(ue.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(ue.APPLICATION_USAGE__INTERRUPT,{})}}class Pe{applicationStore;contextStack=[];constructor(e){(0,Z.Gn)(this,{contextStack:Z.sH,currentContext:Z.EW,push:Z.XI,pop:Z.XI}),this.applicationStore=e}get currentContext(){return this.contextStack.length?this.contextStack[this.contextStack.length-1]:void 0}push(e){const t=this.contextStack.filter(e=>!e.isTransient);if(t.find(t=>t.key===e.key))throw new w(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap(e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[]).includes(e.key)&&Re.logEvent_ApplicationContextAccessed(this.applicationStore.telemetryService,{key:e.key}),this.contextStack=t}pop(e){const t=this.contextStack.find(t=>t.key===e.key);if(!t)return;const n=this.contextStack.indexOf(t);-1!==n&&(this.contextStack=this.contextStack.slice(0,n).filter(e=>!e.isTransient))}}class Le{applicationStore;commandRegistry=new Map;constructor(e){(0,Z.Gn)(this,{commandRegistry:Z.sH,registerCommand:Z.XI,deregisterCommand:Z.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(l.create(ue.COMMAND_CENTER_REGISTRATION__FAILURE),`Can't register command: command '${t}' is already registered`):this.commandRegistry.set(t,e)}deregisterCommand(e){this.commandRegistry.delete(e)}runCommand(e,t){const n=this.commandRegistry.get(e);return!(!n||n.trigger&&!n.trigger()||(n.action?.(t),0))}}class Me{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,Z.Gn)(this,{keyMap:Z.sH,commandKeyMap:Z.sH,isHotkeysBlocked:Z.sH,addHotkey:Z.XI,blockGlobalHotkeys:Z.XI,unblockGlobalHotkeys:Z.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap(e=>e.getExtraKeyedCommandConfigEntries?.()??[]).forEach(e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(L);t.length?t.forEach(t=>this.addHotkey(e.key,t)):this.commandKeyMap.has(e.key)||this.commandKeyMap.set(e.key,[])})}blockGlobalHotkeys(){this.isHotkeysBlocked=!0}unblockGlobalHotkeys(){this.isHotkeysBlocked=!1}addHotkey(e,t){this.commandKeyMap.set(e,[...this.commandKeyMap.get(e)??[],t]),this.keyMap.set(t,[...(this.keyMap.get(t)??[]).filter(t=>t!==e),e])}dispatch(e){if(this.isHotkeysBlocked)return;const t=this.keyMap.get(e)??[];for(const e of t)if(this.applicationStore.commandService.runCommand(e))return}}var Fe=n(84594),De=n(34462),Be=n(720),je=n(75974),Ue=n(90382);const Ge="Roboto Mono",Ve="yyyy-MM-dd'T'HH:mm:ss";var He;!function(e){e.RESET="[0m",e.BOLD="[1m",e.DIM="[2m",e.ITALIC="[3m",e.UNDERLINE="[4m",e.BLINKING="[5m",e.STRIKETHROUGH="[9m",e.BLACK="[30m",e.RED="[31m",e.GREEN="[32m",e.YELLOW="[33m",e.BLUE="[34m",e.MAGENTA="[35m",e.CYAN="[36m",e.WHITE="[37m",e.BRIGHT_BLACK="[1;30m",e.BRIGHT_RED="[1;31m",e.BRIGHT_GREEN="[1;32m",e.BRIGHT_YELLOW="[1;33m",e.BRIGHT_BLUE="[1;34m",e.BRIGHT_MAGENTA="[1;35m",e.BRIGHT_CYAN="[1;36m",e.BRIGHT_WHITE="[1;37m",e.DIMMED_BLACK="[2;30m",e.DIMMED_RED="[2;31m",e.DIMMED_GREEN="[2;32m",e.DIMMED_YELLOW="[2;33m",e.DIMMED_BLUE="[2;34m",e.DIMMED_MAGENTA="[2;35m",e.DIMMED_CYAN="[2;36m",e.DIMMED_WHITE="[2;37m",e.BLACK_BG="[40m",e.RED_BG="[41m",e.GREEN_BG="[42m",e.YELLOW_BG="[43m",e.BLUE_BG="[44m",e.MAGENTA_BG="[45m",e.CYAN_BG="[46m",e.WHITE_BG="[47m",e.BRIGHT_BLACK_BG="[1;40m",e.BRIGHT_RED_BG="[1;41m",e.BRIGHT_GREEN_BG="[1;42m",e.BRIGHT_YELLOW_BG="[1;43m",e.BRIGHT_BLUE_BG="[1;44m",e.BRIGHT_MAGENTA_BG="[1;45m",e.BRIGHT_CYAN_BG="[1;46m",e.BRIGHT_WHITE_BG="[1;47m",e.DIMMED_BLACK_BG="[2;40m",e.DIMMED_RED_BG="[2;41m",e.DIMMED_GREEN_BG="[2;42m",e.DIMMED_YELLOW_BG="[2;43m",e.DIMMED_BLUE_BG="[2;44m",e.DIMMED_MAGENTA_BG="[2;45m",e.DIMMED_CYAN_BG="[2;46m",e.DIMMED_WHITE_BG="[2;47m"}(He||(He={}));const $e=(e,t)=>`[${e};${t}H`;class Ye{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,Z.Gn)(this,{searchText:Z.sH,useRegex:Z.sH,matchWholeWord:Z.sH,matchCaseSensitive:Z.sH,resultCount:Z.sH,currentResultIndex:Z.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class ze{applicationStore;searchConfig=new Ye;constructor(e){(0,Z.Gn)(this,{setSearchText:Z.XI,setSearchRegex:Z.XI,setSearchWholeWord:Z.XI,setSearchCaseSensitive:Z.XI,setSearchResultCount:Z.XI,setSearchCurrentResultIndex:Z.XI}),this.applicationStore=e}setSearchText(e){this.searchConfig.searchText=e}setSearchRegex(e){this.searchConfig.useRegex=e}setSearchWholeWord(e){this.searchConfig.matchWholeWord=e}setSearchCaseSensitive(e){this.searchConfig.matchCaseSensitive=e}setSearchResultCount(e){this.searchConfig.resultCount=e}setSearchCurrentResultIndex(e){this.searchConfig.currentResultIndex=e}}class We extends ze{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,Z.Gn)(this,{preserveLog:Z.sH,setPreserveLog:Z.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var Ke=n(29481);n(24404),n(41880);const Xe=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,Je=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],qe=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,e=>Je.includes(e.toLowerCase())?e.toLowerCase():Xe(e)).replace(/^(?:\w+)\b/u,e=>Xe(e)).replace(/\b(?:\w+)$/u,e=>Xe(e));var Ze;function Qe(e){return e.trim().split(" ").map(e=>{const t=e.split(/\b\+/),n=F(t.pop(),"Can't parse key binding: last part must be a non-modifier key");return{modifiers:t,key:n}})}!function(e){e.TAB="Tab",e.CAPSLOCK="CapsLock",e.SHIFT="Shift",e.META="Meta",e.ALT="Alt",e.CONTROL="Control",e.SPACE="Space",e.ESC="Escape",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.ENTER="Enter",e.DELETE="Delete",e.BACKSPACE="Backspace",e.BACKQUOTE="Backquote"}(Ze||(Ze={}));const et=(e,t)=>t.key===e.code&&t.modifiers.every(t=>e.getModifierState(t))&&![Ze.SHIFT,Ze.META,Ze.ALT,Ze.CONTROL].find(n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n)),tt=(e,t)=>et(e,F(Qe(t)[0]));function nt(e){const t=new Map;let n=null;return i=>{i instanceof KeyboardEvent&&((0,Ke.A)(Object.values(e).flatMap(e=>e.combinations.map(t=>({combination:t,handler:e.handler}))).filter(e=>e.combination.length),e=>e.combination).forEach(e=>{const n=e.combination,s=Qe(e.combination);if(!s.length)return;const o=t.get(n)??s,r=F(o[0]);et(i,r)?o.length>1?t.set(n,o.slice(1)):(t.delete(n),e.handler(n,i)):i.getModifierState(i.key)||t.delete(n)}),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}var it=n(8709),st=n(57182),ot=n(24924),rt=n(11467),at=n(22351);const ct=(e,t)=>(0,it.A)({...e?{}:{transitions:{create:()=>"none"}},...void 0===t?{}:{typography:{fontFamily:t}},components:{MuiButtonBase:{defaultProps:{disableRipple:!0}}},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,xxl:1800,xxxl:2300,xxxxl:2800}}}),lt=e=>{const{children:t,enableTransitions:n,customFonts:i}=e;return(0,_.jsx)(ot.A,{injectFirst:!0,children:(0,_.jsx)(st.A,{theme:ct(n,i),children:(0,_.jsx)(rt.$,{dateAdapter:at.h,children:t})})})};var dt=n(56265),ut=n(3947),pt=n(25150),ht=n(63737),gt=n(50692),mt=n(90490),ft=n(54357);const _t=(e,t)=>{const n=e=>{const{children:n,className:i}=e;return(0,_.jsx)("div",{className:(0,ft.$)(t,i),"data-testid":e["data-testid"],children:n})};return n.displayName=e,n},Et=e=>{const{children:t,darkMode:n,className:i}=e;return(0,_.jsx)("div",{className:(0,ft.$)("modal",{"modal--dark":n},i),children:t})},bt=e=>{const{title:t,icon:n,className:i}=e;return(0,_.jsxs)("div",{className:(0,ft.$)("modal__title",i),children:[n&&(0,_.jsx)("div",{className:"modal__title__icon",children:n}),(0,_.jsx)("div",{className:"modal__title__label",children:qe(t)})]})},Tt=e=>{const{title:t,children:n,className:i}=e;return!n&&t?(0,_.jsx)("div",{className:(0,ft.$)("modal__header",i),children:(0,_.jsx)(bt,{title:t})}):(0,_.jsx)("div",{className:(0,ft.$)("modal__header",i),children:n})},St=(_t("ModalHeaderActions","modal__header__actions"),_t("ModalBody","modal__body")),yt=_t("ModalFooter","modal__footer");var vt,Ct;_t("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION",e.ERROR="ERROR"}(vt||(vt={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Ct||(Ct={}));class Nt{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,Z.Gn)(this,{blockingAlertInfo:Z.sH,actionAlertInfo:Z.sH,setBlockingAlert:Z.XI,setActionAlertInfo:Z.XI}),this.applicationStore=e}setBlockingAlert(e){e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.blockingAlertInfo=e}setActionAlertInfo(e){this.actionAlertInfo&&e&&this.applicationStore.notificationService.notifyIllegalState("Action alert is stacked: new alert is invoked while another one is being displayed"),e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.actionAlertInfo=e}}var At=n(14041);const It=(0,At.createContext)(void 0),xt=()=>F((0,At.useContext)(It),"Can't find application store in context"),wt=e=>{const{children:t,store:n}=e,i=(0,pt.iz)(()=>n);return(0,_.jsx)(It.Provider,{value:i,children:t})},kt=e=>{switch(e){case Ct.PROCEED_WITH_CAUTION:return"btn--caution";case Ct.PROCEED:case Ct.STANDARD:default:return"btn--dark"}},Ot=(0,pt.PA)(e=>{const{info:t}=e,n=xt(),{title:i,message:s,messageClass:o,prompt:r,promptClass:a,type:c,onClose:l,onEnter:d,actions:u}=t,p=()=>{l?.(),n.alertService.setActionAlertInfo(void 0)};return(0,_.jsx)(mt.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:y,slotProps:{transition:{onEnter:()=>d?.()}},children:(0,_.jsxs)("form",{onSubmit:e=>{e.preventDefault(),u.find(e=>e.default)?.handler?.(),p()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(c??vt.STANDARD).toLowerCase()}`,children:[i&&(0,_.jsx)(Tt,{title:i}),(0,_.jsxs)(St,{children:[(0,_.jsx)("div",{className:(0,ft.$)("blocking-alert__summary-text",o),children:s}),(0,_.jsx)("div",{className:(0,ft.$)("blocking-alert__prompt-text",a),children:r})]}),(0,_.jsxs)(yt,{children:[u.map((e,t)=>(0,_.jsx)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${kt(e.type??Ct.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),p()},autoFocus:Boolean(e.default),children:e.label},t)),!u.length&&(0,_.jsx)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:p,children:"Cancel"})]})]})})}),Rt=(0,pt.PA)(()=>{const e=xt().alertService.actionAlertInfo;return e?(0,_.jsx)(Ot,{info:e}):null}),Pt=e=>{const{isLoading:t,className:n}=e,i=(0,At.useRef)(null);return(0,At.useEffect)(()=>{i.current&&(t?i.current.parentElement?.classList.add("panel-loading-indicator__container"):i.current.parentElement?.classList.remove("panel-loading-indicator__container"))},[t]),(0,_.jsx)("div",{ref:i,className:(0,ft.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))})},Lt=(0,pt.PA)(()=>{const e=xt(),t=e.alertService.blockingAlertInfo;return t?(0,_.jsx)(mt.A,{open:Boolean(t),onClose:y,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,_.jsxs)(Et,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,_.jsx)(Pt,{isLoading:Boolean(t.showLoading)}),(0,_.jsxs)(St,{children:[(0,_.jsx)("div",{className:"blocking-alert__message",children:t.message}),t.prompt&&(0,_.jsx)("div",{className:"blocking-alert__message__prompt",children:t.prompt})]})]})}):null});var Mt=n(49787),Ft=n(25314),Dt=n(94269),Bt=n(59896),jt=n(12812),Ut=n(86750),Gt=n(87997),Vt=n(56819),Ht=n(55250),$t=n(63318);const Yt=Mt.nvT,zt=Ft.joZ,Wt=Ft.OAW,Kt=Ft.RCA,Xt=Ft.nDj,Jt=Dt.LkA,qt=Dt.EiC,Zt=Dt.RQJ,Qt=Dt.MYw,en=Dt.ZCl,tn=Dt.suX,nn=Dt.Xv9,sn=Dt.xoW,on=Dt.z6b,rn=Dt.kkD,an=Bt.UHp,cn=Bt.qt6,ln=Bt.UJh,dn=Bt.q$s,un=Bt.$15,pn=Bt.WnZ,hn=Bt.HLi,gn=Bt.JpF,mn=Bt.r$n,fn=Bt.QRP,_n=jt.GaR,En=Ut.QyA,bn=Ut.$TP,Tn=Ut.uCC,Sn=Ut.Rqy,yn=Ut.KRc,vn=Ut.z44,Cn=Ut.A7C,Nn=Ut.Hcz,An=Ut.q7G,In=Ut.Pcn,xn=Ut.Wsx,wn=Ut.zU_,kn=Ut.hO$,On=Ut.nBS,Rn=Ut.Su4,Pn=Ut.TNq,Ln=Ut.BS8,Mn=Ut._AH,Fn=Ut.SoL,Dn=Ut.Wx3,Bn=Ut.t69,jn=Ut.M1W,Un=Ut.g1V,Gn=Ut.Kni,Vn=Ut.OKX,Hn=Ut.__w,$n=Ut.svy,Yn=Ut.JhU,zn=Ut.A4L,Wn=Ut.vq8,Kn=Ut.UnJ,Xn=Ut.gSK,Jn=Ut.OiG,qn=Ut.gZZ,Zn=Ut.KSO,Qn=Ut.E4Q,ei=Ut.$qz,ti=Ut.iuJ,ni=Ut._Hm,ii=Ut.QCr,si=Ut.qbC,oi=Ut.kxO,ri=Ut.GfC,ai=Ut.Ph,ci=Gt.f7n,li=Gt.Lun,di=Vt.oss,ui=Vt.Br,pi=Vt.YZI,hi=Vt.D9N,gi=Ht.BMQ,mi=$t.est,fi=$t._cq,_i=$t.PfQ,Ei=$t._wx,bi=$t.lIm;Mt.R7W,Mt.o5q,Mt.x6P,Mt.d6K,Mt.cLr,Mt.FZE,Mt.iml,Mt.wRw,Mt.IDg,Mt.aWg,Mt.UIj,Mt.voD,Mt.y4Q,Mt.ibs,Mt.NA3,Mt.Lf9,Mt.KnM,Mt.rQ_,Mt.I5J,Mt.TJb,Mt.haC,Mt.IYE,Mt.CdI,Mt.Ij8,Mt.Owf,Mt.aGB,Mt.QbR,Mt.Cvb,Mt.fzd;var Ti=n(80810),Si=n(63889);const yi=6e3;var vi;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(vi||(vi={}));class Ci{severity;message;details;autoHideDuration;constructor(e,t,n,i){this.severity=e,this.message=t,this.details=n,this.autoHideDuration=i}}class Ni{notification;constructor(){(0,Z.Gn)(this,{notification:Z.sH,setNotification:Z.XI,notify:Z.XI,notifySuccess:Z.XI,notifyWarning:Z.XI,notifyIllegalState:Z.XI,notifyError:Z.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new Ci(vi.INFO,e,t,null===n?void 0:n??yi))}notifySuccess(e,t,n){this.setNotification(new Ci(vi.SUCCESS,e,t,null===n?void 0:n??yi))}notifyWarning(e,t,n){this.setNotification(new Ci(vi.WARNING,e instanceof Error?e.message:e,t,null===n?void 0:n??yi))}notifyError(e,t){const n=this.getErrorMessage(e);n&&this.setNotification(new Ci(vi.ERROR,n,t,void 0))}getErrorMessage(e){let t;return e instanceof I?t=e.detail:e instanceof Error?t=e.message:(H($(e),"Can't display error"),t=e),t}notifyIllegalState(e,t,n){this.setNotification(new Ci(vi.ILEGAL_STATE,$(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t,null===n?void 0:n??yi))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return O(e),this.notifyIllegalState(e.message),t}}}const Ai=(0,pt.PA)(()=>{const e=xt(),t=e.notificationService.notification,n=Boolean(t),i=t?.message??"",s=t?.details,o=t?.severity??vi.INFO,[r,a]=(0,At.useState)(!1);let c=(0,_.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,_.jsx)(Hn,{})});switch(o){case vi.ILEGAL_STATE:c=(0,_.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,_.jsx)(yn,{})});break;case vi.ERROR:c=(0,_.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,_.jsx)(ni,{})});break;case vi.WARNING:c=(0,_.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,_.jsx)(Ln,{})});break;case vi.SUCCESS:c=(0,_.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,_.jsx)(Cn,{})})}const l=()=>{e.notificationService.setNotification(void 0),a(!1)},d=e.guardUnhandledError(()=>{let t=i;return r&&s&&(t=`${t}\n${s}`),e.clipboardService.copyTextToClipboard(t)});return(0,_.jsx)(Ti.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:yi,onClose:(e,t)=>{"timeout"===t&&l()},children:(0,_.jsx)(Si.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,_.jsxs)("div",{className:"notification__message__content",children:[c,(0,_.jsxs)("div",{className:(0,ft.$)("notification__message__content__text",{"notification__message__content__text--expanded":r}),onClick:d,title:"Click to Copy",children:[i,r&&t?.details?t.details:""]}),Boolean(t?.details)&&(0,_.jsx)("button",{className:"notification__copy__icon",onClick:d,title:"Copy message and trace","aria-label":"Copy message and trace",children:(0,_.jsx)(wn,{})})]}),action:[(0,_.jsx)("button",{className:"notification__action",onClick:()=>a(!r),tabIndex:-1,title:r?"Collapse":"Expand",children:r?(0,_.jsx)(di,{}):(0,_.jsx)(ui,{})},"expand"),(0,_.jsx)("button",{className:"notification__action",onClick:l,tabIndex:-1,title:"Dismiss",children:(0,_.jsx)(ii,{})},"close")]})},"string"==typeof i||"number"==typeof i?i:"")});var Ii=n(46100);const xi=e=>{const{children:t,classes:n,...i}=e;return(0,_.jsx)(Ii.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...i,children:e.children})},wi=e=>{const{className:t,children:n,menuProps:i,content:s,disabled:o,onClose:r,onOpen:a}=e,c=(0,At.useRef)(null),[l,d]=(0,At.useState)(!1),[u,p]=(0,At.useState)(),[h,g]=(0,At.useState)(0),[m,f]=(0,At.useState)(0),E=()=>{p(void 0),d(!1),f(0),g(0)},b=e=>{e.stopPropagation(),e.preventDefault(),E(),r?.()},T=e=>{if(e.stopPropagation(),e.preventDefault(),!o&&(a?.(),c.current)){const t=c.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),i=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:s,clientY:o,target:a}=e,l=a;if(u!==l&&!(document.elementsFromPoint(s,o).some(e=>e===l)&&n<=s&&s<=n+t.width&&i<=o&&o<=i+t.height))return E(),void r?.();p(l),d(!0),f(o),g(s)}};return(0,_.jsxs)("div",{ref:c,className:t,onContextMenu:T,children:[n,(0,_.jsx)(xi,{open:l,anchorPosition:{left:h,top:m},onClose:b,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:T},disableRestoreFocus:!0,transitionDuration:0,onClick:b,...i,children:l&&s},`${h}, ${m}`)]})},ki=(0,At.forwardRef)(function(e,t){const{className:n,children:i,...s}=e;return(0,_.jsx)("div",{ref:t,className:(0,ft.$)("menu",n),...s,children:i})}),Oi=e=>{const{className:t,onClick:n,title:i,disabled:s,children:o,...r}=e;return(0,_.jsx)("button",{className:(0,ft.$)("menu__item",t),disabled:Boolean(s),title:i,onClick:n,...r,children:o})},Ri=_t("MenuContentDivider","menu__divider");_t("MenuContentItemIcon","menu__item__icon"),_t("MenuContentItemLabel","menu__item__label");var Pi=n(5142),Li=n(29163),Mi=n(3917);const Fi=e=>((0,At.useEffect)(()=>{Mi.A.initialize({startOnLoad:!0,theme:"dark"}),Mi.A.contentLoaded()},[e.value]),(0,_.jsx)("div",{className:(0,ft.$)("markdown-content",e.className),children:(0,_.jsx)(Pi.oz,{remarkPlugins:[Li.A],components:e.components??{code:e=>{const{children:t,className:n,node:i,...s}=e,o=/language-(?<language>\w+)/.exec(n??"");return o?.groups?.language?(0,_.jsx)("code",{...s,className:(0,ft.$)(o.groups.language),children:t}):(0,_.jsx)("code",{...s,className:n,children:t})}},children:e.value.value})}));var Di=n(89463),Bi=(n(11097),n(53213),n(37028)),ji=n(12777);function Ui(e){const t=(0,At.useRef)(e?.skipOnMount),n=e?.refreshMode,i=e?.refreshRate??1e3,s=(0,At.useMemo)(()=>({leading:e?.refreshOptions?.leading,trailing:e?.refreshOptions?.trailing}),[e?.refreshOptions?.leading,e?.refreshOptions?.trailing]),[o,r]=(0,At.useState)({width:void 0,height:void 0}),a=(0,At.useRef)(null),c=(0,At.useMemo)(()=>e?.targetRef??a,[e?.targetRef]),l=e?.onResize,d=(0,At.useCallback)(e=>{t.current?t.current=!1:e.forEach(e=>{const t={width:e.contentRect.width,height:e.contentRect.height};r(n=>n.width===t.width&&n.height===t.height?n:(l?.({width:t.width,height:t.height,entry:e}),t))})},[t,l]),u=(0,At.useMemo)(()=>{switch(n){case"debounce":return(0,Bi.A)(d,i,s);case"throttle":return(0,ji.A)(d,i,s);default:return d}},[d,n,i,s]);return(0,At.useEffect)(()=>{let e;return c.current?(e=new window.ResizeObserver(u),e.observe(c.current)):(l?.({width:void 0,height:void 0,entry:void 0}),r({width:void 0,height:void 0})),()=>{e?.disconnect(),"cancel"in u&&u.cancel()}},[u,l,c]),{ref:c,...o}}const Gi=e=>{const{children:t}=e,{ref:n,width:i,height:s}=Ui({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[o,r]=(0,At.useState)(!1),{ref:a,width:c,height:l}=Ui({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,At.useEffect)(()=>{r((c??0)>(i??0)+40&&(l??0)>(s??0)+40)},[c,l,i,s]),(0,_.jsx)("div",{ref:a,className:"panel__content__blank",children:(0,_.jsx)("div",{ref:n,className:(0,ft.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!o}),children:t})})};var Vi=n(28766),Hi=n(10339),$i=n(91327);const Yi=e=>{const{children:t,options:n,size:i,className:s,...o}=e,r=((e,t)=>{const n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n})(n,i);return(0,_.jsxs)("div",{className:(0,ft.$)("mui-radio-group",s),children:[r.map((e,t)=>(0,_.jsx)("div",{children:(0,_.jsx)(Vi.A,{className:"mui-radio-group__group",...o,children:e.map(e=>(0,_.jsx)(Hi.A,{className:"mui-radio-group__group__column",style:{width:100/i+"%"},value:e,control:(0,_.jsx)($i.A,{className:"mui-radio-group__group__item__radio-btn",classes:{checked:"mui-radio-group__group__item__radio-btn--checked"}}),label:(0,_.jsx)("div",{className:"mui-radio-group__group__item__label",children:e})},e))})},t)),t]})};var zi=n(62437);const Wi=e=>{const{children:t,...n}=e;return(0,_.jsx)(zi.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children})};var Ki,Xi=n(64);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(Ki||(Ki={}));const Ji=(0,pt.PA)(e=>{const{entry:t,onAccess:n}=e,i=xt(),s=()=>{t.isOpen||(Re.logEvent_VirtualAssistantDocumentationEntryAccessed(i.telemetryService,{key:t.documentationKey,action:"expand"}),n?.(t.documentationKey,"expand")),t.setIsOpen(!t.isOpen)},o=i.guardUnhandledError(()=>i.clipboardService.copyTextToClipboard(t.documentationKey));return(0,_.jsx)(wi,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,_.jsx)(ki,{children:(0,_.jsx)(Oi,{onClick:o,children:"Copy Documentation Key"})}),children:(0,_.jsxs)("div",{className:"virtual-assistant__doc-entry",children:[(0,_.jsxs)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,_.jsx)("button",{className:(0,ft.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:s,children:t.isOpen?(0,_.jsx)(di,{}):(0,_.jsx)(pi,{})}),t.url?(0,_.jsx)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Re.logEvent_VirtualAssistantDocumentationEntryAccessed(i.telemetryService,{key:t.documentationKey,action:"clickLink"}),n?.(t.documentationKey,"clickLink")},title:"Click to see external documentation",children:t.title}):(0,_.jsx)("div",{className:"virtual-assistant__doc-entry__title",onClick:s,children:t.title})]}),t.isOpen&&t.content&&(0,_.jsx)("div",{className:"virtual-assistant__doc-entry__content",children:$(t.content)?(0,_.jsx)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content}):(0,_.jsx)(Fi,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content})})]})})}),qi=(0,pt.PA)(()=>{const e=xt(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError(()=>e.clipboardService.copyTextToClipboard(t?.context??"")),i=e.guardUnhandledError(()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??"")),s=e.guardUnhandledError(()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map(e=>e.key).join(" > ")));return(0,_.jsxs)(wi,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,_.jsxs)(ki,{children:[(0,_.jsx)(Oi,{onClick:n,children:"Copy Context ID"}),(0,_.jsx)(Oi,{onClick:i,children:"Copy Current Context ID"}),(0,_.jsx)(Oi,{onClick:s,children:"Copy Context Stack"})]}),children:[t&&(0,_.jsxs)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,_.jsx)("div",{className:"virtual-assistant__contextual-support__title",children:t.title}),t.content&&(0,_.jsx)(_.Fragment,{children:$(t.content)?(0,_.jsx)("div",{className:"virtual-assistant__contextual-support__text",children:t.content}):(0,_.jsx)(Fi,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content})}),t.related.length&&(0,_.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,_.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]}),t.related.map(e=>(0,_.jsx)(Ji,{entry:e},e.uuid))]})]}),!t&&(0,_.jsx)(Gi,{children:(0,_.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,_.jsx)(Fn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,_.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"}),(0,_.jsx)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"})]})})]})}),Zi=(0,pt.PA)(()=>{const e=xt(),t=(0,At.useRef)(null),n=e.assistantService,i=n.searchText,s=(0,At.useMemo)(()=>(0,Bi.A)(()=>n.search(),100),[n]),o=(0,At.useMemo)(()=>(0,Bi.A)(()=>{n.searchText.length>0&&n.telemetryCallbacks?.onSearchInitiated?.(n.searchText)},1e3),[n]),r=(e,t)=>{n.telemetryCallbacks?.onSearchResultAccess?.({key:e,searchText:n.searchText,action:t})};return(0,At.useEffect)(()=>{t.current?.focus()},[]),(0,_.jsxs)("div",{className:"virtual-assistant__search",children:[(0,_.jsxs)("div",{className:"virtual-assistant__search__header",children:[(0,_.jsx)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,ft.$)("virtual-assistant__search__input",{"virtual-assistant__search__input--searching":i}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),s(),o()},value:i,placeholder:"Ask me a question"}),i&&(0,_.jsx)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")}),(0,_.jsx)("button",{className:(0,ft.$)("virtual-assistant__search__input__config__trigger",{"virtual-assistant__search__input__config__trigger--toggled":n.showSearchConfigurationMenu,"virtual-assistant__search__input__config__trigger--active":n.searchConfigurationState.isAdvancedSearchActive}),tabIndex:-1,onClick:()=>n.setShowSearchConfigurationMenu(!n.showSearchConfigurationMenu),title:(n.searchConfigurationState.isAdvancedSearchActive?"Advanced search is currently active\n":"")+"Click to toggle search config menu",children:(0,_.jsx)(In,{})}),i?(0,_.jsx)("button",{className:"virtual-assistant__search__input__clear-btn",tabIndex:-1,onClick:()=>{n.resetSearch(),n.currentDocumentationEntry=void 0,t.current?.focus()},title:"Clear",children:(0,_.jsx)(ii,{})}):(0,_.jsx)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,_.jsx)(Zn,{})})]}),(0,_.jsxs)("div",{className:"virtual-assistant__search__content",children:[(0,_.jsx)(Pt,{isLoading:n.searchState.isInProgress}),(0,_.jsx)("div",{className:(0,ft.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,_.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,_.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(Ki.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,_.jsx)("div",{onClick:()=>n.openDocumentationEntryLink(Ki.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX),title:"Click to see documentation",className:"virtual-assistant__search__input__advanced-config__panel__header__label__hint",children:(0,_.jsx)(qn,{})})]}),(0,_.jsx)("div",{children:(0,_.jsx)(Yi,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Ce.STANDARD,Ce.INCLUDE,Ce.EXACT,Ce.INVERSE],size:1})})]})}),n.currentDocumentationEntry&&(0,_.jsx)("div",{className:"virtual-assistant__search__results",children:(0,_.jsx)(Ji,{entry:n.currentDocumentationEntry,onAccess:r},n.currentDocumentationEntry.uuid)}),!n.currentDocumentationEntry&&(0,_.jsxs)(_.Fragment,{children:[Boolean(n.searchResults.length)&&(0,_.jsx)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map(e=>(0,_.jsx)(Ji,{entry:e,onAccess:r},e.uuid))}),i&&!n.searchResults.length&&(0,_.jsx)(Gi,{children:(0,_.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,_.jsx)(Dn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,_.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."})]})}),!i&&!n.searchResults.length&&(0,_.jsx)(wi,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,_.jsxs)(ki,{children:[(0,_.jsx)(Oi,{onClick:()=>{de(`documentation-r